From cc3db0a018355fdcba4a500f1790711d6bef283e Mon Sep 17 00:00:00 2001 From: ap0calypse644 Date: Mon, 14 Oct 2024 22:59:46 +0530 Subject: [PATCH 01/30] updating proto names --- api/fairyring/common/shared_types.pulsar.go | 337 +- .../keyshare/aggregated_key_share.pulsar.go | 1 + .../keyshare/authorized_address.pulsar.go | 88 +- api/fairyring/keyshare/commitments.pulsar.go | 2 + .../keyshare/general_key_share.pulsar.go | 1836 ------- api/fairyring/keyshare/genesis.pulsar.go | 289 +- api/fairyring/keyshare/key_share.pulsar.go | 1917 +++++++- api/fairyring/keyshare/pub_key.pulsar.go | 231 +- api/fairyring/keyshare/query.pulsar.go | 4269 +++++++++-------- api/fairyring/keyshare/query_grpc.pb.go | 174 +- .../keyshare/requested_keyshare.pulsar.go | 533 +- api/fairyring/keyshare/tx.pulsar.go | 1253 ++--- api/fairyring/keyshare/tx_grpc.pb.go | 40 +- .../keyshare/validator_set.pulsar.go | 80 +- .../pep/aggregated_key_share.pulsar.go | 2 + api/fairyring/pep/encrypted_tx.pulsar.go | 552 +-- api/fairyring/pep/genesis.pulsar.go | 9 +- api/fairyring/pep/params.pulsar.go | 4 + api/fairyring/pep/pep_nonce.pulsar.go | 2 + api/fairyring/pep/query.pulsar.go | 3305 ++++++------- api/fairyring/pep/query_grpc.pb.go | 132 +- api/fairyring/pep/request_id.pulsar.go | 120 +- api/fairyring/pep/tx.pulsar.go | 1172 +++-- api/fairyring/pep/tx_grpc.pb.go | 56 +- .../aggregator/private_keyshare_aggregator.go | 4 +- .../cmd/verifiable_randomness/randomness.go | 5 +- common/shared_types.pb.go | 36 - proto/fairyring/common/shared_types.proto | 22 +- .../keyshare/aggregated_key_share.proto | 2 +- .../keyshare/authorized_address.proto | 6 +- proto/fairyring/keyshare/commitments.proto | 2 + .../keyshare/general_key_share.proto | 24 - proto/fairyring/keyshare/genesis.proto | 23 +- proto/fairyring/keyshare/key_share.proto | 35 +- proto/fairyring/keyshare/params.proto | 1 - proto/fairyring/keyshare/pub_key.proto | 16 +- proto/fairyring/keyshare/query.proto | 148 +- .../keyshare/requested_keyshare.proto | 23 +- proto/fairyring/keyshare/tx.proto | 137 +- proto/fairyring/keyshare/validator_set.proto | 6 +- .../fairyring/pep/aggregated_key_share.proto | 3 +- proto/fairyring/pep/encrypted_tx.proto | 23 +- proto/fairyring/pep/genesis.proto | 21 +- proto/fairyring/pep/params.proto | 5 +- proto/fairyring/pep/pep_nonce.proto | 3 +- proto/fairyring/pep/query.proto | 116 +- proto/fairyring/pep/request_id.proto | 12 +- proto/fairyring/pep/tx.proto | 73 +- x/common/types/shared_types.pb.go | 146 +- x/keyshare/keeper/get_aggr_key_share.go | 16 +- .../keeper/msg_create_general_key_share.go | 6 +- .../msg_create_general_key_share_test.go | 11 +- .../keeper/msg_submit_encrypted_keyshare.go | 6 +- .../msg_submit_encrypted_keyshare_test.go | 9 +- x/keyshare/keeper/process_queues.go | 2 +- .../keeper/query_aggregated_key_share.go | 17 +- .../keeper/query_aggregated_key_share_test.go | 31 +- x/keyshare/keeper/query_authorized_address.go | 17 +- .../keeper/query_authorized_address_test.go | 31 +- x/keyshare/keeper/query_general_key_share.go | 17 +- .../keeper/query_general_key_share_test.go | 31 +- x/keyshare/keeper/query_key_share.go | 14 +- x/keyshare/keeper/query_key_share_test.go | 34 +- x/keyshare/keeper/query_validator_set.go | 17 +- x/keyshare/keeper/query_validator_set_test.go | 34 +- .../keeper/query_verifiable_randomness.go | 10 +- .../query_verifiable_randomness_test.go | 15 +- x/keyshare/keeper/request_aggr_key_share.go | 16 +- x/keyshare/module/genesis_test.go | 2 +- x/keyshare/types/aggregated_key_share.pb.go | 1 + x/keyshare/types/authorized_address.pb.go | 25 +- x/keyshare/types/commitments.pb.go | 2 + x/keyshare/types/expected_keepers.go | 18 +- x/keyshare/types/general_key_share.pb.go | 1014 ---- x/keyshare/types/genesis.pb.go | 88 +- x/keyshare/types/key_share.pb.go | 1021 +++- x/keyshare/types/pub_key.pb.go | 57 +- x/keyshare/types/query.pb.go | 1398 +++--- x/keyshare/types/query.pb.gw.go | 84 +- x/keyshare/types/requested_keyshare.pb.go | 229 +- x/keyshare/types/tx.pb.go | 280 +- x/keyshare/types/validator_set.pb.go | 26 +- x/pep/keeper/gen_enc_tx.go | 45 +- x/pep/keeper/gen_enc_tx_test.go | 15 +- .../keeper/msg_get_general_key_share_test.go | 2 +- x/pep/keeper/msg_request_general_key_share.go | 2 +- x/pep/keeper/msg_request_private_identity.go | 2 +- x/pep/keeper/msg_submit_gen_enc_tx.go | 7 +- x/pep/keeper/msg_submit_gen_enc_tx_test.go | 7 +- x/pep/keeper/query_encrypted_tx.go | 26 +- x/pep/keeper/query_encrypted_tx_test.go | 25 +- x/pep/keeper/query_keyshare.go | 22 +- x/pep/keeper/query_keyshare_test.go | 34 +- x/pep/keeper/query_pep_nonce.go | 14 +- x/pep/keeper/query_pep_nonce_test.go | 19 +- x/pep/keeper/query_private_keyshare_req.go | 7 +- .../keeper/query_private_keyshare_req_test.go | 17 +- x/pep/types/aggregated_key_share.pb.go | 2 + x/pep/types/encrypted_tx.pb.go | 146 +- x/pep/types/genesis.pb.go | 9 +- x/pep/types/packet.pb.go | 502 -- x/pep/types/params.pb.go | 4 + x/pep/types/pep_nonce.pb.go | 2 + x/pep/types/query.pb.go | 1102 ++--- x/pep/types/query.pb.gw.go | 96 +- x/pep/types/request_id.pb.go | 68 +- x/pep/types/tx.pb.go | 406 +- 107 files changed, 12527 insertions(+), 11929 deletions(-) delete mode 100644 api/fairyring/keyshare/general_key_share.pulsar.go delete mode 100644 common/shared_types.pb.go delete mode 100644 proto/fairyring/keyshare/general_key_share.proto delete mode 100644 x/keyshare/types/general_key_share.pb.go delete mode 100644 x/pep/types/packet.pb.go diff --git a/api/fairyring/common/shared_types.pulsar.go b/api/fairyring/common/shared_types.pulsar.go index 7df7226e..3c8c2203 100644 --- a/api/fairyring/common/shared_types.pulsar.go +++ b/api/fairyring/common/shared_types.pulsar.go @@ -3150,16 +3150,16 @@ func (x *fastReflection_GetPrivateKeyshareResponse) ProtoMethods() *protoiface.M } var ( - md_ActivePublicKey protoreflect.MessageDescriptor - fd_ActivePublicKey_publicKey protoreflect.FieldDescriptor - fd_ActivePublicKey_creator protoreflect.FieldDescriptor - fd_ActivePublicKey_expiry protoreflect.FieldDescriptor + md_ActivePublicKey protoreflect.MessageDescriptor + fd_ActivePublicKey_public_key protoreflect.FieldDescriptor + fd_ActivePublicKey_creator protoreflect.FieldDescriptor + fd_ActivePublicKey_expiry protoreflect.FieldDescriptor ) func init() { file_fairyring_common_shared_types_proto_init() md_ActivePublicKey = File_fairyring_common_shared_types_proto.Messages().ByName("ActivePublicKey") - fd_ActivePublicKey_publicKey = md_ActivePublicKey.Fields().ByName("publicKey") + fd_ActivePublicKey_public_key = md_ActivePublicKey.Fields().ByName("public_key") fd_ActivePublicKey_creator = md_ActivePublicKey.Fields().ByName("creator") fd_ActivePublicKey_expiry = md_ActivePublicKey.Fields().ByName("expiry") } @@ -3231,7 +3231,7 @@ func (x *fastReflection_ActivePublicKey) Interface() protoreflect.ProtoMessage { func (x *fastReflection_ActivePublicKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.PublicKey != "" { value := protoreflect.ValueOfString(x.PublicKey) - if !f(fd_ActivePublicKey_publicKey, value) { + if !f(fd_ActivePublicKey_public_key, value) { return } } @@ -3262,7 +3262,7 @@ func (x *fastReflection_ActivePublicKey) Range(f func(protoreflect.FieldDescript // a repeated field is populated if it is non-empty. func (x *fastReflection_ActivePublicKey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.common.ActivePublicKey.publicKey": + case "fairyring.common.ActivePublicKey.public_key": return x.PublicKey != "" case "fairyring.common.ActivePublicKey.creator": return x.Creator != "" @@ -3284,7 +3284,7 @@ func (x *fastReflection_ActivePublicKey) Has(fd protoreflect.FieldDescriptor) bo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ActivePublicKey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.common.ActivePublicKey.publicKey": + case "fairyring.common.ActivePublicKey.public_key": x.PublicKey = "" case "fairyring.common.ActivePublicKey.creator": x.Creator = "" @@ -3306,7 +3306,7 @@ func (x *fastReflection_ActivePublicKey) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ActivePublicKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.common.ActivePublicKey.publicKey": + case "fairyring.common.ActivePublicKey.public_key": value := x.PublicKey return protoreflect.ValueOfString(value) case "fairyring.common.ActivePublicKey.creator": @@ -3335,7 +3335,7 @@ func (x *fastReflection_ActivePublicKey) Get(descriptor protoreflect.FieldDescri // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ActivePublicKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.common.ActivePublicKey.publicKey": + case "fairyring.common.ActivePublicKey.public_key": x.PublicKey = value.Interface().(string) case "fairyring.common.ActivePublicKey.creator": x.Creator = value.Interface().(string) @@ -3361,8 +3361,8 @@ func (x *fastReflection_ActivePublicKey) Set(fd protoreflect.FieldDescriptor, va // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ActivePublicKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.ActivePublicKey.publicKey": - panic(fmt.Errorf("field publicKey of message fairyring.common.ActivePublicKey is not mutable")) + case "fairyring.common.ActivePublicKey.public_key": + panic(fmt.Errorf("field public_key of message fairyring.common.ActivePublicKey is not mutable")) case "fairyring.common.ActivePublicKey.creator": panic(fmt.Errorf("field creator of message fairyring.common.ActivePublicKey is not mutable")) case "fairyring.common.ActivePublicKey.expiry": @@ -3380,7 +3380,7 @@ func (x *fastReflection_ActivePublicKey) Mutable(fd protoreflect.FieldDescriptor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ActivePublicKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.ActivePublicKey.publicKey": + case "fairyring.common.ActivePublicKey.public_key": return protoreflect.ValueOfString("") case "fairyring.common.ActivePublicKey.creator": return protoreflect.ValueOfString("") @@ -3682,16 +3682,16 @@ func (x *fastReflection_ActivePublicKey) ProtoMethods() *protoiface.Methods { } var ( - md_QueuedPublicKey protoreflect.MessageDescriptor - fd_QueuedPublicKey_publicKey protoreflect.FieldDescriptor - fd_QueuedPublicKey_creator protoreflect.FieldDescriptor - fd_QueuedPublicKey_expiry protoreflect.FieldDescriptor + md_QueuedPublicKey protoreflect.MessageDescriptor + fd_QueuedPublicKey_public_key protoreflect.FieldDescriptor + fd_QueuedPublicKey_creator protoreflect.FieldDescriptor + fd_QueuedPublicKey_expiry protoreflect.FieldDescriptor ) func init() { file_fairyring_common_shared_types_proto_init() md_QueuedPublicKey = File_fairyring_common_shared_types_proto.Messages().ByName("QueuedPublicKey") - fd_QueuedPublicKey_publicKey = md_QueuedPublicKey.Fields().ByName("publicKey") + fd_QueuedPublicKey_public_key = md_QueuedPublicKey.Fields().ByName("public_key") fd_QueuedPublicKey_creator = md_QueuedPublicKey.Fields().ByName("creator") fd_QueuedPublicKey_expiry = md_QueuedPublicKey.Fields().ByName("expiry") } @@ -3763,7 +3763,7 @@ func (x *fastReflection_QueuedPublicKey) Interface() protoreflect.ProtoMessage { func (x *fastReflection_QueuedPublicKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.PublicKey != "" { value := protoreflect.ValueOfString(x.PublicKey) - if !f(fd_QueuedPublicKey_publicKey, value) { + if !f(fd_QueuedPublicKey_public_key, value) { return } } @@ -3794,7 +3794,7 @@ func (x *fastReflection_QueuedPublicKey) Range(f func(protoreflect.FieldDescript // a repeated field is populated if it is non-empty. func (x *fastReflection_QueuedPublicKey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.common.QueuedPublicKey.publicKey": + case "fairyring.common.QueuedPublicKey.public_key": return x.PublicKey != "" case "fairyring.common.QueuedPublicKey.creator": return x.Creator != "" @@ -3816,7 +3816,7 @@ func (x *fastReflection_QueuedPublicKey) Has(fd protoreflect.FieldDescriptor) bo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueuedPublicKey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.common.QueuedPublicKey.publicKey": + case "fairyring.common.QueuedPublicKey.public_key": x.PublicKey = "" case "fairyring.common.QueuedPublicKey.creator": x.Creator = "" @@ -3838,7 +3838,7 @@ func (x *fastReflection_QueuedPublicKey) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueuedPublicKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.common.QueuedPublicKey.publicKey": + case "fairyring.common.QueuedPublicKey.public_key": value := x.PublicKey return protoreflect.ValueOfString(value) case "fairyring.common.QueuedPublicKey.creator": @@ -3867,7 +3867,7 @@ func (x *fastReflection_QueuedPublicKey) Get(descriptor protoreflect.FieldDescri // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueuedPublicKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.common.QueuedPublicKey.publicKey": + case "fairyring.common.QueuedPublicKey.public_key": x.PublicKey = value.Interface().(string) case "fairyring.common.QueuedPublicKey.creator": x.Creator = value.Interface().(string) @@ -3893,8 +3893,8 @@ func (x *fastReflection_QueuedPublicKey) Set(fd protoreflect.FieldDescriptor, va // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueuedPublicKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.QueuedPublicKey.publicKey": - panic(fmt.Errorf("field publicKey of message fairyring.common.QueuedPublicKey is not mutable")) + case "fairyring.common.QueuedPublicKey.public_key": + panic(fmt.Errorf("field public_key of message fairyring.common.QueuedPublicKey is not mutable")) case "fairyring.common.QueuedPublicKey.creator": panic(fmt.Errorf("field creator of message fairyring.common.QueuedPublicKey is not mutable")) case "fairyring.common.QueuedPublicKey.expiry": @@ -3912,7 +3912,7 @@ func (x *fastReflection_QueuedPublicKey) Mutable(fd protoreflect.FieldDescriptor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueuedPublicKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.QueuedPublicKey.publicKey": + case "fairyring.common.QueuedPublicKey.public_key": return protoreflect.ValueOfString("") case "fairyring.common.QueuedPublicKey.creator": return protoreflect.ValueOfString("") @@ -4214,27 +4214,27 @@ func (x *fastReflection_QueuedPublicKey) ProtoMethods() *protoiface.Methods { } var ( - md_RequestPrivateKeyshare protoreflect.MessageDescriptor - fd_RequestPrivateKeyshare_creator protoreflect.FieldDescriptor - fd_RequestPrivateKeyshare_request_id protoreflect.FieldDescriptor + md_RequestEncryptedKeyshare protoreflect.MessageDescriptor + fd_RequestEncryptedKeyshare_creator protoreflect.FieldDescriptor + fd_RequestEncryptedKeyshare_request_id protoreflect.FieldDescriptor ) func init() { file_fairyring_common_shared_types_proto_init() - md_RequestPrivateKeyshare = File_fairyring_common_shared_types_proto.Messages().ByName("RequestPrivateKeyshare") - fd_RequestPrivateKeyshare_creator = md_RequestPrivateKeyshare.Fields().ByName("creator") - fd_RequestPrivateKeyshare_request_id = md_RequestPrivateKeyshare.Fields().ByName("request_id") + md_RequestEncryptedKeyshare = File_fairyring_common_shared_types_proto.Messages().ByName("RequestEncryptedKeyshare") + fd_RequestEncryptedKeyshare_creator = md_RequestEncryptedKeyshare.Fields().ByName("creator") + fd_RequestEncryptedKeyshare_request_id = md_RequestEncryptedKeyshare.Fields().ByName("request_id") } -var _ protoreflect.Message = (*fastReflection_RequestPrivateKeyshare)(nil) +var _ protoreflect.Message = (*fastReflection_RequestEncryptedKeyshare)(nil) -type fastReflection_RequestPrivateKeyshare RequestPrivateKeyshare +type fastReflection_RequestEncryptedKeyshare RequestEncryptedKeyshare -func (x *RequestPrivateKeyshare) ProtoReflect() protoreflect.Message { - return (*fastReflection_RequestPrivateKeyshare)(x) +func (x *RequestEncryptedKeyshare) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestEncryptedKeyshare)(x) } -func (x *RequestPrivateKeyshare) slowProtoReflect() protoreflect.Message { +func (x *RequestEncryptedKeyshare) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_common_shared_types_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4246,43 +4246,43 @@ func (x *RequestPrivateKeyshare) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_RequestPrivateKeyshare_messageType fastReflection_RequestPrivateKeyshare_messageType -var _ protoreflect.MessageType = fastReflection_RequestPrivateKeyshare_messageType{} +var _fastReflection_RequestEncryptedKeyshare_messageType fastReflection_RequestEncryptedKeyshare_messageType +var _ protoreflect.MessageType = fastReflection_RequestEncryptedKeyshare_messageType{} -type fastReflection_RequestPrivateKeyshare_messageType struct{} +type fastReflection_RequestEncryptedKeyshare_messageType struct{} -func (x fastReflection_RequestPrivateKeyshare_messageType) Zero() protoreflect.Message { - return (*fastReflection_RequestPrivateKeyshare)(nil) +func (x fastReflection_RequestEncryptedKeyshare_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestEncryptedKeyshare)(nil) } -func (x fastReflection_RequestPrivateKeyshare_messageType) New() protoreflect.Message { - return new(fastReflection_RequestPrivateKeyshare) +func (x fastReflection_RequestEncryptedKeyshare_messageType) New() protoreflect.Message { + return new(fastReflection_RequestEncryptedKeyshare) } -func (x fastReflection_RequestPrivateKeyshare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_RequestPrivateKeyshare +func (x fastReflection_RequestEncryptedKeyshare_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestEncryptedKeyshare } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_RequestPrivateKeyshare) Descriptor() protoreflect.MessageDescriptor { - return md_RequestPrivateKeyshare +func (x *fastReflection_RequestEncryptedKeyshare) Descriptor() protoreflect.MessageDescriptor { + return md_RequestEncryptedKeyshare } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_RequestPrivateKeyshare) Type() protoreflect.MessageType { - return _fastReflection_RequestPrivateKeyshare_messageType +func (x *fastReflection_RequestEncryptedKeyshare) Type() protoreflect.MessageType { + return _fastReflection_RequestEncryptedKeyshare_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_RequestPrivateKeyshare) New() protoreflect.Message { - return new(fastReflection_RequestPrivateKeyshare) +func (x *fastReflection_RequestEncryptedKeyshare) New() protoreflect.Message { + return new(fastReflection_RequestEncryptedKeyshare) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_RequestPrivateKeyshare) Interface() protoreflect.ProtoMessage { - return (*RequestPrivateKeyshare)(x) +func (x *fastReflection_RequestEncryptedKeyshare) Interface() protoreflect.ProtoMessage { + return (*RequestEncryptedKeyshare)(x) } // Range iterates over every populated field in an undefined order, @@ -4290,16 +4290,16 @@ func (x *fastReflection_RequestPrivateKeyshare) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_RequestPrivateKeyshare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestEncryptedKeyshare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_RequestPrivateKeyshare_creator, value) { + if !f(fd_RequestEncryptedKeyshare_creator, value) { return } } if x.RequestId != "" { value := protoreflect.ValueOfString(x.RequestId) - if !f(fd_RequestPrivateKeyshare_request_id, value) { + if !f(fd_RequestEncryptedKeyshare_request_id, value) { return } } @@ -4316,17 +4316,17 @@ func (x *fastReflection_RequestPrivateKeyshare) Range(f func(protoreflect.FieldD // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_RequestPrivateKeyshare) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestEncryptedKeyshare) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.common.RequestPrivateKeyshare.creator": + case "fairyring.common.RequestEncryptedKeyshare.creator": return x.Creator != "" - case "fairyring.common.RequestPrivateKeyshare.request_id": + case "fairyring.common.RequestEncryptedKeyshare.request_id": return x.RequestId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestPrivateKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestEncryptedKeyshare")) } - panic(fmt.Errorf("message fairyring.common.RequestPrivateKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestEncryptedKeyshare does not contain field %s", fd.FullName())) } } @@ -4336,17 +4336,17 @@ func (x *fastReflection_RequestPrivateKeyshare) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestPrivateKeyshare) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestEncryptedKeyshare) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.common.RequestPrivateKeyshare.creator": + case "fairyring.common.RequestEncryptedKeyshare.creator": x.Creator = "" - case "fairyring.common.RequestPrivateKeyshare.request_id": + case "fairyring.common.RequestEncryptedKeyshare.request_id": x.RequestId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestPrivateKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestEncryptedKeyshare")) } - panic(fmt.Errorf("message fairyring.common.RequestPrivateKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestEncryptedKeyshare does not contain field %s", fd.FullName())) } } @@ -4356,19 +4356,19 @@ func (x *fastReflection_RequestPrivateKeyshare) Clear(fd protoreflect.FieldDescr // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_RequestPrivateKeyshare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestEncryptedKeyshare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.common.RequestPrivateKeyshare.creator": + case "fairyring.common.RequestEncryptedKeyshare.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.common.RequestPrivateKeyshare.request_id": + case "fairyring.common.RequestEncryptedKeyshare.request_id": value := x.RequestId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestPrivateKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestEncryptedKeyshare")) } - panic(fmt.Errorf("message fairyring.common.RequestPrivateKeyshare does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestEncryptedKeyshare does not contain field %s", descriptor.FullName())) } } @@ -4382,17 +4382,17 @@ func (x *fastReflection_RequestPrivateKeyshare) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestPrivateKeyshare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestEncryptedKeyshare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.common.RequestPrivateKeyshare.creator": + case "fairyring.common.RequestEncryptedKeyshare.creator": x.Creator = value.Interface().(string) - case "fairyring.common.RequestPrivateKeyshare.request_id": + case "fairyring.common.RequestEncryptedKeyshare.request_id": x.RequestId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestPrivateKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestEncryptedKeyshare")) } - panic(fmt.Errorf("message fairyring.common.RequestPrivateKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestEncryptedKeyshare does not contain field %s", fd.FullName())) } } @@ -4406,44 +4406,44 @@ func (x *fastReflection_RequestPrivateKeyshare) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestPrivateKeyshare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestEncryptedKeyshare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.RequestPrivateKeyshare.creator": - panic(fmt.Errorf("field creator of message fairyring.common.RequestPrivateKeyshare is not mutable")) - case "fairyring.common.RequestPrivateKeyshare.request_id": - panic(fmt.Errorf("field request_id of message fairyring.common.RequestPrivateKeyshare is not mutable")) + case "fairyring.common.RequestEncryptedKeyshare.creator": + panic(fmt.Errorf("field creator of message fairyring.common.RequestEncryptedKeyshare is not mutable")) + case "fairyring.common.RequestEncryptedKeyshare.request_id": + panic(fmt.Errorf("field request_id of message fairyring.common.RequestEncryptedKeyshare is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestPrivateKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestEncryptedKeyshare")) } - panic(fmt.Errorf("message fairyring.common.RequestPrivateKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestEncryptedKeyshare does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_RequestPrivateKeyshare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestEncryptedKeyshare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.RequestPrivateKeyshare.creator": + case "fairyring.common.RequestEncryptedKeyshare.creator": return protoreflect.ValueOfString("") - case "fairyring.common.RequestPrivateKeyshare.request_id": + case "fairyring.common.RequestEncryptedKeyshare.request_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestPrivateKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestEncryptedKeyshare")) } - panic(fmt.Errorf("message fairyring.common.RequestPrivateKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestEncryptedKeyshare does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_RequestPrivateKeyshare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestEncryptedKeyshare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.common.RequestPrivateKeyshare", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.common.RequestEncryptedKeyshare", d.FullName())) } panic("unreachable") } @@ -4451,7 +4451,7 @@ func (x *fastReflection_RequestPrivateKeyshare) WhichOneof(d protoreflect.OneofD // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_RequestPrivateKeyshare) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestEncryptedKeyshare) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4462,7 +4462,7 @@ func (x *fastReflection_RequestPrivateKeyshare) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestPrivateKeyshare) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestEncryptedKeyshare) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4474,7 +4474,7 @@ func (x *fastReflection_RequestPrivateKeyshare) SetUnknown(fields protoreflect.R // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_RequestPrivateKeyshare) IsValid() bool { +func (x *fastReflection_RequestEncryptedKeyshare) IsValid() bool { return x != nil } @@ -4484,9 +4484,9 @@ func (x *fastReflection_RequestPrivateKeyshare) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_RequestPrivateKeyshare) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestEncryptedKeyshare) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*RequestPrivateKeyshare) + x := input.Message.Interface().(*RequestEncryptedKeyshare) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4516,7 +4516,7 @@ func (x *fastReflection_RequestPrivateKeyshare) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*RequestPrivateKeyshare) + x := input.Message.Interface().(*RequestEncryptedKeyshare) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4560,7 +4560,7 @@ func (x *fastReflection_RequestPrivateKeyshare) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*RequestPrivateKeyshare) + x := input.Message.Interface().(*RequestEncryptedKeyshare) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4592,10 +4592,10 @@ func (x *fastReflection_RequestPrivateKeyshare) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestPrivateKeyshare: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestEncryptedKeyshare: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestPrivateKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestEncryptedKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5743,6 +5743,8 @@ type RequestAggrKeyshare struct { unknownFields protoimpl.UnknownFields Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // id can either be a rwquest id or a proposal id + // // Types that are assignable to Id: // // *RequestAggrKeyshare_ProposalId @@ -5822,6 +5824,7 @@ func (*RequestAggrKeyshare_ProposalId) isRequestAggrKeyshare_Id() {} func (*RequestAggrKeyshare_RequestId) isRequestAggrKeyshare_Id() {} +// RequestAggrKeyshareResponse defines the response to the RequestAggrKeyshare message type RequestAggrKeyshareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -5871,6 +5874,8 @@ type GetAggrKeyshare struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // id can either be a rwquest id or a proposal id + // // Types that are assignable to Id: // // *GetAggrKeyshare_ProposalId @@ -5943,6 +5948,7 @@ func (*GetAggrKeyshare_ProposalId) isGetAggrKeyshare_Id() {} func (*GetAggrKeyshare_RequestId) isGetAggrKeyshare_Id() {} +// GetAggrKeyshareResponse defines the response to the GetAggrKeyshare message type GetAggrKeyshareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -6029,6 +6035,7 @@ func (x *GetPrivateKeyshare) GetSecpPubkey() string { return "" } +// GetPrivateKeyshareResponse defines the response to the GetPrivateKeyshare message type GetPrivateKeyshareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -6064,12 +6071,13 @@ func (x *GetPrivateKeyshareResponse) GetPubkey() string { return "" } +// ActivePublicKey defines the pubkey currently in use type ActivePublicKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - PublicKey string `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"` + PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` Expiry uint64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` } @@ -6115,12 +6123,14 @@ func (x *ActivePublicKey) GetExpiry() uint64 { return 0 } +// QueuedPublicKey defines the pubkey that (when set) will replace the acive pubkey +// when it expires type QueuedPublicKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - PublicKey string `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"` + PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` Expiry uint64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` } @@ -6166,7 +6176,9 @@ func (x *QueuedPublicKey) GetExpiry() uint64 { return 0 } -type RequestPrivateKeyshare struct { +// RequestEncryptedKeyshare defines the structure to request for +// encrypted and unaggregated keyshares +type RequestEncryptedKeyshare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -6175,8 +6187,8 @@ type RequestPrivateKeyshare struct { RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *RequestPrivateKeyshare) Reset() { - *x = RequestPrivateKeyshare{} +func (x *RequestEncryptedKeyshare) Reset() { + *x = RequestEncryptedKeyshare{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_common_shared_types_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6184,31 +6196,33 @@ func (x *RequestPrivateKeyshare) Reset() { } } -func (x *RequestPrivateKeyshare) String() string { +func (x *RequestEncryptedKeyshare) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RequestPrivateKeyshare) ProtoMessage() {} +func (*RequestEncryptedKeyshare) ProtoMessage() {} -// Deprecated: Use RequestPrivateKeyshare.ProtoReflect.Descriptor instead. -func (*RequestPrivateKeyshare) Descriptor() ([]byte, []int) { +// Deprecated: Use RequestEncryptedKeyshare.ProtoReflect.Descriptor instead. +func (*RequestEncryptedKeyshare) Descriptor() ([]byte, []int) { return file_fairyring_common_shared_types_proto_rawDescGZIP(), []int{8} } -func (x *RequestPrivateKeyshare) GetCreator() string { +func (x *RequestEncryptedKeyshare) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *RequestPrivateKeyshare) GetRequestId() string { +func (x *RequestEncryptedKeyshare) GetRequestId() string { if x != nil { return x.RequestId } return "" } +// EncryptedKeyshare defines the storage structure for +// the list of encrypted keyshares (unaggregated) type EncryptedKeyshare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -6252,6 +6266,8 @@ func (x *EncryptedKeyshare) GetPrivateKeyshares() []*IndexedEncryptedKeyshare { return nil } +// IndexedEncryptedKeyshare defines the storage of submitted encrypted +// keyshares along with their indices (can be decrypted and aggregated) type IndexedEncryptedKeyshare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -6344,53 +6360,54 @@ var file_fairyring_common_shared_types_proto_rawDesc = []byte{ 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, - 0x79, 0x22, 0x61, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, - 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, - 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x65, 0x78, - 0x70, 0x69, 0x72, 0x79, 0x22, 0x61, 0x0a, 0x0f, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, - 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, - 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x22, 0x51, 0x0a, 0x16, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x8a, 0x01, 0x0a, 0x11, 0x45, - 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x12, 0x57, - 0x0a, 0x11, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x49, 0x6e, 0x64, - 0x65, 0x78, 0x65, 0x64, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x10, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0x8e, 0x01, 0x0a, 0x18, 0x49, 0x6e, 0x64, 0x65, - 0x78, 0x65, 0x64, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, - 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, - 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x38, - 0x0a, 0x18, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x16, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x42, 0xac, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x42, 0x10, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, - 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, - 0x10, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0xca, 0x02, 0x10, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x43, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0xe2, 0x02, 0x1c, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x5c, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, - 0x3a, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x79, 0x22, 0x62, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, + 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x65, + 0x78, 0x70, 0x69, 0x72, 0x79, 0x22, 0x62, 0x0a, 0x0f, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, + 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x22, 0x53, 0x0a, 0x18, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, + 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x8a, + 0x01, 0x0a, 0x11, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x65, 0x72, 0x12, 0x57, 0x0a, 0x11, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, + 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x10, 0x70, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0x8e, 0x01, 0x0a, 0x18, + 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, + 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x65, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x65, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, + 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x42, 0xac, 0x01, 0x0a, + 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x42, 0x10, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x54, 0x79, 0x70, + 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x46, + 0x43, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x43, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0xca, 0x02, 0x10, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x5c, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0xe2, 0x02, 0x1c, 0x46, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -6415,7 +6432,7 @@ var file_fairyring_common_shared_types_proto_goTypes = []interface{}{ (*GetPrivateKeyshareResponse)(nil), // 5: fairyring.common.GetPrivateKeyshareResponse (*ActivePublicKey)(nil), // 6: fairyring.common.ActivePublicKey (*QueuedPublicKey)(nil), // 7: fairyring.common.QueuedPublicKey - (*RequestPrivateKeyshare)(nil), // 8: fairyring.common.RequestPrivateKeyshare + (*RequestEncryptedKeyshare)(nil), // 8: fairyring.common.RequestEncryptedKeyshare (*EncryptedKeyshare)(nil), // 9: fairyring.common.EncryptedKeyshare (*IndexedEncryptedKeyshare)(nil), // 10: fairyring.common.IndexedEncryptedKeyshare (*durationpb.Duration)(nil), // 11: google.protobuf.Duration @@ -6533,7 +6550,7 @@ func file_fairyring_common_shared_types_proto_init() { } } file_fairyring_common_shared_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestPrivateKeyshare); i { + switch v := v.(*RequestEncryptedKeyshare); i { case 0: return &v.state case 1: diff --git a/api/fairyring/keyshare/aggregated_key_share.pulsar.go b/api/fairyring/keyshare/aggregated_key_share.pulsar.go index 0e042b15..824e1e96 100644 --- a/api/fairyring/keyshare/aggregated_key_share.pulsar.go +++ b/api/fairyring/keyshare/aggregated_key_share.pulsar.go @@ -493,6 +493,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// AggregatedKeyShare defines the structure and height for an aggregated keyshare type AggregatedKeyShare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/api/fairyring/keyshare/authorized_address.pulsar.go b/api/fairyring/keyshare/authorized_address.pulsar.go index 2dcf39fe..8972b5f0 100644 --- a/api/fairyring/keyshare/authorized_address.pulsar.go +++ b/api/fairyring/keyshare/authorized_address.pulsar.go @@ -13,18 +13,18 @@ import ( ) var ( - md_AuthorizedAddress protoreflect.MessageDescriptor - fd_AuthorizedAddress_target protoreflect.FieldDescriptor - fd_AuthorizedAddress_isAuthorized protoreflect.FieldDescriptor - fd_AuthorizedAddress_authorizedBy protoreflect.FieldDescriptor + md_AuthorizedAddress protoreflect.MessageDescriptor + fd_AuthorizedAddress_target protoreflect.FieldDescriptor + fd_AuthorizedAddress_is_authorized protoreflect.FieldDescriptor + fd_AuthorizedAddress_authorized_by protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_authorized_address_proto_init() md_AuthorizedAddress = File_fairyring_keyshare_authorized_address_proto.Messages().ByName("AuthorizedAddress") fd_AuthorizedAddress_target = md_AuthorizedAddress.Fields().ByName("target") - fd_AuthorizedAddress_isAuthorized = md_AuthorizedAddress.Fields().ByName("isAuthorized") - fd_AuthorizedAddress_authorizedBy = md_AuthorizedAddress.Fields().ByName("authorizedBy") + fd_AuthorizedAddress_is_authorized = md_AuthorizedAddress.Fields().ByName("is_authorized") + fd_AuthorizedAddress_authorized_by = md_AuthorizedAddress.Fields().ByName("authorized_by") } var _ protoreflect.Message = (*fastReflection_AuthorizedAddress)(nil) @@ -100,13 +100,13 @@ func (x *fastReflection_AuthorizedAddress) Range(f func(protoreflect.FieldDescri } if x.IsAuthorized != false { value := protoreflect.ValueOfBool(x.IsAuthorized) - if !f(fd_AuthorizedAddress_isAuthorized, value) { + if !f(fd_AuthorizedAddress_is_authorized, value) { return } } if x.AuthorizedBy != "" { value := protoreflect.ValueOfString(x.AuthorizedBy) - if !f(fd_AuthorizedAddress_authorizedBy, value) { + if !f(fd_AuthorizedAddress_authorized_by, value) { return } } @@ -127,9 +127,9 @@ func (x *fastReflection_AuthorizedAddress) Has(fd protoreflect.FieldDescriptor) switch fd.FullName() { case "fairyring.keyshare.AuthorizedAddress.target": return x.Target != "" - case "fairyring.keyshare.AuthorizedAddress.isAuthorized": + case "fairyring.keyshare.AuthorizedAddress.is_authorized": return x.IsAuthorized != false - case "fairyring.keyshare.AuthorizedAddress.authorizedBy": + case "fairyring.keyshare.AuthorizedAddress.authorized_by": return x.AuthorizedBy != "" default: if fd.IsExtension() { @@ -149,9 +149,9 @@ func (x *fastReflection_AuthorizedAddress) Clear(fd protoreflect.FieldDescriptor switch fd.FullName() { case "fairyring.keyshare.AuthorizedAddress.target": x.Target = "" - case "fairyring.keyshare.AuthorizedAddress.isAuthorized": + case "fairyring.keyshare.AuthorizedAddress.is_authorized": x.IsAuthorized = false - case "fairyring.keyshare.AuthorizedAddress.authorizedBy": + case "fairyring.keyshare.AuthorizedAddress.authorized_by": x.AuthorizedBy = "" default: if fd.IsExtension() { @@ -172,10 +172,10 @@ func (x *fastReflection_AuthorizedAddress) Get(descriptor protoreflect.FieldDesc case "fairyring.keyshare.AuthorizedAddress.target": value := x.Target return protoreflect.ValueOfString(value) - case "fairyring.keyshare.AuthorizedAddress.isAuthorized": + case "fairyring.keyshare.AuthorizedAddress.is_authorized": value := x.IsAuthorized return protoreflect.ValueOfBool(value) - case "fairyring.keyshare.AuthorizedAddress.authorizedBy": + case "fairyring.keyshare.AuthorizedAddress.authorized_by": value := x.AuthorizedBy return protoreflect.ValueOfString(value) default: @@ -200,9 +200,9 @@ func (x *fastReflection_AuthorizedAddress) Set(fd protoreflect.FieldDescriptor, switch fd.FullName() { case "fairyring.keyshare.AuthorizedAddress.target": x.Target = value.Interface().(string) - case "fairyring.keyshare.AuthorizedAddress.isAuthorized": + case "fairyring.keyshare.AuthorizedAddress.is_authorized": x.IsAuthorized = value.Bool() - case "fairyring.keyshare.AuthorizedAddress.authorizedBy": + case "fairyring.keyshare.AuthorizedAddress.authorized_by": x.AuthorizedBy = value.Interface().(string) default: if fd.IsExtension() { @@ -226,10 +226,10 @@ func (x *fastReflection_AuthorizedAddress) Mutable(fd protoreflect.FieldDescript switch fd.FullName() { case "fairyring.keyshare.AuthorizedAddress.target": panic(fmt.Errorf("field target of message fairyring.keyshare.AuthorizedAddress is not mutable")) - case "fairyring.keyshare.AuthorizedAddress.isAuthorized": - panic(fmt.Errorf("field isAuthorized of message fairyring.keyshare.AuthorizedAddress is not mutable")) - case "fairyring.keyshare.AuthorizedAddress.authorizedBy": - panic(fmt.Errorf("field authorizedBy of message fairyring.keyshare.AuthorizedAddress is not mutable")) + case "fairyring.keyshare.AuthorizedAddress.is_authorized": + panic(fmt.Errorf("field is_authorized of message fairyring.keyshare.AuthorizedAddress is not mutable")) + case "fairyring.keyshare.AuthorizedAddress.authorized_by": + panic(fmt.Errorf("field authorized_by of message fairyring.keyshare.AuthorizedAddress is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AuthorizedAddress")) @@ -245,9 +245,9 @@ func (x *fastReflection_AuthorizedAddress) NewField(fd protoreflect.FieldDescrip switch fd.FullName() { case "fairyring.keyshare.AuthorizedAddress.target": return protoreflect.ValueOfString("") - case "fairyring.keyshare.AuthorizedAddress.isAuthorized": + case "fairyring.keyshare.AuthorizedAddress.is_authorized": return protoreflect.ValueOfBool(false) - case "fairyring.keyshare.AuthorizedAddress.authorizedBy": + case "fairyring.keyshare.AuthorizedAddress.authorized_by": return protoreflect.ValueOfString("") default: if fd.IsExtension() { @@ -563,14 +563,15 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// AuthorizedAddress defines if an address is authorized to submit pubkeys type AuthorizedAddress struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` - IsAuthorized bool `protobuf:"varint,2,opt,name=isAuthorized,proto3" json:"isAuthorized,omitempty"` - AuthorizedBy string `protobuf:"bytes,3,opt,name=authorizedBy,proto3" json:"authorizedBy,omitempty"` + IsAuthorized bool `protobuf:"varint,2,opt,name=is_authorized,json=isAuthorized,proto3" json:"is_authorized,omitempty"` + AuthorizedBy string `protobuf:"bytes,3,opt,name=authorized_by,json=authorizedBy,proto3" json:"authorized_by,omitempty"` } func (x *AuthorizedAddress) Reset() { @@ -621,26 +622,27 @@ var file_fairyring_keyshare_authorized_address_proto_rawDesc = []byte{ 0x68, 0x61, 0x72, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x22, 0x73, 0x0a, 0x11, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, + 0x65, 0x22, 0x75, 0x0a, 0x11, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x22, - 0x0a, 0x0c, 0x69, 0x73, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, - 0x65, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, - 0x42, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x7a, 0x65, 0x64, 0x42, 0x79, 0x42, 0xbe, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x42, 0x16, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x23, + 0x0a, 0x0d, 0x69, 0x73, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x7a, 0x65, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, + 0x64, 0x5f, 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x42, 0x79, 0x42, 0xbe, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, + 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x42, 0x16, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, + 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, + 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( diff --git a/api/fairyring/keyshare/commitments.pulsar.go b/api/fairyring/keyshare/commitments.pulsar.go index 691e1017..1e6fb238 100644 --- a/api/fairyring/keyshare/commitments.pulsar.go +++ b/api/fairyring/keyshare/commitments.pulsar.go @@ -505,6 +505,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// Commitments defines the list of commitments to verify the +// keyshares submitted by validators type Commitments struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/api/fairyring/keyshare/general_key_share.pulsar.go b/api/fairyring/keyshare/general_key_share.pulsar.go deleted file mode 100644 index 15702218..00000000 --- a/api/fairyring/keyshare/general_key_share.pulsar.go +++ /dev/null @@ -1,1836 +0,0 @@ -// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package keyshare - -import ( - fmt "fmt" - runtime "github.com/cosmos/cosmos-proto/runtime" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoiface "google.golang.org/protobuf/runtime/protoiface" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - io "io" - reflect "reflect" - sync "sync" -) - -var ( - md_GeneralKeyShare protoreflect.MessageDescriptor - fd_GeneralKeyShare_validator protoreflect.FieldDescriptor - fd_GeneralKeyShare_idType protoreflect.FieldDescriptor - fd_GeneralKeyShare_idValue protoreflect.FieldDescriptor - fd_GeneralKeyShare_keyShare protoreflect.FieldDescriptor - fd_GeneralKeyShare_keyShareIndex protoreflect.FieldDescriptor - fd_GeneralKeyShare_receivedTimestamp protoreflect.FieldDescriptor - fd_GeneralKeyShare_receivedBlockHeight protoreflect.FieldDescriptor -) - -func init() { - file_fairyring_keyshare_general_key_share_proto_init() - md_GeneralKeyShare = File_fairyring_keyshare_general_key_share_proto.Messages().ByName("GeneralKeyShare") - fd_GeneralKeyShare_validator = md_GeneralKeyShare.Fields().ByName("validator") - fd_GeneralKeyShare_idType = md_GeneralKeyShare.Fields().ByName("idType") - fd_GeneralKeyShare_idValue = md_GeneralKeyShare.Fields().ByName("idValue") - fd_GeneralKeyShare_keyShare = md_GeneralKeyShare.Fields().ByName("keyShare") - fd_GeneralKeyShare_keyShareIndex = md_GeneralKeyShare.Fields().ByName("keyShareIndex") - fd_GeneralKeyShare_receivedTimestamp = md_GeneralKeyShare.Fields().ByName("receivedTimestamp") - fd_GeneralKeyShare_receivedBlockHeight = md_GeneralKeyShare.Fields().ByName("receivedBlockHeight") -} - -var _ protoreflect.Message = (*fastReflection_GeneralKeyShare)(nil) - -type fastReflection_GeneralKeyShare GeneralKeyShare - -func (x *GeneralKeyShare) ProtoReflect() protoreflect.Message { - return (*fastReflection_GeneralKeyShare)(x) -} - -func (x *GeneralKeyShare) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_keyshare_general_key_share_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 _fastReflection_GeneralKeyShare_messageType fastReflection_GeneralKeyShare_messageType -var _ protoreflect.MessageType = fastReflection_GeneralKeyShare_messageType{} - -type fastReflection_GeneralKeyShare_messageType struct{} - -func (x fastReflection_GeneralKeyShare_messageType) Zero() protoreflect.Message { - return (*fastReflection_GeneralKeyShare)(nil) -} -func (x fastReflection_GeneralKeyShare_messageType) New() protoreflect.Message { - return new(fastReflection_GeneralKeyShare) -} -func (x fastReflection_GeneralKeyShare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GeneralKeyShare -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_GeneralKeyShare) Descriptor() protoreflect.MessageDescriptor { - return md_GeneralKeyShare -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_GeneralKeyShare) Type() protoreflect.MessageType { - return _fastReflection_GeneralKeyShare_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_GeneralKeyShare) New() protoreflect.Message { - return new(fastReflection_GeneralKeyShare) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_GeneralKeyShare) Interface() protoreflect.ProtoMessage { - return (*GeneralKeyShare)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_GeneralKeyShare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Validator != "" { - value := protoreflect.ValueOfString(x.Validator) - if !f(fd_GeneralKeyShare_validator, value) { - return - } - } - if x.IdType != "" { - value := protoreflect.ValueOfString(x.IdType) - if !f(fd_GeneralKeyShare_idType, value) { - return - } - } - if x.IdValue != "" { - value := protoreflect.ValueOfString(x.IdValue) - if !f(fd_GeneralKeyShare_idValue, value) { - return - } - } - if x.KeyShare != "" { - value := protoreflect.ValueOfString(x.KeyShare) - if !f(fd_GeneralKeyShare_keyShare, value) { - return - } - } - if x.KeyShareIndex != uint64(0) { - value := protoreflect.ValueOfUint64(x.KeyShareIndex) - if !f(fd_GeneralKeyShare_keyShareIndex, value) { - return - } - } - if x.ReceivedTimestamp != uint64(0) { - value := protoreflect.ValueOfUint64(x.ReceivedTimestamp) - if !f(fd_GeneralKeyShare_receivedTimestamp, value) { - return - } - } - if x.ReceivedBlockHeight != uint64(0) { - value := protoreflect.ValueOfUint64(x.ReceivedBlockHeight) - if !f(fd_GeneralKeyShare_receivedBlockHeight, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_GeneralKeyShare) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "fairyring.keyshare.GeneralKeyShare.validator": - return x.Validator != "" - case "fairyring.keyshare.GeneralKeyShare.idType": - return x.IdType != "" - case "fairyring.keyshare.GeneralKeyShare.idValue": - return x.IdValue != "" - case "fairyring.keyshare.GeneralKeyShare.keyShare": - return x.KeyShare != "" - case "fairyring.keyshare.GeneralKeyShare.keyShareIndex": - return x.KeyShareIndex != uint64(0) - case "fairyring.keyshare.GeneralKeyShare.receivedTimestamp": - return x.ReceivedTimestamp != uint64(0) - case "fairyring.keyshare.GeneralKeyShare.receivedBlockHeight": - return x.ReceivedBlockHeight != uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyShare")) - } - panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyShare does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GeneralKeyShare) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "fairyring.keyshare.GeneralKeyShare.validator": - x.Validator = "" - case "fairyring.keyshare.GeneralKeyShare.idType": - x.IdType = "" - case "fairyring.keyshare.GeneralKeyShare.idValue": - x.IdValue = "" - case "fairyring.keyshare.GeneralKeyShare.keyShare": - x.KeyShare = "" - case "fairyring.keyshare.GeneralKeyShare.keyShareIndex": - x.KeyShareIndex = uint64(0) - case "fairyring.keyshare.GeneralKeyShare.receivedTimestamp": - x.ReceivedTimestamp = uint64(0) - case "fairyring.keyshare.GeneralKeyShare.receivedBlockHeight": - x.ReceivedBlockHeight = uint64(0) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyShare")) - } - panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyShare does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GeneralKeyShare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "fairyring.keyshare.GeneralKeyShare.validator": - value := x.Validator - return protoreflect.ValueOfString(value) - case "fairyring.keyshare.GeneralKeyShare.idType": - value := x.IdType - return protoreflect.ValueOfString(value) - case "fairyring.keyshare.GeneralKeyShare.idValue": - value := x.IdValue - return protoreflect.ValueOfString(value) - case "fairyring.keyshare.GeneralKeyShare.keyShare": - value := x.KeyShare - return protoreflect.ValueOfString(value) - case "fairyring.keyshare.GeneralKeyShare.keyShareIndex": - value := x.KeyShareIndex - return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.GeneralKeyShare.receivedTimestamp": - value := x.ReceivedTimestamp - return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.GeneralKeyShare.receivedBlockHeight": - value := x.ReceivedBlockHeight - return protoreflect.ValueOfUint64(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyShare")) - } - panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyShare does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GeneralKeyShare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "fairyring.keyshare.GeneralKeyShare.validator": - x.Validator = value.Interface().(string) - case "fairyring.keyshare.GeneralKeyShare.idType": - x.IdType = value.Interface().(string) - case "fairyring.keyshare.GeneralKeyShare.idValue": - x.IdValue = value.Interface().(string) - case "fairyring.keyshare.GeneralKeyShare.keyShare": - x.KeyShare = value.Interface().(string) - case "fairyring.keyshare.GeneralKeyShare.keyShareIndex": - x.KeyShareIndex = value.Uint() - case "fairyring.keyshare.GeneralKeyShare.receivedTimestamp": - x.ReceivedTimestamp = value.Uint() - case "fairyring.keyshare.GeneralKeyShare.receivedBlockHeight": - x.ReceivedBlockHeight = value.Uint() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyShare")) - } - panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyShare does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GeneralKeyShare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "fairyring.keyshare.GeneralKeyShare.validator": - panic(fmt.Errorf("field validator of message fairyring.keyshare.GeneralKeyShare is not mutable")) - case "fairyring.keyshare.GeneralKeyShare.idType": - panic(fmt.Errorf("field idType of message fairyring.keyshare.GeneralKeyShare is not mutable")) - case "fairyring.keyshare.GeneralKeyShare.idValue": - panic(fmt.Errorf("field idValue of message fairyring.keyshare.GeneralKeyShare is not mutable")) - case "fairyring.keyshare.GeneralKeyShare.keyShare": - panic(fmt.Errorf("field keyShare of message fairyring.keyshare.GeneralKeyShare is not mutable")) - case "fairyring.keyshare.GeneralKeyShare.keyShareIndex": - panic(fmt.Errorf("field keyShareIndex of message fairyring.keyshare.GeneralKeyShare is not mutable")) - case "fairyring.keyshare.GeneralKeyShare.receivedTimestamp": - panic(fmt.Errorf("field receivedTimestamp of message fairyring.keyshare.GeneralKeyShare is not mutable")) - case "fairyring.keyshare.GeneralKeyShare.receivedBlockHeight": - panic(fmt.Errorf("field receivedBlockHeight of message fairyring.keyshare.GeneralKeyShare is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyShare")) - } - panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyShare does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GeneralKeyShare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "fairyring.keyshare.GeneralKeyShare.validator": - return protoreflect.ValueOfString("") - case "fairyring.keyshare.GeneralKeyShare.idType": - return protoreflect.ValueOfString("") - case "fairyring.keyshare.GeneralKeyShare.idValue": - return protoreflect.ValueOfString("") - case "fairyring.keyshare.GeneralKeyShare.keyShare": - return protoreflect.ValueOfString("") - case "fairyring.keyshare.GeneralKeyShare.keyShareIndex": - return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.GeneralKeyShare.receivedTimestamp": - return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.GeneralKeyShare.receivedBlockHeight": - return protoreflect.ValueOfUint64(uint64(0)) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyShare")) - } - panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyShare does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GeneralKeyShare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.GeneralKeyShare", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GeneralKeyShare) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GeneralKeyShare) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_GeneralKeyShare) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_GeneralKeyShare) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GeneralKeyShare) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Validator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.IdType) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.IdValue) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.KeyShare) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.KeyShareIndex != 0 { - n += 1 + runtime.Sov(uint64(x.KeyShareIndex)) - } - if x.ReceivedTimestamp != 0 { - n += 1 + runtime.Sov(uint64(x.ReceivedTimestamp)) - } - if x.ReceivedBlockHeight != 0 { - n += 1 + runtime.Sov(uint64(x.ReceivedBlockHeight)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GeneralKeyShare) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.ReceivedBlockHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ReceivedBlockHeight)) - i-- - dAtA[i] = 0x38 - } - if x.ReceivedTimestamp != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ReceivedTimestamp)) - i-- - dAtA[i] = 0x30 - } - if x.KeyShareIndex != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyShareIndex)) - i-- - dAtA[i] = 0x28 - } - if len(x.KeyShare) > 0 { - i -= len(x.KeyShare) - copy(dAtA[i:], x.KeyShare) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.KeyShare))) - i-- - dAtA[i] = 0x22 - } - if len(x.IdValue) > 0 { - i -= len(x.IdValue) - copy(dAtA[i:], x.IdValue) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.IdValue))) - i-- - dAtA[i] = 0x1a - } - if len(x.IdType) > 0 { - i -= len(x.IdType) - copy(dAtA[i:], x.IdType) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.IdType))) - i-- - dAtA[i] = 0x12 - } - if len(x.Validator) > 0 { - i -= len(x.Validator) - copy(dAtA[i:], x.Validator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Validator))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GeneralKeyShare) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GeneralKeyShare: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GeneralKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Validator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IdType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.IdType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IdValue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.IdValue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.KeyShare = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) - } - x.KeyShareIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.KeyShareIndex |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReceivedTimestamp", wireType) - } - x.ReceivedTimestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ReceivedTimestamp |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReceivedBlockHeight", wireType) - } - x.ReceivedBlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ReceivedBlockHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_ValidatorEncryptedKeyShare protoreflect.MessageDescriptor - fd_ValidatorEncryptedKeyShare_validator protoreflect.FieldDescriptor - fd_ValidatorEncryptedKeyShare_requester protoreflect.FieldDescriptor - fd_ValidatorEncryptedKeyShare_keyShare protoreflect.FieldDescriptor - fd_ValidatorEncryptedKeyShare_keyShareIndex protoreflect.FieldDescriptor - fd_ValidatorEncryptedKeyShare_receivedTimestamp protoreflect.FieldDescriptor - fd_ValidatorEncryptedKeyShare_receivedBlockHeight protoreflect.FieldDescriptor - fd_ValidatorEncryptedKeyShare_identity protoreflect.FieldDescriptor -) - -func init() { - file_fairyring_keyshare_general_key_share_proto_init() - md_ValidatorEncryptedKeyShare = File_fairyring_keyshare_general_key_share_proto.Messages().ByName("ValidatorEncryptedKeyShare") - fd_ValidatorEncryptedKeyShare_validator = md_ValidatorEncryptedKeyShare.Fields().ByName("validator") - fd_ValidatorEncryptedKeyShare_requester = md_ValidatorEncryptedKeyShare.Fields().ByName("requester") - fd_ValidatorEncryptedKeyShare_keyShare = md_ValidatorEncryptedKeyShare.Fields().ByName("keyShare") - fd_ValidatorEncryptedKeyShare_keyShareIndex = md_ValidatorEncryptedKeyShare.Fields().ByName("keyShareIndex") - fd_ValidatorEncryptedKeyShare_receivedTimestamp = md_ValidatorEncryptedKeyShare.Fields().ByName("receivedTimestamp") - fd_ValidatorEncryptedKeyShare_receivedBlockHeight = md_ValidatorEncryptedKeyShare.Fields().ByName("receivedBlockHeight") - fd_ValidatorEncryptedKeyShare_identity = md_ValidatorEncryptedKeyShare.Fields().ByName("identity") -} - -var _ protoreflect.Message = (*fastReflection_ValidatorEncryptedKeyShare)(nil) - -type fastReflection_ValidatorEncryptedKeyShare ValidatorEncryptedKeyShare - -func (x *ValidatorEncryptedKeyShare) ProtoReflect() protoreflect.Message { - return (*fastReflection_ValidatorEncryptedKeyShare)(x) -} - -func (x *ValidatorEncryptedKeyShare) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_keyshare_general_key_share_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 _fastReflection_ValidatorEncryptedKeyShare_messageType fastReflection_ValidatorEncryptedKeyShare_messageType -var _ protoreflect.MessageType = fastReflection_ValidatorEncryptedKeyShare_messageType{} - -type fastReflection_ValidatorEncryptedKeyShare_messageType struct{} - -func (x fastReflection_ValidatorEncryptedKeyShare_messageType) Zero() protoreflect.Message { - return (*fastReflection_ValidatorEncryptedKeyShare)(nil) -} -func (x fastReflection_ValidatorEncryptedKeyShare_messageType) New() protoreflect.Message { - return new(fastReflection_ValidatorEncryptedKeyShare) -} -func (x fastReflection_ValidatorEncryptedKeyShare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ValidatorEncryptedKeyShare -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_ValidatorEncryptedKeyShare) Descriptor() protoreflect.MessageDescriptor { - return md_ValidatorEncryptedKeyShare -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_ValidatorEncryptedKeyShare) Type() protoreflect.MessageType { - return _fastReflection_ValidatorEncryptedKeyShare_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_ValidatorEncryptedKeyShare) New() protoreflect.Message { - return new(fastReflection_ValidatorEncryptedKeyShare) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_ValidatorEncryptedKeyShare) Interface() protoreflect.ProtoMessage { - return (*ValidatorEncryptedKeyShare)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_ValidatorEncryptedKeyShare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Validator != "" { - value := protoreflect.ValueOfString(x.Validator) - if !f(fd_ValidatorEncryptedKeyShare_validator, value) { - return - } - } - if x.Requester != "" { - value := protoreflect.ValueOfString(x.Requester) - if !f(fd_ValidatorEncryptedKeyShare_requester, value) { - return - } - } - if x.KeyShare != "" { - value := protoreflect.ValueOfString(x.KeyShare) - if !f(fd_ValidatorEncryptedKeyShare_keyShare, value) { - return - } - } - if x.KeyShareIndex != uint64(0) { - value := protoreflect.ValueOfUint64(x.KeyShareIndex) - if !f(fd_ValidatorEncryptedKeyShare_keyShareIndex, value) { - return - } - } - if x.ReceivedTimestamp != uint64(0) { - value := protoreflect.ValueOfUint64(x.ReceivedTimestamp) - if !f(fd_ValidatorEncryptedKeyShare_receivedTimestamp, value) { - return - } - } - if x.ReceivedBlockHeight != uint64(0) { - value := protoreflect.ValueOfUint64(x.ReceivedBlockHeight) - if !f(fd_ValidatorEncryptedKeyShare_receivedBlockHeight, value) { - return - } - } - if x.Identity != "" { - value := protoreflect.ValueOfString(x.Identity) - if !f(fd_ValidatorEncryptedKeyShare_identity, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_ValidatorEncryptedKeyShare) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "fairyring.keyshare.ValidatorEncryptedKeyShare.validator": - return x.Validator != "" - case "fairyring.keyshare.ValidatorEncryptedKeyShare.requester": - return x.Requester != "" - case "fairyring.keyshare.ValidatorEncryptedKeyShare.keyShare": - return x.KeyShare != "" - case "fairyring.keyshare.ValidatorEncryptedKeyShare.keyShareIndex": - return x.KeyShareIndex != uint64(0) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.receivedTimestamp": - return x.ReceivedTimestamp != uint64(0) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.receivedBlockHeight": - return x.ReceivedBlockHeight != uint64(0) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.identity": - return x.Identity != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyShare")) - } - panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyShare does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ValidatorEncryptedKeyShare) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "fairyring.keyshare.ValidatorEncryptedKeyShare.validator": - x.Validator = "" - case "fairyring.keyshare.ValidatorEncryptedKeyShare.requester": - x.Requester = "" - case "fairyring.keyshare.ValidatorEncryptedKeyShare.keyShare": - x.KeyShare = "" - case "fairyring.keyshare.ValidatorEncryptedKeyShare.keyShareIndex": - x.KeyShareIndex = uint64(0) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.receivedTimestamp": - x.ReceivedTimestamp = uint64(0) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.receivedBlockHeight": - x.ReceivedBlockHeight = uint64(0) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.identity": - x.Identity = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyShare")) - } - panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyShare does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ValidatorEncryptedKeyShare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "fairyring.keyshare.ValidatorEncryptedKeyShare.validator": - value := x.Validator - return protoreflect.ValueOfString(value) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.requester": - value := x.Requester - return protoreflect.ValueOfString(value) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.keyShare": - value := x.KeyShare - return protoreflect.ValueOfString(value) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.keyShareIndex": - value := x.KeyShareIndex - return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.receivedTimestamp": - value := x.ReceivedTimestamp - return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.receivedBlockHeight": - value := x.ReceivedBlockHeight - return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.identity": - value := x.Identity - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyShare")) - } - panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyShare does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ValidatorEncryptedKeyShare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "fairyring.keyshare.ValidatorEncryptedKeyShare.validator": - x.Validator = value.Interface().(string) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.requester": - x.Requester = value.Interface().(string) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.keyShare": - x.KeyShare = value.Interface().(string) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.keyShareIndex": - x.KeyShareIndex = value.Uint() - case "fairyring.keyshare.ValidatorEncryptedKeyShare.receivedTimestamp": - x.ReceivedTimestamp = value.Uint() - case "fairyring.keyshare.ValidatorEncryptedKeyShare.receivedBlockHeight": - x.ReceivedBlockHeight = value.Uint() - case "fairyring.keyshare.ValidatorEncryptedKeyShare.identity": - x.Identity = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyShare")) - } - panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyShare does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ValidatorEncryptedKeyShare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "fairyring.keyshare.ValidatorEncryptedKeyShare.validator": - panic(fmt.Errorf("field validator of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.requester": - panic(fmt.Errorf("field requester of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.keyShare": - panic(fmt.Errorf("field keyShare of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.keyShareIndex": - panic(fmt.Errorf("field keyShareIndex of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.receivedTimestamp": - panic(fmt.Errorf("field receivedTimestamp of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.receivedBlockHeight": - panic(fmt.Errorf("field receivedBlockHeight of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.identity": - panic(fmt.Errorf("field identity of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyShare")) - } - panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyShare does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ValidatorEncryptedKeyShare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "fairyring.keyshare.ValidatorEncryptedKeyShare.validator": - return protoreflect.ValueOfString("") - case "fairyring.keyshare.ValidatorEncryptedKeyShare.requester": - return protoreflect.ValueOfString("") - case "fairyring.keyshare.ValidatorEncryptedKeyShare.keyShare": - return protoreflect.ValueOfString("") - case "fairyring.keyshare.ValidatorEncryptedKeyShare.keyShareIndex": - return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.receivedTimestamp": - return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.receivedBlockHeight": - return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.identity": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyShare")) - } - panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyShare does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ValidatorEncryptedKeyShare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.ValidatorEncryptedKeyShare", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ValidatorEncryptedKeyShare) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ValidatorEncryptedKeyShare) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_ValidatorEncryptedKeyShare) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_ValidatorEncryptedKeyShare) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ValidatorEncryptedKeyShare) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - l = len(x.Validator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Requester) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.KeyShare) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.KeyShareIndex != 0 { - n += 1 + runtime.Sov(uint64(x.KeyShareIndex)) - } - if x.ReceivedTimestamp != 0 { - n += 1 + runtime.Sov(uint64(x.ReceivedTimestamp)) - } - if x.ReceivedBlockHeight != 0 { - n += 1 + runtime.Sov(uint64(x.ReceivedBlockHeight)) - } - l = len(x.Identity) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ValidatorEncryptedKeyShare) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.Identity) > 0 { - i -= len(x.Identity) - copy(dAtA[i:], x.Identity) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Identity))) - i-- - dAtA[i] = 0x3a - } - if x.ReceivedBlockHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ReceivedBlockHeight)) - i-- - dAtA[i] = 0x30 - } - if x.ReceivedTimestamp != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.ReceivedTimestamp)) - i-- - dAtA[i] = 0x28 - } - if x.KeyShareIndex != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyShareIndex)) - i-- - dAtA[i] = 0x20 - } - if len(x.KeyShare) > 0 { - i -= len(x.KeyShare) - copy(dAtA[i:], x.KeyShare) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.KeyShare))) - i-- - dAtA[i] = 0x1a - } - if len(x.Requester) > 0 { - i -= len(x.Requester) - copy(dAtA[i:], x.Requester) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Requester))) - i-- - dAtA[i] = 0x12 - } - if len(x.Validator) > 0 { - i -= len(x.Validator) - copy(dAtA[i:], x.Validator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Validator))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ValidatorEncryptedKeyShare) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValidatorEncryptedKeyShare: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValidatorEncryptedKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Validator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Requester", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Requester = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.KeyShare = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) - } - x.KeyShareIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.KeyShareIndex |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReceivedTimestamp", wireType) - } - x.ReceivedTimestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ReceivedTimestamp |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReceivedBlockHeight", wireType) - } - x.ReceivedBlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.ReceivedBlockHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: fairyring/keyshare/general_key_share.proto - -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) -) - -type GeneralKeyShare struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` - IdType string `protobuf:"bytes,2,opt,name=idType,proto3" json:"idType,omitempty"` - IdValue string `protobuf:"bytes,3,opt,name=idValue,proto3" json:"idValue,omitempty"` - KeyShare string `protobuf:"bytes,4,opt,name=keyShare,proto3" json:"keyShare,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,5,opt,name=keyShareIndex,proto3" json:"keyShareIndex,omitempty"` - ReceivedTimestamp uint64 `protobuf:"varint,6,opt,name=receivedTimestamp,proto3" json:"receivedTimestamp,omitempty"` - ReceivedBlockHeight uint64 `protobuf:"varint,7,opt,name=receivedBlockHeight,proto3" json:"receivedBlockHeight,omitempty"` -} - -func (x *GeneralKeyShare) Reset() { - *x = GeneralKeyShare{} - if protoimpl.UnsafeEnabled { - mi := &file_fairyring_keyshare_general_key_share_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GeneralKeyShare) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GeneralKeyShare) ProtoMessage() {} - -// Deprecated: Use GeneralKeyShare.ProtoReflect.Descriptor instead. -func (*GeneralKeyShare) Descriptor() ([]byte, []int) { - return file_fairyring_keyshare_general_key_share_proto_rawDescGZIP(), []int{0} -} - -func (x *GeneralKeyShare) GetValidator() string { - if x != nil { - return x.Validator - } - return "" -} - -func (x *GeneralKeyShare) GetIdType() string { - if x != nil { - return x.IdType - } - return "" -} - -func (x *GeneralKeyShare) GetIdValue() string { - if x != nil { - return x.IdValue - } - return "" -} - -func (x *GeneralKeyShare) GetKeyShare() string { - if x != nil { - return x.KeyShare - } - return "" -} - -func (x *GeneralKeyShare) GetKeyShareIndex() uint64 { - if x != nil { - return x.KeyShareIndex - } - return 0 -} - -func (x *GeneralKeyShare) GetReceivedTimestamp() uint64 { - if x != nil { - return x.ReceivedTimestamp - } - return 0 -} - -func (x *GeneralKeyShare) GetReceivedBlockHeight() uint64 { - if x != nil { - return x.ReceivedBlockHeight - } - return 0 -} - -type ValidatorEncryptedKeyShare struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` - Requester string `protobuf:"bytes,2,opt,name=requester,proto3" json:"requester,omitempty"` - KeyShare string `protobuf:"bytes,3,opt,name=keyShare,proto3" json:"keyShare,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,4,opt,name=keyShareIndex,proto3" json:"keyShareIndex,omitempty"` - ReceivedTimestamp uint64 `protobuf:"varint,5,opt,name=receivedTimestamp,proto3" json:"receivedTimestamp,omitempty"` - ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=receivedBlockHeight,proto3" json:"receivedBlockHeight,omitempty"` - Identity string `protobuf:"bytes,7,opt,name=identity,proto3" json:"identity,omitempty"` -} - -func (x *ValidatorEncryptedKeyShare) Reset() { - *x = ValidatorEncryptedKeyShare{} - if protoimpl.UnsafeEnabled { - mi := &file_fairyring_keyshare_general_key_share_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ValidatorEncryptedKeyShare) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValidatorEncryptedKeyShare) ProtoMessage() {} - -// Deprecated: Use ValidatorEncryptedKeyShare.ProtoReflect.Descriptor instead. -func (*ValidatorEncryptedKeyShare) Descriptor() ([]byte, []int) { - return file_fairyring_keyshare_general_key_share_proto_rawDescGZIP(), []int{1} -} - -func (x *ValidatorEncryptedKeyShare) GetValidator() string { - if x != nil { - return x.Validator - } - return "" -} - -func (x *ValidatorEncryptedKeyShare) GetRequester() string { - if x != nil { - return x.Requester - } - return "" -} - -func (x *ValidatorEncryptedKeyShare) GetKeyShare() string { - if x != nil { - return x.KeyShare - } - return "" -} - -func (x *ValidatorEncryptedKeyShare) GetKeyShareIndex() uint64 { - if x != nil { - return x.KeyShareIndex - } - return 0 -} - -func (x *ValidatorEncryptedKeyShare) GetReceivedTimestamp() uint64 { - if x != nil { - return x.ReceivedTimestamp - } - return 0 -} - -func (x *ValidatorEncryptedKeyShare) GetReceivedBlockHeight() uint64 { - if x != nil { - return x.ReceivedBlockHeight - } - return 0 -} - -func (x *ValidatorEncryptedKeyShare) GetIdentity() string { - if x != nil { - return x.Identity - } - return "" -} - -var File_fairyring_keyshare_general_key_share_proto protoreflect.FileDescriptor - -var file_fairyring_keyshare_general_key_share_proto_rawDesc = []byte{ - 0x0a, 0x2a, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, - 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x22, 0x83, 0x02, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x64, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x69, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x64, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x64, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x12, 0x24, 0x0a, 0x0d, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, - 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2c, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, - 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x12, 0x30, 0x0a, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, - 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x96, 0x02, 0x0a, 0x1a, 0x56, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, - 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x24, 0x0a, - 0x0d, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, - 0x64, 0x65, 0x78, 0x12, 0x2c, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, - 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x12, 0x30, 0x0a, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, - 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x42, - 0xbc, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x14, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, - 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_fairyring_keyshare_general_key_share_proto_rawDescOnce sync.Once - file_fairyring_keyshare_general_key_share_proto_rawDescData = file_fairyring_keyshare_general_key_share_proto_rawDesc -) - -func file_fairyring_keyshare_general_key_share_proto_rawDescGZIP() []byte { - file_fairyring_keyshare_general_key_share_proto_rawDescOnce.Do(func() { - file_fairyring_keyshare_general_key_share_proto_rawDescData = protoimpl.X.CompressGZIP(file_fairyring_keyshare_general_key_share_proto_rawDescData) - }) - return file_fairyring_keyshare_general_key_share_proto_rawDescData -} - -var file_fairyring_keyshare_general_key_share_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_fairyring_keyshare_general_key_share_proto_goTypes = []interface{}{ - (*GeneralKeyShare)(nil), // 0: fairyring.keyshare.GeneralKeyShare - (*ValidatorEncryptedKeyShare)(nil), // 1: fairyring.keyshare.ValidatorEncryptedKeyShare -} -var file_fairyring_keyshare_general_key_share_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_fairyring_keyshare_general_key_share_proto_init() } -func file_fairyring_keyshare_general_key_share_proto_init() { - if File_fairyring_keyshare_general_key_share_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_fairyring_keyshare_general_key_share_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GeneralKeyShare); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_fairyring_keyshare_general_key_share_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidatorEncryptedKeyShare); 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_fairyring_keyshare_general_key_share_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_fairyring_keyshare_general_key_share_proto_goTypes, - DependencyIndexes: file_fairyring_keyshare_general_key_share_proto_depIdxs, - MessageInfos: file_fairyring_keyshare_general_key_share_proto_msgTypes, - }.Build() - File_fairyring_keyshare_general_key_share_proto = out.File - file_fairyring_keyshare_general_key_share_proto_rawDesc = nil - file_fairyring_keyshare_general_key_share_proto_goTypes = nil - file_fairyring_keyshare_general_key_share_proto_depIdxs = nil -} diff --git a/api/fairyring/keyshare/genesis.pulsar.go b/api/fairyring/keyshare/genesis.pulsar.go index 610c92af..5dd44d21 100644 --- a/api/fairyring/keyshare/genesis.pulsar.go +++ b/api/fairyring/keyshare/genesis.pulsar.go @@ -270,17 +270,17 @@ func (x *_GenesisState_10_list) IsValid() bool { } var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_params protoreflect.FieldDescriptor - fd_GenesisState_port_id protoreflect.FieldDescriptor - fd_GenesisState_validatorSetList protoreflect.FieldDescriptor - fd_GenesisState_keyShareList protoreflect.FieldDescriptor - fd_GenesisState_aggregatedKeyShareList protoreflect.FieldDescriptor - fd_GenesisState_activePubKey protoreflect.FieldDescriptor - fd_GenesisState_queuedPubKey protoreflect.FieldDescriptor - fd_GenesisState_authorizedAddressList protoreflect.FieldDescriptor - fd_GenesisState_request_count protoreflect.FieldDescriptor - fd_GenesisState_generalKeyShareList protoreflect.FieldDescriptor + md_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_params protoreflect.FieldDescriptor + fd_GenesisState_port_id protoreflect.FieldDescriptor + fd_GenesisState_validator_set_list protoreflect.FieldDescriptor + fd_GenesisState_key_share_list protoreflect.FieldDescriptor + fd_GenesisState_aggregated_key_share_list protoreflect.FieldDescriptor + fd_GenesisState_active_pub_key protoreflect.FieldDescriptor + fd_GenesisState_queued_pub_key protoreflect.FieldDescriptor + fd_GenesisState_authorized_address_list protoreflect.FieldDescriptor + fd_GenesisState_request_count protoreflect.FieldDescriptor + fd_GenesisState_general_key_share_list protoreflect.FieldDescriptor ) func init() { @@ -288,14 +288,14 @@ func init() { md_GenesisState = File_fairyring_keyshare_genesis_proto.Messages().ByName("GenesisState") fd_GenesisState_params = md_GenesisState.Fields().ByName("params") fd_GenesisState_port_id = md_GenesisState.Fields().ByName("port_id") - fd_GenesisState_validatorSetList = md_GenesisState.Fields().ByName("validatorSetList") - fd_GenesisState_keyShareList = md_GenesisState.Fields().ByName("keyShareList") - fd_GenesisState_aggregatedKeyShareList = md_GenesisState.Fields().ByName("aggregatedKeyShareList") - fd_GenesisState_activePubKey = md_GenesisState.Fields().ByName("activePubKey") - fd_GenesisState_queuedPubKey = md_GenesisState.Fields().ByName("queuedPubKey") - fd_GenesisState_authorizedAddressList = md_GenesisState.Fields().ByName("authorizedAddressList") + fd_GenesisState_validator_set_list = md_GenesisState.Fields().ByName("validator_set_list") + fd_GenesisState_key_share_list = md_GenesisState.Fields().ByName("key_share_list") + fd_GenesisState_aggregated_key_share_list = md_GenesisState.Fields().ByName("aggregated_key_share_list") + fd_GenesisState_active_pub_key = md_GenesisState.Fields().ByName("active_pub_key") + fd_GenesisState_queued_pub_key = md_GenesisState.Fields().ByName("queued_pub_key") + fd_GenesisState_authorized_address_list = md_GenesisState.Fields().ByName("authorized_address_list") fd_GenesisState_request_count = md_GenesisState.Fields().ByName("request_count") - fd_GenesisState_generalKeyShareList = md_GenesisState.Fields().ByName("generalKeyShareList") + fd_GenesisState_general_key_share_list = md_GenesisState.Fields().ByName("general_key_share_list") } var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) @@ -377,37 +377,37 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, } if len(x.ValidatorSetList) != 0 { value := protoreflect.ValueOfList(&_GenesisState_3_list{list: &x.ValidatorSetList}) - if !f(fd_GenesisState_validatorSetList, value) { + if !f(fd_GenesisState_validator_set_list, value) { return } } if len(x.KeyShareList) != 0 { value := protoreflect.ValueOfList(&_GenesisState_4_list{list: &x.KeyShareList}) - if !f(fd_GenesisState_keyShareList, value) { + if !f(fd_GenesisState_key_share_list, value) { return } } if len(x.AggregatedKeyShareList) != 0 { value := protoreflect.ValueOfList(&_GenesisState_5_list{list: &x.AggregatedKeyShareList}) - if !f(fd_GenesisState_aggregatedKeyShareList, value) { + if !f(fd_GenesisState_aggregated_key_share_list, value) { return } } if x.ActivePubKey != nil { value := protoreflect.ValueOfMessage(x.ActivePubKey.ProtoReflect()) - if !f(fd_GenesisState_activePubKey, value) { + if !f(fd_GenesisState_active_pub_key, value) { return } } if x.QueuedPubKey != nil { value := protoreflect.ValueOfMessage(x.QueuedPubKey.ProtoReflect()) - if !f(fd_GenesisState_queuedPubKey, value) { + if !f(fd_GenesisState_queued_pub_key, value) { return } } if len(x.AuthorizedAddressList) != 0 { value := protoreflect.ValueOfList(&_GenesisState_8_list{list: &x.AuthorizedAddressList}) - if !f(fd_GenesisState_authorizedAddressList, value) { + if !f(fd_GenesisState_authorized_address_list, value) { return } } @@ -419,7 +419,7 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, } if len(x.GeneralKeyShareList) != 0 { value := protoreflect.ValueOfList(&_GenesisState_10_list{list: &x.GeneralKeyShareList}) - if !f(fd_GenesisState_generalKeyShareList, value) { + if !f(fd_GenesisState_general_key_share_list, value) { return } } @@ -442,21 +442,21 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return x.Params != nil case "fairyring.keyshare.GenesisState.port_id": return x.PortId != "" - case "fairyring.keyshare.GenesisState.validatorSetList": + case "fairyring.keyshare.GenesisState.validator_set_list": return len(x.ValidatorSetList) != 0 - case "fairyring.keyshare.GenesisState.keyShareList": + case "fairyring.keyshare.GenesisState.key_share_list": return len(x.KeyShareList) != 0 - case "fairyring.keyshare.GenesisState.aggregatedKeyShareList": + case "fairyring.keyshare.GenesisState.aggregated_key_share_list": return len(x.AggregatedKeyShareList) != 0 - case "fairyring.keyshare.GenesisState.activePubKey": + case "fairyring.keyshare.GenesisState.active_pub_key": return x.ActivePubKey != nil - case "fairyring.keyshare.GenesisState.queuedPubKey": + case "fairyring.keyshare.GenesisState.queued_pub_key": return x.QueuedPubKey != nil - case "fairyring.keyshare.GenesisState.authorizedAddressList": + case "fairyring.keyshare.GenesisState.authorized_address_list": return len(x.AuthorizedAddressList) != 0 case "fairyring.keyshare.GenesisState.request_count": return x.RequestCount != uint64(0) - case "fairyring.keyshare.GenesisState.generalKeyShareList": + case "fairyring.keyshare.GenesisState.general_key_share_list": return len(x.GeneralKeyShareList) != 0 default: if fd.IsExtension() { @@ -478,21 +478,21 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.Params = nil case "fairyring.keyshare.GenesisState.port_id": x.PortId = "" - case "fairyring.keyshare.GenesisState.validatorSetList": + case "fairyring.keyshare.GenesisState.validator_set_list": x.ValidatorSetList = nil - case "fairyring.keyshare.GenesisState.keyShareList": + case "fairyring.keyshare.GenesisState.key_share_list": x.KeyShareList = nil - case "fairyring.keyshare.GenesisState.aggregatedKeyShareList": + case "fairyring.keyshare.GenesisState.aggregated_key_share_list": x.AggregatedKeyShareList = nil - case "fairyring.keyshare.GenesisState.activePubKey": + case "fairyring.keyshare.GenesisState.active_pub_key": x.ActivePubKey = nil - case "fairyring.keyshare.GenesisState.queuedPubKey": + case "fairyring.keyshare.GenesisState.queued_pub_key": x.QueuedPubKey = nil - case "fairyring.keyshare.GenesisState.authorizedAddressList": + case "fairyring.keyshare.GenesisState.authorized_address_list": x.AuthorizedAddressList = nil case "fairyring.keyshare.GenesisState.request_count": x.RequestCount = uint64(0) - case "fairyring.keyshare.GenesisState.generalKeyShareList": + case "fairyring.keyshare.GenesisState.general_key_share_list": x.GeneralKeyShareList = nil default: if fd.IsExtension() { @@ -516,31 +516,31 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto case "fairyring.keyshare.GenesisState.port_id": value := x.PortId return protoreflect.ValueOfString(value) - case "fairyring.keyshare.GenesisState.validatorSetList": + case "fairyring.keyshare.GenesisState.validator_set_list": if len(x.ValidatorSetList) == 0 { return protoreflect.ValueOfList(&_GenesisState_3_list{}) } listValue := &_GenesisState_3_list{list: &x.ValidatorSetList} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.GenesisState.keyShareList": + case "fairyring.keyshare.GenesisState.key_share_list": if len(x.KeyShareList) == 0 { return protoreflect.ValueOfList(&_GenesisState_4_list{}) } listValue := &_GenesisState_4_list{list: &x.KeyShareList} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.GenesisState.aggregatedKeyShareList": + case "fairyring.keyshare.GenesisState.aggregated_key_share_list": if len(x.AggregatedKeyShareList) == 0 { return protoreflect.ValueOfList(&_GenesisState_5_list{}) } listValue := &_GenesisState_5_list{list: &x.AggregatedKeyShareList} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.GenesisState.activePubKey": + case "fairyring.keyshare.GenesisState.active_pub_key": value := x.ActivePubKey return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.keyshare.GenesisState.queuedPubKey": + case "fairyring.keyshare.GenesisState.queued_pub_key": value := x.QueuedPubKey return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.keyshare.GenesisState.authorizedAddressList": + case "fairyring.keyshare.GenesisState.authorized_address_list": if len(x.AuthorizedAddressList) == 0 { return protoreflect.ValueOfList(&_GenesisState_8_list{}) } @@ -549,7 +549,7 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto case "fairyring.keyshare.GenesisState.request_count": value := x.RequestCount return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.GenesisState.generalKeyShareList": + case "fairyring.keyshare.GenesisState.general_key_share_list": if len(x.GeneralKeyShareList) == 0 { return protoreflect.ValueOfList(&_GenesisState_10_list{}) } @@ -579,29 +579,29 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value x.Params = value.Message().Interface().(*Params) case "fairyring.keyshare.GenesisState.port_id": x.PortId = value.Interface().(string) - case "fairyring.keyshare.GenesisState.validatorSetList": + case "fairyring.keyshare.GenesisState.validator_set_list": lv := value.List() clv := lv.(*_GenesisState_3_list) x.ValidatorSetList = *clv.list - case "fairyring.keyshare.GenesisState.keyShareList": + case "fairyring.keyshare.GenesisState.key_share_list": lv := value.List() clv := lv.(*_GenesisState_4_list) x.KeyShareList = *clv.list - case "fairyring.keyshare.GenesisState.aggregatedKeyShareList": + case "fairyring.keyshare.GenesisState.aggregated_key_share_list": lv := value.List() clv := lv.(*_GenesisState_5_list) x.AggregatedKeyShareList = *clv.list - case "fairyring.keyshare.GenesisState.activePubKey": + case "fairyring.keyshare.GenesisState.active_pub_key": x.ActivePubKey = value.Message().Interface().(*ActivePubKey) - case "fairyring.keyshare.GenesisState.queuedPubKey": + case "fairyring.keyshare.GenesisState.queued_pub_key": x.QueuedPubKey = value.Message().Interface().(*QueuedPubKey) - case "fairyring.keyshare.GenesisState.authorizedAddressList": + case "fairyring.keyshare.GenesisState.authorized_address_list": lv := value.List() clv := lv.(*_GenesisState_8_list) x.AuthorizedAddressList = *clv.list case "fairyring.keyshare.GenesisState.request_count": x.RequestCount = value.Uint() - case "fairyring.keyshare.GenesisState.generalKeyShareList": + case "fairyring.keyshare.GenesisState.general_key_share_list": lv := value.List() clv := lv.(*_GenesisState_10_list) x.GeneralKeyShareList = *clv.list @@ -630,41 +630,41 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p x.Params = new(Params) } return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - case "fairyring.keyshare.GenesisState.validatorSetList": + case "fairyring.keyshare.GenesisState.validator_set_list": if x.ValidatorSetList == nil { x.ValidatorSetList = []*ValidatorSet{} } value := &_GenesisState_3_list{list: &x.ValidatorSetList} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.GenesisState.keyShareList": + case "fairyring.keyshare.GenesisState.key_share_list": if x.KeyShareList == nil { x.KeyShareList = []*KeyShare{} } value := &_GenesisState_4_list{list: &x.KeyShareList} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.GenesisState.aggregatedKeyShareList": + case "fairyring.keyshare.GenesisState.aggregated_key_share_list": if x.AggregatedKeyShareList == nil { x.AggregatedKeyShareList = []*AggregatedKeyShare{} } value := &_GenesisState_5_list{list: &x.AggregatedKeyShareList} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.GenesisState.activePubKey": + case "fairyring.keyshare.GenesisState.active_pub_key": if x.ActivePubKey == nil { x.ActivePubKey = new(ActivePubKey) } return protoreflect.ValueOfMessage(x.ActivePubKey.ProtoReflect()) - case "fairyring.keyshare.GenesisState.queuedPubKey": + case "fairyring.keyshare.GenesisState.queued_pub_key": if x.QueuedPubKey == nil { x.QueuedPubKey = new(QueuedPubKey) } return protoreflect.ValueOfMessage(x.QueuedPubKey.ProtoReflect()) - case "fairyring.keyshare.GenesisState.authorizedAddressList": + case "fairyring.keyshare.GenesisState.authorized_address_list": if x.AuthorizedAddressList == nil { x.AuthorizedAddressList = []*AuthorizedAddress{} } value := &_GenesisState_8_list{list: &x.AuthorizedAddressList} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.GenesisState.generalKeyShareList": + case "fairyring.keyshare.GenesisState.general_key_share_list": if x.GeneralKeyShareList == nil { x.GeneralKeyShareList = []*GeneralKeyShare{} } @@ -692,27 +692,27 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "fairyring.keyshare.GenesisState.port_id": return protoreflect.ValueOfString("") - case "fairyring.keyshare.GenesisState.validatorSetList": + case "fairyring.keyshare.GenesisState.validator_set_list": list := []*ValidatorSet{} return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list}) - case "fairyring.keyshare.GenesisState.keyShareList": + case "fairyring.keyshare.GenesisState.key_share_list": list := []*KeyShare{} return protoreflect.ValueOfList(&_GenesisState_4_list{list: &list}) - case "fairyring.keyshare.GenesisState.aggregatedKeyShareList": + case "fairyring.keyshare.GenesisState.aggregated_key_share_list": list := []*AggregatedKeyShare{} return protoreflect.ValueOfList(&_GenesisState_5_list{list: &list}) - case "fairyring.keyshare.GenesisState.activePubKey": + case "fairyring.keyshare.GenesisState.active_pub_key": m := new(ActivePubKey) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.keyshare.GenesisState.queuedPubKey": + case "fairyring.keyshare.GenesisState.queued_pub_key": m := new(QueuedPubKey) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.keyshare.GenesisState.authorizedAddressList": + case "fairyring.keyshare.GenesisState.authorized_address_list": list := []*AuthorizedAddress{} return protoreflect.ValueOfList(&_GenesisState_8_list{list: &list}) case "fairyring.keyshare.GenesisState.request_count": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.GenesisState.generalKeyShareList": + case "fairyring.keyshare.GenesisState.general_key_share_list": list := []*GeneralKeyShare{} return protoreflect.ValueOfList(&_GenesisState_10_list{list: &list}) default: @@ -1429,17 +1429,16 @@ type GenesisState struct { unknownFields protoimpl.UnknownFields // params defines all the parameters of the module. - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` - PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - ValidatorSetList []*ValidatorSet `protobuf:"bytes,3,rep,name=validatorSetList,proto3" json:"validatorSetList,omitempty"` - KeyShareList []*KeyShare `protobuf:"bytes,4,rep,name=keyShareList,proto3" json:"keyShareList,omitempty"` - // this line is used by starport scaffolding # genesis/proto/state - AggregatedKeyShareList []*AggregatedKeyShare `protobuf:"bytes,5,rep,name=aggregatedKeyShareList,proto3" json:"aggregatedKeyShareList,omitempty"` - ActivePubKey *ActivePubKey `protobuf:"bytes,6,opt,name=activePubKey,proto3" json:"activePubKey,omitempty"` - QueuedPubKey *QueuedPubKey `protobuf:"bytes,7,opt,name=queuedPubKey,proto3" json:"queuedPubKey,omitempty"` - AuthorizedAddressList []*AuthorizedAddress `protobuf:"bytes,8,rep,name=authorizedAddressList,proto3" json:"authorizedAddressList,omitempty"` + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` + ValidatorSetList []*ValidatorSet `protobuf:"bytes,3,rep,name=validator_set_list,json=validatorSetList,proto3" json:"validator_set_list,omitempty"` + KeyShareList []*KeyShare `protobuf:"bytes,4,rep,name=key_share_list,json=keyShareList,proto3" json:"key_share_list,omitempty"` + AggregatedKeyShareList []*AggregatedKeyShare `protobuf:"bytes,5,rep,name=aggregated_key_share_list,json=aggregatedKeyShareList,proto3" json:"aggregated_key_share_list,omitempty"` + ActivePubKey *ActivePubKey `protobuf:"bytes,6,opt,name=active_pub_key,json=activePubKey,proto3" json:"active_pub_key,omitempty"` + QueuedPubKey *QueuedPubKey `protobuf:"bytes,7,opt,name=queued_pub_key,json=queuedPubKey,proto3" json:"queued_pub_key,omitempty"` + AuthorizedAddressList []*AuthorizedAddress `protobuf:"bytes,8,rep,name=authorized_address_list,json=authorizedAddressList,proto3" json:"authorized_address_list,omitempty"` RequestCount uint64 `protobuf:"varint,9,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"` - GeneralKeyShareList []*GeneralKeyShare `protobuf:"bytes,10,rep,name=generalKeyShareList,proto3" json:"generalKeyShareList,omitempty"` + GeneralKeyShareList []*GeneralKeyShare `protobuf:"bytes,10,rep,name=general_key_share_list,json=generalKeyShareList,proto3" json:"general_key_share_list,omitempty"` } func (x *GenesisState) Reset() { @@ -1555,68 +1554,67 @@ var file_fairyring_keyshare_genesis_proto_rawDesc = []byte{ 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe5, 0x05, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, - 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, - 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x64, 0x12, - 0x52, 0x0a, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x4c, - 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x4c, - 0x69, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0c, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x4c, - 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4b, - 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x6b, - 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x64, 0x0a, 0x16, 0x61, - 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x61, + 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf5, 0x05, 0x0a, 0x0c, 0x47, + 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x16, 0x61, 0x67, 0x67, 0x72, 0x65, - 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x4c, 0x69, 0x73, - 0x74, 0x12, 0x4a, 0x0a, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, - 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x74, - 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, - 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x4a, 0x0a, - 0x0c, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, - 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, - 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x61, 0x0a, 0x15, 0x61, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4c, 0x69, - 0x73, 0x74, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, - 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x15, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, - 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x5b, 0x0a, 0x13, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x13, 0x67, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x42, 0xb4, - 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, - 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, - 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, - 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, + 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x6f, + 0x72, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x72, + 0x74, 0x49, 0x64, 0x12, 0x54, 0x0a, 0x12, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, + 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x53, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x0e, 0x6b, 0x65, 0x79, + 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, + 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x4c, + 0x69, 0x73, 0x74, 0x12, 0x67, 0x0a, 0x19, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x67, 0x67, 0x72, + 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, + 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x16, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, + 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x0e, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, + 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, 0x63, + 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x4c, 0x0a, 0x0e, 0x71, 0x75, + 0x65, 0x75, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, + 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x75, + 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x63, 0x0a, 0x17, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x6c, + 0x69, 0x73, 0x74, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x15, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, + 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x23, 0x0a, + 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x12, 0x5e, 0x0a, 0x16, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, + 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0a, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, + 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x13, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x4c, 0x69, + 0x73, 0x74, 0x42, 0xb4, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x0c, 0x47, + 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, + 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, + 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -1645,13 +1643,13 @@ var file_fairyring_keyshare_genesis_proto_goTypes = []interface{}{ } var file_fairyring_keyshare_genesis_proto_depIdxs = []int32{ 1, // 0: fairyring.keyshare.GenesisState.params:type_name -> fairyring.keyshare.Params - 2, // 1: fairyring.keyshare.GenesisState.validatorSetList:type_name -> fairyring.keyshare.ValidatorSet - 3, // 2: fairyring.keyshare.GenesisState.keyShareList:type_name -> fairyring.keyshare.KeyShare - 4, // 3: fairyring.keyshare.GenesisState.aggregatedKeyShareList:type_name -> fairyring.keyshare.AggregatedKeyShare - 5, // 4: fairyring.keyshare.GenesisState.activePubKey:type_name -> fairyring.keyshare.ActivePubKey - 6, // 5: fairyring.keyshare.GenesisState.queuedPubKey:type_name -> fairyring.keyshare.QueuedPubKey - 7, // 6: fairyring.keyshare.GenesisState.authorizedAddressList:type_name -> fairyring.keyshare.AuthorizedAddress - 8, // 7: fairyring.keyshare.GenesisState.generalKeyShareList:type_name -> fairyring.keyshare.GeneralKeyShare + 2, // 1: fairyring.keyshare.GenesisState.validator_set_list:type_name -> fairyring.keyshare.ValidatorSet + 3, // 2: fairyring.keyshare.GenesisState.key_share_list:type_name -> fairyring.keyshare.KeyShare + 4, // 3: fairyring.keyshare.GenesisState.aggregated_key_share_list:type_name -> fairyring.keyshare.AggregatedKeyShare + 5, // 4: fairyring.keyshare.GenesisState.active_pub_key:type_name -> fairyring.keyshare.ActivePubKey + 6, // 5: fairyring.keyshare.GenesisState.queued_pub_key:type_name -> fairyring.keyshare.QueuedPubKey + 7, // 6: fairyring.keyshare.GenesisState.authorized_address_list:type_name -> fairyring.keyshare.AuthorizedAddress + 8, // 7: fairyring.keyshare.GenesisState.general_key_share_list:type_name -> fairyring.keyshare.GeneralKeyShare 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 @@ -1670,7 +1668,6 @@ func file_fairyring_keyshare_genesis_proto_init() { file_fairyring_keyshare_aggregated_key_share_proto_init() file_fairyring_keyshare_pub_key_proto_init() file_fairyring_keyshare_authorized_address_proto_init() - file_fairyring_keyshare_general_key_share_proto_init() if !protoimpl.UnsafeEnabled { file_fairyring_keyshare_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GenesisState); i { diff --git a/api/fairyring/keyshare/key_share.pulsar.go b/api/fairyring/keyshare/key_share.pulsar.go index 70832ff4..512275de 100644 --- a/api/fairyring/keyshare/key_share.pulsar.go +++ b/api/fairyring/keyshare/key_share.pulsar.go @@ -13,24 +13,24 @@ import ( ) var ( - md_KeyShare protoreflect.MessageDescriptor - fd_KeyShare_validator protoreflect.FieldDescriptor - fd_KeyShare_blockHeight protoreflect.FieldDescriptor - fd_KeyShare_keyShare protoreflect.FieldDescriptor - fd_KeyShare_keyShareIndex protoreflect.FieldDescriptor - fd_KeyShare_receivedTimestamp protoreflect.FieldDescriptor - fd_KeyShare_receivedBlockHeight protoreflect.FieldDescriptor + md_KeyShare protoreflect.MessageDescriptor + fd_KeyShare_validator protoreflect.FieldDescriptor + fd_KeyShare_block_height protoreflect.FieldDescriptor + fd_KeyShare_key_share protoreflect.FieldDescriptor + fd_KeyShare_key_share_index protoreflect.FieldDescriptor + fd_KeyShare_received_timestamp protoreflect.FieldDescriptor + fd_KeyShare_received_block_height protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_key_share_proto_init() md_KeyShare = File_fairyring_keyshare_key_share_proto.Messages().ByName("KeyShare") fd_KeyShare_validator = md_KeyShare.Fields().ByName("validator") - fd_KeyShare_blockHeight = md_KeyShare.Fields().ByName("blockHeight") - fd_KeyShare_keyShare = md_KeyShare.Fields().ByName("keyShare") - fd_KeyShare_keyShareIndex = md_KeyShare.Fields().ByName("keyShareIndex") - fd_KeyShare_receivedTimestamp = md_KeyShare.Fields().ByName("receivedTimestamp") - fd_KeyShare_receivedBlockHeight = md_KeyShare.Fields().ByName("receivedBlockHeight") + fd_KeyShare_block_height = md_KeyShare.Fields().ByName("block_height") + fd_KeyShare_key_share = md_KeyShare.Fields().ByName("key_share") + fd_KeyShare_key_share_index = md_KeyShare.Fields().ByName("key_share_index") + fd_KeyShare_received_timestamp = md_KeyShare.Fields().ByName("received_timestamp") + fd_KeyShare_received_block_height = md_KeyShare.Fields().ByName("received_block_height") } var _ protoreflect.Message = (*fastReflection_KeyShare)(nil) @@ -106,31 +106,31 @@ func (x *fastReflection_KeyShare) Range(f func(protoreflect.FieldDescriptor, pro } if x.BlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.BlockHeight) - if !f(fd_KeyShare_blockHeight, value) { + if !f(fd_KeyShare_block_height, value) { return } } if x.KeyShare != "" { value := protoreflect.ValueOfString(x.KeyShare) - if !f(fd_KeyShare_keyShare, value) { + if !f(fd_KeyShare_key_share, value) { return } } if x.KeyShareIndex != uint64(0) { value := protoreflect.ValueOfUint64(x.KeyShareIndex) - if !f(fd_KeyShare_keyShareIndex, value) { + if !f(fd_KeyShare_key_share_index, value) { return } } if x.ReceivedTimestamp != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedTimestamp) - if !f(fd_KeyShare_receivedTimestamp, value) { + if !f(fd_KeyShare_received_timestamp, value) { return } } if x.ReceivedBlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedBlockHeight) - if !f(fd_KeyShare_receivedBlockHeight, value) { + if !f(fd_KeyShare_received_block_height, value) { return } } @@ -151,15 +151,15 @@ func (x *fastReflection_KeyShare) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "fairyring.keyshare.KeyShare.validator": return x.Validator != "" - case "fairyring.keyshare.KeyShare.blockHeight": + case "fairyring.keyshare.KeyShare.block_height": return x.BlockHeight != uint64(0) - case "fairyring.keyshare.KeyShare.keyShare": + case "fairyring.keyshare.KeyShare.key_share": return x.KeyShare != "" - case "fairyring.keyshare.KeyShare.keyShareIndex": + case "fairyring.keyshare.KeyShare.key_share_index": return x.KeyShareIndex != uint64(0) - case "fairyring.keyshare.KeyShare.receivedTimestamp": + case "fairyring.keyshare.KeyShare.received_timestamp": return x.ReceivedTimestamp != uint64(0) - case "fairyring.keyshare.KeyShare.receivedBlockHeight": + case "fairyring.keyshare.KeyShare.received_block_height": return x.ReceivedBlockHeight != uint64(0) default: if fd.IsExtension() { @@ -179,15 +179,15 @@ func (x *fastReflection_KeyShare) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "fairyring.keyshare.KeyShare.validator": x.Validator = "" - case "fairyring.keyshare.KeyShare.blockHeight": + case "fairyring.keyshare.KeyShare.block_height": x.BlockHeight = uint64(0) - case "fairyring.keyshare.KeyShare.keyShare": + case "fairyring.keyshare.KeyShare.key_share": x.KeyShare = "" - case "fairyring.keyshare.KeyShare.keyShareIndex": + case "fairyring.keyshare.KeyShare.key_share_index": x.KeyShareIndex = uint64(0) - case "fairyring.keyshare.KeyShare.receivedTimestamp": + case "fairyring.keyshare.KeyShare.received_timestamp": x.ReceivedTimestamp = uint64(0) - case "fairyring.keyshare.KeyShare.receivedBlockHeight": + case "fairyring.keyshare.KeyShare.received_block_height": x.ReceivedBlockHeight = uint64(0) default: if fd.IsExtension() { @@ -208,19 +208,19 @@ func (x *fastReflection_KeyShare) Get(descriptor protoreflect.FieldDescriptor) p case "fairyring.keyshare.KeyShare.validator": value := x.Validator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.KeyShare.blockHeight": + case "fairyring.keyshare.KeyShare.block_height": value := x.BlockHeight return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.KeyShare.keyShare": + case "fairyring.keyshare.KeyShare.key_share": value := x.KeyShare return protoreflect.ValueOfString(value) - case "fairyring.keyshare.KeyShare.keyShareIndex": + case "fairyring.keyshare.KeyShare.key_share_index": value := x.KeyShareIndex return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.KeyShare.receivedTimestamp": + case "fairyring.keyshare.KeyShare.received_timestamp": value := x.ReceivedTimestamp return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.KeyShare.receivedBlockHeight": + case "fairyring.keyshare.KeyShare.received_block_height": value := x.ReceivedBlockHeight return protoreflect.ValueOfUint64(value) default: @@ -245,15 +245,15 @@ func (x *fastReflection_KeyShare) Set(fd protoreflect.FieldDescriptor, value pro switch fd.FullName() { case "fairyring.keyshare.KeyShare.validator": x.Validator = value.Interface().(string) - case "fairyring.keyshare.KeyShare.blockHeight": + case "fairyring.keyshare.KeyShare.block_height": x.BlockHeight = value.Uint() - case "fairyring.keyshare.KeyShare.keyShare": + case "fairyring.keyshare.KeyShare.key_share": x.KeyShare = value.Interface().(string) - case "fairyring.keyshare.KeyShare.keyShareIndex": + case "fairyring.keyshare.KeyShare.key_share_index": x.KeyShareIndex = value.Uint() - case "fairyring.keyshare.KeyShare.receivedTimestamp": + case "fairyring.keyshare.KeyShare.received_timestamp": x.ReceivedTimestamp = value.Uint() - case "fairyring.keyshare.KeyShare.receivedBlockHeight": + case "fairyring.keyshare.KeyShare.received_block_height": x.ReceivedBlockHeight = value.Uint() default: if fd.IsExtension() { @@ -277,16 +277,16 @@ func (x *fastReflection_KeyShare) Mutable(fd protoreflect.FieldDescriptor) proto switch fd.FullName() { case "fairyring.keyshare.KeyShare.validator": panic(fmt.Errorf("field validator of message fairyring.keyshare.KeyShare is not mutable")) - case "fairyring.keyshare.KeyShare.blockHeight": - panic(fmt.Errorf("field blockHeight of message fairyring.keyshare.KeyShare is not mutable")) - case "fairyring.keyshare.KeyShare.keyShare": - panic(fmt.Errorf("field keyShare of message fairyring.keyshare.KeyShare is not mutable")) - case "fairyring.keyshare.KeyShare.keyShareIndex": - panic(fmt.Errorf("field keyShareIndex of message fairyring.keyshare.KeyShare is not mutable")) - case "fairyring.keyshare.KeyShare.receivedTimestamp": - panic(fmt.Errorf("field receivedTimestamp of message fairyring.keyshare.KeyShare is not mutable")) - case "fairyring.keyshare.KeyShare.receivedBlockHeight": - panic(fmt.Errorf("field receivedBlockHeight of message fairyring.keyshare.KeyShare is not mutable")) + case "fairyring.keyshare.KeyShare.block_height": + panic(fmt.Errorf("field block_height of message fairyring.keyshare.KeyShare is not mutable")) + case "fairyring.keyshare.KeyShare.key_share": + panic(fmt.Errorf("field key_share of message fairyring.keyshare.KeyShare is not mutable")) + case "fairyring.keyshare.KeyShare.key_share_index": + panic(fmt.Errorf("field key_share_index of message fairyring.keyshare.KeyShare is not mutable")) + case "fairyring.keyshare.KeyShare.received_timestamp": + panic(fmt.Errorf("field received_timestamp of message fairyring.keyshare.KeyShare is not mutable")) + case "fairyring.keyshare.KeyShare.received_block_height": + panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.KeyShare is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.KeyShare")) @@ -302,15 +302,15 @@ func (x *fastReflection_KeyShare) NewField(fd protoreflect.FieldDescriptor) prot switch fd.FullName() { case "fairyring.keyshare.KeyShare.validator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.KeyShare.blockHeight": + case "fairyring.keyshare.KeyShare.block_height": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.KeyShare.keyShare": + case "fairyring.keyshare.KeyShare.key_share": return protoreflect.ValueOfString("") - case "fairyring.keyshare.KeyShare.keyShareIndex": + case "fairyring.keyshare.KeyShare.key_share_index": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.KeyShare.receivedTimestamp": + case "fairyring.keyshare.KeyShare.received_timestamp": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.KeyShare.receivedBlockHeight": + case "fairyring.keyshare.KeyShare.received_block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { @@ -688,6 +688,1518 @@ func (x *fastReflection_KeyShare) ProtoMethods() *protoiface.Methods { } } +var ( + md_GeneralKeyShare protoreflect.MessageDescriptor + fd_GeneralKeyShare_validator protoreflect.FieldDescriptor + fd_GeneralKeyShare_id_type protoreflect.FieldDescriptor + fd_GeneralKeyShare_id_value protoreflect.FieldDescriptor + fd_GeneralKeyShare_key_share protoreflect.FieldDescriptor + fd_GeneralKeyShare_key_share_index protoreflect.FieldDescriptor + fd_GeneralKeyShare_received_timestamp protoreflect.FieldDescriptor + fd_GeneralKeyShare_received_block_height protoreflect.FieldDescriptor +) + +func init() { + file_fairyring_keyshare_key_share_proto_init() + md_GeneralKeyShare = File_fairyring_keyshare_key_share_proto.Messages().ByName("GeneralKeyShare") + fd_GeneralKeyShare_validator = md_GeneralKeyShare.Fields().ByName("validator") + fd_GeneralKeyShare_id_type = md_GeneralKeyShare.Fields().ByName("id_type") + fd_GeneralKeyShare_id_value = md_GeneralKeyShare.Fields().ByName("id_value") + fd_GeneralKeyShare_key_share = md_GeneralKeyShare.Fields().ByName("key_share") + fd_GeneralKeyShare_key_share_index = md_GeneralKeyShare.Fields().ByName("key_share_index") + fd_GeneralKeyShare_received_timestamp = md_GeneralKeyShare.Fields().ByName("received_timestamp") + fd_GeneralKeyShare_received_block_height = md_GeneralKeyShare.Fields().ByName("received_block_height") +} + +var _ protoreflect.Message = (*fastReflection_GeneralKeyShare)(nil) + +type fastReflection_GeneralKeyShare GeneralKeyShare + +func (x *GeneralKeyShare) ProtoReflect() protoreflect.Message { + return (*fastReflection_GeneralKeyShare)(x) +} + +func (x *GeneralKeyShare) slowProtoReflect() protoreflect.Message { + mi := &file_fairyring_keyshare_key_share_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 _fastReflection_GeneralKeyShare_messageType fastReflection_GeneralKeyShare_messageType +var _ protoreflect.MessageType = fastReflection_GeneralKeyShare_messageType{} + +type fastReflection_GeneralKeyShare_messageType struct{} + +func (x fastReflection_GeneralKeyShare_messageType) Zero() protoreflect.Message { + return (*fastReflection_GeneralKeyShare)(nil) +} +func (x fastReflection_GeneralKeyShare_messageType) New() protoreflect.Message { + return new(fastReflection_GeneralKeyShare) +} +func (x fastReflection_GeneralKeyShare_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GeneralKeyShare +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GeneralKeyShare) Descriptor() protoreflect.MessageDescriptor { + return md_GeneralKeyShare +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GeneralKeyShare) Type() protoreflect.MessageType { + return _fastReflection_GeneralKeyShare_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GeneralKeyShare) New() protoreflect.Message { + return new(fastReflection_GeneralKeyShare) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GeneralKeyShare) Interface() protoreflect.ProtoMessage { + return (*GeneralKeyShare)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GeneralKeyShare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Validator != "" { + value := protoreflect.ValueOfString(x.Validator) + if !f(fd_GeneralKeyShare_validator, value) { + return + } + } + if x.IdType != "" { + value := protoreflect.ValueOfString(x.IdType) + if !f(fd_GeneralKeyShare_id_type, value) { + return + } + } + if x.IdValue != "" { + value := protoreflect.ValueOfString(x.IdValue) + if !f(fd_GeneralKeyShare_id_value, value) { + return + } + } + if x.KeyShare != "" { + value := protoreflect.ValueOfString(x.KeyShare) + if !f(fd_GeneralKeyShare_key_share, value) { + return + } + } + if x.KeyShareIndex != uint64(0) { + value := protoreflect.ValueOfUint64(x.KeyShareIndex) + if !f(fd_GeneralKeyShare_key_share_index, value) { + return + } + } + if x.ReceivedTimestamp != uint64(0) { + value := protoreflect.ValueOfUint64(x.ReceivedTimestamp) + if !f(fd_GeneralKeyShare_received_timestamp, value) { + return + } + } + if x.ReceivedBlockHeight != uint64(0) { + value := protoreflect.ValueOfUint64(x.ReceivedBlockHeight) + if !f(fd_GeneralKeyShare_received_block_height, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_GeneralKeyShare) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "fairyring.keyshare.GeneralKeyShare.validator": + return x.Validator != "" + case "fairyring.keyshare.GeneralKeyShare.id_type": + return x.IdType != "" + case "fairyring.keyshare.GeneralKeyShare.id_value": + return x.IdValue != "" + case "fairyring.keyshare.GeneralKeyShare.key_share": + return x.KeyShare != "" + case "fairyring.keyshare.GeneralKeyShare.key_share_index": + return x.KeyShareIndex != uint64(0) + case "fairyring.keyshare.GeneralKeyShare.received_timestamp": + return x.ReceivedTimestamp != uint64(0) + case "fairyring.keyshare.GeneralKeyShare.received_block_height": + return x.ReceivedBlockHeight != uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyShare")) + } + panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyShare does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GeneralKeyShare) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "fairyring.keyshare.GeneralKeyShare.validator": + x.Validator = "" + case "fairyring.keyshare.GeneralKeyShare.id_type": + x.IdType = "" + case "fairyring.keyshare.GeneralKeyShare.id_value": + x.IdValue = "" + case "fairyring.keyshare.GeneralKeyShare.key_share": + x.KeyShare = "" + case "fairyring.keyshare.GeneralKeyShare.key_share_index": + x.KeyShareIndex = uint64(0) + case "fairyring.keyshare.GeneralKeyShare.received_timestamp": + x.ReceivedTimestamp = uint64(0) + case "fairyring.keyshare.GeneralKeyShare.received_block_height": + x.ReceivedBlockHeight = uint64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyShare")) + } + panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyShare does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GeneralKeyShare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "fairyring.keyshare.GeneralKeyShare.validator": + value := x.Validator + return protoreflect.ValueOfString(value) + case "fairyring.keyshare.GeneralKeyShare.id_type": + value := x.IdType + return protoreflect.ValueOfString(value) + case "fairyring.keyshare.GeneralKeyShare.id_value": + value := x.IdValue + return protoreflect.ValueOfString(value) + case "fairyring.keyshare.GeneralKeyShare.key_share": + value := x.KeyShare + return protoreflect.ValueOfString(value) + case "fairyring.keyshare.GeneralKeyShare.key_share_index": + value := x.KeyShareIndex + return protoreflect.ValueOfUint64(value) + case "fairyring.keyshare.GeneralKeyShare.received_timestamp": + value := x.ReceivedTimestamp + return protoreflect.ValueOfUint64(value) + case "fairyring.keyshare.GeneralKeyShare.received_block_height": + value := x.ReceivedBlockHeight + return protoreflect.ValueOfUint64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyShare")) + } + panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyShare does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GeneralKeyShare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "fairyring.keyshare.GeneralKeyShare.validator": + x.Validator = value.Interface().(string) + case "fairyring.keyshare.GeneralKeyShare.id_type": + x.IdType = value.Interface().(string) + case "fairyring.keyshare.GeneralKeyShare.id_value": + x.IdValue = value.Interface().(string) + case "fairyring.keyshare.GeneralKeyShare.key_share": + x.KeyShare = value.Interface().(string) + case "fairyring.keyshare.GeneralKeyShare.key_share_index": + x.KeyShareIndex = value.Uint() + case "fairyring.keyshare.GeneralKeyShare.received_timestamp": + x.ReceivedTimestamp = value.Uint() + case "fairyring.keyshare.GeneralKeyShare.received_block_height": + x.ReceivedBlockHeight = value.Uint() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyShare")) + } + panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyShare does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GeneralKeyShare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "fairyring.keyshare.GeneralKeyShare.validator": + panic(fmt.Errorf("field validator of message fairyring.keyshare.GeneralKeyShare is not mutable")) + case "fairyring.keyshare.GeneralKeyShare.id_type": + panic(fmt.Errorf("field id_type of message fairyring.keyshare.GeneralKeyShare is not mutable")) + case "fairyring.keyshare.GeneralKeyShare.id_value": + panic(fmt.Errorf("field id_value of message fairyring.keyshare.GeneralKeyShare is not mutable")) + case "fairyring.keyshare.GeneralKeyShare.key_share": + panic(fmt.Errorf("field key_share of message fairyring.keyshare.GeneralKeyShare is not mutable")) + case "fairyring.keyshare.GeneralKeyShare.key_share_index": + panic(fmt.Errorf("field key_share_index of message fairyring.keyshare.GeneralKeyShare is not mutable")) + case "fairyring.keyshare.GeneralKeyShare.received_timestamp": + panic(fmt.Errorf("field received_timestamp of message fairyring.keyshare.GeneralKeyShare is not mutable")) + case "fairyring.keyshare.GeneralKeyShare.received_block_height": + panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.GeneralKeyShare is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyShare")) + } + panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyShare does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GeneralKeyShare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "fairyring.keyshare.GeneralKeyShare.validator": + return protoreflect.ValueOfString("") + case "fairyring.keyshare.GeneralKeyShare.id_type": + return protoreflect.ValueOfString("") + case "fairyring.keyshare.GeneralKeyShare.id_value": + return protoreflect.ValueOfString("") + case "fairyring.keyshare.GeneralKeyShare.key_share": + return protoreflect.ValueOfString("") + case "fairyring.keyshare.GeneralKeyShare.key_share_index": + return protoreflect.ValueOfUint64(uint64(0)) + case "fairyring.keyshare.GeneralKeyShare.received_timestamp": + return protoreflect.ValueOfUint64(uint64(0)) + case "fairyring.keyshare.GeneralKeyShare.received_block_height": + return protoreflect.ValueOfUint64(uint64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyShare")) + } + panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyShare does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GeneralKeyShare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.GeneralKeyShare", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GeneralKeyShare) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GeneralKeyShare) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GeneralKeyShare) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GeneralKeyShare) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GeneralKeyShare) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Validator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.IdType) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.IdValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.KeyShare) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.KeyShareIndex != 0 { + n += 1 + runtime.Sov(uint64(x.KeyShareIndex)) + } + if x.ReceivedTimestamp != 0 { + n += 1 + runtime.Sov(uint64(x.ReceivedTimestamp)) + } + if x.ReceivedBlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.ReceivedBlockHeight)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*GeneralKeyShare) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.ReceivedBlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ReceivedBlockHeight)) + i-- + dAtA[i] = 0x38 + } + if x.ReceivedTimestamp != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ReceivedTimestamp)) + i-- + dAtA[i] = 0x30 + } + if x.KeyShareIndex != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyShareIndex)) + i-- + dAtA[i] = 0x28 + } + if len(x.KeyShare) > 0 { + i -= len(x.KeyShare) + copy(dAtA[i:], x.KeyShare) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.KeyShare))) + i-- + dAtA[i] = 0x22 + } + if len(x.IdValue) > 0 { + i -= len(x.IdValue) + copy(dAtA[i:], x.IdValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.IdValue))) + i-- + dAtA[i] = 0x1a + } + if len(x.IdType) > 0 { + i -= len(x.IdType) + copy(dAtA[i:], x.IdType) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.IdType))) + i-- + dAtA[i] = 0x12 + } + if len(x.Validator) > 0 { + i -= len(x.Validator) + copy(dAtA[i:], x.Validator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Validator))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*GeneralKeyShare) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GeneralKeyShare: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GeneralKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Validator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IdType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.IdType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IdValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.IdValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.KeyShare = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) + } + x.KeyShareIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.KeyShareIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReceivedTimestamp", wireType) + } + x.ReceivedTimestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.ReceivedTimestamp |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReceivedBlockHeight", wireType) + } + x.ReceivedBlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.ReceivedBlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_ValidatorEncryptedKeyShare protoreflect.MessageDescriptor + fd_ValidatorEncryptedKeyShare_validator protoreflect.FieldDescriptor + fd_ValidatorEncryptedKeyShare_requester protoreflect.FieldDescriptor + fd_ValidatorEncryptedKeyShare_key_share protoreflect.FieldDescriptor + fd_ValidatorEncryptedKeyShare_key_share_index protoreflect.FieldDescriptor + fd_ValidatorEncryptedKeyShare_received_timestamp protoreflect.FieldDescriptor + fd_ValidatorEncryptedKeyShare_received_block_height protoreflect.FieldDescriptor + fd_ValidatorEncryptedKeyShare_identity protoreflect.FieldDescriptor +) + +func init() { + file_fairyring_keyshare_key_share_proto_init() + md_ValidatorEncryptedKeyShare = File_fairyring_keyshare_key_share_proto.Messages().ByName("ValidatorEncryptedKeyShare") + fd_ValidatorEncryptedKeyShare_validator = md_ValidatorEncryptedKeyShare.Fields().ByName("validator") + fd_ValidatorEncryptedKeyShare_requester = md_ValidatorEncryptedKeyShare.Fields().ByName("requester") + fd_ValidatorEncryptedKeyShare_key_share = md_ValidatorEncryptedKeyShare.Fields().ByName("key_share") + fd_ValidatorEncryptedKeyShare_key_share_index = md_ValidatorEncryptedKeyShare.Fields().ByName("key_share_index") + fd_ValidatorEncryptedKeyShare_received_timestamp = md_ValidatorEncryptedKeyShare.Fields().ByName("received_timestamp") + fd_ValidatorEncryptedKeyShare_received_block_height = md_ValidatorEncryptedKeyShare.Fields().ByName("received_block_height") + fd_ValidatorEncryptedKeyShare_identity = md_ValidatorEncryptedKeyShare.Fields().ByName("identity") +} + +var _ protoreflect.Message = (*fastReflection_ValidatorEncryptedKeyShare)(nil) + +type fastReflection_ValidatorEncryptedKeyShare ValidatorEncryptedKeyShare + +func (x *ValidatorEncryptedKeyShare) ProtoReflect() protoreflect.Message { + return (*fastReflection_ValidatorEncryptedKeyShare)(x) +} + +func (x *ValidatorEncryptedKeyShare) slowProtoReflect() protoreflect.Message { + mi := &file_fairyring_keyshare_key_share_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 _fastReflection_ValidatorEncryptedKeyShare_messageType fastReflection_ValidatorEncryptedKeyShare_messageType +var _ protoreflect.MessageType = fastReflection_ValidatorEncryptedKeyShare_messageType{} + +type fastReflection_ValidatorEncryptedKeyShare_messageType struct{} + +func (x fastReflection_ValidatorEncryptedKeyShare_messageType) Zero() protoreflect.Message { + return (*fastReflection_ValidatorEncryptedKeyShare)(nil) +} +func (x fastReflection_ValidatorEncryptedKeyShare_messageType) New() protoreflect.Message { + return new(fastReflection_ValidatorEncryptedKeyShare) +} +func (x fastReflection_ValidatorEncryptedKeyShare_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ValidatorEncryptedKeyShare +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ValidatorEncryptedKeyShare) Descriptor() protoreflect.MessageDescriptor { + return md_ValidatorEncryptedKeyShare +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_ValidatorEncryptedKeyShare) Type() protoreflect.MessageType { + return _fastReflection_ValidatorEncryptedKeyShare_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ValidatorEncryptedKeyShare) New() protoreflect.Message { + return new(fastReflection_ValidatorEncryptedKeyShare) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ValidatorEncryptedKeyShare) Interface() protoreflect.ProtoMessage { + return (*ValidatorEncryptedKeyShare)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_ValidatorEncryptedKeyShare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Validator != "" { + value := protoreflect.ValueOfString(x.Validator) + if !f(fd_ValidatorEncryptedKeyShare_validator, value) { + return + } + } + if x.Requester != "" { + value := protoreflect.ValueOfString(x.Requester) + if !f(fd_ValidatorEncryptedKeyShare_requester, value) { + return + } + } + if x.KeyShare != "" { + value := protoreflect.ValueOfString(x.KeyShare) + if !f(fd_ValidatorEncryptedKeyShare_key_share, value) { + return + } + } + if x.KeyShareIndex != uint64(0) { + value := protoreflect.ValueOfUint64(x.KeyShareIndex) + if !f(fd_ValidatorEncryptedKeyShare_key_share_index, value) { + return + } + } + if x.ReceivedTimestamp != uint64(0) { + value := protoreflect.ValueOfUint64(x.ReceivedTimestamp) + if !f(fd_ValidatorEncryptedKeyShare_received_timestamp, value) { + return + } + } + if x.ReceivedBlockHeight != uint64(0) { + value := protoreflect.ValueOfUint64(x.ReceivedBlockHeight) + if !f(fd_ValidatorEncryptedKeyShare_received_block_height, value) { + return + } + } + if x.Identity != "" { + value := protoreflect.ValueOfString(x.Identity) + if !f(fd_ValidatorEncryptedKeyShare_identity, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_ValidatorEncryptedKeyShare) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "fairyring.keyshare.ValidatorEncryptedKeyShare.validator": + return x.Validator != "" + case "fairyring.keyshare.ValidatorEncryptedKeyShare.requester": + return x.Requester != "" + case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share": + return x.KeyShare != "" + case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share_index": + return x.KeyShareIndex != uint64(0) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_timestamp": + return x.ReceivedTimestamp != uint64(0) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_block_height": + return x.ReceivedBlockHeight != uint64(0) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.identity": + return x.Identity != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyShare")) + } + panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyShare does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ValidatorEncryptedKeyShare) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "fairyring.keyshare.ValidatorEncryptedKeyShare.validator": + x.Validator = "" + case "fairyring.keyshare.ValidatorEncryptedKeyShare.requester": + x.Requester = "" + case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share": + x.KeyShare = "" + case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share_index": + x.KeyShareIndex = uint64(0) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_timestamp": + x.ReceivedTimestamp = uint64(0) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_block_height": + x.ReceivedBlockHeight = uint64(0) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.identity": + x.Identity = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyShare")) + } + panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyShare does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_ValidatorEncryptedKeyShare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "fairyring.keyshare.ValidatorEncryptedKeyShare.validator": + value := x.Validator + return protoreflect.ValueOfString(value) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.requester": + value := x.Requester + return protoreflect.ValueOfString(value) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share": + value := x.KeyShare + return protoreflect.ValueOfString(value) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share_index": + value := x.KeyShareIndex + return protoreflect.ValueOfUint64(value) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_timestamp": + value := x.ReceivedTimestamp + return protoreflect.ValueOfUint64(value) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_block_height": + value := x.ReceivedBlockHeight + return protoreflect.ValueOfUint64(value) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.identity": + value := x.Identity + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyShare")) + } + panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyShare does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ValidatorEncryptedKeyShare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "fairyring.keyshare.ValidatorEncryptedKeyShare.validator": + x.Validator = value.Interface().(string) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.requester": + x.Requester = value.Interface().(string) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share": + x.KeyShare = value.Interface().(string) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share_index": + x.KeyShareIndex = value.Uint() + case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_timestamp": + x.ReceivedTimestamp = value.Uint() + case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_block_height": + x.ReceivedBlockHeight = value.Uint() + case "fairyring.keyshare.ValidatorEncryptedKeyShare.identity": + x.Identity = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyShare")) + } + panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyShare does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ValidatorEncryptedKeyShare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "fairyring.keyshare.ValidatorEncryptedKeyShare.validator": + panic(fmt.Errorf("field validator of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.requester": + panic(fmt.Errorf("field requester of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share": + panic(fmt.Errorf("field key_share of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share_index": + panic(fmt.Errorf("field key_share_index of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_timestamp": + panic(fmt.Errorf("field received_timestamp of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_block_height": + panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.identity": + panic(fmt.Errorf("field identity of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyShare")) + } + panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyShare does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_ValidatorEncryptedKeyShare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "fairyring.keyshare.ValidatorEncryptedKeyShare.validator": + return protoreflect.ValueOfString("") + case "fairyring.keyshare.ValidatorEncryptedKeyShare.requester": + return protoreflect.ValueOfString("") + case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share": + return protoreflect.ValueOfString("") + case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share_index": + return protoreflect.ValueOfUint64(uint64(0)) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_timestamp": + return protoreflect.ValueOfUint64(uint64(0)) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_block_height": + return protoreflect.ValueOfUint64(uint64(0)) + case "fairyring.keyshare.ValidatorEncryptedKeyShare.identity": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyShare")) + } + panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyShare does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_ValidatorEncryptedKeyShare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.ValidatorEncryptedKeyShare", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_ValidatorEncryptedKeyShare) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ValidatorEncryptedKeyShare) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_ValidatorEncryptedKeyShare) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_ValidatorEncryptedKeyShare) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ValidatorEncryptedKeyShare) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Validator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Requester) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.KeyShare) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.KeyShareIndex != 0 { + n += 1 + runtime.Sov(uint64(x.KeyShareIndex)) + } + if x.ReceivedTimestamp != 0 { + n += 1 + runtime.Sov(uint64(x.ReceivedTimestamp)) + } + if x.ReceivedBlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.ReceivedBlockHeight)) + } + l = len(x.Identity) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*ValidatorEncryptedKeyShare) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Identity) > 0 { + i -= len(x.Identity) + copy(dAtA[i:], x.Identity) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Identity))) + i-- + dAtA[i] = 0x3a + } + if x.ReceivedBlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ReceivedBlockHeight)) + i-- + dAtA[i] = 0x30 + } + if x.ReceivedTimestamp != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.ReceivedTimestamp)) + i-- + dAtA[i] = 0x28 + } + if x.KeyShareIndex != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyShareIndex)) + i-- + dAtA[i] = 0x20 + } + if len(x.KeyShare) > 0 { + i -= len(x.KeyShare) + copy(dAtA[i:], x.KeyShare) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.KeyShare))) + i-- + dAtA[i] = 0x1a + } + if len(x.Requester) > 0 { + i -= len(x.Requester) + copy(dAtA[i:], x.Requester) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Requester))) + i-- + dAtA[i] = 0x12 + } + if len(x.Validator) > 0 { + i -= len(x.Validator) + copy(dAtA[i:], x.Validator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Validator))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*ValidatorEncryptedKeyShare) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValidatorEncryptedKeyShare: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValidatorEncryptedKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Validator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Requester", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Requester = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.KeyShare = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) + } + x.KeyShareIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.KeyShareIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReceivedTimestamp", wireType) + } + x.ReceivedTimestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.ReceivedTimestamp |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReceivedBlockHeight", wireType) + } + x.ReceivedBlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.ReceivedBlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Identity = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.0 @@ -701,17 +2213,19 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// KeyShare defines the structure for submitting +// blockwise keyshares by validators type KeyShare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` - BlockHeight uint64 `protobuf:"varint,2,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"` - KeyShare string `protobuf:"bytes,3,opt,name=keyShare,proto3" json:"keyShare,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,4,opt,name=keyShareIndex,proto3" json:"keyShareIndex,omitempty"` - ReceivedTimestamp uint64 `protobuf:"varint,5,opt,name=receivedTimestamp,proto3" json:"receivedTimestamp,omitempty"` - ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=receivedBlockHeight,proto3" json:"receivedBlockHeight,omitempty"` + BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + KeyShare string `protobuf:"bytes,3,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` + KeyShareIndex uint64 `protobuf:"varint,4,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + ReceivedTimestamp uint64 `protobuf:"varint,5,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` + ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` } func (x *KeyShare) Reset() { @@ -776,40 +2290,245 @@ func (x *KeyShare) GetReceivedBlockHeight() uint64 { return 0 } +// GeneralKeyShare defines the structure for submitting +// general keyshares by validators +type GeneralKeyShare struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` + IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` + IdValue string `protobuf:"bytes,3,opt,name=id_value,json=idValue,proto3" json:"id_value,omitempty"` + KeyShare string `protobuf:"bytes,4,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` + KeyShareIndex uint64 `protobuf:"varint,5,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + ReceivedTimestamp uint64 `protobuf:"varint,6,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` + ReceivedBlockHeight uint64 `protobuf:"varint,7,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` +} + +func (x *GeneralKeyShare) Reset() { + *x = GeneralKeyShare{} + if protoimpl.UnsafeEnabled { + mi := &file_fairyring_keyshare_key_share_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GeneralKeyShare) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GeneralKeyShare) ProtoMessage() {} + +// Deprecated: Use GeneralKeyShare.ProtoReflect.Descriptor instead. +func (*GeneralKeyShare) Descriptor() ([]byte, []int) { + return file_fairyring_keyshare_key_share_proto_rawDescGZIP(), []int{1} +} + +func (x *GeneralKeyShare) GetValidator() string { + if x != nil { + return x.Validator + } + return "" +} + +func (x *GeneralKeyShare) GetIdType() string { + if x != nil { + return x.IdType + } + return "" +} + +func (x *GeneralKeyShare) GetIdValue() string { + if x != nil { + return x.IdValue + } + return "" +} + +func (x *GeneralKeyShare) GetKeyShare() string { + if x != nil { + return x.KeyShare + } + return "" +} + +func (x *GeneralKeyShare) GetKeyShareIndex() uint64 { + if x != nil { + return x.KeyShareIndex + } + return 0 +} + +func (x *GeneralKeyShare) GetReceivedTimestamp() uint64 { + if x != nil { + return x.ReceivedTimestamp + } + return 0 +} + +func (x *GeneralKeyShare) GetReceivedBlockHeight() uint64 { + if x != nil { + return x.ReceivedBlockHeight + } + return 0 +} + +// ValidatorEncryptedKeyShare defines the structure for +// submitting encrypted keyshares by validators +type ValidatorEncryptedKeyShare struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` + Requester string `protobuf:"bytes,2,opt,name=requester,proto3" json:"requester,omitempty"` + KeyShare string `protobuf:"bytes,3,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` + KeyShareIndex uint64 `protobuf:"varint,4,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + ReceivedTimestamp uint64 `protobuf:"varint,5,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` + ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` + Identity string `protobuf:"bytes,7,opt,name=identity,proto3" json:"identity,omitempty"` +} + +func (x *ValidatorEncryptedKeyShare) Reset() { + *x = ValidatorEncryptedKeyShare{} + if protoimpl.UnsafeEnabled { + mi := &file_fairyring_keyshare_key_share_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidatorEncryptedKeyShare) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidatorEncryptedKeyShare) ProtoMessage() {} + +// Deprecated: Use ValidatorEncryptedKeyShare.ProtoReflect.Descriptor instead. +func (*ValidatorEncryptedKeyShare) Descriptor() ([]byte, []int) { + return file_fairyring_keyshare_key_share_proto_rawDescGZIP(), []int{2} +} + +func (x *ValidatorEncryptedKeyShare) GetValidator() string { + if x != nil { + return x.Validator + } + return "" +} + +func (x *ValidatorEncryptedKeyShare) GetRequester() string { + if x != nil { + return x.Requester + } + return "" +} + +func (x *ValidatorEncryptedKeyShare) GetKeyShare() string { + if x != nil { + return x.KeyShare + } + return "" +} + +func (x *ValidatorEncryptedKeyShare) GetKeyShareIndex() uint64 { + if x != nil { + return x.KeyShareIndex + } + return 0 +} + +func (x *ValidatorEncryptedKeyShare) GetReceivedTimestamp() uint64 { + if x != nil { + return x.ReceivedTimestamp + } + return 0 +} + +func (x *ValidatorEncryptedKeyShare) GetReceivedBlockHeight() uint64 { + if x != nil { + return x.ReceivedBlockHeight + } + return 0 +} + +func (x *ValidatorEncryptedKeyShare) GetIdentity() string { + if x != nil { + return x.Identity + } + return "" +} + var File_fairyring_keyshare_key_share_proto protoreflect.FileDescriptor var file_fairyring_keyshare_key_share_proto_rawDesc = []byte{ 0x0a, 0x22, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0xec, 0x01, 0x0a, 0x08, 0x4b, 0x65, 0x79, + 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0xf3, 0x01, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, - 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2c, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x30, 0x0a, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, - 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0xb5, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x42, 0x0d, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, - 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, - 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, - 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x6f, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, + 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2d, 0x0a, 0x12, 0x72, + 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, + 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x8b, + 0x02, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x12, 0x17, 0x0a, 0x07, 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x69, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x64, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x63, + 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x65, 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x9c, 0x02, 0x0a, + 0x1a, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, + 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2d, 0x0a, 0x12, + 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x72, + 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, + 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x42, 0xb5, 0x01, 0x0a, 0x16, + 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x0d, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, + 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, + 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, + 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -824,9 +2543,11 @@ func file_fairyring_keyshare_key_share_proto_rawDescGZIP() []byte { return file_fairyring_keyshare_key_share_proto_rawDescData } -var file_fairyring_keyshare_key_share_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_fairyring_keyshare_key_share_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_fairyring_keyshare_key_share_proto_goTypes = []interface{}{ - (*KeyShare)(nil), // 0: fairyring.keyshare.KeyShare + (*KeyShare)(nil), // 0: fairyring.keyshare.KeyShare + (*GeneralKeyShare)(nil), // 1: fairyring.keyshare.GeneralKeyShare + (*ValidatorEncryptedKeyShare)(nil), // 2: fairyring.keyshare.ValidatorEncryptedKeyShare } var file_fairyring_keyshare_key_share_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type @@ -854,6 +2575,30 @@ func file_fairyring_keyshare_key_share_proto_init() { return nil } } + file_fairyring_keyshare_key_share_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GeneralKeyShare); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_fairyring_keyshare_key_share_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidatorEncryptedKeyShare); 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{ @@ -861,7 +2606,7 @@ func file_fairyring_keyshare_key_share_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_fairyring_keyshare_key_share_proto_rawDesc, NumEnums: 0, - NumMessages: 1, + NumMessages: 3, NumExtensions: 0, NumServices: 0, }, diff --git a/api/fairyring/keyshare/pub_key.pulsar.go b/api/fairyring/keyshare/pub_key.pulsar.go index d03c2b9a..e8c453d4 100644 --- a/api/fairyring/keyshare/pub_key.pulsar.go +++ b/api/fairyring/keyshare/pub_key.pulsar.go @@ -548,22 +548,22 @@ func (x *_ActivePubKey_5_list) IsValid() bool { } var ( - md_ActivePubKey protoreflect.MessageDescriptor - fd_ActivePubKey_publicKey protoreflect.FieldDescriptor - fd_ActivePubKey_creator protoreflect.FieldDescriptor - fd_ActivePubKey_expiry protoreflect.FieldDescriptor - fd_ActivePubKey_numberOfValidators protoreflect.FieldDescriptor - fd_ActivePubKey_encryptedKeyShares protoreflect.FieldDescriptor + md_ActivePubKey protoreflect.MessageDescriptor + fd_ActivePubKey_public_key protoreflect.FieldDescriptor + fd_ActivePubKey_creator protoreflect.FieldDescriptor + fd_ActivePubKey_expiry protoreflect.FieldDescriptor + fd_ActivePubKey_number_of_validators protoreflect.FieldDescriptor + fd_ActivePubKey_encrypted_key_shares protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_pub_key_proto_init() md_ActivePubKey = File_fairyring_keyshare_pub_key_proto.Messages().ByName("ActivePubKey") - fd_ActivePubKey_publicKey = md_ActivePubKey.Fields().ByName("publicKey") + fd_ActivePubKey_public_key = md_ActivePubKey.Fields().ByName("public_key") fd_ActivePubKey_creator = md_ActivePubKey.Fields().ByName("creator") fd_ActivePubKey_expiry = md_ActivePubKey.Fields().ByName("expiry") - fd_ActivePubKey_numberOfValidators = md_ActivePubKey.Fields().ByName("numberOfValidators") - fd_ActivePubKey_encryptedKeyShares = md_ActivePubKey.Fields().ByName("encryptedKeyShares") + fd_ActivePubKey_number_of_validators = md_ActivePubKey.Fields().ByName("number_of_validators") + fd_ActivePubKey_encrypted_key_shares = md_ActivePubKey.Fields().ByName("encrypted_key_shares") } var _ protoreflect.Message = (*fastReflection_ActivePubKey)(nil) @@ -633,7 +633,7 @@ func (x *fastReflection_ActivePubKey) Interface() protoreflect.ProtoMessage { func (x *fastReflection_ActivePubKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.PublicKey != "" { value := protoreflect.ValueOfString(x.PublicKey) - if !f(fd_ActivePubKey_publicKey, value) { + if !f(fd_ActivePubKey_public_key, value) { return } } @@ -651,13 +651,13 @@ func (x *fastReflection_ActivePubKey) Range(f func(protoreflect.FieldDescriptor, } if x.NumberOfValidators != uint64(0) { value := protoreflect.ValueOfUint64(x.NumberOfValidators) - if !f(fd_ActivePubKey_numberOfValidators, value) { + if !f(fd_ActivePubKey_number_of_validators, value) { return } } if len(x.EncryptedKeyShares) != 0 { value := protoreflect.ValueOfList(&_ActivePubKey_5_list{list: &x.EncryptedKeyShares}) - if !f(fd_ActivePubKey_encryptedKeyShares, value) { + if !f(fd_ActivePubKey_encrypted_key_shares, value) { return } } @@ -676,15 +676,15 @@ func (x *fastReflection_ActivePubKey) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_ActivePubKey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.ActivePubKey.publicKey": + case "fairyring.keyshare.ActivePubKey.public_key": return x.PublicKey != "" case "fairyring.keyshare.ActivePubKey.creator": return x.Creator != "" case "fairyring.keyshare.ActivePubKey.expiry": return x.Expiry != uint64(0) - case "fairyring.keyshare.ActivePubKey.numberOfValidators": + case "fairyring.keyshare.ActivePubKey.number_of_validators": return x.NumberOfValidators != uint64(0) - case "fairyring.keyshare.ActivePubKey.encryptedKeyShares": + case "fairyring.keyshare.ActivePubKey.encrypted_key_shares": return len(x.EncryptedKeyShares) != 0 default: if fd.IsExtension() { @@ -702,15 +702,15 @@ func (x *fastReflection_ActivePubKey) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ActivePubKey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.ActivePubKey.publicKey": + case "fairyring.keyshare.ActivePubKey.public_key": x.PublicKey = "" case "fairyring.keyshare.ActivePubKey.creator": x.Creator = "" case "fairyring.keyshare.ActivePubKey.expiry": x.Expiry = uint64(0) - case "fairyring.keyshare.ActivePubKey.numberOfValidators": + case "fairyring.keyshare.ActivePubKey.number_of_validators": x.NumberOfValidators = uint64(0) - case "fairyring.keyshare.ActivePubKey.encryptedKeyShares": + case "fairyring.keyshare.ActivePubKey.encrypted_key_shares": x.EncryptedKeyShares = nil default: if fd.IsExtension() { @@ -728,7 +728,7 @@ func (x *fastReflection_ActivePubKey) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ActivePubKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.ActivePubKey.publicKey": + case "fairyring.keyshare.ActivePubKey.public_key": value := x.PublicKey return protoreflect.ValueOfString(value) case "fairyring.keyshare.ActivePubKey.creator": @@ -737,10 +737,10 @@ func (x *fastReflection_ActivePubKey) Get(descriptor protoreflect.FieldDescripto case "fairyring.keyshare.ActivePubKey.expiry": value := x.Expiry return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.ActivePubKey.numberOfValidators": + case "fairyring.keyshare.ActivePubKey.number_of_validators": value := x.NumberOfValidators return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.ActivePubKey.encryptedKeyShares": + case "fairyring.keyshare.ActivePubKey.encrypted_key_shares": if len(x.EncryptedKeyShares) == 0 { return protoreflect.ValueOfList(&_ActivePubKey_5_list{}) } @@ -766,15 +766,15 @@ func (x *fastReflection_ActivePubKey) Get(descriptor protoreflect.FieldDescripto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ActivePubKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.ActivePubKey.publicKey": + case "fairyring.keyshare.ActivePubKey.public_key": x.PublicKey = value.Interface().(string) case "fairyring.keyshare.ActivePubKey.creator": x.Creator = value.Interface().(string) case "fairyring.keyshare.ActivePubKey.expiry": x.Expiry = value.Uint() - case "fairyring.keyshare.ActivePubKey.numberOfValidators": + case "fairyring.keyshare.ActivePubKey.number_of_validators": x.NumberOfValidators = value.Uint() - case "fairyring.keyshare.ActivePubKey.encryptedKeyShares": + case "fairyring.keyshare.ActivePubKey.encrypted_key_shares": lv := value.List() clv := lv.(*_ActivePubKey_5_list) x.EncryptedKeyShares = *clv.list @@ -798,20 +798,20 @@ func (x *fastReflection_ActivePubKey) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ActivePubKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.ActivePubKey.encryptedKeyShares": + case "fairyring.keyshare.ActivePubKey.encrypted_key_shares": if x.EncryptedKeyShares == nil { x.EncryptedKeyShares = []*EncryptedKeyShare{} } value := &_ActivePubKey_5_list{list: &x.EncryptedKeyShares} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.ActivePubKey.publicKey": - panic(fmt.Errorf("field publicKey of message fairyring.keyshare.ActivePubKey is not mutable")) + case "fairyring.keyshare.ActivePubKey.public_key": + panic(fmt.Errorf("field public_key of message fairyring.keyshare.ActivePubKey is not mutable")) case "fairyring.keyshare.ActivePubKey.creator": panic(fmt.Errorf("field creator of message fairyring.keyshare.ActivePubKey is not mutable")) case "fairyring.keyshare.ActivePubKey.expiry": panic(fmt.Errorf("field expiry of message fairyring.keyshare.ActivePubKey is not mutable")) - case "fairyring.keyshare.ActivePubKey.numberOfValidators": - panic(fmt.Errorf("field numberOfValidators of message fairyring.keyshare.ActivePubKey is not mutable")) + case "fairyring.keyshare.ActivePubKey.number_of_validators": + panic(fmt.Errorf("field number_of_validators of message fairyring.keyshare.ActivePubKey is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ActivePubKey")) @@ -825,15 +825,15 @@ func (x *fastReflection_ActivePubKey) Mutable(fd protoreflect.FieldDescriptor) p // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ActivePubKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.ActivePubKey.publicKey": + case "fairyring.keyshare.ActivePubKey.public_key": return protoreflect.ValueOfString("") case "fairyring.keyshare.ActivePubKey.creator": return protoreflect.ValueOfString("") case "fairyring.keyshare.ActivePubKey.expiry": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.ActivePubKey.numberOfValidators": + case "fairyring.keyshare.ActivePubKey.number_of_validators": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.ActivePubKey.encryptedKeyShares": + case "fairyring.keyshare.ActivePubKey.encrypted_key_shares": list := []*EncryptedKeyShare{} return protoreflect.ValueOfList(&_ActivePubKey_5_list{list: &list}) default: @@ -1266,22 +1266,22 @@ func (x *_QueuedPubKey_5_list) IsValid() bool { } var ( - md_QueuedPubKey protoreflect.MessageDescriptor - fd_QueuedPubKey_publicKey protoreflect.FieldDescriptor - fd_QueuedPubKey_creator protoreflect.FieldDescriptor - fd_QueuedPubKey_expiry protoreflect.FieldDescriptor - fd_QueuedPubKey_numberOfValidators protoreflect.FieldDescriptor - fd_QueuedPubKey_encryptedKeyShares protoreflect.FieldDescriptor + md_QueuedPubKey protoreflect.MessageDescriptor + fd_QueuedPubKey_public_key protoreflect.FieldDescriptor + fd_QueuedPubKey_creator protoreflect.FieldDescriptor + fd_QueuedPubKey_expiry protoreflect.FieldDescriptor + fd_QueuedPubKey_number_of_validators protoreflect.FieldDescriptor + fd_QueuedPubKey_encrypted_key_shares protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_pub_key_proto_init() md_QueuedPubKey = File_fairyring_keyshare_pub_key_proto.Messages().ByName("QueuedPubKey") - fd_QueuedPubKey_publicKey = md_QueuedPubKey.Fields().ByName("publicKey") + fd_QueuedPubKey_public_key = md_QueuedPubKey.Fields().ByName("public_key") fd_QueuedPubKey_creator = md_QueuedPubKey.Fields().ByName("creator") fd_QueuedPubKey_expiry = md_QueuedPubKey.Fields().ByName("expiry") - fd_QueuedPubKey_numberOfValidators = md_QueuedPubKey.Fields().ByName("numberOfValidators") - fd_QueuedPubKey_encryptedKeyShares = md_QueuedPubKey.Fields().ByName("encryptedKeyShares") + fd_QueuedPubKey_number_of_validators = md_QueuedPubKey.Fields().ByName("number_of_validators") + fd_QueuedPubKey_encrypted_key_shares = md_QueuedPubKey.Fields().ByName("encrypted_key_shares") } var _ protoreflect.Message = (*fastReflection_QueuedPubKey)(nil) @@ -1351,7 +1351,7 @@ func (x *fastReflection_QueuedPubKey) Interface() protoreflect.ProtoMessage { func (x *fastReflection_QueuedPubKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.PublicKey != "" { value := protoreflect.ValueOfString(x.PublicKey) - if !f(fd_QueuedPubKey_publicKey, value) { + if !f(fd_QueuedPubKey_public_key, value) { return } } @@ -1369,13 +1369,13 @@ func (x *fastReflection_QueuedPubKey) Range(f func(protoreflect.FieldDescriptor, } if x.NumberOfValidators != uint64(0) { value := protoreflect.ValueOfUint64(x.NumberOfValidators) - if !f(fd_QueuedPubKey_numberOfValidators, value) { + if !f(fd_QueuedPubKey_number_of_validators, value) { return } } if len(x.EncryptedKeyShares) != 0 { value := protoreflect.ValueOfList(&_QueuedPubKey_5_list{list: &x.EncryptedKeyShares}) - if !f(fd_QueuedPubKey_encryptedKeyShares, value) { + if !f(fd_QueuedPubKey_encrypted_key_shares, value) { return } } @@ -1394,15 +1394,15 @@ func (x *fastReflection_QueuedPubKey) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_QueuedPubKey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueuedPubKey.publicKey": + case "fairyring.keyshare.QueuedPubKey.public_key": return x.PublicKey != "" case "fairyring.keyshare.QueuedPubKey.creator": return x.Creator != "" case "fairyring.keyshare.QueuedPubKey.expiry": return x.Expiry != uint64(0) - case "fairyring.keyshare.QueuedPubKey.numberOfValidators": + case "fairyring.keyshare.QueuedPubKey.number_of_validators": return x.NumberOfValidators != uint64(0) - case "fairyring.keyshare.QueuedPubKey.encryptedKeyShares": + case "fairyring.keyshare.QueuedPubKey.encrypted_key_shares": return len(x.EncryptedKeyShares) != 0 default: if fd.IsExtension() { @@ -1420,15 +1420,15 @@ func (x *fastReflection_QueuedPubKey) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueuedPubKey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueuedPubKey.publicKey": + case "fairyring.keyshare.QueuedPubKey.public_key": x.PublicKey = "" case "fairyring.keyshare.QueuedPubKey.creator": x.Creator = "" case "fairyring.keyshare.QueuedPubKey.expiry": x.Expiry = uint64(0) - case "fairyring.keyshare.QueuedPubKey.numberOfValidators": + case "fairyring.keyshare.QueuedPubKey.number_of_validators": x.NumberOfValidators = uint64(0) - case "fairyring.keyshare.QueuedPubKey.encryptedKeyShares": + case "fairyring.keyshare.QueuedPubKey.encrypted_key_shares": x.EncryptedKeyShares = nil default: if fd.IsExtension() { @@ -1446,7 +1446,7 @@ func (x *fastReflection_QueuedPubKey) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueuedPubKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueuedPubKey.publicKey": + case "fairyring.keyshare.QueuedPubKey.public_key": value := x.PublicKey return protoreflect.ValueOfString(value) case "fairyring.keyshare.QueuedPubKey.creator": @@ -1455,10 +1455,10 @@ func (x *fastReflection_QueuedPubKey) Get(descriptor protoreflect.FieldDescripto case "fairyring.keyshare.QueuedPubKey.expiry": value := x.Expiry return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.QueuedPubKey.numberOfValidators": + case "fairyring.keyshare.QueuedPubKey.number_of_validators": value := x.NumberOfValidators return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.QueuedPubKey.encryptedKeyShares": + case "fairyring.keyshare.QueuedPubKey.encrypted_key_shares": if len(x.EncryptedKeyShares) == 0 { return protoreflect.ValueOfList(&_QueuedPubKey_5_list{}) } @@ -1484,15 +1484,15 @@ func (x *fastReflection_QueuedPubKey) Get(descriptor protoreflect.FieldDescripto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueuedPubKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueuedPubKey.publicKey": + case "fairyring.keyshare.QueuedPubKey.public_key": x.PublicKey = value.Interface().(string) case "fairyring.keyshare.QueuedPubKey.creator": x.Creator = value.Interface().(string) case "fairyring.keyshare.QueuedPubKey.expiry": x.Expiry = value.Uint() - case "fairyring.keyshare.QueuedPubKey.numberOfValidators": + case "fairyring.keyshare.QueuedPubKey.number_of_validators": x.NumberOfValidators = value.Uint() - case "fairyring.keyshare.QueuedPubKey.encryptedKeyShares": + case "fairyring.keyshare.QueuedPubKey.encrypted_key_shares": lv := value.List() clv := lv.(*_QueuedPubKey_5_list) x.EncryptedKeyShares = *clv.list @@ -1516,20 +1516,20 @@ func (x *fastReflection_QueuedPubKey) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueuedPubKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueuedPubKey.encryptedKeyShares": + case "fairyring.keyshare.QueuedPubKey.encrypted_key_shares": if x.EncryptedKeyShares == nil { x.EncryptedKeyShares = []*EncryptedKeyShare{} } value := &_QueuedPubKey_5_list{list: &x.EncryptedKeyShares} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.QueuedPubKey.publicKey": - panic(fmt.Errorf("field publicKey of message fairyring.keyshare.QueuedPubKey is not mutable")) + case "fairyring.keyshare.QueuedPubKey.public_key": + panic(fmt.Errorf("field public_key of message fairyring.keyshare.QueuedPubKey is not mutable")) case "fairyring.keyshare.QueuedPubKey.creator": panic(fmt.Errorf("field creator of message fairyring.keyshare.QueuedPubKey is not mutable")) case "fairyring.keyshare.QueuedPubKey.expiry": panic(fmt.Errorf("field expiry of message fairyring.keyshare.QueuedPubKey is not mutable")) - case "fairyring.keyshare.QueuedPubKey.numberOfValidators": - panic(fmt.Errorf("field numberOfValidators of message fairyring.keyshare.QueuedPubKey is not mutable")) + case "fairyring.keyshare.QueuedPubKey.number_of_validators": + panic(fmt.Errorf("field number_of_validators of message fairyring.keyshare.QueuedPubKey is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueuedPubKey")) @@ -1543,15 +1543,15 @@ func (x *fastReflection_QueuedPubKey) Mutable(fd protoreflect.FieldDescriptor) p // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueuedPubKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueuedPubKey.publicKey": + case "fairyring.keyshare.QueuedPubKey.public_key": return protoreflect.ValueOfString("") case "fairyring.keyshare.QueuedPubKey.creator": return protoreflect.ValueOfString("") case "fairyring.keyshare.QueuedPubKey.expiry": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.QueuedPubKey.numberOfValidators": + case "fairyring.keyshare.QueuedPubKey.number_of_validators": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.QueuedPubKey.encryptedKeyShares": + case "fairyring.keyshare.QueuedPubKey.encrypted_key_shares": list := []*EncryptedKeyShare{} return protoreflect.ValueOfList(&_QueuedPubKey_5_list{list: &list}) default: @@ -1945,6 +1945,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// EncryptedKeyShare defines the structure for storing +// blockwise keyshares submitted by validators type EncryptedKeyShare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1988,16 +1990,17 @@ func (x *EncryptedKeyShare) GetValidator() string { return "" } +// ActivePubKey defines the structure of the active public key type ActivePubKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - PublicKey string `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"` + PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` Expiry uint64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` - NumberOfValidators uint64 `protobuf:"varint,4,opt,name=numberOfValidators,proto3" json:"numberOfValidators,omitempty"` - EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encryptedKeyShares,proto3" json:"encryptedKeyShares,omitempty"` + NumberOfValidators uint64 `protobuf:"varint,4,opt,name=number_of_validators,json=numberOfValidators,proto3" json:"number_of_validators,omitempty"` + EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encrypted_key_shares,json=encryptedKeyShares,proto3" json:"encrypted_key_shares,omitempty"` } func (x *ActivePubKey) Reset() { @@ -2055,16 +2058,17 @@ func (x *ActivePubKey) GetEncryptedKeyShares() []*EncryptedKeyShare { return nil } +// QueuedPubKey defines the structure of the queued public key type QueuedPubKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - PublicKey string `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"` + PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` Expiry uint64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` - NumberOfValidators uint64 `protobuf:"varint,4,opt,name=numberOfValidators,proto3" json:"numberOfValidators,omitempty"` - EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encryptedKeyShares,proto3" json:"encryptedKeyShares,omitempty"` + NumberOfValidators uint64 `protobuf:"varint,4,opt,name=number_of_validators,json=numberOfValidators,proto3" json:"number_of_validators,omitempty"` + EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encrypted_key_shares,json=encryptedKeyShares,proto3" json:"encrypted_key_shares,omitempty"` } func (x *QueuedPubKey) Reset() { @@ -2132,48 +2136,49 @@ var file_fairyring_keyshare_pub_key_proto_rawDesc = []byte{ 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xe5, 0x01, - 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x1c, - 0x0a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x2e, - 0x0a, 0x12, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xea, 0x01, + 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 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, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, + 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, + 0x30, 0x0a, 0x14, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x6e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x73, 0x12, 0x57, 0x0a, 0x14, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, + 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, + 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, + 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0xea, 0x01, 0x0a, 0x0c, 0x51, + 0x75, 0x65, 0x75, 0x65, 0x64, 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, 0x09, 0x52, + 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x30, 0x0a, 0x14, + 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x6e, 0x75, 0x6d, 0x62, - 0x65, 0x72, 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x55, - 0x0a, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, - 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0xe5, 0x01, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, - 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, - 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, - 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x2e, 0x0a, 0x12, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, - 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x12, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x55, 0x0a, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, - 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x42, 0xb3, 0x01, - 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x0b, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, - 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, - 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, - 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x72, 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x57, + 0x0a, 0x14, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, + 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x42, 0xb3, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x42, 0x0b, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2195,8 +2200,8 @@ var file_fairyring_keyshare_pub_key_proto_goTypes = []interface{}{ (*QueuedPubKey)(nil), // 2: fairyring.keyshare.QueuedPubKey } var file_fairyring_keyshare_pub_key_proto_depIdxs = []int32{ - 0, // 0: fairyring.keyshare.ActivePubKey.encryptedKeyShares:type_name -> fairyring.keyshare.EncryptedKeyShare - 0, // 1: fairyring.keyshare.QueuedPubKey.encryptedKeyShares:type_name -> fairyring.keyshare.EncryptedKeyShare + 0, // 0: fairyring.keyshare.ActivePubKey.encrypted_key_shares:type_name -> fairyring.keyshare.EncryptedKeyShare + 0, // 1: fairyring.keyshare.QueuedPubKey.encrypted_key_shares:type_name -> fairyring.keyshare.EncryptedKeyShare 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name diff --git a/api/fairyring/keyshare/query.pulsar.go b/api/fairyring/keyshare/query.pulsar.go index a0cc58d1..09071e70 100644 --- a/api/fairyring/keyshare/query.pulsar.go +++ b/api/fairyring/keyshare/query.pulsar.go @@ -17,23 +17,23 @@ import ( ) var ( - md_QueryVerifiableRandomnessQuery protoreflect.MessageDescriptor + md_QueryVerifiableRandomnessRequest protoreflect.MessageDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryVerifiableRandomnessQuery = File_fairyring_keyshare_query_proto.Messages().ByName("QueryVerifiableRandomnessQuery") + md_QueryVerifiableRandomnessRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryVerifiableRandomnessRequest") } -var _ protoreflect.Message = (*fastReflection_QueryVerifiableRandomnessQuery)(nil) +var _ protoreflect.Message = (*fastReflection_QueryVerifiableRandomnessRequest)(nil) -type fastReflection_QueryVerifiableRandomnessQuery QueryVerifiableRandomnessQuery +type fastReflection_QueryVerifiableRandomnessRequest QueryVerifiableRandomnessRequest -func (x *QueryVerifiableRandomnessQuery) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryVerifiableRandomnessQuery)(x) +func (x *QueryVerifiableRandomnessRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryVerifiableRandomnessRequest)(x) } -func (x *QueryVerifiableRandomnessQuery) slowProtoReflect() protoreflect.Message { +func (x *QueryVerifiableRandomnessRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -45,43 +45,43 @@ func (x *QueryVerifiableRandomnessQuery) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_QueryVerifiableRandomnessQuery_messageType fastReflection_QueryVerifiableRandomnessQuery_messageType -var _ protoreflect.MessageType = fastReflection_QueryVerifiableRandomnessQuery_messageType{} +var _fastReflection_QueryVerifiableRandomnessRequest_messageType fastReflection_QueryVerifiableRandomnessRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryVerifiableRandomnessRequest_messageType{} -type fastReflection_QueryVerifiableRandomnessQuery_messageType struct{} +type fastReflection_QueryVerifiableRandomnessRequest_messageType struct{} -func (x fastReflection_QueryVerifiableRandomnessQuery_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryVerifiableRandomnessQuery)(nil) +func (x fastReflection_QueryVerifiableRandomnessRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryVerifiableRandomnessRequest)(nil) } -func (x fastReflection_QueryVerifiableRandomnessQuery_messageType) New() protoreflect.Message { - return new(fastReflection_QueryVerifiableRandomnessQuery) +func (x fastReflection_QueryVerifiableRandomnessRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryVerifiableRandomnessRequest) } -func (x fastReflection_QueryVerifiableRandomnessQuery_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryVerifiableRandomnessQuery +func (x fastReflection_QueryVerifiableRandomnessRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryVerifiableRandomnessRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryVerifiableRandomnessQuery) Descriptor() protoreflect.MessageDescriptor { - return md_QueryVerifiableRandomnessQuery +func (x *fastReflection_QueryVerifiableRandomnessRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryVerifiableRandomnessRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryVerifiableRandomnessQuery) Type() protoreflect.MessageType { - return _fastReflection_QueryVerifiableRandomnessQuery_messageType +func (x *fastReflection_QueryVerifiableRandomnessRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryVerifiableRandomnessRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryVerifiableRandomnessQuery) New() protoreflect.Message { - return new(fastReflection_QueryVerifiableRandomnessQuery) +func (x *fastReflection_QueryVerifiableRandomnessRequest) New() protoreflect.Message { + return new(fastReflection_QueryVerifiableRandomnessRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryVerifiableRandomnessQuery) Interface() protoreflect.ProtoMessage { - return (*QueryVerifiableRandomnessQuery)(x) +func (x *fastReflection_QueryVerifiableRandomnessRequest) Interface() protoreflect.ProtoMessage { + return (*QueryVerifiableRandomnessRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -89,7 +89,7 @@ func (x *fastReflection_QueryVerifiableRandomnessQuery) Interface() protoreflect // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryVerifiableRandomnessQuery) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryVerifiableRandomnessRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -103,13 +103,13 @@ func (x *fastReflection_QueryVerifiableRandomnessQuery) Range(f func(protoreflec // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryVerifiableRandomnessQuery) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryVerifiableRandomnessRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryVerifiableRandomnessQuery")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryVerifiableRandomnessRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryVerifiableRandomnessQuery does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryVerifiableRandomnessRequest does not contain field %s", fd.FullName())) } } @@ -119,13 +119,13 @@ func (x *fastReflection_QueryVerifiableRandomnessQuery) Has(fd protoreflect.Fiel // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVerifiableRandomnessQuery) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryVerifiableRandomnessRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryVerifiableRandomnessQuery")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryVerifiableRandomnessRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryVerifiableRandomnessQuery does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryVerifiableRandomnessRequest does not contain field %s", fd.FullName())) } } @@ -135,13 +135,13 @@ func (x *fastReflection_QueryVerifiableRandomnessQuery) Clear(fd protoreflect.Fi // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryVerifiableRandomnessQuery) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryVerifiableRandomnessRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryVerifiableRandomnessQuery")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryVerifiableRandomnessRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryVerifiableRandomnessQuery does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryVerifiableRandomnessRequest does not contain field %s", descriptor.FullName())) } } @@ -155,13 +155,13 @@ func (x *fastReflection_QueryVerifiableRandomnessQuery) Get(descriptor protorefl // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVerifiableRandomnessQuery) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryVerifiableRandomnessRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryVerifiableRandomnessQuery")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryVerifiableRandomnessRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryVerifiableRandomnessQuery does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryVerifiableRandomnessRequest does not contain field %s", fd.FullName())) } } @@ -175,36 +175,36 @@ func (x *fastReflection_QueryVerifiableRandomnessQuery) Set(fd protoreflect.Fiel // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVerifiableRandomnessQuery) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryVerifiableRandomnessRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryVerifiableRandomnessQuery")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryVerifiableRandomnessRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryVerifiableRandomnessQuery does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryVerifiableRandomnessRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryVerifiableRandomnessQuery) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryVerifiableRandomnessRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryVerifiableRandomnessQuery")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryVerifiableRandomnessRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryVerifiableRandomnessQuery does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryVerifiableRandomnessRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryVerifiableRandomnessQuery) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryVerifiableRandomnessRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryVerifiableRandomnessQuery", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryVerifiableRandomnessRequest", d.FullName())) } panic("unreachable") } @@ -212,7 +212,7 @@ func (x *fastReflection_QueryVerifiableRandomnessQuery) WhichOneof(d protoreflec // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryVerifiableRandomnessQuery) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryVerifiableRandomnessRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -223,7 +223,7 @@ func (x *fastReflection_QueryVerifiableRandomnessQuery) GetUnknown() protoreflec // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryVerifiableRandomnessQuery) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryVerifiableRandomnessRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -235,7 +235,7 @@ func (x *fastReflection_QueryVerifiableRandomnessQuery) SetUnknown(fields protor // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryVerifiableRandomnessQuery) IsValid() bool { +func (x *fastReflection_QueryVerifiableRandomnessRequest) IsValid() bool { return x != nil } @@ -245,9 +245,9 @@ func (x *fastReflection_QueryVerifiableRandomnessQuery) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryVerifiableRandomnessQuery) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryVerifiableRandomnessRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryVerifiableRandomnessQuery) + x := input.Message.Interface().(*QueryVerifiableRandomnessRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -269,7 +269,7 @@ func (x *fastReflection_QueryVerifiableRandomnessQuery) ProtoMethods() *protoifa } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryVerifiableRandomnessQuery) + x := input.Message.Interface().(*QueryVerifiableRandomnessRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -299,7 +299,7 @@ func (x *fastReflection_QueryVerifiableRandomnessQuery) ProtoMethods() *protoifa }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryVerifiableRandomnessQuery) + x := input.Message.Interface().(*QueryVerifiableRandomnessRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -331,10 +331,10 @@ func (x *fastReflection_QueryVerifiableRandomnessQuery) ProtoMethods() *protoifa fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVerifiableRandomnessQuery: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVerifiableRandomnessRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVerifiableRandomnessQuery: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryVerifiableRandomnessRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -1988,16 +1988,16 @@ func (x *fastReflection_QueryCommitmentsRequest) ProtoMethods() *protoiface.Meth } var ( - md_QueryCommitmentsResponse protoreflect.MessageDescriptor - fd_QueryCommitmentsResponse_activeCommitments protoreflect.FieldDescriptor - fd_QueryCommitmentsResponse_queuedCommitments protoreflect.FieldDescriptor + md_QueryCommitmentsResponse protoreflect.MessageDescriptor + fd_QueryCommitmentsResponse_active_commitments protoreflect.FieldDescriptor + fd_QueryCommitmentsResponse_queued_commitments protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() md_QueryCommitmentsResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryCommitmentsResponse") - fd_QueryCommitmentsResponse_activeCommitments = md_QueryCommitmentsResponse.Fields().ByName("activeCommitments") - fd_QueryCommitmentsResponse_queuedCommitments = md_QueryCommitmentsResponse.Fields().ByName("queuedCommitments") + fd_QueryCommitmentsResponse_active_commitments = md_QueryCommitmentsResponse.Fields().ByName("active_commitments") + fd_QueryCommitmentsResponse_queued_commitments = md_QueryCommitmentsResponse.Fields().ByName("queued_commitments") } var _ protoreflect.Message = (*fastReflection_QueryCommitmentsResponse)(nil) @@ -2067,13 +2067,13 @@ func (x *fastReflection_QueryCommitmentsResponse) Interface() protoreflect.Proto func (x *fastReflection_QueryCommitmentsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ActiveCommitments != nil { value := protoreflect.ValueOfMessage(x.ActiveCommitments.ProtoReflect()) - if !f(fd_QueryCommitmentsResponse_activeCommitments, value) { + if !f(fd_QueryCommitmentsResponse_active_commitments, value) { return } } if x.QueuedCommitments != nil { value := protoreflect.ValueOfMessage(x.QueuedCommitments.ProtoReflect()) - if !f(fd_QueryCommitmentsResponse_queuedCommitments, value) { + if !f(fd_QueryCommitmentsResponse_queued_commitments, value) { return } } @@ -2092,9 +2092,9 @@ func (x *fastReflection_QueryCommitmentsResponse) Range(f func(protoreflect.Fiel // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryCommitmentsResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryCommitmentsResponse.activeCommitments": + case "fairyring.keyshare.QueryCommitmentsResponse.active_commitments": return x.ActiveCommitments != nil - case "fairyring.keyshare.QueryCommitmentsResponse.queuedCommitments": + case "fairyring.keyshare.QueryCommitmentsResponse.queued_commitments": return x.QueuedCommitments != nil default: if fd.IsExtension() { @@ -2112,9 +2112,9 @@ func (x *fastReflection_QueryCommitmentsResponse) Has(fd protoreflect.FieldDescr // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryCommitmentsResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryCommitmentsResponse.activeCommitments": + case "fairyring.keyshare.QueryCommitmentsResponse.active_commitments": x.ActiveCommitments = nil - case "fairyring.keyshare.QueryCommitmentsResponse.queuedCommitments": + case "fairyring.keyshare.QueryCommitmentsResponse.queued_commitments": x.QueuedCommitments = nil default: if fd.IsExtension() { @@ -2132,10 +2132,10 @@ func (x *fastReflection_QueryCommitmentsResponse) Clear(fd protoreflect.FieldDes // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryCommitmentsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryCommitmentsResponse.activeCommitments": + case "fairyring.keyshare.QueryCommitmentsResponse.active_commitments": value := x.ActiveCommitments return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.keyshare.QueryCommitmentsResponse.queuedCommitments": + case "fairyring.keyshare.QueryCommitmentsResponse.queued_commitments": value := x.QueuedCommitments return protoreflect.ValueOfMessage(value.ProtoReflect()) default: @@ -2158,9 +2158,9 @@ func (x *fastReflection_QueryCommitmentsResponse) Get(descriptor protoreflect.Fi // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryCommitmentsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryCommitmentsResponse.activeCommitments": + case "fairyring.keyshare.QueryCommitmentsResponse.active_commitments": x.ActiveCommitments = value.Message().Interface().(*Commitments) - case "fairyring.keyshare.QueryCommitmentsResponse.queuedCommitments": + case "fairyring.keyshare.QueryCommitmentsResponse.queued_commitments": x.QueuedCommitments = value.Message().Interface().(*Commitments) default: if fd.IsExtension() { @@ -2182,12 +2182,12 @@ func (x *fastReflection_QueryCommitmentsResponse) Set(fd protoreflect.FieldDescr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryCommitmentsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryCommitmentsResponse.activeCommitments": + case "fairyring.keyshare.QueryCommitmentsResponse.active_commitments": if x.ActiveCommitments == nil { x.ActiveCommitments = new(Commitments) } return protoreflect.ValueOfMessage(x.ActiveCommitments.ProtoReflect()) - case "fairyring.keyshare.QueryCommitmentsResponse.queuedCommitments": + case "fairyring.keyshare.QueryCommitmentsResponse.queued_commitments": if x.QueuedCommitments == nil { x.QueuedCommitments = new(Commitments) } @@ -2205,10 +2205,10 @@ func (x *fastReflection_QueryCommitmentsResponse) Mutable(fd protoreflect.FieldD // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryCommitmentsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryCommitmentsResponse.activeCommitments": + case "fairyring.keyshare.QueryCommitmentsResponse.active_commitments": m := new(Commitments) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.keyshare.QueryCommitmentsResponse.queuedCommitments": + case "fairyring.keyshare.QueryCommitmentsResponse.queued_commitments": m := new(Commitments) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: @@ -2502,25 +2502,25 @@ func (x *fastReflection_QueryCommitmentsResponse) ProtoMethods() *protoiface.Met } var ( - md_QueryGetValidatorSetRequest protoreflect.MessageDescriptor - fd_QueryGetValidatorSetRequest_index protoreflect.FieldDescriptor + md_QueryValidatorSetRequest protoreflect.MessageDescriptor + fd_QueryValidatorSetRequest_index protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryGetValidatorSetRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGetValidatorSetRequest") - fd_QueryGetValidatorSetRequest_index = md_QueryGetValidatorSetRequest.Fields().ByName("index") + md_QueryValidatorSetRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryValidatorSetRequest") + fd_QueryValidatorSetRequest_index = md_QueryValidatorSetRequest.Fields().ByName("index") } -var _ protoreflect.Message = (*fastReflection_QueryGetValidatorSetRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryValidatorSetRequest)(nil) -type fastReflection_QueryGetValidatorSetRequest QueryGetValidatorSetRequest +type fastReflection_QueryValidatorSetRequest QueryValidatorSetRequest -func (x *QueryGetValidatorSetRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetValidatorSetRequest)(x) +func (x *QueryValidatorSetRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryValidatorSetRequest)(x) } -func (x *QueryGetValidatorSetRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryValidatorSetRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2532,43 +2532,43 @@ func (x *QueryGetValidatorSetRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGetValidatorSetRequest_messageType fastReflection_QueryGetValidatorSetRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetValidatorSetRequest_messageType{} +var _fastReflection_QueryValidatorSetRequest_messageType fastReflection_QueryValidatorSetRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryValidatorSetRequest_messageType{} -type fastReflection_QueryGetValidatorSetRequest_messageType struct{} +type fastReflection_QueryValidatorSetRequest_messageType struct{} -func (x fastReflection_QueryGetValidatorSetRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetValidatorSetRequest)(nil) +func (x fastReflection_QueryValidatorSetRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryValidatorSetRequest)(nil) } -func (x fastReflection_QueryGetValidatorSetRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetValidatorSetRequest) +func (x fastReflection_QueryValidatorSetRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryValidatorSetRequest) } -func (x fastReflection_QueryGetValidatorSetRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetValidatorSetRequest +func (x fastReflection_QueryValidatorSetRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryValidatorSetRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetValidatorSetRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetValidatorSetRequest +func (x *fastReflection_QueryValidatorSetRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryValidatorSetRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetValidatorSetRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetValidatorSetRequest_messageType +func (x *fastReflection_QueryValidatorSetRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryValidatorSetRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetValidatorSetRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetValidatorSetRequest) +func (x *fastReflection_QueryValidatorSetRequest) New() protoreflect.Message { + return new(fastReflection_QueryValidatorSetRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetValidatorSetRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetValidatorSetRequest)(x) +func (x *fastReflection_QueryValidatorSetRequest) Interface() protoreflect.ProtoMessage { + return (*QueryValidatorSetRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -2576,10 +2576,10 @@ func (x *fastReflection_QueryGetValidatorSetRequest) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetValidatorSetRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryValidatorSetRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Index != "" { value := protoreflect.ValueOfString(x.Index) - if !f(fd_QueryGetValidatorSetRequest_index, value) { + if !f(fd_QueryValidatorSetRequest_index, value) { return } } @@ -2596,15 +2596,15 @@ func (x *fastReflection_QueryGetValidatorSetRequest) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetValidatorSetRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryValidatorSetRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryGetValidatorSetRequest.index": + case "fairyring.keyshare.QueryValidatorSetRequest.index": return x.Index != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetValidatorSetRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetValidatorSetRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetRequest does not contain field %s", fd.FullName())) } } @@ -2614,15 +2614,15 @@ func (x *fastReflection_QueryGetValidatorSetRequest) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetValidatorSetRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryValidatorSetRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetValidatorSetRequest.index": + case "fairyring.keyshare.QueryValidatorSetRequest.index": x.Index = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetValidatorSetRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetValidatorSetRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetRequest does not contain field %s", fd.FullName())) } } @@ -2632,16 +2632,16 @@ func (x *fastReflection_QueryGetValidatorSetRequest) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetValidatorSetRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryValidatorSetRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryGetValidatorSetRequest.index": + case "fairyring.keyshare.QueryValidatorSetRequest.index": value := x.Index return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetValidatorSetRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetValidatorSetRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetRequest does not contain field %s", descriptor.FullName())) } } @@ -2655,15 +2655,15 @@ func (x *fastReflection_QueryGetValidatorSetRequest) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetValidatorSetRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryValidatorSetRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetValidatorSetRequest.index": + case "fairyring.keyshare.QueryValidatorSetRequest.index": x.Index = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetValidatorSetRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetValidatorSetRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetRequest does not contain field %s", fd.FullName())) } } @@ -2677,40 +2677,40 @@ func (x *fastReflection_QueryGetValidatorSetRequest) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetValidatorSetRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryValidatorSetRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetValidatorSetRequest.index": - panic(fmt.Errorf("field index of message fairyring.keyshare.QueryGetValidatorSetRequest is not mutable")) + case "fairyring.keyshare.QueryValidatorSetRequest.index": + panic(fmt.Errorf("field index of message fairyring.keyshare.QueryValidatorSetRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetValidatorSetRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetValidatorSetRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetValidatorSetRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryValidatorSetRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetValidatorSetRequest.index": + case "fairyring.keyshare.QueryValidatorSetRequest.index": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetValidatorSetRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetValidatorSetRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetValidatorSetRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryValidatorSetRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGetValidatorSetRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryValidatorSetRequest", d.FullName())) } panic("unreachable") } @@ -2718,7 +2718,7 @@ func (x *fastReflection_QueryGetValidatorSetRequest) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetValidatorSetRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryValidatorSetRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2729,7 +2729,7 @@ func (x *fastReflection_QueryGetValidatorSetRequest) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetValidatorSetRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryValidatorSetRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2741,7 +2741,7 @@ func (x *fastReflection_QueryGetValidatorSetRequest) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetValidatorSetRequest) IsValid() bool { +func (x *fastReflection_QueryValidatorSetRequest) IsValid() bool { return x != nil } @@ -2751,9 +2751,9 @@ func (x *fastReflection_QueryGetValidatorSetRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetValidatorSetRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryValidatorSetRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetValidatorSetRequest) + x := input.Message.Interface().(*QueryValidatorSetRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2779,7 +2779,7 @@ func (x *fastReflection_QueryGetValidatorSetRequest) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetValidatorSetRequest) + x := input.Message.Interface().(*QueryValidatorSetRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2816,7 +2816,7 @@ func (x *fastReflection_QueryGetValidatorSetRequest) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetValidatorSetRequest) + x := input.Message.Interface().(*QueryValidatorSetRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2848,10 +2848,10 @@ func (x *fastReflection_QueryGetValidatorSetRequest) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetValidatorSetRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryValidatorSetRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetValidatorSetRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryValidatorSetRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2922,25 +2922,25 @@ func (x *fastReflection_QueryGetValidatorSetRequest) ProtoMethods() *protoiface. } var ( - md_QueryGetValidatorSetResponse protoreflect.MessageDescriptor - fd_QueryGetValidatorSetResponse_validatorSet protoreflect.FieldDescriptor + md_QueryValidatorSetResponse protoreflect.MessageDescriptor + fd_QueryValidatorSetResponse_validator_set protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryGetValidatorSetResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGetValidatorSetResponse") - fd_QueryGetValidatorSetResponse_validatorSet = md_QueryGetValidatorSetResponse.Fields().ByName("validatorSet") + md_QueryValidatorSetResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryValidatorSetResponse") + fd_QueryValidatorSetResponse_validator_set = md_QueryValidatorSetResponse.Fields().ByName("validator_set") } -var _ protoreflect.Message = (*fastReflection_QueryGetValidatorSetResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryValidatorSetResponse)(nil) -type fastReflection_QueryGetValidatorSetResponse QueryGetValidatorSetResponse +type fastReflection_QueryValidatorSetResponse QueryValidatorSetResponse -func (x *QueryGetValidatorSetResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetValidatorSetResponse)(x) +func (x *QueryValidatorSetResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryValidatorSetResponse)(x) } -func (x *QueryGetValidatorSetResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryValidatorSetResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2952,43 +2952,43 @@ func (x *QueryGetValidatorSetResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGetValidatorSetResponse_messageType fastReflection_QueryGetValidatorSetResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetValidatorSetResponse_messageType{} +var _fastReflection_QueryValidatorSetResponse_messageType fastReflection_QueryValidatorSetResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryValidatorSetResponse_messageType{} -type fastReflection_QueryGetValidatorSetResponse_messageType struct{} +type fastReflection_QueryValidatorSetResponse_messageType struct{} -func (x fastReflection_QueryGetValidatorSetResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetValidatorSetResponse)(nil) +func (x fastReflection_QueryValidatorSetResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryValidatorSetResponse)(nil) } -func (x fastReflection_QueryGetValidatorSetResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetValidatorSetResponse) +func (x fastReflection_QueryValidatorSetResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryValidatorSetResponse) } -func (x fastReflection_QueryGetValidatorSetResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetValidatorSetResponse +func (x fastReflection_QueryValidatorSetResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryValidatorSetResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetValidatorSetResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetValidatorSetResponse +func (x *fastReflection_QueryValidatorSetResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryValidatorSetResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetValidatorSetResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGetValidatorSetResponse_messageType +func (x *fastReflection_QueryValidatorSetResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryValidatorSetResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetValidatorSetResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetValidatorSetResponse) +func (x *fastReflection_QueryValidatorSetResponse) New() protoreflect.Message { + return new(fastReflection_QueryValidatorSetResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetValidatorSetResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetValidatorSetResponse)(x) +func (x *fastReflection_QueryValidatorSetResponse) Interface() protoreflect.ProtoMessage { + return (*QueryValidatorSetResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -2996,10 +2996,10 @@ func (x *fastReflection_QueryGetValidatorSetResponse) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetValidatorSetResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryValidatorSetResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ValidatorSet != nil { value := protoreflect.ValueOfMessage(x.ValidatorSet.ProtoReflect()) - if !f(fd_QueryGetValidatorSetResponse_validatorSet, value) { + if !f(fd_QueryValidatorSetResponse_validator_set, value) { return } } @@ -3016,15 +3016,15 @@ func (x *fastReflection_QueryGetValidatorSetResponse) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetValidatorSetResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryValidatorSetResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryGetValidatorSetResponse.validatorSet": + case "fairyring.keyshare.QueryValidatorSetResponse.validator_set": return x.ValidatorSet != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetValidatorSetResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetValidatorSetResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetResponse does not contain field %s", fd.FullName())) } } @@ -3034,15 +3034,15 @@ func (x *fastReflection_QueryGetValidatorSetResponse) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetValidatorSetResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryValidatorSetResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetValidatorSetResponse.validatorSet": + case "fairyring.keyshare.QueryValidatorSetResponse.validator_set": x.ValidatorSet = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetValidatorSetResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetValidatorSetResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetResponse does not contain field %s", fd.FullName())) } } @@ -3052,16 +3052,16 @@ func (x *fastReflection_QueryGetValidatorSetResponse) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetValidatorSetResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryValidatorSetResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryGetValidatorSetResponse.validatorSet": + case "fairyring.keyshare.QueryValidatorSetResponse.validator_set": value := x.ValidatorSet return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetValidatorSetResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetValidatorSetResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetResponse does not contain field %s", descriptor.FullName())) } } @@ -3075,15 +3075,15 @@ func (x *fastReflection_QueryGetValidatorSetResponse) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetValidatorSetResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryValidatorSetResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetValidatorSetResponse.validatorSet": + case "fairyring.keyshare.QueryValidatorSetResponse.validator_set": x.ValidatorSet = value.Message().Interface().(*ValidatorSet) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetValidatorSetResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetValidatorSetResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetResponse does not contain field %s", fd.FullName())) } } @@ -3097,44 +3097,44 @@ func (x *fastReflection_QueryGetValidatorSetResponse) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetValidatorSetResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryValidatorSetResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetValidatorSetResponse.validatorSet": + case "fairyring.keyshare.QueryValidatorSetResponse.validator_set": if x.ValidatorSet == nil { x.ValidatorSet = new(ValidatorSet) } return protoreflect.ValueOfMessage(x.ValidatorSet.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetValidatorSetResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetValidatorSetResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetValidatorSetResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryValidatorSetResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetValidatorSetResponse.validatorSet": + case "fairyring.keyshare.QueryValidatorSetResponse.validator_set": m := new(ValidatorSet) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetValidatorSetResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetValidatorSetResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetValidatorSetResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryValidatorSetResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGetValidatorSetResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryValidatorSetResponse", d.FullName())) } panic("unreachable") } @@ -3142,7 +3142,7 @@ func (x *fastReflection_QueryGetValidatorSetResponse) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetValidatorSetResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryValidatorSetResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3153,7 +3153,7 @@ func (x *fastReflection_QueryGetValidatorSetResponse) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetValidatorSetResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryValidatorSetResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3165,7 +3165,7 @@ func (x *fastReflection_QueryGetValidatorSetResponse) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetValidatorSetResponse) IsValid() bool { +func (x *fastReflection_QueryValidatorSetResponse) IsValid() bool { return x != nil } @@ -3175,9 +3175,9 @@ func (x *fastReflection_QueryGetValidatorSetResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetValidatorSetResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryValidatorSetResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetValidatorSetResponse) + x := input.Message.Interface().(*QueryValidatorSetResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3203,7 +3203,7 @@ func (x *fastReflection_QueryGetValidatorSetResponse) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetValidatorSetResponse) + x := input.Message.Interface().(*QueryValidatorSetResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3247,7 +3247,7 @@ func (x *fastReflection_QueryGetValidatorSetResponse) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetValidatorSetResponse) + x := input.Message.Interface().(*QueryValidatorSetResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3279,10 +3279,10 @@ func (x *fastReflection_QueryGetValidatorSetResponse) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetValidatorSetResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryValidatorSetResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetValidatorSetResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryValidatorSetResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3357,25 +3357,25 @@ func (x *fastReflection_QueryGetValidatorSetResponse) ProtoMethods() *protoiface } var ( - md_QueryAllValidatorSetRequest protoreflect.MessageDescriptor - fd_QueryAllValidatorSetRequest_pagination protoreflect.FieldDescriptor + md_QueryValidatorSetAllRequest protoreflect.MessageDescriptor + fd_QueryValidatorSetAllRequest_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryAllValidatorSetRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAllValidatorSetRequest") - fd_QueryAllValidatorSetRequest_pagination = md_QueryAllValidatorSetRequest.Fields().ByName("pagination") + md_QueryValidatorSetAllRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryValidatorSetAllRequest") + fd_QueryValidatorSetAllRequest_pagination = md_QueryValidatorSetAllRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAllValidatorSetRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryValidatorSetAllRequest)(nil) -type fastReflection_QueryAllValidatorSetRequest QueryAllValidatorSetRequest +type fastReflection_QueryValidatorSetAllRequest QueryValidatorSetAllRequest -func (x *QueryAllValidatorSetRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllValidatorSetRequest)(x) +func (x *QueryValidatorSetAllRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryValidatorSetAllRequest)(x) } -func (x *QueryAllValidatorSetRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryValidatorSetAllRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3387,43 +3387,43 @@ func (x *QueryAllValidatorSetRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryAllValidatorSetRequest_messageType fastReflection_QueryAllValidatorSetRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllValidatorSetRequest_messageType{} +var _fastReflection_QueryValidatorSetAllRequest_messageType fastReflection_QueryValidatorSetAllRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryValidatorSetAllRequest_messageType{} -type fastReflection_QueryAllValidatorSetRequest_messageType struct{} +type fastReflection_QueryValidatorSetAllRequest_messageType struct{} -func (x fastReflection_QueryAllValidatorSetRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllValidatorSetRequest)(nil) +func (x fastReflection_QueryValidatorSetAllRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryValidatorSetAllRequest)(nil) } -func (x fastReflection_QueryAllValidatorSetRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllValidatorSetRequest) +func (x fastReflection_QueryValidatorSetAllRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryValidatorSetAllRequest) } -func (x fastReflection_QueryAllValidatorSetRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllValidatorSetRequest +func (x fastReflection_QueryValidatorSetAllRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryValidatorSetAllRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAllValidatorSetRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllValidatorSetRequest +func (x *fastReflection_QueryValidatorSetAllRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryValidatorSetAllRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAllValidatorSetRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryAllValidatorSetRequest_messageType +func (x *fastReflection_QueryValidatorSetAllRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryValidatorSetAllRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllValidatorSetRequest) New() protoreflect.Message { - return new(fastReflection_QueryAllValidatorSetRequest) +func (x *fastReflection_QueryValidatorSetAllRequest) New() protoreflect.Message { + return new(fastReflection_QueryValidatorSetAllRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllValidatorSetRequest) Interface() protoreflect.ProtoMessage { - return (*QueryAllValidatorSetRequest)(x) +func (x *fastReflection_QueryValidatorSetAllRequest) Interface() protoreflect.ProtoMessage { + return (*QueryValidatorSetAllRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -3431,10 +3431,10 @@ func (x *fastReflection_QueryAllValidatorSetRequest) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAllValidatorSetRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryValidatorSetAllRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAllValidatorSetRequest_pagination, value) { + if !f(fd_QueryValidatorSetAllRequest_pagination, value) { return } } @@ -3451,15 +3451,15 @@ func (x *fastReflection_QueryAllValidatorSetRequest) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAllValidatorSetRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryValidatorSetAllRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryAllValidatorSetRequest.pagination": + case "fairyring.keyshare.QueryValidatorSetAllRequest.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllValidatorSetRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllValidatorSetRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetAllRequest does not contain field %s", fd.FullName())) } } @@ -3469,15 +3469,15 @@ func (x *fastReflection_QueryAllValidatorSetRequest) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllValidatorSetRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryValidatorSetAllRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllValidatorSetRequest.pagination": + case "fairyring.keyshare.QueryValidatorSetAllRequest.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllValidatorSetRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllValidatorSetRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetAllRequest does not contain field %s", fd.FullName())) } } @@ -3487,16 +3487,16 @@ func (x *fastReflection_QueryAllValidatorSetRequest) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAllValidatorSetRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryValidatorSetAllRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryAllValidatorSetRequest.pagination": + case "fairyring.keyshare.QueryValidatorSetAllRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllValidatorSetRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllValidatorSetRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetAllRequest does not contain field %s", descriptor.FullName())) } } @@ -3510,15 +3510,15 @@ func (x *fastReflection_QueryAllValidatorSetRequest) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllValidatorSetRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryValidatorSetAllRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllValidatorSetRequest.pagination": + case "fairyring.keyshare.QueryValidatorSetAllRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllValidatorSetRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllValidatorSetRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetAllRequest does not contain field %s", fd.FullName())) } } @@ -3532,44 +3532,44 @@ func (x *fastReflection_QueryAllValidatorSetRequest) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllValidatorSetRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryValidatorSetAllRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllValidatorSetRequest.pagination": + case "fairyring.keyshare.QueryValidatorSetAllRequest.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllValidatorSetRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllValidatorSetRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetAllRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAllValidatorSetRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryValidatorSetAllRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllValidatorSetRequest.pagination": + case "fairyring.keyshare.QueryValidatorSetAllRequest.pagination": m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllValidatorSetRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllValidatorSetRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetAllRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAllValidatorSetRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryValidatorSetAllRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAllValidatorSetRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryValidatorSetAllRequest", d.FullName())) } panic("unreachable") } @@ -3577,7 +3577,7 @@ func (x *fastReflection_QueryAllValidatorSetRequest) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAllValidatorSetRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryValidatorSetAllRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3588,7 +3588,7 @@ func (x *fastReflection_QueryAllValidatorSetRequest) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllValidatorSetRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryValidatorSetAllRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3600,7 +3600,7 @@ func (x *fastReflection_QueryAllValidatorSetRequest) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAllValidatorSetRequest) IsValid() bool { +func (x *fastReflection_QueryValidatorSetAllRequest) IsValid() bool { return x != nil } @@ -3610,9 +3610,9 @@ func (x *fastReflection_QueryAllValidatorSetRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAllValidatorSetRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryValidatorSetAllRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllValidatorSetRequest) + x := input.Message.Interface().(*QueryValidatorSetAllRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3638,7 +3638,7 @@ func (x *fastReflection_QueryAllValidatorSetRequest) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllValidatorSetRequest) + x := input.Message.Interface().(*QueryValidatorSetAllRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3682,7 +3682,7 @@ func (x *fastReflection_QueryAllValidatorSetRequest) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAllValidatorSetRequest) + x := input.Message.Interface().(*QueryValidatorSetAllRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3714,10 +3714,10 @@ func (x *fastReflection_QueryAllValidatorSetRequest) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllValidatorSetRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryValidatorSetAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllValidatorSetRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryValidatorSetAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3791,79 +3791,79 @@ func (x *fastReflection_QueryAllValidatorSetRequest) ProtoMethods() *protoiface. } } -var _ protoreflect.List = (*_QueryAllValidatorSetResponse_1_list)(nil) +var _ protoreflect.List = (*_QueryValidatorSetAllResponse_1_list)(nil) -type _QueryAllValidatorSetResponse_1_list struct { +type _QueryValidatorSetAllResponse_1_list struct { list *[]*ValidatorSet } -func (x *_QueryAllValidatorSetResponse_1_list) Len() int { +func (x *_QueryValidatorSetAllResponse_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryAllValidatorSetResponse_1_list) Get(i int) protoreflect.Value { +func (x *_QueryValidatorSetAllResponse_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryAllValidatorSetResponse_1_list) Set(i int, value protoreflect.Value) { +func (x *_QueryValidatorSetAllResponse_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*ValidatorSet) (*x.list)[i] = concreteValue } -func (x *_QueryAllValidatorSetResponse_1_list) Append(value protoreflect.Value) { +func (x *_QueryValidatorSetAllResponse_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*ValidatorSet) *x.list = append(*x.list, concreteValue) } -func (x *_QueryAllValidatorSetResponse_1_list) AppendMutable() protoreflect.Value { +func (x *_QueryValidatorSetAllResponse_1_list) AppendMutable() protoreflect.Value { v := new(ValidatorSet) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAllValidatorSetResponse_1_list) Truncate(n int) { +func (x *_QueryValidatorSetAllResponse_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryAllValidatorSetResponse_1_list) NewElement() protoreflect.Value { +func (x *_QueryValidatorSetAllResponse_1_list) NewElement() protoreflect.Value { v := new(ValidatorSet) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAllValidatorSetResponse_1_list) IsValid() bool { +func (x *_QueryValidatorSetAllResponse_1_list) IsValid() bool { return x.list != nil } var ( - md_QueryAllValidatorSetResponse protoreflect.MessageDescriptor - fd_QueryAllValidatorSetResponse_validatorSet protoreflect.FieldDescriptor - fd_QueryAllValidatorSetResponse_pagination protoreflect.FieldDescriptor + md_QueryValidatorSetAllResponse protoreflect.MessageDescriptor + fd_QueryValidatorSetAllResponse_validator_set protoreflect.FieldDescriptor + fd_QueryValidatorSetAllResponse_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryAllValidatorSetResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAllValidatorSetResponse") - fd_QueryAllValidatorSetResponse_validatorSet = md_QueryAllValidatorSetResponse.Fields().ByName("validatorSet") - fd_QueryAllValidatorSetResponse_pagination = md_QueryAllValidatorSetResponse.Fields().ByName("pagination") + md_QueryValidatorSetAllResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryValidatorSetAllResponse") + fd_QueryValidatorSetAllResponse_validator_set = md_QueryValidatorSetAllResponse.Fields().ByName("validator_set") + fd_QueryValidatorSetAllResponse_pagination = md_QueryValidatorSetAllResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAllValidatorSetResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryValidatorSetAllResponse)(nil) -type fastReflection_QueryAllValidatorSetResponse QueryAllValidatorSetResponse +type fastReflection_QueryValidatorSetAllResponse QueryValidatorSetAllResponse -func (x *QueryAllValidatorSetResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllValidatorSetResponse)(x) +func (x *QueryValidatorSetAllResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryValidatorSetAllResponse)(x) } -func (x *QueryAllValidatorSetResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryValidatorSetAllResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3875,43 +3875,43 @@ func (x *QueryAllValidatorSetResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryAllValidatorSetResponse_messageType fastReflection_QueryAllValidatorSetResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllValidatorSetResponse_messageType{} +var _fastReflection_QueryValidatorSetAllResponse_messageType fastReflection_QueryValidatorSetAllResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryValidatorSetAllResponse_messageType{} -type fastReflection_QueryAllValidatorSetResponse_messageType struct{} +type fastReflection_QueryValidatorSetAllResponse_messageType struct{} -func (x fastReflection_QueryAllValidatorSetResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllValidatorSetResponse)(nil) +func (x fastReflection_QueryValidatorSetAllResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryValidatorSetAllResponse)(nil) } -func (x fastReflection_QueryAllValidatorSetResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllValidatorSetResponse) +func (x fastReflection_QueryValidatorSetAllResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryValidatorSetAllResponse) } -func (x fastReflection_QueryAllValidatorSetResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllValidatorSetResponse +func (x fastReflection_QueryValidatorSetAllResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryValidatorSetAllResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAllValidatorSetResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllValidatorSetResponse +func (x *fastReflection_QueryValidatorSetAllResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryValidatorSetAllResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAllValidatorSetResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryAllValidatorSetResponse_messageType +func (x *fastReflection_QueryValidatorSetAllResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryValidatorSetAllResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllValidatorSetResponse) New() protoreflect.Message { - return new(fastReflection_QueryAllValidatorSetResponse) +func (x *fastReflection_QueryValidatorSetAllResponse) New() protoreflect.Message { + return new(fastReflection_QueryValidatorSetAllResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllValidatorSetResponse) Interface() protoreflect.ProtoMessage { - return (*QueryAllValidatorSetResponse)(x) +func (x *fastReflection_QueryValidatorSetAllResponse) Interface() protoreflect.ProtoMessage { + return (*QueryValidatorSetAllResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -3919,16 +3919,16 @@ func (x *fastReflection_QueryAllValidatorSetResponse) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAllValidatorSetResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryValidatorSetAllResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.ValidatorSet) != 0 { - value := protoreflect.ValueOfList(&_QueryAllValidatorSetResponse_1_list{list: &x.ValidatorSet}) - if !f(fd_QueryAllValidatorSetResponse_validatorSet, value) { + value := protoreflect.ValueOfList(&_QueryValidatorSetAllResponse_1_list{list: &x.ValidatorSet}) + if !f(fd_QueryValidatorSetAllResponse_validator_set, value) { return } } if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAllValidatorSetResponse_pagination, value) { + if !f(fd_QueryValidatorSetAllResponse_pagination, value) { return } } @@ -3945,17 +3945,17 @@ func (x *fastReflection_QueryAllValidatorSetResponse) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAllValidatorSetResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryValidatorSetAllResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryAllValidatorSetResponse.validatorSet": + case "fairyring.keyshare.QueryValidatorSetAllResponse.validator_set": return len(x.ValidatorSet) != 0 - case "fairyring.keyshare.QueryAllValidatorSetResponse.pagination": + case "fairyring.keyshare.QueryValidatorSetAllResponse.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllValidatorSetResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllValidatorSetResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetAllResponse does not contain field %s", fd.FullName())) } } @@ -3965,17 +3965,17 @@ func (x *fastReflection_QueryAllValidatorSetResponse) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllValidatorSetResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryValidatorSetAllResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllValidatorSetResponse.validatorSet": + case "fairyring.keyshare.QueryValidatorSetAllResponse.validator_set": x.ValidatorSet = nil - case "fairyring.keyshare.QueryAllValidatorSetResponse.pagination": + case "fairyring.keyshare.QueryValidatorSetAllResponse.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllValidatorSetResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllValidatorSetResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetAllResponse does not contain field %s", fd.FullName())) } } @@ -3985,22 +3985,22 @@ func (x *fastReflection_QueryAllValidatorSetResponse) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAllValidatorSetResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryValidatorSetAllResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryAllValidatorSetResponse.validatorSet": + case "fairyring.keyshare.QueryValidatorSetAllResponse.validator_set": if len(x.ValidatorSet) == 0 { - return protoreflect.ValueOfList(&_QueryAllValidatorSetResponse_1_list{}) + return protoreflect.ValueOfList(&_QueryValidatorSetAllResponse_1_list{}) } - listValue := &_QueryAllValidatorSetResponse_1_list{list: &x.ValidatorSet} + listValue := &_QueryValidatorSetAllResponse_1_list{list: &x.ValidatorSet} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.QueryAllValidatorSetResponse.pagination": + case "fairyring.keyshare.QueryValidatorSetAllResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllValidatorSetResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllValidatorSetResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetAllResponse does not contain field %s", descriptor.FullName())) } } @@ -4014,19 +4014,19 @@ func (x *fastReflection_QueryAllValidatorSetResponse) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllValidatorSetResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryValidatorSetAllResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllValidatorSetResponse.validatorSet": + case "fairyring.keyshare.QueryValidatorSetAllResponse.validator_set": lv := value.List() - clv := lv.(*_QueryAllValidatorSetResponse_1_list) + clv := lv.(*_QueryValidatorSetAllResponse_1_list) x.ValidatorSet = *clv.list - case "fairyring.keyshare.QueryAllValidatorSetResponse.pagination": + case "fairyring.keyshare.QueryValidatorSetAllResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllValidatorSetResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllValidatorSetResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetAllResponse does not contain field %s", fd.FullName())) } } @@ -4040,53 +4040,53 @@ func (x *fastReflection_QueryAllValidatorSetResponse) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllValidatorSetResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryValidatorSetAllResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllValidatorSetResponse.validatorSet": + case "fairyring.keyshare.QueryValidatorSetAllResponse.validator_set": if x.ValidatorSet == nil { x.ValidatorSet = []*ValidatorSet{} } - value := &_QueryAllValidatorSetResponse_1_list{list: &x.ValidatorSet} + value := &_QueryValidatorSetAllResponse_1_list{list: &x.ValidatorSet} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.QueryAllValidatorSetResponse.pagination": + case "fairyring.keyshare.QueryValidatorSetAllResponse.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageResponse) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllValidatorSetResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllValidatorSetResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetAllResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAllValidatorSetResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryValidatorSetAllResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllValidatorSetResponse.validatorSet": + case "fairyring.keyshare.QueryValidatorSetAllResponse.validator_set": list := []*ValidatorSet{} - return protoreflect.ValueOfList(&_QueryAllValidatorSetResponse_1_list{list: &list}) - case "fairyring.keyshare.QueryAllValidatorSetResponse.pagination": + return protoreflect.ValueOfList(&_QueryValidatorSetAllResponse_1_list{list: &list}) + case "fairyring.keyshare.QueryValidatorSetAllResponse.pagination": m := new(v1beta1.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllValidatorSetResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryValidatorSetAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllValidatorSetResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryValidatorSetAllResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAllValidatorSetResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryValidatorSetAllResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAllValidatorSetResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryValidatorSetAllResponse", d.FullName())) } panic("unreachable") } @@ -4094,7 +4094,7 @@ func (x *fastReflection_QueryAllValidatorSetResponse) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAllValidatorSetResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryValidatorSetAllResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4105,7 +4105,7 @@ func (x *fastReflection_QueryAllValidatorSetResponse) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllValidatorSetResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryValidatorSetAllResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4117,7 +4117,7 @@ func (x *fastReflection_QueryAllValidatorSetResponse) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAllValidatorSetResponse) IsValid() bool { +func (x *fastReflection_QueryValidatorSetAllResponse) IsValid() bool { return x != nil } @@ -4127,9 +4127,9 @@ func (x *fastReflection_QueryAllValidatorSetResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAllValidatorSetResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryValidatorSetAllResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllValidatorSetResponse) + x := input.Message.Interface().(*QueryValidatorSetAllResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4161,7 +4161,7 @@ func (x *fastReflection_QueryAllValidatorSetResponse) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllValidatorSetResponse) + x := input.Message.Interface().(*QueryValidatorSetAllResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4221,7 +4221,7 @@ func (x *fastReflection_QueryAllValidatorSetResponse) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAllValidatorSetResponse) + x := input.Message.Interface().(*QueryValidatorSetAllResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4253,10 +4253,10 @@ func (x *fastReflection_QueryAllValidatorSetResponse) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllValidatorSetResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryValidatorSetAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllValidatorSetResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryValidatorSetAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4365,27 +4365,27 @@ func (x *fastReflection_QueryAllValidatorSetResponse) ProtoMethods() *protoiface } var ( - md_QueryGetKeyShareRequest protoreflect.MessageDescriptor - fd_QueryGetKeyShareRequest_validator protoreflect.FieldDescriptor - fd_QueryGetKeyShareRequest_blockHeight protoreflect.FieldDescriptor + md_QueryKeyShareRequest protoreflect.MessageDescriptor + fd_QueryKeyShareRequest_validator protoreflect.FieldDescriptor + fd_QueryKeyShareRequest_block_height protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryGetKeyShareRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGetKeyShareRequest") - fd_QueryGetKeyShareRequest_validator = md_QueryGetKeyShareRequest.Fields().ByName("validator") - fd_QueryGetKeyShareRequest_blockHeight = md_QueryGetKeyShareRequest.Fields().ByName("blockHeight") + md_QueryKeyShareRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryKeyShareRequest") + fd_QueryKeyShareRequest_validator = md_QueryKeyShareRequest.Fields().ByName("validator") + fd_QueryKeyShareRequest_block_height = md_QueryKeyShareRequest.Fields().ByName("block_height") } -var _ protoreflect.Message = (*fastReflection_QueryGetKeyShareRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryKeyShareRequest)(nil) -type fastReflection_QueryGetKeyShareRequest QueryGetKeyShareRequest +type fastReflection_QueryKeyShareRequest QueryKeyShareRequest -func (x *QueryGetKeyShareRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetKeyShareRequest)(x) +func (x *QueryKeyShareRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryKeyShareRequest)(x) } -func (x *QueryGetKeyShareRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryKeyShareRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4397,43 +4397,43 @@ func (x *QueryGetKeyShareRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGetKeyShareRequest_messageType fastReflection_QueryGetKeyShareRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetKeyShareRequest_messageType{} +var _fastReflection_QueryKeyShareRequest_messageType fastReflection_QueryKeyShareRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryKeyShareRequest_messageType{} -type fastReflection_QueryGetKeyShareRequest_messageType struct{} +type fastReflection_QueryKeyShareRequest_messageType struct{} -func (x fastReflection_QueryGetKeyShareRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetKeyShareRequest)(nil) +func (x fastReflection_QueryKeyShareRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryKeyShareRequest)(nil) } -func (x fastReflection_QueryGetKeyShareRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetKeyShareRequest) +func (x fastReflection_QueryKeyShareRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryKeyShareRequest) } -func (x fastReflection_QueryGetKeyShareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetKeyShareRequest +func (x fastReflection_QueryKeyShareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyShareRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetKeyShareRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetKeyShareRequest +func (x *fastReflection_QueryKeyShareRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyShareRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetKeyShareRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetKeyShareRequest_messageType +func (x *fastReflection_QueryKeyShareRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryKeyShareRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetKeyShareRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetKeyShareRequest) +func (x *fastReflection_QueryKeyShareRequest) New() protoreflect.Message { + return new(fastReflection_QueryKeyShareRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetKeyShareRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetKeyShareRequest)(x) +func (x *fastReflection_QueryKeyShareRequest) Interface() protoreflect.ProtoMessage { + return (*QueryKeyShareRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -4441,16 +4441,16 @@ func (x *fastReflection_QueryGetKeyShareRequest) Interface() protoreflect.ProtoM // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetKeyShareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryKeyShareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Validator != "" { value := protoreflect.ValueOfString(x.Validator) - if !f(fd_QueryGetKeyShareRequest_validator, value) { + if !f(fd_QueryKeyShareRequest_validator, value) { return } } if x.BlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.BlockHeight) - if !f(fd_QueryGetKeyShareRequest_blockHeight, value) { + if !f(fd_QueryKeyShareRequest_block_height, value) { return } } @@ -4467,17 +4467,17 @@ func (x *fastReflection_QueryGetKeyShareRequest) Range(f func(protoreflect.Field // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetKeyShareRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryKeyShareRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryGetKeyShareRequest.validator": + case "fairyring.keyshare.QueryKeyShareRequest.validator": return x.Validator != "" - case "fairyring.keyshare.QueryGetKeyShareRequest.blockHeight": + case "fairyring.keyshare.QueryKeyShareRequest.block_height": return x.BlockHeight != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareRequest does not contain field %s", fd.FullName())) } } @@ -4487,17 +4487,17 @@ func (x *fastReflection_QueryGetKeyShareRequest) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetKeyShareRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryKeyShareRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetKeyShareRequest.validator": + case "fairyring.keyshare.QueryKeyShareRequest.validator": x.Validator = "" - case "fairyring.keyshare.QueryGetKeyShareRequest.blockHeight": + case "fairyring.keyshare.QueryKeyShareRequest.block_height": x.BlockHeight = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareRequest does not contain field %s", fd.FullName())) } } @@ -4507,19 +4507,19 @@ func (x *fastReflection_QueryGetKeyShareRequest) Clear(fd protoreflect.FieldDesc // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetKeyShareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyShareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryGetKeyShareRequest.validator": + case "fairyring.keyshare.QueryKeyShareRequest.validator": value := x.Validator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.QueryGetKeyShareRequest.blockHeight": + case "fairyring.keyshare.QueryKeyShareRequest.block_height": value := x.BlockHeight return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetKeyShareRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareRequest does not contain field %s", descriptor.FullName())) } } @@ -4533,17 +4533,17 @@ func (x *fastReflection_QueryGetKeyShareRequest) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetKeyShareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryKeyShareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetKeyShareRequest.validator": + case "fairyring.keyshare.QueryKeyShareRequest.validator": x.Validator = value.Interface().(string) - case "fairyring.keyshare.QueryGetKeyShareRequest.blockHeight": + case "fairyring.keyshare.QueryKeyShareRequest.block_height": x.BlockHeight = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareRequest does not contain field %s", fd.FullName())) } } @@ -4557,44 +4557,44 @@ func (x *fastReflection_QueryGetKeyShareRequest) Set(fd protoreflect.FieldDescri // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetKeyShareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyShareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetKeyShareRequest.validator": - panic(fmt.Errorf("field validator of message fairyring.keyshare.QueryGetKeyShareRequest is not mutable")) - case "fairyring.keyshare.QueryGetKeyShareRequest.blockHeight": - panic(fmt.Errorf("field blockHeight of message fairyring.keyshare.QueryGetKeyShareRequest is not mutable")) + case "fairyring.keyshare.QueryKeyShareRequest.validator": + panic(fmt.Errorf("field validator of message fairyring.keyshare.QueryKeyShareRequest is not mutable")) + case "fairyring.keyshare.QueryKeyShareRequest.block_height": + panic(fmt.Errorf("field block_height of message fairyring.keyshare.QueryKeyShareRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetKeyShareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyShareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetKeyShareRequest.validator": + case "fairyring.keyshare.QueryKeyShareRequest.validator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.QueryGetKeyShareRequest.blockHeight": + case "fairyring.keyshare.QueryKeyShareRequest.block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetKeyShareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryKeyShareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGetKeyShareRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryKeyShareRequest", d.FullName())) } panic("unreachable") } @@ -4602,7 +4602,7 @@ func (x *fastReflection_QueryGetKeyShareRequest) WhichOneof(d protoreflect.Oneof // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetKeyShareRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryKeyShareRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4613,7 +4613,7 @@ func (x *fastReflection_QueryGetKeyShareRequest) GetUnknown() protoreflect.RawFi // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetKeyShareRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryKeyShareRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4625,7 +4625,7 @@ func (x *fastReflection_QueryGetKeyShareRequest) SetUnknown(fields protoreflect. // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetKeyShareRequest) IsValid() bool { +func (x *fastReflection_QueryKeyShareRequest) IsValid() bool { return x != nil } @@ -4635,9 +4635,9 @@ func (x *fastReflection_QueryGetKeyShareRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetKeyShareRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryKeyShareRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetKeyShareRequest) + x := input.Message.Interface().(*QueryKeyShareRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4666,7 +4666,7 @@ func (x *fastReflection_QueryGetKeyShareRequest) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetKeyShareRequest) + x := input.Message.Interface().(*QueryKeyShareRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4708,7 +4708,7 @@ func (x *fastReflection_QueryGetKeyShareRequest) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetKeyShareRequest) + x := input.Message.Interface().(*QueryKeyShareRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4740,10 +4740,10 @@ func (x *fastReflection_QueryGetKeyShareRequest) ProtoMethods() *protoiface.Meth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetKeyShareRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyShareRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4833,25 +4833,25 @@ func (x *fastReflection_QueryGetKeyShareRequest) ProtoMethods() *protoiface.Meth } var ( - md_QueryGetKeyShareResponse protoreflect.MessageDescriptor - fd_QueryGetKeyShareResponse_keyShare protoreflect.FieldDescriptor + md_QueryKeyShareResponse protoreflect.MessageDescriptor + fd_QueryKeyShareResponse_key_share protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryGetKeyShareResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGetKeyShareResponse") - fd_QueryGetKeyShareResponse_keyShare = md_QueryGetKeyShareResponse.Fields().ByName("keyShare") + md_QueryKeyShareResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryKeyShareResponse") + fd_QueryKeyShareResponse_key_share = md_QueryKeyShareResponse.Fields().ByName("key_share") } -var _ protoreflect.Message = (*fastReflection_QueryGetKeyShareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryKeyShareResponse)(nil) -type fastReflection_QueryGetKeyShareResponse QueryGetKeyShareResponse +type fastReflection_QueryKeyShareResponse QueryKeyShareResponse -func (x *QueryGetKeyShareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetKeyShareResponse)(x) +func (x *QueryKeyShareResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryKeyShareResponse)(x) } -func (x *QueryGetKeyShareResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryKeyShareResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4863,43 +4863,43 @@ func (x *QueryGetKeyShareResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGetKeyShareResponse_messageType fastReflection_QueryGetKeyShareResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetKeyShareResponse_messageType{} +var _fastReflection_QueryKeyShareResponse_messageType fastReflection_QueryKeyShareResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryKeyShareResponse_messageType{} -type fastReflection_QueryGetKeyShareResponse_messageType struct{} +type fastReflection_QueryKeyShareResponse_messageType struct{} -func (x fastReflection_QueryGetKeyShareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetKeyShareResponse)(nil) +func (x fastReflection_QueryKeyShareResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryKeyShareResponse)(nil) } -func (x fastReflection_QueryGetKeyShareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetKeyShareResponse) +func (x fastReflection_QueryKeyShareResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryKeyShareResponse) } -func (x fastReflection_QueryGetKeyShareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetKeyShareResponse +func (x fastReflection_QueryKeyShareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyShareResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetKeyShareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetKeyShareResponse +func (x *fastReflection_QueryKeyShareResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyShareResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetKeyShareResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGetKeyShareResponse_messageType +func (x *fastReflection_QueryKeyShareResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryKeyShareResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetKeyShareResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetKeyShareResponse) +func (x *fastReflection_QueryKeyShareResponse) New() protoreflect.Message { + return new(fastReflection_QueryKeyShareResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetKeyShareResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetKeyShareResponse)(x) +func (x *fastReflection_QueryKeyShareResponse) Interface() protoreflect.ProtoMessage { + return (*QueryKeyShareResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -4907,10 +4907,10 @@ func (x *fastReflection_QueryGetKeyShareResponse) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetKeyShareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryKeyShareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.KeyShare != nil { value := protoreflect.ValueOfMessage(x.KeyShare.ProtoReflect()) - if !f(fd_QueryGetKeyShareResponse_keyShare, value) { + if !f(fd_QueryKeyShareResponse_key_share, value) { return } } @@ -4927,15 +4927,15 @@ func (x *fastReflection_QueryGetKeyShareResponse) Range(f func(protoreflect.Fiel // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetKeyShareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryKeyShareResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryGetKeyShareResponse.keyShare": + case "fairyring.keyshare.QueryKeyShareResponse.key_share": return x.KeyShare != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareResponse does not contain field %s", fd.FullName())) } } @@ -4945,15 +4945,15 @@ func (x *fastReflection_QueryGetKeyShareResponse) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetKeyShareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryKeyShareResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetKeyShareResponse.keyShare": + case "fairyring.keyshare.QueryKeyShareResponse.key_share": x.KeyShare = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareResponse does not contain field %s", fd.FullName())) } } @@ -4963,16 +4963,16 @@ func (x *fastReflection_QueryGetKeyShareResponse) Clear(fd protoreflect.FieldDes // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetKeyShareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyShareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryGetKeyShareResponse.keyShare": + case "fairyring.keyshare.QueryKeyShareResponse.key_share": value := x.KeyShare return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetKeyShareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareResponse does not contain field %s", descriptor.FullName())) } } @@ -4986,15 +4986,15 @@ func (x *fastReflection_QueryGetKeyShareResponse) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetKeyShareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryKeyShareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetKeyShareResponse.keyShare": + case "fairyring.keyshare.QueryKeyShareResponse.key_share": x.KeyShare = value.Message().Interface().(*KeyShare) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareResponse does not contain field %s", fd.FullName())) } } @@ -5008,44 +5008,44 @@ func (x *fastReflection_QueryGetKeyShareResponse) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetKeyShareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyShareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetKeyShareResponse.keyShare": + case "fairyring.keyshare.QueryKeyShareResponse.key_share": if x.KeyShare == nil { x.KeyShare = new(KeyShare) } return protoreflect.ValueOfMessage(x.KeyShare.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetKeyShareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyShareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetKeyShareResponse.keyShare": + case "fairyring.keyshare.QueryKeyShareResponse.key_share": m := new(KeyShare) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetKeyShareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryKeyShareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGetKeyShareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryKeyShareResponse", d.FullName())) } panic("unreachable") } @@ -5053,7 +5053,7 @@ func (x *fastReflection_QueryGetKeyShareResponse) WhichOneof(d protoreflect.Oneo // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetKeyShareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryKeyShareResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5064,7 +5064,7 @@ func (x *fastReflection_QueryGetKeyShareResponse) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetKeyShareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryKeyShareResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5076,7 +5076,7 @@ func (x *fastReflection_QueryGetKeyShareResponse) SetUnknown(fields protoreflect // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetKeyShareResponse) IsValid() bool { +func (x *fastReflection_QueryKeyShareResponse) IsValid() bool { return x != nil } @@ -5086,9 +5086,9 @@ func (x *fastReflection_QueryGetKeyShareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetKeyShareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryKeyShareResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetKeyShareResponse) + x := input.Message.Interface().(*QueryKeyShareResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5114,7 +5114,7 @@ func (x *fastReflection_QueryGetKeyShareResponse) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetKeyShareResponse) + x := input.Message.Interface().(*QueryKeyShareResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5158,7 +5158,7 @@ func (x *fastReflection_QueryGetKeyShareResponse) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetKeyShareResponse) + x := input.Message.Interface().(*QueryKeyShareResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5190,10 +5190,10 @@ func (x *fastReflection_QueryGetKeyShareResponse) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetKeyShareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyShareResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5268,25 +5268,25 @@ func (x *fastReflection_QueryGetKeyShareResponse) ProtoMethods() *protoiface.Met } var ( - md_QueryAllKeyShareRequest protoreflect.MessageDescriptor - fd_QueryAllKeyShareRequest_pagination protoreflect.FieldDescriptor + md_QueryKeyShareAllRequest protoreflect.MessageDescriptor + fd_QueryKeyShareAllRequest_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryAllKeyShareRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAllKeyShareRequest") - fd_QueryAllKeyShareRequest_pagination = md_QueryAllKeyShareRequest.Fields().ByName("pagination") + md_QueryKeyShareAllRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryKeyShareAllRequest") + fd_QueryKeyShareAllRequest_pagination = md_QueryKeyShareAllRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAllKeyShareRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryKeyShareAllRequest)(nil) -type fastReflection_QueryAllKeyShareRequest QueryAllKeyShareRequest +type fastReflection_QueryKeyShareAllRequest QueryKeyShareAllRequest -func (x *QueryAllKeyShareRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllKeyShareRequest)(x) +func (x *QueryKeyShareAllRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryKeyShareAllRequest)(x) } -func (x *QueryAllKeyShareRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryKeyShareAllRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5298,43 +5298,43 @@ func (x *QueryAllKeyShareRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryAllKeyShareRequest_messageType fastReflection_QueryAllKeyShareRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllKeyShareRequest_messageType{} +var _fastReflection_QueryKeyShareAllRequest_messageType fastReflection_QueryKeyShareAllRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryKeyShareAllRequest_messageType{} -type fastReflection_QueryAllKeyShareRequest_messageType struct{} +type fastReflection_QueryKeyShareAllRequest_messageType struct{} -func (x fastReflection_QueryAllKeyShareRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllKeyShareRequest)(nil) +func (x fastReflection_QueryKeyShareAllRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryKeyShareAllRequest)(nil) } -func (x fastReflection_QueryAllKeyShareRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllKeyShareRequest) +func (x fastReflection_QueryKeyShareAllRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryKeyShareAllRequest) } -func (x fastReflection_QueryAllKeyShareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllKeyShareRequest +func (x fastReflection_QueryKeyShareAllRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyShareAllRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAllKeyShareRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllKeyShareRequest +func (x *fastReflection_QueryKeyShareAllRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyShareAllRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAllKeyShareRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryAllKeyShareRequest_messageType +func (x *fastReflection_QueryKeyShareAllRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryKeyShareAllRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllKeyShareRequest) New() protoreflect.Message { - return new(fastReflection_QueryAllKeyShareRequest) +func (x *fastReflection_QueryKeyShareAllRequest) New() protoreflect.Message { + return new(fastReflection_QueryKeyShareAllRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllKeyShareRequest) Interface() protoreflect.ProtoMessage { - return (*QueryAllKeyShareRequest)(x) +func (x *fastReflection_QueryKeyShareAllRequest) Interface() protoreflect.ProtoMessage { + return (*QueryKeyShareAllRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -5342,10 +5342,10 @@ func (x *fastReflection_QueryAllKeyShareRequest) Interface() protoreflect.ProtoM // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAllKeyShareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryKeyShareAllRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAllKeyShareRequest_pagination, value) { + if !f(fd_QueryKeyShareAllRequest_pagination, value) { return } } @@ -5362,15 +5362,15 @@ func (x *fastReflection_QueryAllKeyShareRequest) Range(f func(protoreflect.Field // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAllKeyShareRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryKeyShareAllRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryAllKeyShareRequest.pagination": + case "fairyring.keyshare.QueryKeyShareAllRequest.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllRequest does not contain field %s", fd.FullName())) } } @@ -5380,15 +5380,15 @@ func (x *fastReflection_QueryAllKeyShareRequest) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllKeyShareRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryKeyShareAllRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllKeyShareRequest.pagination": + case "fairyring.keyshare.QueryKeyShareAllRequest.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllRequest does not contain field %s", fd.FullName())) } } @@ -5398,16 +5398,16 @@ func (x *fastReflection_QueryAllKeyShareRequest) Clear(fd protoreflect.FieldDesc // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAllKeyShareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyShareAllRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryAllKeyShareRequest.pagination": + case "fairyring.keyshare.QueryKeyShareAllRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllKeyShareRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllRequest does not contain field %s", descriptor.FullName())) } } @@ -5421,15 +5421,15 @@ func (x *fastReflection_QueryAllKeyShareRequest) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllKeyShareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryKeyShareAllRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllKeyShareRequest.pagination": + case "fairyring.keyshare.QueryKeyShareAllRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllRequest does not contain field %s", fd.FullName())) } } @@ -5443,44 +5443,44 @@ func (x *fastReflection_QueryAllKeyShareRequest) Set(fd protoreflect.FieldDescri // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllKeyShareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyShareAllRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllKeyShareRequest.pagination": + case "fairyring.keyshare.QueryKeyShareAllRequest.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAllKeyShareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyShareAllRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllKeyShareRequest.pagination": + case "fairyring.keyshare.QueryKeyShareAllRequest.pagination": m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAllKeyShareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryKeyShareAllRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAllKeyShareRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryKeyShareAllRequest", d.FullName())) } panic("unreachable") } @@ -5488,7 +5488,7 @@ func (x *fastReflection_QueryAllKeyShareRequest) WhichOneof(d protoreflect.Oneof // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAllKeyShareRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryKeyShareAllRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5499,7 +5499,7 @@ func (x *fastReflection_QueryAllKeyShareRequest) GetUnknown() protoreflect.RawFi // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllKeyShareRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryKeyShareAllRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5511,7 +5511,7 @@ func (x *fastReflection_QueryAllKeyShareRequest) SetUnknown(fields protoreflect. // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAllKeyShareRequest) IsValid() bool { +func (x *fastReflection_QueryKeyShareAllRequest) IsValid() bool { return x != nil } @@ -5521,9 +5521,9 @@ func (x *fastReflection_QueryAllKeyShareRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAllKeyShareRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryKeyShareAllRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllKeyShareRequest) + x := input.Message.Interface().(*QueryKeyShareAllRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5549,7 +5549,7 @@ func (x *fastReflection_QueryAllKeyShareRequest) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllKeyShareRequest) + x := input.Message.Interface().(*QueryKeyShareAllRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5593,7 +5593,7 @@ func (x *fastReflection_QueryAllKeyShareRequest) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAllKeyShareRequest) + x := input.Message.Interface().(*QueryKeyShareAllRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5625,10 +5625,10 @@ func (x *fastReflection_QueryAllKeyShareRequest) ProtoMethods() *protoiface.Meth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllKeyShareRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyShareAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyShareAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5702,79 +5702,79 @@ func (x *fastReflection_QueryAllKeyShareRequest) ProtoMethods() *protoiface.Meth } } -var _ protoreflect.List = (*_QueryAllKeyShareResponse_1_list)(nil) +var _ protoreflect.List = (*_QueryKeyShareAllResponse_1_list)(nil) -type _QueryAllKeyShareResponse_1_list struct { +type _QueryKeyShareAllResponse_1_list struct { list *[]*KeyShare } -func (x *_QueryAllKeyShareResponse_1_list) Len() int { +func (x *_QueryKeyShareAllResponse_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryAllKeyShareResponse_1_list) Get(i int) protoreflect.Value { +func (x *_QueryKeyShareAllResponse_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryAllKeyShareResponse_1_list) Set(i int, value protoreflect.Value) { +func (x *_QueryKeyShareAllResponse_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*KeyShare) (*x.list)[i] = concreteValue } -func (x *_QueryAllKeyShareResponse_1_list) Append(value protoreflect.Value) { +func (x *_QueryKeyShareAllResponse_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*KeyShare) *x.list = append(*x.list, concreteValue) } -func (x *_QueryAllKeyShareResponse_1_list) AppendMutable() protoreflect.Value { +func (x *_QueryKeyShareAllResponse_1_list) AppendMutable() protoreflect.Value { v := new(KeyShare) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAllKeyShareResponse_1_list) Truncate(n int) { +func (x *_QueryKeyShareAllResponse_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryAllKeyShareResponse_1_list) NewElement() protoreflect.Value { +func (x *_QueryKeyShareAllResponse_1_list) NewElement() protoreflect.Value { v := new(KeyShare) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAllKeyShareResponse_1_list) IsValid() bool { +func (x *_QueryKeyShareAllResponse_1_list) IsValid() bool { return x.list != nil } var ( - md_QueryAllKeyShareResponse protoreflect.MessageDescriptor - fd_QueryAllKeyShareResponse_keyShare protoreflect.FieldDescriptor - fd_QueryAllKeyShareResponse_pagination protoreflect.FieldDescriptor + md_QueryKeyShareAllResponse protoreflect.MessageDescriptor + fd_QueryKeyShareAllResponse_key_share protoreflect.FieldDescriptor + fd_QueryKeyShareAllResponse_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryAllKeyShareResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAllKeyShareResponse") - fd_QueryAllKeyShareResponse_keyShare = md_QueryAllKeyShareResponse.Fields().ByName("keyShare") - fd_QueryAllKeyShareResponse_pagination = md_QueryAllKeyShareResponse.Fields().ByName("pagination") + md_QueryKeyShareAllResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryKeyShareAllResponse") + fd_QueryKeyShareAllResponse_key_share = md_QueryKeyShareAllResponse.Fields().ByName("key_share") + fd_QueryKeyShareAllResponse_pagination = md_QueryKeyShareAllResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAllKeyShareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryKeyShareAllResponse)(nil) -type fastReflection_QueryAllKeyShareResponse QueryAllKeyShareResponse +type fastReflection_QueryKeyShareAllResponse QueryKeyShareAllResponse -func (x *QueryAllKeyShareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllKeyShareResponse)(x) +func (x *QueryKeyShareAllResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryKeyShareAllResponse)(x) } -func (x *QueryAllKeyShareResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryKeyShareAllResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5786,43 +5786,43 @@ func (x *QueryAllKeyShareResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryAllKeyShareResponse_messageType fastReflection_QueryAllKeyShareResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllKeyShareResponse_messageType{} +var _fastReflection_QueryKeyShareAllResponse_messageType fastReflection_QueryKeyShareAllResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryKeyShareAllResponse_messageType{} -type fastReflection_QueryAllKeyShareResponse_messageType struct{} +type fastReflection_QueryKeyShareAllResponse_messageType struct{} -func (x fastReflection_QueryAllKeyShareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllKeyShareResponse)(nil) +func (x fastReflection_QueryKeyShareAllResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryKeyShareAllResponse)(nil) } -func (x fastReflection_QueryAllKeyShareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllKeyShareResponse) +func (x fastReflection_QueryKeyShareAllResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryKeyShareAllResponse) } -func (x fastReflection_QueryAllKeyShareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllKeyShareResponse +func (x fastReflection_QueryKeyShareAllResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyShareAllResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAllKeyShareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllKeyShareResponse +func (x *fastReflection_QueryKeyShareAllResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyShareAllResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAllKeyShareResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryAllKeyShareResponse_messageType +func (x *fastReflection_QueryKeyShareAllResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryKeyShareAllResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllKeyShareResponse) New() protoreflect.Message { - return new(fastReflection_QueryAllKeyShareResponse) +func (x *fastReflection_QueryKeyShareAllResponse) New() protoreflect.Message { + return new(fastReflection_QueryKeyShareAllResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllKeyShareResponse) Interface() protoreflect.ProtoMessage { - return (*QueryAllKeyShareResponse)(x) +func (x *fastReflection_QueryKeyShareAllResponse) Interface() protoreflect.ProtoMessage { + return (*QueryKeyShareAllResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -5830,16 +5830,16 @@ func (x *fastReflection_QueryAllKeyShareResponse) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAllKeyShareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryKeyShareAllResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.KeyShare) != 0 { - value := protoreflect.ValueOfList(&_QueryAllKeyShareResponse_1_list{list: &x.KeyShare}) - if !f(fd_QueryAllKeyShareResponse_keyShare, value) { + value := protoreflect.ValueOfList(&_QueryKeyShareAllResponse_1_list{list: &x.KeyShare}) + if !f(fd_QueryKeyShareAllResponse_key_share, value) { return } } if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAllKeyShareResponse_pagination, value) { + if !f(fd_QueryKeyShareAllResponse_pagination, value) { return } } @@ -5856,17 +5856,17 @@ func (x *fastReflection_QueryAllKeyShareResponse) Range(f func(protoreflect.Fiel // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAllKeyShareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryKeyShareAllResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryAllKeyShareResponse.keyShare": + case "fairyring.keyshare.QueryKeyShareAllResponse.key_share": return len(x.KeyShare) != 0 - case "fairyring.keyshare.QueryAllKeyShareResponse.pagination": + case "fairyring.keyshare.QueryKeyShareAllResponse.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllResponse does not contain field %s", fd.FullName())) } } @@ -5876,17 +5876,17 @@ func (x *fastReflection_QueryAllKeyShareResponse) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllKeyShareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryKeyShareAllResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllKeyShareResponse.keyShare": + case "fairyring.keyshare.QueryKeyShareAllResponse.key_share": x.KeyShare = nil - case "fairyring.keyshare.QueryAllKeyShareResponse.pagination": + case "fairyring.keyshare.QueryKeyShareAllResponse.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllResponse does not contain field %s", fd.FullName())) } } @@ -5896,22 +5896,22 @@ func (x *fastReflection_QueryAllKeyShareResponse) Clear(fd protoreflect.FieldDes // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAllKeyShareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyShareAllResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryAllKeyShareResponse.keyShare": + case "fairyring.keyshare.QueryKeyShareAllResponse.key_share": if len(x.KeyShare) == 0 { - return protoreflect.ValueOfList(&_QueryAllKeyShareResponse_1_list{}) + return protoreflect.ValueOfList(&_QueryKeyShareAllResponse_1_list{}) } - listValue := &_QueryAllKeyShareResponse_1_list{list: &x.KeyShare} + listValue := &_QueryKeyShareAllResponse_1_list{list: &x.KeyShare} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.QueryAllKeyShareResponse.pagination": + case "fairyring.keyshare.QueryKeyShareAllResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllKeyShareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllResponse does not contain field %s", descriptor.FullName())) } } @@ -5925,19 +5925,19 @@ func (x *fastReflection_QueryAllKeyShareResponse) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllKeyShareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryKeyShareAllResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllKeyShareResponse.keyShare": + case "fairyring.keyshare.QueryKeyShareAllResponse.key_share": lv := value.List() - clv := lv.(*_QueryAllKeyShareResponse_1_list) + clv := lv.(*_QueryKeyShareAllResponse_1_list) x.KeyShare = *clv.list - case "fairyring.keyshare.QueryAllKeyShareResponse.pagination": + case "fairyring.keyshare.QueryKeyShareAllResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllResponse does not contain field %s", fd.FullName())) } } @@ -5951,53 +5951,53 @@ func (x *fastReflection_QueryAllKeyShareResponse) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllKeyShareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyShareAllResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllKeyShareResponse.keyShare": + case "fairyring.keyshare.QueryKeyShareAllResponse.key_share": if x.KeyShare == nil { x.KeyShare = []*KeyShare{} } - value := &_QueryAllKeyShareResponse_1_list{list: &x.KeyShare} + value := &_QueryKeyShareAllResponse_1_list{list: &x.KeyShare} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.QueryAllKeyShareResponse.pagination": + case "fairyring.keyshare.QueryKeyShareAllResponse.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageResponse) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAllKeyShareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyShareAllResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllKeyShareResponse.keyShare": + case "fairyring.keyshare.QueryKeyShareAllResponse.key_share": list := []*KeyShare{} - return protoreflect.ValueOfList(&_QueryAllKeyShareResponse_1_list{list: &list}) - case "fairyring.keyshare.QueryAllKeyShareResponse.pagination": + return protoreflect.ValueOfList(&_QueryKeyShareAllResponse_1_list{list: &list}) + case "fairyring.keyshare.QueryKeyShareAllResponse.pagination": m := new(v1beta1.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAllKeyShareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryKeyShareAllResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAllKeyShareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryKeyShareAllResponse", d.FullName())) } panic("unreachable") } @@ -6005,7 +6005,7 @@ func (x *fastReflection_QueryAllKeyShareResponse) WhichOneof(d protoreflect.Oneo // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAllKeyShareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryKeyShareAllResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6016,7 +6016,7 @@ func (x *fastReflection_QueryAllKeyShareResponse) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllKeyShareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryKeyShareAllResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6028,7 +6028,7 @@ func (x *fastReflection_QueryAllKeyShareResponse) SetUnknown(fields protoreflect // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAllKeyShareResponse) IsValid() bool { +func (x *fastReflection_QueryKeyShareAllResponse) IsValid() bool { return x != nil } @@ -6038,9 +6038,9 @@ func (x *fastReflection_QueryAllKeyShareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAllKeyShareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryKeyShareAllResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllKeyShareResponse) + x := input.Message.Interface().(*QueryKeyShareAllResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6072,7 +6072,7 @@ func (x *fastReflection_QueryAllKeyShareResponse) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllKeyShareResponse) + x := input.Message.Interface().(*QueryKeyShareAllResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6132,7 +6132,7 @@ func (x *fastReflection_QueryAllKeyShareResponse) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAllKeyShareResponse) + x := input.Message.Interface().(*QueryKeyShareAllResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6164,10 +6164,10 @@ func (x *fastReflection_QueryAllKeyShareResponse) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllKeyShareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyShareAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyShareAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6276,25 +6276,25 @@ func (x *fastReflection_QueryAllKeyShareResponse) ProtoMethods() *protoiface.Met } var ( - md_QueryGetAggregatedKeyShareRequest protoreflect.MessageDescriptor - fd_QueryGetAggregatedKeyShareRequest_height protoreflect.FieldDescriptor + md_QueryAggregatedKeyShareRequest protoreflect.MessageDescriptor + fd_QueryAggregatedKeyShareRequest_height protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryGetAggregatedKeyShareRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGetAggregatedKeyShareRequest") - fd_QueryGetAggregatedKeyShareRequest_height = md_QueryGetAggregatedKeyShareRequest.Fields().ByName("height") + md_QueryAggregatedKeyShareRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAggregatedKeyShareRequest") + fd_QueryAggregatedKeyShareRequest_height = md_QueryAggregatedKeyShareRequest.Fields().ByName("height") } -var _ protoreflect.Message = (*fastReflection_QueryGetAggregatedKeyShareRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryAggregatedKeyShareRequest)(nil) -type fastReflection_QueryGetAggregatedKeyShareRequest QueryGetAggregatedKeyShareRequest +type fastReflection_QueryAggregatedKeyShareRequest QueryAggregatedKeyShareRequest -func (x *QueryGetAggregatedKeyShareRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetAggregatedKeyShareRequest)(x) +func (x *QueryAggregatedKeyShareRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAggregatedKeyShareRequest)(x) } -func (x *QueryGetAggregatedKeyShareRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryAggregatedKeyShareRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6306,43 +6306,43 @@ func (x *QueryGetAggregatedKeyShareRequest) slowProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -var _fastReflection_QueryGetAggregatedKeyShareRequest_messageType fastReflection_QueryGetAggregatedKeyShareRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetAggregatedKeyShareRequest_messageType{} +var _fastReflection_QueryAggregatedKeyShareRequest_messageType fastReflection_QueryAggregatedKeyShareRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryAggregatedKeyShareRequest_messageType{} -type fastReflection_QueryGetAggregatedKeyShareRequest_messageType struct{} +type fastReflection_QueryAggregatedKeyShareRequest_messageType struct{} -func (x fastReflection_QueryGetAggregatedKeyShareRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetAggregatedKeyShareRequest)(nil) +func (x fastReflection_QueryAggregatedKeyShareRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAggregatedKeyShareRequest)(nil) } -func (x fastReflection_QueryGetAggregatedKeyShareRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetAggregatedKeyShareRequest) +func (x fastReflection_QueryAggregatedKeyShareRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAggregatedKeyShareRequest) } -func (x fastReflection_QueryGetAggregatedKeyShareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetAggregatedKeyShareRequest +func (x fastReflection_QueryAggregatedKeyShareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAggregatedKeyShareRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetAggregatedKeyShareRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetAggregatedKeyShareRequest +func (x *fastReflection_QueryAggregatedKeyShareRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAggregatedKeyShareRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetAggregatedKeyShareRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetAggregatedKeyShareRequest_messageType +func (x *fastReflection_QueryAggregatedKeyShareRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryAggregatedKeyShareRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetAggregatedKeyShareRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetAggregatedKeyShareRequest) +func (x *fastReflection_QueryAggregatedKeyShareRequest) New() protoreflect.Message { + return new(fastReflection_QueryAggregatedKeyShareRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetAggregatedKeyShareRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetAggregatedKeyShareRequest)(x) +func (x *fastReflection_QueryAggregatedKeyShareRequest) Interface() protoreflect.ProtoMessage { + return (*QueryAggregatedKeyShareRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -6350,10 +6350,10 @@ func (x *fastReflection_QueryGetAggregatedKeyShareRequest) Interface() protorefl // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetAggregatedKeyShareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryAggregatedKeyShareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Height != uint64(0) { value := protoreflect.ValueOfUint64(x.Height) - if !f(fd_QueryGetAggregatedKeyShareRequest_height, value) { + if !f(fd_QueryAggregatedKeyShareRequest_height, value) { return } } @@ -6370,15 +6370,15 @@ func (x *fastReflection_QueryGetAggregatedKeyShareRequest) Range(f func(protoref // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetAggregatedKeyShareRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryAggregatedKeyShareRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAggregatedKeyShareRequest.height": + case "fairyring.keyshare.QueryAggregatedKeyShareRequest.height": return x.Height != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAggregatedKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAggregatedKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareRequest does not contain field %s", fd.FullName())) } } @@ -6388,15 +6388,15 @@ func (x *fastReflection_QueryGetAggregatedKeyShareRequest) Has(fd protoreflect.F // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAggregatedKeyShareRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryAggregatedKeyShareRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAggregatedKeyShareRequest.height": + case "fairyring.keyshare.QueryAggregatedKeyShareRequest.height": x.Height = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAggregatedKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAggregatedKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareRequest does not contain field %s", fd.FullName())) } } @@ -6406,16 +6406,16 @@ func (x *fastReflection_QueryGetAggregatedKeyShareRequest) Clear(fd protoreflect // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetAggregatedKeyShareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAggregatedKeyShareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryGetAggregatedKeyShareRequest.height": + case "fairyring.keyshare.QueryAggregatedKeyShareRequest.height": value := x.Height return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAggregatedKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAggregatedKeyShareRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareRequest does not contain field %s", descriptor.FullName())) } } @@ -6429,15 +6429,15 @@ func (x *fastReflection_QueryGetAggregatedKeyShareRequest) Get(descriptor protor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAggregatedKeyShareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryAggregatedKeyShareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAggregatedKeyShareRequest.height": + case "fairyring.keyshare.QueryAggregatedKeyShareRequest.height": x.Height = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAggregatedKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAggregatedKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareRequest does not contain field %s", fd.FullName())) } } @@ -6451,40 +6451,40 @@ func (x *fastReflection_QueryGetAggregatedKeyShareRequest) Set(fd protoreflect.F // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAggregatedKeyShareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAggregatedKeyShareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAggregatedKeyShareRequest.height": - panic(fmt.Errorf("field height of message fairyring.keyshare.QueryGetAggregatedKeyShareRequest is not mutable")) + case "fairyring.keyshare.QueryAggregatedKeyShareRequest.height": + panic(fmt.Errorf("field height of message fairyring.keyshare.QueryAggregatedKeyShareRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAggregatedKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAggregatedKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetAggregatedKeyShareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAggregatedKeyShareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAggregatedKeyShareRequest.height": + case "fairyring.keyshare.QueryAggregatedKeyShareRequest.height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAggregatedKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAggregatedKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetAggregatedKeyShareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryAggregatedKeyShareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGetAggregatedKeyShareRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAggregatedKeyShareRequest", d.FullName())) } panic("unreachable") } @@ -6492,7 +6492,7 @@ func (x *fastReflection_QueryGetAggregatedKeyShareRequest) WhichOneof(d protoref // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetAggregatedKeyShareRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryAggregatedKeyShareRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6503,7 +6503,7 @@ func (x *fastReflection_QueryGetAggregatedKeyShareRequest) GetUnknown() protoref // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAggregatedKeyShareRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryAggregatedKeyShareRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6515,7 +6515,7 @@ func (x *fastReflection_QueryGetAggregatedKeyShareRequest) SetUnknown(fields pro // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetAggregatedKeyShareRequest) IsValid() bool { +func (x *fastReflection_QueryAggregatedKeyShareRequest) IsValid() bool { return x != nil } @@ -6525,9 +6525,9 @@ func (x *fastReflection_QueryGetAggregatedKeyShareRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetAggregatedKeyShareRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryAggregatedKeyShareRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetAggregatedKeyShareRequest) + x := input.Message.Interface().(*QueryAggregatedKeyShareRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6552,7 +6552,7 @@ func (x *fastReflection_QueryGetAggregatedKeyShareRequest) ProtoMethods() *proto } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetAggregatedKeyShareRequest) + x := input.Message.Interface().(*QueryAggregatedKeyShareRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6587,7 +6587,7 @@ func (x *fastReflection_QueryGetAggregatedKeyShareRequest) ProtoMethods() *proto }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetAggregatedKeyShareRequest) + x := input.Message.Interface().(*QueryAggregatedKeyShareRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6619,10 +6619,10 @@ func (x *fastReflection_QueryGetAggregatedKeyShareRequest) ProtoMethods() *proto fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetAggregatedKeyShareRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAggregatedKeyShareRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetAggregatedKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAggregatedKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6680,25 +6680,25 @@ func (x *fastReflection_QueryGetAggregatedKeyShareRequest) ProtoMethods() *proto } var ( - md_QueryGetAggregatedKeyShareResponse protoreflect.MessageDescriptor - fd_QueryGetAggregatedKeyShareResponse_aggregatedKeyShare protoreflect.FieldDescriptor + md_QueryAggregatedKeyShareResponse protoreflect.MessageDescriptor + fd_QueryAggregatedKeyShareResponse_aggregated_key_share protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryGetAggregatedKeyShareResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGetAggregatedKeyShareResponse") - fd_QueryGetAggregatedKeyShareResponse_aggregatedKeyShare = md_QueryGetAggregatedKeyShareResponse.Fields().ByName("aggregatedKeyShare") + md_QueryAggregatedKeyShareResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAggregatedKeyShareResponse") + fd_QueryAggregatedKeyShareResponse_aggregated_key_share = md_QueryAggregatedKeyShareResponse.Fields().ByName("aggregated_key_share") } -var _ protoreflect.Message = (*fastReflection_QueryGetAggregatedKeyShareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryAggregatedKeyShareResponse)(nil) -type fastReflection_QueryGetAggregatedKeyShareResponse QueryGetAggregatedKeyShareResponse +type fastReflection_QueryAggregatedKeyShareResponse QueryAggregatedKeyShareResponse -func (x *QueryGetAggregatedKeyShareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetAggregatedKeyShareResponse)(x) +func (x *QueryAggregatedKeyShareResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAggregatedKeyShareResponse)(x) } -func (x *QueryGetAggregatedKeyShareResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryAggregatedKeyShareResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6710,43 +6710,43 @@ func (x *QueryGetAggregatedKeyShareResponse) slowProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -var _fastReflection_QueryGetAggregatedKeyShareResponse_messageType fastReflection_QueryGetAggregatedKeyShareResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetAggregatedKeyShareResponse_messageType{} +var _fastReflection_QueryAggregatedKeyShareResponse_messageType fastReflection_QueryAggregatedKeyShareResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryAggregatedKeyShareResponse_messageType{} -type fastReflection_QueryGetAggregatedKeyShareResponse_messageType struct{} +type fastReflection_QueryAggregatedKeyShareResponse_messageType struct{} -func (x fastReflection_QueryGetAggregatedKeyShareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetAggregatedKeyShareResponse)(nil) +func (x fastReflection_QueryAggregatedKeyShareResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAggregatedKeyShareResponse)(nil) } -func (x fastReflection_QueryGetAggregatedKeyShareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetAggregatedKeyShareResponse) +func (x fastReflection_QueryAggregatedKeyShareResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAggregatedKeyShareResponse) } -func (x fastReflection_QueryGetAggregatedKeyShareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetAggregatedKeyShareResponse +func (x fastReflection_QueryAggregatedKeyShareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAggregatedKeyShareResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetAggregatedKeyShareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetAggregatedKeyShareResponse +func (x *fastReflection_QueryAggregatedKeyShareResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAggregatedKeyShareResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetAggregatedKeyShareResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGetAggregatedKeyShareResponse_messageType +func (x *fastReflection_QueryAggregatedKeyShareResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryAggregatedKeyShareResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetAggregatedKeyShareResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetAggregatedKeyShareResponse) +func (x *fastReflection_QueryAggregatedKeyShareResponse) New() protoreflect.Message { + return new(fastReflection_QueryAggregatedKeyShareResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetAggregatedKeyShareResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetAggregatedKeyShareResponse)(x) +func (x *fastReflection_QueryAggregatedKeyShareResponse) Interface() protoreflect.ProtoMessage { + return (*QueryAggregatedKeyShareResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -6754,10 +6754,10 @@ func (x *fastReflection_QueryGetAggregatedKeyShareResponse) Interface() protoref // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetAggregatedKeyShareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryAggregatedKeyShareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.AggregatedKeyShare != nil { value := protoreflect.ValueOfMessage(x.AggregatedKeyShare.ProtoReflect()) - if !f(fd_QueryGetAggregatedKeyShareResponse_aggregatedKeyShare, value) { + if !f(fd_QueryAggregatedKeyShareResponse_aggregated_key_share, value) { return } } @@ -6774,15 +6774,15 @@ func (x *fastReflection_QueryGetAggregatedKeyShareResponse) Range(f func(protore // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetAggregatedKeyShareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryAggregatedKeyShareResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAggregatedKeyShareResponse.aggregatedKeyShare": + case "fairyring.keyshare.QueryAggregatedKeyShareResponse.aggregated_key_share": return x.AggregatedKeyShare != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareResponse does not contain field %s", fd.FullName())) } } @@ -6792,15 +6792,15 @@ func (x *fastReflection_QueryGetAggregatedKeyShareResponse) Has(fd protoreflect. // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAggregatedKeyShareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryAggregatedKeyShareResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAggregatedKeyShareResponse.aggregatedKeyShare": + case "fairyring.keyshare.QueryAggregatedKeyShareResponse.aggregated_key_share": x.AggregatedKeyShare = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareResponse does not contain field %s", fd.FullName())) } } @@ -6810,16 +6810,16 @@ func (x *fastReflection_QueryGetAggregatedKeyShareResponse) Clear(fd protoreflec // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetAggregatedKeyShareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAggregatedKeyShareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryGetAggregatedKeyShareResponse.aggregatedKeyShare": + case "fairyring.keyshare.QueryAggregatedKeyShareResponse.aggregated_key_share": value := x.AggregatedKeyShare return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAggregatedKeyShareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareResponse does not contain field %s", descriptor.FullName())) } } @@ -6833,15 +6833,15 @@ func (x *fastReflection_QueryGetAggregatedKeyShareResponse) Get(descriptor proto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAggregatedKeyShareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryAggregatedKeyShareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAggregatedKeyShareResponse.aggregatedKeyShare": + case "fairyring.keyshare.QueryAggregatedKeyShareResponse.aggregated_key_share": x.AggregatedKeyShare = value.Message().Interface().(*AggregatedKeyShare) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareResponse does not contain field %s", fd.FullName())) } } @@ -6855,44 +6855,44 @@ func (x *fastReflection_QueryGetAggregatedKeyShareResponse) Set(fd protoreflect. // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAggregatedKeyShareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAggregatedKeyShareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAggregatedKeyShareResponse.aggregatedKeyShare": + case "fairyring.keyshare.QueryAggregatedKeyShareResponse.aggregated_key_share": if x.AggregatedKeyShare == nil { x.AggregatedKeyShare = new(AggregatedKeyShare) } return protoreflect.ValueOfMessage(x.AggregatedKeyShare.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetAggregatedKeyShareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAggregatedKeyShareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAggregatedKeyShareResponse.aggregatedKeyShare": + case "fairyring.keyshare.QueryAggregatedKeyShareResponse.aggregated_key_share": m := new(AggregatedKeyShare) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetAggregatedKeyShareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryAggregatedKeyShareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGetAggregatedKeyShareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAggregatedKeyShareResponse", d.FullName())) } panic("unreachable") } @@ -6900,7 +6900,7 @@ func (x *fastReflection_QueryGetAggregatedKeyShareResponse) WhichOneof(d protore // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetAggregatedKeyShareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryAggregatedKeyShareResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6911,7 +6911,7 @@ func (x *fastReflection_QueryGetAggregatedKeyShareResponse) GetUnknown() protore // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAggregatedKeyShareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryAggregatedKeyShareResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6923,7 +6923,7 @@ func (x *fastReflection_QueryGetAggregatedKeyShareResponse) SetUnknown(fields pr // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetAggregatedKeyShareResponse) IsValid() bool { +func (x *fastReflection_QueryAggregatedKeyShareResponse) IsValid() bool { return x != nil } @@ -6933,9 +6933,9 @@ func (x *fastReflection_QueryGetAggregatedKeyShareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetAggregatedKeyShareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryAggregatedKeyShareResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetAggregatedKeyShareResponse) + x := input.Message.Interface().(*QueryAggregatedKeyShareResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6961,7 +6961,7 @@ func (x *fastReflection_QueryGetAggregatedKeyShareResponse) ProtoMethods() *prot } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetAggregatedKeyShareResponse) + x := input.Message.Interface().(*QueryAggregatedKeyShareResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7005,7 +7005,7 @@ func (x *fastReflection_QueryGetAggregatedKeyShareResponse) ProtoMethods() *prot }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetAggregatedKeyShareResponse) + x := input.Message.Interface().(*QueryAggregatedKeyShareResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7037,10 +7037,10 @@ func (x *fastReflection_QueryGetAggregatedKeyShareResponse) ProtoMethods() *prot fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetAggregatedKeyShareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAggregatedKeyShareResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetAggregatedKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAggregatedKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7115,25 +7115,25 @@ func (x *fastReflection_QueryGetAggregatedKeyShareResponse) ProtoMethods() *prot } var ( - md_QueryAllAggregatedKeyShareRequest protoreflect.MessageDescriptor - fd_QueryAllAggregatedKeyShareRequest_pagination protoreflect.FieldDescriptor + md_QueryAggregatedKeyShareAllRequest protoreflect.MessageDescriptor + fd_QueryAggregatedKeyShareAllRequest_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryAllAggregatedKeyShareRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAllAggregatedKeyShareRequest") - fd_QueryAllAggregatedKeyShareRequest_pagination = md_QueryAllAggregatedKeyShareRequest.Fields().ByName("pagination") + md_QueryAggregatedKeyShareAllRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAggregatedKeyShareAllRequest") + fd_QueryAggregatedKeyShareAllRequest_pagination = md_QueryAggregatedKeyShareAllRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAllAggregatedKeyShareRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryAggregatedKeyShareAllRequest)(nil) -type fastReflection_QueryAllAggregatedKeyShareRequest QueryAllAggregatedKeyShareRequest +type fastReflection_QueryAggregatedKeyShareAllRequest QueryAggregatedKeyShareAllRequest -func (x *QueryAllAggregatedKeyShareRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllAggregatedKeyShareRequest)(x) +func (x *QueryAggregatedKeyShareAllRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAggregatedKeyShareAllRequest)(x) } -func (x *QueryAllAggregatedKeyShareRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryAggregatedKeyShareAllRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7145,43 +7145,43 @@ func (x *QueryAllAggregatedKeyShareRequest) slowProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -var _fastReflection_QueryAllAggregatedKeyShareRequest_messageType fastReflection_QueryAllAggregatedKeyShareRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllAggregatedKeyShareRequest_messageType{} +var _fastReflection_QueryAggregatedKeyShareAllRequest_messageType fastReflection_QueryAggregatedKeyShareAllRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryAggregatedKeyShareAllRequest_messageType{} -type fastReflection_QueryAllAggregatedKeyShareRequest_messageType struct{} +type fastReflection_QueryAggregatedKeyShareAllRequest_messageType struct{} -func (x fastReflection_QueryAllAggregatedKeyShareRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllAggregatedKeyShareRequest)(nil) +func (x fastReflection_QueryAggregatedKeyShareAllRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAggregatedKeyShareAllRequest)(nil) } -func (x fastReflection_QueryAllAggregatedKeyShareRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllAggregatedKeyShareRequest) +func (x fastReflection_QueryAggregatedKeyShareAllRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAggregatedKeyShareAllRequest) } -func (x fastReflection_QueryAllAggregatedKeyShareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllAggregatedKeyShareRequest +func (x fastReflection_QueryAggregatedKeyShareAllRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAggregatedKeyShareAllRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAllAggregatedKeyShareRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllAggregatedKeyShareRequest +func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAggregatedKeyShareAllRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAllAggregatedKeyShareRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryAllAggregatedKeyShareRequest_messageType +func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryAggregatedKeyShareAllRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllAggregatedKeyShareRequest) New() protoreflect.Message { - return new(fastReflection_QueryAllAggregatedKeyShareRequest) +func (x *fastReflection_QueryAggregatedKeyShareAllRequest) New() protoreflect.Message { + return new(fastReflection_QueryAggregatedKeyShareAllRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllAggregatedKeyShareRequest) Interface() protoreflect.ProtoMessage { - return (*QueryAllAggregatedKeyShareRequest)(x) +func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Interface() protoreflect.ProtoMessage { + return (*QueryAggregatedKeyShareAllRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -7189,10 +7189,10 @@ func (x *fastReflection_QueryAllAggregatedKeyShareRequest) Interface() protorefl // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAllAggregatedKeyShareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAllAggregatedKeyShareRequest_pagination, value) { + if !f(fd_QueryAggregatedKeyShareAllRequest_pagination, value) { return } } @@ -7209,15 +7209,15 @@ func (x *fastReflection_QueryAllAggregatedKeyShareRequest) Range(f func(protoref // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAllAggregatedKeyShareRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAggregatedKeyShareRequest.pagination": + case "fairyring.keyshare.QueryAggregatedKeyShareAllRequest.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAggregatedKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAggregatedKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllRequest does not contain field %s", fd.FullName())) } } @@ -7227,15 +7227,15 @@ func (x *fastReflection_QueryAllAggregatedKeyShareRequest) Has(fd protoreflect.F // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllAggregatedKeyShareRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAggregatedKeyShareRequest.pagination": + case "fairyring.keyshare.QueryAggregatedKeyShareAllRequest.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAggregatedKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAggregatedKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllRequest does not contain field %s", fd.FullName())) } } @@ -7245,16 +7245,16 @@ func (x *fastReflection_QueryAllAggregatedKeyShareRequest) Clear(fd protoreflect // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAllAggregatedKeyShareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryAllAggregatedKeyShareRequest.pagination": + case "fairyring.keyshare.QueryAggregatedKeyShareAllRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAggregatedKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAggregatedKeyShareRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllRequest does not contain field %s", descriptor.FullName())) } } @@ -7268,15 +7268,15 @@ func (x *fastReflection_QueryAllAggregatedKeyShareRequest) Get(descriptor protor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllAggregatedKeyShareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAggregatedKeyShareRequest.pagination": + case "fairyring.keyshare.QueryAggregatedKeyShareAllRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAggregatedKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAggregatedKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllRequest does not contain field %s", fd.FullName())) } } @@ -7290,44 +7290,44 @@ func (x *fastReflection_QueryAllAggregatedKeyShareRequest) Set(fd protoreflect.F // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllAggregatedKeyShareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAggregatedKeyShareRequest.pagination": + case "fairyring.keyshare.QueryAggregatedKeyShareAllRequest.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAggregatedKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAggregatedKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAllAggregatedKeyShareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAggregatedKeyShareAllRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAggregatedKeyShareRequest.pagination": + case "fairyring.keyshare.QueryAggregatedKeyShareAllRequest.pagination": m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAggregatedKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAggregatedKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAllAggregatedKeyShareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryAggregatedKeyShareAllRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAllAggregatedKeyShareRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAggregatedKeyShareAllRequest", d.FullName())) } panic("unreachable") } @@ -7335,7 +7335,7 @@ func (x *fastReflection_QueryAllAggregatedKeyShareRequest) WhichOneof(d protoref // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAllAggregatedKeyShareRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryAggregatedKeyShareAllRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7346,7 +7346,7 @@ func (x *fastReflection_QueryAllAggregatedKeyShareRequest) GetUnknown() protoref // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllAggregatedKeyShareRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryAggregatedKeyShareAllRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7358,7 +7358,7 @@ func (x *fastReflection_QueryAllAggregatedKeyShareRequest) SetUnknown(fields pro // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAllAggregatedKeyShareRequest) IsValid() bool { +func (x *fastReflection_QueryAggregatedKeyShareAllRequest) IsValid() bool { return x != nil } @@ -7368,9 +7368,9 @@ func (x *fastReflection_QueryAllAggregatedKeyShareRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAllAggregatedKeyShareRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryAggregatedKeyShareAllRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllAggregatedKeyShareRequest) + x := input.Message.Interface().(*QueryAggregatedKeyShareAllRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7396,7 +7396,7 @@ func (x *fastReflection_QueryAllAggregatedKeyShareRequest) ProtoMethods() *proto } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllAggregatedKeyShareRequest) + x := input.Message.Interface().(*QueryAggregatedKeyShareAllRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7440,7 +7440,7 @@ func (x *fastReflection_QueryAllAggregatedKeyShareRequest) ProtoMethods() *proto }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAllAggregatedKeyShareRequest) + x := input.Message.Interface().(*QueryAggregatedKeyShareAllRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7472,10 +7472,10 @@ func (x *fastReflection_QueryAllAggregatedKeyShareRequest) ProtoMethods() *proto fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllAggregatedKeyShareRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAggregatedKeyShareAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllAggregatedKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAggregatedKeyShareAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7549,79 +7549,79 @@ func (x *fastReflection_QueryAllAggregatedKeyShareRequest) ProtoMethods() *proto } } -var _ protoreflect.List = (*_QueryAllAggregatedKeyShareResponse_1_list)(nil) +var _ protoreflect.List = (*_QueryAggregatedKeyShareAllResponse_1_list)(nil) -type _QueryAllAggregatedKeyShareResponse_1_list struct { +type _QueryAggregatedKeyShareAllResponse_1_list struct { list *[]*AggregatedKeyShare } -func (x *_QueryAllAggregatedKeyShareResponse_1_list) Len() int { +func (x *_QueryAggregatedKeyShareAllResponse_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryAllAggregatedKeyShareResponse_1_list) Get(i int) protoreflect.Value { +func (x *_QueryAggregatedKeyShareAllResponse_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryAllAggregatedKeyShareResponse_1_list) Set(i int, value protoreflect.Value) { +func (x *_QueryAggregatedKeyShareAllResponse_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*AggregatedKeyShare) (*x.list)[i] = concreteValue } -func (x *_QueryAllAggregatedKeyShareResponse_1_list) Append(value protoreflect.Value) { +func (x *_QueryAggregatedKeyShareAllResponse_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*AggregatedKeyShare) *x.list = append(*x.list, concreteValue) } -func (x *_QueryAllAggregatedKeyShareResponse_1_list) AppendMutable() protoreflect.Value { +func (x *_QueryAggregatedKeyShareAllResponse_1_list) AppendMutable() protoreflect.Value { v := new(AggregatedKeyShare) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAllAggregatedKeyShareResponse_1_list) Truncate(n int) { +func (x *_QueryAggregatedKeyShareAllResponse_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryAllAggregatedKeyShareResponse_1_list) NewElement() protoreflect.Value { +func (x *_QueryAggregatedKeyShareAllResponse_1_list) NewElement() protoreflect.Value { v := new(AggregatedKeyShare) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAllAggregatedKeyShareResponse_1_list) IsValid() bool { +func (x *_QueryAggregatedKeyShareAllResponse_1_list) IsValid() bool { return x.list != nil } var ( - md_QueryAllAggregatedKeyShareResponse protoreflect.MessageDescriptor - fd_QueryAllAggregatedKeyShareResponse_aggregatedKeyShare protoreflect.FieldDescriptor - fd_QueryAllAggregatedKeyShareResponse_pagination protoreflect.FieldDescriptor + md_QueryAggregatedKeyShareAllResponse protoreflect.MessageDescriptor + fd_QueryAggregatedKeyShareAllResponse_aggregated_key_share protoreflect.FieldDescriptor + fd_QueryAggregatedKeyShareAllResponse_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryAllAggregatedKeyShareResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAllAggregatedKeyShareResponse") - fd_QueryAllAggregatedKeyShareResponse_aggregatedKeyShare = md_QueryAllAggregatedKeyShareResponse.Fields().ByName("aggregatedKeyShare") - fd_QueryAllAggregatedKeyShareResponse_pagination = md_QueryAllAggregatedKeyShareResponse.Fields().ByName("pagination") + md_QueryAggregatedKeyShareAllResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAggregatedKeyShareAllResponse") + fd_QueryAggregatedKeyShareAllResponse_aggregated_key_share = md_QueryAggregatedKeyShareAllResponse.Fields().ByName("aggregated_key_share") + fd_QueryAggregatedKeyShareAllResponse_pagination = md_QueryAggregatedKeyShareAllResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAllAggregatedKeyShareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryAggregatedKeyShareAllResponse)(nil) -type fastReflection_QueryAllAggregatedKeyShareResponse QueryAllAggregatedKeyShareResponse +type fastReflection_QueryAggregatedKeyShareAllResponse QueryAggregatedKeyShareAllResponse -func (x *QueryAllAggregatedKeyShareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllAggregatedKeyShareResponse)(x) +func (x *QueryAggregatedKeyShareAllResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAggregatedKeyShareAllResponse)(x) } -func (x *QueryAllAggregatedKeyShareResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryAggregatedKeyShareAllResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7633,43 +7633,43 @@ func (x *QueryAllAggregatedKeyShareResponse) slowProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -var _fastReflection_QueryAllAggregatedKeyShareResponse_messageType fastReflection_QueryAllAggregatedKeyShareResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllAggregatedKeyShareResponse_messageType{} +var _fastReflection_QueryAggregatedKeyShareAllResponse_messageType fastReflection_QueryAggregatedKeyShareAllResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryAggregatedKeyShareAllResponse_messageType{} -type fastReflection_QueryAllAggregatedKeyShareResponse_messageType struct{} +type fastReflection_QueryAggregatedKeyShareAllResponse_messageType struct{} -func (x fastReflection_QueryAllAggregatedKeyShareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllAggregatedKeyShareResponse)(nil) +func (x fastReflection_QueryAggregatedKeyShareAllResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAggregatedKeyShareAllResponse)(nil) } -func (x fastReflection_QueryAllAggregatedKeyShareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllAggregatedKeyShareResponse) +func (x fastReflection_QueryAggregatedKeyShareAllResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAggregatedKeyShareAllResponse) } -func (x fastReflection_QueryAllAggregatedKeyShareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllAggregatedKeyShareResponse +func (x fastReflection_QueryAggregatedKeyShareAllResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAggregatedKeyShareAllResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAllAggregatedKeyShareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllAggregatedKeyShareResponse +func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAggregatedKeyShareAllResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAllAggregatedKeyShareResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryAllAggregatedKeyShareResponse_messageType +func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryAggregatedKeyShareAllResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllAggregatedKeyShareResponse) New() protoreflect.Message { - return new(fastReflection_QueryAllAggregatedKeyShareResponse) +func (x *fastReflection_QueryAggregatedKeyShareAllResponse) New() protoreflect.Message { + return new(fastReflection_QueryAggregatedKeyShareAllResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllAggregatedKeyShareResponse) Interface() protoreflect.ProtoMessage { - return (*QueryAllAggregatedKeyShareResponse)(x) +func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Interface() protoreflect.ProtoMessage { + return (*QueryAggregatedKeyShareAllResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -7677,16 +7677,16 @@ func (x *fastReflection_QueryAllAggregatedKeyShareResponse) Interface() protoref // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAllAggregatedKeyShareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.AggregatedKeyShare) != 0 { - value := protoreflect.ValueOfList(&_QueryAllAggregatedKeyShareResponse_1_list{list: &x.AggregatedKeyShare}) - if !f(fd_QueryAllAggregatedKeyShareResponse_aggregatedKeyShare, value) { + value := protoreflect.ValueOfList(&_QueryAggregatedKeyShareAllResponse_1_list{list: &x.AggregatedKeyShare}) + if !f(fd_QueryAggregatedKeyShareAllResponse_aggregated_key_share, value) { return } } if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAllAggregatedKeyShareResponse_pagination, value) { + if !f(fd_QueryAggregatedKeyShareAllResponse_pagination, value) { return } } @@ -7703,17 +7703,17 @@ func (x *fastReflection_QueryAllAggregatedKeyShareResponse) Range(f func(protore // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAllAggregatedKeyShareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAggregatedKeyShareResponse.aggregatedKeyShare": + case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.aggregated_key_share": return len(x.AggregatedKeyShare) != 0 - case "fairyring.keyshare.QueryAllAggregatedKeyShareResponse.pagination": + case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllResponse does not contain field %s", fd.FullName())) } } @@ -7723,17 +7723,17 @@ func (x *fastReflection_QueryAllAggregatedKeyShareResponse) Has(fd protoreflect. // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllAggregatedKeyShareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAggregatedKeyShareResponse.aggregatedKeyShare": + case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.aggregated_key_share": x.AggregatedKeyShare = nil - case "fairyring.keyshare.QueryAllAggregatedKeyShareResponse.pagination": + case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllResponse does not contain field %s", fd.FullName())) } } @@ -7743,22 +7743,22 @@ func (x *fastReflection_QueryAllAggregatedKeyShareResponse) Clear(fd protoreflec // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAllAggregatedKeyShareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryAllAggregatedKeyShareResponse.aggregatedKeyShare": + case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.aggregated_key_share": if len(x.AggregatedKeyShare) == 0 { - return protoreflect.ValueOfList(&_QueryAllAggregatedKeyShareResponse_1_list{}) + return protoreflect.ValueOfList(&_QueryAggregatedKeyShareAllResponse_1_list{}) } - listValue := &_QueryAllAggregatedKeyShareResponse_1_list{list: &x.AggregatedKeyShare} + listValue := &_QueryAggregatedKeyShareAllResponse_1_list{list: &x.AggregatedKeyShare} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.QueryAllAggregatedKeyShareResponse.pagination": + case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAggregatedKeyShareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllResponse does not contain field %s", descriptor.FullName())) } } @@ -7772,19 +7772,19 @@ func (x *fastReflection_QueryAllAggregatedKeyShareResponse) Get(descriptor proto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllAggregatedKeyShareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAggregatedKeyShareResponse.aggregatedKeyShare": + case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.aggregated_key_share": lv := value.List() - clv := lv.(*_QueryAllAggregatedKeyShareResponse_1_list) + clv := lv.(*_QueryAggregatedKeyShareAllResponse_1_list) x.AggregatedKeyShare = *clv.list - case "fairyring.keyshare.QueryAllAggregatedKeyShareResponse.pagination": + case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllResponse does not contain field %s", fd.FullName())) } } @@ -7798,53 +7798,53 @@ func (x *fastReflection_QueryAllAggregatedKeyShareResponse) Set(fd protoreflect. // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllAggregatedKeyShareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAggregatedKeyShareResponse.aggregatedKeyShare": + case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.aggregated_key_share": if x.AggregatedKeyShare == nil { x.AggregatedKeyShare = []*AggregatedKeyShare{} } - value := &_QueryAllAggregatedKeyShareResponse_1_list{list: &x.AggregatedKeyShare} + value := &_QueryAggregatedKeyShareAllResponse_1_list{list: &x.AggregatedKeyShare} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.QueryAllAggregatedKeyShareResponse.pagination": + case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageResponse) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAllAggregatedKeyShareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAggregatedKeyShareAllResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAggregatedKeyShareResponse.aggregatedKeyShare": + case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.aggregated_key_share": list := []*AggregatedKeyShare{} - return protoreflect.ValueOfList(&_QueryAllAggregatedKeyShareResponse_1_list{list: &list}) - case "fairyring.keyshare.QueryAllAggregatedKeyShareResponse.pagination": + return protoreflect.ValueOfList(&_QueryAggregatedKeyShareAllResponse_1_list{list: &list}) + case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.pagination": m := new(v1beta1.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAllAggregatedKeyShareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryAggregatedKeyShareAllResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAllAggregatedKeyShareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAggregatedKeyShareAllResponse", d.FullName())) } panic("unreachable") } @@ -7852,7 +7852,7 @@ func (x *fastReflection_QueryAllAggregatedKeyShareResponse) WhichOneof(d protore // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAllAggregatedKeyShareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryAggregatedKeyShareAllResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7863,7 +7863,7 @@ func (x *fastReflection_QueryAllAggregatedKeyShareResponse) GetUnknown() protore // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllAggregatedKeyShareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryAggregatedKeyShareAllResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7875,7 +7875,7 @@ func (x *fastReflection_QueryAllAggregatedKeyShareResponse) SetUnknown(fields pr // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAllAggregatedKeyShareResponse) IsValid() bool { +func (x *fastReflection_QueryAggregatedKeyShareAllResponse) IsValid() bool { return x != nil } @@ -7885,9 +7885,9 @@ func (x *fastReflection_QueryAllAggregatedKeyShareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAllAggregatedKeyShareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryAggregatedKeyShareAllResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllAggregatedKeyShareResponse) + x := input.Message.Interface().(*QueryAggregatedKeyShareAllResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7919,7 +7919,7 @@ func (x *fastReflection_QueryAllAggregatedKeyShareResponse) ProtoMethods() *prot } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllAggregatedKeyShareResponse) + x := input.Message.Interface().(*QueryAggregatedKeyShareAllResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7979,7 +7979,7 @@ func (x *fastReflection_QueryAllAggregatedKeyShareResponse) ProtoMethods() *prot }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAllAggregatedKeyShareResponse) + x := input.Message.Interface().(*QueryAggregatedKeyShareAllResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8011,10 +8011,10 @@ func (x *fastReflection_QueryAllAggregatedKeyShareResponse) ProtoMethods() *prot fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllAggregatedKeyShareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAggregatedKeyShareAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllAggregatedKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAggregatedKeyShareAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8479,16 +8479,16 @@ func (x *fastReflection_QueryPubKeyRequest) ProtoMethods() *protoiface.Methods { } var ( - md_QueryPubKeyResponse protoreflect.MessageDescriptor - fd_QueryPubKeyResponse_activePubKey protoreflect.FieldDescriptor - fd_QueryPubKeyResponse_queuedPubKey protoreflect.FieldDescriptor + md_QueryPubKeyResponse protoreflect.MessageDescriptor + fd_QueryPubKeyResponse_active_pub_key protoreflect.FieldDescriptor + fd_QueryPubKeyResponse_queued_pub_key protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() md_QueryPubKeyResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryPubKeyResponse") - fd_QueryPubKeyResponse_activePubKey = md_QueryPubKeyResponse.Fields().ByName("activePubKey") - fd_QueryPubKeyResponse_queuedPubKey = md_QueryPubKeyResponse.Fields().ByName("queuedPubKey") + fd_QueryPubKeyResponse_active_pub_key = md_QueryPubKeyResponse.Fields().ByName("active_pub_key") + fd_QueryPubKeyResponse_queued_pub_key = md_QueryPubKeyResponse.Fields().ByName("queued_pub_key") } var _ protoreflect.Message = (*fastReflection_QueryPubKeyResponse)(nil) @@ -8558,13 +8558,13 @@ func (x *fastReflection_QueryPubKeyResponse) Interface() protoreflect.ProtoMessa func (x *fastReflection_QueryPubKeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ActivePubKey != nil { value := protoreflect.ValueOfMessage(x.ActivePubKey.ProtoReflect()) - if !f(fd_QueryPubKeyResponse_activePubKey, value) { + if !f(fd_QueryPubKeyResponse_active_pub_key, value) { return } } if x.QueuedPubKey != nil { value := protoreflect.ValueOfMessage(x.QueuedPubKey.ProtoReflect()) - if !f(fd_QueryPubKeyResponse_queuedPubKey, value) { + if !f(fd_QueryPubKeyResponse_queued_pub_key, value) { return } } @@ -8583,9 +8583,9 @@ func (x *fastReflection_QueryPubKeyResponse) Range(f func(protoreflect.FieldDesc // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryPubKeyResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryPubKeyResponse.activePubKey": + case "fairyring.keyshare.QueryPubKeyResponse.active_pub_key": return x.ActivePubKey != nil - case "fairyring.keyshare.QueryPubKeyResponse.queuedPubKey": + case "fairyring.keyshare.QueryPubKeyResponse.queued_pub_key": return x.QueuedPubKey != nil default: if fd.IsExtension() { @@ -8603,9 +8603,9 @@ func (x *fastReflection_QueryPubKeyResponse) Has(fd protoreflect.FieldDescriptor // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryPubKeyResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryPubKeyResponse.activePubKey": + case "fairyring.keyshare.QueryPubKeyResponse.active_pub_key": x.ActivePubKey = nil - case "fairyring.keyshare.QueryPubKeyResponse.queuedPubKey": + case "fairyring.keyshare.QueryPubKeyResponse.queued_pub_key": x.QueuedPubKey = nil default: if fd.IsExtension() { @@ -8623,10 +8623,10 @@ func (x *fastReflection_QueryPubKeyResponse) Clear(fd protoreflect.FieldDescript // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryPubKeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryPubKeyResponse.activePubKey": + case "fairyring.keyshare.QueryPubKeyResponse.active_pub_key": value := x.ActivePubKey return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.keyshare.QueryPubKeyResponse.queuedPubKey": + case "fairyring.keyshare.QueryPubKeyResponse.queued_pub_key": value := x.QueuedPubKey return protoreflect.ValueOfMessage(value.ProtoReflect()) default: @@ -8649,9 +8649,9 @@ func (x *fastReflection_QueryPubKeyResponse) Get(descriptor protoreflect.FieldDe // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryPubKeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryPubKeyResponse.activePubKey": + case "fairyring.keyshare.QueryPubKeyResponse.active_pub_key": x.ActivePubKey = value.Message().Interface().(*ActivePubKey) - case "fairyring.keyshare.QueryPubKeyResponse.queuedPubKey": + case "fairyring.keyshare.QueryPubKeyResponse.queued_pub_key": x.QueuedPubKey = value.Message().Interface().(*QueuedPubKey) default: if fd.IsExtension() { @@ -8673,12 +8673,12 @@ func (x *fastReflection_QueryPubKeyResponse) Set(fd protoreflect.FieldDescriptor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryPubKeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryPubKeyResponse.activePubKey": + case "fairyring.keyshare.QueryPubKeyResponse.active_pub_key": if x.ActivePubKey == nil { x.ActivePubKey = new(ActivePubKey) } return protoreflect.ValueOfMessage(x.ActivePubKey.ProtoReflect()) - case "fairyring.keyshare.QueryPubKeyResponse.queuedPubKey": + case "fairyring.keyshare.QueryPubKeyResponse.queued_pub_key": if x.QueuedPubKey == nil { x.QueuedPubKey = new(QueuedPubKey) } @@ -8696,10 +8696,10 @@ func (x *fastReflection_QueryPubKeyResponse) Mutable(fd protoreflect.FieldDescri // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryPubKeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryPubKeyResponse.activePubKey": + case "fairyring.keyshare.QueryPubKeyResponse.active_pub_key": m := new(ActivePubKey) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.keyshare.QueryPubKeyResponse.queuedPubKey": + case "fairyring.keyshare.QueryPubKeyResponse.queued_pub_key": m := new(QueuedPubKey) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: @@ -8993,25 +8993,25 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods } var ( - md_QueryGetAuthorizedAddressRequest protoreflect.MessageDescriptor - fd_QueryGetAuthorizedAddressRequest_target protoreflect.FieldDescriptor + md_QueryAuthorizedAddressRequest protoreflect.MessageDescriptor + fd_QueryAuthorizedAddressRequest_target protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryGetAuthorizedAddressRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGetAuthorizedAddressRequest") - fd_QueryGetAuthorizedAddressRequest_target = md_QueryGetAuthorizedAddressRequest.Fields().ByName("target") + md_QueryAuthorizedAddressRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAuthorizedAddressRequest") + fd_QueryAuthorizedAddressRequest_target = md_QueryAuthorizedAddressRequest.Fields().ByName("target") } -var _ protoreflect.Message = (*fastReflection_QueryGetAuthorizedAddressRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryAuthorizedAddressRequest)(nil) -type fastReflection_QueryGetAuthorizedAddressRequest QueryGetAuthorizedAddressRequest +type fastReflection_QueryAuthorizedAddressRequest QueryAuthorizedAddressRequest -func (x *QueryGetAuthorizedAddressRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetAuthorizedAddressRequest)(x) +func (x *QueryAuthorizedAddressRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAuthorizedAddressRequest)(x) } -func (x *QueryGetAuthorizedAddressRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryAuthorizedAddressRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9023,43 +9023,43 @@ func (x *QueryGetAuthorizedAddressRequest) slowProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -var _fastReflection_QueryGetAuthorizedAddressRequest_messageType fastReflection_QueryGetAuthorizedAddressRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetAuthorizedAddressRequest_messageType{} +var _fastReflection_QueryAuthorizedAddressRequest_messageType fastReflection_QueryAuthorizedAddressRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryAuthorizedAddressRequest_messageType{} -type fastReflection_QueryGetAuthorizedAddressRequest_messageType struct{} +type fastReflection_QueryAuthorizedAddressRequest_messageType struct{} -func (x fastReflection_QueryGetAuthorizedAddressRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetAuthorizedAddressRequest)(nil) +func (x fastReflection_QueryAuthorizedAddressRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAuthorizedAddressRequest)(nil) } -func (x fastReflection_QueryGetAuthorizedAddressRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetAuthorizedAddressRequest) +func (x fastReflection_QueryAuthorizedAddressRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAuthorizedAddressRequest) } -func (x fastReflection_QueryGetAuthorizedAddressRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetAuthorizedAddressRequest +func (x fastReflection_QueryAuthorizedAddressRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAuthorizedAddressRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetAuthorizedAddressRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetAuthorizedAddressRequest +func (x *fastReflection_QueryAuthorizedAddressRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAuthorizedAddressRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetAuthorizedAddressRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetAuthorizedAddressRequest_messageType +func (x *fastReflection_QueryAuthorizedAddressRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryAuthorizedAddressRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetAuthorizedAddressRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetAuthorizedAddressRequest) +func (x *fastReflection_QueryAuthorizedAddressRequest) New() protoreflect.Message { + return new(fastReflection_QueryAuthorizedAddressRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetAuthorizedAddressRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetAuthorizedAddressRequest)(x) +func (x *fastReflection_QueryAuthorizedAddressRequest) Interface() protoreflect.ProtoMessage { + return (*QueryAuthorizedAddressRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -9067,10 +9067,10 @@ func (x *fastReflection_QueryGetAuthorizedAddressRequest) Interface() protorefle // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetAuthorizedAddressRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryAuthorizedAddressRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Target != "" { value := protoreflect.ValueOfString(x.Target) - if !f(fd_QueryGetAuthorizedAddressRequest_target, value) { + if !f(fd_QueryAuthorizedAddressRequest_target, value) { return } } @@ -9087,15 +9087,15 @@ func (x *fastReflection_QueryGetAuthorizedAddressRequest) Range(f func(protorefl // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetAuthorizedAddressRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryAuthorizedAddressRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAuthorizedAddressRequest.target": + case "fairyring.keyshare.QueryAuthorizedAddressRequest.target": return x.Target != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAuthorizedAddressRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAuthorizedAddressRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressRequest does not contain field %s", fd.FullName())) } } @@ -9105,15 +9105,15 @@ func (x *fastReflection_QueryGetAuthorizedAddressRequest) Has(fd protoreflect.Fi // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAuthorizedAddressRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryAuthorizedAddressRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAuthorizedAddressRequest.target": + case "fairyring.keyshare.QueryAuthorizedAddressRequest.target": x.Target = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAuthorizedAddressRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAuthorizedAddressRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressRequest does not contain field %s", fd.FullName())) } } @@ -9123,16 +9123,16 @@ func (x *fastReflection_QueryGetAuthorizedAddressRequest) Clear(fd protoreflect. // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetAuthorizedAddressRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAuthorizedAddressRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryGetAuthorizedAddressRequest.target": + case "fairyring.keyshare.QueryAuthorizedAddressRequest.target": value := x.Target return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAuthorizedAddressRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAuthorizedAddressRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressRequest does not contain field %s", descriptor.FullName())) } } @@ -9146,15 +9146,15 @@ func (x *fastReflection_QueryGetAuthorizedAddressRequest) Get(descriptor protore // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAuthorizedAddressRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryAuthorizedAddressRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAuthorizedAddressRequest.target": + case "fairyring.keyshare.QueryAuthorizedAddressRequest.target": x.Target = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAuthorizedAddressRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAuthorizedAddressRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressRequest does not contain field %s", fd.FullName())) } } @@ -9168,40 +9168,40 @@ func (x *fastReflection_QueryGetAuthorizedAddressRequest) Set(fd protoreflect.Fi // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAuthorizedAddressRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAuthorizedAddressRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAuthorizedAddressRequest.target": - panic(fmt.Errorf("field target of message fairyring.keyshare.QueryGetAuthorizedAddressRequest is not mutable")) + case "fairyring.keyshare.QueryAuthorizedAddressRequest.target": + panic(fmt.Errorf("field target of message fairyring.keyshare.QueryAuthorizedAddressRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAuthorizedAddressRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAuthorizedAddressRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetAuthorizedAddressRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAuthorizedAddressRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAuthorizedAddressRequest.target": + case "fairyring.keyshare.QueryAuthorizedAddressRequest.target": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAuthorizedAddressRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAuthorizedAddressRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetAuthorizedAddressRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryAuthorizedAddressRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGetAuthorizedAddressRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAuthorizedAddressRequest", d.FullName())) } panic("unreachable") } @@ -9209,7 +9209,7 @@ func (x *fastReflection_QueryGetAuthorizedAddressRequest) WhichOneof(d protorefl // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetAuthorizedAddressRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryAuthorizedAddressRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9220,7 +9220,7 @@ func (x *fastReflection_QueryGetAuthorizedAddressRequest) GetUnknown() protorefl // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAuthorizedAddressRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryAuthorizedAddressRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9232,7 +9232,7 @@ func (x *fastReflection_QueryGetAuthorizedAddressRequest) SetUnknown(fields prot // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetAuthorizedAddressRequest) IsValid() bool { +func (x *fastReflection_QueryAuthorizedAddressRequest) IsValid() bool { return x != nil } @@ -9242,9 +9242,9 @@ func (x *fastReflection_QueryGetAuthorizedAddressRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetAuthorizedAddressRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryAuthorizedAddressRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetAuthorizedAddressRequest) + x := input.Message.Interface().(*QueryAuthorizedAddressRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9270,7 +9270,7 @@ func (x *fastReflection_QueryGetAuthorizedAddressRequest) ProtoMethods() *protoi } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetAuthorizedAddressRequest) + x := input.Message.Interface().(*QueryAuthorizedAddressRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9307,7 +9307,7 @@ func (x *fastReflection_QueryGetAuthorizedAddressRequest) ProtoMethods() *protoi }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetAuthorizedAddressRequest) + x := input.Message.Interface().(*QueryAuthorizedAddressRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9339,10 +9339,10 @@ func (x *fastReflection_QueryGetAuthorizedAddressRequest) ProtoMethods() *protoi fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetAuthorizedAddressRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAuthorizedAddressRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetAuthorizedAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAuthorizedAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9413,25 +9413,25 @@ func (x *fastReflection_QueryGetAuthorizedAddressRequest) ProtoMethods() *protoi } var ( - md_QueryGetAuthorizedAddressResponse protoreflect.MessageDescriptor - fd_QueryGetAuthorizedAddressResponse_authorizedAddress protoreflect.FieldDescriptor + md_QueryAuthorizedAddressResponse protoreflect.MessageDescriptor + fd_QueryAuthorizedAddressResponse_authorized_address protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryGetAuthorizedAddressResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGetAuthorizedAddressResponse") - fd_QueryGetAuthorizedAddressResponse_authorizedAddress = md_QueryGetAuthorizedAddressResponse.Fields().ByName("authorizedAddress") + md_QueryAuthorizedAddressResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAuthorizedAddressResponse") + fd_QueryAuthorizedAddressResponse_authorized_address = md_QueryAuthorizedAddressResponse.Fields().ByName("authorized_address") } -var _ protoreflect.Message = (*fastReflection_QueryGetAuthorizedAddressResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryAuthorizedAddressResponse)(nil) -type fastReflection_QueryGetAuthorizedAddressResponse QueryGetAuthorizedAddressResponse +type fastReflection_QueryAuthorizedAddressResponse QueryAuthorizedAddressResponse -func (x *QueryGetAuthorizedAddressResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetAuthorizedAddressResponse)(x) +func (x *QueryAuthorizedAddressResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAuthorizedAddressResponse)(x) } -func (x *QueryGetAuthorizedAddressResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryAuthorizedAddressResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9443,43 +9443,43 @@ func (x *QueryGetAuthorizedAddressResponse) slowProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -var _fastReflection_QueryGetAuthorizedAddressResponse_messageType fastReflection_QueryGetAuthorizedAddressResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetAuthorizedAddressResponse_messageType{} +var _fastReflection_QueryAuthorizedAddressResponse_messageType fastReflection_QueryAuthorizedAddressResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryAuthorizedAddressResponse_messageType{} -type fastReflection_QueryGetAuthorizedAddressResponse_messageType struct{} +type fastReflection_QueryAuthorizedAddressResponse_messageType struct{} -func (x fastReflection_QueryGetAuthorizedAddressResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetAuthorizedAddressResponse)(nil) +func (x fastReflection_QueryAuthorizedAddressResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAuthorizedAddressResponse)(nil) } -func (x fastReflection_QueryGetAuthorizedAddressResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetAuthorizedAddressResponse) +func (x fastReflection_QueryAuthorizedAddressResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAuthorizedAddressResponse) } -func (x fastReflection_QueryGetAuthorizedAddressResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetAuthorizedAddressResponse +func (x fastReflection_QueryAuthorizedAddressResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAuthorizedAddressResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetAuthorizedAddressResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetAuthorizedAddressResponse +func (x *fastReflection_QueryAuthorizedAddressResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAuthorizedAddressResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetAuthorizedAddressResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGetAuthorizedAddressResponse_messageType +func (x *fastReflection_QueryAuthorizedAddressResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryAuthorizedAddressResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetAuthorizedAddressResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetAuthorizedAddressResponse) +func (x *fastReflection_QueryAuthorizedAddressResponse) New() protoreflect.Message { + return new(fastReflection_QueryAuthorizedAddressResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetAuthorizedAddressResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetAuthorizedAddressResponse)(x) +func (x *fastReflection_QueryAuthorizedAddressResponse) Interface() protoreflect.ProtoMessage { + return (*QueryAuthorizedAddressResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -9487,10 +9487,10 @@ func (x *fastReflection_QueryGetAuthorizedAddressResponse) Interface() protorefl // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetAuthorizedAddressResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryAuthorizedAddressResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.AuthorizedAddress != nil { value := protoreflect.ValueOfMessage(x.AuthorizedAddress.ProtoReflect()) - if !f(fd_QueryGetAuthorizedAddressResponse_authorizedAddress, value) { + if !f(fd_QueryAuthorizedAddressResponse_authorized_address, value) { return } } @@ -9507,15 +9507,15 @@ func (x *fastReflection_QueryGetAuthorizedAddressResponse) Range(f func(protoref // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetAuthorizedAddressResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryAuthorizedAddressResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAuthorizedAddressResponse.authorizedAddress": + case "fairyring.keyshare.QueryAuthorizedAddressResponse.authorized_address": return x.AuthorizedAddress != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAuthorizedAddressResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAuthorizedAddressResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressResponse does not contain field %s", fd.FullName())) } } @@ -9525,15 +9525,15 @@ func (x *fastReflection_QueryGetAuthorizedAddressResponse) Has(fd protoreflect.F // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAuthorizedAddressResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryAuthorizedAddressResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAuthorizedAddressResponse.authorizedAddress": + case "fairyring.keyshare.QueryAuthorizedAddressResponse.authorized_address": x.AuthorizedAddress = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAuthorizedAddressResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAuthorizedAddressResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressResponse does not contain field %s", fd.FullName())) } } @@ -9543,16 +9543,16 @@ func (x *fastReflection_QueryGetAuthorizedAddressResponse) Clear(fd protoreflect // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetAuthorizedAddressResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAuthorizedAddressResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryGetAuthorizedAddressResponse.authorizedAddress": + case "fairyring.keyshare.QueryAuthorizedAddressResponse.authorized_address": value := x.AuthorizedAddress return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAuthorizedAddressResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAuthorizedAddressResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressResponse does not contain field %s", descriptor.FullName())) } } @@ -9566,15 +9566,15 @@ func (x *fastReflection_QueryGetAuthorizedAddressResponse) Get(descriptor protor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAuthorizedAddressResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryAuthorizedAddressResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAuthorizedAddressResponse.authorizedAddress": + case "fairyring.keyshare.QueryAuthorizedAddressResponse.authorized_address": x.AuthorizedAddress = value.Message().Interface().(*AuthorizedAddress) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAuthorizedAddressResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAuthorizedAddressResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressResponse does not contain field %s", fd.FullName())) } } @@ -9588,44 +9588,44 @@ func (x *fastReflection_QueryGetAuthorizedAddressResponse) Set(fd protoreflect.F // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAuthorizedAddressResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAuthorizedAddressResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAuthorizedAddressResponse.authorizedAddress": + case "fairyring.keyshare.QueryAuthorizedAddressResponse.authorized_address": if x.AuthorizedAddress == nil { x.AuthorizedAddress = new(AuthorizedAddress) } return protoreflect.ValueOfMessage(x.AuthorizedAddress.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAuthorizedAddressResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAuthorizedAddressResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetAuthorizedAddressResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAuthorizedAddressResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetAuthorizedAddressResponse.authorizedAddress": + case "fairyring.keyshare.QueryAuthorizedAddressResponse.authorized_address": m := new(AuthorizedAddress) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetAuthorizedAddressResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetAuthorizedAddressResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetAuthorizedAddressResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryAuthorizedAddressResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGetAuthorizedAddressResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAuthorizedAddressResponse", d.FullName())) } panic("unreachable") } @@ -9633,7 +9633,7 @@ func (x *fastReflection_QueryGetAuthorizedAddressResponse) WhichOneof(d protoref // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetAuthorizedAddressResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryAuthorizedAddressResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9644,7 +9644,7 @@ func (x *fastReflection_QueryGetAuthorizedAddressResponse) GetUnknown() protoref // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetAuthorizedAddressResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryAuthorizedAddressResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9656,7 +9656,7 @@ func (x *fastReflection_QueryGetAuthorizedAddressResponse) SetUnknown(fields pro // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetAuthorizedAddressResponse) IsValid() bool { +func (x *fastReflection_QueryAuthorizedAddressResponse) IsValid() bool { return x != nil } @@ -9666,9 +9666,9 @@ func (x *fastReflection_QueryGetAuthorizedAddressResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetAuthorizedAddressResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryAuthorizedAddressResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetAuthorizedAddressResponse) + x := input.Message.Interface().(*QueryAuthorizedAddressResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9694,7 +9694,7 @@ func (x *fastReflection_QueryGetAuthorizedAddressResponse) ProtoMethods() *proto } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetAuthorizedAddressResponse) + x := input.Message.Interface().(*QueryAuthorizedAddressResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9738,7 +9738,7 @@ func (x *fastReflection_QueryGetAuthorizedAddressResponse) ProtoMethods() *proto }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetAuthorizedAddressResponse) + x := input.Message.Interface().(*QueryAuthorizedAddressResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9770,10 +9770,10 @@ func (x *fastReflection_QueryGetAuthorizedAddressResponse) ProtoMethods() *proto fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetAuthorizedAddressResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAuthorizedAddressResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetAuthorizedAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAuthorizedAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9848,25 +9848,25 @@ func (x *fastReflection_QueryGetAuthorizedAddressResponse) ProtoMethods() *proto } var ( - md_QueryAllAuthorizedAddressRequest protoreflect.MessageDescriptor - fd_QueryAllAuthorizedAddressRequest_pagination protoreflect.FieldDescriptor + md_QueryAuthorizedAddressAllRequest protoreflect.MessageDescriptor + fd_QueryAuthorizedAddressAllRequest_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryAllAuthorizedAddressRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAllAuthorizedAddressRequest") - fd_QueryAllAuthorizedAddressRequest_pagination = md_QueryAllAuthorizedAddressRequest.Fields().ByName("pagination") + md_QueryAuthorizedAddressAllRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAuthorizedAddressAllRequest") + fd_QueryAuthorizedAddressAllRequest_pagination = md_QueryAuthorizedAddressAllRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAllAuthorizedAddressRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryAuthorizedAddressAllRequest)(nil) -type fastReflection_QueryAllAuthorizedAddressRequest QueryAllAuthorizedAddressRequest +type fastReflection_QueryAuthorizedAddressAllRequest QueryAuthorizedAddressAllRequest -func (x *QueryAllAuthorizedAddressRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllAuthorizedAddressRequest)(x) +func (x *QueryAuthorizedAddressAllRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAuthorizedAddressAllRequest)(x) } -func (x *QueryAllAuthorizedAddressRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryAuthorizedAddressAllRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9878,43 +9878,43 @@ func (x *QueryAllAuthorizedAddressRequest) slowProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -var _fastReflection_QueryAllAuthorizedAddressRequest_messageType fastReflection_QueryAllAuthorizedAddressRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllAuthorizedAddressRequest_messageType{} +var _fastReflection_QueryAuthorizedAddressAllRequest_messageType fastReflection_QueryAuthorizedAddressAllRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryAuthorizedAddressAllRequest_messageType{} -type fastReflection_QueryAllAuthorizedAddressRequest_messageType struct{} +type fastReflection_QueryAuthorizedAddressAllRequest_messageType struct{} -func (x fastReflection_QueryAllAuthorizedAddressRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllAuthorizedAddressRequest)(nil) +func (x fastReflection_QueryAuthorizedAddressAllRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAuthorizedAddressAllRequest)(nil) } -func (x fastReflection_QueryAllAuthorizedAddressRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllAuthorizedAddressRequest) +func (x fastReflection_QueryAuthorizedAddressAllRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAuthorizedAddressAllRequest) } -func (x fastReflection_QueryAllAuthorizedAddressRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllAuthorizedAddressRequest +func (x fastReflection_QueryAuthorizedAddressAllRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAuthorizedAddressAllRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAllAuthorizedAddressRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllAuthorizedAddressRequest +func (x *fastReflection_QueryAuthorizedAddressAllRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAuthorizedAddressAllRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAllAuthorizedAddressRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryAllAuthorizedAddressRequest_messageType +func (x *fastReflection_QueryAuthorizedAddressAllRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryAuthorizedAddressAllRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllAuthorizedAddressRequest) New() protoreflect.Message { - return new(fastReflection_QueryAllAuthorizedAddressRequest) +func (x *fastReflection_QueryAuthorizedAddressAllRequest) New() protoreflect.Message { + return new(fastReflection_QueryAuthorizedAddressAllRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllAuthorizedAddressRequest) Interface() protoreflect.ProtoMessage { - return (*QueryAllAuthorizedAddressRequest)(x) +func (x *fastReflection_QueryAuthorizedAddressAllRequest) Interface() protoreflect.ProtoMessage { + return (*QueryAuthorizedAddressAllRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -9922,10 +9922,10 @@ func (x *fastReflection_QueryAllAuthorizedAddressRequest) Interface() protorefle // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAllAuthorizedAddressRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryAuthorizedAddressAllRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAllAuthorizedAddressRequest_pagination, value) { + if !f(fd_QueryAuthorizedAddressAllRequest_pagination, value) { return } } @@ -9942,15 +9942,15 @@ func (x *fastReflection_QueryAllAuthorizedAddressRequest) Range(f func(protorefl // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAllAuthorizedAddressRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryAuthorizedAddressAllRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAuthorizedAddressRequest.pagination": + case "fairyring.keyshare.QueryAuthorizedAddressAllRequest.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAuthorizedAddressRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAuthorizedAddressRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressAllRequest does not contain field %s", fd.FullName())) } } @@ -9960,15 +9960,15 @@ func (x *fastReflection_QueryAllAuthorizedAddressRequest) Has(fd protoreflect.Fi // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllAuthorizedAddressRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryAuthorizedAddressAllRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAuthorizedAddressRequest.pagination": + case "fairyring.keyshare.QueryAuthorizedAddressAllRequest.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAuthorizedAddressRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAuthorizedAddressRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressAllRequest does not contain field %s", fd.FullName())) } } @@ -9978,16 +9978,16 @@ func (x *fastReflection_QueryAllAuthorizedAddressRequest) Clear(fd protoreflect. // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAllAuthorizedAddressRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAuthorizedAddressAllRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryAllAuthorizedAddressRequest.pagination": + case "fairyring.keyshare.QueryAuthorizedAddressAllRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAuthorizedAddressRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAuthorizedAddressRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressAllRequest does not contain field %s", descriptor.FullName())) } } @@ -10001,15 +10001,15 @@ func (x *fastReflection_QueryAllAuthorizedAddressRequest) Get(descriptor protore // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllAuthorizedAddressRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryAuthorizedAddressAllRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAuthorizedAddressRequest.pagination": + case "fairyring.keyshare.QueryAuthorizedAddressAllRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAuthorizedAddressRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAuthorizedAddressRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressAllRequest does not contain field %s", fd.FullName())) } } @@ -10023,44 +10023,44 @@ func (x *fastReflection_QueryAllAuthorizedAddressRequest) Set(fd protoreflect.Fi // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllAuthorizedAddressRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAuthorizedAddressAllRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAuthorizedAddressRequest.pagination": + case "fairyring.keyshare.QueryAuthorizedAddressAllRequest.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAuthorizedAddressRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAuthorizedAddressRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressAllRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAllAuthorizedAddressRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAuthorizedAddressAllRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAuthorizedAddressRequest.pagination": + case "fairyring.keyshare.QueryAuthorizedAddressAllRequest.pagination": m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAuthorizedAddressRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAuthorizedAddressRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressAllRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAllAuthorizedAddressRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryAuthorizedAddressAllRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAllAuthorizedAddressRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAuthorizedAddressAllRequest", d.FullName())) } panic("unreachable") } @@ -10068,7 +10068,7 @@ func (x *fastReflection_QueryAllAuthorizedAddressRequest) WhichOneof(d protorefl // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAllAuthorizedAddressRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryAuthorizedAddressAllRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -10079,7 +10079,7 @@ func (x *fastReflection_QueryAllAuthorizedAddressRequest) GetUnknown() protorefl // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllAuthorizedAddressRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryAuthorizedAddressAllRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -10091,7 +10091,7 @@ func (x *fastReflection_QueryAllAuthorizedAddressRequest) SetUnknown(fields prot // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAllAuthorizedAddressRequest) IsValid() bool { +func (x *fastReflection_QueryAuthorizedAddressAllRequest) IsValid() bool { return x != nil } @@ -10101,9 +10101,9 @@ func (x *fastReflection_QueryAllAuthorizedAddressRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAllAuthorizedAddressRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryAuthorizedAddressAllRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllAuthorizedAddressRequest) + x := input.Message.Interface().(*QueryAuthorizedAddressAllRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10129,7 +10129,7 @@ func (x *fastReflection_QueryAllAuthorizedAddressRequest) ProtoMethods() *protoi } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllAuthorizedAddressRequest) + x := input.Message.Interface().(*QueryAuthorizedAddressAllRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10173,7 +10173,7 @@ func (x *fastReflection_QueryAllAuthorizedAddressRequest) ProtoMethods() *protoi }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAllAuthorizedAddressRequest) + x := input.Message.Interface().(*QueryAuthorizedAddressAllRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10205,10 +10205,10 @@ func (x *fastReflection_QueryAllAuthorizedAddressRequest) ProtoMethods() *protoi fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllAuthorizedAddressRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAuthorizedAddressAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllAuthorizedAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAuthorizedAddressAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -10282,79 +10282,79 @@ func (x *fastReflection_QueryAllAuthorizedAddressRequest) ProtoMethods() *protoi } } -var _ protoreflect.List = (*_QueryAllAuthorizedAddressResponse_1_list)(nil) +var _ protoreflect.List = (*_QueryAuthorizedAddressAllResponse_1_list)(nil) -type _QueryAllAuthorizedAddressResponse_1_list struct { +type _QueryAuthorizedAddressAllResponse_1_list struct { list *[]*AuthorizedAddress } -func (x *_QueryAllAuthorizedAddressResponse_1_list) Len() int { +func (x *_QueryAuthorizedAddressAllResponse_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryAllAuthorizedAddressResponse_1_list) Get(i int) protoreflect.Value { +func (x *_QueryAuthorizedAddressAllResponse_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryAllAuthorizedAddressResponse_1_list) Set(i int, value protoreflect.Value) { +func (x *_QueryAuthorizedAddressAllResponse_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*AuthorizedAddress) (*x.list)[i] = concreteValue } -func (x *_QueryAllAuthorizedAddressResponse_1_list) Append(value protoreflect.Value) { +func (x *_QueryAuthorizedAddressAllResponse_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*AuthorizedAddress) *x.list = append(*x.list, concreteValue) } -func (x *_QueryAllAuthorizedAddressResponse_1_list) AppendMutable() protoreflect.Value { +func (x *_QueryAuthorizedAddressAllResponse_1_list) AppendMutable() protoreflect.Value { v := new(AuthorizedAddress) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAllAuthorizedAddressResponse_1_list) Truncate(n int) { +func (x *_QueryAuthorizedAddressAllResponse_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryAllAuthorizedAddressResponse_1_list) NewElement() protoreflect.Value { +func (x *_QueryAuthorizedAddressAllResponse_1_list) NewElement() protoreflect.Value { v := new(AuthorizedAddress) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAllAuthorizedAddressResponse_1_list) IsValid() bool { +func (x *_QueryAuthorizedAddressAllResponse_1_list) IsValid() bool { return x.list != nil } var ( - md_QueryAllAuthorizedAddressResponse protoreflect.MessageDescriptor - fd_QueryAllAuthorizedAddressResponse_authorizedAddress protoreflect.FieldDescriptor - fd_QueryAllAuthorizedAddressResponse_pagination protoreflect.FieldDescriptor + md_QueryAuthorizedAddressAllResponse protoreflect.MessageDescriptor + fd_QueryAuthorizedAddressAllResponse_authorized_address protoreflect.FieldDescriptor + fd_QueryAuthorizedAddressAllResponse_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryAllAuthorizedAddressResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAllAuthorizedAddressResponse") - fd_QueryAllAuthorizedAddressResponse_authorizedAddress = md_QueryAllAuthorizedAddressResponse.Fields().ByName("authorizedAddress") - fd_QueryAllAuthorizedAddressResponse_pagination = md_QueryAllAuthorizedAddressResponse.Fields().ByName("pagination") + md_QueryAuthorizedAddressAllResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAuthorizedAddressAllResponse") + fd_QueryAuthorizedAddressAllResponse_authorized_address = md_QueryAuthorizedAddressAllResponse.Fields().ByName("authorized_address") + fd_QueryAuthorizedAddressAllResponse_pagination = md_QueryAuthorizedAddressAllResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAllAuthorizedAddressResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryAuthorizedAddressAllResponse)(nil) -type fastReflection_QueryAllAuthorizedAddressResponse QueryAllAuthorizedAddressResponse +type fastReflection_QueryAuthorizedAddressAllResponse QueryAuthorizedAddressAllResponse -func (x *QueryAllAuthorizedAddressResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllAuthorizedAddressResponse)(x) +func (x *QueryAuthorizedAddressAllResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryAuthorizedAddressAllResponse)(x) } -func (x *QueryAllAuthorizedAddressResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryAuthorizedAddressAllResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -10366,43 +10366,43 @@ func (x *QueryAllAuthorizedAddressResponse) slowProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -var _fastReflection_QueryAllAuthorizedAddressResponse_messageType fastReflection_QueryAllAuthorizedAddressResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllAuthorizedAddressResponse_messageType{} +var _fastReflection_QueryAuthorizedAddressAllResponse_messageType fastReflection_QueryAuthorizedAddressAllResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryAuthorizedAddressAllResponse_messageType{} -type fastReflection_QueryAllAuthorizedAddressResponse_messageType struct{} +type fastReflection_QueryAuthorizedAddressAllResponse_messageType struct{} -func (x fastReflection_QueryAllAuthorizedAddressResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllAuthorizedAddressResponse)(nil) +func (x fastReflection_QueryAuthorizedAddressAllResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryAuthorizedAddressAllResponse)(nil) } -func (x fastReflection_QueryAllAuthorizedAddressResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllAuthorizedAddressResponse) +func (x fastReflection_QueryAuthorizedAddressAllResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryAuthorizedAddressAllResponse) } -func (x fastReflection_QueryAllAuthorizedAddressResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllAuthorizedAddressResponse +func (x fastReflection_QueryAuthorizedAddressAllResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAuthorizedAddressAllResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAllAuthorizedAddressResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllAuthorizedAddressResponse +func (x *fastReflection_QueryAuthorizedAddressAllResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryAuthorizedAddressAllResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAllAuthorizedAddressResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryAllAuthorizedAddressResponse_messageType +func (x *fastReflection_QueryAuthorizedAddressAllResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryAuthorizedAddressAllResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllAuthorizedAddressResponse) New() protoreflect.Message { - return new(fastReflection_QueryAllAuthorizedAddressResponse) +func (x *fastReflection_QueryAuthorizedAddressAllResponse) New() protoreflect.Message { + return new(fastReflection_QueryAuthorizedAddressAllResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllAuthorizedAddressResponse) Interface() protoreflect.ProtoMessage { - return (*QueryAllAuthorizedAddressResponse)(x) +func (x *fastReflection_QueryAuthorizedAddressAllResponse) Interface() protoreflect.ProtoMessage { + return (*QueryAuthorizedAddressAllResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -10410,16 +10410,16 @@ func (x *fastReflection_QueryAllAuthorizedAddressResponse) Interface() protorefl // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAllAuthorizedAddressResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryAuthorizedAddressAllResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.AuthorizedAddress) != 0 { - value := protoreflect.ValueOfList(&_QueryAllAuthorizedAddressResponse_1_list{list: &x.AuthorizedAddress}) - if !f(fd_QueryAllAuthorizedAddressResponse_authorizedAddress, value) { + value := protoreflect.ValueOfList(&_QueryAuthorizedAddressAllResponse_1_list{list: &x.AuthorizedAddress}) + if !f(fd_QueryAuthorizedAddressAllResponse_authorized_address, value) { return } } if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAllAuthorizedAddressResponse_pagination, value) { + if !f(fd_QueryAuthorizedAddressAllResponse_pagination, value) { return } } @@ -10436,17 +10436,17 @@ func (x *fastReflection_QueryAllAuthorizedAddressResponse) Range(f func(protoref // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAllAuthorizedAddressResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryAuthorizedAddressAllResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAuthorizedAddressResponse.authorizedAddress": + case "fairyring.keyshare.QueryAuthorizedAddressAllResponse.authorized_address": return len(x.AuthorizedAddress) != 0 - case "fairyring.keyshare.QueryAllAuthorizedAddressResponse.pagination": + case "fairyring.keyshare.QueryAuthorizedAddressAllResponse.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAuthorizedAddressResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAuthorizedAddressResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressAllResponse does not contain field %s", fd.FullName())) } } @@ -10456,17 +10456,17 @@ func (x *fastReflection_QueryAllAuthorizedAddressResponse) Has(fd protoreflect.F // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllAuthorizedAddressResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryAuthorizedAddressAllResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAuthorizedAddressResponse.authorizedAddress": + case "fairyring.keyshare.QueryAuthorizedAddressAllResponse.authorized_address": x.AuthorizedAddress = nil - case "fairyring.keyshare.QueryAllAuthorizedAddressResponse.pagination": + case "fairyring.keyshare.QueryAuthorizedAddressAllResponse.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAuthorizedAddressResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAuthorizedAddressResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressAllResponse does not contain field %s", fd.FullName())) } } @@ -10476,22 +10476,22 @@ func (x *fastReflection_QueryAllAuthorizedAddressResponse) Clear(fd protoreflect // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAllAuthorizedAddressResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAuthorizedAddressAllResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryAllAuthorizedAddressResponse.authorizedAddress": + case "fairyring.keyshare.QueryAuthorizedAddressAllResponse.authorized_address": if len(x.AuthorizedAddress) == 0 { - return protoreflect.ValueOfList(&_QueryAllAuthorizedAddressResponse_1_list{}) + return protoreflect.ValueOfList(&_QueryAuthorizedAddressAllResponse_1_list{}) } - listValue := &_QueryAllAuthorizedAddressResponse_1_list{list: &x.AuthorizedAddress} + listValue := &_QueryAuthorizedAddressAllResponse_1_list{list: &x.AuthorizedAddress} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.QueryAllAuthorizedAddressResponse.pagination": + case "fairyring.keyshare.QueryAuthorizedAddressAllResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAuthorizedAddressResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAuthorizedAddressResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressAllResponse does not contain field %s", descriptor.FullName())) } } @@ -10505,19 +10505,19 @@ func (x *fastReflection_QueryAllAuthorizedAddressResponse) Get(descriptor protor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllAuthorizedAddressResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryAuthorizedAddressAllResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAuthorizedAddressResponse.authorizedAddress": + case "fairyring.keyshare.QueryAuthorizedAddressAllResponse.authorized_address": lv := value.List() - clv := lv.(*_QueryAllAuthorizedAddressResponse_1_list) + clv := lv.(*_QueryAuthorizedAddressAllResponse_1_list) x.AuthorizedAddress = *clv.list - case "fairyring.keyshare.QueryAllAuthorizedAddressResponse.pagination": + case "fairyring.keyshare.QueryAuthorizedAddressAllResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAuthorizedAddressResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAuthorizedAddressResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressAllResponse does not contain field %s", fd.FullName())) } } @@ -10531,53 +10531,53 @@ func (x *fastReflection_QueryAllAuthorizedAddressResponse) Set(fd protoreflect.F // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllAuthorizedAddressResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAuthorizedAddressAllResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAuthorizedAddressResponse.authorizedAddress": + case "fairyring.keyshare.QueryAuthorizedAddressAllResponse.authorized_address": if x.AuthorizedAddress == nil { x.AuthorizedAddress = []*AuthorizedAddress{} } - value := &_QueryAllAuthorizedAddressResponse_1_list{list: &x.AuthorizedAddress} + value := &_QueryAuthorizedAddressAllResponse_1_list{list: &x.AuthorizedAddress} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.QueryAllAuthorizedAddressResponse.pagination": + case "fairyring.keyshare.QueryAuthorizedAddressAllResponse.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageResponse) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAuthorizedAddressResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAuthorizedAddressResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressAllResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAllAuthorizedAddressResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryAuthorizedAddressAllResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllAuthorizedAddressResponse.authorizedAddress": + case "fairyring.keyshare.QueryAuthorizedAddressAllResponse.authorized_address": list := []*AuthorizedAddress{} - return protoreflect.ValueOfList(&_QueryAllAuthorizedAddressResponse_1_list{list: &list}) - case "fairyring.keyshare.QueryAllAuthorizedAddressResponse.pagination": + return protoreflect.ValueOfList(&_QueryAuthorizedAddressAllResponse_1_list{list: &list}) + case "fairyring.keyshare.QueryAuthorizedAddressAllResponse.pagination": m := new(v1beta1.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllAuthorizedAddressResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAuthorizedAddressAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllAuthorizedAddressResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryAuthorizedAddressAllResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAllAuthorizedAddressResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryAuthorizedAddressAllResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAllAuthorizedAddressResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAuthorizedAddressAllResponse", d.FullName())) } panic("unreachable") } @@ -10585,7 +10585,7 @@ func (x *fastReflection_QueryAllAuthorizedAddressResponse) WhichOneof(d protoref // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAllAuthorizedAddressResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryAuthorizedAddressAllResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -10596,7 +10596,7 @@ func (x *fastReflection_QueryAllAuthorizedAddressResponse) GetUnknown() protoref // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllAuthorizedAddressResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryAuthorizedAddressAllResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -10608,7 +10608,7 @@ func (x *fastReflection_QueryAllAuthorizedAddressResponse) SetUnknown(fields pro // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAllAuthorizedAddressResponse) IsValid() bool { +func (x *fastReflection_QueryAuthorizedAddressAllResponse) IsValid() bool { return x != nil } @@ -10618,9 +10618,9 @@ func (x *fastReflection_QueryAllAuthorizedAddressResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAllAuthorizedAddressResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryAuthorizedAddressAllResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllAuthorizedAddressResponse) + x := input.Message.Interface().(*QueryAuthorizedAddressAllResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10652,7 +10652,7 @@ func (x *fastReflection_QueryAllAuthorizedAddressResponse) ProtoMethods() *proto } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllAuthorizedAddressResponse) + x := input.Message.Interface().(*QueryAuthorizedAddressAllResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10712,7 +10712,7 @@ func (x *fastReflection_QueryAllAuthorizedAddressResponse) ProtoMethods() *proto }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAllAuthorizedAddressResponse) + x := input.Message.Interface().(*QueryAuthorizedAddressAllResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10744,10 +10744,10 @@ func (x *fastReflection_QueryAllAuthorizedAddressResponse) ProtoMethods() *proto fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllAuthorizedAddressResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAuthorizedAddressAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllAuthorizedAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAuthorizedAddressAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -10856,29 +10856,29 @@ func (x *fastReflection_QueryAllAuthorizedAddressResponse) ProtoMethods() *proto } var ( - md_QueryGetGeneralKeyShareRequest protoreflect.MessageDescriptor - fd_QueryGetGeneralKeyShareRequest_validator protoreflect.FieldDescriptor - fd_QueryGetGeneralKeyShareRequest_idType protoreflect.FieldDescriptor - fd_QueryGetGeneralKeyShareRequest_idValue protoreflect.FieldDescriptor + md_QueryGeneralKeyShareRequest protoreflect.MessageDescriptor + fd_QueryGeneralKeyShareRequest_validator protoreflect.FieldDescriptor + fd_QueryGeneralKeyShareRequest_id_type protoreflect.FieldDescriptor + fd_QueryGeneralKeyShareRequest_id_value protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryGetGeneralKeyShareRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGetGeneralKeyShareRequest") - fd_QueryGetGeneralKeyShareRequest_validator = md_QueryGetGeneralKeyShareRequest.Fields().ByName("validator") - fd_QueryGetGeneralKeyShareRequest_idType = md_QueryGetGeneralKeyShareRequest.Fields().ByName("idType") - fd_QueryGetGeneralKeyShareRequest_idValue = md_QueryGetGeneralKeyShareRequest.Fields().ByName("idValue") + md_QueryGeneralKeyShareRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGeneralKeyShareRequest") + fd_QueryGeneralKeyShareRequest_validator = md_QueryGeneralKeyShareRequest.Fields().ByName("validator") + fd_QueryGeneralKeyShareRequest_id_type = md_QueryGeneralKeyShareRequest.Fields().ByName("id_type") + fd_QueryGeneralKeyShareRequest_id_value = md_QueryGeneralKeyShareRequest.Fields().ByName("id_value") } -var _ protoreflect.Message = (*fastReflection_QueryGetGeneralKeyShareRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGeneralKeyShareRequest)(nil) -type fastReflection_QueryGetGeneralKeyShareRequest QueryGetGeneralKeyShareRequest +type fastReflection_QueryGeneralKeyShareRequest QueryGeneralKeyShareRequest -func (x *QueryGetGeneralKeyShareRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetGeneralKeyShareRequest)(x) +func (x *QueryGeneralKeyShareRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGeneralKeyShareRequest)(x) } -func (x *QueryGetGeneralKeyShareRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryGeneralKeyShareRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -10890,43 +10890,43 @@ func (x *QueryGetGeneralKeyShareRequest) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_QueryGetGeneralKeyShareRequest_messageType fastReflection_QueryGetGeneralKeyShareRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetGeneralKeyShareRequest_messageType{} +var _fastReflection_QueryGeneralKeyShareRequest_messageType fastReflection_QueryGeneralKeyShareRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGeneralKeyShareRequest_messageType{} -type fastReflection_QueryGetGeneralKeyShareRequest_messageType struct{} +type fastReflection_QueryGeneralKeyShareRequest_messageType struct{} -func (x fastReflection_QueryGetGeneralKeyShareRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetGeneralKeyShareRequest)(nil) +func (x fastReflection_QueryGeneralKeyShareRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGeneralKeyShareRequest)(nil) } -func (x fastReflection_QueryGetGeneralKeyShareRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetGeneralKeyShareRequest) +func (x fastReflection_QueryGeneralKeyShareRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGeneralKeyShareRequest) } -func (x fastReflection_QueryGetGeneralKeyShareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetGeneralKeyShareRequest +func (x fastReflection_QueryGeneralKeyShareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralKeyShareRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetGeneralKeyShareRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetGeneralKeyShareRequest +func (x *fastReflection_QueryGeneralKeyShareRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralKeyShareRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetGeneralKeyShareRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetGeneralKeyShareRequest_messageType +func (x *fastReflection_QueryGeneralKeyShareRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGeneralKeyShareRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetGeneralKeyShareRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetGeneralKeyShareRequest) +func (x *fastReflection_QueryGeneralKeyShareRequest) New() protoreflect.Message { + return new(fastReflection_QueryGeneralKeyShareRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetGeneralKeyShareRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetGeneralKeyShareRequest)(x) +func (x *fastReflection_QueryGeneralKeyShareRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGeneralKeyShareRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -10934,22 +10934,22 @@ func (x *fastReflection_QueryGetGeneralKeyShareRequest) Interface() protoreflect // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetGeneralKeyShareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryGeneralKeyShareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Validator != "" { value := protoreflect.ValueOfString(x.Validator) - if !f(fd_QueryGetGeneralKeyShareRequest_validator, value) { + if !f(fd_QueryGeneralKeyShareRequest_validator, value) { return } } if x.IdType != "" { value := protoreflect.ValueOfString(x.IdType) - if !f(fd_QueryGetGeneralKeyShareRequest_idType, value) { + if !f(fd_QueryGeneralKeyShareRequest_id_type, value) { return } } if x.IdValue != "" { value := protoreflect.ValueOfString(x.IdValue) - if !f(fd_QueryGetGeneralKeyShareRequest_idValue, value) { + if !f(fd_QueryGeneralKeyShareRequest_id_value, value) { return } } @@ -10966,19 +10966,19 @@ func (x *fastReflection_QueryGetGeneralKeyShareRequest) Range(f func(protoreflec // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetGeneralKeyShareRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGeneralKeyShareRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryGetGeneralKeyShareRequest.validator": + case "fairyring.keyshare.QueryGeneralKeyShareRequest.validator": return x.Validator != "" - case "fairyring.keyshare.QueryGetGeneralKeyShareRequest.idType": + case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_type": return x.IdType != "" - case "fairyring.keyshare.QueryGetGeneralKeyShareRequest.idValue": + case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_value": return x.IdValue != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetGeneralKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetGeneralKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareRequest does not contain field %s", fd.FullName())) } } @@ -10988,19 +10988,19 @@ func (x *fastReflection_QueryGetGeneralKeyShareRequest) Has(fd protoreflect.Fiel // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetGeneralKeyShareRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGeneralKeyShareRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetGeneralKeyShareRequest.validator": + case "fairyring.keyshare.QueryGeneralKeyShareRequest.validator": x.Validator = "" - case "fairyring.keyshare.QueryGetGeneralKeyShareRequest.idType": + case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_type": x.IdType = "" - case "fairyring.keyshare.QueryGetGeneralKeyShareRequest.idValue": + case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_value": x.IdValue = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetGeneralKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetGeneralKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareRequest does not contain field %s", fd.FullName())) } } @@ -11010,22 +11010,22 @@ func (x *fastReflection_QueryGetGeneralKeyShareRequest) Clear(fd protoreflect.Fi // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetGeneralKeyShareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyShareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryGetGeneralKeyShareRequest.validator": + case "fairyring.keyshare.QueryGeneralKeyShareRequest.validator": value := x.Validator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.QueryGetGeneralKeyShareRequest.idType": + case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_type": value := x.IdType return protoreflect.ValueOfString(value) - case "fairyring.keyshare.QueryGetGeneralKeyShareRequest.idValue": + case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_value": value := x.IdValue return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetGeneralKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetGeneralKeyShareRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareRequest does not contain field %s", descriptor.FullName())) } } @@ -11039,19 +11039,19 @@ func (x *fastReflection_QueryGetGeneralKeyShareRequest) Get(descriptor protorefl // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetGeneralKeyShareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGeneralKeyShareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetGeneralKeyShareRequest.validator": + case "fairyring.keyshare.QueryGeneralKeyShareRequest.validator": x.Validator = value.Interface().(string) - case "fairyring.keyshare.QueryGetGeneralKeyShareRequest.idType": + case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_type": x.IdType = value.Interface().(string) - case "fairyring.keyshare.QueryGetGeneralKeyShareRequest.idValue": + case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_value": x.IdValue = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetGeneralKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetGeneralKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareRequest does not contain field %s", fd.FullName())) } } @@ -11065,48 +11065,48 @@ func (x *fastReflection_QueryGetGeneralKeyShareRequest) Set(fd protoreflect.Fiel // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetGeneralKeyShareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyShareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetGeneralKeyShareRequest.validator": - panic(fmt.Errorf("field validator of message fairyring.keyshare.QueryGetGeneralKeyShareRequest is not mutable")) - case "fairyring.keyshare.QueryGetGeneralKeyShareRequest.idType": - panic(fmt.Errorf("field idType of message fairyring.keyshare.QueryGetGeneralKeyShareRequest is not mutable")) - case "fairyring.keyshare.QueryGetGeneralKeyShareRequest.idValue": - panic(fmt.Errorf("field idValue of message fairyring.keyshare.QueryGetGeneralKeyShareRequest is not mutable")) + case "fairyring.keyshare.QueryGeneralKeyShareRequest.validator": + panic(fmt.Errorf("field validator of message fairyring.keyshare.QueryGeneralKeyShareRequest is not mutable")) + case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_type": + panic(fmt.Errorf("field id_type of message fairyring.keyshare.QueryGeneralKeyShareRequest is not mutable")) + case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_value": + panic(fmt.Errorf("field id_value of message fairyring.keyshare.QueryGeneralKeyShareRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetGeneralKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetGeneralKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetGeneralKeyShareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyShareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetGeneralKeyShareRequest.validator": + case "fairyring.keyshare.QueryGeneralKeyShareRequest.validator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.QueryGetGeneralKeyShareRequest.idType": + case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_type": return protoreflect.ValueOfString("") - case "fairyring.keyshare.QueryGetGeneralKeyShareRequest.idValue": + case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_value": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetGeneralKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetGeneralKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetGeneralKeyShareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGeneralKeyShareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGetGeneralKeyShareRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGeneralKeyShareRequest", d.FullName())) } panic("unreachable") } @@ -11114,7 +11114,7 @@ func (x *fastReflection_QueryGetGeneralKeyShareRequest) WhichOneof(d protoreflec // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetGeneralKeyShareRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGeneralKeyShareRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -11125,7 +11125,7 @@ func (x *fastReflection_QueryGetGeneralKeyShareRequest) GetUnknown() protoreflec // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetGeneralKeyShareRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGeneralKeyShareRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -11137,7 +11137,7 @@ func (x *fastReflection_QueryGetGeneralKeyShareRequest) SetUnknown(fields protor // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetGeneralKeyShareRequest) IsValid() bool { +func (x *fastReflection_QueryGeneralKeyShareRequest) IsValid() bool { return x != nil } @@ -11147,9 +11147,9 @@ func (x *fastReflection_QueryGetGeneralKeyShareRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetGeneralKeyShareRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGeneralKeyShareRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetGeneralKeyShareRequest) + x := input.Message.Interface().(*QueryGeneralKeyShareRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11183,7 +11183,7 @@ func (x *fastReflection_QueryGetGeneralKeyShareRequest) ProtoMethods() *protoifa } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetGeneralKeyShareRequest) + x := input.Message.Interface().(*QueryGeneralKeyShareRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11234,7 +11234,7 @@ func (x *fastReflection_QueryGetGeneralKeyShareRequest) ProtoMethods() *protoifa }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetGeneralKeyShareRequest) + x := input.Message.Interface().(*QueryGeneralKeyShareRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11266,10 +11266,10 @@ func (x *fastReflection_QueryGetGeneralKeyShareRequest) ProtoMethods() *protoifa fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetGeneralKeyShareRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyShareRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetGeneralKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -11404,25 +11404,25 @@ func (x *fastReflection_QueryGetGeneralKeyShareRequest) ProtoMethods() *protoifa } var ( - md_QueryGetGeneralKeyShareResponse protoreflect.MessageDescriptor - fd_QueryGetGeneralKeyShareResponse_generalKeyShare protoreflect.FieldDescriptor + md_QueryGeneralKeyShareResponse protoreflect.MessageDescriptor + fd_QueryGeneralKeyShareResponse_general_key_share protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryGetGeneralKeyShareResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGetGeneralKeyShareResponse") - fd_QueryGetGeneralKeyShareResponse_generalKeyShare = md_QueryGetGeneralKeyShareResponse.Fields().ByName("generalKeyShare") + md_QueryGeneralKeyShareResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGeneralKeyShareResponse") + fd_QueryGeneralKeyShareResponse_general_key_share = md_QueryGeneralKeyShareResponse.Fields().ByName("general_key_share") } -var _ protoreflect.Message = (*fastReflection_QueryGetGeneralKeyShareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGeneralKeyShareResponse)(nil) -type fastReflection_QueryGetGeneralKeyShareResponse QueryGetGeneralKeyShareResponse +type fastReflection_QueryGeneralKeyShareResponse QueryGeneralKeyShareResponse -func (x *QueryGetGeneralKeyShareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetGeneralKeyShareResponse)(x) +func (x *QueryGeneralKeyShareResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGeneralKeyShareResponse)(x) } -func (x *QueryGetGeneralKeyShareResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryGeneralKeyShareResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11434,43 +11434,43 @@ func (x *QueryGetGeneralKeyShareResponse) slowProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -var _fastReflection_QueryGetGeneralKeyShareResponse_messageType fastReflection_QueryGetGeneralKeyShareResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetGeneralKeyShareResponse_messageType{} +var _fastReflection_QueryGeneralKeyShareResponse_messageType fastReflection_QueryGeneralKeyShareResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGeneralKeyShareResponse_messageType{} -type fastReflection_QueryGetGeneralKeyShareResponse_messageType struct{} +type fastReflection_QueryGeneralKeyShareResponse_messageType struct{} -func (x fastReflection_QueryGetGeneralKeyShareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetGeneralKeyShareResponse)(nil) +func (x fastReflection_QueryGeneralKeyShareResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGeneralKeyShareResponse)(nil) } -func (x fastReflection_QueryGetGeneralKeyShareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetGeneralKeyShareResponse) +func (x fastReflection_QueryGeneralKeyShareResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGeneralKeyShareResponse) } -func (x fastReflection_QueryGetGeneralKeyShareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetGeneralKeyShareResponse +func (x fastReflection_QueryGeneralKeyShareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralKeyShareResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetGeneralKeyShareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetGeneralKeyShareResponse +func (x *fastReflection_QueryGeneralKeyShareResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralKeyShareResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetGeneralKeyShareResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGetGeneralKeyShareResponse_messageType +func (x *fastReflection_QueryGeneralKeyShareResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGeneralKeyShareResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetGeneralKeyShareResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetGeneralKeyShareResponse) +func (x *fastReflection_QueryGeneralKeyShareResponse) New() protoreflect.Message { + return new(fastReflection_QueryGeneralKeyShareResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetGeneralKeyShareResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetGeneralKeyShareResponse)(x) +func (x *fastReflection_QueryGeneralKeyShareResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGeneralKeyShareResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -11478,10 +11478,10 @@ func (x *fastReflection_QueryGetGeneralKeyShareResponse) Interface() protoreflec // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetGeneralKeyShareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryGeneralKeyShareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.GeneralKeyShare != nil { value := protoreflect.ValueOfMessage(x.GeneralKeyShare.ProtoReflect()) - if !f(fd_QueryGetGeneralKeyShareResponse_generalKeyShare, value) { + if !f(fd_QueryGeneralKeyShareResponse_general_key_share, value) { return } } @@ -11498,15 +11498,15 @@ func (x *fastReflection_QueryGetGeneralKeyShareResponse) Range(f func(protorefle // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetGeneralKeyShareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGeneralKeyShareResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryGetGeneralKeyShareResponse.generalKeyShare": + case "fairyring.keyshare.QueryGeneralKeyShareResponse.general_key_share": return x.GeneralKeyShare != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareResponse does not contain field %s", fd.FullName())) } } @@ -11516,15 +11516,15 @@ func (x *fastReflection_QueryGetGeneralKeyShareResponse) Has(fd protoreflect.Fie // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetGeneralKeyShareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGeneralKeyShareResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetGeneralKeyShareResponse.generalKeyShare": + case "fairyring.keyshare.QueryGeneralKeyShareResponse.general_key_share": x.GeneralKeyShare = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareResponse does not contain field %s", fd.FullName())) } } @@ -11534,16 +11534,16 @@ func (x *fastReflection_QueryGetGeneralKeyShareResponse) Clear(fd protoreflect.F // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetGeneralKeyShareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyShareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryGetGeneralKeyShareResponse.generalKeyShare": + case "fairyring.keyshare.QueryGeneralKeyShareResponse.general_key_share": value := x.GeneralKeyShare return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetGeneralKeyShareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareResponse does not contain field %s", descriptor.FullName())) } } @@ -11557,15 +11557,15 @@ func (x *fastReflection_QueryGetGeneralKeyShareResponse) Get(descriptor protoref // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetGeneralKeyShareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGeneralKeyShareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryGetGeneralKeyShareResponse.generalKeyShare": + case "fairyring.keyshare.QueryGeneralKeyShareResponse.general_key_share": x.GeneralKeyShare = value.Message().Interface().(*GeneralKeyShare) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareResponse does not contain field %s", fd.FullName())) } } @@ -11579,44 +11579,44 @@ func (x *fastReflection_QueryGetGeneralKeyShareResponse) Set(fd protoreflect.Fie // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetGeneralKeyShareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyShareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetGeneralKeyShareResponse.generalKeyShare": + case "fairyring.keyshare.QueryGeneralKeyShareResponse.general_key_share": if x.GeneralKeyShare == nil { x.GeneralKeyShare = new(GeneralKeyShare) } return protoreflect.ValueOfMessage(x.GeneralKeyShare.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetGeneralKeyShareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyShareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGetGeneralKeyShareResponse.generalKeyShare": + case "fairyring.keyshare.QueryGeneralKeyShareResponse.general_key_share": m := new(GeneralKeyShare) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGetGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGetGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetGeneralKeyShareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGeneralKeyShareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGetGeneralKeyShareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGeneralKeyShareResponse", d.FullName())) } panic("unreachable") } @@ -11624,7 +11624,7 @@ func (x *fastReflection_QueryGetGeneralKeyShareResponse) WhichOneof(d protorefle // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetGeneralKeyShareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGeneralKeyShareResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -11635,7 +11635,7 @@ func (x *fastReflection_QueryGetGeneralKeyShareResponse) GetUnknown() protorefle // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetGeneralKeyShareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGeneralKeyShareResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -11647,7 +11647,7 @@ func (x *fastReflection_QueryGetGeneralKeyShareResponse) SetUnknown(fields proto // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetGeneralKeyShareResponse) IsValid() bool { +func (x *fastReflection_QueryGeneralKeyShareResponse) IsValid() bool { return x != nil } @@ -11657,9 +11657,9 @@ func (x *fastReflection_QueryGetGeneralKeyShareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetGeneralKeyShareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGeneralKeyShareResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetGeneralKeyShareResponse) + x := input.Message.Interface().(*QueryGeneralKeyShareResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11685,7 +11685,7 @@ func (x *fastReflection_QueryGetGeneralKeyShareResponse) ProtoMethods() *protoif } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetGeneralKeyShareResponse) + x := input.Message.Interface().(*QueryGeneralKeyShareResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11729,7 +11729,7 @@ func (x *fastReflection_QueryGetGeneralKeyShareResponse) ProtoMethods() *protoif }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetGeneralKeyShareResponse) + x := input.Message.Interface().(*QueryGeneralKeyShareResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11761,10 +11761,10 @@ func (x *fastReflection_QueryGetGeneralKeyShareResponse) ProtoMethods() *protoif fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetGeneralKeyShareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyShareResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetGeneralKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -11839,25 +11839,25 @@ func (x *fastReflection_QueryGetGeneralKeyShareResponse) ProtoMethods() *protoif } var ( - md_QueryAllGeneralKeyShareRequest protoreflect.MessageDescriptor - fd_QueryAllGeneralKeyShareRequest_pagination protoreflect.FieldDescriptor + md_QueryGeneralKeyShareAllRequest protoreflect.MessageDescriptor + fd_QueryGeneralKeyShareAllRequest_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryAllGeneralKeyShareRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAllGeneralKeyShareRequest") - fd_QueryAllGeneralKeyShareRequest_pagination = md_QueryAllGeneralKeyShareRequest.Fields().ByName("pagination") + md_QueryGeneralKeyShareAllRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGeneralKeyShareAllRequest") + fd_QueryGeneralKeyShareAllRequest_pagination = md_QueryGeneralKeyShareAllRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAllGeneralKeyShareRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGeneralKeyShareAllRequest)(nil) -type fastReflection_QueryAllGeneralKeyShareRequest QueryAllGeneralKeyShareRequest +type fastReflection_QueryGeneralKeyShareAllRequest QueryGeneralKeyShareAllRequest -func (x *QueryAllGeneralKeyShareRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllGeneralKeyShareRequest)(x) +func (x *QueryGeneralKeyShareAllRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGeneralKeyShareAllRequest)(x) } -func (x *QueryAllGeneralKeyShareRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryGeneralKeyShareAllRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11869,43 +11869,43 @@ func (x *QueryAllGeneralKeyShareRequest) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_QueryAllGeneralKeyShareRequest_messageType fastReflection_QueryAllGeneralKeyShareRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllGeneralKeyShareRequest_messageType{} +var _fastReflection_QueryGeneralKeyShareAllRequest_messageType fastReflection_QueryGeneralKeyShareAllRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGeneralKeyShareAllRequest_messageType{} -type fastReflection_QueryAllGeneralKeyShareRequest_messageType struct{} +type fastReflection_QueryGeneralKeyShareAllRequest_messageType struct{} -func (x fastReflection_QueryAllGeneralKeyShareRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllGeneralKeyShareRequest)(nil) +func (x fastReflection_QueryGeneralKeyShareAllRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGeneralKeyShareAllRequest)(nil) } -func (x fastReflection_QueryAllGeneralKeyShareRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllGeneralKeyShareRequest) +func (x fastReflection_QueryGeneralKeyShareAllRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGeneralKeyShareAllRequest) } -func (x fastReflection_QueryAllGeneralKeyShareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllGeneralKeyShareRequest +func (x fastReflection_QueryGeneralKeyShareAllRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralKeyShareAllRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAllGeneralKeyShareRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllGeneralKeyShareRequest +func (x *fastReflection_QueryGeneralKeyShareAllRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralKeyShareAllRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAllGeneralKeyShareRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryAllGeneralKeyShareRequest_messageType +func (x *fastReflection_QueryGeneralKeyShareAllRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGeneralKeyShareAllRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllGeneralKeyShareRequest) New() protoreflect.Message { - return new(fastReflection_QueryAllGeneralKeyShareRequest) +func (x *fastReflection_QueryGeneralKeyShareAllRequest) New() protoreflect.Message { + return new(fastReflection_QueryGeneralKeyShareAllRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllGeneralKeyShareRequest) Interface() protoreflect.ProtoMessage { - return (*QueryAllGeneralKeyShareRequest)(x) +func (x *fastReflection_QueryGeneralKeyShareAllRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGeneralKeyShareAllRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -11913,10 +11913,10 @@ func (x *fastReflection_QueryAllGeneralKeyShareRequest) Interface() protoreflect // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAllGeneralKeyShareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryGeneralKeyShareAllRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAllGeneralKeyShareRequest_pagination, value) { + if !f(fd_QueryGeneralKeyShareAllRequest_pagination, value) { return } } @@ -11933,15 +11933,15 @@ func (x *fastReflection_QueryAllGeneralKeyShareRequest) Range(f func(protoreflec // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAllGeneralKeyShareRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGeneralKeyShareAllRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryAllGeneralKeyShareRequest.pagination": + case "fairyring.keyshare.QueryGeneralKeyShareAllRequest.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllGeneralKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllGeneralKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllRequest does not contain field %s", fd.FullName())) } } @@ -11951,15 +11951,15 @@ func (x *fastReflection_QueryAllGeneralKeyShareRequest) Has(fd protoreflect.Fiel // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllGeneralKeyShareRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGeneralKeyShareAllRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllGeneralKeyShareRequest.pagination": + case "fairyring.keyshare.QueryGeneralKeyShareAllRequest.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllGeneralKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllGeneralKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllRequest does not contain field %s", fd.FullName())) } } @@ -11969,16 +11969,16 @@ func (x *fastReflection_QueryAllGeneralKeyShareRequest) Clear(fd protoreflect.Fi // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAllGeneralKeyShareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyShareAllRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryAllGeneralKeyShareRequest.pagination": + case "fairyring.keyshare.QueryGeneralKeyShareAllRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllGeneralKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllGeneralKeyShareRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllRequest does not contain field %s", descriptor.FullName())) } } @@ -11992,15 +11992,15 @@ func (x *fastReflection_QueryAllGeneralKeyShareRequest) Get(descriptor protorefl // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllGeneralKeyShareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGeneralKeyShareAllRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllGeneralKeyShareRequest.pagination": + case "fairyring.keyshare.QueryGeneralKeyShareAllRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllGeneralKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllGeneralKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllRequest does not contain field %s", fd.FullName())) } } @@ -12014,44 +12014,44 @@ func (x *fastReflection_QueryAllGeneralKeyShareRequest) Set(fd protoreflect.Fiel // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllGeneralKeyShareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyShareAllRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllGeneralKeyShareRequest.pagination": + case "fairyring.keyshare.QueryGeneralKeyShareAllRequest.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllGeneralKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllGeneralKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAllGeneralKeyShareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyShareAllRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllGeneralKeyShareRequest.pagination": + case "fairyring.keyshare.QueryGeneralKeyShareAllRequest.pagination": m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllGeneralKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllGeneralKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAllGeneralKeyShareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGeneralKeyShareAllRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAllGeneralKeyShareRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGeneralKeyShareAllRequest", d.FullName())) } panic("unreachable") } @@ -12059,7 +12059,7 @@ func (x *fastReflection_QueryAllGeneralKeyShareRequest) WhichOneof(d protoreflec // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAllGeneralKeyShareRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGeneralKeyShareAllRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -12070,7 +12070,7 @@ func (x *fastReflection_QueryAllGeneralKeyShareRequest) GetUnknown() protoreflec // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllGeneralKeyShareRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGeneralKeyShareAllRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -12082,7 +12082,7 @@ func (x *fastReflection_QueryAllGeneralKeyShareRequest) SetUnknown(fields protor // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAllGeneralKeyShareRequest) IsValid() bool { +func (x *fastReflection_QueryGeneralKeyShareAllRequest) IsValid() bool { return x != nil } @@ -12092,9 +12092,9 @@ func (x *fastReflection_QueryAllGeneralKeyShareRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAllGeneralKeyShareRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGeneralKeyShareAllRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllGeneralKeyShareRequest) + x := input.Message.Interface().(*QueryGeneralKeyShareAllRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12120,7 +12120,7 @@ func (x *fastReflection_QueryAllGeneralKeyShareRequest) ProtoMethods() *protoifa } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllGeneralKeyShareRequest) + x := input.Message.Interface().(*QueryGeneralKeyShareAllRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12164,7 +12164,7 @@ func (x *fastReflection_QueryAllGeneralKeyShareRequest) ProtoMethods() *protoifa }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAllGeneralKeyShareRequest) + x := input.Message.Interface().(*QueryGeneralKeyShareAllRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12196,10 +12196,10 @@ func (x *fastReflection_QueryAllGeneralKeyShareRequest) ProtoMethods() *protoifa fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllGeneralKeyShareRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyShareAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllGeneralKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyShareAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -12273,79 +12273,79 @@ func (x *fastReflection_QueryAllGeneralKeyShareRequest) ProtoMethods() *protoifa } } -var _ protoreflect.List = (*_QueryAllGeneralKeyShareResponse_1_list)(nil) +var _ protoreflect.List = (*_QueryGeneralKeyShareAllResponse_1_list)(nil) -type _QueryAllGeneralKeyShareResponse_1_list struct { +type _QueryGeneralKeyShareAllResponse_1_list struct { list *[]*GeneralKeyShare } -func (x *_QueryAllGeneralKeyShareResponse_1_list) Len() int { +func (x *_QueryGeneralKeyShareAllResponse_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryAllGeneralKeyShareResponse_1_list) Get(i int) protoreflect.Value { +func (x *_QueryGeneralKeyShareAllResponse_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryAllGeneralKeyShareResponse_1_list) Set(i int, value protoreflect.Value) { +func (x *_QueryGeneralKeyShareAllResponse_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*GeneralKeyShare) (*x.list)[i] = concreteValue } -func (x *_QueryAllGeneralKeyShareResponse_1_list) Append(value protoreflect.Value) { +func (x *_QueryGeneralKeyShareAllResponse_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*GeneralKeyShare) *x.list = append(*x.list, concreteValue) } -func (x *_QueryAllGeneralKeyShareResponse_1_list) AppendMutable() protoreflect.Value { +func (x *_QueryGeneralKeyShareAllResponse_1_list) AppendMutable() protoreflect.Value { v := new(GeneralKeyShare) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAllGeneralKeyShareResponse_1_list) Truncate(n int) { +func (x *_QueryGeneralKeyShareAllResponse_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryAllGeneralKeyShareResponse_1_list) NewElement() protoreflect.Value { +func (x *_QueryGeneralKeyShareAllResponse_1_list) NewElement() protoreflect.Value { v := new(GeneralKeyShare) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAllGeneralKeyShareResponse_1_list) IsValid() bool { +func (x *_QueryGeneralKeyShareAllResponse_1_list) IsValid() bool { return x.list != nil } var ( - md_QueryAllGeneralKeyShareResponse protoreflect.MessageDescriptor - fd_QueryAllGeneralKeyShareResponse_generalKeyShare protoreflect.FieldDescriptor - fd_QueryAllGeneralKeyShareResponse_pagination protoreflect.FieldDescriptor + md_QueryGeneralKeyShareAllResponse protoreflect.MessageDescriptor + fd_QueryGeneralKeyShareAllResponse_general_key_share protoreflect.FieldDescriptor + fd_QueryGeneralKeyShareAllResponse_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryAllGeneralKeyShareResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAllGeneralKeyShareResponse") - fd_QueryAllGeneralKeyShareResponse_generalKeyShare = md_QueryAllGeneralKeyShareResponse.Fields().ByName("generalKeyShare") - fd_QueryAllGeneralKeyShareResponse_pagination = md_QueryAllGeneralKeyShareResponse.Fields().ByName("pagination") + md_QueryGeneralKeyShareAllResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGeneralKeyShareAllResponse") + fd_QueryGeneralKeyShareAllResponse_general_key_share = md_QueryGeneralKeyShareAllResponse.Fields().ByName("general_key_share") + fd_QueryGeneralKeyShareAllResponse_pagination = md_QueryGeneralKeyShareAllResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAllGeneralKeyShareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGeneralKeyShareAllResponse)(nil) -type fastReflection_QueryAllGeneralKeyShareResponse QueryAllGeneralKeyShareResponse +type fastReflection_QueryGeneralKeyShareAllResponse QueryGeneralKeyShareAllResponse -func (x *QueryAllGeneralKeyShareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllGeneralKeyShareResponse)(x) +func (x *QueryGeneralKeyShareAllResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGeneralKeyShareAllResponse)(x) } -func (x *QueryAllGeneralKeyShareResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryGeneralKeyShareAllResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -12357,43 +12357,43 @@ func (x *QueryAllGeneralKeyShareResponse) slowProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -var _fastReflection_QueryAllGeneralKeyShareResponse_messageType fastReflection_QueryAllGeneralKeyShareResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllGeneralKeyShareResponse_messageType{} +var _fastReflection_QueryGeneralKeyShareAllResponse_messageType fastReflection_QueryGeneralKeyShareAllResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGeneralKeyShareAllResponse_messageType{} -type fastReflection_QueryAllGeneralKeyShareResponse_messageType struct{} +type fastReflection_QueryGeneralKeyShareAllResponse_messageType struct{} -func (x fastReflection_QueryAllGeneralKeyShareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllGeneralKeyShareResponse)(nil) +func (x fastReflection_QueryGeneralKeyShareAllResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGeneralKeyShareAllResponse)(nil) } -func (x fastReflection_QueryAllGeneralKeyShareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllGeneralKeyShareResponse) +func (x fastReflection_QueryGeneralKeyShareAllResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGeneralKeyShareAllResponse) } -func (x fastReflection_QueryAllGeneralKeyShareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllGeneralKeyShareResponse +func (x fastReflection_QueryGeneralKeyShareAllResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralKeyShareAllResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAllGeneralKeyShareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllGeneralKeyShareResponse +func (x *fastReflection_QueryGeneralKeyShareAllResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralKeyShareAllResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAllGeneralKeyShareResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryAllGeneralKeyShareResponse_messageType +func (x *fastReflection_QueryGeneralKeyShareAllResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGeneralKeyShareAllResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllGeneralKeyShareResponse) New() protoreflect.Message { - return new(fastReflection_QueryAllGeneralKeyShareResponse) +func (x *fastReflection_QueryGeneralKeyShareAllResponse) New() protoreflect.Message { + return new(fastReflection_QueryGeneralKeyShareAllResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllGeneralKeyShareResponse) Interface() protoreflect.ProtoMessage { - return (*QueryAllGeneralKeyShareResponse)(x) +func (x *fastReflection_QueryGeneralKeyShareAllResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGeneralKeyShareAllResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -12401,16 +12401,16 @@ func (x *fastReflection_QueryAllGeneralKeyShareResponse) Interface() protoreflec // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAllGeneralKeyShareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryGeneralKeyShareAllResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.GeneralKeyShare) != 0 { - value := protoreflect.ValueOfList(&_QueryAllGeneralKeyShareResponse_1_list{list: &x.GeneralKeyShare}) - if !f(fd_QueryAllGeneralKeyShareResponse_generalKeyShare, value) { + value := protoreflect.ValueOfList(&_QueryGeneralKeyShareAllResponse_1_list{list: &x.GeneralKeyShare}) + if !f(fd_QueryGeneralKeyShareAllResponse_general_key_share, value) { return } } if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAllGeneralKeyShareResponse_pagination, value) { + if !f(fd_QueryGeneralKeyShareAllResponse_pagination, value) { return } } @@ -12427,17 +12427,17 @@ func (x *fastReflection_QueryAllGeneralKeyShareResponse) Range(f func(protorefle // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAllGeneralKeyShareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGeneralKeyShareAllResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryAllGeneralKeyShareResponse.generalKeyShare": + case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.general_key_share": return len(x.GeneralKeyShare) != 0 - case "fairyring.keyshare.QueryAllGeneralKeyShareResponse.pagination": + case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllResponse does not contain field %s", fd.FullName())) } } @@ -12447,17 +12447,17 @@ func (x *fastReflection_QueryAllGeneralKeyShareResponse) Has(fd protoreflect.Fie // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllGeneralKeyShareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGeneralKeyShareAllResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllGeneralKeyShareResponse.generalKeyShare": + case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.general_key_share": x.GeneralKeyShare = nil - case "fairyring.keyshare.QueryAllGeneralKeyShareResponse.pagination": + case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllResponse does not contain field %s", fd.FullName())) } } @@ -12467,22 +12467,22 @@ func (x *fastReflection_QueryAllGeneralKeyShareResponse) Clear(fd protoreflect.F // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAllGeneralKeyShareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyShareAllResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryAllGeneralKeyShareResponse.generalKeyShare": + case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.general_key_share": if len(x.GeneralKeyShare) == 0 { - return protoreflect.ValueOfList(&_QueryAllGeneralKeyShareResponse_1_list{}) + return protoreflect.ValueOfList(&_QueryGeneralKeyShareAllResponse_1_list{}) } - listValue := &_QueryAllGeneralKeyShareResponse_1_list{list: &x.GeneralKeyShare} + listValue := &_QueryGeneralKeyShareAllResponse_1_list{list: &x.GeneralKeyShare} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.QueryAllGeneralKeyShareResponse.pagination": + case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllGeneralKeyShareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllResponse does not contain field %s", descriptor.FullName())) } } @@ -12496,19 +12496,19 @@ func (x *fastReflection_QueryAllGeneralKeyShareResponse) Get(descriptor protoref // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllGeneralKeyShareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGeneralKeyShareAllResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryAllGeneralKeyShareResponse.generalKeyShare": + case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.general_key_share": lv := value.List() - clv := lv.(*_QueryAllGeneralKeyShareResponse_1_list) + clv := lv.(*_QueryGeneralKeyShareAllResponse_1_list) x.GeneralKeyShare = *clv.list - case "fairyring.keyshare.QueryAllGeneralKeyShareResponse.pagination": + case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllResponse does not contain field %s", fd.FullName())) } } @@ -12522,53 +12522,53 @@ func (x *fastReflection_QueryAllGeneralKeyShareResponse) Set(fd protoreflect.Fie // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllGeneralKeyShareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyShareAllResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllGeneralKeyShareResponse.generalKeyShare": + case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.general_key_share": if x.GeneralKeyShare == nil { x.GeneralKeyShare = []*GeneralKeyShare{} } - value := &_QueryAllGeneralKeyShareResponse_1_list{list: &x.GeneralKeyShare} + value := &_QueryGeneralKeyShareAllResponse_1_list{list: &x.GeneralKeyShare} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.QueryAllGeneralKeyShareResponse.pagination": + case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageResponse) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAllGeneralKeyShareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyShareAllResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAllGeneralKeyShareResponse.generalKeyShare": + case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.general_key_share": list := []*GeneralKeyShare{} - return protoreflect.ValueOfList(&_QueryAllGeneralKeyShareResponse_1_list{list: &list}) - case "fairyring.keyshare.QueryAllGeneralKeyShareResponse.pagination": + return protoreflect.ValueOfList(&_QueryGeneralKeyShareAllResponse_1_list{list: &list}) + case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.pagination": m := new(v1beta1.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAllGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAllGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAllGeneralKeyShareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGeneralKeyShareAllResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAllGeneralKeyShareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGeneralKeyShareAllResponse", d.FullName())) } panic("unreachable") } @@ -12576,7 +12576,7 @@ func (x *fastReflection_QueryAllGeneralKeyShareResponse) WhichOneof(d protorefle // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAllGeneralKeyShareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGeneralKeyShareAllResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -12587,7 +12587,7 @@ func (x *fastReflection_QueryAllGeneralKeyShareResponse) GetUnknown() protorefle // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllGeneralKeyShareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGeneralKeyShareAllResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -12599,7 +12599,7 @@ func (x *fastReflection_QueryAllGeneralKeyShareResponse) SetUnknown(fields proto // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAllGeneralKeyShareResponse) IsValid() bool { +func (x *fastReflection_QueryGeneralKeyShareAllResponse) IsValid() bool { return x != nil } @@ -12609,9 +12609,9 @@ func (x *fastReflection_QueryAllGeneralKeyShareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAllGeneralKeyShareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGeneralKeyShareAllResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllGeneralKeyShareResponse) + x := input.Message.Interface().(*QueryGeneralKeyShareAllResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12643,7 +12643,7 @@ func (x *fastReflection_QueryAllGeneralKeyShareResponse) ProtoMethods() *protoif } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllGeneralKeyShareResponse) + x := input.Message.Interface().(*QueryGeneralKeyShareAllResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12703,7 +12703,7 @@ func (x *fastReflection_QueryAllGeneralKeyShareResponse) ProtoMethods() *protoif }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAllGeneralKeyShareResponse) + x := input.Message.Interface().(*QueryGeneralKeyShareAllResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12735,10 +12735,10 @@ func (x *fastReflection_QueryAllGeneralKeyShareResponse) ProtoMethods() *protoif fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllGeneralKeyShareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyShareAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllGeneralKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyShareAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -12859,14 +12859,16 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type QueryVerifiableRandomnessQuery struct { +// QueryVerifiableRandomnessRequest is the request type for +// the Query/VerifiableRandomness method +type QueryVerifiableRandomnessRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *QueryVerifiableRandomnessQuery) Reset() { - *x = QueryVerifiableRandomnessQuery{} +func (x *QueryVerifiableRandomnessRequest) Reset() { + *x = QueryVerifiableRandomnessRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -12874,17 +12876,19 @@ func (x *QueryVerifiableRandomnessQuery) Reset() { } } -func (x *QueryVerifiableRandomnessQuery) String() string { +func (x *QueryVerifiableRandomnessRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryVerifiableRandomnessQuery) ProtoMessage() {} +func (*QueryVerifiableRandomnessRequest) ProtoMessage() {} -// Deprecated: Use QueryVerifiableRandomnessQuery.ProtoReflect.Descriptor instead. -func (*QueryVerifiableRandomnessQuery) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryVerifiableRandomnessRequest.ProtoReflect.Descriptor instead. +func (*QueryVerifiableRandomnessRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{0} } +// QueryVerifiableRandomnessResponse is the response type for +// the Query/VerifiableRandomness method type QueryVerifiableRandomnessResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -12992,6 +12996,7 @@ func (x *QueryParamsResponse) GetParams() *Params { return nil } +// QueryCommitmentsRequest is request type for the Query/Commitments RPC method. type QueryCommitmentsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -13018,13 +13023,14 @@ func (*QueryCommitmentsRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{4} } +// QueryCommitmentsResponse is response type for the Query/Commitments RPC method type QueryCommitmentsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ActiveCommitments *Commitments `protobuf:"bytes,1,opt,name=activeCommitments,proto3" json:"activeCommitments,omitempty"` - QueuedCommitments *Commitments `protobuf:"bytes,2,opt,name=queuedCommitments,proto3" json:"queuedCommitments,omitempty"` + ActiveCommitments *Commitments `protobuf:"bytes,1,opt,name=active_commitments,json=activeCommitments,proto3" json:"active_commitments,omitempty"` + QueuedCommitments *Commitments `protobuf:"bytes,2,opt,name=queued_commitments,json=queuedCommitments,proto3" json:"queued_commitments,omitempty"` } func (x *QueryCommitmentsResponse) Reset() { @@ -13061,7 +13067,8 @@ func (x *QueryCommitmentsResponse) GetQueuedCommitments() *Commitments { return nil } -type QueryGetValidatorSetRequest struct { +// QueryValidatorSetRequest is request type for the Query/ValidatorSet RPC method. +type QueryValidatorSetRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -13069,8 +13076,8 @@ type QueryGetValidatorSetRequest struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` } -func (x *QueryGetValidatorSetRequest) Reset() { - *x = QueryGetValidatorSetRequest{} +func (x *QueryValidatorSetRequest) Reset() { + *x = QueryValidatorSetRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13078,34 +13085,35 @@ func (x *QueryGetValidatorSetRequest) Reset() { } } -func (x *QueryGetValidatorSetRequest) String() string { +func (x *QueryValidatorSetRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetValidatorSetRequest) ProtoMessage() {} +func (*QueryValidatorSetRequest) ProtoMessage() {} -// Deprecated: Use QueryGetValidatorSetRequest.ProtoReflect.Descriptor instead. -func (*QueryGetValidatorSetRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryValidatorSetRequest.ProtoReflect.Descriptor instead. +func (*QueryValidatorSetRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{6} } -func (x *QueryGetValidatorSetRequest) GetIndex() string { +func (x *QueryValidatorSetRequest) GetIndex() string { if x != nil { return x.Index } return "" } -type QueryGetValidatorSetResponse struct { +// QueryValidatorSetResponse is response type for the Query/ValidatorSet RPC method. +type QueryValidatorSetResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ValidatorSet *ValidatorSet `protobuf:"bytes,1,opt,name=validatorSet,proto3" json:"validatorSet,omitempty"` + ValidatorSet *ValidatorSet `protobuf:"bytes,1,opt,name=validator_set,json=validatorSet,proto3" json:"validator_set,omitempty"` } -func (x *QueryGetValidatorSetResponse) Reset() { - *x = QueryGetValidatorSetResponse{} +func (x *QueryValidatorSetResponse) Reset() { + *x = QueryValidatorSetResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13113,25 +13121,26 @@ func (x *QueryGetValidatorSetResponse) Reset() { } } -func (x *QueryGetValidatorSetResponse) String() string { +func (x *QueryValidatorSetResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetValidatorSetResponse) ProtoMessage() {} +func (*QueryValidatorSetResponse) ProtoMessage() {} -// Deprecated: Use QueryGetValidatorSetResponse.ProtoReflect.Descriptor instead. -func (*QueryGetValidatorSetResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryValidatorSetResponse.ProtoReflect.Descriptor instead. +func (*QueryValidatorSetResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{7} } -func (x *QueryGetValidatorSetResponse) GetValidatorSet() *ValidatorSet { +func (x *QueryValidatorSetResponse) GetValidatorSet() *ValidatorSet { if x != nil { return x.ValidatorSet } return nil } -type QueryAllValidatorSetRequest struct { +// QueryValidatorSetAllRequest is request type for the Query/ValidatorSetAll RPC method. +type QueryValidatorSetAllRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -13139,8 +13148,8 @@ type QueryAllValidatorSetRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllValidatorSetRequest) Reset() { - *x = QueryAllValidatorSetRequest{} +func (x *QueryValidatorSetAllRequest) Reset() { + *x = QueryValidatorSetAllRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13148,35 +13157,36 @@ func (x *QueryAllValidatorSetRequest) Reset() { } } -func (x *QueryAllValidatorSetRequest) String() string { +func (x *QueryValidatorSetAllRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllValidatorSetRequest) ProtoMessage() {} +func (*QueryValidatorSetAllRequest) ProtoMessage() {} -// Deprecated: Use QueryAllValidatorSetRequest.ProtoReflect.Descriptor instead. -func (*QueryAllValidatorSetRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryValidatorSetAllRequest.ProtoReflect.Descriptor instead. +func (*QueryValidatorSetAllRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{8} } -func (x *QueryAllValidatorSetRequest) GetPagination() *v1beta1.PageRequest { +func (x *QueryValidatorSetAllRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination } return nil } -type QueryAllValidatorSetResponse struct { +// QueryValidatorSetAllResponse is response type for the Query/ValidatorSetAll RPC method. +type QueryValidatorSetAllResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ValidatorSet []*ValidatorSet `protobuf:"bytes,1,rep,name=validatorSet,proto3" json:"validatorSet,omitempty"` + ValidatorSet []*ValidatorSet `protobuf:"bytes,1,rep,name=validator_set,json=validatorSet,proto3" json:"validator_set,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllValidatorSetResponse) Reset() { - *x = QueryAllValidatorSetResponse{} +func (x *QueryValidatorSetAllResponse) Reset() { + *x = QueryValidatorSetAllResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13184,42 +13194,43 @@ func (x *QueryAllValidatorSetResponse) Reset() { } } -func (x *QueryAllValidatorSetResponse) String() string { +func (x *QueryValidatorSetAllResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllValidatorSetResponse) ProtoMessage() {} +func (*QueryValidatorSetAllResponse) ProtoMessage() {} -// Deprecated: Use QueryAllValidatorSetResponse.ProtoReflect.Descriptor instead. -func (*QueryAllValidatorSetResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryValidatorSetAllResponse.ProtoReflect.Descriptor instead. +func (*QueryValidatorSetAllResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{9} } -func (x *QueryAllValidatorSetResponse) GetValidatorSet() []*ValidatorSet { +func (x *QueryValidatorSetAllResponse) GetValidatorSet() []*ValidatorSet { if x != nil { return x.ValidatorSet } return nil } -func (x *QueryAllValidatorSetResponse) GetPagination() *v1beta1.PageResponse { +func (x *QueryValidatorSetAllResponse) GetPagination() *v1beta1.PageResponse { if x != nil { return x.Pagination } return nil } -type QueryGetKeyShareRequest struct { +// QueryKeyShareRequest is request type for the Query/KeyShare RPC method. +type QueryKeyShareRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` - BlockHeight uint64 `protobuf:"varint,2,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"` + BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } -func (x *QueryGetKeyShareRequest) Reset() { - *x = QueryGetKeyShareRequest{} +func (x *QueryKeyShareRequest) Reset() { + *x = QueryKeyShareRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13227,41 +13238,42 @@ func (x *QueryGetKeyShareRequest) Reset() { } } -func (x *QueryGetKeyShareRequest) String() string { +func (x *QueryKeyShareRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetKeyShareRequest) ProtoMessage() {} +func (*QueryKeyShareRequest) ProtoMessage() {} -// Deprecated: Use QueryGetKeyShareRequest.ProtoReflect.Descriptor instead. -func (*QueryGetKeyShareRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryKeyShareRequest.ProtoReflect.Descriptor instead. +func (*QueryKeyShareRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{10} } -func (x *QueryGetKeyShareRequest) GetValidator() string { +func (x *QueryKeyShareRequest) GetValidator() string { if x != nil { return x.Validator } return "" } -func (x *QueryGetKeyShareRequest) GetBlockHeight() uint64 { +func (x *QueryKeyShareRequest) GetBlockHeight() uint64 { if x != nil { return x.BlockHeight } return 0 } -type QueryGetKeyShareResponse struct { +// QueryKeyShareResponse is response type for the Query/KeyShare RPC method. +type QueryKeyShareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - KeyShare *KeyShare `protobuf:"bytes,1,opt,name=keyShare,proto3" json:"keyShare,omitempty"` + KeyShare *KeyShare `protobuf:"bytes,1,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` } -func (x *QueryGetKeyShareResponse) Reset() { - *x = QueryGetKeyShareResponse{} +func (x *QueryKeyShareResponse) Reset() { + *x = QueryKeyShareResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13269,25 +13281,26 @@ func (x *QueryGetKeyShareResponse) Reset() { } } -func (x *QueryGetKeyShareResponse) String() string { +func (x *QueryKeyShareResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetKeyShareResponse) ProtoMessage() {} +func (*QueryKeyShareResponse) ProtoMessage() {} -// Deprecated: Use QueryGetKeyShareResponse.ProtoReflect.Descriptor instead. -func (*QueryGetKeyShareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryKeyShareResponse.ProtoReflect.Descriptor instead. +func (*QueryKeyShareResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{11} } -func (x *QueryGetKeyShareResponse) GetKeyShare() *KeyShare { +func (x *QueryKeyShareResponse) GetKeyShare() *KeyShare { if x != nil { return x.KeyShare } return nil } -type QueryAllKeyShareRequest struct { +// QueryKeyShareAllRequest is request type for the Query/KeyShareAll RPC method. +type QueryKeyShareAllRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -13295,8 +13308,8 @@ type QueryAllKeyShareRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllKeyShareRequest) Reset() { - *x = QueryAllKeyShareRequest{} +func (x *QueryKeyShareAllRequest) Reset() { + *x = QueryKeyShareAllRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13304,35 +13317,36 @@ func (x *QueryAllKeyShareRequest) Reset() { } } -func (x *QueryAllKeyShareRequest) String() string { +func (x *QueryKeyShareAllRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllKeyShareRequest) ProtoMessage() {} +func (*QueryKeyShareAllRequest) ProtoMessage() {} -// Deprecated: Use QueryAllKeyShareRequest.ProtoReflect.Descriptor instead. -func (*QueryAllKeyShareRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryKeyShareAllRequest.ProtoReflect.Descriptor instead. +func (*QueryKeyShareAllRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{12} } -func (x *QueryAllKeyShareRequest) GetPagination() *v1beta1.PageRequest { +func (x *QueryKeyShareAllRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination } return nil } -type QueryAllKeyShareResponse struct { +// QueryKeyShareAllResponse is response type for the Query/KeyShareAll RPC method. +type QueryKeyShareAllResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - KeyShare []*KeyShare `protobuf:"bytes,1,rep,name=keyShare,proto3" json:"keyShare,omitempty"` + KeyShare []*KeyShare `protobuf:"bytes,1,rep,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllKeyShareResponse) Reset() { - *x = QueryAllKeyShareResponse{} +func (x *QueryKeyShareAllResponse) Reset() { + *x = QueryKeyShareAllResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13340,33 +13354,33 @@ func (x *QueryAllKeyShareResponse) Reset() { } } -func (x *QueryAllKeyShareResponse) String() string { +func (x *QueryKeyShareAllResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllKeyShareResponse) ProtoMessage() {} +func (*QueryKeyShareAllResponse) ProtoMessage() {} -// Deprecated: Use QueryAllKeyShareResponse.ProtoReflect.Descriptor instead. -func (*QueryAllKeyShareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryKeyShareAllResponse.ProtoReflect.Descriptor instead. +func (*QueryKeyShareAllResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{13} } -func (x *QueryAllKeyShareResponse) GetKeyShare() []*KeyShare { +func (x *QueryKeyShareAllResponse) GetKeyShare() []*KeyShare { if x != nil { return x.KeyShare } return nil } -func (x *QueryAllKeyShareResponse) GetPagination() *v1beta1.PageResponse { +func (x *QueryKeyShareAllResponse) GetPagination() *v1beta1.PageResponse { if x != nil { return x.Pagination } return nil } -// this line is used by starport scaffolding # 3 -type QueryGetAggregatedKeyShareRequest struct { +// QueryAggregatedKeyShareRequest is request type for the Query/AggregatedKeyShare RPC method. +type QueryAggregatedKeyShareRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -13374,8 +13388,8 @@ type QueryGetAggregatedKeyShareRequest struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` } -func (x *QueryGetAggregatedKeyShareRequest) Reset() { - *x = QueryGetAggregatedKeyShareRequest{} +func (x *QueryAggregatedKeyShareRequest) Reset() { + *x = QueryAggregatedKeyShareRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13383,34 +13397,35 @@ func (x *QueryGetAggregatedKeyShareRequest) Reset() { } } -func (x *QueryGetAggregatedKeyShareRequest) String() string { +func (x *QueryAggregatedKeyShareRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetAggregatedKeyShareRequest) ProtoMessage() {} +func (*QueryAggregatedKeyShareRequest) ProtoMessage() {} -// Deprecated: Use QueryGetAggregatedKeyShareRequest.ProtoReflect.Descriptor instead. -func (*QueryGetAggregatedKeyShareRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryAggregatedKeyShareRequest.ProtoReflect.Descriptor instead. +func (*QueryAggregatedKeyShareRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{14} } -func (x *QueryGetAggregatedKeyShareRequest) GetHeight() uint64 { +func (x *QueryAggregatedKeyShareRequest) GetHeight() uint64 { if x != nil { return x.Height } return 0 } -type QueryGetAggregatedKeyShareResponse struct { +// QueryAggregatedKeyShareResponse is response type for the Query/AggregatedKeyShare RPC method. +type QueryAggregatedKeyShareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - AggregatedKeyShare *AggregatedKeyShare `protobuf:"bytes,1,opt,name=aggregatedKeyShare,proto3" json:"aggregatedKeyShare,omitempty"` + AggregatedKeyShare *AggregatedKeyShare `protobuf:"bytes,1,opt,name=aggregated_key_share,json=aggregatedKeyShare,proto3" json:"aggregated_key_share,omitempty"` } -func (x *QueryGetAggregatedKeyShareResponse) Reset() { - *x = QueryGetAggregatedKeyShareResponse{} +func (x *QueryAggregatedKeyShareResponse) Reset() { + *x = QueryAggregatedKeyShareResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13418,25 +13433,26 @@ func (x *QueryGetAggregatedKeyShareResponse) Reset() { } } -func (x *QueryGetAggregatedKeyShareResponse) String() string { +func (x *QueryAggregatedKeyShareResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetAggregatedKeyShareResponse) ProtoMessage() {} +func (*QueryAggregatedKeyShareResponse) ProtoMessage() {} -// Deprecated: Use QueryGetAggregatedKeyShareResponse.ProtoReflect.Descriptor instead. -func (*QueryGetAggregatedKeyShareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryAggregatedKeyShareResponse.ProtoReflect.Descriptor instead. +func (*QueryAggregatedKeyShareResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{15} } -func (x *QueryGetAggregatedKeyShareResponse) GetAggregatedKeyShare() *AggregatedKeyShare { +func (x *QueryAggregatedKeyShareResponse) GetAggregatedKeyShare() *AggregatedKeyShare { if x != nil { return x.AggregatedKeyShare } return nil } -type QueryAllAggregatedKeyShareRequest struct { +// QueryAggregatedKeyShareAllRequest is request type for the Query/AggregatedKeyShareAll RPC method. +type QueryAggregatedKeyShareAllRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -13444,8 +13460,8 @@ type QueryAllAggregatedKeyShareRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllAggregatedKeyShareRequest) Reset() { - *x = QueryAllAggregatedKeyShareRequest{} +func (x *QueryAggregatedKeyShareAllRequest) Reset() { + *x = QueryAggregatedKeyShareAllRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13453,35 +13469,36 @@ func (x *QueryAllAggregatedKeyShareRequest) Reset() { } } -func (x *QueryAllAggregatedKeyShareRequest) String() string { +func (x *QueryAggregatedKeyShareAllRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllAggregatedKeyShareRequest) ProtoMessage() {} +func (*QueryAggregatedKeyShareAllRequest) ProtoMessage() {} -// Deprecated: Use QueryAllAggregatedKeyShareRequest.ProtoReflect.Descriptor instead. -func (*QueryAllAggregatedKeyShareRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryAggregatedKeyShareAllRequest.ProtoReflect.Descriptor instead. +func (*QueryAggregatedKeyShareAllRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{16} } -func (x *QueryAllAggregatedKeyShareRequest) GetPagination() *v1beta1.PageRequest { +func (x *QueryAggregatedKeyShareAllRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination } return nil } -type QueryAllAggregatedKeyShareResponse struct { +// QueryAggregatedKeyShareAllResponse is response type for the Query/AggregatedKeyShareAll RPC method. +type QueryAggregatedKeyShareAllResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - AggregatedKeyShare []*AggregatedKeyShare `protobuf:"bytes,1,rep,name=aggregatedKeyShare,proto3" json:"aggregatedKeyShare,omitempty"` + AggregatedKeyShare []*AggregatedKeyShare `protobuf:"bytes,1,rep,name=aggregated_key_share,json=aggregatedKeyShare,proto3" json:"aggregated_key_share,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllAggregatedKeyShareResponse) Reset() { - *x = QueryAllAggregatedKeyShareResponse{} +func (x *QueryAggregatedKeyShareAllResponse) Reset() { + *x = QueryAggregatedKeyShareAllResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13489,31 +13506,32 @@ func (x *QueryAllAggregatedKeyShareResponse) Reset() { } } -func (x *QueryAllAggregatedKeyShareResponse) String() string { +func (x *QueryAggregatedKeyShareAllResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllAggregatedKeyShareResponse) ProtoMessage() {} +func (*QueryAggregatedKeyShareAllResponse) ProtoMessage() {} -// Deprecated: Use QueryAllAggregatedKeyShareResponse.ProtoReflect.Descriptor instead. -func (*QueryAllAggregatedKeyShareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryAggregatedKeyShareAllResponse.ProtoReflect.Descriptor instead. +func (*QueryAggregatedKeyShareAllResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{17} } -func (x *QueryAllAggregatedKeyShareResponse) GetAggregatedKeyShare() []*AggregatedKeyShare { +func (x *QueryAggregatedKeyShareAllResponse) GetAggregatedKeyShare() []*AggregatedKeyShare { if x != nil { return x.AggregatedKeyShare } return nil } -func (x *QueryAllAggregatedKeyShareResponse) GetPagination() *v1beta1.PageResponse { +func (x *QueryAggregatedKeyShareAllResponse) GetPagination() *v1beta1.PageResponse { if x != nil { return x.Pagination } return nil } +// QueryPubKeyRequest is request type for the Query/PubKey RPC method. type QueryPubKeyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -13540,13 +13558,14 @@ func (*QueryPubKeyRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{18} } +// QueryPubKeyResponse is response type for the Query/PubKey RPC method. type QueryPubKeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ActivePubKey *ActivePubKey `protobuf:"bytes,1,opt,name=activePubKey,proto3" json:"activePubKey,omitempty"` - QueuedPubKey *QueuedPubKey `protobuf:"bytes,2,opt,name=queuedPubKey,proto3" json:"queuedPubKey,omitempty"` + ActivePubKey *ActivePubKey `protobuf:"bytes,1,opt,name=active_pub_key,json=activePubKey,proto3" json:"active_pub_key,omitempty"` + QueuedPubKey *QueuedPubKey `protobuf:"bytes,2,opt,name=queued_pub_key,json=queuedPubKey,proto3" json:"queued_pub_key,omitempty"` } func (x *QueryPubKeyResponse) Reset() { @@ -13583,7 +13602,8 @@ func (x *QueryPubKeyResponse) GetQueuedPubKey() *QueuedPubKey { return nil } -type QueryGetAuthorizedAddressRequest struct { +// QueryAuthorizedAddressRequest is request type for the Query/AuthorizedAddress RPC method. +type QueryAuthorizedAddressRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -13591,8 +13611,8 @@ type QueryGetAuthorizedAddressRequest struct { Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` } -func (x *QueryGetAuthorizedAddressRequest) Reset() { - *x = QueryGetAuthorizedAddressRequest{} +func (x *QueryAuthorizedAddressRequest) Reset() { + *x = QueryAuthorizedAddressRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13600,34 +13620,35 @@ func (x *QueryGetAuthorizedAddressRequest) Reset() { } } -func (x *QueryGetAuthorizedAddressRequest) String() string { +func (x *QueryAuthorizedAddressRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetAuthorizedAddressRequest) ProtoMessage() {} +func (*QueryAuthorizedAddressRequest) ProtoMessage() {} -// Deprecated: Use QueryGetAuthorizedAddressRequest.ProtoReflect.Descriptor instead. -func (*QueryGetAuthorizedAddressRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryAuthorizedAddressRequest.ProtoReflect.Descriptor instead. +func (*QueryAuthorizedAddressRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{20} } -func (x *QueryGetAuthorizedAddressRequest) GetTarget() string { +func (x *QueryAuthorizedAddressRequest) GetTarget() string { if x != nil { return x.Target } return "" } -type QueryGetAuthorizedAddressResponse struct { +// QueryAuthorizedAddressResponse is response type for the Query/AuthorizedAddress RPC method. +type QueryAuthorizedAddressResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - AuthorizedAddress *AuthorizedAddress `protobuf:"bytes,1,opt,name=authorizedAddress,proto3" json:"authorizedAddress,omitempty"` + AuthorizedAddress *AuthorizedAddress `protobuf:"bytes,1,opt,name=authorized_address,json=authorizedAddress,proto3" json:"authorized_address,omitempty"` } -func (x *QueryGetAuthorizedAddressResponse) Reset() { - *x = QueryGetAuthorizedAddressResponse{} +func (x *QueryAuthorizedAddressResponse) Reset() { + *x = QueryAuthorizedAddressResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13635,25 +13656,26 @@ func (x *QueryGetAuthorizedAddressResponse) Reset() { } } -func (x *QueryGetAuthorizedAddressResponse) String() string { +func (x *QueryAuthorizedAddressResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetAuthorizedAddressResponse) ProtoMessage() {} +func (*QueryAuthorizedAddressResponse) ProtoMessage() {} -// Deprecated: Use QueryGetAuthorizedAddressResponse.ProtoReflect.Descriptor instead. -func (*QueryGetAuthorizedAddressResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryAuthorizedAddressResponse.ProtoReflect.Descriptor instead. +func (*QueryAuthorizedAddressResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{21} } -func (x *QueryGetAuthorizedAddressResponse) GetAuthorizedAddress() *AuthorizedAddress { +func (x *QueryAuthorizedAddressResponse) GetAuthorizedAddress() *AuthorizedAddress { if x != nil { return x.AuthorizedAddress } return nil } -type QueryAllAuthorizedAddressRequest struct { +// QueryAuthorizedAddressAllRequest is request type for the Query/AuthorizedAddressAll RPC method. +type QueryAuthorizedAddressAllRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -13661,8 +13683,8 @@ type QueryAllAuthorizedAddressRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllAuthorizedAddressRequest) Reset() { - *x = QueryAllAuthorizedAddressRequest{} +func (x *QueryAuthorizedAddressAllRequest) Reset() { + *x = QueryAuthorizedAddressAllRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13670,35 +13692,36 @@ func (x *QueryAllAuthorizedAddressRequest) Reset() { } } -func (x *QueryAllAuthorizedAddressRequest) String() string { +func (x *QueryAuthorizedAddressAllRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllAuthorizedAddressRequest) ProtoMessage() {} +func (*QueryAuthorizedAddressAllRequest) ProtoMessage() {} -// Deprecated: Use QueryAllAuthorizedAddressRequest.ProtoReflect.Descriptor instead. -func (*QueryAllAuthorizedAddressRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryAuthorizedAddressAllRequest.ProtoReflect.Descriptor instead. +func (*QueryAuthorizedAddressAllRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{22} } -func (x *QueryAllAuthorizedAddressRequest) GetPagination() *v1beta1.PageRequest { +func (x *QueryAuthorizedAddressAllRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination } return nil } -type QueryAllAuthorizedAddressResponse struct { +// QueryAuthorizedAddressAllResponse is response type for the Query/AuthorizedAddressAll RPC method. +type QueryAuthorizedAddressAllResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - AuthorizedAddress []*AuthorizedAddress `protobuf:"bytes,1,rep,name=authorizedAddress,proto3" json:"authorizedAddress,omitempty"` + AuthorizedAddress []*AuthorizedAddress `protobuf:"bytes,1,rep,name=authorized_address,json=authorizedAddress,proto3" json:"authorized_address,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllAuthorizedAddressResponse) Reset() { - *x = QueryAllAuthorizedAddressResponse{} +func (x *QueryAuthorizedAddressAllResponse) Reset() { + *x = QueryAuthorizedAddressAllResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13706,43 +13729,44 @@ func (x *QueryAllAuthorizedAddressResponse) Reset() { } } -func (x *QueryAllAuthorizedAddressResponse) String() string { +func (x *QueryAuthorizedAddressAllResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllAuthorizedAddressResponse) ProtoMessage() {} +func (*QueryAuthorizedAddressAllResponse) ProtoMessage() {} -// Deprecated: Use QueryAllAuthorizedAddressResponse.ProtoReflect.Descriptor instead. -func (*QueryAllAuthorizedAddressResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryAuthorizedAddressAllResponse.ProtoReflect.Descriptor instead. +func (*QueryAuthorizedAddressAllResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{23} } -func (x *QueryAllAuthorizedAddressResponse) GetAuthorizedAddress() []*AuthorizedAddress { +func (x *QueryAuthorizedAddressAllResponse) GetAuthorizedAddress() []*AuthorizedAddress { if x != nil { return x.AuthorizedAddress } return nil } -func (x *QueryAllAuthorizedAddressResponse) GetPagination() *v1beta1.PageResponse { +func (x *QueryAuthorizedAddressAllResponse) GetPagination() *v1beta1.PageResponse { if x != nil { return x.Pagination } return nil } -type QueryGetGeneralKeyShareRequest struct { +// QueryGeneralKeyShareRequest is request type for the Query/GeneralKeyShare RPC method. +type QueryGeneralKeyShareRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` - IdType string `protobuf:"bytes,2,opt,name=idType,proto3" json:"idType,omitempty"` - IdValue string `protobuf:"bytes,3,opt,name=idValue,proto3" json:"idValue,omitempty"` + IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` + IdValue string `protobuf:"bytes,3,opt,name=id_value,json=idValue,proto3" json:"id_value,omitempty"` } -func (x *QueryGetGeneralKeyShareRequest) Reset() { - *x = QueryGetGeneralKeyShareRequest{} +func (x *QueryGeneralKeyShareRequest) Reset() { + *x = QueryGeneralKeyShareRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13750,48 +13774,49 @@ func (x *QueryGetGeneralKeyShareRequest) Reset() { } } -func (x *QueryGetGeneralKeyShareRequest) String() string { +func (x *QueryGeneralKeyShareRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetGeneralKeyShareRequest) ProtoMessage() {} +func (*QueryGeneralKeyShareRequest) ProtoMessage() {} -// Deprecated: Use QueryGetGeneralKeyShareRequest.ProtoReflect.Descriptor instead. -func (*QueryGetGeneralKeyShareRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryGeneralKeyShareRequest.ProtoReflect.Descriptor instead. +func (*QueryGeneralKeyShareRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{24} } -func (x *QueryGetGeneralKeyShareRequest) GetValidator() string { +func (x *QueryGeneralKeyShareRequest) GetValidator() string { if x != nil { return x.Validator } return "" } -func (x *QueryGetGeneralKeyShareRequest) GetIdType() string { +func (x *QueryGeneralKeyShareRequest) GetIdType() string { if x != nil { return x.IdType } return "" } -func (x *QueryGetGeneralKeyShareRequest) GetIdValue() string { +func (x *QueryGeneralKeyShareRequest) GetIdValue() string { if x != nil { return x.IdValue } return "" } -type QueryGetGeneralKeyShareResponse struct { +// QueryGeneralKeyShareResponse is response type for the Query/GeneralKeyShare RPC method. +type QueryGeneralKeyShareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - GeneralKeyShare *GeneralKeyShare `protobuf:"bytes,1,opt,name=generalKeyShare,proto3" json:"generalKeyShare,omitempty"` + GeneralKeyShare *GeneralKeyShare `protobuf:"bytes,1,opt,name=general_key_share,json=generalKeyShare,proto3" json:"general_key_share,omitempty"` } -func (x *QueryGetGeneralKeyShareResponse) Reset() { - *x = QueryGetGeneralKeyShareResponse{} +func (x *QueryGeneralKeyShareResponse) Reset() { + *x = QueryGeneralKeyShareResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13799,25 +13824,26 @@ func (x *QueryGetGeneralKeyShareResponse) Reset() { } } -func (x *QueryGetGeneralKeyShareResponse) String() string { +func (x *QueryGeneralKeyShareResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetGeneralKeyShareResponse) ProtoMessage() {} +func (*QueryGeneralKeyShareResponse) ProtoMessage() {} -// Deprecated: Use QueryGetGeneralKeyShareResponse.ProtoReflect.Descriptor instead. -func (*QueryGetGeneralKeyShareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryGeneralKeyShareResponse.ProtoReflect.Descriptor instead. +func (*QueryGeneralKeyShareResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{25} } -func (x *QueryGetGeneralKeyShareResponse) GetGeneralKeyShare() *GeneralKeyShare { +func (x *QueryGeneralKeyShareResponse) GetGeneralKeyShare() *GeneralKeyShare { if x != nil { return x.GeneralKeyShare } return nil } -type QueryAllGeneralKeyShareRequest struct { +// QueryGeneralKeyShareAllRequest is request type for the Query/GeneralKeyShareAll RPC method. +type QueryGeneralKeyShareAllRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -13825,8 +13851,8 @@ type QueryAllGeneralKeyShareRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllGeneralKeyShareRequest) Reset() { - *x = QueryAllGeneralKeyShareRequest{} +func (x *QueryGeneralKeyShareAllRequest) Reset() { + *x = QueryGeneralKeyShareAllRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13834,35 +13860,36 @@ func (x *QueryAllGeneralKeyShareRequest) Reset() { } } -func (x *QueryAllGeneralKeyShareRequest) String() string { +func (x *QueryGeneralKeyShareAllRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllGeneralKeyShareRequest) ProtoMessage() {} +func (*QueryGeneralKeyShareAllRequest) ProtoMessage() {} -// Deprecated: Use QueryAllGeneralKeyShareRequest.ProtoReflect.Descriptor instead. -func (*QueryAllGeneralKeyShareRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryGeneralKeyShareAllRequest.ProtoReflect.Descriptor instead. +func (*QueryGeneralKeyShareAllRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{26} } -func (x *QueryAllGeneralKeyShareRequest) GetPagination() *v1beta1.PageRequest { +func (x *QueryGeneralKeyShareAllRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination } return nil } -type QueryAllGeneralKeyShareResponse struct { +// QueryGeneralKeyShareAllResponse is response type for the Query/GeneralKeyShareAll RPC method. +type QueryGeneralKeyShareAllResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - GeneralKeyShare []*GeneralKeyShare `protobuf:"bytes,1,rep,name=generalKeyShare,proto3" json:"generalKeyShare,omitempty"` + GeneralKeyShare []*GeneralKeyShare `protobuf:"bytes,1,rep,name=general_key_share,json=generalKeyShare,proto3" json:"general_key_share,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllGeneralKeyShareResponse) Reset() { - *x = QueryAllGeneralKeyShareResponse{} +func (x *QueryGeneralKeyShareAllResponse) Reset() { + *x = QueryGeneralKeyShareAllResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13870,25 +13897,25 @@ func (x *QueryAllGeneralKeyShareResponse) Reset() { } } -func (x *QueryAllGeneralKeyShareResponse) String() string { +func (x *QueryGeneralKeyShareAllResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllGeneralKeyShareResponse) ProtoMessage() {} +func (*QueryGeneralKeyShareAllResponse) ProtoMessage() {} -// Deprecated: Use QueryAllGeneralKeyShareResponse.ProtoReflect.Descriptor instead. -func (*QueryAllGeneralKeyShareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryGeneralKeyShareAllResponse.ProtoReflect.Descriptor instead. +func (*QueryGeneralKeyShareAllResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{27} } -func (x *QueryAllGeneralKeyShareResponse) GetGeneralKeyShare() []*GeneralKeyShare { +func (x *QueryGeneralKeyShareAllResponse) GetGeneralKeyShare() []*GeneralKeyShare { if x != nil { return x.GeneralKeyShare } return nil } -func (x *QueryAllGeneralKeyShareResponse) GetPagination() *v1beta1.PageResponse { +func (x *QueryGeneralKeyShareAllResponse) GetPagination() *v1beta1.PageResponse { if x != nil { return x.Pagination } @@ -13923,364 +13950,359 @@ var file_fairyring_keyshare_query_proto_rawDesc = []byte{ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x2a, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, - 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x20, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x65, 0x72, - 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, - 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x22, 0x59, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, - 0x65, 0x72, 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, - 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x72, - 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x72, - 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, - 0x64, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x54, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, - 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, - 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, - 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xb8, 0x01, 0x0a, 0x18, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x11, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x43, - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x52, 0x11, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x12, 0x4d, 0x0a, 0x11, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x43, 0x6f, - 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x52, 0x11, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x22, 0x33, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x6a, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0c, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, - 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x53, 0x65, 0x74, 0x22, 0x65, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, - 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb3, 0x01, 0x0a, 0x1c, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0c, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x53, 0x65, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0x59, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x5a, 0x0a, 0x18, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x53, + 0x74, 0x6f, 0x1a, 0x24, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x22, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, + 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x59, 0x0a, 0x21, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, + 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, + 0x73, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x54, 0x0a, + 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xba, + 0x01, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x12, 0x61, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x11, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x4e, 0x0a, 0x12, 0x71, + 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x11, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x30, 0x0a, 0x18, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x68, 0x0a, + 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, + 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0d, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x53, 0x65, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x22, 0x65, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb4, + 0x01, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x53, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x4b, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x47, 0x0a, 0x0a, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x57, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, + 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, + 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x58, + 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x22, 0x61, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x41, 0x6c, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x79, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, - 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa3, 0x01, 0x0a, 0x18, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, - 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, - 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0x3b, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x67, 0x67, - 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x82, - 0x01, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, - 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x12, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, - 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, - 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, - 0x12, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x22, 0x6b, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x41, - 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x22, 0xcb, 0x01, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x41, 0x67, 0x67, - 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x12, 0x61, 0x67, 0x67, 0x72, 0x65, - 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, - 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x12, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x14, - 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x22, 0xad, 0x01, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, - 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0c, - 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, - 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x4a, 0x0a, 0x0c, 0x71, 0x75, 0x65, 0x75, - 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa4, 0x01, 0x0a, 0x18, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x2e, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x38, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x67, 0x72, 0x65, + 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x81, 0x01, 0x0a, + 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, + 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x5e, 0x0a, 0x14, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6b, + 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, - 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, - 0x62, 0x4b, 0x65, 0x79, 0x22, 0x3a, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, + 0x61, 0x72, 0x65, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, + 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x12, 0x61, 0x67, + 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x22, 0x6b, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, + 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xcd, 0x01, + 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, + 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x14, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, + 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, + 0x52, 0x12, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x14, 0x0a, + 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x22, 0xb1, 0x01, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, + 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0e, 0x61, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, + 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x4c, 0x0a, 0x0e, 0x71, 0x75, 0x65, + 0x75, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, + 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x75, 0x65, + 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x22, 0x37, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x22, 0x7e, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x11, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x22, 0x6a, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x41, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc7, 0x01, 0x0a, - 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x22, 0x7c, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x59, 0x0a, 0x11, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, - 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, - 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, - 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x70, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, - 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x64, 0x54, 0x79, 0x70, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x69, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x69, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x76, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0f, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, - 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x22, 0x68, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x12, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, + 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x6a, + 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, + 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xbf, 0x01, 0x0a, 0x1f, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, - 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, - 0x0a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xbd, 0x12, 0x0a, - 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x7d, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc8, 0x01, 0x0a, 0x21, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x5a, 0x0a, 0x12, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, 0x0a, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6f, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, + 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, + 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x75, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x11, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, + 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x22, 0x68, 0x0a, + 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, + 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc1, 0x01, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x11, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xa4, 0x12, 0x0a, 0x05, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x7d, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, + 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x12, 0x91, 0x01, 0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x9e, 0x01, 0x0a, 0x0c, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, + 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, + 0x74, 0x2f, 0x7b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x7d, 0x12, 0x9f, 0x01, 0x0a, 0x0f, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x12, 0x2f, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x53, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, + 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x53, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x12, 0xa1, 0x01, 0x0a, 0x08, + 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x28, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x91, 0x01, 0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, - 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x63, 0x6f, - 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0xa4, 0x01, 0x0a, 0x0c, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x2f, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x2f, 0x7b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x7d, - 0x12, 0x9f, 0x01, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, - 0x74, 0x41, 0x6c, 0x6c, 0x12, 0x2f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, - 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x41, 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, - 0x21, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, - 0x65, 0x74, 0x12, 0xa6, 0x01, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, + 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x12, 0x38, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x5f, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x7d, + 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, + 0x8f, 0x01, 0x0a, 0x0b, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x66, + 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3f, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x39, 0x12, 0x37, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, + 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, + 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x7d, 0x2f, 0x7b, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0x8f, 0x01, 0x0a, 0x0b, - 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x2b, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x65, 0x12, 0xb8, 0x01, 0x0a, 0x12, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, + 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, - 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0xbe, 0x01, - 0x0a, 0x12, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x12, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, - 0x65, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, - 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, 0x2f, 0x66, 0x61, + 0x65, 0x72, 0x79, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, + 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, 0x2f, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x61, + 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x2f, 0x7b, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xb8, 0x01, 0x0a, + 0x15, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, + 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, + 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x7e, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x4b, 0x65, + 0x79, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, + 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, + 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x12, 0xb3, 0x01, 0x0a, 0x11, 0x41, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x31, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, + 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x7d, 0x12, 0xb3, 0x01, + 0x0a, 0x14, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x12, 0x34, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, + 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x7b, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xb8, - 0x01, 0x0a, 0x15, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x12, 0xc4, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, + 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, - 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x36, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x41, 0x67, 0x67, - 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, - 0x28, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, - 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x7e, 0x0a, 0x06, 0x50, 0x75, 0x62, - 0x4b, 0x65, 0x79, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, - 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x2f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x12, 0xb9, 0x01, 0x0a, 0x11, 0x41, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x34, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x48, 0x12, 0x46, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, + 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x6f, 0x72, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, + 0x7b, 0x69, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x7d, 0x12, 0xac, 0x01, 0x0a, 0x12, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, + 0x6c, 0x12, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x47, 0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2f, 0x7b, 0x74, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x7d, 0x12, 0xb3, 0x01, 0x0a, 0x14, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x12, 0x34, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x41, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, - 0x6c, 0x6c, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0xc8, 0x01, 0x0a, 0x0f, - 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, - 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, - 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x46, - 0x12, 0x44, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, - 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x54, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x7d, 0x12, 0xac, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x32, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x47, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x33, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, - 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x5f, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0xb4, 0x01, 0x0a, 0x14, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, - 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x12, 0x32, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x61, - 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x1a, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, + 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, + 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x27, 0x12, 0x25, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, + 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0xb6, 0x01, 0x0a, 0x14, 0x56, 0x65, + 0x72, 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, + 0x73, 0x73, 0x12, 0x34, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x2b, 0x12, 0x29, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, - 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x42, 0xb2, 0x01, 0x0a, - 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, - 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, - 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, + 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x65, 0x72, + 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, + 0x73, 0x73, 0x42, 0xb2, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x0a, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -14297,34 +14319,34 @@ func file_fairyring_keyshare_query_proto_rawDescGZIP() []byte { var file_fairyring_keyshare_query_proto_msgTypes = make([]protoimpl.MessageInfo, 28) var file_fairyring_keyshare_query_proto_goTypes = []interface{}{ - (*QueryVerifiableRandomnessQuery)(nil), // 0: fairyring.keyshare.QueryVerifiableRandomnessQuery + (*QueryVerifiableRandomnessRequest)(nil), // 0: fairyring.keyshare.QueryVerifiableRandomnessRequest (*QueryVerifiableRandomnessResponse)(nil), // 1: fairyring.keyshare.QueryVerifiableRandomnessResponse (*QueryParamsRequest)(nil), // 2: fairyring.keyshare.QueryParamsRequest (*QueryParamsResponse)(nil), // 3: fairyring.keyshare.QueryParamsResponse (*QueryCommitmentsRequest)(nil), // 4: fairyring.keyshare.QueryCommitmentsRequest (*QueryCommitmentsResponse)(nil), // 5: fairyring.keyshare.QueryCommitmentsResponse - (*QueryGetValidatorSetRequest)(nil), // 6: fairyring.keyshare.QueryGetValidatorSetRequest - (*QueryGetValidatorSetResponse)(nil), // 7: fairyring.keyshare.QueryGetValidatorSetResponse - (*QueryAllValidatorSetRequest)(nil), // 8: fairyring.keyshare.QueryAllValidatorSetRequest - (*QueryAllValidatorSetResponse)(nil), // 9: fairyring.keyshare.QueryAllValidatorSetResponse - (*QueryGetKeyShareRequest)(nil), // 10: fairyring.keyshare.QueryGetKeyShareRequest - (*QueryGetKeyShareResponse)(nil), // 11: fairyring.keyshare.QueryGetKeyShareResponse - (*QueryAllKeyShareRequest)(nil), // 12: fairyring.keyshare.QueryAllKeyShareRequest - (*QueryAllKeyShareResponse)(nil), // 13: fairyring.keyshare.QueryAllKeyShareResponse - (*QueryGetAggregatedKeyShareRequest)(nil), // 14: fairyring.keyshare.QueryGetAggregatedKeyShareRequest - (*QueryGetAggregatedKeyShareResponse)(nil), // 15: fairyring.keyshare.QueryGetAggregatedKeyShareResponse - (*QueryAllAggregatedKeyShareRequest)(nil), // 16: fairyring.keyshare.QueryAllAggregatedKeyShareRequest - (*QueryAllAggregatedKeyShareResponse)(nil), // 17: fairyring.keyshare.QueryAllAggregatedKeyShareResponse + (*QueryValidatorSetRequest)(nil), // 6: fairyring.keyshare.QueryValidatorSetRequest + (*QueryValidatorSetResponse)(nil), // 7: fairyring.keyshare.QueryValidatorSetResponse + (*QueryValidatorSetAllRequest)(nil), // 8: fairyring.keyshare.QueryValidatorSetAllRequest + (*QueryValidatorSetAllResponse)(nil), // 9: fairyring.keyshare.QueryValidatorSetAllResponse + (*QueryKeyShareRequest)(nil), // 10: fairyring.keyshare.QueryKeyShareRequest + (*QueryKeyShareResponse)(nil), // 11: fairyring.keyshare.QueryKeyShareResponse + (*QueryKeyShareAllRequest)(nil), // 12: fairyring.keyshare.QueryKeyShareAllRequest + (*QueryKeyShareAllResponse)(nil), // 13: fairyring.keyshare.QueryKeyShareAllResponse + (*QueryAggregatedKeyShareRequest)(nil), // 14: fairyring.keyshare.QueryAggregatedKeyShareRequest + (*QueryAggregatedKeyShareResponse)(nil), // 15: fairyring.keyshare.QueryAggregatedKeyShareResponse + (*QueryAggregatedKeyShareAllRequest)(nil), // 16: fairyring.keyshare.QueryAggregatedKeyShareAllRequest + (*QueryAggregatedKeyShareAllResponse)(nil), // 17: fairyring.keyshare.QueryAggregatedKeyShareAllResponse (*QueryPubKeyRequest)(nil), // 18: fairyring.keyshare.QueryPubKeyRequest (*QueryPubKeyResponse)(nil), // 19: fairyring.keyshare.QueryPubKeyResponse - (*QueryGetAuthorizedAddressRequest)(nil), // 20: fairyring.keyshare.QueryGetAuthorizedAddressRequest - (*QueryGetAuthorizedAddressResponse)(nil), // 21: fairyring.keyshare.QueryGetAuthorizedAddressResponse - (*QueryAllAuthorizedAddressRequest)(nil), // 22: fairyring.keyshare.QueryAllAuthorizedAddressRequest - (*QueryAllAuthorizedAddressResponse)(nil), // 23: fairyring.keyshare.QueryAllAuthorizedAddressResponse - (*QueryGetGeneralKeyShareRequest)(nil), // 24: fairyring.keyshare.QueryGetGeneralKeyShareRequest - (*QueryGetGeneralKeyShareResponse)(nil), // 25: fairyring.keyshare.QueryGetGeneralKeyShareResponse - (*QueryAllGeneralKeyShareRequest)(nil), // 26: fairyring.keyshare.QueryAllGeneralKeyShareRequest - (*QueryAllGeneralKeyShareResponse)(nil), // 27: fairyring.keyshare.QueryAllGeneralKeyShareResponse + (*QueryAuthorizedAddressRequest)(nil), // 20: fairyring.keyshare.QueryAuthorizedAddressRequest + (*QueryAuthorizedAddressResponse)(nil), // 21: fairyring.keyshare.QueryAuthorizedAddressResponse + (*QueryAuthorizedAddressAllRequest)(nil), // 22: fairyring.keyshare.QueryAuthorizedAddressAllRequest + (*QueryAuthorizedAddressAllResponse)(nil), // 23: fairyring.keyshare.QueryAuthorizedAddressAllResponse + (*QueryGeneralKeyShareRequest)(nil), // 24: fairyring.keyshare.QueryGeneralKeyShareRequest + (*QueryGeneralKeyShareResponse)(nil), // 25: fairyring.keyshare.QueryGeneralKeyShareResponse + (*QueryGeneralKeyShareAllRequest)(nil), // 26: fairyring.keyshare.QueryGeneralKeyShareAllRequest + (*QueryGeneralKeyShareAllResponse)(nil), // 27: fairyring.keyshare.QueryGeneralKeyShareAllResponse (*Params)(nil), // 28: fairyring.keyshare.Params (*Commitments)(nil), // 29: fairyring.keyshare.Commitments (*ValidatorSet)(nil), // 30: fairyring.keyshare.ValidatorSet @@ -14339,57 +14361,57 @@ var file_fairyring_keyshare_query_proto_goTypes = []interface{}{ } var file_fairyring_keyshare_query_proto_depIdxs = []int32{ 28, // 0: fairyring.keyshare.QueryParamsResponse.params:type_name -> fairyring.keyshare.Params - 29, // 1: fairyring.keyshare.QueryCommitmentsResponse.activeCommitments:type_name -> fairyring.keyshare.Commitments - 29, // 2: fairyring.keyshare.QueryCommitmentsResponse.queuedCommitments:type_name -> fairyring.keyshare.Commitments - 30, // 3: fairyring.keyshare.QueryGetValidatorSetResponse.validatorSet:type_name -> fairyring.keyshare.ValidatorSet - 31, // 4: fairyring.keyshare.QueryAllValidatorSetRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 30, // 5: fairyring.keyshare.QueryAllValidatorSetResponse.validatorSet:type_name -> fairyring.keyshare.ValidatorSet - 32, // 6: fairyring.keyshare.QueryAllValidatorSetResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 33, // 7: fairyring.keyshare.QueryGetKeyShareResponse.keyShare:type_name -> fairyring.keyshare.KeyShare - 31, // 8: fairyring.keyshare.QueryAllKeyShareRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 33, // 9: fairyring.keyshare.QueryAllKeyShareResponse.keyShare:type_name -> fairyring.keyshare.KeyShare - 32, // 10: fairyring.keyshare.QueryAllKeyShareResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 34, // 11: fairyring.keyshare.QueryGetAggregatedKeyShareResponse.aggregatedKeyShare:type_name -> fairyring.keyshare.AggregatedKeyShare - 31, // 12: fairyring.keyshare.QueryAllAggregatedKeyShareRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 34, // 13: fairyring.keyshare.QueryAllAggregatedKeyShareResponse.aggregatedKeyShare:type_name -> fairyring.keyshare.AggregatedKeyShare - 32, // 14: fairyring.keyshare.QueryAllAggregatedKeyShareResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 35, // 15: fairyring.keyshare.QueryPubKeyResponse.activePubKey:type_name -> fairyring.keyshare.ActivePubKey - 36, // 16: fairyring.keyshare.QueryPubKeyResponse.queuedPubKey:type_name -> fairyring.keyshare.QueuedPubKey - 37, // 17: fairyring.keyshare.QueryGetAuthorizedAddressResponse.authorizedAddress:type_name -> fairyring.keyshare.AuthorizedAddress - 31, // 18: fairyring.keyshare.QueryAllAuthorizedAddressRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 37, // 19: fairyring.keyshare.QueryAllAuthorizedAddressResponse.authorizedAddress:type_name -> fairyring.keyshare.AuthorizedAddress - 32, // 20: fairyring.keyshare.QueryAllAuthorizedAddressResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 38, // 21: fairyring.keyshare.QueryGetGeneralKeyShareResponse.generalKeyShare:type_name -> fairyring.keyshare.GeneralKeyShare - 31, // 22: fairyring.keyshare.QueryAllGeneralKeyShareRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 38, // 23: fairyring.keyshare.QueryAllGeneralKeyShareResponse.generalKeyShare:type_name -> fairyring.keyshare.GeneralKeyShare - 32, // 24: fairyring.keyshare.QueryAllGeneralKeyShareResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 29, // 1: fairyring.keyshare.QueryCommitmentsResponse.active_commitments:type_name -> fairyring.keyshare.Commitments + 29, // 2: fairyring.keyshare.QueryCommitmentsResponse.queued_commitments:type_name -> fairyring.keyshare.Commitments + 30, // 3: fairyring.keyshare.QueryValidatorSetResponse.validator_set:type_name -> fairyring.keyshare.ValidatorSet + 31, // 4: fairyring.keyshare.QueryValidatorSetAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 30, // 5: fairyring.keyshare.QueryValidatorSetAllResponse.validator_set:type_name -> fairyring.keyshare.ValidatorSet + 32, // 6: fairyring.keyshare.QueryValidatorSetAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 33, // 7: fairyring.keyshare.QueryKeyShareResponse.key_share:type_name -> fairyring.keyshare.KeyShare + 31, // 8: fairyring.keyshare.QueryKeyShareAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 33, // 9: fairyring.keyshare.QueryKeyShareAllResponse.key_share:type_name -> fairyring.keyshare.KeyShare + 32, // 10: fairyring.keyshare.QueryKeyShareAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 34, // 11: fairyring.keyshare.QueryAggregatedKeyShareResponse.aggregated_key_share:type_name -> fairyring.keyshare.AggregatedKeyShare + 31, // 12: fairyring.keyshare.QueryAggregatedKeyShareAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 34, // 13: fairyring.keyshare.QueryAggregatedKeyShareAllResponse.aggregated_key_share:type_name -> fairyring.keyshare.AggregatedKeyShare + 32, // 14: fairyring.keyshare.QueryAggregatedKeyShareAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 35, // 15: fairyring.keyshare.QueryPubKeyResponse.active_pub_key:type_name -> fairyring.keyshare.ActivePubKey + 36, // 16: fairyring.keyshare.QueryPubKeyResponse.queued_pub_key:type_name -> fairyring.keyshare.QueuedPubKey + 37, // 17: fairyring.keyshare.QueryAuthorizedAddressResponse.authorized_address:type_name -> fairyring.keyshare.AuthorizedAddress + 31, // 18: fairyring.keyshare.QueryAuthorizedAddressAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 37, // 19: fairyring.keyshare.QueryAuthorizedAddressAllResponse.authorized_address:type_name -> fairyring.keyshare.AuthorizedAddress + 32, // 20: fairyring.keyshare.QueryAuthorizedAddressAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 38, // 21: fairyring.keyshare.QueryGeneralKeyShareResponse.general_key_share:type_name -> fairyring.keyshare.GeneralKeyShare + 31, // 22: fairyring.keyshare.QueryGeneralKeyShareAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 38, // 23: fairyring.keyshare.QueryGeneralKeyShareAllResponse.general_key_share:type_name -> fairyring.keyshare.GeneralKeyShare + 32, // 24: fairyring.keyshare.QueryGeneralKeyShareAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse 2, // 25: fairyring.keyshare.Query.Params:input_type -> fairyring.keyshare.QueryParamsRequest 4, // 26: fairyring.keyshare.Query.Commitments:input_type -> fairyring.keyshare.QueryCommitmentsRequest - 6, // 27: fairyring.keyshare.Query.ValidatorSet:input_type -> fairyring.keyshare.QueryGetValidatorSetRequest - 8, // 28: fairyring.keyshare.Query.ValidatorSetAll:input_type -> fairyring.keyshare.QueryAllValidatorSetRequest - 10, // 29: fairyring.keyshare.Query.KeyShare:input_type -> fairyring.keyshare.QueryGetKeyShareRequest - 12, // 30: fairyring.keyshare.Query.KeyShareAll:input_type -> fairyring.keyshare.QueryAllKeyShareRequest - 14, // 31: fairyring.keyshare.Query.AggregatedKeyShare:input_type -> fairyring.keyshare.QueryGetAggregatedKeyShareRequest - 16, // 32: fairyring.keyshare.Query.AggregatedKeyShareAll:input_type -> fairyring.keyshare.QueryAllAggregatedKeyShareRequest + 6, // 27: fairyring.keyshare.Query.ValidatorSet:input_type -> fairyring.keyshare.QueryValidatorSetRequest + 8, // 28: fairyring.keyshare.Query.ValidatorSetAll:input_type -> fairyring.keyshare.QueryValidatorSetAllRequest + 10, // 29: fairyring.keyshare.Query.KeyShare:input_type -> fairyring.keyshare.QueryKeyShareRequest + 12, // 30: fairyring.keyshare.Query.KeyShareAll:input_type -> fairyring.keyshare.QueryKeyShareAllRequest + 14, // 31: fairyring.keyshare.Query.AggregatedKeyShare:input_type -> fairyring.keyshare.QueryAggregatedKeyShareRequest + 16, // 32: fairyring.keyshare.Query.AggregatedKeyShareAll:input_type -> fairyring.keyshare.QueryAggregatedKeyShareAllRequest 18, // 33: fairyring.keyshare.Query.PubKey:input_type -> fairyring.keyshare.QueryPubKeyRequest - 20, // 34: fairyring.keyshare.Query.AuthorizedAddress:input_type -> fairyring.keyshare.QueryGetAuthorizedAddressRequest - 22, // 35: fairyring.keyshare.Query.AuthorizedAddressAll:input_type -> fairyring.keyshare.QueryAllAuthorizedAddressRequest - 24, // 36: fairyring.keyshare.Query.GeneralKeyShare:input_type -> fairyring.keyshare.QueryGetGeneralKeyShareRequest - 26, // 37: fairyring.keyshare.Query.GeneralKeyShareAll:input_type -> fairyring.keyshare.QueryAllGeneralKeyShareRequest - 0, // 38: fairyring.keyshare.Query.VerifiableRandomness:input_type -> fairyring.keyshare.QueryVerifiableRandomnessQuery + 20, // 34: fairyring.keyshare.Query.AuthorizedAddress:input_type -> fairyring.keyshare.QueryAuthorizedAddressRequest + 22, // 35: fairyring.keyshare.Query.AuthorizedAddressAll:input_type -> fairyring.keyshare.QueryAuthorizedAddressAllRequest + 24, // 36: fairyring.keyshare.Query.GeneralKeyShare:input_type -> fairyring.keyshare.QueryGeneralKeyShareRequest + 26, // 37: fairyring.keyshare.Query.GeneralKeyShareAll:input_type -> fairyring.keyshare.QueryGeneralKeyShareAllRequest + 0, // 38: fairyring.keyshare.Query.VerifiableRandomness:input_type -> fairyring.keyshare.QueryVerifiableRandomnessRequest 3, // 39: fairyring.keyshare.Query.Params:output_type -> fairyring.keyshare.QueryParamsResponse 5, // 40: fairyring.keyshare.Query.Commitments:output_type -> fairyring.keyshare.QueryCommitmentsResponse - 7, // 41: fairyring.keyshare.Query.ValidatorSet:output_type -> fairyring.keyshare.QueryGetValidatorSetResponse - 9, // 42: fairyring.keyshare.Query.ValidatorSetAll:output_type -> fairyring.keyshare.QueryAllValidatorSetResponse - 11, // 43: fairyring.keyshare.Query.KeyShare:output_type -> fairyring.keyshare.QueryGetKeyShareResponse - 13, // 44: fairyring.keyshare.Query.KeyShareAll:output_type -> fairyring.keyshare.QueryAllKeyShareResponse - 15, // 45: fairyring.keyshare.Query.AggregatedKeyShare:output_type -> fairyring.keyshare.QueryGetAggregatedKeyShareResponse - 17, // 46: fairyring.keyshare.Query.AggregatedKeyShareAll:output_type -> fairyring.keyshare.QueryAllAggregatedKeyShareResponse + 7, // 41: fairyring.keyshare.Query.ValidatorSet:output_type -> fairyring.keyshare.QueryValidatorSetResponse + 9, // 42: fairyring.keyshare.Query.ValidatorSetAll:output_type -> fairyring.keyshare.QueryValidatorSetAllResponse + 11, // 43: fairyring.keyshare.Query.KeyShare:output_type -> fairyring.keyshare.QueryKeyShareResponse + 13, // 44: fairyring.keyshare.Query.KeyShareAll:output_type -> fairyring.keyshare.QueryKeyShareAllResponse + 15, // 45: fairyring.keyshare.Query.AggregatedKeyShare:output_type -> fairyring.keyshare.QueryAggregatedKeyShareResponse + 17, // 46: fairyring.keyshare.Query.AggregatedKeyShareAll:output_type -> fairyring.keyshare.QueryAggregatedKeyShareAllResponse 19, // 47: fairyring.keyshare.Query.PubKey:output_type -> fairyring.keyshare.QueryPubKeyResponse - 21, // 48: fairyring.keyshare.Query.AuthorizedAddress:output_type -> fairyring.keyshare.QueryGetAuthorizedAddressResponse - 23, // 49: fairyring.keyshare.Query.AuthorizedAddressAll:output_type -> fairyring.keyshare.QueryAllAuthorizedAddressResponse - 25, // 50: fairyring.keyshare.Query.GeneralKeyShare:output_type -> fairyring.keyshare.QueryGetGeneralKeyShareResponse - 27, // 51: fairyring.keyshare.Query.GeneralKeyShareAll:output_type -> fairyring.keyshare.QueryAllGeneralKeyShareResponse + 21, // 48: fairyring.keyshare.Query.AuthorizedAddress:output_type -> fairyring.keyshare.QueryAuthorizedAddressResponse + 23, // 49: fairyring.keyshare.Query.AuthorizedAddressAll:output_type -> fairyring.keyshare.QueryAuthorizedAddressAllResponse + 25, // 50: fairyring.keyshare.Query.GeneralKeyShare:output_type -> fairyring.keyshare.QueryGeneralKeyShareResponse + 27, // 51: fairyring.keyshare.Query.GeneralKeyShareAll:output_type -> fairyring.keyshare.QueryGeneralKeyShareAllResponse 1, // 52: fairyring.keyshare.Query.VerifiableRandomness:output_type -> fairyring.keyshare.QueryVerifiableRandomnessResponse 39, // [39:53] is the sub-list for method output_type 25, // [25:39] is the sub-list for method input_type @@ -14409,11 +14431,10 @@ func file_fairyring_keyshare_query_proto_init() { file_fairyring_keyshare_aggregated_key_share_proto_init() file_fairyring_keyshare_pub_key_proto_init() file_fairyring_keyshare_authorized_address_proto_init() - file_fairyring_keyshare_general_key_share_proto_init() file_fairyring_keyshare_commitments_proto_init() if !protoimpl.UnsafeEnabled { file_fairyring_keyshare_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryVerifiableRandomnessQuery); i { + switch v := v.(*QueryVerifiableRandomnessRequest); i { case 0: return &v.state case 1: @@ -14485,7 +14506,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetValidatorSetRequest); i { + switch v := v.(*QueryValidatorSetRequest); i { case 0: return &v.state case 1: @@ -14497,7 +14518,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetValidatorSetResponse); i { + switch v := v.(*QueryValidatorSetResponse); i { case 0: return &v.state case 1: @@ -14509,7 +14530,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllValidatorSetRequest); i { + switch v := v.(*QueryValidatorSetAllRequest); i { case 0: return &v.state case 1: @@ -14521,7 +14542,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllValidatorSetResponse); i { + switch v := v.(*QueryValidatorSetAllResponse); i { case 0: return &v.state case 1: @@ -14533,7 +14554,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetKeyShareRequest); i { + switch v := v.(*QueryKeyShareRequest); i { case 0: return &v.state case 1: @@ -14545,7 +14566,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetKeyShareResponse); i { + switch v := v.(*QueryKeyShareResponse); i { case 0: return &v.state case 1: @@ -14557,7 +14578,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllKeyShareRequest); i { + switch v := v.(*QueryKeyShareAllRequest); i { case 0: return &v.state case 1: @@ -14569,7 +14590,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllKeyShareResponse); i { + switch v := v.(*QueryKeyShareAllResponse); i { case 0: return &v.state case 1: @@ -14581,7 +14602,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetAggregatedKeyShareRequest); i { + switch v := v.(*QueryAggregatedKeyShareRequest); i { case 0: return &v.state case 1: @@ -14593,7 +14614,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetAggregatedKeyShareResponse); i { + switch v := v.(*QueryAggregatedKeyShareResponse); i { case 0: return &v.state case 1: @@ -14605,7 +14626,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllAggregatedKeyShareRequest); i { + switch v := v.(*QueryAggregatedKeyShareAllRequest); i { case 0: return &v.state case 1: @@ -14617,7 +14638,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllAggregatedKeyShareResponse); i { + switch v := v.(*QueryAggregatedKeyShareAllResponse); i { case 0: return &v.state case 1: @@ -14653,7 +14674,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetAuthorizedAddressRequest); i { + switch v := v.(*QueryAuthorizedAddressRequest); i { case 0: return &v.state case 1: @@ -14665,7 +14686,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetAuthorizedAddressResponse); i { + switch v := v.(*QueryAuthorizedAddressResponse); i { case 0: return &v.state case 1: @@ -14677,7 +14698,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllAuthorizedAddressRequest); i { + switch v := v.(*QueryAuthorizedAddressAllRequest); i { case 0: return &v.state case 1: @@ -14689,7 +14710,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllAuthorizedAddressResponse); i { + switch v := v.(*QueryAuthorizedAddressAllResponse); i { case 0: return &v.state case 1: @@ -14701,7 +14722,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetGeneralKeyShareRequest); i { + switch v := v.(*QueryGeneralKeyShareRequest); i { case 0: return &v.state case 1: @@ -14713,7 +14734,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetGeneralKeyShareResponse); i { + switch v := v.(*QueryGeneralKeyShareResponse); i { case 0: return &v.state case 1: @@ -14725,7 +14746,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllGeneralKeyShareRequest); i { + switch v := v.(*QueryGeneralKeyShareAllRequest); i { case 0: return &v.state case 1: @@ -14737,7 +14758,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllGeneralKeyShareResponse); i { + switch v := v.(*QueryGeneralKeyShareAllResponse); i { case 0: return &v.state case 1: diff --git a/api/fairyring/keyshare/query_grpc.pb.go b/api/fairyring/keyshare/query_grpc.pb.go index 16913bd0..868ebe1e 100644 --- a/api/fairyring/keyshare/query_grpc.pb.go +++ b/api/fairyring/keyshare/query_grpc.pb.go @@ -41,27 +41,32 @@ const ( type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + // Commitments queries the lists of active and queued commitments Commitments(ctx context.Context, in *QueryCommitmentsRequest, opts ...grpc.CallOption) (*QueryCommitmentsResponse, error) // Queries a ValidatorSet by index. - ValidatorSet(ctx context.Context, in *QueryGetValidatorSetRequest, opts ...grpc.CallOption) (*QueryGetValidatorSetResponse, error) + ValidatorSet(ctx context.Context, in *QueryValidatorSetRequest, opts ...grpc.CallOption) (*QueryValidatorSetResponse, error) // Queries a list of ValidatorSet items. - ValidatorSetAll(ctx context.Context, in *QueryAllValidatorSetRequest, opts ...grpc.CallOption) (*QueryAllValidatorSetResponse, error) + ValidatorSetAll(ctx context.Context, in *QueryValidatorSetAllRequest, opts ...grpc.CallOption) (*QueryValidatorSetAllResponse, error) // Queries a KeyShare by index. - KeyShare(ctx context.Context, in *QueryGetKeyShareRequest, opts ...grpc.CallOption) (*QueryGetKeyShareResponse, error) + KeyShare(ctx context.Context, in *QueryKeyShareRequest, opts ...grpc.CallOption) (*QueryKeyShareResponse, error) // Queries a list of KeyShare items. - KeyShareAll(ctx context.Context, in *QueryAllKeyShareRequest, opts ...grpc.CallOption) (*QueryAllKeyShareResponse, error) - // Queries a list of AggregatedKeyShare items. - AggregatedKeyShare(ctx context.Context, in *QueryGetAggregatedKeyShareRequest, opts ...grpc.CallOption) (*QueryGetAggregatedKeyShareResponse, error) - AggregatedKeyShareAll(ctx context.Context, in *QueryAllAggregatedKeyShareRequest, opts ...grpc.CallOption) (*QueryAllAggregatedKeyShareResponse, error) + KeyShareAll(ctx context.Context, in *QueryKeyShareAllRequest, opts ...grpc.CallOption) (*QueryKeyShareAllResponse, error) + // AggregatedKeyShare a AggregatedKeyShare item by height. + AggregatedKeyShare(ctx context.Context, in *QueryAggregatedKeyShareRequest, opts ...grpc.CallOption) (*QueryAggregatedKeyShareResponse, error) + // AggregatedKeyShareAll Queries a list of AggregatedKeyShare items. + AggregatedKeyShareAll(ctx context.Context, in *QueryAggregatedKeyShareAllRequest, opts ...grpc.CallOption) (*QueryAggregatedKeyShareAllResponse, error) // Queries the public keys PubKey(ctx context.Context, in *QueryPubKeyRequest, opts ...grpc.CallOption) (*QueryPubKeyResponse, error) - // Queries a list of AuthorizedAddress items. - AuthorizedAddress(ctx context.Context, in *QueryGetAuthorizedAddressRequest, opts ...grpc.CallOption) (*QueryGetAuthorizedAddressResponse, error) - AuthorizedAddressAll(ctx context.Context, in *QueryAllAuthorizedAddressRequest, opts ...grpc.CallOption) (*QueryAllAuthorizedAddressResponse, error) - // Queries a list of GeneralKeyShare items. - GeneralKeyShare(ctx context.Context, in *QueryGetGeneralKeyShareRequest, opts ...grpc.CallOption) (*QueryGetGeneralKeyShareResponse, error) - GeneralKeyShareAll(ctx context.Context, in *QueryAllGeneralKeyShareRequest, opts ...grpc.CallOption) (*QueryAllGeneralKeyShareResponse, error) - VerifiableRandomness(ctx context.Context, in *QueryVerifiableRandomnessQuery, opts ...grpc.CallOption) (*QueryVerifiableRandomnessResponse, error) + // Queries a AuthorizedAddress item by target. + AuthorizedAddress(ctx context.Context, in *QueryAuthorizedAddressRequest, opts ...grpc.CallOption) (*QueryAuthorizedAddressResponse, error) + // Queries a list of AuthorizedAddress items + AuthorizedAddressAll(ctx context.Context, in *QueryAuthorizedAddressAllRequest, opts ...grpc.CallOption) (*QueryAuthorizedAddressAllResponse, error) + // Queries a GeneralKeyShare item by validator address and identity. + GeneralKeyShare(ctx context.Context, in *QueryGeneralKeyShareRequest, opts ...grpc.CallOption) (*QueryGeneralKeyShareResponse, error) + // Queries a list of GeneralKeyShare items + GeneralKeyShareAll(ctx context.Context, in *QueryGeneralKeyShareAllRequest, opts ...grpc.CallOption) (*QueryGeneralKeyShareAllResponse, error) + // Queries verifiable randomness + VerifiableRandomness(ctx context.Context, in *QueryVerifiableRandomnessRequest, opts ...grpc.CallOption) (*QueryVerifiableRandomnessResponse, error) } type queryClient struct { @@ -90,8 +95,8 @@ func (c *queryClient) Commitments(ctx context.Context, in *QueryCommitmentsReque return out, nil } -func (c *queryClient) ValidatorSet(ctx context.Context, in *QueryGetValidatorSetRequest, opts ...grpc.CallOption) (*QueryGetValidatorSetResponse, error) { - out := new(QueryGetValidatorSetResponse) +func (c *queryClient) ValidatorSet(ctx context.Context, in *QueryValidatorSetRequest, opts ...grpc.CallOption) (*QueryValidatorSetResponse, error) { + out := new(QueryValidatorSetResponse) err := c.cc.Invoke(ctx, Query_ValidatorSet_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -99,8 +104,8 @@ func (c *queryClient) ValidatorSet(ctx context.Context, in *QueryGetValidatorSet return out, nil } -func (c *queryClient) ValidatorSetAll(ctx context.Context, in *QueryAllValidatorSetRequest, opts ...grpc.CallOption) (*QueryAllValidatorSetResponse, error) { - out := new(QueryAllValidatorSetResponse) +func (c *queryClient) ValidatorSetAll(ctx context.Context, in *QueryValidatorSetAllRequest, opts ...grpc.CallOption) (*QueryValidatorSetAllResponse, error) { + out := new(QueryValidatorSetAllResponse) err := c.cc.Invoke(ctx, Query_ValidatorSetAll_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -108,8 +113,8 @@ func (c *queryClient) ValidatorSetAll(ctx context.Context, in *QueryAllValidator return out, nil } -func (c *queryClient) KeyShare(ctx context.Context, in *QueryGetKeyShareRequest, opts ...grpc.CallOption) (*QueryGetKeyShareResponse, error) { - out := new(QueryGetKeyShareResponse) +func (c *queryClient) KeyShare(ctx context.Context, in *QueryKeyShareRequest, opts ...grpc.CallOption) (*QueryKeyShareResponse, error) { + out := new(QueryKeyShareResponse) err := c.cc.Invoke(ctx, Query_KeyShare_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -117,8 +122,8 @@ func (c *queryClient) KeyShare(ctx context.Context, in *QueryGetKeyShareRequest, return out, nil } -func (c *queryClient) KeyShareAll(ctx context.Context, in *QueryAllKeyShareRequest, opts ...grpc.CallOption) (*QueryAllKeyShareResponse, error) { - out := new(QueryAllKeyShareResponse) +func (c *queryClient) KeyShareAll(ctx context.Context, in *QueryKeyShareAllRequest, opts ...grpc.CallOption) (*QueryKeyShareAllResponse, error) { + out := new(QueryKeyShareAllResponse) err := c.cc.Invoke(ctx, Query_KeyShareAll_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -126,8 +131,8 @@ func (c *queryClient) KeyShareAll(ctx context.Context, in *QueryAllKeyShareReque return out, nil } -func (c *queryClient) AggregatedKeyShare(ctx context.Context, in *QueryGetAggregatedKeyShareRequest, opts ...grpc.CallOption) (*QueryGetAggregatedKeyShareResponse, error) { - out := new(QueryGetAggregatedKeyShareResponse) +func (c *queryClient) AggregatedKeyShare(ctx context.Context, in *QueryAggregatedKeyShareRequest, opts ...grpc.CallOption) (*QueryAggregatedKeyShareResponse, error) { + out := new(QueryAggregatedKeyShareResponse) err := c.cc.Invoke(ctx, Query_AggregatedKeyShare_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -135,8 +140,8 @@ func (c *queryClient) AggregatedKeyShare(ctx context.Context, in *QueryGetAggreg return out, nil } -func (c *queryClient) AggregatedKeyShareAll(ctx context.Context, in *QueryAllAggregatedKeyShareRequest, opts ...grpc.CallOption) (*QueryAllAggregatedKeyShareResponse, error) { - out := new(QueryAllAggregatedKeyShareResponse) +func (c *queryClient) AggregatedKeyShareAll(ctx context.Context, in *QueryAggregatedKeyShareAllRequest, opts ...grpc.CallOption) (*QueryAggregatedKeyShareAllResponse, error) { + out := new(QueryAggregatedKeyShareAllResponse) err := c.cc.Invoke(ctx, Query_AggregatedKeyShareAll_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -153,8 +158,8 @@ func (c *queryClient) PubKey(ctx context.Context, in *QueryPubKeyRequest, opts . return out, nil } -func (c *queryClient) AuthorizedAddress(ctx context.Context, in *QueryGetAuthorizedAddressRequest, opts ...grpc.CallOption) (*QueryGetAuthorizedAddressResponse, error) { - out := new(QueryGetAuthorizedAddressResponse) +func (c *queryClient) AuthorizedAddress(ctx context.Context, in *QueryAuthorizedAddressRequest, opts ...grpc.CallOption) (*QueryAuthorizedAddressResponse, error) { + out := new(QueryAuthorizedAddressResponse) err := c.cc.Invoke(ctx, Query_AuthorizedAddress_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -162,8 +167,8 @@ func (c *queryClient) AuthorizedAddress(ctx context.Context, in *QueryGetAuthori return out, nil } -func (c *queryClient) AuthorizedAddressAll(ctx context.Context, in *QueryAllAuthorizedAddressRequest, opts ...grpc.CallOption) (*QueryAllAuthorizedAddressResponse, error) { - out := new(QueryAllAuthorizedAddressResponse) +func (c *queryClient) AuthorizedAddressAll(ctx context.Context, in *QueryAuthorizedAddressAllRequest, opts ...grpc.CallOption) (*QueryAuthorizedAddressAllResponse, error) { + out := new(QueryAuthorizedAddressAllResponse) err := c.cc.Invoke(ctx, Query_AuthorizedAddressAll_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -171,8 +176,8 @@ func (c *queryClient) AuthorizedAddressAll(ctx context.Context, in *QueryAllAuth return out, nil } -func (c *queryClient) GeneralKeyShare(ctx context.Context, in *QueryGetGeneralKeyShareRequest, opts ...grpc.CallOption) (*QueryGetGeneralKeyShareResponse, error) { - out := new(QueryGetGeneralKeyShareResponse) +func (c *queryClient) GeneralKeyShare(ctx context.Context, in *QueryGeneralKeyShareRequest, opts ...grpc.CallOption) (*QueryGeneralKeyShareResponse, error) { + out := new(QueryGeneralKeyShareResponse) err := c.cc.Invoke(ctx, Query_GeneralKeyShare_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -180,8 +185,8 @@ func (c *queryClient) GeneralKeyShare(ctx context.Context, in *QueryGetGeneralKe return out, nil } -func (c *queryClient) GeneralKeyShareAll(ctx context.Context, in *QueryAllGeneralKeyShareRequest, opts ...grpc.CallOption) (*QueryAllGeneralKeyShareResponse, error) { - out := new(QueryAllGeneralKeyShareResponse) +func (c *queryClient) GeneralKeyShareAll(ctx context.Context, in *QueryGeneralKeyShareAllRequest, opts ...grpc.CallOption) (*QueryGeneralKeyShareAllResponse, error) { + out := new(QueryGeneralKeyShareAllResponse) err := c.cc.Invoke(ctx, Query_GeneralKeyShareAll_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -189,7 +194,7 @@ func (c *queryClient) GeneralKeyShareAll(ctx context.Context, in *QueryAllGenera return out, nil } -func (c *queryClient) VerifiableRandomness(ctx context.Context, in *QueryVerifiableRandomnessQuery, opts ...grpc.CallOption) (*QueryVerifiableRandomnessResponse, error) { +func (c *queryClient) VerifiableRandomness(ctx context.Context, in *QueryVerifiableRandomnessRequest, opts ...grpc.CallOption) (*QueryVerifiableRandomnessResponse, error) { out := new(QueryVerifiableRandomnessResponse) err := c.cc.Invoke(ctx, Query_VerifiableRandomness_FullMethodName, in, out, opts...) if err != nil { @@ -204,27 +209,32 @@ func (c *queryClient) VerifiableRandomness(ctx context.Context, in *QueryVerifia type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + // Commitments queries the lists of active and queued commitments Commitments(context.Context, *QueryCommitmentsRequest) (*QueryCommitmentsResponse, error) // Queries a ValidatorSet by index. - ValidatorSet(context.Context, *QueryGetValidatorSetRequest) (*QueryGetValidatorSetResponse, error) + ValidatorSet(context.Context, *QueryValidatorSetRequest) (*QueryValidatorSetResponse, error) // Queries a list of ValidatorSet items. - ValidatorSetAll(context.Context, *QueryAllValidatorSetRequest) (*QueryAllValidatorSetResponse, error) + ValidatorSetAll(context.Context, *QueryValidatorSetAllRequest) (*QueryValidatorSetAllResponse, error) // Queries a KeyShare by index. - KeyShare(context.Context, *QueryGetKeyShareRequest) (*QueryGetKeyShareResponse, error) + KeyShare(context.Context, *QueryKeyShareRequest) (*QueryKeyShareResponse, error) // Queries a list of KeyShare items. - KeyShareAll(context.Context, *QueryAllKeyShareRequest) (*QueryAllKeyShareResponse, error) - // Queries a list of AggregatedKeyShare items. - AggregatedKeyShare(context.Context, *QueryGetAggregatedKeyShareRequest) (*QueryGetAggregatedKeyShareResponse, error) - AggregatedKeyShareAll(context.Context, *QueryAllAggregatedKeyShareRequest) (*QueryAllAggregatedKeyShareResponse, error) + KeyShareAll(context.Context, *QueryKeyShareAllRequest) (*QueryKeyShareAllResponse, error) + // AggregatedKeyShare a AggregatedKeyShare item by height. + AggregatedKeyShare(context.Context, *QueryAggregatedKeyShareRequest) (*QueryAggregatedKeyShareResponse, error) + // AggregatedKeyShareAll Queries a list of AggregatedKeyShare items. + AggregatedKeyShareAll(context.Context, *QueryAggregatedKeyShareAllRequest) (*QueryAggregatedKeyShareAllResponse, error) // Queries the public keys PubKey(context.Context, *QueryPubKeyRequest) (*QueryPubKeyResponse, error) - // Queries a list of AuthorizedAddress items. - AuthorizedAddress(context.Context, *QueryGetAuthorizedAddressRequest) (*QueryGetAuthorizedAddressResponse, error) - AuthorizedAddressAll(context.Context, *QueryAllAuthorizedAddressRequest) (*QueryAllAuthorizedAddressResponse, error) - // Queries a list of GeneralKeyShare items. - GeneralKeyShare(context.Context, *QueryGetGeneralKeyShareRequest) (*QueryGetGeneralKeyShareResponse, error) - GeneralKeyShareAll(context.Context, *QueryAllGeneralKeyShareRequest) (*QueryAllGeneralKeyShareResponse, error) - VerifiableRandomness(context.Context, *QueryVerifiableRandomnessQuery) (*QueryVerifiableRandomnessResponse, error) + // Queries a AuthorizedAddress item by target. + AuthorizedAddress(context.Context, *QueryAuthorizedAddressRequest) (*QueryAuthorizedAddressResponse, error) + // Queries a list of AuthorizedAddress items + AuthorizedAddressAll(context.Context, *QueryAuthorizedAddressAllRequest) (*QueryAuthorizedAddressAllResponse, error) + // Queries a GeneralKeyShare item by validator address and identity. + GeneralKeyShare(context.Context, *QueryGeneralKeyShareRequest) (*QueryGeneralKeyShareResponse, error) + // Queries a list of GeneralKeyShare items + GeneralKeyShareAll(context.Context, *QueryGeneralKeyShareAllRequest) (*QueryGeneralKeyShareAllResponse, error) + // Queries verifiable randomness + VerifiableRandomness(context.Context, *QueryVerifiableRandomnessRequest) (*QueryVerifiableRandomnessResponse, error) mustEmbedUnimplementedQueryServer() } @@ -238,40 +248,40 @@ func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*Q func (UnimplementedQueryServer) Commitments(context.Context, *QueryCommitmentsRequest) (*QueryCommitmentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Commitments not implemented") } -func (UnimplementedQueryServer) ValidatorSet(context.Context, *QueryGetValidatorSetRequest) (*QueryGetValidatorSetResponse, error) { +func (UnimplementedQueryServer) ValidatorSet(context.Context, *QueryValidatorSetRequest) (*QueryValidatorSetResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValidatorSet not implemented") } -func (UnimplementedQueryServer) ValidatorSetAll(context.Context, *QueryAllValidatorSetRequest) (*QueryAllValidatorSetResponse, error) { +func (UnimplementedQueryServer) ValidatorSetAll(context.Context, *QueryValidatorSetAllRequest) (*QueryValidatorSetAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValidatorSetAll not implemented") } -func (UnimplementedQueryServer) KeyShare(context.Context, *QueryGetKeyShareRequest) (*QueryGetKeyShareResponse, error) { +func (UnimplementedQueryServer) KeyShare(context.Context, *QueryKeyShareRequest) (*QueryKeyShareResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KeyShare not implemented") } -func (UnimplementedQueryServer) KeyShareAll(context.Context, *QueryAllKeyShareRequest) (*QueryAllKeyShareResponse, error) { +func (UnimplementedQueryServer) KeyShareAll(context.Context, *QueryKeyShareAllRequest) (*QueryKeyShareAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KeyShareAll not implemented") } -func (UnimplementedQueryServer) AggregatedKeyShare(context.Context, *QueryGetAggregatedKeyShareRequest) (*QueryGetAggregatedKeyShareResponse, error) { +func (UnimplementedQueryServer) AggregatedKeyShare(context.Context, *QueryAggregatedKeyShareRequest) (*QueryAggregatedKeyShareResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AggregatedKeyShare not implemented") } -func (UnimplementedQueryServer) AggregatedKeyShareAll(context.Context, *QueryAllAggregatedKeyShareRequest) (*QueryAllAggregatedKeyShareResponse, error) { +func (UnimplementedQueryServer) AggregatedKeyShareAll(context.Context, *QueryAggregatedKeyShareAllRequest) (*QueryAggregatedKeyShareAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AggregatedKeyShareAll not implemented") } func (UnimplementedQueryServer) PubKey(context.Context, *QueryPubKeyRequest) (*QueryPubKeyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PubKey not implemented") } -func (UnimplementedQueryServer) AuthorizedAddress(context.Context, *QueryGetAuthorizedAddressRequest) (*QueryGetAuthorizedAddressResponse, error) { +func (UnimplementedQueryServer) AuthorizedAddress(context.Context, *QueryAuthorizedAddressRequest) (*QueryAuthorizedAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AuthorizedAddress not implemented") } -func (UnimplementedQueryServer) AuthorizedAddressAll(context.Context, *QueryAllAuthorizedAddressRequest) (*QueryAllAuthorizedAddressResponse, error) { +func (UnimplementedQueryServer) AuthorizedAddressAll(context.Context, *QueryAuthorizedAddressAllRequest) (*QueryAuthorizedAddressAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AuthorizedAddressAll not implemented") } -func (UnimplementedQueryServer) GeneralKeyShare(context.Context, *QueryGetGeneralKeyShareRequest) (*QueryGetGeneralKeyShareResponse, error) { +func (UnimplementedQueryServer) GeneralKeyShare(context.Context, *QueryGeneralKeyShareRequest) (*QueryGeneralKeyShareResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GeneralKeyShare not implemented") } -func (UnimplementedQueryServer) GeneralKeyShareAll(context.Context, *QueryAllGeneralKeyShareRequest) (*QueryAllGeneralKeyShareResponse, error) { +func (UnimplementedQueryServer) GeneralKeyShareAll(context.Context, *QueryGeneralKeyShareAllRequest) (*QueryGeneralKeyShareAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GeneralKeyShareAll not implemented") } -func (UnimplementedQueryServer) VerifiableRandomness(context.Context, *QueryVerifiableRandomnessQuery) (*QueryVerifiableRandomnessResponse, error) { +func (UnimplementedQueryServer) VerifiableRandomness(context.Context, *QueryVerifiableRandomnessRequest) (*QueryVerifiableRandomnessResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method VerifiableRandomness not implemented") } func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} @@ -324,7 +334,7 @@ func _Query_Commitments_Handler(srv interface{}, ctx context.Context, dec func(i } func _Query_ValidatorSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetValidatorSetRequest) + in := new(QueryValidatorSetRequest) if err := dec(in); err != nil { return nil, err } @@ -336,13 +346,13 @@ func _Query_ValidatorSet_Handler(srv interface{}, ctx context.Context, dec func( FullMethod: Query_ValidatorSet_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).ValidatorSet(ctx, req.(*QueryGetValidatorSetRequest)) + return srv.(QueryServer).ValidatorSet(ctx, req.(*QueryValidatorSetRequest)) } return interceptor(ctx, in, info, handler) } func _Query_ValidatorSetAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllValidatorSetRequest) + in := new(QueryValidatorSetAllRequest) if err := dec(in); err != nil { return nil, err } @@ -354,13 +364,13 @@ func _Query_ValidatorSetAll_Handler(srv interface{}, ctx context.Context, dec fu FullMethod: Query_ValidatorSetAll_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).ValidatorSetAll(ctx, req.(*QueryAllValidatorSetRequest)) + return srv.(QueryServer).ValidatorSetAll(ctx, req.(*QueryValidatorSetAllRequest)) } return interceptor(ctx, in, info, handler) } func _Query_KeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetKeyShareRequest) + in := new(QueryKeyShareRequest) if err := dec(in); err != nil { return nil, err } @@ -372,13 +382,13 @@ func _Query_KeyShare_Handler(srv interface{}, ctx context.Context, dec func(inte FullMethod: Query_KeyShare_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).KeyShare(ctx, req.(*QueryGetKeyShareRequest)) + return srv.(QueryServer).KeyShare(ctx, req.(*QueryKeyShareRequest)) } return interceptor(ctx, in, info, handler) } func _Query_KeyShareAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllKeyShareRequest) + in := new(QueryKeyShareAllRequest) if err := dec(in); err != nil { return nil, err } @@ -390,13 +400,13 @@ func _Query_KeyShareAll_Handler(srv interface{}, ctx context.Context, dec func(i FullMethod: Query_KeyShareAll_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).KeyShareAll(ctx, req.(*QueryAllKeyShareRequest)) + return srv.(QueryServer).KeyShareAll(ctx, req.(*QueryKeyShareAllRequest)) } return interceptor(ctx, in, info, handler) } func _Query_AggregatedKeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetAggregatedKeyShareRequest) + in := new(QueryAggregatedKeyShareRequest) if err := dec(in); err != nil { return nil, err } @@ -408,13 +418,13 @@ func _Query_AggregatedKeyShare_Handler(srv interface{}, ctx context.Context, dec FullMethod: Query_AggregatedKeyShare_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AggregatedKeyShare(ctx, req.(*QueryGetAggregatedKeyShareRequest)) + return srv.(QueryServer).AggregatedKeyShare(ctx, req.(*QueryAggregatedKeyShareRequest)) } return interceptor(ctx, in, info, handler) } func _Query_AggregatedKeyShareAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllAggregatedKeyShareRequest) + in := new(QueryAggregatedKeyShareAllRequest) if err := dec(in); err != nil { return nil, err } @@ -426,7 +436,7 @@ func _Query_AggregatedKeyShareAll_Handler(srv interface{}, ctx context.Context, FullMethod: Query_AggregatedKeyShareAll_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AggregatedKeyShareAll(ctx, req.(*QueryAllAggregatedKeyShareRequest)) + return srv.(QueryServer).AggregatedKeyShareAll(ctx, req.(*QueryAggregatedKeyShareAllRequest)) } return interceptor(ctx, in, info, handler) } @@ -450,7 +460,7 @@ func _Query_PubKey_Handler(srv interface{}, ctx context.Context, dec func(interf } func _Query_AuthorizedAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetAuthorizedAddressRequest) + in := new(QueryAuthorizedAddressRequest) if err := dec(in); err != nil { return nil, err } @@ -462,13 +472,13 @@ func _Query_AuthorizedAddress_Handler(srv interface{}, ctx context.Context, dec FullMethod: Query_AuthorizedAddress_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AuthorizedAddress(ctx, req.(*QueryGetAuthorizedAddressRequest)) + return srv.(QueryServer).AuthorizedAddress(ctx, req.(*QueryAuthorizedAddressRequest)) } return interceptor(ctx, in, info, handler) } func _Query_AuthorizedAddressAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllAuthorizedAddressRequest) + in := new(QueryAuthorizedAddressAllRequest) if err := dec(in); err != nil { return nil, err } @@ -480,13 +490,13 @@ func _Query_AuthorizedAddressAll_Handler(srv interface{}, ctx context.Context, d FullMethod: Query_AuthorizedAddressAll_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AuthorizedAddressAll(ctx, req.(*QueryAllAuthorizedAddressRequest)) + return srv.(QueryServer).AuthorizedAddressAll(ctx, req.(*QueryAuthorizedAddressAllRequest)) } return interceptor(ctx, in, info, handler) } func _Query_GeneralKeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetGeneralKeyShareRequest) + in := new(QueryGeneralKeyShareRequest) if err := dec(in); err != nil { return nil, err } @@ -498,13 +508,13 @@ func _Query_GeneralKeyShare_Handler(srv interface{}, ctx context.Context, dec fu FullMethod: Query_GeneralKeyShare_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GeneralKeyShare(ctx, req.(*QueryGetGeneralKeyShareRequest)) + return srv.(QueryServer).GeneralKeyShare(ctx, req.(*QueryGeneralKeyShareRequest)) } return interceptor(ctx, in, info, handler) } func _Query_GeneralKeyShareAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllGeneralKeyShareRequest) + in := new(QueryGeneralKeyShareAllRequest) if err := dec(in); err != nil { return nil, err } @@ -516,13 +526,13 @@ func _Query_GeneralKeyShareAll_Handler(srv interface{}, ctx context.Context, dec FullMethod: Query_GeneralKeyShareAll_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GeneralKeyShareAll(ctx, req.(*QueryAllGeneralKeyShareRequest)) + return srv.(QueryServer).GeneralKeyShareAll(ctx, req.(*QueryGeneralKeyShareAllRequest)) } return interceptor(ctx, in, info, handler) } func _Query_VerifiableRandomness_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryVerifiableRandomnessQuery) + in := new(QueryVerifiableRandomnessRequest) if err := dec(in); err != nil { return nil, err } @@ -534,7 +544,7 @@ func _Query_VerifiableRandomness_Handler(srv interface{}, ctx context.Context, d FullMethod: Query_VerifiableRandomness_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).VerifiableRandomness(ctx, req.(*QueryVerifiableRandomnessQuery)) + return srv.(QueryServer).VerifiableRandomness(ctx, req.(*QueryVerifiableRandomnessRequest)) } return interceptor(ctx, in, info, handler) } diff --git a/api/fairyring/keyshare/requested_keyshare.pulsar.go b/api/fairyring/keyshare/requested_keyshare.pulsar.go index 1de670e0..0e5de18a 100644 --- a/api/fairyring/keyshare/requested_keyshare.pulsar.go +++ b/api/fairyring/keyshare/requested_keyshare.pulsar.go @@ -902,20 +902,20 @@ func (x *fastReflection_KeyShareRequest) ProtoMethods() *protoiface.Methods { } var ( - md_IBCInfo protoreflect.MessageDescriptor - fd_IBCInfo_ClientID protoreflect.FieldDescriptor - fd_IBCInfo_ConnectionID protoreflect.FieldDescriptor - fd_IBCInfo_ChannelID protoreflect.FieldDescriptor - fd_IBCInfo_PortID protoreflect.FieldDescriptor + md_IBCInfo protoreflect.MessageDescriptor + fd_IBCInfo_client_id protoreflect.FieldDescriptor + fd_IBCInfo_connection_id protoreflect.FieldDescriptor + fd_IBCInfo_channel_id protoreflect.FieldDescriptor + fd_IBCInfo_port_id protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_requested_keyshare_proto_init() md_IBCInfo = File_fairyring_keyshare_requested_keyshare_proto.Messages().ByName("IBCInfo") - fd_IBCInfo_ClientID = md_IBCInfo.Fields().ByName("ClientID") - fd_IBCInfo_ConnectionID = md_IBCInfo.Fields().ByName("ConnectionID") - fd_IBCInfo_ChannelID = md_IBCInfo.Fields().ByName("ChannelID") - fd_IBCInfo_PortID = md_IBCInfo.Fields().ByName("PortID") + fd_IBCInfo_client_id = md_IBCInfo.Fields().ByName("client_id") + fd_IBCInfo_connection_id = md_IBCInfo.Fields().ByName("connection_id") + fd_IBCInfo_channel_id = md_IBCInfo.Fields().ByName("channel_id") + fd_IBCInfo_port_id = md_IBCInfo.Fields().ByName("port_id") } var _ protoreflect.Message = (*fastReflection_IBCInfo)(nil) @@ -983,27 +983,27 @@ func (x *fastReflection_IBCInfo) Interface() protoreflect.ProtoMessage { // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_IBCInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ClientID != "" { - value := protoreflect.ValueOfString(x.ClientID) - if !f(fd_IBCInfo_ClientID, value) { + if x.ClientId != "" { + value := protoreflect.ValueOfString(x.ClientId) + if !f(fd_IBCInfo_client_id, value) { return } } - if x.ConnectionID != "" { - value := protoreflect.ValueOfString(x.ConnectionID) - if !f(fd_IBCInfo_ConnectionID, value) { + if x.ConnectionId != "" { + value := protoreflect.ValueOfString(x.ConnectionId) + if !f(fd_IBCInfo_connection_id, value) { return } } - if x.ChannelID != "" { - value := protoreflect.ValueOfString(x.ChannelID) - if !f(fd_IBCInfo_ChannelID, value) { + if x.ChannelId != "" { + value := protoreflect.ValueOfString(x.ChannelId) + if !f(fd_IBCInfo_channel_id, value) { return } } - if x.PortID != "" { - value := protoreflect.ValueOfString(x.PortID) - if !f(fd_IBCInfo_PortID, value) { + if x.PortId != "" { + value := protoreflect.ValueOfString(x.PortId) + if !f(fd_IBCInfo_port_id, value) { return } } @@ -1022,14 +1022,14 @@ func (x *fastReflection_IBCInfo) Range(f func(protoreflect.FieldDescriptor, prot // a repeated field is populated if it is non-empty. func (x *fastReflection_IBCInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.IBCInfo.ClientID": - return x.ClientID != "" - case "fairyring.keyshare.IBCInfo.ConnectionID": - return x.ConnectionID != "" - case "fairyring.keyshare.IBCInfo.ChannelID": - return x.ChannelID != "" - case "fairyring.keyshare.IBCInfo.PortID": - return x.PortID != "" + case "fairyring.keyshare.IBCInfo.client_id": + return x.ClientId != "" + case "fairyring.keyshare.IBCInfo.connection_id": + return x.ConnectionId != "" + case "fairyring.keyshare.IBCInfo.channel_id": + return x.ChannelId != "" + case "fairyring.keyshare.IBCInfo.port_id": + return x.PortId != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.IBCInfo")) @@ -1046,14 +1046,14 @@ func (x *fastReflection_IBCInfo) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_IBCInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.IBCInfo.ClientID": - x.ClientID = "" - case "fairyring.keyshare.IBCInfo.ConnectionID": - x.ConnectionID = "" - case "fairyring.keyshare.IBCInfo.ChannelID": - x.ChannelID = "" - case "fairyring.keyshare.IBCInfo.PortID": - x.PortID = "" + case "fairyring.keyshare.IBCInfo.client_id": + x.ClientId = "" + case "fairyring.keyshare.IBCInfo.connection_id": + x.ConnectionId = "" + case "fairyring.keyshare.IBCInfo.channel_id": + x.ChannelId = "" + case "fairyring.keyshare.IBCInfo.port_id": + x.PortId = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.IBCInfo")) @@ -1070,17 +1070,17 @@ func (x *fastReflection_IBCInfo) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_IBCInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.IBCInfo.ClientID": - value := x.ClientID + case "fairyring.keyshare.IBCInfo.client_id": + value := x.ClientId return protoreflect.ValueOfString(value) - case "fairyring.keyshare.IBCInfo.ConnectionID": - value := x.ConnectionID + case "fairyring.keyshare.IBCInfo.connection_id": + value := x.ConnectionId return protoreflect.ValueOfString(value) - case "fairyring.keyshare.IBCInfo.ChannelID": - value := x.ChannelID + case "fairyring.keyshare.IBCInfo.channel_id": + value := x.ChannelId return protoreflect.ValueOfString(value) - case "fairyring.keyshare.IBCInfo.PortID": - value := x.PortID + case "fairyring.keyshare.IBCInfo.port_id": + value := x.PortId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { @@ -1102,14 +1102,14 @@ func (x *fastReflection_IBCInfo) Get(descriptor protoreflect.FieldDescriptor) pr // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_IBCInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.IBCInfo.ClientID": - x.ClientID = value.Interface().(string) - case "fairyring.keyshare.IBCInfo.ConnectionID": - x.ConnectionID = value.Interface().(string) - case "fairyring.keyshare.IBCInfo.ChannelID": - x.ChannelID = value.Interface().(string) - case "fairyring.keyshare.IBCInfo.PortID": - x.PortID = value.Interface().(string) + case "fairyring.keyshare.IBCInfo.client_id": + x.ClientId = value.Interface().(string) + case "fairyring.keyshare.IBCInfo.connection_id": + x.ConnectionId = value.Interface().(string) + case "fairyring.keyshare.IBCInfo.channel_id": + x.ChannelId = value.Interface().(string) + case "fairyring.keyshare.IBCInfo.port_id": + x.PortId = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.IBCInfo")) @@ -1130,14 +1130,14 @@ func (x *fastReflection_IBCInfo) Set(fd protoreflect.FieldDescriptor, value prot // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_IBCInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.IBCInfo.ClientID": - panic(fmt.Errorf("field ClientID of message fairyring.keyshare.IBCInfo is not mutable")) - case "fairyring.keyshare.IBCInfo.ConnectionID": - panic(fmt.Errorf("field ConnectionID of message fairyring.keyshare.IBCInfo is not mutable")) - case "fairyring.keyshare.IBCInfo.ChannelID": - panic(fmt.Errorf("field ChannelID of message fairyring.keyshare.IBCInfo is not mutable")) - case "fairyring.keyshare.IBCInfo.PortID": - panic(fmt.Errorf("field PortID of message fairyring.keyshare.IBCInfo is not mutable")) + case "fairyring.keyshare.IBCInfo.client_id": + panic(fmt.Errorf("field client_id of message fairyring.keyshare.IBCInfo is not mutable")) + case "fairyring.keyshare.IBCInfo.connection_id": + panic(fmt.Errorf("field connection_id of message fairyring.keyshare.IBCInfo is not mutable")) + case "fairyring.keyshare.IBCInfo.channel_id": + panic(fmt.Errorf("field channel_id of message fairyring.keyshare.IBCInfo is not mutable")) + case "fairyring.keyshare.IBCInfo.port_id": + panic(fmt.Errorf("field port_id of message fairyring.keyshare.IBCInfo is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.IBCInfo")) @@ -1151,13 +1151,13 @@ func (x *fastReflection_IBCInfo) Mutable(fd protoreflect.FieldDescriptor) protor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_IBCInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.IBCInfo.ClientID": + case "fairyring.keyshare.IBCInfo.client_id": return protoreflect.ValueOfString("") - case "fairyring.keyshare.IBCInfo.ConnectionID": + case "fairyring.keyshare.IBCInfo.connection_id": return protoreflect.ValueOfString("") - case "fairyring.keyshare.IBCInfo.ChannelID": + case "fairyring.keyshare.IBCInfo.channel_id": return protoreflect.ValueOfString("") - case "fairyring.keyshare.IBCInfo.PortID": + case "fairyring.keyshare.IBCInfo.port_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { @@ -1228,19 +1228,19 @@ func (x *fastReflection_IBCInfo) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.ClientID) + l = len(x.ClientId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.ConnectionID) + l = len(x.ConnectionId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.ChannelID) + l = len(x.ChannelId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.PortID) + l = len(x.PortId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -1273,31 +1273,31 @@ func (x *fastReflection_IBCInfo) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.PortID) > 0 { - i -= len(x.PortID) - copy(dAtA[i:], x.PortID) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PortID))) + if len(x.PortId) > 0 { + i -= len(x.PortId) + copy(dAtA[i:], x.PortId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PortId))) i-- dAtA[i] = 0x22 } - if len(x.ChannelID) > 0 { - i -= len(x.ChannelID) - copy(dAtA[i:], x.ChannelID) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ChannelID))) + if len(x.ChannelId) > 0 { + i -= len(x.ChannelId) + copy(dAtA[i:], x.ChannelId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ChannelId))) i-- dAtA[i] = 0x1a } - if len(x.ConnectionID) > 0 { - i -= len(x.ConnectionID) - copy(dAtA[i:], x.ConnectionID) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ConnectionID))) + if len(x.ConnectionId) > 0 { + i -= len(x.ConnectionId) + copy(dAtA[i:], x.ConnectionId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ConnectionId))) i-- dAtA[i] = 0x12 } - if len(x.ClientID) > 0 { - i -= len(x.ClientID) - copy(dAtA[i:], x.ClientID) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClientID))) + if len(x.ClientId) > 0 { + i -= len(x.ClientId) + copy(dAtA[i:], x.ClientId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClientId))) i-- dAtA[i] = 0xa } @@ -1352,7 +1352,7 @@ func (x *fastReflection_IBCInfo) ProtoMethods() *protoiface.Methods { switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClientID", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClientId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1380,11 +1380,11 @@ func (x *fastReflection_IBCInfo) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ClientID = string(dAtA[iNdEx:postIndex]) + x.ClientId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ConnectionID", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ConnectionId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1412,11 +1412,11 @@ func (x *fastReflection_IBCInfo) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ConnectionID = string(dAtA[iNdEx:postIndex]) + x.ConnectionId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChannelID", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1444,11 +1444,11 @@ func (x *fastReflection_IBCInfo) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ChannelID = string(dAtA[iNdEx:postIndex]) + x.ChannelId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PortID", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1476,7 +1476,7 @@ func (x *fastReflection_IBCInfo) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.PortID = string(dAtA[iNdEx:postIndex]) + x.PortId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -1514,20 +1514,20 @@ func (x *fastReflection_IBCInfo) ProtoMethods() *protoiface.Methods { } var ( - md_CounterPartyIBCInfo protoreflect.MessageDescriptor - fd_CounterPartyIBCInfo_ClientID protoreflect.FieldDescriptor - fd_CounterPartyIBCInfo_ConnectionID protoreflect.FieldDescriptor - fd_CounterPartyIBCInfo_ChannelID protoreflect.FieldDescriptor - fd_CounterPartyIBCInfo_PortID protoreflect.FieldDescriptor + md_CounterPartyIBCInfo protoreflect.MessageDescriptor + fd_CounterPartyIBCInfo_client_id protoreflect.FieldDescriptor + fd_CounterPartyIBCInfo_connection_id protoreflect.FieldDescriptor + fd_CounterPartyIBCInfo_channel_id protoreflect.FieldDescriptor + fd_CounterPartyIBCInfo_port_id protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_requested_keyshare_proto_init() md_CounterPartyIBCInfo = File_fairyring_keyshare_requested_keyshare_proto.Messages().ByName("CounterPartyIBCInfo") - fd_CounterPartyIBCInfo_ClientID = md_CounterPartyIBCInfo.Fields().ByName("ClientID") - fd_CounterPartyIBCInfo_ConnectionID = md_CounterPartyIBCInfo.Fields().ByName("ConnectionID") - fd_CounterPartyIBCInfo_ChannelID = md_CounterPartyIBCInfo.Fields().ByName("ChannelID") - fd_CounterPartyIBCInfo_PortID = md_CounterPartyIBCInfo.Fields().ByName("PortID") + fd_CounterPartyIBCInfo_client_id = md_CounterPartyIBCInfo.Fields().ByName("client_id") + fd_CounterPartyIBCInfo_connection_id = md_CounterPartyIBCInfo.Fields().ByName("connection_id") + fd_CounterPartyIBCInfo_channel_id = md_CounterPartyIBCInfo.Fields().ByName("channel_id") + fd_CounterPartyIBCInfo_port_id = md_CounterPartyIBCInfo.Fields().ByName("port_id") } var _ protoreflect.Message = (*fastReflection_CounterPartyIBCInfo)(nil) @@ -1595,27 +1595,27 @@ func (x *fastReflection_CounterPartyIBCInfo) Interface() protoreflect.ProtoMessa // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_CounterPartyIBCInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ClientID != "" { - value := protoreflect.ValueOfString(x.ClientID) - if !f(fd_CounterPartyIBCInfo_ClientID, value) { + if x.ClientId != "" { + value := protoreflect.ValueOfString(x.ClientId) + if !f(fd_CounterPartyIBCInfo_client_id, value) { return } } - if x.ConnectionID != "" { - value := protoreflect.ValueOfString(x.ConnectionID) - if !f(fd_CounterPartyIBCInfo_ConnectionID, value) { + if x.ConnectionId != "" { + value := protoreflect.ValueOfString(x.ConnectionId) + if !f(fd_CounterPartyIBCInfo_connection_id, value) { return } } - if x.ChannelID != "" { - value := protoreflect.ValueOfString(x.ChannelID) - if !f(fd_CounterPartyIBCInfo_ChannelID, value) { + if x.ChannelId != "" { + value := protoreflect.ValueOfString(x.ChannelId) + if !f(fd_CounterPartyIBCInfo_channel_id, value) { return } } - if x.PortID != "" { - value := protoreflect.ValueOfString(x.PortID) - if !f(fd_CounterPartyIBCInfo_PortID, value) { + if x.PortId != "" { + value := protoreflect.ValueOfString(x.PortId) + if !f(fd_CounterPartyIBCInfo_port_id, value) { return } } @@ -1634,14 +1634,14 @@ func (x *fastReflection_CounterPartyIBCInfo) Range(f func(protoreflect.FieldDesc // a repeated field is populated if it is non-empty. func (x *fastReflection_CounterPartyIBCInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.CounterPartyIBCInfo.ClientID": - return x.ClientID != "" - case "fairyring.keyshare.CounterPartyIBCInfo.ConnectionID": - return x.ConnectionID != "" - case "fairyring.keyshare.CounterPartyIBCInfo.ChannelID": - return x.ChannelID != "" - case "fairyring.keyshare.CounterPartyIBCInfo.PortID": - return x.PortID != "" + case "fairyring.keyshare.CounterPartyIBCInfo.client_id": + return x.ClientId != "" + case "fairyring.keyshare.CounterPartyIBCInfo.connection_id": + return x.ConnectionId != "" + case "fairyring.keyshare.CounterPartyIBCInfo.channel_id": + return x.ChannelId != "" + case "fairyring.keyshare.CounterPartyIBCInfo.port_id": + return x.PortId != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.CounterPartyIBCInfo")) @@ -1658,14 +1658,14 @@ func (x *fastReflection_CounterPartyIBCInfo) Has(fd protoreflect.FieldDescriptor // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_CounterPartyIBCInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.CounterPartyIBCInfo.ClientID": - x.ClientID = "" - case "fairyring.keyshare.CounterPartyIBCInfo.ConnectionID": - x.ConnectionID = "" - case "fairyring.keyshare.CounterPartyIBCInfo.ChannelID": - x.ChannelID = "" - case "fairyring.keyshare.CounterPartyIBCInfo.PortID": - x.PortID = "" + case "fairyring.keyshare.CounterPartyIBCInfo.client_id": + x.ClientId = "" + case "fairyring.keyshare.CounterPartyIBCInfo.connection_id": + x.ConnectionId = "" + case "fairyring.keyshare.CounterPartyIBCInfo.channel_id": + x.ChannelId = "" + case "fairyring.keyshare.CounterPartyIBCInfo.port_id": + x.PortId = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.CounterPartyIBCInfo")) @@ -1682,17 +1682,17 @@ func (x *fastReflection_CounterPartyIBCInfo) Clear(fd protoreflect.FieldDescript // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_CounterPartyIBCInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.CounterPartyIBCInfo.ClientID": - value := x.ClientID + case "fairyring.keyshare.CounterPartyIBCInfo.client_id": + value := x.ClientId return protoreflect.ValueOfString(value) - case "fairyring.keyshare.CounterPartyIBCInfo.ConnectionID": - value := x.ConnectionID + case "fairyring.keyshare.CounterPartyIBCInfo.connection_id": + value := x.ConnectionId return protoreflect.ValueOfString(value) - case "fairyring.keyshare.CounterPartyIBCInfo.ChannelID": - value := x.ChannelID + case "fairyring.keyshare.CounterPartyIBCInfo.channel_id": + value := x.ChannelId return protoreflect.ValueOfString(value) - case "fairyring.keyshare.CounterPartyIBCInfo.PortID": - value := x.PortID + case "fairyring.keyshare.CounterPartyIBCInfo.port_id": + value := x.PortId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { @@ -1714,14 +1714,14 @@ func (x *fastReflection_CounterPartyIBCInfo) Get(descriptor protoreflect.FieldDe // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_CounterPartyIBCInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.CounterPartyIBCInfo.ClientID": - x.ClientID = value.Interface().(string) - case "fairyring.keyshare.CounterPartyIBCInfo.ConnectionID": - x.ConnectionID = value.Interface().(string) - case "fairyring.keyshare.CounterPartyIBCInfo.ChannelID": - x.ChannelID = value.Interface().(string) - case "fairyring.keyshare.CounterPartyIBCInfo.PortID": - x.PortID = value.Interface().(string) + case "fairyring.keyshare.CounterPartyIBCInfo.client_id": + x.ClientId = value.Interface().(string) + case "fairyring.keyshare.CounterPartyIBCInfo.connection_id": + x.ConnectionId = value.Interface().(string) + case "fairyring.keyshare.CounterPartyIBCInfo.channel_id": + x.ChannelId = value.Interface().(string) + case "fairyring.keyshare.CounterPartyIBCInfo.port_id": + x.PortId = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.CounterPartyIBCInfo")) @@ -1742,14 +1742,14 @@ func (x *fastReflection_CounterPartyIBCInfo) Set(fd protoreflect.FieldDescriptor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_CounterPartyIBCInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.CounterPartyIBCInfo.ClientID": - panic(fmt.Errorf("field ClientID of message fairyring.keyshare.CounterPartyIBCInfo is not mutable")) - case "fairyring.keyshare.CounterPartyIBCInfo.ConnectionID": - panic(fmt.Errorf("field ConnectionID of message fairyring.keyshare.CounterPartyIBCInfo is not mutable")) - case "fairyring.keyshare.CounterPartyIBCInfo.ChannelID": - panic(fmt.Errorf("field ChannelID of message fairyring.keyshare.CounterPartyIBCInfo is not mutable")) - case "fairyring.keyshare.CounterPartyIBCInfo.PortID": - panic(fmt.Errorf("field PortID of message fairyring.keyshare.CounterPartyIBCInfo is not mutable")) + case "fairyring.keyshare.CounterPartyIBCInfo.client_id": + panic(fmt.Errorf("field client_id of message fairyring.keyshare.CounterPartyIBCInfo is not mutable")) + case "fairyring.keyshare.CounterPartyIBCInfo.connection_id": + panic(fmt.Errorf("field connection_id of message fairyring.keyshare.CounterPartyIBCInfo is not mutable")) + case "fairyring.keyshare.CounterPartyIBCInfo.channel_id": + panic(fmt.Errorf("field channel_id of message fairyring.keyshare.CounterPartyIBCInfo is not mutable")) + case "fairyring.keyshare.CounterPartyIBCInfo.port_id": + panic(fmt.Errorf("field port_id of message fairyring.keyshare.CounterPartyIBCInfo is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.CounterPartyIBCInfo")) @@ -1763,13 +1763,13 @@ func (x *fastReflection_CounterPartyIBCInfo) Mutable(fd protoreflect.FieldDescri // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_CounterPartyIBCInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.CounterPartyIBCInfo.ClientID": + case "fairyring.keyshare.CounterPartyIBCInfo.client_id": return protoreflect.ValueOfString("") - case "fairyring.keyshare.CounterPartyIBCInfo.ConnectionID": + case "fairyring.keyshare.CounterPartyIBCInfo.connection_id": return protoreflect.ValueOfString("") - case "fairyring.keyshare.CounterPartyIBCInfo.ChannelID": + case "fairyring.keyshare.CounterPartyIBCInfo.channel_id": return protoreflect.ValueOfString("") - case "fairyring.keyshare.CounterPartyIBCInfo.PortID": + case "fairyring.keyshare.CounterPartyIBCInfo.port_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { @@ -1840,19 +1840,19 @@ func (x *fastReflection_CounterPartyIBCInfo) ProtoMethods() *protoiface.Methods var n int var l int _ = l - l = len(x.ClientID) + l = len(x.ClientId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.ConnectionID) + l = len(x.ConnectionId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.ChannelID) + l = len(x.ChannelId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.PortID) + l = len(x.PortId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -1885,31 +1885,31 @@ func (x *fastReflection_CounterPartyIBCInfo) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.PortID) > 0 { - i -= len(x.PortID) - copy(dAtA[i:], x.PortID) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PortID))) + if len(x.PortId) > 0 { + i -= len(x.PortId) + copy(dAtA[i:], x.PortId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PortId))) i-- dAtA[i] = 0x22 } - if len(x.ChannelID) > 0 { - i -= len(x.ChannelID) - copy(dAtA[i:], x.ChannelID) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ChannelID))) + if len(x.ChannelId) > 0 { + i -= len(x.ChannelId) + copy(dAtA[i:], x.ChannelId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ChannelId))) i-- dAtA[i] = 0x1a } - if len(x.ConnectionID) > 0 { - i -= len(x.ConnectionID) - copy(dAtA[i:], x.ConnectionID) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ConnectionID))) + if len(x.ConnectionId) > 0 { + i -= len(x.ConnectionId) + copy(dAtA[i:], x.ConnectionId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ConnectionId))) i-- dAtA[i] = 0x12 } - if len(x.ClientID) > 0 { - i -= len(x.ClientID) - copy(dAtA[i:], x.ClientID) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClientID))) + if len(x.ClientId) > 0 { + i -= len(x.ClientId) + copy(dAtA[i:], x.ClientId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ClientId))) i-- dAtA[i] = 0xa } @@ -1964,7 +1964,7 @@ func (x *fastReflection_CounterPartyIBCInfo) ProtoMethods() *protoiface.Methods switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClientID", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ClientId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1992,11 +1992,11 @@ func (x *fastReflection_CounterPartyIBCInfo) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ClientID = string(dAtA[iNdEx:postIndex]) + x.ClientId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ConnectionID", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ConnectionId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2024,11 +2024,11 @@ func (x *fastReflection_CounterPartyIBCInfo) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ConnectionID = string(dAtA[iNdEx:postIndex]) + x.ConnectionId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChannelID", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2056,11 +2056,11 @@ func (x *fastReflection_CounterPartyIBCInfo) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ChannelID = string(dAtA[iNdEx:postIndex]) + x.ChannelId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PortID", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2088,7 +2088,7 @@ func (x *fastReflection_CounterPartyIBCInfo) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.PortID = string(dAtA[iNdEx:postIndex]) + x.PortId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -3036,6 +3036,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// KeyShareRequest defines the storage structure for general keyshare requests type KeyShareRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3127,15 +3128,17 @@ func (x *KeyShareRequest) GetSent() bool { return false } +// IBCInfo defines the structure to verify request for +// aggregated and encrypted keyshares in case the request was made over IBC type IBCInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ClientID string `protobuf:"bytes,1,opt,name=ClientID,proto3" json:"ClientID,omitempty"` - ConnectionID string `protobuf:"bytes,2,opt,name=ConnectionID,proto3" json:"ConnectionID,omitempty"` - ChannelID string `protobuf:"bytes,3,opt,name=ChannelID,proto3" json:"ChannelID,omitempty"` - PortID string `protobuf:"bytes,4,opt,name=PortID,proto3" json:"PortID,omitempty"` + ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` + ChannelId string `protobuf:"bytes,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + PortId string `protobuf:"bytes,4,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` } func (x *IBCInfo) Reset() { @@ -3158,43 +3161,45 @@ func (*IBCInfo) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_requested_keyshare_proto_rawDescGZIP(), []int{1} } -func (x *IBCInfo) GetClientID() string { +func (x *IBCInfo) GetClientId() string { if x != nil { - return x.ClientID + return x.ClientId } return "" } -func (x *IBCInfo) GetConnectionID() string { +func (x *IBCInfo) GetConnectionId() string { if x != nil { - return x.ConnectionID + return x.ConnectionId } return "" } -func (x *IBCInfo) GetChannelID() string { +func (x *IBCInfo) GetChannelId() string { if x != nil { - return x.ChannelID + return x.ChannelId } return "" } -func (x *IBCInfo) GetPortID() string { +func (x *IBCInfo) GetPortId() string { if x != nil { - return x.PortID + return x.PortId } return "" } +// CounterPartyIBCInfo defines the structure to send aggregated +// and encrypted keyshares if the request was made over IBC type CounterPartyIBCInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ClientID string `protobuf:"bytes,1,opt,name=ClientID,proto3" json:"ClientID,omitempty"` - ConnectionID string `protobuf:"bytes,2,opt,name=ConnectionID,proto3" json:"ConnectionID,omitempty"` - ChannelID string `protobuf:"bytes,3,opt,name=ChannelID,proto3" json:"ChannelID,omitempty"` - PortID string `protobuf:"bytes,4,opt,name=PortID,proto3" json:"PortID,omitempty"` + ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` + ChannelId string `protobuf:"bytes,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + PortId string `protobuf:"bytes,4,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` } func (x *CounterPartyIBCInfo) Reset() { @@ -3217,34 +3222,36 @@ func (*CounterPartyIBCInfo) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_requested_keyshare_proto_rawDescGZIP(), []int{2} } -func (x *CounterPartyIBCInfo) GetClientID() string { +func (x *CounterPartyIBCInfo) GetClientId() string { if x != nil { - return x.ClientID + return x.ClientId } return "" } -func (x *CounterPartyIBCInfo) GetConnectionID() string { +func (x *CounterPartyIBCInfo) GetConnectionId() string { if x != nil { - return x.ConnectionID + return x.ConnectionId } return "" } -func (x *CounterPartyIBCInfo) GetChannelID() string { +func (x *CounterPartyIBCInfo) GetChannelId() string { if x != nil { - return x.ChannelID + return x.ChannelId } return "" } -func (x *CounterPartyIBCInfo) GetPortID() string { +func (x *CounterPartyIBCInfo) GetPortId() string { if x != nil { - return x.PortID + return x.PortId } return "" } +// PrivateKeyshareRequest defines the stroage structure for private +// encrypted and unaggregated keyshare requests type PrivateKeyshareRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3357,59 +3364,59 @@ var file_fairyring_keyshare_requested_keyshare_proto_rawDesc = []byte{ 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x6e, 0x74, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x73, 0x65, 0x6e, 0x74, 0x22, 0x7f, 0x0a, 0x07, - 0x49, 0x42, 0x43, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x43, 0x6c, 0x69, 0x65, 0x6e, - 0x74, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x43, 0x6c, 0x69, 0x65, 0x6e, - 0x74, 0x49, 0x44, 0x12, 0x22, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x43, 0x68, 0x61, 0x6e, 0x6e, - 0x65, 0x6c, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x43, 0x68, 0x61, 0x6e, - 0x6e, 0x65, 0x6c, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x6f, 0x72, 0x74, 0x49, 0x44, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x50, 0x6f, 0x72, 0x74, 0x49, 0x44, 0x22, 0x8b, 0x01, - 0x0a, 0x13, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x79, 0x49, 0x42, - 0x43, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, - 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, - 0x44, 0x12, 0x22, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, - 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, - 0x6c, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x50, 0x6f, 0x72, 0x74, 0x49, 0x44, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x50, 0x6f, 0x72, 0x74, 0x49, 0x44, 0x22, 0xda, 0x02, 0x0a, 0x16, - 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x36, 0x0a, 0x08, 0x69, 0x62, - 0x63, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x2e, 0x49, 0x42, 0x43, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x69, 0x62, 0x63, 0x49, 0x6e, - 0x66, 0x6f, 0x12, 0x4b, 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x61, 0x72, - 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x43, 0x6f, - 0x75, 0x6e, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x79, 0x49, 0x42, 0x43, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x61, 0x72, 0x74, 0x79, 0x12, - 0x54, 0x0a, 0x13, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, - 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x04, 0x73, 0x65, 0x6e, 0x74, 0x42, 0xbe, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x42, 0x16, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, - 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, - 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x73, 0x65, 0x6e, 0x74, 0x22, 0x83, 0x01, 0x0a, + 0x07, 0x49, 0x42, 0x43, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, + 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, + 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x6f, 0x72, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x72, 0x74, + 0x49, 0x64, 0x22, 0x8f, 0x01, 0x0a, 0x13, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x50, 0x61, + 0x72, 0x74, 0x79, 0x49, 0x42, 0x43, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, + 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, + 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x70, + 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, + 0x72, 0x74, 0x49, 0x64, 0x22, 0xda, 0x02, 0x0a, 0x16, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, + 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, + 0x6b, 0x65, 0x79, 0x12, 0x36, 0x0a, 0x08, 0x69, 0x62, 0x63, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x49, 0x42, 0x43, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x07, 0x69, 0x62, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x4b, 0x0a, 0x0c, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x50, 0x61, + 0x72, 0x74, 0x79, 0x49, 0x42, 0x43, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x65, 0x72, 0x70, 0x61, 0x72, 0x74, 0x79, 0x12, 0x54, 0x0a, 0x13, 0x65, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, + 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x1d, + 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x73, 0x65, 0x6e, + 0x74, 0x42, 0xbe, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x16, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, + 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/fairyring/keyshare/tx.pulsar.go b/api/fairyring/keyshare/tx.pulsar.go index 4557f0dd..c861f41e 100644 --- a/api/fairyring/keyshare/tx.pulsar.go +++ b/api/fairyring/keyshare/tx.pulsar.go @@ -2552,11 +2552,11 @@ func (x *fastReflection_MsgDeRegisterValidatorResponse) ProtoMethods() *protoifa } var ( - md_MsgSendKeyshare protoreflect.MessageDescriptor - fd_MsgSendKeyshare_creator protoreflect.FieldDescriptor - fd_MsgSendKeyshare_message protoreflect.FieldDescriptor - fd_MsgSendKeyshare_keyShareIndex protoreflect.FieldDescriptor - fd_MsgSendKeyshare_blockHeight protoreflect.FieldDescriptor + md_MsgSendKeyshare protoreflect.MessageDescriptor + fd_MsgSendKeyshare_creator protoreflect.FieldDescriptor + fd_MsgSendKeyshare_message protoreflect.FieldDescriptor + fd_MsgSendKeyshare_key_share_index protoreflect.FieldDescriptor + fd_MsgSendKeyshare_block_height protoreflect.FieldDescriptor ) func init() { @@ -2564,8 +2564,8 @@ func init() { md_MsgSendKeyshare = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgSendKeyshare") fd_MsgSendKeyshare_creator = md_MsgSendKeyshare.Fields().ByName("creator") fd_MsgSendKeyshare_message = md_MsgSendKeyshare.Fields().ByName("message") - fd_MsgSendKeyshare_keyShareIndex = md_MsgSendKeyshare.Fields().ByName("keyShareIndex") - fd_MsgSendKeyshare_blockHeight = md_MsgSendKeyshare.Fields().ByName("blockHeight") + fd_MsgSendKeyshare_key_share_index = md_MsgSendKeyshare.Fields().ByName("key_share_index") + fd_MsgSendKeyshare_block_height = md_MsgSendKeyshare.Fields().ByName("block_height") } var _ protoreflect.Message = (*fastReflection_MsgSendKeyshare)(nil) @@ -2647,13 +2647,13 @@ func (x *fastReflection_MsgSendKeyshare) Range(f func(protoreflect.FieldDescript } if x.KeyShareIndex != uint64(0) { value := protoreflect.ValueOfUint64(x.KeyShareIndex) - if !f(fd_MsgSendKeyshare_keyShareIndex, value) { + if !f(fd_MsgSendKeyshare_key_share_index, value) { return } } if x.BlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.BlockHeight) - if !f(fd_MsgSendKeyshare_blockHeight, value) { + if !f(fd_MsgSendKeyshare_block_height, value) { return } } @@ -2676,9 +2676,9 @@ func (x *fastReflection_MsgSendKeyshare) Has(fd protoreflect.FieldDescriptor) bo return x.Creator != "" case "fairyring.keyshare.MsgSendKeyshare.message": return x.Message != "" - case "fairyring.keyshare.MsgSendKeyshare.keyShareIndex": + case "fairyring.keyshare.MsgSendKeyshare.key_share_index": return x.KeyShareIndex != uint64(0) - case "fairyring.keyshare.MsgSendKeyshare.blockHeight": + case "fairyring.keyshare.MsgSendKeyshare.block_height": return x.BlockHeight != uint64(0) default: if fd.IsExtension() { @@ -2700,9 +2700,9 @@ func (x *fastReflection_MsgSendKeyshare) Clear(fd protoreflect.FieldDescriptor) x.Creator = "" case "fairyring.keyshare.MsgSendKeyshare.message": x.Message = "" - case "fairyring.keyshare.MsgSendKeyshare.keyShareIndex": + case "fairyring.keyshare.MsgSendKeyshare.key_share_index": x.KeyShareIndex = uint64(0) - case "fairyring.keyshare.MsgSendKeyshare.blockHeight": + case "fairyring.keyshare.MsgSendKeyshare.block_height": x.BlockHeight = uint64(0) default: if fd.IsExtension() { @@ -2726,10 +2726,10 @@ func (x *fastReflection_MsgSendKeyshare) Get(descriptor protoreflect.FieldDescri case "fairyring.keyshare.MsgSendKeyshare.message": value := x.Message return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgSendKeyshare.keyShareIndex": + case "fairyring.keyshare.MsgSendKeyshare.key_share_index": value := x.KeyShareIndex return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgSendKeyshare.blockHeight": + case "fairyring.keyshare.MsgSendKeyshare.block_height": value := x.BlockHeight return protoreflect.ValueOfUint64(value) default: @@ -2756,9 +2756,9 @@ func (x *fastReflection_MsgSendKeyshare) Set(fd protoreflect.FieldDescriptor, va x.Creator = value.Interface().(string) case "fairyring.keyshare.MsgSendKeyshare.message": x.Message = value.Interface().(string) - case "fairyring.keyshare.MsgSendKeyshare.keyShareIndex": + case "fairyring.keyshare.MsgSendKeyshare.key_share_index": x.KeyShareIndex = value.Uint() - case "fairyring.keyshare.MsgSendKeyshare.blockHeight": + case "fairyring.keyshare.MsgSendKeyshare.block_height": x.BlockHeight = value.Uint() default: if fd.IsExtension() { @@ -2784,10 +2784,10 @@ func (x *fastReflection_MsgSendKeyshare) Mutable(fd protoreflect.FieldDescriptor panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgSendKeyshare is not mutable")) case "fairyring.keyshare.MsgSendKeyshare.message": panic(fmt.Errorf("field message of message fairyring.keyshare.MsgSendKeyshare is not mutable")) - case "fairyring.keyshare.MsgSendKeyshare.keyShareIndex": - panic(fmt.Errorf("field keyShareIndex of message fairyring.keyshare.MsgSendKeyshare is not mutable")) - case "fairyring.keyshare.MsgSendKeyshare.blockHeight": - panic(fmt.Errorf("field blockHeight of message fairyring.keyshare.MsgSendKeyshare is not mutable")) + case "fairyring.keyshare.MsgSendKeyshare.key_share_index": + panic(fmt.Errorf("field key_share_index of message fairyring.keyshare.MsgSendKeyshare is not mutable")) + case "fairyring.keyshare.MsgSendKeyshare.block_height": + panic(fmt.Errorf("field block_height of message fairyring.keyshare.MsgSendKeyshare is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSendKeyshare")) @@ -2805,9 +2805,9 @@ func (x *fastReflection_MsgSendKeyshare) NewField(fd protoreflect.FieldDescripto return protoreflect.ValueOfString("") case "fairyring.keyshare.MsgSendKeyshare.message": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgSendKeyshare.keyShareIndex": + case "fairyring.keyshare.MsgSendKeyshare.key_share_index": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgSendKeyshare.blockHeight": + case "fairyring.keyshare.MsgSendKeyshare.block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { @@ -3132,14 +3132,14 @@ func (x *fastReflection_MsgSendKeyshare) ProtoMethods() *protoiface.Methods { } var ( - md_MsgSendKeyshareResponse protoreflect.MessageDescriptor - fd_MsgSendKeyshareResponse_creator protoreflect.FieldDescriptor - fd_MsgSendKeyshareResponse_keyshare protoreflect.FieldDescriptor - fd_MsgSendKeyshareResponse_keyshareIndex protoreflect.FieldDescriptor - fd_MsgSendKeyshareResponse_blockHeight protoreflect.FieldDescriptor - fd_MsgSendKeyshareResponse_receivedBlockHeight protoreflect.FieldDescriptor - fd_MsgSendKeyshareResponse_success protoreflect.FieldDescriptor - fd_MsgSendKeyshareResponse_errorMessage protoreflect.FieldDescriptor + md_MsgSendKeyshareResponse protoreflect.MessageDescriptor + fd_MsgSendKeyshareResponse_creator protoreflect.FieldDescriptor + fd_MsgSendKeyshareResponse_keyshare protoreflect.FieldDescriptor + fd_MsgSendKeyshareResponse_keyshare_index protoreflect.FieldDescriptor + fd_MsgSendKeyshareResponse_block_height protoreflect.FieldDescriptor + fd_MsgSendKeyshareResponse_received_block_height protoreflect.FieldDescriptor + fd_MsgSendKeyshareResponse_success protoreflect.FieldDescriptor + fd_MsgSendKeyshareResponse_error_message protoreflect.FieldDescriptor ) func init() { @@ -3147,11 +3147,11 @@ func init() { md_MsgSendKeyshareResponse = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgSendKeyshareResponse") fd_MsgSendKeyshareResponse_creator = md_MsgSendKeyshareResponse.Fields().ByName("creator") fd_MsgSendKeyshareResponse_keyshare = md_MsgSendKeyshareResponse.Fields().ByName("keyshare") - fd_MsgSendKeyshareResponse_keyshareIndex = md_MsgSendKeyshareResponse.Fields().ByName("keyshareIndex") - fd_MsgSendKeyshareResponse_blockHeight = md_MsgSendKeyshareResponse.Fields().ByName("blockHeight") - fd_MsgSendKeyshareResponse_receivedBlockHeight = md_MsgSendKeyshareResponse.Fields().ByName("receivedBlockHeight") + fd_MsgSendKeyshareResponse_keyshare_index = md_MsgSendKeyshareResponse.Fields().ByName("keyshare_index") + fd_MsgSendKeyshareResponse_block_height = md_MsgSendKeyshareResponse.Fields().ByName("block_height") + fd_MsgSendKeyshareResponse_received_block_height = md_MsgSendKeyshareResponse.Fields().ByName("received_block_height") fd_MsgSendKeyshareResponse_success = md_MsgSendKeyshareResponse.Fields().ByName("success") - fd_MsgSendKeyshareResponse_errorMessage = md_MsgSendKeyshareResponse.Fields().ByName("errorMessage") + fd_MsgSendKeyshareResponse_error_message = md_MsgSendKeyshareResponse.Fields().ByName("error_message") } var _ protoreflect.Message = (*fastReflection_MsgSendKeyshareResponse)(nil) @@ -3233,19 +3233,19 @@ func (x *fastReflection_MsgSendKeyshareResponse) Range(f func(protoreflect.Field } if x.KeyshareIndex != uint64(0) { value := protoreflect.ValueOfUint64(x.KeyshareIndex) - if !f(fd_MsgSendKeyshareResponse_keyshareIndex, value) { + if !f(fd_MsgSendKeyshareResponse_keyshare_index, value) { return } } if x.BlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.BlockHeight) - if !f(fd_MsgSendKeyshareResponse_blockHeight, value) { + if !f(fd_MsgSendKeyshareResponse_block_height, value) { return } } if x.ReceivedBlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedBlockHeight) - if !f(fd_MsgSendKeyshareResponse_receivedBlockHeight, value) { + if !f(fd_MsgSendKeyshareResponse_received_block_height, value) { return } } @@ -3257,7 +3257,7 @@ func (x *fastReflection_MsgSendKeyshareResponse) Range(f func(protoreflect.Field } if x.ErrorMessage != "" { value := protoreflect.ValueOfString(x.ErrorMessage) - if !f(fd_MsgSendKeyshareResponse_errorMessage, value) { + if !f(fd_MsgSendKeyshareResponse_error_message, value) { return } } @@ -3280,15 +3280,15 @@ func (x *fastReflection_MsgSendKeyshareResponse) Has(fd protoreflect.FieldDescri return x.Creator != "" case "fairyring.keyshare.MsgSendKeyshareResponse.keyshare": return x.Keyshare != "" - case "fairyring.keyshare.MsgSendKeyshareResponse.keyshareIndex": + case "fairyring.keyshare.MsgSendKeyshareResponse.keyshare_index": return x.KeyshareIndex != uint64(0) - case "fairyring.keyshare.MsgSendKeyshareResponse.blockHeight": + case "fairyring.keyshare.MsgSendKeyshareResponse.block_height": return x.BlockHeight != uint64(0) - case "fairyring.keyshare.MsgSendKeyshareResponse.receivedBlockHeight": + case "fairyring.keyshare.MsgSendKeyshareResponse.received_block_height": return x.ReceivedBlockHeight != uint64(0) case "fairyring.keyshare.MsgSendKeyshareResponse.success": return x.Success != false - case "fairyring.keyshare.MsgSendKeyshareResponse.errorMessage": + case "fairyring.keyshare.MsgSendKeyshareResponse.error_message": return x.ErrorMessage != "" default: if fd.IsExtension() { @@ -3310,15 +3310,15 @@ func (x *fastReflection_MsgSendKeyshareResponse) Clear(fd protoreflect.FieldDesc x.Creator = "" case "fairyring.keyshare.MsgSendKeyshareResponse.keyshare": x.Keyshare = "" - case "fairyring.keyshare.MsgSendKeyshareResponse.keyshareIndex": + case "fairyring.keyshare.MsgSendKeyshareResponse.keyshare_index": x.KeyshareIndex = uint64(0) - case "fairyring.keyshare.MsgSendKeyshareResponse.blockHeight": + case "fairyring.keyshare.MsgSendKeyshareResponse.block_height": x.BlockHeight = uint64(0) - case "fairyring.keyshare.MsgSendKeyshareResponse.receivedBlockHeight": + case "fairyring.keyshare.MsgSendKeyshareResponse.received_block_height": x.ReceivedBlockHeight = uint64(0) case "fairyring.keyshare.MsgSendKeyshareResponse.success": x.Success = false - case "fairyring.keyshare.MsgSendKeyshareResponse.errorMessage": + case "fairyring.keyshare.MsgSendKeyshareResponse.error_message": x.ErrorMessage = "" default: if fd.IsExtension() { @@ -3342,19 +3342,19 @@ func (x *fastReflection_MsgSendKeyshareResponse) Get(descriptor protoreflect.Fie case "fairyring.keyshare.MsgSendKeyshareResponse.keyshare": value := x.Keyshare return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgSendKeyshareResponse.keyshareIndex": + case "fairyring.keyshare.MsgSendKeyshareResponse.keyshare_index": value := x.KeyshareIndex return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgSendKeyshareResponse.blockHeight": + case "fairyring.keyshare.MsgSendKeyshareResponse.block_height": value := x.BlockHeight return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgSendKeyshareResponse.receivedBlockHeight": + case "fairyring.keyshare.MsgSendKeyshareResponse.received_block_height": value := x.ReceivedBlockHeight return protoreflect.ValueOfUint64(value) case "fairyring.keyshare.MsgSendKeyshareResponse.success": value := x.Success return protoreflect.ValueOfBool(value) - case "fairyring.keyshare.MsgSendKeyshareResponse.errorMessage": + case "fairyring.keyshare.MsgSendKeyshareResponse.error_message": value := x.ErrorMessage return protoreflect.ValueOfString(value) default: @@ -3381,15 +3381,15 @@ func (x *fastReflection_MsgSendKeyshareResponse) Set(fd protoreflect.FieldDescri x.Creator = value.Interface().(string) case "fairyring.keyshare.MsgSendKeyshareResponse.keyshare": x.Keyshare = value.Interface().(string) - case "fairyring.keyshare.MsgSendKeyshareResponse.keyshareIndex": + case "fairyring.keyshare.MsgSendKeyshareResponse.keyshare_index": x.KeyshareIndex = value.Uint() - case "fairyring.keyshare.MsgSendKeyshareResponse.blockHeight": + case "fairyring.keyshare.MsgSendKeyshareResponse.block_height": x.BlockHeight = value.Uint() - case "fairyring.keyshare.MsgSendKeyshareResponse.receivedBlockHeight": + case "fairyring.keyshare.MsgSendKeyshareResponse.received_block_height": x.ReceivedBlockHeight = value.Uint() case "fairyring.keyshare.MsgSendKeyshareResponse.success": x.Success = value.Bool() - case "fairyring.keyshare.MsgSendKeyshareResponse.errorMessage": + case "fairyring.keyshare.MsgSendKeyshareResponse.error_message": x.ErrorMessage = value.Interface().(string) default: if fd.IsExtension() { @@ -3415,16 +3415,16 @@ func (x *fastReflection_MsgSendKeyshareResponse) Mutable(fd protoreflect.FieldDe panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgSendKeyshareResponse is not mutable")) case "fairyring.keyshare.MsgSendKeyshareResponse.keyshare": panic(fmt.Errorf("field keyshare of message fairyring.keyshare.MsgSendKeyshareResponse is not mutable")) - case "fairyring.keyshare.MsgSendKeyshareResponse.keyshareIndex": - panic(fmt.Errorf("field keyshareIndex of message fairyring.keyshare.MsgSendKeyshareResponse is not mutable")) - case "fairyring.keyshare.MsgSendKeyshareResponse.blockHeight": - panic(fmt.Errorf("field blockHeight of message fairyring.keyshare.MsgSendKeyshareResponse is not mutable")) - case "fairyring.keyshare.MsgSendKeyshareResponse.receivedBlockHeight": - panic(fmt.Errorf("field receivedBlockHeight of message fairyring.keyshare.MsgSendKeyshareResponse is not mutable")) + case "fairyring.keyshare.MsgSendKeyshareResponse.keyshare_index": + panic(fmt.Errorf("field keyshare_index of message fairyring.keyshare.MsgSendKeyshareResponse is not mutable")) + case "fairyring.keyshare.MsgSendKeyshareResponse.block_height": + panic(fmt.Errorf("field block_height of message fairyring.keyshare.MsgSendKeyshareResponse is not mutable")) + case "fairyring.keyshare.MsgSendKeyshareResponse.received_block_height": + panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.MsgSendKeyshareResponse is not mutable")) case "fairyring.keyshare.MsgSendKeyshareResponse.success": panic(fmt.Errorf("field success of message fairyring.keyshare.MsgSendKeyshareResponse is not mutable")) - case "fairyring.keyshare.MsgSendKeyshareResponse.errorMessage": - panic(fmt.Errorf("field errorMessage of message fairyring.keyshare.MsgSendKeyshareResponse is not mutable")) + case "fairyring.keyshare.MsgSendKeyshareResponse.error_message": + panic(fmt.Errorf("field error_message of message fairyring.keyshare.MsgSendKeyshareResponse is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSendKeyshareResponse")) @@ -3442,15 +3442,15 @@ func (x *fastReflection_MsgSendKeyshareResponse) NewField(fd protoreflect.FieldD return protoreflect.ValueOfString("") case "fairyring.keyshare.MsgSendKeyshareResponse.keyshare": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgSendKeyshareResponse.keyshareIndex": + case "fairyring.keyshare.MsgSendKeyshareResponse.keyshare_index": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgSendKeyshareResponse.blockHeight": + case "fairyring.keyshare.MsgSendKeyshareResponse.block_height": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgSendKeyshareResponse.receivedBlockHeight": + case "fairyring.keyshare.MsgSendKeyshareResponse.received_block_height": return protoreflect.ValueOfUint64(uint64(0)) case "fairyring.keyshare.MsgSendKeyshareResponse.success": return protoreflect.ValueOfBool(false) - case "fairyring.keyshare.MsgSendKeyshareResponse.errorMessage": + case "fairyring.keyshare.MsgSendKeyshareResponse.error_message": return protoreflect.ValueOfString("") default: if fd.IsExtension() { @@ -3975,22 +3975,22 @@ func (x *_MsgCreateLatestPubKey_5_list) IsValid() bool { } var ( - md_MsgCreateLatestPubKey protoreflect.MessageDescriptor - fd_MsgCreateLatestPubKey_creator protoreflect.FieldDescriptor - fd_MsgCreateLatestPubKey_publicKey protoreflect.FieldDescriptor - fd_MsgCreateLatestPubKey_commitments protoreflect.FieldDescriptor - fd_MsgCreateLatestPubKey_numberOfValidators protoreflect.FieldDescriptor - fd_MsgCreateLatestPubKey_encryptedKeyShares protoreflect.FieldDescriptor + md_MsgCreateLatestPubKey protoreflect.MessageDescriptor + fd_MsgCreateLatestPubKey_creator protoreflect.FieldDescriptor + fd_MsgCreateLatestPubKey_public_key protoreflect.FieldDescriptor + fd_MsgCreateLatestPubKey_commitments protoreflect.FieldDescriptor + fd_MsgCreateLatestPubKey_number_of_validators protoreflect.FieldDescriptor + fd_MsgCreateLatestPubKey_encrypted_key_shares protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_tx_proto_init() md_MsgCreateLatestPubKey = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgCreateLatestPubKey") fd_MsgCreateLatestPubKey_creator = md_MsgCreateLatestPubKey.Fields().ByName("creator") - fd_MsgCreateLatestPubKey_publicKey = md_MsgCreateLatestPubKey.Fields().ByName("publicKey") + fd_MsgCreateLatestPubKey_public_key = md_MsgCreateLatestPubKey.Fields().ByName("public_key") fd_MsgCreateLatestPubKey_commitments = md_MsgCreateLatestPubKey.Fields().ByName("commitments") - fd_MsgCreateLatestPubKey_numberOfValidators = md_MsgCreateLatestPubKey.Fields().ByName("numberOfValidators") - fd_MsgCreateLatestPubKey_encryptedKeyShares = md_MsgCreateLatestPubKey.Fields().ByName("encryptedKeyShares") + fd_MsgCreateLatestPubKey_number_of_validators = md_MsgCreateLatestPubKey.Fields().ByName("number_of_validators") + fd_MsgCreateLatestPubKey_encrypted_key_shares = md_MsgCreateLatestPubKey.Fields().ByName("encrypted_key_shares") } var _ protoreflect.Message = (*fastReflection_MsgCreateLatestPubKey)(nil) @@ -4066,7 +4066,7 @@ func (x *fastReflection_MsgCreateLatestPubKey) Range(f func(protoreflect.FieldDe } if x.PublicKey != "" { value := protoreflect.ValueOfString(x.PublicKey) - if !f(fd_MsgCreateLatestPubKey_publicKey, value) { + if !f(fd_MsgCreateLatestPubKey_public_key, value) { return } } @@ -4078,13 +4078,13 @@ func (x *fastReflection_MsgCreateLatestPubKey) Range(f func(protoreflect.FieldDe } if x.NumberOfValidators != uint64(0) { value := protoreflect.ValueOfUint64(x.NumberOfValidators) - if !f(fd_MsgCreateLatestPubKey_numberOfValidators, value) { + if !f(fd_MsgCreateLatestPubKey_number_of_validators, value) { return } } if len(x.EncryptedKeyShares) != 0 { value := protoreflect.ValueOfList(&_MsgCreateLatestPubKey_5_list{list: &x.EncryptedKeyShares}) - if !f(fd_MsgCreateLatestPubKey_encryptedKeyShares, value) { + if !f(fd_MsgCreateLatestPubKey_encrypted_key_shares, value) { return } } @@ -4105,13 +4105,13 @@ func (x *fastReflection_MsgCreateLatestPubKey) Has(fd protoreflect.FieldDescript switch fd.FullName() { case "fairyring.keyshare.MsgCreateLatestPubKey.creator": return x.Creator != "" - case "fairyring.keyshare.MsgCreateLatestPubKey.publicKey": + case "fairyring.keyshare.MsgCreateLatestPubKey.public_key": return x.PublicKey != "" case "fairyring.keyshare.MsgCreateLatestPubKey.commitments": return len(x.Commitments) != 0 - case "fairyring.keyshare.MsgCreateLatestPubKey.numberOfValidators": + case "fairyring.keyshare.MsgCreateLatestPubKey.number_of_validators": return x.NumberOfValidators != uint64(0) - case "fairyring.keyshare.MsgCreateLatestPubKey.encryptedKeyShares": + case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_key_shares": return len(x.EncryptedKeyShares) != 0 default: if fd.IsExtension() { @@ -4131,13 +4131,13 @@ func (x *fastReflection_MsgCreateLatestPubKey) Clear(fd protoreflect.FieldDescri switch fd.FullName() { case "fairyring.keyshare.MsgCreateLatestPubKey.creator": x.Creator = "" - case "fairyring.keyshare.MsgCreateLatestPubKey.publicKey": + case "fairyring.keyshare.MsgCreateLatestPubKey.public_key": x.PublicKey = "" case "fairyring.keyshare.MsgCreateLatestPubKey.commitments": x.Commitments = nil - case "fairyring.keyshare.MsgCreateLatestPubKey.numberOfValidators": + case "fairyring.keyshare.MsgCreateLatestPubKey.number_of_validators": x.NumberOfValidators = uint64(0) - case "fairyring.keyshare.MsgCreateLatestPubKey.encryptedKeyShares": + case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_key_shares": x.EncryptedKeyShares = nil default: if fd.IsExtension() { @@ -4158,7 +4158,7 @@ func (x *fastReflection_MsgCreateLatestPubKey) Get(descriptor protoreflect.Field case "fairyring.keyshare.MsgCreateLatestPubKey.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateLatestPubKey.publicKey": + case "fairyring.keyshare.MsgCreateLatestPubKey.public_key": value := x.PublicKey return protoreflect.ValueOfString(value) case "fairyring.keyshare.MsgCreateLatestPubKey.commitments": @@ -4167,10 +4167,10 @@ func (x *fastReflection_MsgCreateLatestPubKey) Get(descriptor protoreflect.Field } listValue := &_MsgCreateLatestPubKey_3_list{list: &x.Commitments} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.MsgCreateLatestPubKey.numberOfValidators": + case "fairyring.keyshare.MsgCreateLatestPubKey.number_of_validators": value := x.NumberOfValidators return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgCreateLatestPubKey.encryptedKeyShares": + case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_key_shares": if len(x.EncryptedKeyShares) == 0 { return protoreflect.ValueOfList(&_MsgCreateLatestPubKey_5_list{}) } @@ -4198,15 +4198,15 @@ func (x *fastReflection_MsgCreateLatestPubKey) Set(fd protoreflect.FieldDescript switch fd.FullName() { case "fairyring.keyshare.MsgCreateLatestPubKey.creator": x.Creator = value.Interface().(string) - case "fairyring.keyshare.MsgCreateLatestPubKey.publicKey": + case "fairyring.keyshare.MsgCreateLatestPubKey.public_key": x.PublicKey = value.Interface().(string) case "fairyring.keyshare.MsgCreateLatestPubKey.commitments": lv := value.List() clv := lv.(*_MsgCreateLatestPubKey_3_list) x.Commitments = *clv.list - case "fairyring.keyshare.MsgCreateLatestPubKey.numberOfValidators": + case "fairyring.keyshare.MsgCreateLatestPubKey.number_of_validators": x.NumberOfValidators = value.Uint() - case "fairyring.keyshare.MsgCreateLatestPubKey.encryptedKeyShares": + case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_key_shares": lv := value.List() clv := lv.(*_MsgCreateLatestPubKey_5_list) x.EncryptedKeyShares = *clv.list @@ -4236,7 +4236,7 @@ func (x *fastReflection_MsgCreateLatestPubKey) Mutable(fd protoreflect.FieldDesc } value := &_MsgCreateLatestPubKey_3_list{list: &x.Commitments} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.MsgCreateLatestPubKey.encryptedKeyShares": + case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_key_shares": if x.EncryptedKeyShares == nil { x.EncryptedKeyShares = []*EncryptedKeyShare{} } @@ -4244,10 +4244,10 @@ func (x *fastReflection_MsgCreateLatestPubKey) Mutable(fd protoreflect.FieldDesc return protoreflect.ValueOfList(value) case "fairyring.keyshare.MsgCreateLatestPubKey.creator": panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgCreateLatestPubKey is not mutable")) - case "fairyring.keyshare.MsgCreateLatestPubKey.publicKey": - panic(fmt.Errorf("field publicKey of message fairyring.keyshare.MsgCreateLatestPubKey is not mutable")) - case "fairyring.keyshare.MsgCreateLatestPubKey.numberOfValidators": - panic(fmt.Errorf("field numberOfValidators of message fairyring.keyshare.MsgCreateLatestPubKey is not mutable")) + case "fairyring.keyshare.MsgCreateLatestPubKey.public_key": + panic(fmt.Errorf("field public_key of message fairyring.keyshare.MsgCreateLatestPubKey is not mutable")) + case "fairyring.keyshare.MsgCreateLatestPubKey.number_of_validators": + panic(fmt.Errorf("field number_of_validators of message fairyring.keyshare.MsgCreateLatestPubKey is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubKey")) @@ -4263,14 +4263,14 @@ func (x *fastReflection_MsgCreateLatestPubKey) NewField(fd protoreflect.FieldDes switch fd.FullName() { case "fairyring.keyshare.MsgCreateLatestPubKey.creator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateLatestPubKey.publicKey": + case "fairyring.keyshare.MsgCreateLatestPubKey.public_key": return protoreflect.ValueOfString("") case "fairyring.keyshare.MsgCreateLatestPubKey.commitments": list := []string{} return protoreflect.ValueOfList(&_MsgCreateLatestPubKey_3_list{list: &list}) - case "fairyring.keyshare.MsgCreateLatestPubKey.numberOfValidators": + case "fairyring.keyshare.MsgCreateLatestPubKey.number_of_validators": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgCreateLatestPubKey.encryptedKeyShares": + case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_key_shares": list := []*EncryptedKeyShare{} return protoreflect.ValueOfList(&_MsgCreateLatestPubKey_5_list{list: &list}) default: @@ -5125,22 +5125,22 @@ func (x *_MsgOverrideLatestPubKey_5_list) IsValid() bool { } var ( - md_MsgOverrideLatestPubKey protoreflect.MessageDescriptor - fd_MsgOverrideLatestPubKey_creator protoreflect.FieldDescriptor - fd_MsgOverrideLatestPubKey_publicKey protoreflect.FieldDescriptor - fd_MsgOverrideLatestPubKey_commitments protoreflect.FieldDescriptor - fd_MsgOverrideLatestPubKey_numberOfValidators protoreflect.FieldDescriptor - fd_MsgOverrideLatestPubKey_encryptedKeyShares protoreflect.FieldDescriptor + md_MsgOverrideLatestPubKey protoreflect.MessageDescriptor + fd_MsgOverrideLatestPubKey_creator protoreflect.FieldDescriptor + fd_MsgOverrideLatestPubKey_public_key protoreflect.FieldDescriptor + fd_MsgOverrideLatestPubKey_commitments protoreflect.FieldDescriptor + fd_MsgOverrideLatestPubKey_number_of_validators protoreflect.FieldDescriptor + fd_MsgOverrideLatestPubKey_encrypted_key_shares protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_tx_proto_init() md_MsgOverrideLatestPubKey = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgOverrideLatestPubKey") fd_MsgOverrideLatestPubKey_creator = md_MsgOverrideLatestPubKey.Fields().ByName("creator") - fd_MsgOverrideLatestPubKey_publicKey = md_MsgOverrideLatestPubKey.Fields().ByName("publicKey") + fd_MsgOverrideLatestPubKey_public_key = md_MsgOverrideLatestPubKey.Fields().ByName("public_key") fd_MsgOverrideLatestPubKey_commitments = md_MsgOverrideLatestPubKey.Fields().ByName("commitments") - fd_MsgOverrideLatestPubKey_numberOfValidators = md_MsgOverrideLatestPubKey.Fields().ByName("numberOfValidators") - fd_MsgOverrideLatestPubKey_encryptedKeyShares = md_MsgOverrideLatestPubKey.Fields().ByName("encryptedKeyShares") + fd_MsgOverrideLatestPubKey_number_of_validators = md_MsgOverrideLatestPubKey.Fields().ByName("number_of_validators") + fd_MsgOverrideLatestPubKey_encrypted_key_shares = md_MsgOverrideLatestPubKey.Fields().ByName("encrypted_key_shares") } var _ protoreflect.Message = (*fastReflection_MsgOverrideLatestPubKey)(nil) @@ -5216,7 +5216,7 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Range(f func(protoreflect.Field } if x.PublicKey != "" { value := protoreflect.ValueOfString(x.PublicKey) - if !f(fd_MsgOverrideLatestPubKey_publicKey, value) { + if !f(fd_MsgOverrideLatestPubKey_public_key, value) { return } } @@ -5228,13 +5228,13 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Range(f func(protoreflect.Field } if x.NumberOfValidators != uint64(0) { value := protoreflect.ValueOfUint64(x.NumberOfValidators) - if !f(fd_MsgOverrideLatestPubKey_numberOfValidators, value) { + if !f(fd_MsgOverrideLatestPubKey_number_of_validators, value) { return } } if len(x.EncryptedKeyShares) != 0 { value := protoreflect.ValueOfList(&_MsgOverrideLatestPubKey_5_list{list: &x.EncryptedKeyShares}) - if !f(fd_MsgOverrideLatestPubKey_encryptedKeyShares, value) { + if !f(fd_MsgOverrideLatestPubKey_encrypted_key_shares, value) { return } } @@ -5255,13 +5255,13 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Has(fd protoreflect.FieldDescri switch fd.FullName() { case "fairyring.keyshare.MsgOverrideLatestPubKey.creator": return x.Creator != "" - case "fairyring.keyshare.MsgOverrideLatestPubKey.publicKey": + case "fairyring.keyshare.MsgOverrideLatestPubKey.public_key": return x.PublicKey != "" case "fairyring.keyshare.MsgOverrideLatestPubKey.commitments": return len(x.Commitments) != 0 - case "fairyring.keyshare.MsgOverrideLatestPubKey.numberOfValidators": + case "fairyring.keyshare.MsgOverrideLatestPubKey.number_of_validators": return x.NumberOfValidators != uint64(0) - case "fairyring.keyshare.MsgOverrideLatestPubKey.encryptedKeyShares": + case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_key_shares": return len(x.EncryptedKeyShares) != 0 default: if fd.IsExtension() { @@ -5281,13 +5281,13 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Clear(fd protoreflect.FieldDesc switch fd.FullName() { case "fairyring.keyshare.MsgOverrideLatestPubKey.creator": x.Creator = "" - case "fairyring.keyshare.MsgOverrideLatestPubKey.publicKey": + case "fairyring.keyshare.MsgOverrideLatestPubKey.public_key": x.PublicKey = "" case "fairyring.keyshare.MsgOverrideLatestPubKey.commitments": x.Commitments = nil - case "fairyring.keyshare.MsgOverrideLatestPubKey.numberOfValidators": + case "fairyring.keyshare.MsgOverrideLatestPubKey.number_of_validators": x.NumberOfValidators = uint64(0) - case "fairyring.keyshare.MsgOverrideLatestPubKey.encryptedKeyShares": + case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_key_shares": x.EncryptedKeyShares = nil default: if fd.IsExtension() { @@ -5308,7 +5308,7 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Get(descriptor protoreflect.Fie case "fairyring.keyshare.MsgOverrideLatestPubKey.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgOverrideLatestPubKey.publicKey": + case "fairyring.keyshare.MsgOverrideLatestPubKey.public_key": value := x.PublicKey return protoreflect.ValueOfString(value) case "fairyring.keyshare.MsgOverrideLatestPubKey.commitments": @@ -5317,10 +5317,10 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Get(descriptor protoreflect.Fie } listValue := &_MsgOverrideLatestPubKey_3_list{list: &x.Commitments} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.MsgOverrideLatestPubKey.numberOfValidators": + case "fairyring.keyshare.MsgOverrideLatestPubKey.number_of_validators": value := x.NumberOfValidators return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgOverrideLatestPubKey.encryptedKeyShares": + case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_key_shares": if len(x.EncryptedKeyShares) == 0 { return protoreflect.ValueOfList(&_MsgOverrideLatestPubKey_5_list{}) } @@ -5348,15 +5348,15 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Set(fd protoreflect.FieldDescri switch fd.FullName() { case "fairyring.keyshare.MsgOverrideLatestPubKey.creator": x.Creator = value.Interface().(string) - case "fairyring.keyshare.MsgOverrideLatestPubKey.publicKey": + case "fairyring.keyshare.MsgOverrideLatestPubKey.public_key": x.PublicKey = value.Interface().(string) case "fairyring.keyshare.MsgOverrideLatestPubKey.commitments": lv := value.List() clv := lv.(*_MsgOverrideLatestPubKey_3_list) x.Commitments = *clv.list - case "fairyring.keyshare.MsgOverrideLatestPubKey.numberOfValidators": + case "fairyring.keyshare.MsgOverrideLatestPubKey.number_of_validators": x.NumberOfValidators = value.Uint() - case "fairyring.keyshare.MsgOverrideLatestPubKey.encryptedKeyShares": + case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_key_shares": lv := value.List() clv := lv.(*_MsgOverrideLatestPubKey_5_list) x.EncryptedKeyShares = *clv.list @@ -5386,7 +5386,7 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Mutable(fd protoreflect.FieldDe } value := &_MsgOverrideLatestPubKey_3_list{list: &x.Commitments} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.MsgOverrideLatestPubKey.encryptedKeyShares": + case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_key_shares": if x.EncryptedKeyShares == nil { x.EncryptedKeyShares = []*EncryptedKeyShare{} } @@ -5394,10 +5394,10 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Mutable(fd protoreflect.FieldDe return protoreflect.ValueOfList(value) case "fairyring.keyshare.MsgOverrideLatestPubKey.creator": panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgOverrideLatestPubKey is not mutable")) - case "fairyring.keyshare.MsgOverrideLatestPubKey.publicKey": - panic(fmt.Errorf("field publicKey of message fairyring.keyshare.MsgOverrideLatestPubKey is not mutable")) - case "fairyring.keyshare.MsgOverrideLatestPubKey.numberOfValidators": - panic(fmt.Errorf("field numberOfValidators of message fairyring.keyshare.MsgOverrideLatestPubKey is not mutable")) + case "fairyring.keyshare.MsgOverrideLatestPubKey.public_key": + panic(fmt.Errorf("field public_key of message fairyring.keyshare.MsgOverrideLatestPubKey is not mutable")) + case "fairyring.keyshare.MsgOverrideLatestPubKey.number_of_validators": + panic(fmt.Errorf("field number_of_validators of message fairyring.keyshare.MsgOverrideLatestPubKey is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubKey")) @@ -5413,14 +5413,14 @@ func (x *fastReflection_MsgOverrideLatestPubKey) NewField(fd protoreflect.FieldD switch fd.FullName() { case "fairyring.keyshare.MsgOverrideLatestPubKey.creator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgOverrideLatestPubKey.publicKey": + case "fairyring.keyshare.MsgOverrideLatestPubKey.public_key": return protoreflect.ValueOfString("") case "fairyring.keyshare.MsgOverrideLatestPubKey.commitments": list := []string{} return protoreflect.ValueOfList(&_MsgOverrideLatestPubKey_3_list{list: &list}) - case "fairyring.keyshare.MsgOverrideLatestPubKey.numberOfValidators": + case "fairyring.keyshare.MsgOverrideLatestPubKey.number_of_validators": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgOverrideLatestPubKey.encryptedKeyShares": + case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_key_shares": list := []*EncryptedKeyShare{} return protoreflect.ValueOfList(&_MsgOverrideLatestPubKey_5_list{list: &list}) default: @@ -7018,17 +7018,17 @@ func (x *fastReflection_MsgCreateAuthorizedAddressResponse) ProtoMethods() *prot } var ( - md_MsgUpdateAuthorizedAddress protoreflect.MessageDescriptor - fd_MsgUpdateAuthorizedAddress_target protoreflect.FieldDescriptor - fd_MsgUpdateAuthorizedAddress_isAuthorized protoreflect.FieldDescriptor - fd_MsgUpdateAuthorizedAddress_creator protoreflect.FieldDescriptor + md_MsgUpdateAuthorizedAddress protoreflect.MessageDescriptor + fd_MsgUpdateAuthorizedAddress_target protoreflect.FieldDescriptor + fd_MsgUpdateAuthorizedAddress_is_authorized protoreflect.FieldDescriptor + fd_MsgUpdateAuthorizedAddress_creator protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_tx_proto_init() md_MsgUpdateAuthorizedAddress = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgUpdateAuthorizedAddress") fd_MsgUpdateAuthorizedAddress_target = md_MsgUpdateAuthorizedAddress.Fields().ByName("target") - fd_MsgUpdateAuthorizedAddress_isAuthorized = md_MsgUpdateAuthorizedAddress.Fields().ByName("isAuthorized") + fd_MsgUpdateAuthorizedAddress_is_authorized = md_MsgUpdateAuthorizedAddress.Fields().ByName("is_authorized") fd_MsgUpdateAuthorizedAddress_creator = md_MsgUpdateAuthorizedAddress.Fields().ByName("creator") } @@ -7105,7 +7105,7 @@ func (x *fastReflection_MsgUpdateAuthorizedAddress) Range(f func(protoreflect.Fi } if x.IsAuthorized != false { value := protoreflect.ValueOfBool(x.IsAuthorized) - if !f(fd_MsgUpdateAuthorizedAddress_isAuthorized, value) { + if !f(fd_MsgUpdateAuthorizedAddress_is_authorized, value) { return } } @@ -7132,7 +7132,7 @@ func (x *fastReflection_MsgUpdateAuthorizedAddress) Has(fd protoreflect.FieldDes switch fd.FullName() { case "fairyring.keyshare.MsgUpdateAuthorizedAddress.target": return x.Target != "" - case "fairyring.keyshare.MsgUpdateAuthorizedAddress.isAuthorized": + case "fairyring.keyshare.MsgUpdateAuthorizedAddress.is_authorized": return x.IsAuthorized != false case "fairyring.keyshare.MsgUpdateAuthorizedAddress.creator": return x.Creator != "" @@ -7154,7 +7154,7 @@ func (x *fastReflection_MsgUpdateAuthorizedAddress) Clear(fd protoreflect.FieldD switch fd.FullName() { case "fairyring.keyshare.MsgUpdateAuthorizedAddress.target": x.Target = "" - case "fairyring.keyshare.MsgUpdateAuthorizedAddress.isAuthorized": + case "fairyring.keyshare.MsgUpdateAuthorizedAddress.is_authorized": x.IsAuthorized = false case "fairyring.keyshare.MsgUpdateAuthorizedAddress.creator": x.Creator = "" @@ -7177,7 +7177,7 @@ func (x *fastReflection_MsgUpdateAuthorizedAddress) Get(descriptor protoreflect. case "fairyring.keyshare.MsgUpdateAuthorizedAddress.target": value := x.Target return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgUpdateAuthorizedAddress.isAuthorized": + case "fairyring.keyshare.MsgUpdateAuthorizedAddress.is_authorized": value := x.IsAuthorized return protoreflect.ValueOfBool(value) case "fairyring.keyshare.MsgUpdateAuthorizedAddress.creator": @@ -7205,7 +7205,7 @@ func (x *fastReflection_MsgUpdateAuthorizedAddress) Set(fd protoreflect.FieldDes switch fd.FullName() { case "fairyring.keyshare.MsgUpdateAuthorizedAddress.target": x.Target = value.Interface().(string) - case "fairyring.keyshare.MsgUpdateAuthorizedAddress.isAuthorized": + case "fairyring.keyshare.MsgUpdateAuthorizedAddress.is_authorized": x.IsAuthorized = value.Bool() case "fairyring.keyshare.MsgUpdateAuthorizedAddress.creator": x.Creator = value.Interface().(string) @@ -7231,8 +7231,8 @@ func (x *fastReflection_MsgUpdateAuthorizedAddress) Mutable(fd protoreflect.Fiel switch fd.FullName() { case "fairyring.keyshare.MsgUpdateAuthorizedAddress.target": panic(fmt.Errorf("field target of message fairyring.keyshare.MsgUpdateAuthorizedAddress is not mutable")) - case "fairyring.keyshare.MsgUpdateAuthorizedAddress.isAuthorized": - panic(fmt.Errorf("field isAuthorized of message fairyring.keyshare.MsgUpdateAuthorizedAddress is not mutable")) + case "fairyring.keyshare.MsgUpdateAuthorizedAddress.is_authorized": + panic(fmt.Errorf("field is_authorized of message fairyring.keyshare.MsgUpdateAuthorizedAddress is not mutable")) case "fairyring.keyshare.MsgUpdateAuthorizedAddress.creator": panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgUpdateAuthorizedAddress is not mutable")) default: @@ -7250,7 +7250,7 @@ func (x *fastReflection_MsgUpdateAuthorizedAddress) NewField(fd protoreflect.Fie switch fd.FullName() { case "fairyring.keyshare.MsgUpdateAuthorizedAddress.target": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgUpdateAuthorizedAddress.isAuthorized": + case "fairyring.keyshare.MsgUpdateAuthorizedAddress.is_authorized": return protoreflect.ValueOfBool(false) case "fairyring.keyshare.MsgUpdateAuthorizedAddress.creator": return protoreflect.ValueOfString("") @@ -8752,26 +8752,26 @@ func (x *fastReflection_MsgDeleteAuthorizedAddressResponse) ProtoMethods() *prot } var ( - md_MsgCreateGeneralKeyShare protoreflect.MessageDescriptor - fd_MsgCreateGeneralKeyShare_creator protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShare_idType protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShare_idValue protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShare_keyShare protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShare_keyShareIndex protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShare_receivedTimestamp protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShare_receivedBlockHeight protoreflect.FieldDescriptor + md_MsgCreateGeneralKeyShare protoreflect.MessageDescriptor + fd_MsgCreateGeneralKeyShare_creator protoreflect.FieldDescriptor + fd_MsgCreateGeneralKeyShare_id_type protoreflect.FieldDescriptor + fd_MsgCreateGeneralKeyShare_id_value protoreflect.FieldDescriptor + fd_MsgCreateGeneralKeyShare_key_share protoreflect.FieldDescriptor + fd_MsgCreateGeneralKeyShare_key_share_index protoreflect.FieldDescriptor + fd_MsgCreateGeneralKeyShare_received_timestamp protoreflect.FieldDescriptor + fd_MsgCreateGeneralKeyShare_received_block_height protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_tx_proto_init() md_MsgCreateGeneralKeyShare = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgCreateGeneralKeyShare") fd_MsgCreateGeneralKeyShare_creator = md_MsgCreateGeneralKeyShare.Fields().ByName("creator") - fd_MsgCreateGeneralKeyShare_idType = md_MsgCreateGeneralKeyShare.Fields().ByName("idType") - fd_MsgCreateGeneralKeyShare_idValue = md_MsgCreateGeneralKeyShare.Fields().ByName("idValue") - fd_MsgCreateGeneralKeyShare_keyShare = md_MsgCreateGeneralKeyShare.Fields().ByName("keyShare") - fd_MsgCreateGeneralKeyShare_keyShareIndex = md_MsgCreateGeneralKeyShare.Fields().ByName("keyShareIndex") - fd_MsgCreateGeneralKeyShare_receivedTimestamp = md_MsgCreateGeneralKeyShare.Fields().ByName("receivedTimestamp") - fd_MsgCreateGeneralKeyShare_receivedBlockHeight = md_MsgCreateGeneralKeyShare.Fields().ByName("receivedBlockHeight") + fd_MsgCreateGeneralKeyShare_id_type = md_MsgCreateGeneralKeyShare.Fields().ByName("id_type") + fd_MsgCreateGeneralKeyShare_id_value = md_MsgCreateGeneralKeyShare.Fields().ByName("id_value") + fd_MsgCreateGeneralKeyShare_key_share = md_MsgCreateGeneralKeyShare.Fields().ByName("key_share") + fd_MsgCreateGeneralKeyShare_key_share_index = md_MsgCreateGeneralKeyShare.Fields().ByName("key_share_index") + fd_MsgCreateGeneralKeyShare_received_timestamp = md_MsgCreateGeneralKeyShare.Fields().ByName("received_timestamp") + fd_MsgCreateGeneralKeyShare_received_block_height = md_MsgCreateGeneralKeyShare.Fields().ByName("received_block_height") } var _ protoreflect.Message = (*fastReflection_MsgCreateGeneralKeyShare)(nil) @@ -8847,37 +8847,37 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) Range(f func(protoreflect.Fiel } if x.IdType != "" { value := protoreflect.ValueOfString(x.IdType) - if !f(fd_MsgCreateGeneralKeyShare_idType, value) { + if !f(fd_MsgCreateGeneralKeyShare_id_type, value) { return } } if x.IdValue != "" { value := protoreflect.ValueOfString(x.IdValue) - if !f(fd_MsgCreateGeneralKeyShare_idValue, value) { + if !f(fd_MsgCreateGeneralKeyShare_id_value, value) { return } } if x.KeyShare != "" { value := protoreflect.ValueOfString(x.KeyShare) - if !f(fd_MsgCreateGeneralKeyShare_keyShare, value) { + if !f(fd_MsgCreateGeneralKeyShare_key_share, value) { return } } if x.KeyShareIndex != uint64(0) { value := protoreflect.ValueOfUint64(x.KeyShareIndex) - if !f(fd_MsgCreateGeneralKeyShare_keyShareIndex, value) { + if !f(fd_MsgCreateGeneralKeyShare_key_share_index, value) { return } } if x.ReceivedTimestamp != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedTimestamp) - if !f(fd_MsgCreateGeneralKeyShare_receivedTimestamp, value) { + if !f(fd_MsgCreateGeneralKeyShare_received_timestamp, value) { return } } if x.ReceivedBlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedBlockHeight) - if !f(fd_MsgCreateGeneralKeyShare_receivedBlockHeight, value) { + if !f(fd_MsgCreateGeneralKeyShare_received_block_height, value) { return } } @@ -8898,17 +8898,17 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) Has(fd protoreflect.FieldDescr switch fd.FullName() { case "fairyring.keyshare.MsgCreateGeneralKeyShare.creator": return x.Creator != "" - case "fairyring.keyshare.MsgCreateGeneralKeyShare.idType": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_type": return x.IdType != "" - case "fairyring.keyshare.MsgCreateGeneralKeyShare.idValue": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_value": return x.IdValue != "" - case "fairyring.keyshare.MsgCreateGeneralKeyShare.keyShare": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share": return x.KeyShare != "" - case "fairyring.keyshare.MsgCreateGeneralKeyShare.keyShareIndex": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share_index": return x.KeyShareIndex != uint64(0) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.receivedTimestamp": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_timestamp": return x.ReceivedTimestamp != uint64(0) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.receivedBlockHeight": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_block_height": return x.ReceivedBlockHeight != uint64(0) default: if fd.IsExtension() { @@ -8928,17 +8928,17 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) Clear(fd protoreflect.FieldDes switch fd.FullName() { case "fairyring.keyshare.MsgCreateGeneralKeyShare.creator": x.Creator = "" - case "fairyring.keyshare.MsgCreateGeneralKeyShare.idType": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_type": x.IdType = "" - case "fairyring.keyshare.MsgCreateGeneralKeyShare.idValue": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_value": x.IdValue = "" - case "fairyring.keyshare.MsgCreateGeneralKeyShare.keyShare": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share": x.KeyShare = "" - case "fairyring.keyshare.MsgCreateGeneralKeyShare.keyShareIndex": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share_index": x.KeyShareIndex = uint64(0) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.receivedTimestamp": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_timestamp": x.ReceivedTimestamp = uint64(0) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.receivedBlockHeight": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_block_height": x.ReceivedBlockHeight = uint64(0) default: if fd.IsExtension() { @@ -8959,22 +8959,22 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) Get(descriptor protoreflect.Fi case "fairyring.keyshare.MsgCreateGeneralKeyShare.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.idType": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_type": value := x.IdType return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.idValue": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_value": value := x.IdValue return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.keyShare": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share": value := x.KeyShare return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.keyShareIndex": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share_index": value := x.KeyShareIndex return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.receivedTimestamp": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_timestamp": value := x.ReceivedTimestamp return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.receivedBlockHeight": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_block_height": value := x.ReceivedBlockHeight return protoreflect.ValueOfUint64(value) default: @@ -8999,17 +8999,17 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) Set(fd protoreflect.FieldDescr switch fd.FullName() { case "fairyring.keyshare.MsgCreateGeneralKeyShare.creator": x.Creator = value.Interface().(string) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.idType": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_type": x.IdType = value.Interface().(string) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.idValue": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_value": x.IdValue = value.Interface().(string) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.keyShare": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share": x.KeyShare = value.Interface().(string) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.keyShareIndex": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share_index": x.KeyShareIndex = value.Uint() - case "fairyring.keyshare.MsgCreateGeneralKeyShare.receivedTimestamp": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_timestamp": x.ReceivedTimestamp = value.Uint() - case "fairyring.keyshare.MsgCreateGeneralKeyShare.receivedBlockHeight": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_block_height": x.ReceivedBlockHeight = value.Uint() default: if fd.IsExtension() { @@ -9033,18 +9033,18 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) Mutable(fd protoreflect.FieldD switch fd.FullName() { case "fairyring.keyshare.MsgCreateGeneralKeyShare.creator": panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.idType": - panic(fmt.Errorf("field idType of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.idValue": - panic(fmt.Errorf("field idValue of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.keyShare": - panic(fmt.Errorf("field keyShare of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.keyShareIndex": - panic(fmt.Errorf("field keyShareIndex of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.receivedTimestamp": - panic(fmt.Errorf("field receivedTimestamp of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.receivedBlockHeight": - panic(fmt.Errorf("field receivedBlockHeight of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) + case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_type": + panic(fmt.Errorf("field id_type of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) + case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_value": + panic(fmt.Errorf("field id_value of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) + case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share": + panic(fmt.Errorf("field key_share of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) + case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share_index": + panic(fmt.Errorf("field key_share_index of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) + case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_timestamp": + panic(fmt.Errorf("field received_timestamp of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) + case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_block_height": + panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateGeneralKeyShare")) @@ -9060,17 +9060,17 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) NewField(fd protoreflect.Field switch fd.FullName() { case "fairyring.keyshare.MsgCreateGeneralKeyShare.creator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateGeneralKeyShare.idType": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_type": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateGeneralKeyShare.idValue": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_value": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateGeneralKeyShare.keyShare": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateGeneralKeyShare.keyShareIndex": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share_index": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.receivedTimestamp": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_timestamp": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.receivedBlockHeight": + case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { @@ -9508,28 +9508,28 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) ProtoMethods() *protoiface.Met } var ( - md_MsgCreateGeneralKeyShareResponse protoreflect.MessageDescriptor - fd_MsgCreateGeneralKeyShareResponse_creator protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShareResponse_idType protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShareResponse_idValue protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShareResponse_keyShare protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShareResponse_keyShareIndex protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShareResponse_receivedBlockHeight protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShareResponse_success protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShareResponse_errorMessage protoreflect.FieldDescriptor + md_MsgCreateGeneralKeyShareResponse protoreflect.MessageDescriptor + fd_MsgCreateGeneralKeyShareResponse_creator protoreflect.FieldDescriptor + fd_MsgCreateGeneralKeyShareResponse_id_type protoreflect.FieldDescriptor + fd_MsgCreateGeneralKeyShareResponse_id_value protoreflect.FieldDescriptor + fd_MsgCreateGeneralKeyShareResponse_key_share protoreflect.FieldDescriptor + fd_MsgCreateGeneralKeyShareResponse_key_share_index protoreflect.FieldDescriptor + fd_MsgCreateGeneralKeyShareResponse_received_block_height protoreflect.FieldDescriptor + fd_MsgCreateGeneralKeyShareResponse_success protoreflect.FieldDescriptor + fd_MsgCreateGeneralKeyShareResponse_error_message protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_tx_proto_init() md_MsgCreateGeneralKeyShareResponse = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgCreateGeneralKeyShareResponse") fd_MsgCreateGeneralKeyShareResponse_creator = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("creator") - fd_MsgCreateGeneralKeyShareResponse_idType = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("idType") - fd_MsgCreateGeneralKeyShareResponse_idValue = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("idValue") - fd_MsgCreateGeneralKeyShareResponse_keyShare = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("keyShare") - fd_MsgCreateGeneralKeyShareResponse_keyShareIndex = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("keyShareIndex") - fd_MsgCreateGeneralKeyShareResponse_receivedBlockHeight = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("receivedBlockHeight") + fd_MsgCreateGeneralKeyShareResponse_id_type = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("id_type") + fd_MsgCreateGeneralKeyShareResponse_id_value = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("id_value") + fd_MsgCreateGeneralKeyShareResponse_key_share = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("key_share") + fd_MsgCreateGeneralKeyShareResponse_key_share_index = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("key_share_index") + fd_MsgCreateGeneralKeyShareResponse_received_block_height = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("received_block_height") fd_MsgCreateGeneralKeyShareResponse_success = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("success") - fd_MsgCreateGeneralKeyShareResponse_errorMessage = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("errorMessage") + fd_MsgCreateGeneralKeyShareResponse_error_message = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("error_message") } var _ protoreflect.Message = (*fastReflection_MsgCreateGeneralKeyShareResponse)(nil) @@ -9605,31 +9605,31 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Range(f func(protorefl } if x.IdType != "" { value := protoreflect.ValueOfString(x.IdType) - if !f(fd_MsgCreateGeneralKeyShareResponse_idType, value) { + if !f(fd_MsgCreateGeneralKeyShareResponse_id_type, value) { return } } if x.IdValue != "" { value := protoreflect.ValueOfString(x.IdValue) - if !f(fd_MsgCreateGeneralKeyShareResponse_idValue, value) { + if !f(fd_MsgCreateGeneralKeyShareResponse_id_value, value) { return } } if x.KeyShare != "" { value := protoreflect.ValueOfString(x.KeyShare) - if !f(fd_MsgCreateGeneralKeyShareResponse_keyShare, value) { + if !f(fd_MsgCreateGeneralKeyShareResponse_key_share, value) { return } } if x.KeyShareIndex != uint64(0) { value := protoreflect.ValueOfUint64(x.KeyShareIndex) - if !f(fd_MsgCreateGeneralKeyShareResponse_keyShareIndex, value) { + if !f(fd_MsgCreateGeneralKeyShareResponse_key_share_index, value) { return } } if x.ReceivedBlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedBlockHeight) - if !f(fd_MsgCreateGeneralKeyShareResponse_receivedBlockHeight, value) { + if !f(fd_MsgCreateGeneralKeyShareResponse_received_block_height, value) { return } } @@ -9641,7 +9641,7 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Range(f func(protorefl } if x.ErrorMessage != "" { value := protoreflect.ValueOfString(x.ErrorMessage) - if !f(fd_MsgCreateGeneralKeyShareResponse_errorMessage, value) { + if !f(fd_MsgCreateGeneralKeyShareResponse_error_message, value) { return } } @@ -9662,19 +9662,19 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Has(fd protoreflect.Fi switch fd.FullName() { case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.creator": return x.Creator != "" - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.idType": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_type": return x.IdType != "" - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.idValue": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_value": return x.IdValue != "" - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.keyShare": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share": return x.KeyShare != "" - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.keyShareIndex": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share_index": return x.KeyShareIndex != uint64(0) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.receivedBlockHeight": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.received_block_height": return x.ReceivedBlockHeight != uint64(0) case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.success": return x.Success != false - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.errorMessage": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.error_message": return x.ErrorMessage != "" default: if fd.IsExtension() { @@ -9694,19 +9694,19 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Clear(fd protoreflect. switch fd.FullName() { case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.creator": x.Creator = "" - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.idType": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_type": x.IdType = "" - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.idValue": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_value": x.IdValue = "" - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.keyShare": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share": x.KeyShare = "" - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.keyShareIndex": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share_index": x.KeyShareIndex = uint64(0) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.receivedBlockHeight": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.received_block_height": x.ReceivedBlockHeight = uint64(0) case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.success": x.Success = false - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.errorMessage": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.error_message": x.ErrorMessage = "" default: if fd.IsExtension() { @@ -9727,25 +9727,25 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Get(descriptor protore case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.idType": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_type": value := x.IdType return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.idValue": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_value": value := x.IdValue return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.keyShare": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share": value := x.KeyShare return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.keyShareIndex": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share_index": value := x.KeyShareIndex return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.receivedBlockHeight": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.received_block_height": value := x.ReceivedBlockHeight return protoreflect.ValueOfUint64(value) case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.success": value := x.Success return protoreflect.ValueOfBool(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.errorMessage": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.error_message": value := x.ErrorMessage return protoreflect.ValueOfString(value) default: @@ -9770,19 +9770,19 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Set(fd protoreflect.Fi switch fd.FullName() { case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.creator": x.Creator = value.Interface().(string) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.idType": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_type": x.IdType = value.Interface().(string) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.idValue": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_value": x.IdValue = value.Interface().(string) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.keyShare": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share": x.KeyShare = value.Interface().(string) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.keyShareIndex": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share_index": x.KeyShareIndex = value.Uint() - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.receivedBlockHeight": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.received_block_height": x.ReceivedBlockHeight = value.Uint() case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.success": x.Success = value.Bool() - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.errorMessage": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.error_message": x.ErrorMessage = value.Interface().(string) default: if fd.IsExtension() { @@ -9806,20 +9806,20 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Mutable(fd protoreflec switch fd.FullName() { case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.creator": panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.idType": - panic(fmt.Errorf("field idType of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.idValue": - panic(fmt.Errorf("field idValue of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.keyShare": - panic(fmt.Errorf("field keyShare of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.keyShareIndex": - panic(fmt.Errorf("field keyShareIndex of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.receivedBlockHeight": - panic(fmt.Errorf("field receivedBlockHeight of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_type": + panic(fmt.Errorf("field id_type of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_value": + panic(fmt.Errorf("field id_value of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share": + panic(fmt.Errorf("field key_share of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share_index": + panic(fmt.Errorf("field key_share_index of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.received_block_height": + panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.success": panic(fmt.Errorf("field success of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.errorMessage": - panic(fmt.Errorf("field errorMessage of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.error_message": + panic(fmt.Errorf("field error_message of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateGeneralKeyShareResponse")) @@ -9835,19 +9835,19 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) NewField(fd protorefle switch fd.FullName() { case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.creator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.idType": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_type": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.idValue": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_value": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.keyShare": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.keyShareIndex": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share_index": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.receivedBlockHeight": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.received_block_height": return protoreflect.ValueOfUint64(uint64(0)) case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.success": return protoreflect.ValueOfBool(false) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.errorMessage": + case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.error_message": return protoreflect.ValueOfString("") default: if fd.IsExtension() { @@ -10334,14 +10334,14 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) ProtoMethods() *protoi } var ( - md_MsgSubmitEncryptedKeyshare protoreflect.MessageDescriptor - fd_MsgSubmitEncryptedKeyshare_creator protoreflect.FieldDescriptor - fd_MsgSubmitEncryptedKeyshare_identity protoreflect.FieldDescriptor - fd_MsgSubmitEncryptedKeyshare_encryptedKeyshare protoreflect.FieldDescriptor - fd_MsgSubmitEncryptedKeyshare_keyShareIndex protoreflect.FieldDescriptor - fd_MsgSubmitEncryptedKeyshare_receivedTimestamp protoreflect.FieldDescriptor - fd_MsgSubmitEncryptedKeyshare_receivedBlockHeight protoreflect.FieldDescriptor - fd_MsgSubmitEncryptedKeyshare_requester protoreflect.FieldDescriptor + md_MsgSubmitEncryptedKeyshare protoreflect.MessageDescriptor + fd_MsgSubmitEncryptedKeyshare_creator protoreflect.FieldDescriptor + fd_MsgSubmitEncryptedKeyshare_identity protoreflect.FieldDescriptor + fd_MsgSubmitEncryptedKeyshare_encrypted_keyshare protoreflect.FieldDescriptor + fd_MsgSubmitEncryptedKeyshare_key_share_index protoreflect.FieldDescriptor + fd_MsgSubmitEncryptedKeyshare_received_timestamp protoreflect.FieldDescriptor + fd_MsgSubmitEncryptedKeyshare_received_block_height protoreflect.FieldDescriptor + fd_MsgSubmitEncryptedKeyshare_requester protoreflect.FieldDescriptor ) func init() { @@ -10349,10 +10349,10 @@ func init() { md_MsgSubmitEncryptedKeyshare = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgSubmitEncryptedKeyshare") fd_MsgSubmitEncryptedKeyshare_creator = md_MsgSubmitEncryptedKeyshare.Fields().ByName("creator") fd_MsgSubmitEncryptedKeyshare_identity = md_MsgSubmitEncryptedKeyshare.Fields().ByName("identity") - fd_MsgSubmitEncryptedKeyshare_encryptedKeyshare = md_MsgSubmitEncryptedKeyshare.Fields().ByName("encryptedKeyshare") - fd_MsgSubmitEncryptedKeyshare_keyShareIndex = md_MsgSubmitEncryptedKeyshare.Fields().ByName("keyShareIndex") - fd_MsgSubmitEncryptedKeyshare_receivedTimestamp = md_MsgSubmitEncryptedKeyshare.Fields().ByName("receivedTimestamp") - fd_MsgSubmitEncryptedKeyshare_receivedBlockHeight = md_MsgSubmitEncryptedKeyshare.Fields().ByName("receivedBlockHeight") + fd_MsgSubmitEncryptedKeyshare_encrypted_keyshare = md_MsgSubmitEncryptedKeyshare.Fields().ByName("encrypted_keyshare") + fd_MsgSubmitEncryptedKeyshare_key_share_index = md_MsgSubmitEncryptedKeyshare.Fields().ByName("key_share_index") + fd_MsgSubmitEncryptedKeyshare_received_timestamp = md_MsgSubmitEncryptedKeyshare.Fields().ByName("received_timestamp") + fd_MsgSubmitEncryptedKeyshare_received_block_height = md_MsgSubmitEncryptedKeyshare.Fields().ByName("received_block_height") fd_MsgSubmitEncryptedKeyshare_requester = md_MsgSubmitEncryptedKeyshare.Fields().ByName("requester") } @@ -10435,25 +10435,25 @@ func (x *fastReflection_MsgSubmitEncryptedKeyshare) Range(f func(protoreflect.Fi } if x.EncryptedKeyshare != "" { value := protoreflect.ValueOfString(x.EncryptedKeyshare) - if !f(fd_MsgSubmitEncryptedKeyshare_encryptedKeyshare, value) { + if !f(fd_MsgSubmitEncryptedKeyshare_encrypted_keyshare, value) { return } } if x.KeyShareIndex != uint64(0) { value := protoreflect.ValueOfUint64(x.KeyShareIndex) - if !f(fd_MsgSubmitEncryptedKeyshare_keyShareIndex, value) { + if !f(fd_MsgSubmitEncryptedKeyshare_key_share_index, value) { return } } if x.ReceivedTimestamp != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedTimestamp) - if !f(fd_MsgSubmitEncryptedKeyshare_receivedTimestamp, value) { + if !f(fd_MsgSubmitEncryptedKeyshare_received_timestamp, value) { return } } if x.ReceivedBlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedBlockHeight) - if !f(fd_MsgSubmitEncryptedKeyshare_receivedBlockHeight, value) { + if !f(fd_MsgSubmitEncryptedKeyshare_received_block_height, value) { return } } @@ -10482,13 +10482,13 @@ func (x *fastReflection_MsgSubmitEncryptedKeyshare) Has(fd protoreflect.FieldDes return x.Creator != "" case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.identity": return x.Identity != "" - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.encryptedKeyshare": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.encrypted_keyshare": return x.EncryptedKeyshare != "" - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.keyShareIndex": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.key_share_index": return x.KeyShareIndex != uint64(0) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.receivedTimestamp": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_timestamp": return x.ReceivedTimestamp != uint64(0) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.receivedBlockHeight": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_block_height": return x.ReceivedBlockHeight != uint64(0) case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.requester": return x.Requester != "" @@ -10512,13 +10512,13 @@ func (x *fastReflection_MsgSubmitEncryptedKeyshare) Clear(fd protoreflect.FieldD x.Creator = "" case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.identity": x.Identity = "" - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.encryptedKeyshare": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.encrypted_keyshare": x.EncryptedKeyshare = "" - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.keyShareIndex": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.key_share_index": x.KeyShareIndex = uint64(0) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.receivedTimestamp": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_timestamp": x.ReceivedTimestamp = uint64(0) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.receivedBlockHeight": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_block_height": x.ReceivedBlockHeight = uint64(0) case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.requester": x.Requester = "" @@ -10544,16 +10544,16 @@ func (x *fastReflection_MsgSubmitEncryptedKeyshare) Get(descriptor protoreflect. case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.identity": value := x.Identity return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.encryptedKeyshare": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.encrypted_keyshare": value := x.EncryptedKeyshare return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.keyShareIndex": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.key_share_index": value := x.KeyShareIndex return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.receivedTimestamp": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_timestamp": value := x.ReceivedTimestamp return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.receivedBlockHeight": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_block_height": value := x.ReceivedBlockHeight return protoreflect.ValueOfUint64(value) case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.requester": @@ -10583,13 +10583,13 @@ func (x *fastReflection_MsgSubmitEncryptedKeyshare) Set(fd protoreflect.FieldDes x.Creator = value.Interface().(string) case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.identity": x.Identity = value.Interface().(string) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.encryptedKeyshare": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.encrypted_keyshare": x.EncryptedKeyshare = value.Interface().(string) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.keyShareIndex": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.key_share_index": x.KeyShareIndex = value.Uint() - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.receivedTimestamp": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_timestamp": x.ReceivedTimestamp = value.Uint() - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.receivedBlockHeight": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_block_height": x.ReceivedBlockHeight = value.Uint() case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.requester": x.Requester = value.Interface().(string) @@ -10617,14 +10617,14 @@ func (x *fastReflection_MsgSubmitEncryptedKeyshare) Mutable(fd protoreflect.Fiel panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgSubmitEncryptedKeyshare is not mutable")) case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.identity": panic(fmt.Errorf("field identity of message fairyring.keyshare.MsgSubmitEncryptedKeyshare is not mutable")) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.encryptedKeyshare": - panic(fmt.Errorf("field encryptedKeyshare of message fairyring.keyshare.MsgSubmitEncryptedKeyshare is not mutable")) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.keyShareIndex": - panic(fmt.Errorf("field keyShareIndex of message fairyring.keyshare.MsgSubmitEncryptedKeyshare is not mutable")) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.receivedTimestamp": - panic(fmt.Errorf("field receivedTimestamp of message fairyring.keyshare.MsgSubmitEncryptedKeyshare is not mutable")) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.receivedBlockHeight": - panic(fmt.Errorf("field receivedBlockHeight of message fairyring.keyshare.MsgSubmitEncryptedKeyshare is not mutable")) + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.encrypted_keyshare": + panic(fmt.Errorf("field encrypted_keyshare of message fairyring.keyshare.MsgSubmitEncryptedKeyshare is not mutable")) + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.key_share_index": + panic(fmt.Errorf("field key_share_index of message fairyring.keyshare.MsgSubmitEncryptedKeyshare is not mutable")) + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_timestamp": + panic(fmt.Errorf("field received_timestamp of message fairyring.keyshare.MsgSubmitEncryptedKeyshare is not mutable")) + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_block_height": + panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.MsgSubmitEncryptedKeyshare is not mutable")) case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.requester": panic(fmt.Errorf("field requester of message fairyring.keyshare.MsgSubmitEncryptedKeyshare is not mutable")) default: @@ -10644,13 +10644,13 @@ func (x *fastReflection_MsgSubmitEncryptedKeyshare) NewField(fd protoreflect.Fie return protoreflect.ValueOfString("") case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.identity": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.encryptedKeyshare": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.encrypted_keyshare": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.keyShareIndex": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.key_share_index": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.receivedTimestamp": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_timestamp": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.receivedBlockHeight": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_block_height": return protoreflect.ValueOfUint64(uint64(0)) case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.requester": return protoreflect.ValueOfString("") @@ -11504,8 +11504,7 @@ func (x *MsgUpdateParams) GetParams() *Params { return nil } -// MsgUpdateParamsResponse defines the response structure for executing a -// MsgUpdateParams message. +// MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message. type MsgUpdateParamsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -11532,6 +11531,7 @@ func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_tx_proto_rawDescGZIP(), []int{1} } +// MsgRegisterValidator is the Msg/RegisterValidator request type. type MsgRegisterValidator struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -11567,6 +11567,8 @@ func (x *MsgRegisterValidator) GetCreator() string { return "" } +// MsgRegisterValidatorResponse defines the response structure for +// executing a MsgRegisterValidator message. type MsgRegisterValidatorResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -11602,6 +11604,7 @@ func (x *MsgRegisterValidatorResponse) GetCreator() string { return "" } +// MsgDeRegisterValidator is the Msg/DeRegisterValidator request type. type MsgDeRegisterValidator struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -11637,6 +11640,8 @@ func (x *MsgDeRegisterValidator) GetCreator() string { return "" } +// MsgDeRegisterValidatorResponse defines the response structure for +// executing a MsgDeRegisterValidator message. type MsgDeRegisterValidatorResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -11672,6 +11677,7 @@ func (x *MsgDeRegisterValidatorResponse) GetCreator() string { return "" } +// MsgSendKeyshare is the Msg/SendKeyshare request type. type MsgSendKeyshare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -11679,8 +11685,8 @@ type MsgSendKeyshare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,3,opt,name=keyShareIndex,proto3" json:"keyShareIndex,omitempty"` - BlockHeight uint64 `protobuf:"varint,4,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"` + KeyShareIndex uint64 `protobuf:"varint,3,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + BlockHeight uint64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } func (x *MsgSendKeyshare) Reset() { @@ -11731,6 +11737,8 @@ func (x *MsgSendKeyshare) GetBlockHeight() uint64 { return 0 } +// MsgSendKeyshareResponse defines the response structure for +// executing a MsgSendKeyshare message. type MsgSendKeyshareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -11738,11 +11746,11 @@ type MsgSendKeyshareResponse struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Keyshare string `protobuf:"bytes,2,opt,name=keyshare,proto3" json:"keyshare,omitempty"` - KeyshareIndex uint64 `protobuf:"varint,3,opt,name=keyshareIndex,proto3" json:"keyshareIndex,omitempty"` - BlockHeight uint64 `protobuf:"varint,4,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"` - ReceivedBlockHeight uint64 `protobuf:"varint,5,opt,name=receivedBlockHeight,proto3" json:"receivedBlockHeight,omitempty"` + KeyshareIndex uint64 `protobuf:"varint,3,opt,name=keyshare_index,json=keyshareIndex,proto3" json:"keyshare_index,omitempty"` + BlockHeight uint64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + ReceivedBlockHeight uint64 `protobuf:"varint,5,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` Success bool `protobuf:"varint,6,opt,name=success,proto3" json:"success,omitempty"` - ErrorMessage string `protobuf:"bytes,7,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"` + ErrorMessage string `protobuf:"bytes,7,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` } func (x *MsgSendKeyshareResponse) Reset() { @@ -11814,17 +11822,17 @@ func (x *MsgSendKeyshareResponse) GetErrorMessage() string { return "" } -// this line is used by starport scaffolding # proto/tx/message +// MsgCreateLatestPubKey is the Msg/CreateLatestPubKey request type. type MsgCreateLatestPubKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - PublicKey string `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"` + PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Commitments []string `protobuf:"bytes,3,rep,name=commitments,proto3" json:"commitments,omitempty"` - NumberOfValidators uint64 `protobuf:"varint,4,opt,name=numberOfValidators,proto3" json:"numberOfValidators,omitempty"` - EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encryptedKeyShares,proto3" json:"encryptedKeyShares,omitempty"` + NumberOfValidators uint64 `protobuf:"varint,4,opt,name=number_of_validators,json=numberOfValidators,proto3" json:"number_of_validators,omitempty"` + EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encrypted_key_shares,json=encryptedKeyShares,proto3" json:"encrypted_key_shares,omitempty"` } func (x *MsgCreateLatestPubKey) Reset() { @@ -11882,6 +11890,8 @@ func (x *MsgCreateLatestPubKey) GetEncryptedKeyShares() []*EncryptedKeyShare { return nil } +// MsgCreateLatestPubKeyResponse defines the response structure for +// executing a MsgCreateLatestPubKey message. type MsgCreateLatestPubKeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -11908,16 +11918,17 @@ func (*MsgCreateLatestPubKeyResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_tx_proto_rawDescGZIP(), []int{9} } +// MsgOverrideLatestPubKey is the Msg/OverrideLatestPubKey request type. type MsgOverrideLatestPubKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - PublicKey string `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"` + PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Commitments []string `protobuf:"bytes,3,rep,name=commitments,proto3" json:"commitments,omitempty"` - NumberOfValidators uint64 `protobuf:"varint,4,opt,name=numberOfValidators,proto3" json:"numberOfValidators,omitempty"` - EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encryptedKeyShares,proto3" json:"encryptedKeyShares,omitempty"` + NumberOfValidators uint64 `protobuf:"varint,4,opt,name=number_of_validators,json=numberOfValidators,proto3" json:"number_of_validators,omitempty"` + EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encrypted_key_shares,json=encryptedKeyShares,proto3" json:"encrypted_key_shares,omitempty"` } func (x *MsgOverrideLatestPubKey) Reset() { @@ -11975,6 +11986,8 @@ func (x *MsgOverrideLatestPubKey) GetEncryptedKeyShares() []*EncryptedKeyShare { return nil } +// MsgOverrideLatestPubKeyResponse defines the response structure for +// executing a MsgOverrideLatestPubKey message. type MsgOverrideLatestPubKeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -12001,6 +12014,7 @@ func (*MsgOverrideLatestPubKeyResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_tx_proto_rawDescGZIP(), []int{11} } +// MsgCreateAuthorizedAddress is the Msg/CreateAuthorizedAddress request type. type MsgCreateAuthorizedAddress struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -12044,6 +12058,8 @@ func (x *MsgCreateAuthorizedAddress) GetCreator() string { return "" } +// MsgCreateAuthorizedAddressResponse defines the response structure for +// executing a MsgCreateAuthorizedAddress message. type MsgCreateAuthorizedAddressResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -12070,13 +12086,14 @@ func (*MsgCreateAuthorizedAddressResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_tx_proto_rawDescGZIP(), []int{13} } +// MsgUpdateAuthorizedAddress is the Msg/UpdateAuthorizedAddress request type. type MsgUpdateAuthorizedAddress struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` - IsAuthorized bool `protobuf:"varint,2,opt,name=isAuthorized,proto3" json:"isAuthorized,omitempty"` + IsAuthorized bool `protobuf:"varint,2,opt,name=is_authorized,json=isAuthorized,proto3" json:"is_authorized,omitempty"` Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"` } @@ -12121,6 +12138,8 @@ func (x *MsgUpdateAuthorizedAddress) GetCreator() string { return "" } +// MsgUpdateAuthorizedAddressResponse defines the response structure for +// executing a MsgUpdateAuthorizedAddress message. type MsgUpdateAuthorizedAddressResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -12147,6 +12166,7 @@ func (*MsgUpdateAuthorizedAddressResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_tx_proto_rawDescGZIP(), []int{15} } +// MsgDeleteAuthorizedAddress is the Msg/DeleteAuthorizedAddress request type. type MsgDeleteAuthorizedAddress struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -12190,6 +12210,8 @@ func (x *MsgDeleteAuthorizedAddress) GetCreator() string { return "" } +// MsgDeleteAuthorizedAddressResponse defines the response structure for +// executing a MsgDeleteAuthorizedAddress message. type MsgDeleteAuthorizedAddressResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -12216,18 +12238,19 @@ func (*MsgDeleteAuthorizedAddressResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_tx_proto_rawDescGZIP(), []int{17} } +// MsgCreateGeneralKeyShare is the Msg/CreateGeneralKeyShare request type. type MsgCreateGeneralKeyShare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - IdType string `protobuf:"bytes,2,opt,name=idType,proto3" json:"idType,omitempty"` - IdValue string `protobuf:"bytes,3,opt,name=idValue,proto3" json:"idValue,omitempty"` - KeyShare string `protobuf:"bytes,4,opt,name=keyShare,proto3" json:"keyShare,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,5,opt,name=keyShareIndex,proto3" json:"keyShareIndex,omitempty"` - ReceivedTimestamp uint64 `protobuf:"varint,6,opt,name=receivedTimestamp,proto3" json:"receivedTimestamp,omitempty"` - ReceivedBlockHeight uint64 `protobuf:"varint,7,opt,name=receivedBlockHeight,proto3" json:"receivedBlockHeight,omitempty"` + IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` + IdValue string `protobuf:"bytes,3,opt,name=id_value,json=idValue,proto3" json:"id_value,omitempty"` + KeyShare string `protobuf:"bytes,4,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` + KeyShareIndex uint64 `protobuf:"varint,5,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + ReceivedTimestamp uint64 `protobuf:"varint,6,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` + ReceivedBlockHeight uint64 `protobuf:"varint,7,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` } func (x *MsgCreateGeneralKeyShare) Reset() { @@ -12299,19 +12322,21 @@ func (x *MsgCreateGeneralKeyShare) GetReceivedBlockHeight() uint64 { return 0 } +// MsgCreateGeneralKeyShareResponse defines the response structure for +// executing a MsgCreateGeneralKeyShare message. type MsgCreateGeneralKeyShareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - IdType string `protobuf:"bytes,2,opt,name=idType,proto3" json:"idType,omitempty"` - IdValue string `protobuf:"bytes,3,opt,name=idValue,proto3" json:"idValue,omitempty"` - KeyShare string `protobuf:"bytes,4,opt,name=keyShare,proto3" json:"keyShare,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,5,opt,name=keyShareIndex,proto3" json:"keyShareIndex,omitempty"` - ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=receivedBlockHeight,proto3" json:"receivedBlockHeight,omitempty"` + IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` + IdValue string `protobuf:"bytes,3,opt,name=id_value,json=idValue,proto3" json:"id_value,omitempty"` + KeyShare string `protobuf:"bytes,4,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` + KeyShareIndex uint64 `protobuf:"varint,5,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` Success bool `protobuf:"varint,7,opt,name=success,proto3" json:"success,omitempty"` - ErrorMessage string `protobuf:"bytes,8,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"` + ErrorMessage string `protobuf:"bytes,8,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` } func (x *MsgCreateGeneralKeyShareResponse) Reset() { @@ -12390,6 +12415,7 @@ func (x *MsgCreateGeneralKeyShareResponse) GetErrorMessage() string { return "" } +// MsgSubmitEncryptedKeyshare is the Msg/SubmitEncryptedKeyshare request type. type MsgSubmitEncryptedKeyshare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -12397,10 +12423,10 @@ type MsgSubmitEncryptedKeyshare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - EncryptedKeyshare string `protobuf:"bytes,3,opt,name=encryptedKeyshare,proto3" json:"encryptedKeyshare,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,4,opt,name=keyShareIndex,proto3" json:"keyShareIndex,omitempty"` - ReceivedTimestamp uint64 `protobuf:"varint,5,opt,name=receivedTimestamp,proto3" json:"receivedTimestamp,omitempty"` - ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=receivedBlockHeight,proto3" json:"receivedBlockHeight,omitempty"` + EncryptedKeyshare string `protobuf:"bytes,3,opt,name=encrypted_keyshare,json=encryptedKeyshare,proto3" json:"encrypted_keyshare,omitempty"` + KeyShareIndex uint64 `protobuf:"varint,4,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + ReceivedTimestamp uint64 `protobuf:"varint,5,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` + ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` Requester string `protobuf:"bytes,7,opt,name=requester,proto3" json:"requester,omitempty"` } @@ -12473,6 +12499,8 @@ func (x *MsgSubmitEncryptedKeyshare) GetRequester() string { return "" } +// MsgSubmitEncryptedKeyshareResponse defines the response structure for +// executing a MsgSubmitEncryptedKeyshare message. type MsgSubmitEncryptedKeyshareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -12513,284 +12541,284 @@ var file_fairyring_keyshare_tx_proto_rawDesc = []byte{ 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x2a, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x5f, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, - 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc1, 0x01, - 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, - 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x3d, 0x0a, 0x06, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, - 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x37, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x24, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x78, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, 0x0a, 0x14, - 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x20, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x2f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0xc1, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x3d, 0x0a, + 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, + 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x37, 0x82, 0xe7, + 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, + 0x24, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x78, 0x2f, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x3e, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x22, 0x38, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x40, 0x0a, 0x16, 0x4d, 0x73, + 0x67, 0x44, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x0c, - 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x38, 0x0a, 0x1c, - 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x40, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, - 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x3a, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x44, - 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x22, 0x9b, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, - 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x0d, - 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, - 0x65, 0x78, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x22, 0x87, 0x02, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, + 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x3a, 0x0a, 0x1e, + 0x4d, 0x73, 0x67, 0x44, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x30, 0x0a, 0x13, - 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x18, - 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x86, 0x02, 0x0a, - 0x15, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, - 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x20, - 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x12, 0x2e, 0x0a, 0x12, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x9e, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, + 0x53, 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x12, 0x26, 0x0a, 0x0f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x6e, + 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, + 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x8c, 0x02, 0x0a, 0x17, 0x4d, 0x73, + 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, + 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, + 0x65, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x8b, 0x02, 0x0a, 0x15, 0x4d, 0x73, 0x67, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, + 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, + 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x63, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x30, 0x0a, + 0x14, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x6e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, + 0x57, 0x0a, 0x14, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, + 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, + 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8d, 0x02, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x4f, + 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, + 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, + 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x0b, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x30, + 0x0a, 0x14, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, - 0x12, 0x55, 0x0a, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, - 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, 0x02, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x4f, 0x76, + 0x12, 0x57, 0x0a, 0x14, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, + 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, + 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, + 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x21, 0x0a, 0x1f, 0x4d, 0x73, 0x67, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, - 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1c, 0x0a, 0x09, - 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, - 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2e, 0x0a, 0x12, - 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, - 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x55, 0x0a, 0x12, - 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x45, 0x6e, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, - 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x22, 0x21, 0x0a, 0x1f, 0x4d, 0x73, 0x67, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, - 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, + 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x0a, 0x1a, 0x4d, 0x73, + 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, + 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x81, + 0x01, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, + 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x73, 0x5f, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, + 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, + 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x1a, 0x4d, 0x73, 0x67, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, - 0x22, 0x0a, 0x0c, 0x69, 0x73, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x7a, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x0c, 0x82, - 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x22, 0x4d, - 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, - 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x5c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, - 0x24, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x96, 0x02, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, - 0x69, 0x64, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x64, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1a, - 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6b, 0x65, - 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, - 0x12, 0x2c, 0x0a, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x72, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x30, - 0x0a, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xa0, - 0x02, 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, - 0x06, 0x69, 0x64, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, - 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, - 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6b, - 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, - 0x78, 0x12, 0x30, 0x0a, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, - 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x22, 0x0a, - 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x22, 0xb2, 0x02, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, - 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x2c, 0x0a, 0x11, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x11, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2c, 0x0a, 0x11, 0x72, 0x65, - 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x30, 0x0a, 0x13, 0x72, 0x65, 0x63, 0x65, - 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, - 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xb3, 0x0a, 0x0a, - 0x03, 0x4d, 0x73, 0x67, 0x12, 0x60, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x12, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, - 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x11, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x28, 0x2e, 0x66, 0x61, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x18, + 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9e, 0x02, 0x0a, + 0x18, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, + 0x69, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x69, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, + 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2d, 0x0a, 0x12, + 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x72, + 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3a, + 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xa8, 0x02, + 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x07, + 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, + 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x26, 0x0a, + 0x0f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xb8, 0x02, 0x0a, 0x1a, 0x4d, 0x73, 0x67, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x2d, 0x0a, + 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x65, 0x6e, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x26, 0x0a, 0x0f, + 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x65, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, + 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xb3, 0x0a, 0x0a, 0x03, 0x4d, 0x73, + 0x67, 0x12, 0x60, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x12, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x11, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x28, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, + 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x13, 0x44, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x13, 0x44, 0x65, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x2a, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, - 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x32, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, - 0x4d, 0x73, 0x67, 0x44, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, - 0x0a, 0x0c, 0x53, 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x23, + 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, + 0x44, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x0c, 0x53, + 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x23, 0x2e, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x1a, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, + 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, + 0x4b, 0x65, 0x79, 0x12, 0x29, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x1a, 0x31, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x1a, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, - 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x72, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, - 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x29, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, - 0x79, 0x1a, 0x31, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x14, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, - 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x2b, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, 0x74, - 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x1a, 0x33, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, + 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x78, 0x0a, 0x14, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, 0x74, + 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, - 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, - 0x01, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2e, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, - 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x1a, 0x36, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, - 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2e, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x1a, 0x36, + 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x1a, 0x33, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x4f, + 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, + 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x17, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x1a, 0x36, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x81, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2e, 0x2e, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x1a, 0x36, 0x2e, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x1a, + 0x36, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x12, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x34, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x1a, 0x36, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x15, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x12, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x1a, 0x34, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x17, 0x53, 0x75, 0x62, 0x6d, - 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x12, 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, - 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x1a, 0x36, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, - 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, - 0x2a, 0x01, 0x42, 0xaf, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x07, 0x54, - 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, - 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, - 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x17, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, + 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x12, 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, + 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x1a, 0x36, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, + 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, + 0xaf, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, + 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -12834,8 +12862,8 @@ var file_fairyring_keyshare_tx_proto_goTypes = []interface{}{ } var file_fairyring_keyshare_tx_proto_depIdxs = []int32{ 22, // 0: fairyring.keyshare.MsgUpdateParams.params:type_name -> fairyring.keyshare.Params - 23, // 1: fairyring.keyshare.MsgCreateLatestPubKey.encryptedKeyShares:type_name -> fairyring.keyshare.EncryptedKeyShare - 23, // 2: fairyring.keyshare.MsgOverrideLatestPubKey.encryptedKeyShares:type_name -> fairyring.keyshare.EncryptedKeyShare + 23, // 1: fairyring.keyshare.MsgCreateLatestPubKey.encrypted_key_shares:type_name -> fairyring.keyshare.EncryptedKeyShare + 23, // 2: fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_key_shares:type_name -> fairyring.keyshare.EncryptedKeyShare 0, // 3: fairyring.keyshare.Msg.UpdateParams:input_type -> fairyring.keyshare.MsgUpdateParams 2, // 4: fairyring.keyshare.Msg.RegisterValidator:input_type -> fairyring.keyshare.MsgRegisterValidator 4, // 5: fairyring.keyshare.Msg.DeRegisterValidator:input_type -> fairyring.keyshare.MsgDeRegisterValidator @@ -12871,7 +12899,6 @@ func file_fairyring_keyshare_tx_proto_init() { return } file_fairyring_keyshare_params_proto_init() - file_fairyring_keyshare_general_key_share_proto_init() file_fairyring_keyshare_pub_key_proto_init() if !protoimpl.UnsafeEnabled { file_fairyring_keyshare_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { diff --git a/api/fairyring/keyshare/tx_grpc.pb.go b/api/fairyring/keyshare/tx_grpc.pb.go index 8aa1e8bf..853656b1 100644 --- a/api/fairyring/keyshare/tx_grpc.pb.go +++ b/api/fairyring/keyshare/tx_grpc.pb.go @@ -39,16 +39,34 @@ type MsgClient interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) + // RegisterValidator defines a operation to register validator which + // is then eligible to participate in sending keyshares RegisterValidator(ctx context.Context, in *MsgRegisterValidator, opts ...grpc.CallOption) (*MsgRegisterValidatorResponse, error) + // DeRegisterValidator defines an operation to de-register + // a registered validator DeRegisterValidator(ctx context.Context, in *MsgDeRegisterValidator, opts ...grpc.CallOption) (*MsgDeRegisterValidatorResponse, error) + // SendKeyshare defines an operation to submit keyshares + // every block from registered validators SendKeyshare(ctx context.Context, in *MsgSendKeyshare, opts ...grpc.CallOption) (*MsgSendKeyshareResponse, error) - // this line is used by starport scaffolding # proto/tx/rpc + // CreateLatestPubKey defines an operation to add a + // public key to the chain (can only be done by an authorized address) CreateLatestPubKey(ctx context.Context, in *MsgCreateLatestPubKey, opts ...grpc.CallOption) (*MsgCreateLatestPubKeyResponse, error) + // OverrideLatestPubKey defines an operation to override the current active pubkey OverrideLatestPubKey(ctx context.Context, in *MsgOverrideLatestPubKey, opts ...grpc.CallOption) (*MsgOverrideLatestPubKeyResponse, error) + // CreateAuthorizedAddress defines an operation to mark an address + // as authorized to create and/or update pubkeys on the chain CreateAuthorizedAddress(ctx context.Context, in *MsgCreateAuthorizedAddress, opts ...grpc.CallOption) (*MsgCreateAuthorizedAddressResponse, error) + // UpdateAuthorizedAddress defines an operation to update the + // list of authorized addresses UpdateAuthorizedAddress(ctx context.Context, in *MsgUpdateAuthorizedAddress, opts ...grpc.CallOption) (*MsgUpdateAuthorizedAddressResponse, error) + // DeleteAuthorizedAddress defines an operation to revoke the + // authorization of a previously authorized address DeleteAuthorizedAddress(ctx context.Context, in *MsgDeleteAuthorizedAddress, opts ...grpc.CallOption) (*MsgDeleteAuthorizedAddressResponse, error) + // CreateGeneralKeyShare defines an operation to submit a + // general keyshare from a registered validator CreateGeneralKeyShare(ctx context.Context, in *MsgCreateGeneralKeyShare, opts ...grpc.CallOption) (*MsgCreateGeneralKeyShareResponse, error) + // SubmitEncryptedKeyshare defines an operation to submit + // an encrypted keyshare from a registered validator SubmitEncryptedKeyshare(ctx context.Context, in *MsgSubmitEncryptedKeyshare, opts ...grpc.CallOption) (*MsgSubmitEncryptedKeyshareResponse, error) } @@ -166,16 +184,34 @@ type MsgServer interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + // RegisterValidator defines a operation to register validator which + // is then eligible to participate in sending keyshares RegisterValidator(context.Context, *MsgRegisterValidator) (*MsgRegisterValidatorResponse, error) + // DeRegisterValidator defines an operation to de-register + // a registered validator DeRegisterValidator(context.Context, *MsgDeRegisterValidator) (*MsgDeRegisterValidatorResponse, error) + // SendKeyshare defines an operation to submit keyshares + // every block from registered validators SendKeyshare(context.Context, *MsgSendKeyshare) (*MsgSendKeyshareResponse, error) - // this line is used by starport scaffolding # proto/tx/rpc + // CreateLatestPubKey defines an operation to add a + // public key to the chain (can only be done by an authorized address) CreateLatestPubKey(context.Context, *MsgCreateLatestPubKey) (*MsgCreateLatestPubKeyResponse, error) + // OverrideLatestPubKey defines an operation to override the current active pubkey OverrideLatestPubKey(context.Context, *MsgOverrideLatestPubKey) (*MsgOverrideLatestPubKeyResponse, error) + // CreateAuthorizedAddress defines an operation to mark an address + // as authorized to create and/or update pubkeys on the chain CreateAuthorizedAddress(context.Context, *MsgCreateAuthorizedAddress) (*MsgCreateAuthorizedAddressResponse, error) + // UpdateAuthorizedAddress defines an operation to update the + // list of authorized addresses UpdateAuthorizedAddress(context.Context, *MsgUpdateAuthorizedAddress) (*MsgUpdateAuthorizedAddressResponse, error) + // DeleteAuthorizedAddress defines an operation to revoke the + // authorization of a previously authorized address DeleteAuthorizedAddress(context.Context, *MsgDeleteAuthorizedAddress) (*MsgDeleteAuthorizedAddressResponse, error) + // CreateGeneralKeyShare defines an operation to submit a + // general keyshare from a registered validator CreateGeneralKeyShare(context.Context, *MsgCreateGeneralKeyShare) (*MsgCreateGeneralKeyShareResponse, error) + // SubmitEncryptedKeyshare defines an operation to submit + // an encrypted keyshare from a registered validator SubmitEncryptedKeyshare(context.Context, *MsgSubmitEncryptedKeyshare) (*MsgSubmitEncryptedKeyshareResponse, error) mustEmbedUnimplementedMsgServer() } diff --git a/api/fairyring/keyshare/validator_set.pulsar.go b/api/fairyring/keyshare/validator_set.pulsar.go index 97096f37..6f419fc9 100644 --- a/api/fairyring/keyshare/validator_set.pulsar.go +++ b/api/fairyring/keyshare/validator_set.pulsar.go @@ -16,8 +16,8 @@ var ( md_ValidatorSet protoreflect.MessageDescriptor fd_ValidatorSet_index protoreflect.FieldDescriptor fd_ValidatorSet_validator protoreflect.FieldDescriptor - fd_ValidatorSet_consAddr protoreflect.FieldDescriptor - fd_ValidatorSet_isActive protoreflect.FieldDescriptor + fd_ValidatorSet_cons_addr protoreflect.FieldDescriptor + fd_ValidatorSet_is_active protoreflect.FieldDescriptor ) func init() { @@ -25,8 +25,8 @@ func init() { md_ValidatorSet = File_fairyring_keyshare_validator_set_proto.Messages().ByName("ValidatorSet") fd_ValidatorSet_index = md_ValidatorSet.Fields().ByName("index") fd_ValidatorSet_validator = md_ValidatorSet.Fields().ByName("validator") - fd_ValidatorSet_consAddr = md_ValidatorSet.Fields().ByName("consAddr") - fd_ValidatorSet_isActive = md_ValidatorSet.Fields().ByName("isActive") + fd_ValidatorSet_cons_addr = md_ValidatorSet.Fields().ByName("cons_addr") + fd_ValidatorSet_is_active = md_ValidatorSet.Fields().ByName("is_active") } var _ protoreflect.Message = (*fastReflection_ValidatorSet)(nil) @@ -108,13 +108,13 @@ func (x *fastReflection_ValidatorSet) Range(f func(protoreflect.FieldDescriptor, } if x.ConsAddr != "" { value := protoreflect.ValueOfString(x.ConsAddr) - if !f(fd_ValidatorSet_consAddr, value) { + if !f(fd_ValidatorSet_cons_addr, value) { return } } if x.IsActive != false { value := protoreflect.ValueOfBool(x.IsActive) - if !f(fd_ValidatorSet_isActive, value) { + if !f(fd_ValidatorSet_is_active, value) { return } } @@ -137,9 +137,9 @@ func (x *fastReflection_ValidatorSet) Has(fd protoreflect.FieldDescriptor) bool return x.Index != "" case "fairyring.keyshare.ValidatorSet.validator": return x.Validator != "" - case "fairyring.keyshare.ValidatorSet.consAddr": + case "fairyring.keyshare.ValidatorSet.cons_addr": return x.ConsAddr != "" - case "fairyring.keyshare.ValidatorSet.isActive": + case "fairyring.keyshare.ValidatorSet.is_active": return x.IsActive != false default: if fd.IsExtension() { @@ -161,9 +161,9 @@ func (x *fastReflection_ValidatorSet) Clear(fd protoreflect.FieldDescriptor) { x.Index = "" case "fairyring.keyshare.ValidatorSet.validator": x.Validator = "" - case "fairyring.keyshare.ValidatorSet.consAddr": + case "fairyring.keyshare.ValidatorSet.cons_addr": x.ConsAddr = "" - case "fairyring.keyshare.ValidatorSet.isActive": + case "fairyring.keyshare.ValidatorSet.is_active": x.IsActive = false default: if fd.IsExtension() { @@ -187,10 +187,10 @@ func (x *fastReflection_ValidatorSet) Get(descriptor protoreflect.FieldDescripto case "fairyring.keyshare.ValidatorSet.validator": value := x.Validator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.ValidatorSet.consAddr": + case "fairyring.keyshare.ValidatorSet.cons_addr": value := x.ConsAddr return protoreflect.ValueOfString(value) - case "fairyring.keyshare.ValidatorSet.isActive": + case "fairyring.keyshare.ValidatorSet.is_active": value := x.IsActive return protoreflect.ValueOfBool(value) default: @@ -217,9 +217,9 @@ func (x *fastReflection_ValidatorSet) Set(fd protoreflect.FieldDescriptor, value x.Index = value.Interface().(string) case "fairyring.keyshare.ValidatorSet.validator": x.Validator = value.Interface().(string) - case "fairyring.keyshare.ValidatorSet.consAddr": + case "fairyring.keyshare.ValidatorSet.cons_addr": x.ConsAddr = value.Interface().(string) - case "fairyring.keyshare.ValidatorSet.isActive": + case "fairyring.keyshare.ValidatorSet.is_active": x.IsActive = value.Bool() default: if fd.IsExtension() { @@ -245,10 +245,10 @@ func (x *fastReflection_ValidatorSet) Mutable(fd protoreflect.FieldDescriptor) p panic(fmt.Errorf("field index of message fairyring.keyshare.ValidatorSet is not mutable")) case "fairyring.keyshare.ValidatorSet.validator": panic(fmt.Errorf("field validator of message fairyring.keyshare.ValidatorSet is not mutable")) - case "fairyring.keyshare.ValidatorSet.consAddr": - panic(fmt.Errorf("field consAddr of message fairyring.keyshare.ValidatorSet is not mutable")) - case "fairyring.keyshare.ValidatorSet.isActive": - panic(fmt.Errorf("field isActive of message fairyring.keyshare.ValidatorSet is not mutable")) + case "fairyring.keyshare.ValidatorSet.cons_addr": + panic(fmt.Errorf("field cons_addr of message fairyring.keyshare.ValidatorSet is not mutable")) + case "fairyring.keyshare.ValidatorSet.is_active": + panic(fmt.Errorf("field is_active of message fairyring.keyshare.ValidatorSet is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorSet")) @@ -266,9 +266,9 @@ func (x *fastReflection_ValidatorSet) NewField(fd protoreflect.FieldDescriptor) return protoreflect.ValueOfString("") case "fairyring.keyshare.ValidatorSet.validator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.ValidatorSet.consAddr": + case "fairyring.keyshare.ValidatorSet.cons_addr": return protoreflect.ValueOfString("") - case "fairyring.keyshare.ValidatorSet.isActive": + case "fairyring.keyshare.ValidatorSet.is_active": return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { @@ -627,6 +627,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// ValidatorSet defines the structure for storing the list of +// validators who will be eligible to send keyshares type ValidatorSet struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -634,8 +636,8 @@ type ValidatorSet struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"` - ConsAddr string `protobuf:"bytes,3,opt,name=consAddr,proto3" json:"consAddr,omitempty"` - IsActive bool `protobuf:"varint,4,opt,name=isActive,proto3" json:"isActive,omitempty"` + ConsAddr string `protobuf:"bytes,3,opt,name=cons_addr,json=consAddr,proto3" json:"cons_addr,omitempty"` + IsActive bool `protobuf:"varint,4,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` } func (x *ValidatorSet) Reset() { @@ -692,27 +694,27 @@ var file_fairyring_keyshare_validator_set_proto_rawDesc = []byte{ 0x0a, 0x26, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x7a, 0x0a, 0x0c, + 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x7c, 0x0a, 0x0c, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, - 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x73, 0x41, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x73, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1a, 0x0a, 0x08, - 0x69, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, - 0x69, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x42, 0xb9, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x42, 0x11, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, - 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, - 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, - 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x73, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x73, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1b, 0x0a, + 0x09, 0x69, 0x73, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x08, 0x69, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x42, 0xb9, 0x01, 0x0a, 0x16, 0x63, + 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x11, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x53, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, + 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, + 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/fairyring/pep/aggregated_key_share.pulsar.go b/api/fairyring/pep/aggregated_key_share.pulsar.go index 18b6860d..efc420e3 100644 --- a/api/fairyring/pep/aggregated_key_share.pulsar.go +++ b/api/fairyring/pep/aggregated_key_share.pulsar.go @@ -557,6 +557,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// AggregatedKeyShare defines the structure to store +// the aggregated keyshare of a particular identity type AggregatedKeyShare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/api/fairyring/pep/encrypted_tx.pulsar.go b/api/fairyring/pep/encrypted_tx.pulsar.go index 13d1e174..9225bc4b 100644 --- a/api/fairyring/pep/encrypted_tx.pulsar.go +++ b/api/fairyring/pep/encrypted_tx.pulsar.go @@ -15,25 +15,25 @@ import ( ) var ( - md_EncryptedTx protoreflect.MessageDescriptor - fd_EncryptedTx_targetHeight protoreflect.FieldDescriptor - fd_EncryptedTx_index protoreflect.FieldDescriptor - fd_EncryptedTx_data protoreflect.FieldDescriptor - fd_EncryptedTx_creator protoreflect.FieldDescriptor - fd_EncryptedTx_chargedGas protoreflect.FieldDescriptor - fd_EncryptedTx_processedAtChainHeight protoreflect.FieldDescriptor - fd_EncryptedTx_expired protoreflect.FieldDescriptor + md_EncryptedTx protoreflect.MessageDescriptor + fd_EncryptedTx_target_height protoreflect.FieldDescriptor + fd_EncryptedTx_index protoreflect.FieldDescriptor + fd_EncryptedTx_data protoreflect.FieldDescriptor + fd_EncryptedTx_creator protoreflect.FieldDescriptor + fd_EncryptedTx_charged_gas protoreflect.FieldDescriptor + fd_EncryptedTx_processed_at_chain_height protoreflect.FieldDescriptor + fd_EncryptedTx_expired protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_encrypted_tx_proto_init() md_EncryptedTx = File_fairyring_pep_encrypted_tx_proto.Messages().ByName("EncryptedTx") - fd_EncryptedTx_targetHeight = md_EncryptedTx.Fields().ByName("targetHeight") + fd_EncryptedTx_target_height = md_EncryptedTx.Fields().ByName("target_height") fd_EncryptedTx_index = md_EncryptedTx.Fields().ByName("index") fd_EncryptedTx_data = md_EncryptedTx.Fields().ByName("data") fd_EncryptedTx_creator = md_EncryptedTx.Fields().ByName("creator") - fd_EncryptedTx_chargedGas = md_EncryptedTx.Fields().ByName("chargedGas") - fd_EncryptedTx_processedAtChainHeight = md_EncryptedTx.Fields().ByName("processedAtChainHeight") + fd_EncryptedTx_charged_gas = md_EncryptedTx.Fields().ByName("charged_gas") + fd_EncryptedTx_processed_at_chain_height = md_EncryptedTx.Fields().ByName("processed_at_chain_height") fd_EncryptedTx_expired = md_EncryptedTx.Fields().ByName("expired") } @@ -104,7 +104,7 @@ func (x *fastReflection_EncryptedTx) Interface() protoreflect.ProtoMessage { func (x *fastReflection_EncryptedTx) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TargetHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.TargetHeight) - if !f(fd_EncryptedTx_targetHeight, value) { + if !f(fd_EncryptedTx_target_height, value) { return } } @@ -128,13 +128,13 @@ func (x *fastReflection_EncryptedTx) Range(f func(protoreflect.FieldDescriptor, } if x.ChargedGas != nil { value := protoreflect.ValueOfMessage(x.ChargedGas.ProtoReflect()) - if !f(fd_EncryptedTx_chargedGas, value) { + if !f(fd_EncryptedTx_charged_gas, value) { return } } if x.ProcessedAtChainHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.ProcessedAtChainHeight) - if !f(fd_EncryptedTx_processedAtChainHeight, value) { + if !f(fd_EncryptedTx_processed_at_chain_height, value) { return } } @@ -159,7 +159,7 @@ func (x *fastReflection_EncryptedTx) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_EncryptedTx) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.EncryptedTx.targetHeight": + case "fairyring.pep.EncryptedTx.target_height": return x.TargetHeight != uint64(0) case "fairyring.pep.EncryptedTx.index": return x.Index != uint64(0) @@ -167,9 +167,9 @@ func (x *fastReflection_EncryptedTx) Has(fd protoreflect.FieldDescriptor) bool { return x.Data != "" case "fairyring.pep.EncryptedTx.creator": return x.Creator != "" - case "fairyring.pep.EncryptedTx.chargedGas": + case "fairyring.pep.EncryptedTx.charged_gas": return x.ChargedGas != nil - case "fairyring.pep.EncryptedTx.processedAtChainHeight": + case "fairyring.pep.EncryptedTx.processed_at_chain_height": return x.ProcessedAtChainHeight != uint64(0) case "fairyring.pep.EncryptedTx.expired": return x.Expired != false @@ -189,7 +189,7 @@ func (x *fastReflection_EncryptedTx) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EncryptedTx) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.EncryptedTx.targetHeight": + case "fairyring.pep.EncryptedTx.target_height": x.TargetHeight = uint64(0) case "fairyring.pep.EncryptedTx.index": x.Index = uint64(0) @@ -197,9 +197,9 @@ func (x *fastReflection_EncryptedTx) Clear(fd protoreflect.FieldDescriptor) { x.Data = "" case "fairyring.pep.EncryptedTx.creator": x.Creator = "" - case "fairyring.pep.EncryptedTx.chargedGas": + case "fairyring.pep.EncryptedTx.charged_gas": x.ChargedGas = nil - case "fairyring.pep.EncryptedTx.processedAtChainHeight": + case "fairyring.pep.EncryptedTx.processed_at_chain_height": x.ProcessedAtChainHeight = uint64(0) case "fairyring.pep.EncryptedTx.expired": x.Expired = false @@ -219,7 +219,7 @@ func (x *fastReflection_EncryptedTx) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_EncryptedTx) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.EncryptedTx.targetHeight": + case "fairyring.pep.EncryptedTx.target_height": value := x.TargetHeight return protoreflect.ValueOfUint64(value) case "fairyring.pep.EncryptedTx.index": @@ -231,10 +231,10 @@ func (x *fastReflection_EncryptedTx) Get(descriptor protoreflect.FieldDescriptor case "fairyring.pep.EncryptedTx.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.pep.EncryptedTx.chargedGas": + case "fairyring.pep.EncryptedTx.charged_gas": value := x.ChargedGas return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.pep.EncryptedTx.processedAtChainHeight": + case "fairyring.pep.EncryptedTx.processed_at_chain_height": value := x.ProcessedAtChainHeight return protoreflect.ValueOfUint64(value) case "fairyring.pep.EncryptedTx.expired": @@ -260,7 +260,7 @@ func (x *fastReflection_EncryptedTx) Get(descriptor protoreflect.FieldDescriptor // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EncryptedTx) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.EncryptedTx.targetHeight": + case "fairyring.pep.EncryptedTx.target_height": x.TargetHeight = value.Uint() case "fairyring.pep.EncryptedTx.index": x.Index = value.Uint() @@ -268,9 +268,9 @@ func (x *fastReflection_EncryptedTx) Set(fd protoreflect.FieldDescriptor, value x.Data = value.Interface().(string) case "fairyring.pep.EncryptedTx.creator": x.Creator = value.Interface().(string) - case "fairyring.pep.EncryptedTx.chargedGas": + case "fairyring.pep.EncryptedTx.charged_gas": x.ChargedGas = value.Message().Interface().(*v1beta1.Coin) - case "fairyring.pep.EncryptedTx.processedAtChainHeight": + case "fairyring.pep.EncryptedTx.processed_at_chain_height": x.ProcessedAtChainHeight = value.Uint() case "fairyring.pep.EncryptedTx.expired": x.Expired = value.Bool() @@ -294,21 +294,21 @@ func (x *fastReflection_EncryptedTx) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EncryptedTx) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.EncryptedTx.chargedGas": + case "fairyring.pep.EncryptedTx.charged_gas": if x.ChargedGas == nil { x.ChargedGas = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.ChargedGas.ProtoReflect()) - case "fairyring.pep.EncryptedTx.targetHeight": - panic(fmt.Errorf("field targetHeight of message fairyring.pep.EncryptedTx is not mutable")) + case "fairyring.pep.EncryptedTx.target_height": + panic(fmt.Errorf("field target_height of message fairyring.pep.EncryptedTx is not mutable")) case "fairyring.pep.EncryptedTx.index": panic(fmt.Errorf("field index of message fairyring.pep.EncryptedTx is not mutable")) case "fairyring.pep.EncryptedTx.data": panic(fmt.Errorf("field data of message fairyring.pep.EncryptedTx is not mutable")) case "fairyring.pep.EncryptedTx.creator": panic(fmt.Errorf("field creator of message fairyring.pep.EncryptedTx is not mutable")) - case "fairyring.pep.EncryptedTx.processedAtChainHeight": - panic(fmt.Errorf("field processedAtChainHeight of message fairyring.pep.EncryptedTx is not mutable")) + case "fairyring.pep.EncryptedTx.processed_at_chain_height": + panic(fmt.Errorf("field processed_at_chain_height of message fairyring.pep.EncryptedTx is not mutable")) case "fairyring.pep.EncryptedTx.expired": panic(fmt.Errorf("field expired of message fairyring.pep.EncryptedTx is not mutable")) default: @@ -324,7 +324,7 @@ func (x *fastReflection_EncryptedTx) Mutable(fd protoreflect.FieldDescriptor) pr // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_EncryptedTx) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.EncryptedTx.targetHeight": + case "fairyring.pep.EncryptedTx.target_height": return protoreflect.ValueOfUint64(uint64(0)) case "fairyring.pep.EncryptedTx.index": return protoreflect.ValueOfUint64(uint64(0)) @@ -332,10 +332,10 @@ func (x *fastReflection_EncryptedTx) NewField(fd protoreflect.FieldDescriptor) p return protoreflect.ValueOfString("") case "fairyring.pep.EncryptedTx.creator": return protoreflect.ValueOfString("") - case "fairyring.pep.EncryptedTx.chargedGas": + case "fairyring.pep.EncryptedTx.charged_gas": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.pep.EncryptedTx.processedAtChainHeight": + case "fairyring.pep.EncryptedTx.processed_at_chain_height": return protoreflect.ValueOfUint64(uint64(0)) case "fairyring.pep.EncryptedTx.expired": return protoreflect.ValueOfBool(false) @@ -827,14 +827,14 @@ func (x *_EncryptedTxArray_1_list) IsValid() bool { } var ( - md_EncryptedTxArray protoreflect.MessageDescriptor - fd_EncryptedTxArray_encryptedTx protoreflect.FieldDescriptor + md_EncryptedTxArray protoreflect.MessageDescriptor + fd_EncryptedTxArray_encrypted_tx protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_encrypted_tx_proto_init() md_EncryptedTxArray = File_fairyring_pep_encrypted_tx_proto.Messages().ByName("EncryptedTxArray") - fd_EncryptedTxArray_encryptedTx = md_EncryptedTxArray.Fields().ByName("encryptedTx") + fd_EncryptedTxArray_encrypted_tx = md_EncryptedTxArray.Fields().ByName("encrypted_tx") } var _ protoreflect.Message = (*fastReflection_EncryptedTxArray)(nil) @@ -904,7 +904,7 @@ func (x *fastReflection_EncryptedTxArray) Interface() protoreflect.ProtoMessage func (x *fastReflection_EncryptedTxArray) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.EncryptedTx) != 0 { value := protoreflect.ValueOfList(&_EncryptedTxArray_1_list{list: &x.EncryptedTx}) - if !f(fd_EncryptedTxArray_encryptedTx, value) { + if !f(fd_EncryptedTxArray_encrypted_tx, value) { return } } @@ -923,7 +923,7 @@ func (x *fastReflection_EncryptedTxArray) Range(f func(protoreflect.FieldDescrip // a repeated field is populated if it is non-empty. func (x *fastReflection_EncryptedTxArray) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.EncryptedTxArray.encryptedTx": + case "fairyring.pep.EncryptedTxArray.encrypted_tx": return len(x.EncryptedTx) != 0 default: if fd.IsExtension() { @@ -941,7 +941,7 @@ func (x *fastReflection_EncryptedTxArray) Has(fd protoreflect.FieldDescriptor) b // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EncryptedTxArray) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.EncryptedTxArray.encryptedTx": + case "fairyring.pep.EncryptedTxArray.encrypted_tx": x.EncryptedTx = nil default: if fd.IsExtension() { @@ -959,7 +959,7 @@ func (x *fastReflection_EncryptedTxArray) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_EncryptedTxArray) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.EncryptedTxArray.encryptedTx": + case "fairyring.pep.EncryptedTxArray.encrypted_tx": if len(x.EncryptedTx) == 0 { return protoreflect.ValueOfList(&_EncryptedTxArray_1_list{}) } @@ -985,7 +985,7 @@ func (x *fastReflection_EncryptedTxArray) Get(descriptor protoreflect.FieldDescr // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EncryptedTxArray) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.EncryptedTxArray.encryptedTx": + case "fairyring.pep.EncryptedTxArray.encrypted_tx": lv := value.List() clv := lv.(*_EncryptedTxArray_1_list) x.EncryptedTx = *clv.list @@ -1009,7 +1009,7 @@ func (x *fastReflection_EncryptedTxArray) Set(fd protoreflect.FieldDescriptor, v // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EncryptedTxArray) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.EncryptedTxArray.encryptedTx": + case "fairyring.pep.EncryptedTxArray.encrypted_tx": if x.EncryptedTx == nil { x.EncryptedTx = []*EncryptedTx{} } @@ -1028,7 +1028,7 @@ func (x *fastReflection_EncryptedTxArray) Mutable(fd protoreflect.FieldDescripto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_EncryptedTxArray) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.EncryptedTxArray.encryptedTx": + case "fairyring.pep.EncryptedTxArray.encrypted_tx": list := []*EncryptedTx{} return protoreflect.ValueOfList(&_EncryptedTxArray_1_list{list: &list}) default: @@ -1270,12 +1270,12 @@ func (x *fastReflection_EncryptedTxArray) ProtoMethods() *protoiface.Methods { } var ( - md_GeneralEncryptedTx protoreflect.MessageDescriptor - fd_GeneralEncryptedTx_identity protoreflect.FieldDescriptor - fd_GeneralEncryptedTx_index protoreflect.FieldDescriptor - fd_GeneralEncryptedTx_data protoreflect.FieldDescriptor - fd_GeneralEncryptedTx_creator protoreflect.FieldDescriptor - fd_GeneralEncryptedTx_chargedGas protoreflect.FieldDescriptor + md_GeneralEncryptedTx protoreflect.MessageDescriptor + fd_GeneralEncryptedTx_identity protoreflect.FieldDescriptor + fd_GeneralEncryptedTx_index protoreflect.FieldDescriptor + fd_GeneralEncryptedTx_data protoreflect.FieldDescriptor + fd_GeneralEncryptedTx_creator protoreflect.FieldDescriptor + fd_GeneralEncryptedTx_charged_gas protoreflect.FieldDescriptor ) func init() { @@ -1285,7 +1285,7 @@ func init() { fd_GeneralEncryptedTx_index = md_GeneralEncryptedTx.Fields().ByName("index") fd_GeneralEncryptedTx_data = md_GeneralEncryptedTx.Fields().ByName("data") fd_GeneralEncryptedTx_creator = md_GeneralEncryptedTx.Fields().ByName("creator") - fd_GeneralEncryptedTx_chargedGas = md_GeneralEncryptedTx.Fields().ByName("chargedGas") + fd_GeneralEncryptedTx_charged_gas = md_GeneralEncryptedTx.Fields().ByName("charged_gas") } var _ protoreflect.Message = (*fastReflection_GeneralEncryptedTx)(nil) @@ -1379,7 +1379,7 @@ func (x *fastReflection_GeneralEncryptedTx) Range(f func(protoreflect.FieldDescr } if x.ChargedGas != nil { value := protoreflect.ValueOfMessage(x.ChargedGas.ProtoReflect()) - if !f(fd_GeneralEncryptedTx_chargedGas, value) { + if !f(fd_GeneralEncryptedTx_charged_gas, value) { return } } @@ -1406,7 +1406,7 @@ func (x *fastReflection_GeneralEncryptedTx) Has(fd protoreflect.FieldDescriptor) return x.Data != "" case "fairyring.pep.GeneralEncryptedTx.creator": return x.Creator != "" - case "fairyring.pep.GeneralEncryptedTx.chargedGas": + case "fairyring.pep.GeneralEncryptedTx.charged_gas": return x.ChargedGas != nil default: if fd.IsExtension() { @@ -1432,7 +1432,7 @@ func (x *fastReflection_GeneralEncryptedTx) Clear(fd protoreflect.FieldDescripto x.Data = "" case "fairyring.pep.GeneralEncryptedTx.creator": x.Creator = "" - case "fairyring.pep.GeneralEncryptedTx.chargedGas": + case "fairyring.pep.GeneralEncryptedTx.charged_gas": x.ChargedGas = nil default: if fd.IsExtension() { @@ -1462,7 +1462,7 @@ func (x *fastReflection_GeneralEncryptedTx) Get(descriptor protoreflect.FieldDes case "fairyring.pep.GeneralEncryptedTx.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.pep.GeneralEncryptedTx.chargedGas": + case "fairyring.pep.GeneralEncryptedTx.charged_gas": value := x.ChargedGas return protoreflect.ValueOfMessage(value.ProtoReflect()) default: @@ -1493,7 +1493,7 @@ func (x *fastReflection_GeneralEncryptedTx) Set(fd protoreflect.FieldDescriptor, x.Data = value.Interface().(string) case "fairyring.pep.GeneralEncryptedTx.creator": x.Creator = value.Interface().(string) - case "fairyring.pep.GeneralEncryptedTx.chargedGas": + case "fairyring.pep.GeneralEncryptedTx.charged_gas": x.ChargedGas = value.Message().Interface().(*v1beta1.Coin) default: if fd.IsExtension() { @@ -1515,7 +1515,7 @@ func (x *fastReflection_GeneralEncryptedTx) Set(fd protoreflect.FieldDescriptor, // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GeneralEncryptedTx) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.GeneralEncryptedTx.chargedGas": + case "fairyring.pep.GeneralEncryptedTx.charged_gas": if x.ChargedGas == nil { x.ChargedGas = new(v1beta1.Coin) } @@ -1549,7 +1549,7 @@ func (x *fastReflection_GeneralEncryptedTx) NewField(fd protoreflect.FieldDescri return protoreflect.ValueOfString("") case "fairyring.pep.GeneralEncryptedTx.creator": return protoreflect.ValueOfString("") - case "fairyring.pep.GeneralEncryptedTx.chargedGas": + case "fairyring.pep.GeneralEncryptedTx.charged_gas": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: @@ -1996,14 +1996,14 @@ func (x *_GeneralEncryptedTxArray_1_list) IsValid() bool { } var ( - md_GeneralEncryptedTxArray protoreflect.MessageDescriptor - fd_GeneralEncryptedTxArray_encryptedTx protoreflect.FieldDescriptor + md_GeneralEncryptedTxArray protoreflect.MessageDescriptor + fd_GeneralEncryptedTxArray_encrypted_tx protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_encrypted_tx_proto_init() md_GeneralEncryptedTxArray = File_fairyring_pep_encrypted_tx_proto.Messages().ByName("GeneralEncryptedTxArray") - fd_GeneralEncryptedTxArray_encryptedTx = md_GeneralEncryptedTxArray.Fields().ByName("encryptedTx") + fd_GeneralEncryptedTxArray_encrypted_tx = md_GeneralEncryptedTxArray.Fields().ByName("encrypted_tx") } var _ protoreflect.Message = (*fastReflection_GeneralEncryptedTxArray)(nil) @@ -2073,7 +2073,7 @@ func (x *fastReflection_GeneralEncryptedTxArray) Interface() protoreflect.ProtoM func (x *fastReflection_GeneralEncryptedTxArray) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.EncryptedTx) != 0 { value := protoreflect.ValueOfList(&_GeneralEncryptedTxArray_1_list{list: &x.EncryptedTx}) - if !f(fd_GeneralEncryptedTxArray_encryptedTx, value) { + if !f(fd_GeneralEncryptedTxArray_encrypted_tx, value) { return } } @@ -2092,7 +2092,7 @@ func (x *fastReflection_GeneralEncryptedTxArray) Range(f func(protoreflect.Field // a repeated field is populated if it is non-empty. func (x *fastReflection_GeneralEncryptedTxArray) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.GeneralEncryptedTxArray.encryptedTx": + case "fairyring.pep.GeneralEncryptedTxArray.encrypted_tx": return len(x.EncryptedTx) != 0 default: if fd.IsExtension() { @@ -2110,7 +2110,7 @@ func (x *fastReflection_GeneralEncryptedTxArray) Has(fd protoreflect.FieldDescri // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GeneralEncryptedTxArray) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.GeneralEncryptedTxArray.encryptedTx": + case "fairyring.pep.GeneralEncryptedTxArray.encrypted_tx": x.EncryptedTx = nil default: if fd.IsExtension() { @@ -2128,7 +2128,7 @@ func (x *fastReflection_GeneralEncryptedTxArray) Clear(fd protoreflect.FieldDesc // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_GeneralEncryptedTxArray) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.GeneralEncryptedTxArray.encryptedTx": + case "fairyring.pep.GeneralEncryptedTxArray.encrypted_tx": if len(x.EncryptedTx) == 0 { return protoreflect.ValueOfList(&_GeneralEncryptedTxArray_1_list{}) } @@ -2154,7 +2154,7 @@ func (x *fastReflection_GeneralEncryptedTxArray) Get(descriptor protoreflect.Fie // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GeneralEncryptedTxArray) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.GeneralEncryptedTxArray.encryptedTx": + case "fairyring.pep.GeneralEncryptedTxArray.encrypted_tx": lv := value.List() clv := lv.(*_GeneralEncryptedTxArray_1_list) x.EncryptedTx = *clv.list @@ -2178,7 +2178,7 @@ func (x *fastReflection_GeneralEncryptedTxArray) Set(fd protoreflect.FieldDescri // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GeneralEncryptedTxArray) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.GeneralEncryptedTxArray.encryptedTx": + case "fairyring.pep.GeneralEncryptedTxArray.encrypted_tx": if x.EncryptedTx == nil { x.EncryptedTx = []*GeneralEncryptedTx{} } @@ -2197,7 +2197,7 @@ func (x *fastReflection_GeneralEncryptedTxArray) Mutable(fd protoreflect.FieldDe // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_GeneralEncryptedTxArray) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.GeneralEncryptedTxArray.encryptedTx": + case "fairyring.pep.GeneralEncryptedTxArray.encrypted_tx": list := []*GeneralEncryptedTx{} return protoreflect.ValueOfList(&_GeneralEncryptedTxArray_1_list{list: &list}) default: @@ -2439,35 +2439,35 @@ func (x *fastReflection_GeneralEncryptedTxArray) ProtoMethods() *protoiface.Meth } var ( - md_GenEncTxExecutionQueue protoreflect.MessageDescriptor - fd_GenEncTxExecutionQueue_creator protoreflect.FieldDescriptor - fd_GenEncTxExecutionQueue_request_id protoreflect.FieldDescriptor - fd_GenEncTxExecutionQueue_identity protoreflect.FieldDescriptor - fd_GenEncTxExecutionQueue_pubkey protoreflect.FieldDescriptor - fd_GenEncTxExecutionQueue_tx_list protoreflect.FieldDescriptor - fd_GenEncTxExecutionQueue_aggr_keyshare protoreflect.FieldDescriptor + md_IdentityExecutionQueue protoreflect.MessageDescriptor + fd_IdentityExecutionQueue_creator protoreflect.FieldDescriptor + fd_IdentityExecutionQueue_request_id protoreflect.FieldDescriptor + fd_IdentityExecutionQueue_identity protoreflect.FieldDescriptor + fd_IdentityExecutionQueue_pubkey protoreflect.FieldDescriptor + fd_IdentityExecutionQueue_tx_list protoreflect.FieldDescriptor + fd_IdentityExecutionQueue_aggr_keyshare protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_encrypted_tx_proto_init() - md_GenEncTxExecutionQueue = File_fairyring_pep_encrypted_tx_proto.Messages().ByName("GenEncTxExecutionQueue") - fd_GenEncTxExecutionQueue_creator = md_GenEncTxExecutionQueue.Fields().ByName("creator") - fd_GenEncTxExecutionQueue_request_id = md_GenEncTxExecutionQueue.Fields().ByName("request_id") - fd_GenEncTxExecutionQueue_identity = md_GenEncTxExecutionQueue.Fields().ByName("identity") - fd_GenEncTxExecutionQueue_pubkey = md_GenEncTxExecutionQueue.Fields().ByName("pubkey") - fd_GenEncTxExecutionQueue_tx_list = md_GenEncTxExecutionQueue.Fields().ByName("tx_list") - fd_GenEncTxExecutionQueue_aggr_keyshare = md_GenEncTxExecutionQueue.Fields().ByName("aggr_keyshare") + md_IdentityExecutionQueue = File_fairyring_pep_encrypted_tx_proto.Messages().ByName("IdentityExecutionQueue") + fd_IdentityExecutionQueue_creator = md_IdentityExecutionQueue.Fields().ByName("creator") + fd_IdentityExecutionQueue_request_id = md_IdentityExecutionQueue.Fields().ByName("request_id") + fd_IdentityExecutionQueue_identity = md_IdentityExecutionQueue.Fields().ByName("identity") + fd_IdentityExecutionQueue_pubkey = md_IdentityExecutionQueue.Fields().ByName("pubkey") + fd_IdentityExecutionQueue_tx_list = md_IdentityExecutionQueue.Fields().ByName("tx_list") + fd_IdentityExecutionQueue_aggr_keyshare = md_IdentityExecutionQueue.Fields().ByName("aggr_keyshare") } -var _ protoreflect.Message = (*fastReflection_GenEncTxExecutionQueue)(nil) +var _ protoreflect.Message = (*fastReflection_IdentityExecutionQueue)(nil) -type fastReflection_GenEncTxExecutionQueue GenEncTxExecutionQueue +type fastReflection_IdentityExecutionQueue IdentityExecutionQueue -func (x *GenEncTxExecutionQueue) ProtoReflect() protoreflect.Message { - return (*fastReflection_GenEncTxExecutionQueue)(x) +func (x *IdentityExecutionQueue) ProtoReflect() protoreflect.Message { + return (*fastReflection_IdentityExecutionQueue)(x) } -func (x *GenEncTxExecutionQueue) slowProtoReflect() protoreflect.Message { +func (x *IdentityExecutionQueue) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_encrypted_tx_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2479,43 +2479,43 @@ func (x *GenEncTxExecutionQueue) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_GenEncTxExecutionQueue_messageType fastReflection_GenEncTxExecutionQueue_messageType -var _ protoreflect.MessageType = fastReflection_GenEncTxExecutionQueue_messageType{} +var _fastReflection_IdentityExecutionQueue_messageType fastReflection_IdentityExecutionQueue_messageType +var _ protoreflect.MessageType = fastReflection_IdentityExecutionQueue_messageType{} -type fastReflection_GenEncTxExecutionQueue_messageType struct{} +type fastReflection_IdentityExecutionQueue_messageType struct{} -func (x fastReflection_GenEncTxExecutionQueue_messageType) Zero() protoreflect.Message { - return (*fastReflection_GenEncTxExecutionQueue)(nil) +func (x fastReflection_IdentityExecutionQueue_messageType) Zero() protoreflect.Message { + return (*fastReflection_IdentityExecutionQueue)(nil) } -func (x fastReflection_GenEncTxExecutionQueue_messageType) New() protoreflect.Message { - return new(fastReflection_GenEncTxExecutionQueue) +func (x fastReflection_IdentityExecutionQueue_messageType) New() protoreflect.Message { + return new(fastReflection_IdentityExecutionQueue) } -func (x fastReflection_GenEncTxExecutionQueue_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GenEncTxExecutionQueue +func (x fastReflection_IdentityExecutionQueue_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_IdentityExecutionQueue } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_GenEncTxExecutionQueue) Descriptor() protoreflect.MessageDescriptor { - return md_GenEncTxExecutionQueue +func (x *fastReflection_IdentityExecutionQueue) Descriptor() protoreflect.MessageDescriptor { + return md_IdentityExecutionQueue } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_GenEncTxExecutionQueue) Type() protoreflect.MessageType { - return _fastReflection_GenEncTxExecutionQueue_messageType +func (x *fastReflection_IdentityExecutionQueue) Type() protoreflect.MessageType { + return _fastReflection_IdentityExecutionQueue_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_GenEncTxExecutionQueue) New() protoreflect.Message { - return new(fastReflection_GenEncTxExecutionQueue) +func (x *fastReflection_IdentityExecutionQueue) New() protoreflect.Message { + return new(fastReflection_IdentityExecutionQueue) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_GenEncTxExecutionQueue) Interface() protoreflect.ProtoMessage { - return (*GenEncTxExecutionQueue)(x) +func (x *fastReflection_IdentityExecutionQueue) Interface() protoreflect.ProtoMessage { + return (*IdentityExecutionQueue)(x) } // Range iterates over every populated field in an undefined order, @@ -2523,40 +2523,40 @@ func (x *fastReflection_GenEncTxExecutionQueue) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_GenEncTxExecutionQueue) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_IdentityExecutionQueue) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_GenEncTxExecutionQueue_creator, value) { + if !f(fd_IdentityExecutionQueue_creator, value) { return } } if x.RequestId != "" { value := protoreflect.ValueOfString(x.RequestId) - if !f(fd_GenEncTxExecutionQueue_request_id, value) { + if !f(fd_IdentityExecutionQueue_request_id, value) { return } } if x.Identity != "" { value := protoreflect.ValueOfString(x.Identity) - if !f(fd_GenEncTxExecutionQueue_identity, value) { + if !f(fd_IdentityExecutionQueue_identity, value) { return } } if x.Pubkey != "" { value := protoreflect.ValueOfString(x.Pubkey) - if !f(fd_GenEncTxExecutionQueue_pubkey, value) { + if !f(fd_IdentityExecutionQueue_pubkey, value) { return } } if x.TxList != nil { value := protoreflect.ValueOfMessage(x.TxList.ProtoReflect()) - if !f(fd_GenEncTxExecutionQueue_tx_list, value) { + if !f(fd_IdentityExecutionQueue_tx_list, value) { return } } if x.AggrKeyshare != "" { value := protoreflect.ValueOfString(x.AggrKeyshare) - if !f(fd_GenEncTxExecutionQueue_aggr_keyshare, value) { + if !f(fd_IdentityExecutionQueue_aggr_keyshare, value) { return } } @@ -2573,25 +2573,25 @@ func (x *fastReflection_GenEncTxExecutionQueue) Range(f func(protoreflect.FieldD // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_GenEncTxExecutionQueue) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_IdentityExecutionQueue) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.GenEncTxExecutionQueue.creator": + case "fairyring.pep.IdentityExecutionQueue.creator": return x.Creator != "" - case "fairyring.pep.GenEncTxExecutionQueue.request_id": + case "fairyring.pep.IdentityExecutionQueue.request_id": return x.RequestId != "" - case "fairyring.pep.GenEncTxExecutionQueue.identity": + case "fairyring.pep.IdentityExecutionQueue.identity": return x.Identity != "" - case "fairyring.pep.GenEncTxExecutionQueue.pubkey": + case "fairyring.pep.IdentityExecutionQueue.pubkey": return x.Pubkey != "" - case "fairyring.pep.GenEncTxExecutionQueue.tx_list": + case "fairyring.pep.IdentityExecutionQueue.tx_list": return x.TxList != nil - case "fairyring.pep.GenEncTxExecutionQueue.aggr_keyshare": + case "fairyring.pep.IdentityExecutionQueue.aggr_keyshare": return x.AggrKeyshare != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.GenEncTxExecutionQueue")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.IdentityExecutionQueue")) } - panic(fmt.Errorf("message fairyring.pep.GenEncTxExecutionQueue does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.IdentityExecutionQueue does not contain field %s", fd.FullName())) } } @@ -2601,25 +2601,25 @@ func (x *fastReflection_GenEncTxExecutionQueue) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenEncTxExecutionQueue) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_IdentityExecutionQueue) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.GenEncTxExecutionQueue.creator": + case "fairyring.pep.IdentityExecutionQueue.creator": x.Creator = "" - case "fairyring.pep.GenEncTxExecutionQueue.request_id": + case "fairyring.pep.IdentityExecutionQueue.request_id": x.RequestId = "" - case "fairyring.pep.GenEncTxExecutionQueue.identity": + case "fairyring.pep.IdentityExecutionQueue.identity": x.Identity = "" - case "fairyring.pep.GenEncTxExecutionQueue.pubkey": + case "fairyring.pep.IdentityExecutionQueue.pubkey": x.Pubkey = "" - case "fairyring.pep.GenEncTxExecutionQueue.tx_list": + case "fairyring.pep.IdentityExecutionQueue.tx_list": x.TxList = nil - case "fairyring.pep.GenEncTxExecutionQueue.aggr_keyshare": + case "fairyring.pep.IdentityExecutionQueue.aggr_keyshare": x.AggrKeyshare = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.GenEncTxExecutionQueue")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.IdentityExecutionQueue")) } - panic(fmt.Errorf("message fairyring.pep.GenEncTxExecutionQueue does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.IdentityExecutionQueue does not contain field %s", fd.FullName())) } } @@ -2629,31 +2629,31 @@ func (x *fastReflection_GenEncTxExecutionQueue) Clear(fd protoreflect.FieldDescr // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GenEncTxExecutionQueue) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_IdentityExecutionQueue) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.GenEncTxExecutionQueue.creator": + case "fairyring.pep.IdentityExecutionQueue.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.pep.GenEncTxExecutionQueue.request_id": + case "fairyring.pep.IdentityExecutionQueue.request_id": value := x.RequestId return protoreflect.ValueOfString(value) - case "fairyring.pep.GenEncTxExecutionQueue.identity": + case "fairyring.pep.IdentityExecutionQueue.identity": value := x.Identity return protoreflect.ValueOfString(value) - case "fairyring.pep.GenEncTxExecutionQueue.pubkey": + case "fairyring.pep.IdentityExecutionQueue.pubkey": value := x.Pubkey return protoreflect.ValueOfString(value) - case "fairyring.pep.GenEncTxExecutionQueue.tx_list": + case "fairyring.pep.IdentityExecutionQueue.tx_list": value := x.TxList return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.pep.GenEncTxExecutionQueue.aggr_keyshare": + case "fairyring.pep.IdentityExecutionQueue.aggr_keyshare": value := x.AggrKeyshare return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.GenEncTxExecutionQueue")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.IdentityExecutionQueue")) } - panic(fmt.Errorf("message fairyring.pep.GenEncTxExecutionQueue does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.IdentityExecutionQueue does not contain field %s", descriptor.FullName())) } } @@ -2667,25 +2667,25 @@ func (x *fastReflection_GenEncTxExecutionQueue) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenEncTxExecutionQueue) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_IdentityExecutionQueue) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.GenEncTxExecutionQueue.creator": + case "fairyring.pep.IdentityExecutionQueue.creator": x.Creator = value.Interface().(string) - case "fairyring.pep.GenEncTxExecutionQueue.request_id": + case "fairyring.pep.IdentityExecutionQueue.request_id": x.RequestId = value.Interface().(string) - case "fairyring.pep.GenEncTxExecutionQueue.identity": + case "fairyring.pep.IdentityExecutionQueue.identity": x.Identity = value.Interface().(string) - case "fairyring.pep.GenEncTxExecutionQueue.pubkey": + case "fairyring.pep.IdentityExecutionQueue.pubkey": x.Pubkey = value.Interface().(string) - case "fairyring.pep.GenEncTxExecutionQueue.tx_list": + case "fairyring.pep.IdentityExecutionQueue.tx_list": x.TxList = value.Message().Interface().(*GeneralEncryptedTxArray) - case "fairyring.pep.GenEncTxExecutionQueue.aggr_keyshare": + case "fairyring.pep.IdentityExecutionQueue.aggr_keyshare": x.AggrKeyshare = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.GenEncTxExecutionQueue")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.IdentityExecutionQueue")) } - panic(fmt.Errorf("message fairyring.pep.GenEncTxExecutionQueue does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.IdentityExecutionQueue does not contain field %s", fd.FullName())) } } @@ -2699,64 +2699,64 @@ func (x *fastReflection_GenEncTxExecutionQueue) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenEncTxExecutionQueue) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_IdentityExecutionQueue) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.GenEncTxExecutionQueue.tx_list": + case "fairyring.pep.IdentityExecutionQueue.tx_list": if x.TxList == nil { x.TxList = new(GeneralEncryptedTxArray) } return protoreflect.ValueOfMessage(x.TxList.ProtoReflect()) - case "fairyring.pep.GenEncTxExecutionQueue.creator": - panic(fmt.Errorf("field creator of message fairyring.pep.GenEncTxExecutionQueue is not mutable")) - case "fairyring.pep.GenEncTxExecutionQueue.request_id": - panic(fmt.Errorf("field request_id of message fairyring.pep.GenEncTxExecutionQueue is not mutable")) - case "fairyring.pep.GenEncTxExecutionQueue.identity": - panic(fmt.Errorf("field identity of message fairyring.pep.GenEncTxExecutionQueue is not mutable")) - case "fairyring.pep.GenEncTxExecutionQueue.pubkey": - panic(fmt.Errorf("field pubkey of message fairyring.pep.GenEncTxExecutionQueue is not mutable")) - case "fairyring.pep.GenEncTxExecutionQueue.aggr_keyshare": - panic(fmt.Errorf("field aggr_keyshare of message fairyring.pep.GenEncTxExecutionQueue is not mutable")) + case "fairyring.pep.IdentityExecutionQueue.creator": + panic(fmt.Errorf("field creator of message fairyring.pep.IdentityExecutionQueue is not mutable")) + case "fairyring.pep.IdentityExecutionQueue.request_id": + panic(fmt.Errorf("field request_id of message fairyring.pep.IdentityExecutionQueue is not mutable")) + case "fairyring.pep.IdentityExecutionQueue.identity": + panic(fmt.Errorf("field identity of message fairyring.pep.IdentityExecutionQueue is not mutable")) + case "fairyring.pep.IdentityExecutionQueue.pubkey": + panic(fmt.Errorf("field pubkey of message fairyring.pep.IdentityExecutionQueue is not mutable")) + case "fairyring.pep.IdentityExecutionQueue.aggr_keyshare": + panic(fmt.Errorf("field aggr_keyshare of message fairyring.pep.IdentityExecutionQueue is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.GenEncTxExecutionQueue")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.IdentityExecutionQueue")) } - panic(fmt.Errorf("message fairyring.pep.GenEncTxExecutionQueue does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.IdentityExecutionQueue does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GenEncTxExecutionQueue) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_IdentityExecutionQueue) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.GenEncTxExecutionQueue.creator": + case "fairyring.pep.IdentityExecutionQueue.creator": return protoreflect.ValueOfString("") - case "fairyring.pep.GenEncTxExecutionQueue.request_id": + case "fairyring.pep.IdentityExecutionQueue.request_id": return protoreflect.ValueOfString("") - case "fairyring.pep.GenEncTxExecutionQueue.identity": + case "fairyring.pep.IdentityExecutionQueue.identity": return protoreflect.ValueOfString("") - case "fairyring.pep.GenEncTxExecutionQueue.pubkey": + case "fairyring.pep.IdentityExecutionQueue.pubkey": return protoreflect.ValueOfString("") - case "fairyring.pep.GenEncTxExecutionQueue.tx_list": + case "fairyring.pep.IdentityExecutionQueue.tx_list": m := new(GeneralEncryptedTxArray) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.pep.GenEncTxExecutionQueue.aggr_keyshare": + case "fairyring.pep.IdentityExecutionQueue.aggr_keyshare": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.GenEncTxExecutionQueue")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.IdentityExecutionQueue")) } - panic(fmt.Errorf("message fairyring.pep.GenEncTxExecutionQueue does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.IdentityExecutionQueue does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GenEncTxExecutionQueue) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_IdentityExecutionQueue) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.GenEncTxExecutionQueue", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.IdentityExecutionQueue", d.FullName())) } panic("unreachable") } @@ -2764,7 +2764,7 @@ func (x *fastReflection_GenEncTxExecutionQueue) WhichOneof(d protoreflect.OneofD // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GenEncTxExecutionQueue) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_IdentityExecutionQueue) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2775,7 +2775,7 @@ func (x *fastReflection_GenEncTxExecutionQueue) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenEncTxExecutionQueue) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_IdentityExecutionQueue) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2787,7 +2787,7 @@ func (x *fastReflection_GenEncTxExecutionQueue) SetUnknown(fields protoreflect.R // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_GenEncTxExecutionQueue) IsValid() bool { +func (x *fastReflection_IdentityExecutionQueue) IsValid() bool { return x != nil } @@ -2797,9 +2797,9 @@ func (x *fastReflection_GenEncTxExecutionQueue) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_GenEncTxExecutionQueue) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_IdentityExecutionQueue) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GenEncTxExecutionQueue) + x := input.Message.Interface().(*IdentityExecutionQueue) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2845,7 +2845,7 @@ func (x *fastReflection_GenEncTxExecutionQueue) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GenEncTxExecutionQueue) + x := input.Message.Interface().(*IdentityExecutionQueue) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2924,7 +2924,7 @@ func (x *fastReflection_GenEncTxExecutionQueue) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GenEncTxExecutionQueue) + x := input.Message.Interface().(*IdentityExecutionQueue) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2956,10 +2956,10 @@ func (x *fastReflection_GenEncTxExecutionQueue) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenEncTxExecutionQueue: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: IdentityExecutionQueue: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenEncTxExecutionQueue: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: IdentityExecutionQueue: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3206,17 +3206,19 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// EncryptedTx defines the structure to store an encrypted transaction +// by execution height type EncryptedTx struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - TargetHeight uint64 `protobuf:"varint,1,opt,name=targetHeight,proto3" json:"targetHeight,omitempty"` + TargetHeight uint64 `protobuf:"varint,1,opt,name=target_height,json=targetHeight,proto3" json:"target_height,omitempty"` Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` Creator string `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"` - ChargedGas *v1beta1.Coin `protobuf:"bytes,5,opt,name=chargedGas,proto3" json:"chargedGas,omitempty"` - ProcessedAtChainHeight uint64 `protobuf:"varint,6,opt,name=processedAtChainHeight,proto3" json:"processedAtChainHeight,omitempty"` + ChargedGas *v1beta1.Coin `protobuf:"bytes,5,opt,name=charged_gas,json=chargedGas,proto3" json:"charged_gas,omitempty"` + ProcessedAtChainHeight uint64 `protobuf:"varint,6,opt,name=processed_at_chain_height,json=processedAtChainHeight,proto3" json:"processed_at_chain_height,omitempty"` Expired bool `protobuf:"varint,7,opt,name=expired,proto3" json:"expired,omitempty"` } @@ -3289,12 +3291,13 @@ func (x *EncryptedTx) GetExpired() bool { return false } +// EncryptedTxArray defines a list of EncryptedTx type EncryptedTxArray struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - EncryptedTx []*EncryptedTx `protobuf:"bytes,1,rep,name=encryptedTx,proto3" json:"encryptedTx,omitempty"` + EncryptedTx []*EncryptedTx `protobuf:"bytes,1,rep,name=encrypted_tx,json=encryptedTx,proto3" json:"encrypted_tx,omitempty"` } func (x *EncryptedTxArray) Reset() { @@ -3324,6 +3327,8 @@ func (x *EncryptedTxArray) GetEncryptedTx() []*EncryptedTx { return nil } +// GeneralEncryptedTx defines the structure to store a +// general encrypted transaction by identity type GeneralEncryptedTx struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3333,7 +3338,7 @@ type GeneralEncryptedTx struct { Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` Creator string `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"` - ChargedGas *v1beta1.Coin `protobuf:"bytes,5,opt,name=chargedGas,proto3" json:"chargedGas,omitempty"` + ChargedGas *v1beta1.Coin `protobuf:"bytes,5,opt,name=charged_gas,json=chargedGas,proto3" json:"charged_gas,omitempty"` } func (x *GeneralEncryptedTx) Reset() { @@ -3391,12 +3396,13 @@ func (x *GeneralEncryptedTx) GetChargedGas() *v1beta1.Coin { return nil } +// GeneralEncryptedTxArray defines a list of GeneralEncryptedTx type GeneralEncryptedTxArray struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - EncryptedTx []*GeneralEncryptedTx `protobuf:"bytes,1,rep,name=encryptedTx,proto3" json:"encryptedTx,omitempty"` + EncryptedTx []*GeneralEncryptedTx `protobuf:"bytes,1,rep,name=encrypted_tx,json=encryptedTx,proto3" json:"encrypted_tx,omitempty"` } func (x *GeneralEncryptedTxArray) Reset() { @@ -3426,7 +3432,10 @@ func (x *GeneralEncryptedTxArray) GetEncryptedTx() []*GeneralEncryptedTx { return nil } -type GenEncTxExecutionQueue struct { +// IdentityExecutionQueue defines the structure to queue up +// identities that have aggregated keyshares available and +// are ready to execute any associated contracts or encrypted transactions +type IdentityExecutionQueue struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -3439,8 +3448,8 @@ type GenEncTxExecutionQueue struct { AggrKeyshare string `protobuf:"bytes,6,opt,name=aggr_keyshare,json=aggrKeyshare,proto3" json:"aggr_keyshare,omitempty"` } -func (x *GenEncTxExecutionQueue) Reset() { - *x = GenEncTxExecutionQueue{} +func (x *IdentityExecutionQueue) Reset() { + *x = IdentityExecutionQueue{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_encrypted_tx_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3448,53 +3457,53 @@ func (x *GenEncTxExecutionQueue) Reset() { } } -func (x *GenEncTxExecutionQueue) String() string { +func (x *IdentityExecutionQueue) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GenEncTxExecutionQueue) ProtoMessage() {} +func (*IdentityExecutionQueue) ProtoMessage() {} -// Deprecated: Use GenEncTxExecutionQueue.ProtoReflect.Descriptor instead. -func (*GenEncTxExecutionQueue) Descriptor() ([]byte, []int) { +// Deprecated: Use IdentityExecutionQueue.ProtoReflect.Descriptor instead. +func (*IdentityExecutionQueue) Descriptor() ([]byte, []int) { return file_fairyring_pep_encrypted_tx_proto_rawDescGZIP(), []int{4} } -func (x *GenEncTxExecutionQueue) GetCreator() string { +func (x *IdentityExecutionQueue) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *GenEncTxExecutionQueue) GetRequestId() string { +func (x *IdentityExecutionQueue) GetRequestId() string { if x != nil { return x.RequestId } return "" } -func (x *GenEncTxExecutionQueue) GetIdentity() string { +func (x *IdentityExecutionQueue) GetIdentity() string { if x != nil { return x.Identity } return "" } -func (x *GenEncTxExecutionQueue) GetPubkey() string { +func (x *IdentityExecutionQueue) GetPubkey() string { if x != nil { return x.Pubkey } return "" } -func (x *GenEncTxExecutionQueue) GetTxList() *GeneralEncryptedTxArray { +func (x *IdentityExecutionQueue) GetTxList() *GeneralEncryptedTxArray { if x != nil { return x.TxList } return nil } -func (x *GenEncTxExecutionQueue) GetAggrKeyshare() string { +func (x *IdentityExecutionQueue) GetAggrKeyshare() string { if x != nil { return x.AggrKeyshare } @@ -3510,71 +3519,72 @@ var file_fairyring_pep_encrypted_tx_proto_rawDesc = []byte{ 0x70, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, - 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x82, 0x02, 0x0a, 0x0b, 0x45, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x22, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x74, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, - 0x39, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x47, 0x61, 0x73, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x0a, - 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x47, 0x61, 0x73, 0x12, 0x36, 0x0a, 0x16, 0x70, 0x72, - 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x41, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x48, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x70, 0x72, 0x6f, 0x63, - 0x65, 0x73, 0x73, 0x65, 0x64, 0x41, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x48, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x22, 0x56, 0x0a, 0x10, - 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, - 0x12, 0x42, 0x0a, 0x0b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x87, 0x02, 0x0a, 0x0b, 0x45, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, + 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, + 0x65, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x12, 0x3a, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x5f, 0x67, 0x61, 0x73, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, + 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, + 0x52, 0x0a, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x47, 0x61, 0x73, 0x12, 0x39, 0x0a, 0x19, + 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x5f, 0x63, 0x68, 0x61, + 0x69, 0x6e, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x16, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x41, 0x74, 0x43, 0x68, 0x61, 0x69, + 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, + 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, + 0x64, 0x22, 0x57, 0x0a, 0x10, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, + 0x41, 0x72, 0x72, 0x61, 0x79, 0x12, 0x43, 0x0a, 0x0c, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x65, 0x64, 0x5f, 0x74, 0x78, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x65, + 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x22, 0xb0, 0x01, 0x0a, 0x12, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, + 0x78, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, + 0x64, 0x65, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x12, 0x3a, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x5f, 0x67, 0x61, 0x73, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, + 0x6e, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x47, 0x61, 0x73, 0x22, 0x65, 0x0a, + 0x17, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, + 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x12, 0x4a, 0x0a, 0x0c, 0x65, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, + 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x54, 0x78, 0x22, 0xaf, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, - 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x1a, 0x0a, 0x08, 0x69, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x12, 0x0a, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x39, 0x0a, 0x0a, 0x63, - 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x47, 0x61, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x72, - 0x67, 0x65, 0x64, 0x47, 0x61, 0x73, 0x22, 0x64, 0x0a, 0x17, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, - 0x79, 0x12, 0x49, 0x0a, 0x0b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, - 0x0b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x22, 0xeb, 0x01, 0x0a, - 0x16, 0x47, 0x65, 0x6e, 0x45, 0x6e, 0x63, 0x54, 0x78, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, - 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, - 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, - 0x62, 0x6b, 0x65, 0x79, 0x12, 0x3f, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x52, 0x06, 0x74, - 0x78, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x67, 0x67, 0x72, 0x5f, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x67, - 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x9a, 0x01, 0x0a, 0x11, 0x63, - 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, - 0x42, 0x10, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, - 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x64, 0x54, 0x78, 0x22, 0xeb, 0x01, 0x0a, 0x16, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x3f, 0x0a, 0x07, + 0x74, 0x78, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x47, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, + 0x41, 0x72, 0x72, 0x61, 0x79, 0x52, 0x06, 0x74, 0x78, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x23, 0x0a, + 0x0d, 0x61, 0x67, 0x67, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x42, 0x9a, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x10, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x65, 0x64, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, + 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, + 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, + 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, + 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3595,15 +3605,15 @@ var file_fairyring_pep_encrypted_tx_proto_goTypes = []interface{}{ (*EncryptedTxArray)(nil), // 1: fairyring.pep.EncryptedTxArray (*GeneralEncryptedTx)(nil), // 2: fairyring.pep.GeneralEncryptedTx (*GeneralEncryptedTxArray)(nil), // 3: fairyring.pep.GeneralEncryptedTxArray - (*GenEncTxExecutionQueue)(nil), // 4: fairyring.pep.GenEncTxExecutionQueue + (*IdentityExecutionQueue)(nil), // 4: fairyring.pep.IdentityExecutionQueue (*v1beta1.Coin)(nil), // 5: cosmos.base.v1beta1.Coin } var file_fairyring_pep_encrypted_tx_proto_depIdxs = []int32{ - 5, // 0: fairyring.pep.EncryptedTx.chargedGas:type_name -> cosmos.base.v1beta1.Coin - 0, // 1: fairyring.pep.EncryptedTxArray.encryptedTx:type_name -> fairyring.pep.EncryptedTx - 5, // 2: fairyring.pep.GeneralEncryptedTx.chargedGas:type_name -> cosmos.base.v1beta1.Coin - 2, // 3: fairyring.pep.GeneralEncryptedTxArray.encryptedTx:type_name -> fairyring.pep.GeneralEncryptedTx - 3, // 4: fairyring.pep.GenEncTxExecutionQueue.tx_list:type_name -> fairyring.pep.GeneralEncryptedTxArray + 5, // 0: fairyring.pep.EncryptedTx.charged_gas:type_name -> cosmos.base.v1beta1.Coin + 0, // 1: fairyring.pep.EncryptedTxArray.encrypted_tx:type_name -> fairyring.pep.EncryptedTx + 5, // 2: fairyring.pep.GeneralEncryptedTx.charged_gas:type_name -> cosmos.base.v1beta1.Coin + 2, // 3: fairyring.pep.GeneralEncryptedTxArray.encrypted_tx:type_name -> fairyring.pep.GeneralEncryptedTx + 3, // 4: fairyring.pep.IdentityExecutionQueue.tx_list:type_name -> fairyring.pep.GeneralEncryptedTxArray 5, // [5:5] is the sub-list for method output_type 5, // [5:5] is the sub-list for method input_type 5, // [5:5] is the sub-list for extension type_name @@ -3666,7 +3676,7 @@ func file_fairyring_pep_encrypted_tx_proto_init() { } } file_fairyring_pep_encrypted_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenEncTxExecutionQueue); i { + switch v := v.(*IdentityExecutionQueue); i { case 0: return &v.state case 1: diff --git a/api/fairyring/pep/genesis.pulsar.go b/api/fairyring/pep/genesis.pulsar.go index 3fe557b4..f09fb070 100644 --- a/api/fairyring/pep/genesis.pulsar.go +++ b/api/fairyring/pep/genesis.pulsar.go @@ -1292,11 +1292,10 @@ type GenesisState struct { unknownFields protoimpl.UnknownFields // params defines all the parameters of the module. - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` - PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - EncryptedTxArray []*EncryptedTxArray `protobuf:"bytes,3,rep,name=encryptedTxArray,proto3" json:"encryptedTxArray,omitempty"` - PepNonceList []*PepNonce `protobuf:"bytes,4,rep,name=pepNonceList,proto3" json:"pepNonceList,omitempty"` - // this line is used by starport scaffolding # genesis/proto/state + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` + EncryptedTxArray []*EncryptedTxArray `protobuf:"bytes,3,rep,name=encryptedTxArray,proto3" json:"encryptedTxArray,omitempty"` + PepNonceList []*PepNonce `protobuf:"bytes,4,rep,name=pepNonceList,proto3" json:"pepNonceList,omitempty"` AggregatedKeyShareList []*AggregatedKeyShare `protobuf:"bytes,6,rep,name=aggregatedKeyShareList,proto3" json:"aggregatedKeyShareList,omitempty"` ActivePubKey *common.ActivePublicKey `protobuf:"bytes,7,opt,name=activePubKey,proto3" json:"activePubKey,omitempty"` QueuedPubKey *common.QueuedPublicKey `protobuf:"bytes,8,opt,name=queuedPubKey,proto3" json:"queuedPubKey,omitempty"` diff --git a/api/fairyring/pep/params.pulsar.go b/api/fairyring/pep/params.pulsar.go index d12c026c..7bfea733 100644 --- a/api/fairyring/pep/params.pulsar.go +++ b/api/fairyring/pep/params.pulsar.go @@ -1476,6 +1476,7 @@ type Params struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // option (gogoproto.equal) = true; KeyshareChannelId string `protobuf:"bytes,1,opt,name=keyshare_channel_id,json=keyshareChannelId,proto3" json:"keyshare_channel_id,omitempty"` IsSourceChain bool `protobuf:"varint,2,opt,name=is_source_chain,json=isSourceChain,proto3" json:"is_source_chain,omitempty"` TrustedCounterParties []*TrustedCounterParty `protobuf:"bytes,3,rep,name=trusted_counter_parties,json=trustedCounterParties,proto3" json:"trusted_counter_parties,omitempty"` @@ -1546,6 +1547,9 @@ func (x *Params) GetPrivateKeysharePrice() *v1beta1.Coin { return nil } +// TrustedCounterParty defines the structure to store the ibc info +// of the source chain (fairyring) to reliably fetch active keys and +// aggregated/encrypted keyshares type TrustedCounterParty struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/api/fairyring/pep/pep_nonce.pulsar.go b/api/fairyring/pep/pep_nonce.pulsar.go index 558743a8..bf021765 100644 --- a/api/fairyring/pep/pep_nonce.pulsar.go +++ b/api/fairyring/pep/pep_nonce.pulsar.go @@ -493,6 +493,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// PepNonce defines the nonce of an account to send encrypted transactions. +// It is incremanted seperately from the nonce maintained by the auth module type PepNonce struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/api/fairyring/pep/query.pulsar.go b/api/fairyring/pep/query.pulsar.go index 87742372..fac7b0d9 100644 --- a/api/fairyring/pep/query.pulsar.go +++ b/api/fairyring/pep/query.pulsar.go @@ -4,7 +4,6 @@ package pep import ( _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" - _ "cosmossdk.io/api/cosmos/base/v1beta1" common "github.com/Fairblock/fairyring/api/fairyring/common" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" @@ -810,25 +809,25 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods } var ( - md_QueryKeyshareRequest protoreflect.MessageDescriptor - fd_QueryKeyshareRequest_req_id protoreflect.FieldDescriptor + md_QueryKeyshareReqRequest protoreflect.MessageDescriptor + fd_QueryKeyshareReqRequest_req_id protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryKeyshareRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryKeyshareRequest") - fd_QueryKeyshareRequest_req_id = md_QueryKeyshareRequest.Fields().ByName("req_id") + md_QueryKeyshareReqRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryKeyshareReqRequest") + fd_QueryKeyshareReqRequest_req_id = md_QueryKeyshareReqRequest.Fields().ByName("req_id") } -var _ protoreflect.Message = (*fastReflection_QueryKeyshareRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryKeyshareReqRequest)(nil) -type fastReflection_QueryKeyshareRequest QueryKeyshareRequest +type fastReflection_QueryKeyshareReqRequest QueryKeyshareReqRequest -func (x *QueryKeyshareRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryKeyshareRequest)(x) +func (x *QueryKeyshareReqRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryKeyshareReqRequest)(x) } -func (x *QueryKeyshareRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryKeyshareReqRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -840,43 +839,43 @@ func (x *QueryKeyshareRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryKeyshareRequest_messageType fastReflection_QueryKeyshareRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryKeyshareRequest_messageType{} +var _fastReflection_QueryKeyshareReqRequest_messageType fastReflection_QueryKeyshareReqRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryKeyshareReqRequest_messageType{} -type fastReflection_QueryKeyshareRequest_messageType struct{} +type fastReflection_QueryKeyshareReqRequest_messageType struct{} -func (x fastReflection_QueryKeyshareRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryKeyshareRequest)(nil) +func (x fastReflection_QueryKeyshareReqRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryKeyshareReqRequest)(nil) } -func (x fastReflection_QueryKeyshareRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryKeyshareRequest) +func (x fastReflection_QueryKeyshareReqRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryKeyshareReqRequest) } -func (x fastReflection_QueryKeyshareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyshareRequest +func (x fastReflection_QueryKeyshareReqRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyshareReqRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryKeyshareRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyshareRequest +func (x *fastReflection_QueryKeyshareReqRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyshareReqRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryKeyshareRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryKeyshareRequest_messageType +func (x *fastReflection_QueryKeyshareReqRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryKeyshareReqRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryKeyshareRequest) New() protoreflect.Message { - return new(fastReflection_QueryKeyshareRequest) +func (x *fastReflection_QueryKeyshareReqRequest) New() protoreflect.Message { + return new(fastReflection_QueryKeyshareReqRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryKeyshareRequest) Interface() protoreflect.ProtoMessage { - return (*QueryKeyshareRequest)(x) +func (x *fastReflection_QueryKeyshareReqRequest) Interface() protoreflect.ProtoMessage { + return (*QueryKeyshareReqRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -884,10 +883,10 @@ func (x *fastReflection_QueryKeyshareRequest) Interface() protoreflect.ProtoMess // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryKeyshareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryKeyshareReqRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ReqId != "" { value := protoreflect.ValueOfString(x.ReqId) - if !f(fd_QueryKeyshareRequest_req_id, value) { + if !f(fd_QueryKeyshareReqRequest_req_id, value) { return } } @@ -904,15 +903,15 @@ func (x *fastReflection_QueryKeyshareRequest) Range(f func(protoreflect.FieldDes // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryKeyshareRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryKeyshareReqRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareRequest.req_id": + case "fairyring.pep.QueryKeyshareReqRequest.req_id": return x.ReqId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqRequest does not contain field %s", fd.FullName())) } } @@ -922,15 +921,15 @@ func (x *fastReflection_QueryKeyshareRequest) Has(fd protoreflect.FieldDescripto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryKeyshareReqRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareRequest.req_id": + case "fairyring.pep.QueryKeyshareReqRequest.req_id": x.ReqId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqRequest does not contain field %s", fd.FullName())) } } @@ -940,16 +939,16 @@ func (x *fastReflection_QueryKeyshareRequest) Clear(fd protoreflect.FieldDescrip // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryKeyshareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareReqRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryKeyshareRequest.req_id": + case "fairyring.pep.QueryKeyshareReqRequest.req_id": value := x.ReqId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqRequest does not contain field %s", descriptor.FullName())) } } @@ -963,15 +962,15 @@ func (x *fastReflection_QueryKeyshareRequest) Get(descriptor protoreflect.FieldD // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryKeyshareReqRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareRequest.req_id": + case "fairyring.pep.QueryKeyshareReqRequest.req_id": x.ReqId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqRequest does not contain field %s", fd.FullName())) } } @@ -985,40 +984,40 @@ func (x *fastReflection_QueryKeyshareRequest) Set(fd protoreflect.FieldDescripto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareReqRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareRequest.req_id": - panic(fmt.Errorf("field req_id of message fairyring.pep.QueryKeyshareRequest is not mutable")) + case "fairyring.pep.QueryKeyshareReqRequest.req_id": + panic(fmt.Errorf("field req_id of message fairyring.pep.QueryKeyshareReqRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryKeyshareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareReqRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareRequest.req_id": + case "fairyring.pep.QueryKeyshareReqRequest.req_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryKeyshareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryKeyshareReqRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryKeyshareRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryKeyshareReqRequest", d.FullName())) } panic("unreachable") } @@ -1026,7 +1025,7 @@ func (x *fastReflection_QueryKeyshareRequest) WhichOneof(d protoreflect.OneofDes // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryKeyshareRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryKeyshareReqRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1037,7 +1036,7 @@ func (x *fastReflection_QueryKeyshareRequest) GetUnknown() protoreflect.RawField // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryKeyshareReqRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1049,7 +1048,7 @@ func (x *fastReflection_QueryKeyshareRequest) SetUnknown(fields protoreflect.Raw // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryKeyshareRequest) IsValid() bool { +func (x *fastReflection_QueryKeyshareReqRequest) IsValid() bool { return x != nil } @@ -1059,9 +1058,9 @@ func (x *fastReflection_QueryKeyshareRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryKeyshareRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryKeyshareReqRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryKeyshareRequest) + x := input.Message.Interface().(*QueryKeyshareReqRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1087,7 +1086,7 @@ func (x *fastReflection_QueryKeyshareRequest) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyshareRequest) + x := input.Message.Interface().(*QueryKeyshareReqRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1124,7 +1123,7 @@ func (x *fastReflection_QueryKeyshareRequest) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyshareRequest) + x := input.Message.Interface().(*QueryKeyshareReqRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1156,10 +1155,10 @@ func (x *fastReflection_QueryKeyshareRequest) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareReqRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareReqRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1230,25 +1229,25 @@ func (x *fastReflection_QueryKeyshareRequest) ProtoMethods() *protoiface.Methods } var ( - md_QueryKeyshareResponse protoreflect.MessageDescriptor - fd_QueryKeyshareResponse_keyshare protoreflect.FieldDescriptor + md_QueryKeyshareReqResponse protoreflect.MessageDescriptor + fd_QueryKeyshareReqResponse_keyshare protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryKeyshareResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryKeyshareResponse") - fd_QueryKeyshareResponse_keyshare = md_QueryKeyshareResponse.Fields().ByName("keyshare") + md_QueryKeyshareReqResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryKeyshareReqResponse") + fd_QueryKeyshareReqResponse_keyshare = md_QueryKeyshareReqResponse.Fields().ByName("keyshare") } -var _ protoreflect.Message = (*fastReflection_QueryKeyshareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryKeyshareReqResponse)(nil) -type fastReflection_QueryKeyshareResponse QueryKeyshareResponse +type fastReflection_QueryKeyshareReqResponse QueryKeyshareReqResponse -func (x *QueryKeyshareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryKeyshareResponse)(x) +func (x *QueryKeyshareReqResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryKeyshareReqResponse)(x) } -func (x *QueryKeyshareResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryKeyshareReqResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1260,43 +1259,43 @@ func (x *QueryKeyshareResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryKeyshareResponse_messageType fastReflection_QueryKeyshareResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryKeyshareResponse_messageType{} +var _fastReflection_QueryKeyshareReqResponse_messageType fastReflection_QueryKeyshareReqResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryKeyshareReqResponse_messageType{} -type fastReflection_QueryKeyshareResponse_messageType struct{} +type fastReflection_QueryKeyshareReqResponse_messageType struct{} -func (x fastReflection_QueryKeyshareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryKeyshareResponse)(nil) +func (x fastReflection_QueryKeyshareReqResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryKeyshareReqResponse)(nil) } -func (x fastReflection_QueryKeyshareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryKeyshareResponse) +func (x fastReflection_QueryKeyshareReqResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryKeyshareReqResponse) } -func (x fastReflection_QueryKeyshareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyshareResponse +func (x fastReflection_QueryKeyshareReqResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyshareReqResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryKeyshareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyshareResponse +func (x *fastReflection_QueryKeyshareReqResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyshareReqResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryKeyshareResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryKeyshareResponse_messageType +func (x *fastReflection_QueryKeyshareReqResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryKeyshareReqResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryKeyshareResponse) New() protoreflect.Message { - return new(fastReflection_QueryKeyshareResponse) +func (x *fastReflection_QueryKeyshareReqResponse) New() protoreflect.Message { + return new(fastReflection_QueryKeyshareReqResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryKeyshareResponse) Interface() protoreflect.ProtoMessage { - return (*QueryKeyshareResponse)(x) +func (x *fastReflection_QueryKeyshareReqResponse) Interface() protoreflect.ProtoMessage { + return (*QueryKeyshareReqResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -1304,10 +1303,10 @@ func (x *fastReflection_QueryKeyshareResponse) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryKeyshareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryKeyshareReqResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Keyshare != nil { value := protoreflect.ValueOfMessage(x.Keyshare.ProtoReflect()) - if !f(fd_QueryKeyshareResponse_keyshare, value) { + if !f(fd_QueryKeyshareReqResponse_keyshare, value) { return } } @@ -1324,15 +1323,15 @@ func (x *fastReflection_QueryKeyshareResponse) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryKeyshareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryKeyshareReqResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareResponse.keyshare": + case "fairyring.pep.QueryKeyshareReqResponse.keyshare": return x.Keyshare != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqResponse does not contain field %s", fd.FullName())) } } @@ -1342,15 +1341,15 @@ func (x *fastReflection_QueryKeyshareResponse) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryKeyshareReqResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareResponse.keyshare": + case "fairyring.pep.QueryKeyshareReqResponse.keyshare": x.Keyshare = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqResponse does not contain field %s", fd.FullName())) } } @@ -1360,16 +1359,16 @@ func (x *fastReflection_QueryKeyshareResponse) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryKeyshareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareReqResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryKeyshareResponse.keyshare": + case "fairyring.pep.QueryKeyshareReqResponse.keyshare": value := x.Keyshare return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqResponse does not contain field %s", descriptor.FullName())) } } @@ -1383,15 +1382,15 @@ func (x *fastReflection_QueryKeyshareResponse) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryKeyshareReqResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareResponse.keyshare": - x.Keyshare = value.Message().Interface().(*GenEncTxExecutionQueue) + case "fairyring.pep.QueryKeyshareReqResponse.keyshare": + x.Keyshare = value.Message().Interface().(*IdentityExecutionQueue) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqResponse does not contain field %s", fd.FullName())) } } @@ -1405,44 +1404,44 @@ func (x *fastReflection_QueryKeyshareResponse) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareReqResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareResponse.keyshare": + case "fairyring.pep.QueryKeyshareReqResponse.keyshare": if x.Keyshare == nil { - x.Keyshare = new(GenEncTxExecutionQueue) + x.Keyshare = new(IdentityExecutionQueue) } return protoreflect.ValueOfMessage(x.Keyshare.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryKeyshareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareReqResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareResponse.keyshare": - m := new(GenEncTxExecutionQueue) + case "fairyring.pep.QueryKeyshareReqResponse.keyshare": + m := new(IdentityExecutionQueue) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryKeyshareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryKeyshareReqResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryKeyshareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryKeyshareReqResponse", d.FullName())) } panic("unreachable") } @@ -1450,7 +1449,7 @@ func (x *fastReflection_QueryKeyshareResponse) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryKeyshareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryKeyshareReqResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1461,7 +1460,7 @@ func (x *fastReflection_QueryKeyshareResponse) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryKeyshareReqResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1473,7 +1472,7 @@ func (x *fastReflection_QueryKeyshareResponse) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryKeyshareResponse) IsValid() bool { +func (x *fastReflection_QueryKeyshareReqResponse) IsValid() bool { return x != nil } @@ -1483,9 +1482,9 @@ func (x *fastReflection_QueryKeyshareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryKeyshareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryKeyshareReqResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryKeyshareResponse) + x := input.Message.Interface().(*QueryKeyshareReqResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1511,7 +1510,7 @@ func (x *fastReflection_QueryKeyshareResponse) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyshareResponse) + x := input.Message.Interface().(*QueryKeyshareReqResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1555,7 +1554,7 @@ func (x *fastReflection_QueryKeyshareResponse) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyshareResponse) + x := input.Message.Interface().(*QueryKeyshareReqResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1587,10 +1586,10 @@ func (x *fastReflection_QueryKeyshareResponse) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareReqResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareReqResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1623,7 +1622,7 @@ func (x *fastReflection_QueryKeyshareResponse) ProtoMethods() *protoiface.Method return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Keyshare == nil { - x.Keyshare = &GenEncTxExecutionQueue{} + x.Keyshare = &IdentityExecutionQueue{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Keyshare); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -1665,25 +1664,25 @@ func (x *fastReflection_QueryKeyshareResponse) ProtoMethods() *protoiface.Method } var ( - md_QueryAllKeyshareRequest protoreflect.MessageDescriptor - fd_QueryAllKeyshareRequest_pagination protoreflect.FieldDescriptor + md_QueryKeyshareReqAllRequest protoreflect.MessageDescriptor + fd_QueryKeyshareReqAllRequest_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryAllKeyshareRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryAllKeyshareRequest") - fd_QueryAllKeyshareRequest_pagination = md_QueryAllKeyshareRequest.Fields().ByName("pagination") + md_QueryKeyshareReqAllRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryKeyshareReqAllRequest") + fd_QueryKeyshareReqAllRequest_pagination = md_QueryKeyshareReqAllRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAllKeyshareRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryKeyshareReqAllRequest)(nil) -type fastReflection_QueryAllKeyshareRequest QueryAllKeyshareRequest +type fastReflection_QueryKeyshareReqAllRequest QueryKeyshareReqAllRequest -func (x *QueryAllKeyshareRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllKeyshareRequest)(x) +func (x *QueryKeyshareReqAllRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryKeyshareReqAllRequest)(x) } -func (x *QueryAllKeyshareRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryKeyshareReqAllRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1695,43 +1694,43 @@ func (x *QueryAllKeyshareRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryAllKeyshareRequest_messageType fastReflection_QueryAllKeyshareRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllKeyshareRequest_messageType{} +var _fastReflection_QueryKeyshareReqAllRequest_messageType fastReflection_QueryKeyshareReqAllRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryKeyshareReqAllRequest_messageType{} -type fastReflection_QueryAllKeyshareRequest_messageType struct{} +type fastReflection_QueryKeyshareReqAllRequest_messageType struct{} -func (x fastReflection_QueryAllKeyshareRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllKeyshareRequest)(nil) +func (x fastReflection_QueryKeyshareReqAllRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryKeyshareReqAllRequest)(nil) } -func (x fastReflection_QueryAllKeyshareRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllKeyshareRequest) +func (x fastReflection_QueryKeyshareReqAllRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryKeyshareReqAllRequest) } -func (x fastReflection_QueryAllKeyshareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllKeyshareRequest +func (x fastReflection_QueryKeyshareReqAllRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyshareReqAllRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAllKeyshareRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllKeyshareRequest +func (x *fastReflection_QueryKeyshareReqAllRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyshareReqAllRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAllKeyshareRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryAllKeyshareRequest_messageType +func (x *fastReflection_QueryKeyshareReqAllRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryKeyshareReqAllRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllKeyshareRequest) New() protoreflect.Message { - return new(fastReflection_QueryAllKeyshareRequest) +func (x *fastReflection_QueryKeyshareReqAllRequest) New() protoreflect.Message { + return new(fastReflection_QueryKeyshareReqAllRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllKeyshareRequest) Interface() protoreflect.ProtoMessage { - return (*QueryAllKeyshareRequest)(x) +func (x *fastReflection_QueryKeyshareReqAllRequest) Interface() protoreflect.ProtoMessage { + return (*QueryKeyshareReqAllRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -1739,10 +1738,10 @@ func (x *fastReflection_QueryAllKeyshareRequest) Interface() protoreflect.ProtoM // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAllKeyshareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryKeyshareReqAllRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAllKeyshareRequest_pagination, value) { + if !f(fd_QueryKeyshareReqAllRequest_pagination, value) { return } } @@ -1759,15 +1758,15 @@ func (x *fastReflection_QueryAllKeyshareRequest) Range(f func(protoreflect.Field // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAllKeyshareRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryKeyshareReqAllRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryAllKeyshareRequest.pagination": + case "fairyring.pep.QueryKeyshareReqAllRequest.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllKeyshareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllKeyshareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllRequest does not contain field %s", fd.FullName())) } } @@ -1777,15 +1776,15 @@ func (x *fastReflection_QueryAllKeyshareRequest) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllKeyshareRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryKeyshareReqAllRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryAllKeyshareRequest.pagination": + case "fairyring.pep.QueryKeyshareReqAllRequest.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllKeyshareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllKeyshareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllRequest does not contain field %s", fd.FullName())) } } @@ -1795,16 +1794,16 @@ func (x *fastReflection_QueryAllKeyshareRequest) Clear(fd protoreflect.FieldDesc // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAllKeyshareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareReqAllRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryAllKeyshareRequest.pagination": + case "fairyring.pep.QueryKeyshareReqAllRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllKeyshareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllKeyshareRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllRequest does not contain field %s", descriptor.FullName())) } } @@ -1818,15 +1817,15 @@ func (x *fastReflection_QueryAllKeyshareRequest) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllKeyshareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryKeyshareReqAllRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryAllKeyshareRequest.pagination": + case "fairyring.pep.QueryKeyshareReqAllRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllKeyshareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllKeyshareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllRequest does not contain field %s", fd.FullName())) } } @@ -1840,44 +1839,44 @@ func (x *fastReflection_QueryAllKeyshareRequest) Set(fd protoreflect.FieldDescri // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllKeyshareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareReqAllRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryAllKeyshareRequest.pagination": + case "fairyring.pep.QueryKeyshareReqAllRequest.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllKeyshareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllKeyshareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAllKeyshareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareReqAllRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryAllKeyshareRequest.pagination": + case "fairyring.pep.QueryKeyshareReqAllRequest.pagination": m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllKeyshareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllKeyshareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAllKeyshareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryKeyshareReqAllRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryAllKeyshareRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryKeyshareReqAllRequest", d.FullName())) } panic("unreachable") } @@ -1885,7 +1884,7 @@ func (x *fastReflection_QueryAllKeyshareRequest) WhichOneof(d protoreflect.Oneof // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAllKeyshareRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryKeyshareReqAllRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1896,7 +1895,7 @@ func (x *fastReflection_QueryAllKeyshareRequest) GetUnknown() protoreflect.RawFi // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllKeyshareRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryKeyshareReqAllRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1908,7 +1907,7 @@ func (x *fastReflection_QueryAllKeyshareRequest) SetUnknown(fields protoreflect. // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAllKeyshareRequest) IsValid() bool { +func (x *fastReflection_QueryKeyshareReqAllRequest) IsValid() bool { return x != nil } @@ -1918,9 +1917,9 @@ func (x *fastReflection_QueryAllKeyshareRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAllKeyshareRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryKeyshareReqAllRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllKeyshareRequest) + x := input.Message.Interface().(*QueryKeyshareReqAllRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1946,7 +1945,7 @@ func (x *fastReflection_QueryAllKeyshareRequest) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllKeyshareRequest) + x := input.Message.Interface().(*QueryKeyshareReqAllRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1990,7 +1989,7 @@ func (x *fastReflection_QueryAllKeyshareRequest) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAllKeyshareRequest) + x := input.Message.Interface().(*QueryKeyshareReqAllRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2022,10 +2021,10 @@ func (x *fastReflection_QueryAllKeyshareRequest) ProtoMethods() *protoiface.Meth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllKeyshareRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareReqAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllKeyshareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareReqAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2099,79 +2098,79 @@ func (x *fastReflection_QueryAllKeyshareRequest) ProtoMethods() *protoiface.Meth } } -var _ protoreflect.List = (*_QueryAllKeyshareResponse_1_list)(nil) +var _ protoreflect.List = (*_QueryKeyshareReqAllResponse_1_list)(nil) -type _QueryAllKeyshareResponse_1_list struct { - list *[]*GenEncTxExecutionQueue +type _QueryKeyshareReqAllResponse_1_list struct { + list *[]*IdentityExecutionQueue } -func (x *_QueryAllKeyshareResponse_1_list) Len() int { +func (x *_QueryKeyshareReqAllResponse_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryAllKeyshareResponse_1_list) Get(i int) protoreflect.Value { +func (x *_QueryKeyshareReqAllResponse_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryAllKeyshareResponse_1_list) Set(i int, value protoreflect.Value) { +func (x *_QueryKeyshareReqAllResponse_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GenEncTxExecutionQueue) + concreteValue := valueUnwrapped.Interface().(*IdentityExecutionQueue) (*x.list)[i] = concreteValue } -func (x *_QueryAllKeyshareResponse_1_list) Append(value protoreflect.Value) { +func (x *_QueryKeyshareReqAllResponse_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GenEncTxExecutionQueue) + concreteValue := valueUnwrapped.Interface().(*IdentityExecutionQueue) *x.list = append(*x.list, concreteValue) } -func (x *_QueryAllKeyshareResponse_1_list) AppendMutable() protoreflect.Value { - v := new(GenEncTxExecutionQueue) +func (x *_QueryKeyshareReqAllResponse_1_list) AppendMutable() protoreflect.Value { + v := new(IdentityExecutionQueue) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAllKeyshareResponse_1_list) Truncate(n int) { +func (x *_QueryKeyshareReqAllResponse_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryAllKeyshareResponse_1_list) NewElement() protoreflect.Value { - v := new(GenEncTxExecutionQueue) +func (x *_QueryKeyshareReqAllResponse_1_list) NewElement() protoreflect.Value { + v := new(IdentityExecutionQueue) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAllKeyshareResponse_1_list) IsValid() bool { +func (x *_QueryKeyshareReqAllResponse_1_list) IsValid() bool { return x.list != nil } var ( - md_QueryAllKeyshareResponse protoreflect.MessageDescriptor - fd_QueryAllKeyshareResponse_keyshares protoreflect.FieldDescriptor - fd_QueryAllKeyshareResponse_pagination protoreflect.FieldDescriptor + md_QueryKeyshareReqAllResponse protoreflect.MessageDescriptor + fd_QueryKeyshareReqAllResponse_keyshares protoreflect.FieldDescriptor + fd_QueryKeyshareReqAllResponse_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryAllKeyshareResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryAllKeyshareResponse") - fd_QueryAllKeyshareResponse_keyshares = md_QueryAllKeyshareResponse.Fields().ByName("keyshares") - fd_QueryAllKeyshareResponse_pagination = md_QueryAllKeyshareResponse.Fields().ByName("pagination") + md_QueryKeyshareReqAllResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryKeyshareReqAllResponse") + fd_QueryKeyshareReqAllResponse_keyshares = md_QueryKeyshareReqAllResponse.Fields().ByName("keyshares") + fd_QueryKeyshareReqAllResponse_pagination = md_QueryKeyshareReqAllResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAllKeyshareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryKeyshareReqAllResponse)(nil) -type fastReflection_QueryAllKeyshareResponse QueryAllKeyshareResponse +type fastReflection_QueryKeyshareReqAllResponse QueryKeyshareReqAllResponse -func (x *QueryAllKeyshareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllKeyshareResponse)(x) +func (x *QueryKeyshareReqAllResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryKeyshareReqAllResponse)(x) } -func (x *QueryAllKeyshareResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryKeyshareReqAllResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2183,43 +2182,43 @@ func (x *QueryAllKeyshareResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryAllKeyshareResponse_messageType fastReflection_QueryAllKeyshareResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllKeyshareResponse_messageType{} +var _fastReflection_QueryKeyshareReqAllResponse_messageType fastReflection_QueryKeyshareReqAllResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryKeyshareReqAllResponse_messageType{} -type fastReflection_QueryAllKeyshareResponse_messageType struct{} +type fastReflection_QueryKeyshareReqAllResponse_messageType struct{} -func (x fastReflection_QueryAllKeyshareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllKeyshareResponse)(nil) +func (x fastReflection_QueryKeyshareReqAllResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryKeyshareReqAllResponse)(nil) } -func (x fastReflection_QueryAllKeyshareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllKeyshareResponse) +func (x fastReflection_QueryKeyshareReqAllResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryKeyshareReqAllResponse) } -func (x fastReflection_QueryAllKeyshareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllKeyshareResponse +func (x fastReflection_QueryKeyshareReqAllResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyshareReqAllResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAllKeyshareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllKeyshareResponse +func (x *fastReflection_QueryKeyshareReqAllResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyshareReqAllResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAllKeyshareResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryAllKeyshareResponse_messageType +func (x *fastReflection_QueryKeyshareReqAllResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryKeyshareReqAllResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllKeyshareResponse) New() protoreflect.Message { - return new(fastReflection_QueryAllKeyshareResponse) +func (x *fastReflection_QueryKeyshareReqAllResponse) New() protoreflect.Message { + return new(fastReflection_QueryKeyshareReqAllResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllKeyshareResponse) Interface() protoreflect.ProtoMessage { - return (*QueryAllKeyshareResponse)(x) +func (x *fastReflection_QueryKeyshareReqAllResponse) Interface() protoreflect.ProtoMessage { + return (*QueryKeyshareReqAllResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -2227,16 +2226,16 @@ func (x *fastReflection_QueryAllKeyshareResponse) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAllKeyshareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryKeyshareReqAllResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.Keyshares) != 0 { - value := protoreflect.ValueOfList(&_QueryAllKeyshareResponse_1_list{list: &x.Keyshares}) - if !f(fd_QueryAllKeyshareResponse_keyshares, value) { + value := protoreflect.ValueOfList(&_QueryKeyshareReqAllResponse_1_list{list: &x.Keyshares}) + if !f(fd_QueryKeyshareReqAllResponse_keyshares, value) { return } } if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAllKeyshareResponse_pagination, value) { + if !f(fd_QueryKeyshareReqAllResponse_pagination, value) { return } } @@ -2253,17 +2252,17 @@ func (x *fastReflection_QueryAllKeyshareResponse) Range(f func(protoreflect.Fiel // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAllKeyshareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryKeyshareReqAllResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryAllKeyshareResponse.keyshares": + case "fairyring.pep.QueryKeyshareReqAllResponse.keyshares": return len(x.Keyshares) != 0 - case "fairyring.pep.QueryAllKeyshareResponse.pagination": + case "fairyring.pep.QueryKeyshareReqAllResponse.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllResponse does not contain field %s", fd.FullName())) } } @@ -2273,17 +2272,17 @@ func (x *fastReflection_QueryAllKeyshareResponse) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllKeyshareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryKeyshareReqAllResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryAllKeyshareResponse.keyshares": + case "fairyring.pep.QueryKeyshareReqAllResponse.keyshares": x.Keyshares = nil - case "fairyring.pep.QueryAllKeyshareResponse.pagination": + case "fairyring.pep.QueryKeyshareReqAllResponse.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllResponse does not contain field %s", fd.FullName())) } } @@ -2293,22 +2292,22 @@ func (x *fastReflection_QueryAllKeyshareResponse) Clear(fd protoreflect.FieldDes // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAllKeyshareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareReqAllResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryAllKeyshareResponse.keyshares": + case "fairyring.pep.QueryKeyshareReqAllResponse.keyshares": if len(x.Keyshares) == 0 { - return protoreflect.ValueOfList(&_QueryAllKeyshareResponse_1_list{}) + return protoreflect.ValueOfList(&_QueryKeyshareReqAllResponse_1_list{}) } - listValue := &_QueryAllKeyshareResponse_1_list{list: &x.Keyshares} + listValue := &_QueryKeyshareReqAllResponse_1_list{list: &x.Keyshares} return protoreflect.ValueOfList(listValue) - case "fairyring.pep.QueryAllKeyshareResponse.pagination": + case "fairyring.pep.QueryKeyshareReqAllResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllKeyshareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllResponse does not contain field %s", descriptor.FullName())) } } @@ -2322,19 +2321,19 @@ func (x *fastReflection_QueryAllKeyshareResponse) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllKeyshareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryKeyshareReqAllResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryAllKeyshareResponse.keyshares": + case "fairyring.pep.QueryKeyshareReqAllResponse.keyshares": lv := value.List() - clv := lv.(*_QueryAllKeyshareResponse_1_list) + clv := lv.(*_QueryKeyshareReqAllResponse_1_list) x.Keyshares = *clv.list - case "fairyring.pep.QueryAllKeyshareResponse.pagination": + case "fairyring.pep.QueryKeyshareReqAllResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllResponse does not contain field %s", fd.FullName())) } } @@ -2348,53 +2347,53 @@ func (x *fastReflection_QueryAllKeyshareResponse) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllKeyshareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareReqAllResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryAllKeyshareResponse.keyshares": + case "fairyring.pep.QueryKeyshareReqAllResponse.keyshares": if x.Keyshares == nil { - x.Keyshares = []*GenEncTxExecutionQueue{} + x.Keyshares = []*IdentityExecutionQueue{} } - value := &_QueryAllKeyshareResponse_1_list{list: &x.Keyshares} + value := &_QueryKeyshareReqAllResponse_1_list{list: &x.Keyshares} return protoreflect.ValueOfList(value) - case "fairyring.pep.QueryAllKeyshareResponse.pagination": + case "fairyring.pep.QueryKeyshareReqAllResponse.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageResponse) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAllKeyshareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareReqAllResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryAllKeyshareResponse.keyshares": - list := []*GenEncTxExecutionQueue{} - return protoreflect.ValueOfList(&_QueryAllKeyshareResponse_1_list{list: &list}) - case "fairyring.pep.QueryAllKeyshareResponse.pagination": + case "fairyring.pep.QueryKeyshareReqAllResponse.keyshares": + list := []*IdentityExecutionQueue{} + return protoreflect.ValueOfList(&_QueryKeyshareReqAllResponse_1_list{list: &list}) + case "fairyring.pep.QueryKeyshareReqAllResponse.pagination": m := new(v1beta1.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAllKeyshareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryKeyshareReqAllResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryAllKeyshareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryKeyshareReqAllResponse", d.FullName())) } panic("unreachable") } @@ -2402,7 +2401,7 @@ func (x *fastReflection_QueryAllKeyshareResponse) WhichOneof(d protoreflect.Oneo // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAllKeyshareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryKeyshareReqAllResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2413,7 +2412,7 @@ func (x *fastReflection_QueryAllKeyshareResponse) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllKeyshareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryKeyshareReqAllResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2425,7 +2424,7 @@ func (x *fastReflection_QueryAllKeyshareResponse) SetUnknown(fields protoreflect // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAllKeyshareResponse) IsValid() bool { +func (x *fastReflection_QueryKeyshareReqAllResponse) IsValid() bool { return x != nil } @@ -2435,9 +2434,9 @@ func (x *fastReflection_QueryAllKeyshareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAllKeyshareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryKeyshareReqAllResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllKeyshareResponse) + x := input.Message.Interface().(*QueryKeyshareReqAllResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2469,7 +2468,7 @@ func (x *fastReflection_QueryAllKeyshareResponse) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllKeyshareResponse) + x := input.Message.Interface().(*QueryKeyshareReqAllResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2529,7 +2528,7 @@ func (x *fastReflection_QueryAllKeyshareResponse) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAllKeyshareResponse) + x := input.Message.Interface().(*QueryKeyshareReqAllResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2561,10 +2560,10 @@ func (x *fastReflection_QueryAllKeyshareResponse) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllKeyshareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareReqAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareReqAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2596,7 +2595,7 @@ func (x *fastReflection_QueryAllKeyshareResponse) ProtoMethods() *protoiface.Met if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Keyshares = append(x.Keyshares, &GenEncTxExecutionQueue{}) + x.Keyshares = append(x.Keyshares, &IdentityExecutionQueue{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Keyshares[len(x.Keyshares)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -2673,27 +2672,27 @@ func (x *fastReflection_QueryAllKeyshareResponse) ProtoMethods() *protoiface.Met } var ( - md_QueryGetEncryptedTxRequest protoreflect.MessageDescriptor - fd_QueryGetEncryptedTxRequest_targetHeight protoreflect.FieldDescriptor - fd_QueryGetEncryptedTxRequest_index protoreflect.FieldDescriptor + md_QueryEncryptedTxRequest protoreflect.MessageDescriptor + fd_QueryEncryptedTxRequest_target_height protoreflect.FieldDescriptor + fd_QueryEncryptedTxRequest_index protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryGetEncryptedTxRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryGetEncryptedTxRequest") - fd_QueryGetEncryptedTxRequest_targetHeight = md_QueryGetEncryptedTxRequest.Fields().ByName("targetHeight") - fd_QueryGetEncryptedTxRequest_index = md_QueryGetEncryptedTxRequest.Fields().ByName("index") + md_QueryEncryptedTxRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryEncryptedTxRequest") + fd_QueryEncryptedTxRequest_target_height = md_QueryEncryptedTxRequest.Fields().ByName("target_height") + fd_QueryEncryptedTxRequest_index = md_QueryEncryptedTxRequest.Fields().ByName("index") } -var _ protoreflect.Message = (*fastReflection_QueryGetEncryptedTxRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryEncryptedTxRequest)(nil) -type fastReflection_QueryGetEncryptedTxRequest QueryGetEncryptedTxRequest +type fastReflection_QueryEncryptedTxRequest QueryEncryptedTxRequest -func (x *QueryGetEncryptedTxRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetEncryptedTxRequest)(x) +func (x *QueryEncryptedTxRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEncryptedTxRequest)(x) } -func (x *QueryGetEncryptedTxRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryEncryptedTxRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2705,43 +2704,43 @@ func (x *QueryGetEncryptedTxRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGetEncryptedTxRequest_messageType fastReflection_QueryGetEncryptedTxRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetEncryptedTxRequest_messageType{} +var _fastReflection_QueryEncryptedTxRequest_messageType fastReflection_QueryEncryptedTxRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryEncryptedTxRequest_messageType{} -type fastReflection_QueryGetEncryptedTxRequest_messageType struct{} +type fastReflection_QueryEncryptedTxRequest_messageType struct{} -func (x fastReflection_QueryGetEncryptedTxRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetEncryptedTxRequest)(nil) +func (x fastReflection_QueryEncryptedTxRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEncryptedTxRequest)(nil) } -func (x fastReflection_QueryGetEncryptedTxRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetEncryptedTxRequest) +func (x fastReflection_QueryEncryptedTxRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEncryptedTxRequest) } -func (x fastReflection_QueryGetEncryptedTxRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetEncryptedTxRequest +func (x fastReflection_QueryEncryptedTxRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEncryptedTxRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetEncryptedTxRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetEncryptedTxRequest +func (x *fastReflection_QueryEncryptedTxRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEncryptedTxRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetEncryptedTxRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetEncryptedTxRequest_messageType +func (x *fastReflection_QueryEncryptedTxRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryEncryptedTxRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetEncryptedTxRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetEncryptedTxRequest) +func (x *fastReflection_QueryEncryptedTxRequest) New() protoreflect.Message { + return new(fastReflection_QueryEncryptedTxRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetEncryptedTxRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetEncryptedTxRequest)(x) +func (x *fastReflection_QueryEncryptedTxRequest) Interface() protoreflect.ProtoMessage { + return (*QueryEncryptedTxRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -2749,16 +2748,16 @@ func (x *fastReflection_QueryGetEncryptedTxRequest) Interface() protoreflect.Pro // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetEncryptedTxRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryEncryptedTxRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TargetHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.TargetHeight) - if !f(fd_QueryGetEncryptedTxRequest_targetHeight, value) { + if !f(fd_QueryEncryptedTxRequest_target_height, value) { return } } if x.Index != uint64(0) { value := protoreflect.ValueOfUint64(x.Index) - if !f(fd_QueryGetEncryptedTxRequest_index, value) { + if !f(fd_QueryEncryptedTxRequest_index, value) { return } } @@ -2775,17 +2774,17 @@ func (x *fastReflection_QueryGetEncryptedTxRequest) Range(f func(protoreflect.Fi // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetEncryptedTxRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryEncryptedTxRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryGetEncryptedTxRequest.targetHeight": + case "fairyring.pep.QueryEncryptedTxRequest.target_height": return x.TargetHeight != uint64(0) - case "fairyring.pep.QueryGetEncryptedTxRequest.index": + case "fairyring.pep.QueryEncryptedTxRequest.index": return x.Index != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetEncryptedTxRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetEncryptedTxRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxRequest does not contain field %s", fd.FullName())) } } @@ -2795,17 +2794,17 @@ func (x *fastReflection_QueryGetEncryptedTxRequest) Has(fd protoreflect.FieldDes // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetEncryptedTxRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryEncryptedTxRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryGetEncryptedTxRequest.targetHeight": + case "fairyring.pep.QueryEncryptedTxRequest.target_height": x.TargetHeight = uint64(0) - case "fairyring.pep.QueryGetEncryptedTxRequest.index": + case "fairyring.pep.QueryEncryptedTxRequest.index": x.Index = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetEncryptedTxRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetEncryptedTxRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxRequest does not contain field %s", fd.FullName())) } } @@ -2815,19 +2814,19 @@ func (x *fastReflection_QueryGetEncryptedTxRequest) Clear(fd protoreflect.FieldD // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetEncryptedTxRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEncryptedTxRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryGetEncryptedTxRequest.targetHeight": + case "fairyring.pep.QueryEncryptedTxRequest.target_height": value := x.TargetHeight return protoreflect.ValueOfUint64(value) - case "fairyring.pep.QueryGetEncryptedTxRequest.index": + case "fairyring.pep.QueryEncryptedTxRequest.index": value := x.Index return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetEncryptedTxRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetEncryptedTxRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxRequest does not contain field %s", descriptor.FullName())) } } @@ -2841,17 +2840,17 @@ func (x *fastReflection_QueryGetEncryptedTxRequest) Get(descriptor protoreflect. // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetEncryptedTxRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryEncryptedTxRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryGetEncryptedTxRequest.targetHeight": + case "fairyring.pep.QueryEncryptedTxRequest.target_height": x.TargetHeight = value.Uint() - case "fairyring.pep.QueryGetEncryptedTxRequest.index": + case "fairyring.pep.QueryEncryptedTxRequest.index": x.Index = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetEncryptedTxRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetEncryptedTxRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxRequest does not contain field %s", fd.FullName())) } } @@ -2865,44 +2864,44 @@ func (x *fastReflection_QueryGetEncryptedTxRequest) Set(fd protoreflect.FieldDes // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetEncryptedTxRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEncryptedTxRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryGetEncryptedTxRequest.targetHeight": - panic(fmt.Errorf("field targetHeight of message fairyring.pep.QueryGetEncryptedTxRequest is not mutable")) - case "fairyring.pep.QueryGetEncryptedTxRequest.index": - panic(fmt.Errorf("field index of message fairyring.pep.QueryGetEncryptedTxRequest is not mutable")) + case "fairyring.pep.QueryEncryptedTxRequest.target_height": + panic(fmt.Errorf("field target_height of message fairyring.pep.QueryEncryptedTxRequest is not mutable")) + case "fairyring.pep.QueryEncryptedTxRequest.index": + panic(fmt.Errorf("field index of message fairyring.pep.QueryEncryptedTxRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetEncryptedTxRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetEncryptedTxRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetEncryptedTxRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEncryptedTxRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryGetEncryptedTxRequest.targetHeight": + case "fairyring.pep.QueryEncryptedTxRequest.target_height": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.pep.QueryGetEncryptedTxRequest.index": + case "fairyring.pep.QueryEncryptedTxRequest.index": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetEncryptedTxRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetEncryptedTxRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetEncryptedTxRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryEncryptedTxRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryGetEncryptedTxRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryEncryptedTxRequest", d.FullName())) } panic("unreachable") } @@ -2910,7 +2909,7 @@ func (x *fastReflection_QueryGetEncryptedTxRequest) WhichOneof(d protoreflect.On // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetEncryptedTxRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryEncryptedTxRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2921,7 +2920,7 @@ func (x *fastReflection_QueryGetEncryptedTxRequest) GetUnknown() protoreflect.Ra // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetEncryptedTxRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryEncryptedTxRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2933,7 +2932,7 @@ func (x *fastReflection_QueryGetEncryptedTxRequest) SetUnknown(fields protorefle // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetEncryptedTxRequest) IsValid() bool { +func (x *fastReflection_QueryEncryptedTxRequest) IsValid() bool { return x != nil } @@ -2943,9 +2942,9 @@ func (x *fastReflection_QueryGetEncryptedTxRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetEncryptedTxRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryEncryptedTxRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetEncryptedTxRequest) + x := input.Message.Interface().(*QueryEncryptedTxRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2973,7 +2972,7 @@ func (x *fastReflection_QueryGetEncryptedTxRequest) ProtoMethods() *protoiface.M } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetEncryptedTxRequest) + x := input.Message.Interface().(*QueryEncryptedTxRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3013,7 +3012,7 @@ func (x *fastReflection_QueryGetEncryptedTxRequest) ProtoMethods() *protoiface.M }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetEncryptedTxRequest) + x := input.Message.Interface().(*QueryEncryptedTxRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3045,10 +3044,10 @@ func (x *fastReflection_QueryGetEncryptedTxRequest) ProtoMethods() *protoiface.M fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetEncryptedTxRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncryptedTxRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetEncryptedTxRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncryptedTxRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3125,25 +3124,25 @@ func (x *fastReflection_QueryGetEncryptedTxRequest) ProtoMethods() *protoiface.M } var ( - md_QueryGetEncryptedTxResponse protoreflect.MessageDescriptor - fd_QueryGetEncryptedTxResponse_encryptedTx protoreflect.FieldDescriptor + md_QueryEncryptedTxResponse protoreflect.MessageDescriptor + fd_QueryEncryptedTxResponse_encrypted_tx protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryGetEncryptedTxResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryGetEncryptedTxResponse") - fd_QueryGetEncryptedTxResponse_encryptedTx = md_QueryGetEncryptedTxResponse.Fields().ByName("encryptedTx") + md_QueryEncryptedTxResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryEncryptedTxResponse") + fd_QueryEncryptedTxResponse_encrypted_tx = md_QueryEncryptedTxResponse.Fields().ByName("encrypted_tx") } -var _ protoreflect.Message = (*fastReflection_QueryGetEncryptedTxResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryEncryptedTxResponse)(nil) -type fastReflection_QueryGetEncryptedTxResponse QueryGetEncryptedTxResponse +type fastReflection_QueryEncryptedTxResponse QueryEncryptedTxResponse -func (x *QueryGetEncryptedTxResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetEncryptedTxResponse)(x) +func (x *QueryEncryptedTxResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEncryptedTxResponse)(x) } -func (x *QueryGetEncryptedTxResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryEncryptedTxResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3155,43 +3154,43 @@ func (x *QueryGetEncryptedTxResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGetEncryptedTxResponse_messageType fastReflection_QueryGetEncryptedTxResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetEncryptedTxResponse_messageType{} +var _fastReflection_QueryEncryptedTxResponse_messageType fastReflection_QueryEncryptedTxResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryEncryptedTxResponse_messageType{} -type fastReflection_QueryGetEncryptedTxResponse_messageType struct{} +type fastReflection_QueryEncryptedTxResponse_messageType struct{} -func (x fastReflection_QueryGetEncryptedTxResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetEncryptedTxResponse)(nil) +func (x fastReflection_QueryEncryptedTxResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEncryptedTxResponse)(nil) } -func (x fastReflection_QueryGetEncryptedTxResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetEncryptedTxResponse) +func (x fastReflection_QueryEncryptedTxResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEncryptedTxResponse) } -func (x fastReflection_QueryGetEncryptedTxResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetEncryptedTxResponse +func (x fastReflection_QueryEncryptedTxResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEncryptedTxResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetEncryptedTxResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetEncryptedTxResponse +func (x *fastReflection_QueryEncryptedTxResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEncryptedTxResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetEncryptedTxResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGetEncryptedTxResponse_messageType +func (x *fastReflection_QueryEncryptedTxResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryEncryptedTxResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetEncryptedTxResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetEncryptedTxResponse) +func (x *fastReflection_QueryEncryptedTxResponse) New() protoreflect.Message { + return new(fastReflection_QueryEncryptedTxResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetEncryptedTxResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetEncryptedTxResponse)(x) +func (x *fastReflection_QueryEncryptedTxResponse) Interface() protoreflect.ProtoMessage { + return (*QueryEncryptedTxResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -3199,10 +3198,10 @@ func (x *fastReflection_QueryGetEncryptedTxResponse) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetEncryptedTxResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryEncryptedTxResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.EncryptedTx != nil { value := protoreflect.ValueOfMessage(x.EncryptedTx.ProtoReflect()) - if !f(fd_QueryGetEncryptedTxResponse_encryptedTx, value) { + if !f(fd_QueryEncryptedTxResponse_encrypted_tx, value) { return } } @@ -3219,15 +3218,15 @@ func (x *fastReflection_QueryGetEncryptedTxResponse) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetEncryptedTxResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryEncryptedTxResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryGetEncryptedTxResponse.encryptedTx": + case "fairyring.pep.QueryEncryptedTxResponse.encrypted_tx": return x.EncryptedTx != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetEncryptedTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetEncryptedTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxResponse does not contain field %s", fd.FullName())) } } @@ -3237,15 +3236,15 @@ func (x *fastReflection_QueryGetEncryptedTxResponse) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetEncryptedTxResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryEncryptedTxResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryGetEncryptedTxResponse.encryptedTx": + case "fairyring.pep.QueryEncryptedTxResponse.encrypted_tx": x.EncryptedTx = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetEncryptedTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetEncryptedTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxResponse does not contain field %s", fd.FullName())) } } @@ -3255,16 +3254,16 @@ func (x *fastReflection_QueryGetEncryptedTxResponse) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetEncryptedTxResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEncryptedTxResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryGetEncryptedTxResponse.encryptedTx": + case "fairyring.pep.QueryEncryptedTxResponse.encrypted_tx": value := x.EncryptedTx return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetEncryptedTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetEncryptedTxResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxResponse does not contain field %s", descriptor.FullName())) } } @@ -3278,15 +3277,15 @@ func (x *fastReflection_QueryGetEncryptedTxResponse) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetEncryptedTxResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryEncryptedTxResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryGetEncryptedTxResponse.encryptedTx": + case "fairyring.pep.QueryEncryptedTxResponse.encrypted_tx": x.EncryptedTx = value.Message().Interface().(*EncryptedTx) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetEncryptedTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetEncryptedTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxResponse does not contain field %s", fd.FullName())) } } @@ -3300,44 +3299,44 @@ func (x *fastReflection_QueryGetEncryptedTxResponse) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetEncryptedTxResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEncryptedTxResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryGetEncryptedTxResponse.encryptedTx": + case "fairyring.pep.QueryEncryptedTxResponse.encrypted_tx": if x.EncryptedTx == nil { x.EncryptedTx = new(EncryptedTx) } return protoreflect.ValueOfMessage(x.EncryptedTx.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetEncryptedTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetEncryptedTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetEncryptedTxResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEncryptedTxResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryGetEncryptedTxResponse.encryptedTx": + case "fairyring.pep.QueryEncryptedTxResponse.encrypted_tx": m := new(EncryptedTx) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetEncryptedTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetEncryptedTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetEncryptedTxResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryEncryptedTxResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryGetEncryptedTxResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryEncryptedTxResponse", d.FullName())) } panic("unreachable") } @@ -3345,7 +3344,7 @@ func (x *fastReflection_QueryGetEncryptedTxResponse) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetEncryptedTxResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryEncryptedTxResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3356,7 +3355,7 @@ func (x *fastReflection_QueryGetEncryptedTxResponse) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetEncryptedTxResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryEncryptedTxResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3368,7 +3367,7 @@ func (x *fastReflection_QueryGetEncryptedTxResponse) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetEncryptedTxResponse) IsValid() bool { +func (x *fastReflection_QueryEncryptedTxResponse) IsValid() bool { return x != nil } @@ -3378,9 +3377,9 @@ func (x *fastReflection_QueryGetEncryptedTxResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetEncryptedTxResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryEncryptedTxResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetEncryptedTxResponse) + x := input.Message.Interface().(*QueryEncryptedTxResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3406,7 +3405,7 @@ func (x *fastReflection_QueryGetEncryptedTxResponse) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetEncryptedTxResponse) + x := input.Message.Interface().(*QueryEncryptedTxResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3450,7 +3449,7 @@ func (x *fastReflection_QueryGetEncryptedTxResponse) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetEncryptedTxResponse) + x := input.Message.Interface().(*QueryEncryptedTxResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3482,10 +3481,10 @@ func (x *fastReflection_QueryGetEncryptedTxResponse) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetEncryptedTxResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncryptedTxResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetEncryptedTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncryptedTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3560,25 +3559,25 @@ func (x *fastReflection_QueryGetEncryptedTxResponse) ProtoMethods() *protoiface. } var ( - md_QueryAllEncryptedTxRequest protoreflect.MessageDescriptor - fd_QueryAllEncryptedTxRequest_pagination protoreflect.FieldDescriptor + md_QueryEncryptedTxAllRequest protoreflect.MessageDescriptor + fd_QueryEncryptedTxAllRequest_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryAllEncryptedTxRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryAllEncryptedTxRequest") - fd_QueryAllEncryptedTxRequest_pagination = md_QueryAllEncryptedTxRequest.Fields().ByName("pagination") + md_QueryEncryptedTxAllRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryEncryptedTxAllRequest") + fd_QueryEncryptedTxAllRequest_pagination = md_QueryEncryptedTxAllRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAllEncryptedTxRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryEncryptedTxAllRequest)(nil) -type fastReflection_QueryAllEncryptedTxRequest QueryAllEncryptedTxRequest +type fastReflection_QueryEncryptedTxAllRequest QueryEncryptedTxAllRequest -func (x *QueryAllEncryptedTxRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllEncryptedTxRequest)(x) +func (x *QueryEncryptedTxAllRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEncryptedTxAllRequest)(x) } -func (x *QueryAllEncryptedTxRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryEncryptedTxAllRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3590,43 +3589,43 @@ func (x *QueryAllEncryptedTxRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryAllEncryptedTxRequest_messageType fastReflection_QueryAllEncryptedTxRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllEncryptedTxRequest_messageType{} +var _fastReflection_QueryEncryptedTxAllRequest_messageType fastReflection_QueryEncryptedTxAllRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryEncryptedTxAllRequest_messageType{} -type fastReflection_QueryAllEncryptedTxRequest_messageType struct{} +type fastReflection_QueryEncryptedTxAllRequest_messageType struct{} -func (x fastReflection_QueryAllEncryptedTxRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllEncryptedTxRequest)(nil) +func (x fastReflection_QueryEncryptedTxAllRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEncryptedTxAllRequest)(nil) } -func (x fastReflection_QueryAllEncryptedTxRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllEncryptedTxRequest) +func (x fastReflection_QueryEncryptedTxAllRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEncryptedTxAllRequest) } -func (x fastReflection_QueryAllEncryptedTxRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllEncryptedTxRequest +func (x fastReflection_QueryEncryptedTxAllRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEncryptedTxAllRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAllEncryptedTxRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllEncryptedTxRequest +func (x *fastReflection_QueryEncryptedTxAllRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEncryptedTxAllRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAllEncryptedTxRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryAllEncryptedTxRequest_messageType +func (x *fastReflection_QueryEncryptedTxAllRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryEncryptedTxAllRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllEncryptedTxRequest) New() protoreflect.Message { - return new(fastReflection_QueryAllEncryptedTxRequest) +func (x *fastReflection_QueryEncryptedTxAllRequest) New() protoreflect.Message { + return new(fastReflection_QueryEncryptedTxAllRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllEncryptedTxRequest) Interface() protoreflect.ProtoMessage { - return (*QueryAllEncryptedTxRequest)(x) +func (x *fastReflection_QueryEncryptedTxAllRequest) Interface() protoreflect.ProtoMessage { + return (*QueryEncryptedTxAllRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -3634,10 +3633,10 @@ func (x *fastReflection_QueryAllEncryptedTxRequest) Interface() protoreflect.Pro // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAllEncryptedTxRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryEncryptedTxAllRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAllEncryptedTxRequest_pagination, value) { + if !f(fd_QueryEncryptedTxAllRequest_pagination, value) { return } } @@ -3654,15 +3653,15 @@ func (x *fastReflection_QueryAllEncryptedTxRequest) Range(f func(protoreflect.Fi // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAllEncryptedTxRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryEncryptedTxAllRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxRequest.pagination": + case "fairyring.pep.QueryEncryptedTxAllRequest.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllRequest does not contain field %s", fd.FullName())) } } @@ -3672,15 +3671,15 @@ func (x *fastReflection_QueryAllEncryptedTxRequest) Has(fd protoreflect.FieldDes // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllEncryptedTxRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryEncryptedTxAllRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxRequest.pagination": + case "fairyring.pep.QueryEncryptedTxAllRequest.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllRequest does not contain field %s", fd.FullName())) } } @@ -3690,16 +3689,16 @@ func (x *fastReflection_QueryAllEncryptedTxRequest) Clear(fd protoreflect.FieldD // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAllEncryptedTxRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEncryptedTxAllRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryAllEncryptedTxRequest.pagination": + case "fairyring.pep.QueryEncryptedTxAllRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllRequest does not contain field %s", descriptor.FullName())) } } @@ -3713,15 +3712,15 @@ func (x *fastReflection_QueryAllEncryptedTxRequest) Get(descriptor protoreflect. // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllEncryptedTxRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryEncryptedTxAllRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxRequest.pagination": + case "fairyring.pep.QueryEncryptedTxAllRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllRequest does not contain field %s", fd.FullName())) } } @@ -3735,44 +3734,44 @@ func (x *fastReflection_QueryAllEncryptedTxRequest) Set(fd protoreflect.FieldDes // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllEncryptedTxRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEncryptedTxAllRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxRequest.pagination": + case "fairyring.pep.QueryEncryptedTxAllRequest.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAllEncryptedTxRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEncryptedTxAllRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxRequest.pagination": + case "fairyring.pep.QueryEncryptedTxAllRequest.pagination": m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAllEncryptedTxRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryEncryptedTxAllRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryAllEncryptedTxRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryEncryptedTxAllRequest", d.FullName())) } panic("unreachable") } @@ -3780,7 +3779,7 @@ func (x *fastReflection_QueryAllEncryptedTxRequest) WhichOneof(d protoreflect.On // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAllEncryptedTxRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryEncryptedTxAllRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3791,7 +3790,7 @@ func (x *fastReflection_QueryAllEncryptedTxRequest) GetUnknown() protoreflect.Ra // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllEncryptedTxRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryEncryptedTxAllRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3803,7 +3802,7 @@ func (x *fastReflection_QueryAllEncryptedTxRequest) SetUnknown(fields protorefle // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAllEncryptedTxRequest) IsValid() bool { +func (x *fastReflection_QueryEncryptedTxAllRequest) IsValid() bool { return x != nil } @@ -3813,9 +3812,9 @@ func (x *fastReflection_QueryAllEncryptedTxRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAllEncryptedTxRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryEncryptedTxAllRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllEncryptedTxRequest) + x := input.Message.Interface().(*QueryEncryptedTxAllRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3841,7 +3840,7 @@ func (x *fastReflection_QueryAllEncryptedTxRequest) ProtoMethods() *protoiface.M } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllEncryptedTxRequest) + x := input.Message.Interface().(*QueryEncryptedTxAllRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3885,7 +3884,7 @@ func (x *fastReflection_QueryAllEncryptedTxRequest) ProtoMethods() *protoiface.M }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAllEncryptedTxRequest) + x := input.Message.Interface().(*QueryEncryptedTxAllRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3917,10 +3916,10 @@ func (x *fastReflection_QueryAllEncryptedTxRequest) ProtoMethods() *protoiface.M fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllEncryptedTxRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncryptedTxAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllEncryptedTxRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncryptedTxAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3994,79 +3993,79 @@ func (x *fastReflection_QueryAllEncryptedTxRequest) ProtoMethods() *protoiface.M } } -var _ protoreflect.List = (*_QueryAllEncryptedTxResponse_1_list)(nil) +var _ protoreflect.List = (*_QueryEncryptedTxAllResponse_1_list)(nil) -type _QueryAllEncryptedTxResponse_1_list struct { +type _QueryEncryptedTxAllResponse_1_list struct { list *[]*EncryptedTxArray } -func (x *_QueryAllEncryptedTxResponse_1_list) Len() int { +func (x *_QueryEncryptedTxAllResponse_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryAllEncryptedTxResponse_1_list) Get(i int) protoreflect.Value { +func (x *_QueryEncryptedTxAllResponse_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryAllEncryptedTxResponse_1_list) Set(i int, value protoreflect.Value) { +func (x *_QueryEncryptedTxAllResponse_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*EncryptedTxArray) (*x.list)[i] = concreteValue } -func (x *_QueryAllEncryptedTxResponse_1_list) Append(value protoreflect.Value) { +func (x *_QueryEncryptedTxAllResponse_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*EncryptedTxArray) *x.list = append(*x.list, concreteValue) } -func (x *_QueryAllEncryptedTxResponse_1_list) AppendMutable() protoreflect.Value { +func (x *_QueryEncryptedTxAllResponse_1_list) AppendMutable() protoreflect.Value { v := new(EncryptedTxArray) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAllEncryptedTxResponse_1_list) Truncate(n int) { +func (x *_QueryEncryptedTxAllResponse_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryAllEncryptedTxResponse_1_list) NewElement() protoreflect.Value { +func (x *_QueryEncryptedTxAllResponse_1_list) NewElement() protoreflect.Value { v := new(EncryptedTxArray) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAllEncryptedTxResponse_1_list) IsValid() bool { +func (x *_QueryEncryptedTxAllResponse_1_list) IsValid() bool { return x.list != nil } var ( - md_QueryAllEncryptedTxResponse protoreflect.MessageDescriptor - fd_QueryAllEncryptedTxResponse_encryptedTxArray protoreflect.FieldDescriptor - fd_QueryAllEncryptedTxResponse_pagination protoreflect.FieldDescriptor + md_QueryEncryptedTxAllResponse protoreflect.MessageDescriptor + fd_QueryEncryptedTxAllResponse_encrypted_tx_array protoreflect.FieldDescriptor + fd_QueryEncryptedTxAllResponse_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryAllEncryptedTxResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryAllEncryptedTxResponse") - fd_QueryAllEncryptedTxResponse_encryptedTxArray = md_QueryAllEncryptedTxResponse.Fields().ByName("encryptedTxArray") - fd_QueryAllEncryptedTxResponse_pagination = md_QueryAllEncryptedTxResponse.Fields().ByName("pagination") + md_QueryEncryptedTxAllResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryEncryptedTxAllResponse") + fd_QueryEncryptedTxAllResponse_encrypted_tx_array = md_QueryEncryptedTxAllResponse.Fields().ByName("encrypted_tx_array") + fd_QueryEncryptedTxAllResponse_pagination = md_QueryEncryptedTxAllResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAllEncryptedTxResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryEncryptedTxAllResponse)(nil) -type fastReflection_QueryAllEncryptedTxResponse QueryAllEncryptedTxResponse +type fastReflection_QueryEncryptedTxAllResponse QueryEncryptedTxAllResponse -func (x *QueryAllEncryptedTxResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllEncryptedTxResponse)(x) +func (x *QueryEncryptedTxAllResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEncryptedTxAllResponse)(x) } -func (x *QueryAllEncryptedTxResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryEncryptedTxAllResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4078,43 +4077,43 @@ func (x *QueryAllEncryptedTxResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryAllEncryptedTxResponse_messageType fastReflection_QueryAllEncryptedTxResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllEncryptedTxResponse_messageType{} +var _fastReflection_QueryEncryptedTxAllResponse_messageType fastReflection_QueryEncryptedTxAllResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryEncryptedTxAllResponse_messageType{} -type fastReflection_QueryAllEncryptedTxResponse_messageType struct{} +type fastReflection_QueryEncryptedTxAllResponse_messageType struct{} -func (x fastReflection_QueryAllEncryptedTxResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllEncryptedTxResponse)(nil) +func (x fastReflection_QueryEncryptedTxAllResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEncryptedTxAllResponse)(nil) } -func (x fastReflection_QueryAllEncryptedTxResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllEncryptedTxResponse) +func (x fastReflection_QueryEncryptedTxAllResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEncryptedTxAllResponse) } -func (x fastReflection_QueryAllEncryptedTxResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllEncryptedTxResponse +func (x fastReflection_QueryEncryptedTxAllResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEncryptedTxAllResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAllEncryptedTxResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllEncryptedTxResponse +func (x *fastReflection_QueryEncryptedTxAllResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEncryptedTxAllResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAllEncryptedTxResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryAllEncryptedTxResponse_messageType +func (x *fastReflection_QueryEncryptedTxAllResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryEncryptedTxAllResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllEncryptedTxResponse) New() protoreflect.Message { - return new(fastReflection_QueryAllEncryptedTxResponse) +func (x *fastReflection_QueryEncryptedTxAllResponse) New() protoreflect.Message { + return new(fastReflection_QueryEncryptedTxAllResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllEncryptedTxResponse) Interface() protoreflect.ProtoMessage { - return (*QueryAllEncryptedTxResponse)(x) +func (x *fastReflection_QueryEncryptedTxAllResponse) Interface() protoreflect.ProtoMessage { + return (*QueryEncryptedTxAllResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -4122,16 +4121,16 @@ func (x *fastReflection_QueryAllEncryptedTxResponse) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAllEncryptedTxResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryEncryptedTxAllResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.EncryptedTxArray) != 0 { - value := protoreflect.ValueOfList(&_QueryAllEncryptedTxResponse_1_list{list: &x.EncryptedTxArray}) - if !f(fd_QueryAllEncryptedTxResponse_encryptedTxArray, value) { + value := protoreflect.ValueOfList(&_QueryEncryptedTxAllResponse_1_list{list: &x.EncryptedTxArray}) + if !f(fd_QueryEncryptedTxAllResponse_encrypted_tx_array, value) { return } } if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAllEncryptedTxResponse_pagination, value) { + if !f(fd_QueryEncryptedTxAllResponse_pagination, value) { return } } @@ -4148,17 +4147,17 @@ func (x *fastReflection_QueryAllEncryptedTxResponse) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAllEncryptedTxResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryEncryptedTxAllResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxResponse.encryptedTxArray": + case "fairyring.pep.QueryEncryptedTxAllResponse.encrypted_tx_array": return len(x.EncryptedTxArray) != 0 - case "fairyring.pep.QueryAllEncryptedTxResponse.pagination": + case "fairyring.pep.QueryEncryptedTxAllResponse.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllResponse does not contain field %s", fd.FullName())) } } @@ -4168,17 +4167,17 @@ func (x *fastReflection_QueryAllEncryptedTxResponse) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllEncryptedTxResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryEncryptedTxAllResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxResponse.encryptedTxArray": + case "fairyring.pep.QueryEncryptedTxAllResponse.encrypted_tx_array": x.EncryptedTxArray = nil - case "fairyring.pep.QueryAllEncryptedTxResponse.pagination": + case "fairyring.pep.QueryEncryptedTxAllResponse.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllResponse does not contain field %s", fd.FullName())) } } @@ -4188,22 +4187,22 @@ func (x *fastReflection_QueryAllEncryptedTxResponse) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAllEncryptedTxResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEncryptedTxAllResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryAllEncryptedTxResponse.encryptedTxArray": + case "fairyring.pep.QueryEncryptedTxAllResponse.encrypted_tx_array": if len(x.EncryptedTxArray) == 0 { - return protoreflect.ValueOfList(&_QueryAllEncryptedTxResponse_1_list{}) + return protoreflect.ValueOfList(&_QueryEncryptedTxAllResponse_1_list{}) } - listValue := &_QueryAllEncryptedTxResponse_1_list{list: &x.EncryptedTxArray} + listValue := &_QueryEncryptedTxAllResponse_1_list{list: &x.EncryptedTxArray} return protoreflect.ValueOfList(listValue) - case "fairyring.pep.QueryAllEncryptedTxResponse.pagination": + case "fairyring.pep.QueryEncryptedTxAllResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllResponse does not contain field %s", descriptor.FullName())) } } @@ -4217,19 +4216,19 @@ func (x *fastReflection_QueryAllEncryptedTxResponse) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllEncryptedTxResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryEncryptedTxAllResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxResponse.encryptedTxArray": + case "fairyring.pep.QueryEncryptedTxAllResponse.encrypted_tx_array": lv := value.List() - clv := lv.(*_QueryAllEncryptedTxResponse_1_list) + clv := lv.(*_QueryEncryptedTxAllResponse_1_list) x.EncryptedTxArray = *clv.list - case "fairyring.pep.QueryAllEncryptedTxResponse.pagination": + case "fairyring.pep.QueryEncryptedTxAllResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllResponse does not contain field %s", fd.FullName())) } } @@ -4243,53 +4242,53 @@ func (x *fastReflection_QueryAllEncryptedTxResponse) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllEncryptedTxResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEncryptedTxAllResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxResponse.encryptedTxArray": + case "fairyring.pep.QueryEncryptedTxAllResponse.encrypted_tx_array": if x.EncryptedTxArray == nil { x.EncryptedTxArray = []*EncryptedTxArray{} } - value := &_QueryAllEncryptedTxResponse_1_list{list: &x.EncryptedTxArray} + value := &_QueryEncryptedTxAllResponse_1_list{list: &x.EncryptedTxArray} return protoreflect.ValueOfList(value) - case "fairyring.pep.QueryAllEncryptedTxResponse.pagination": + case "fairyring.pep.QueryEncryptedTxAllResponse.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageResponse) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAllEncryptedTxResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEncryptedTxAllResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxResponse.encryptedTxArray": + case "fairyring.pep.QueryEncryptedTxAllResponse.encrypted_tx_array": list := []*EncryptedTxArray{} - return protoreflect.ValueOfList(&_QueryAllEncryptedTxResponse_1_list{list: &list}) - case "fairyring.pep.QueryAllEncryptedTxResponse.pagination": + return protoreflect.ValueOfList(&_QueryEncryptedTxAllResponse_1_list{list: &list}) + case "fairyring.pep.QueryEncryptedTxAllResponse.pagination": m := new(v1beta1.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAllEncryptedTxResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryEncryptedTxAllResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryAllEncryptedTxResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryEncryptedTxAllResponse", d.FullName())) } panic("unreachable") } @@ -4297,7 +4296,7 @@ func (x *fastReflection_QueryAllEncryptedTxResponse) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAllEncryptedTxResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryEncryptedTxAllResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4308,7 +4307,7 @@ func (x *fastReflection_QueryAllEncryptedTxResponse) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllEncryptedTxResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryEncryptedTxAllResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4320,7 +4319,7 @@ func (x *fastReflection_QueryAllEncryptedTxResponse) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAllEncryptedTxResponse) IsValid() bool { +func (x *fastReflection_QueryEncryptedTxAllResponse) IsValid() bool { return x != nil } @@ -4330,9 +4329,9 @@ func (x *fastReflection_QueryAllEncryptedTxResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAllEncryptedTxResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryEncryptedTxAllResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllEncryptedTxResponse) + x := input.Message.Interface().(*QueryEncryptedTxAllResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4364,7 +4363,7 @@ func (x *fastReflection_QueryAllEncryptedTxResponse) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllEncryptedTxResponse) + x := input.Message.Interface().(*QueryEncryptedTxAllResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4424,7 +4423,7 @@ func (x *fastReflection_QueryAllEncryptedTxResponse) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAllEncryptedTxResponse) + x := input.Message.Interface().(*QueryEncryptedTxAllResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4456,10 +4455,10 @@ func (x *fastReflection_QueryAllEncryptedTxResponse) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllEncryptedTxResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncryptedTxAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllEncryptedTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncryptedTxAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4568,25 +4567,25 @@ func (x *fastReflection_QueryAllEncryptedTxResponse) ProtoMethods() *protoiface. } var ( - md_QueryAllEncryptedTxFromHeightRequest protoreflect.MessageDescriptor - fd_QueryAllEncryptedTxFromHeightRequest_targetHeight protoreflect.FieldDescriptor + md_QueryEncryptedTxAllFromHeightRequest protoreflect.MessageDescriptor + fd_QueryEncryptedTxAllFromHeightRequest_target_height protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryAllEncryptedTxFromHeightRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryAllEncryptedTxFromHeightRequest") - fd_QueryAllEncryptedTxFromHeightRequest_targetHeight = md_QueryAllEncryptedTxFromHeightRequest.Fields().ByName("targetHeight") + md_QueryEncryptedTxAllFromHeightRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryEncryptedTxAllFromHeightRequest") + fd_QueryEncryptedTxAllFromHeightRequest_target_height = md_QueryEncryptedTxAllFromHeightRequest.Fields().ByName("target_height") } -var _ protoreflect.Message = (*fastReflection_QueryAllEncryptedTxFromHeightRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryEncryptedTxAllFromHeightRequest)(nil) -type fastReflection_QueryAllEncryptedTxFromHeightRequest QueryAllEncryptedTxFromHeightRequest +type fastReflection_QueryEncryptedTxAllFromHeightRequest QueryEncryptedTxAllFromHeightRequest -func (x *QueryAllEncryptedTxFromHeightRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllEncryptedTxFromHeightRequest)(x) +func (x *QueryEncryptedTxAllFromHeightRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEncryptedTxAllFromHeightRequest)(x) } -func (x *QueryAllEncryptedTxFromHeightRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryEncryptedTxAllFromHeightRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4598,43 +4597,43 @@ func (x *QueryAllEncryptedTxFromHeightRequest) slowProtoReflect() protoreflect.M return mi.MessageOf(x) } -var _fastReflection_QueryAllEncryptedTxFromHeightRequest_messageType fastReflection_QueryAllEncryptedTxFromHeightRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllEncryptedTxFromHeightRequest_messageType{} +var _fastReflection_QueryEncryptedTxAllFromHeightRequest_messageType fastReflection_QueryEncryptedTxAllFromHeightRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryEncryptedTxAllFromHeightRequest_messageType{} -type fastReflection_QueryAllEncryptedTxFromHeightRequest_messageType struct{} +type fastReflection_QueryEncryptedTxAllFromHeightRequest_messageType struct{} -func (x fastReflection_QueryAllEncryptedTxFromHeightRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllEncryptedTxFromHeightRequest)(nil) +func (x fastReflection_QueryEncryptedTxAllFromHeightRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEncryptedTxAllFromHeightRequest)(nil) } -func (x fastReflection_QueryAllEncryptedTxFromHeightRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllEncryptedTxFromHeightRequest) +func (x fastReflection_QueryEncryptedTxAllFromHeightRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEncryptedTxAllFromHeightRequest) } -func (x fastReflection_QueryAllEncryptedTxFromHeightRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllEncryptedTxFromHeightRequest +func (x fastReflection_QueryEncryptedTxAllFromHeightRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEncryptedTxAllFromHeightRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllEncryptedTxFromHeightRequest +func (x *fastReflection_QueryEncryptedTxAllFromHeightRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEncryptedTxAllFromHeightRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryAllEncryptedTxFromHeightRequest_messageType +func (x *fastReflection_QueryEncryptedTxAllFromHeightRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryEncryptedTxAllFromHeightRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) New() protoreflect.Message { - return new(fastReflection_QueryAllEncryptedTxFromHeightRequest) +func (x *fastReflection_QueryEncryptedTxAllFromHeightRequest) New() protoreflect.Message { + return new(fastReflection_QueryEncryptedTxAllFromHeightRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) Interface() protoreflect.ProtoMessage { - return (*QueryAllEncryptedTxFromHeightRequest)(x) +func (x *fastReflection_QueryEncryptedTxAllFromHeightRequest) Interface() protoreflect.ProtoMessage { + return (*QueryEncryptedTxAllFromHeightRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -4642,10 +4641,10 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) Interface() protor // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryEncryptedTxAllFromHeightRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TargetHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.TargetHeight) - if !f(fd_QueryAllEncryptedTxFromHeightRequest_targetHeight, value) { + if !f(fd_QueryEncryptedTxAllFromHeightRequest_target_height, value) { return } } @@ -4662,15 +4661,15 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) Range(f func(proto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryEncryptedTxAllFromHeightRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxFromHeightRequest.targetHeight": + case "fairyring.pep.QueryEncryptedTxAllFromHeightRequest.target_height": return x.TargetHeight != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxFromHeightRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllFromHeightRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxFromHeightRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllFromHeightRequest does not contain field %s", fd.FullName())) } } @@ -4680,15 +4679,15 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) Has(fd protoreflec // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryEncryptedTxAllFromHeightRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxFromHeightRequest.targetHeight": + case "fairyring.pep.QueryEncryptedTxAllFromHeightRequest.target_height": x.TargetHeight = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxFromHeightRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllFromHeightRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxFromHeightRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllFromHeightRequest does not contain field %s", fd.FullName())) } } @@ -4698,16 +4697,16 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) Clear(fd protorefl // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEncryptedTxAllFromHeightRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryAllEncryptedTxFromHeightRequest.targetHeight": + case "fairyring.pep.QueryEncryptedTxAllFromHeightRequest.target_height": value := x.TargetHeight return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxFromHeightRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllFromHeightRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxFromHeightRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllFromHeightRequest does not contain field %s", descriptor.FullName())) } } @@ -4721,15 +4720,15 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) Get(descriptor pro // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryEncryptedTxAllFromHeightRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxFromHeightRequest.targetHeight": + case "fairyring.pep.QueryEncryptedTxAllFromHeightRequest.target_height": x.TargetHeight = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxFromHeightRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllFromHeightRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxFromHeightRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllFromHeightRequest does not contain field %s", fd.FullName())) } } @@ -4743,40 +4742,40 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) Set(fd protoreflec // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEncryptedTxAllFromHeightRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxFromHeightRequest.targetHeight": - panic(fmt.Errorf("field targetHeight of message fairyring.pep.QueryAllEncryptedTxFromHeightRequest is not mutable")) + case "fairyring.pep.QueryEncryptedTxAllFromHeightRequest.target_height": + panic(fmt.Errorf("field target_height of message fairyring.pep.QueryEncryptedTxAllFromHeightRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxFromHeightRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllFromHeightRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxFromHeightRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllFromHeightRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEncryptedTxAllFromHeightRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxFromHeightRequest.targetHeight": + case "fairyring.pep.QueryEncryptedTxAllFromHeightRequest.target_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxFromHeightRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllFromHeightRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxFromHeightRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllFromHeightRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryEncryptedTxAllFromHeightRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryAllEncryptedTxFromHeightRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryEncryptedTxAllFromHeightRequest", d.FullName())) } panic("unreachable") } @@ -4784,7 +4783,7 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) WhichOneof(d proto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryEncryptedTxAllFromHeightRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4795,7 +4794,7 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) GetUnknown() proto // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryEncryptedTxAllFromHeightRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4807,7 +4806,7 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) IsValid() bool { +func (x *fastReflection_QueryEncryptedTxAllFromHeightRequest) IsValid() bool { return x != nil } @@ -4817,9 +4816,9 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryEncryptedTxAllFromHeightRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllEncryptedTxFromHeightRequest) + x := input.Message.Interface().(*QueryEncryptedTxAllFromHeightRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4844,7 +4843,7 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) ProtoMethods() *pr } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllEncryptedTxFromHeightRequest) + x := input.Message.Interface().(*QueryEncryptedTxAllFromHeightRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4879,7 +4878,7 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) ProtoMethods() *pr }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAllEncryptedTxFromHeightRequest) + x := input.Message.Interface().(*QueryEncryptedTxAllFromHeightRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4911,10 +4910,10 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) ProtoMethods() *pr fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllEncryptedTxFromHeightRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncryptedTxAllFromHeightRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllEncryptedTxFromHeightRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncryptedTxAllFromHeightRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4972,25 +4971,25 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightRequest) ProtoMethods() *pr } var ( - md_QueryAllEncryptedTxFromHeightResponse protoreflect.MessageDescriptor - fd_QueryAllEncryptedTxFromHeightResponse_encryptedTxArray protoreflect.FieldDescriptor + md_QueryEncryptedTxAllFromHeightResponse protoreflect.MessageDescriptor + fd_QueryEncryptedTxAllFromHeightResponse_encrypted_tx_array protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryAllEncryptedTxFromHeightResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryAllEncryptedTxFromHeightResponse") - fd_QueryAllEncryptedTxFromHeightResponse_encryptedTxArray = md_QueryAllEncryptedTxFromHeightResponse.Fields().ByName("encryptedTxArray") + md_QueryEncryptedTxAllFromHeightResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryEncryptedTxAllFromHeightResponse") + fd_QueryEncryptedTxAllFromHeightResponse_encrypted_tx_array = md_QueryEncryptedTxAllFromHeightResponse.Fields().ByName("encrypted_tx_array") } -var _ protoreflect.Message = (*fastReflection_QueryAllEncryptedTxFromHeightResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryEncryptedTxAllFromHeightResponse)(nil) -type fastReflection_QueryAllEncryptedTxFromHeightResponse QueryAllEncryptedTxFromHeightResponse +type fastReflection_QueryEncryptedTxAllFromHeightResponse QueryEncryptedTxAllFromHeightResponse -func (x *QueryAllEncryptedTxFromHeightResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllEncryptedTxFromHeightResponse)(x) +func (x *QueryEncryptedTxAllFromHeightResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEncryptedTxAllFromHeightResponse)(x) } -func (x *QueryAllEncryptedTxFromHeightResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryEncryptedTxAllFromHeightResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5002,43 +5001,43 @@ func (x *QueryAllEncryptedTxFromHeightResponse) slowProtoReflect() protoreflect. return mi.MessageOf(x) } -var _fastReflection_QueryAllEncryptedTxFromHeightResponse_messageType fastReflection_QueryAllEncryptedTxFromHeightResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllEncryptedTxFromHeightResponse_messageType{} +var _fastReflection_QueryEncryptedTxAllFromHeightResponse_messageType fastReflection_QueryEncryptedTxAllFromHeightResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryEncryptedTxAllFromHeightResponse_messageType{} -type fastReflection_QueryAllEncryptedTxFromHeightResponse_messageType struct{} +type fastReflection_QueryEncryptedTxAllFromHeightResponse_messageType struct{} -func (x fastReflection_QueryAllEncryptedTxFromHeightResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllEncryptedTxFromHeightResponse)(nil) +func (x fastReflection_QueryEncryptedTxAllFromHeightResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEncryptedTxAllFromHeightResponse)(nil) } -func (x fastReflection_QueryAllEncryptedTxFromHeightResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllEncryptedTxFromHeightResponse) +func (x fastReflection_QueryEncryptedTxAllFromHeightResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEncryptedTxAllFromHeightResponse) } -func (x fastReflection_QueryAllEncryptedTxFromHeightResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllEncryptedTxFromHeightResponse +func (x fastReflection_QueryEncryptedTxAllFromHeightResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEncryptedTxAllFromHeightResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllEncryptedTxFromHeightResponse +func (x *fastReflection_QueryEncryptedTxAllFromHeightResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEncryptedTxAllFromHeightResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryAllEncryptedTxFromHeightResponse_messageType +func (x *fastReflection_QueryEncryptedTxAllFromHeightResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryEncryptedTxAllFromHeightResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) New() protoreflect.Message { - return new(fastReflection_QueryAllEncryptedTxFromHeightResponse) +func (x *fastReflection_QueryEncryptedTxAllFromHeightResponse) New() protoreflect.Message { + return new(fastReflection_QueryEncryptedTxAllFromHeightResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) Interface() protoreflect.ProtoMessage { - return (*QueryAllEncryptedTxFromHeightResponse)(x) +func (x *fastReflection_QueryEncryptedTxAllFromHeightResponse) Interface() protoreflect.ProtoMessage { + return (*QueryEncryptedTxAllFromHeightResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -5046,10 +5045,10 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) Interface() proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryEncryptedTxAllFromHeightResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.EncryptedTxArray != nil { value := protoreflect.ValueOfMessage(x.EncryptedTxArray.ProtoReflect()) - if !f(fd_QueryAllEncryptedTxFromHeightResponse_encryptedTxArray, value) { + if !f(fd_QueryEncryptedTxAllFromHeightResponse_encrypted_tx_array, value) { return } } @@ -5066,15 +5065,15 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) Range(f func(prot // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryEncryptedTxAllFromHeightResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxFromHeightResponse.encryptedTxArray": + case "fairyring.pep.QueryEncryptedTxAllFromHeightResponse.encrypted_tx_array": return x.EncryptedTxArray != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxFromHeightResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllFromHeightResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxFromHeightResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllFromHeightResponse does not contain field %s", fd.FullName())) } } @@ -5084,15 +5083,15 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) Has(fd protorefle // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryEncryptedTxAllFromHeightResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxFromHeightResponse.encryptedTxArray": + case "fairyring.pep.QueryEncryptedTxAllFromHeightResponse.encrypted_tx_array": x.EncryptedTxArray = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxFromHeightResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllFromHeightResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxFromHeightResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllFromHeightResponse does not contain field %s", fd.FullName())) } } @@ -5102,16 +5101,16 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) Clear(fd protoref // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEncryptedTxAllFromHeightResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryAllEncryptedTxFromHeightResponse.encryptedTxArray": + case "fairyring.pep.QueryEncryptedTxAllFromHeightResponse.encrypted_tx_array": value := x.EncryptedTxArray return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxFromHeightResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllFromHeightResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxFromHeightResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllFromHeightResponse does not contain field %s", descriptor.FullName())) } } @@ -5125,15 +5124,15 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) Get(descriptor pr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryEncryptedTxAllFromHeightResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxFromHeightResponse.encryptedTxArray": + case "fairyring.pep.QueryEncryptedTxAllFromHeightResponse.encrypted_tx_array": x.EncryptedTxArray = value.Message().Interface().(*EncryptedTxArray) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxFromHeightResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllFromHeightResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxFromHeightResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllFromHeightResponse does not contain field %s", fd.FullName())) } } @@ -5147,44 +5146,44 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) Set(fd protorefle // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEncryptedTxAllFromHeightResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxFromHeightResponse.encryptedTxArray": + case "fairyring.pep.QueryEncryptedTxAllFromHeightResponse.encrypted_tx_array": if x.EncryptedTxArray == nil { x.EncryptedTxArray = new(EncryptedTxArray) } return protoreflect.ValueOfMessage(x.EncryptedTxArray.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxFromHeightResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllFromHeightResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxFromHeightResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllFromHeightResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryEncryptedTxAllFromHeightResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryAllEncryptedTxFromHeightResponse.encryptedTxArray": + case "fairyring.pep.QueryEncryptedTxAllFromHeightResponse.encrypted_tx_array": m := new(EncryptedTxArray) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllEncryptedTxFromHeightResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryEncryptedTxAllFromHeightResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllEncryptedTxFromHeightResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryEncryptedTxAllFromHeightResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryEncryptedTxAllFromHeightResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryAllEncryptedTxFromHeightResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryEncryptedTxAllFromHeightResponse", d.FullName())) } panic("unreachable") } @@ -5192,7 +5191,7 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) WhichOneof(d prot // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryEncryptedTxAllFromHeightResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5203,7 +5202,7 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) GetUnknown() prot // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryEncryptedTxAllFromHeightResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5215,7 +5214,7 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) IsValid() bool { +func (x *fastReflection_QueryEncryptedTxAllFromHeightResponse) IsValid() bool { return x != nil } @@ -5225,9 +5224,9 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryEncryptedTxAllFromHeightResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllEncryptedTxFromHeightResponse) + x := input.Message.Interface().(*QueryEncryptedTxAllFromHeightResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5253,7 +5252,7 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) ProtoMethods() *p } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllEncryptedTxFromHeightResponse) + x := input.Message.Interface().(*QueryEncryptedTxAllFromHeightResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5297,7 +5296,7 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) ProtoMethods() *p }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAllEncryptedTxFromHeightResponse) + x := input.Message.Interface().(*QueryEncryptedTxAllFromHeightResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5329,10 +5328,10 @@ func (x *fastReflection_QueryAllEncryptedTxFromHeightResponse) ProtoMethods() *p fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllEncryptedTxFromHeightResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncryptedTxAllFromHeightResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllEncryptedTxFromHeightResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEncryptedTxAllFromHeightResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6167,25 +6166,25 @@ func (x *fastReflection_QueryLatestHeightResponse) ProtoMethods() *protoiface.Me } var ( - md_QueryGetPepNonceRequest protoreflect.MessageDescriptor - fd_QueryGetPepNonceRequest_address protoreflect.FieldDescriptor + md_QueryPepNonceRequest protoreflect.MessageDescriptor + fd_QueryPepNonceRequest_address protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryGetPepNonceRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryGetPepNonceRequest") - fd_QueryGetPepNonceRequest_address = md_QueryGetPepNonceRequest.Fields().ByName("address") + md_QueryPepNonceRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryPepNonceRequest") + fd_QueryPepNonceRequest_address = md_QueryPepNonceRequest.Fields().ByName("address") } -var _ protoreflect.Message = (*fastReflection_QueryGetPepNonceRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPepNonceRequest)(nil) -type fastReflection_QueryGetPepNonceRequest QueryGetPepNonceRequest +type fastReflection_QueryPepNonceRequest QueryPepNonceRequest -func (x *QueryGetPepNonceRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetPepNonceRequest)(x) +func (x *QueryPepNonceRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPepNonceRequest)(x) } -func (x *QueryGetPepNonceRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryPepNonceRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6197,43 +6196,43 @@ func (x *QueryGetPepNonceRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGetPepNonceRequest_messageType fastReflection_QueryGetPepNonceRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetPepNonceRequest_messageType{} +var _fastReflection_QueryPepNonceRequest_messageType fastReflection_QueryPepNonceRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryPepNonceRequest_messageType{} -type fastReflection_QueryGetPepNonceRequest_messageType struct{} +type fastReflection_QueryPepNonceRequest_messageType struct{} -func (x fastReflection_QueryGetPepNonceRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetPepNonceRequest)(nil) +func (x fastReflection_QueryPepNonceRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPepNonceRequest)(nil) } -func (x fastReflection_QueryGetPepNonceRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetPepNonceRequest) +func (x fastReflection_QueryPepNonceRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPepNonceRequest) } -func (x fastReflection_QueryGetPepNonceRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetPepNonceRequest +func (x fastReflection_QueryPepNonceRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPepNonceRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetPepNonceRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetPepNonceRequest +func (x *fastReflection_QueryPepNonceRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPepNonceRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetPepNonceRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGetPepNonceRequest_messageType +func (x *fastReflection_QueryPepNonceRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryPepNonceRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetPepNonceRequest) New() protoreflect.Message { - return new(fastReflection_QueryGetPepNonceRequest) +func (x *fastReflection_QueryPepNonceRequest) New() protoreflect.Message { + return new(fastReflection_QueryPepNonceRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetPepNonceRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGetPepNonceRequest)(x) +func (x *fastReflection_QueryPepNonceRequest) Interface() protoreflect.ProtoMessage { + return (*QueryPepNonceRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -6241,10 +6240,10 @@ func (x *fastReflection_QueryGetPepNonceRequest) Interface() protoreflect.ProtoM // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetPepNonceRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryPepNonceRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Address != "" { value := protoreflect.ValueOfString(x.Address) - if !f(fd_QueryGetPepNonceRequest_address, value) { + if !f(fd_QueryPepNonceRequest_address, value) { return } } @@ -6261,15 +6260,15 @@ func (x *fastReflection_QueryGetPepNonceRequest) Range(f func(protoreflect.Field // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetPepNonceRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPepNonceRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryGetPepNonceRequest.address": + case "fairyring.pep.QueryPepNonceRequest.address": return x.Address != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetPepNonceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetPepNonceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceRequest does not contain field %s", fd.FullName())) } } @@ -6279,15 +6278,15 @@ func (x *fastReflection_QueryGetPepNonceRequest) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetPepNonceRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPepNonceRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryGetPepNonceRequest.address": + case "fairyring.pep.QueryPepNonceRequest.address": x.Address = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetPepNonceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetPepNonceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceRequest does not contain field %s", fd.FullName())) } } @@ -6297,16 +6296,16 @@ func (x *fastReflection_QueryGetPepNonceRequest) Clear(fd protoreflect.FieldDesc // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetPepNonceRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPepNonceRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryGetPepNonceRequest.address": + case "fairyring.pep.QueryPepNonceRequest.address": value := x.Address return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetPepNonceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetPepNonceRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceRequest does not contain field %s", descriptor.FullName())) } } @@ -6320,15 +6319,15 @@ func (x *fastReflection_QueryGetPepNonceRequest) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetPepNonceRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPepNonceRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryGetPepNonceRequest.address": + case "fairyring.pep.QueryPepNonceRequest.address": x.Address = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetPepNonceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetPepNonceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceRequest does not contain field %s", fd.FullName())) } } @@ -6342,40 +6341,40 @@ func (x *fastReflection_QueryGetPepNonceRequest) Set(fd protoreflect.FieldDescri // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetPepNonceRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPepNonceRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryGetPepNonceRequest.address": - panic(fmt.Errorf("field address of message fairyring.pep.QueryGetPepNonceRequest is not mutable")) + case "fairyring.pep.QueryPepNonceRequest.address": + panic(fmt.Errorf("field address of message fairyring.pep.QueryPepNonceRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetPepNonceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetPepNonceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetPepNonceRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPepNonceRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryGetPepNonceRequest.address": + case "fairyring.pep.QueryPepNonceRequest.address": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetPepNonceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetPepNonceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetPepNonceRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPepNonceRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryGetPepNonceRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryPepNonceRequest", d.FullName())) } panic("unreachable") } @@ -6383,7 +6382,7 @@ func (x *fastReflection_QueryGetPepNonceRequest) WhichOneof(d protoreflect.Oneof // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetPepNonceRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPepNonceRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6394,7 +6393,7 @@ func (x *fastReflection_QueryGetPepNonceRequest) GetUnknown() protoreflect.RawFi // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetPepNonceRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPepNonceRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6406,7 +6405,7 @@ func (x *fastReflection_QueryGetPepNonceRequest) SetUnknown(fields protoreflect. // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetPepNonceRequest) IsValid() bool { +func (x *fastReflection_QueryPepNonceRequest) IsValid() bool { return x != nil } @@ -6416,9 +6415,9 @@ func (x *fastReflection_QueryGetPepNonceRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetPepNonceRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPepNonceRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetPepNonceRequest) + x := input.Message.Interface().(*QueryPepNonceRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6444,7 +6443,7 @@ func (x *fastReflection_QueryGetPepNonceRequest) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetPepNonceRequest) + x := input.Message.Interface().(*QueryPepNonceRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6481,7 +6480,7 @@ func (x *fastReflection_QueryGetPepNonceRequest) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetPepNonceRequest) + x := input.Message.Interface().(*QueryPepNonceRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6513,10 +6512,10 @@ func (x *fastReflection_QueryGetPepNonceRequest) ProtoMethods() *protoiface.Meth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetPepNonceRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPepNonceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetPepNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPepNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6587,25 +6586,25 @@ func (x *fastReflection_QueryGetPepNonceRequest) ProtoMethods() *protoiface.Meth } var ( - md_QueryGetPepNonceResponse protoreflect.MessageDescriptor - fd_QueryGetPepNonceResponse_pepNonce protoreflect.FieldDescriptor + md_QueryPepNonceResponse protoreflect.MessageDescriptor + fd_QueryPepNonceResponse_pep_nonce protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryGetPepNonceResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryGetPepNonceResponse") - fd_QueryGetPepNonceResponse_pepNonce = md_QueryGetPepNonceResponse.Fields().ByName("pepNonce") + md_QueryPepNonceResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryPepNonceResponse") + fd_QueryPepNonceResponse_pep_nonce = md_QueryPepNonceResponse.Fields().ByName("pep_nonce") } -var _ protoreflect.Message = (*fastReflection_QueryGetPepNonceResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPepNonceResponse)(nil) -type fastReflection_QueryGetPepNonceResponse QueryGetPepNonceResponse +type fastReflection_QueryPepNonceResponse QueryPepNonceResponse -func (x *QueryGetPepNonceResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGetPepNonceResponse)(x) +func (x *QueryPepNonceResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPepNonceResponse)(x) } -func (x *QueryGetPepNonceResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryPepNonceResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6617,43 +6616,43 @@ func (x *QueryGetPepNonceResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGetPepNonceResponse_messageType fastReflection_QueryGetPepNonceResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGetPepNonceResponse_messageType{} +var _fastReflection_QueryPepNonceResponse_messageType fastReflection_QueryPepNonceResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryPepNonceResponse_messageType{} -type fastReflection_QueryGetPepNonceResponse_messageType struct{} +type fastReflection_QueryPepNonceResponse_messageType struct{} -func (x fastReflection_QueryGetPepNonceResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGetPepNonceResponse)(nil) +func (x fastReflection_QueryPepNonceResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPepNonceResponse)(nil) } -func (x fastReflection_QueryGetPepNonceResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGetPepNonceResponse) +func (x fastReflection_QueryPepNonceResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPepNonceResponse) } -func (x fastReflection_QueryGetPepNonceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetPepNonceResponse +func (x fastReflection_QueryPepNonceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPepNonceResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGetPepNonceResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGetPepNonceResponse +func (x *fastReflection_QueryPepNonceResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPepNonceResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGetPepNonceResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGetPepNonceResponse_messageType +func (x *fastReflection_QueryPepNonceResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryPepNonceResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGetPepNonceResponse) New() protoreflect.Message { - return new(fastReflection_QueryGetPepNonceResponse) +func (x *fastReflection_QueryPepNonceResponse) New() protoreflect.Message { + return new(fastReflection_QueryPepNonceResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGetPepNonceResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGetPepNonceResponse)(x) +func (x *fastReflection_QueryPepNonceResponse) Interface() protoreflect.ProtoMessage { + return (*QueryPepNonceResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -6661,10 +6660,10 @@ func (x *fastReflection_QueryGetPepNonceResponse) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGetPepNonceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryPepNonceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.PepNonce != nil { value := protoreflect.ValueOfMessage(x.PepNonce.ProtoReflect()) - if !f(fd_QueryGetPepNonceResponse_pepNonce, value) { + if !f(fd_QueryPepNonceResponse_pep_nonce, value) { return } } @@ -6681,15 +6680,15 @@ func (x *fastReflection_QueryGetPepNonceResponse) Range(f func(protoreflect.Fiel // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGetPepNonceResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPepNonceResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryGetPepNonceResponse.pepNonce": + case "fairyring.pep.QueryPepNonceResponse.pep_nonce": return x.PepNonce != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetPepNonceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetPepNonceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceResponse does not contain field %s", fd.FullName())) } } @@ -6699,15 +6698,15 @@ func (x *fastReflection_QueryGetPepNonceResponse) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetPepNonceResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPepNonceResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryGetPepNonceResponse.pepNonce": + case "fairyring.pep.QueryPepNonceResponse.pep_nonce": x.PepNonce = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetPepNonceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetPepNonceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceResponse does not contain field %s", fd.FullName())) } } @@ -6717,16 +6716,16 @@ func (x *fastReflection_QueryGetPepNonceResponse) Clear(fd protoreflect.FieldDes // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGetPepNonceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPepNonceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryGetPepNonceResponse.pepNonce": + case "fairyring.pep.QueryPepNonceResponse.pep_nonce": value := x.PepNonce return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetPepNonceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetPepNonceResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceResponse does not contain field %s", descriptor.FullName())) } } @@ -6740,15 +6739,15 @@ func (x *fastReflection_QueryGetPepNonceResponse) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetPepNonceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPepNonceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryGetPepNonceResponse.pepNonce": + case "fairyring.pep.QueryPepNonceResponse.pep_nonce": x.PepNonce = value.Message().Interface().(*PepNonce) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetPepNonceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetPepNonceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceResponse does not contain field %s", fd.FullName())) } } @@ -6762,44 +6761,44 @@ func (x *fastReflection_QueryGetPepNonceResponse) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetPepNonceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPepNonceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryGetPepNonceResponse.pepNonce": + case "fairyring.pep.QueryPepNonceResponse.pep_nonce": if x.PepNonce == nil { x.PepNonce = new(PepNonce) } return protoreflect.ValueOfMessage(x.PepNonce.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetPepNonceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetPepNonceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGetPepNonceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPepNonceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryGetPepNonceResponse.pepNonce": + case "fairyring.pep.QueryPepNonceResponse.pep_nonce": m := new(PepNonce) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGetPepNonceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryGetPepNonceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGetPepNonceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPepNonceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryGetPepNonceResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryPepNonceResponse", d.FullName())) } panic("unreachable") } @@ -6807,7 +6806,7 @@ func (x *fastReflection_QueryGetPepNonceResponse) WhichOneof(d protoreflect.Oneo // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGetPepNonceResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPepNonceResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6818,7 +6817,7 @@ func (x *fastReflection_QueryGetPepNonceResponse) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGetPepNonceResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPepNonceResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6830,7 +6829,7 @@ func (x *fastReflection_QueryGetPepNonceResponse) SetUnknown(fields protoreflect // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGetPepNonceResponse) IsValid() bool { +func (x *fastReflection_QueryPepNonceResponse) IsValid() bool { return x != nil } @@ -6840,9 +6839,9 @@ func (x *fastReflection_QueryGetPepNonceResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGetPepNonceResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPepNonceResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGetPepNonceResponse) + x := input.Message.Interface().(*QueryPepNonceResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6868,7 +6867,7 @@ func (x *fastReflection_QueryGetPepNonceResponse) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGetPepNonceResponse) + x := input.Message.Interface().(*QueryPepNonceResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6912,7 +6911,7 @@ func (x *fastReflection_QueryGetPepNonceResponse) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGetPepNonceResponse) + x := input.Message.Interface().(*QueryPepNonceResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6944,10 +6943,10 @@ func (x *fastReflection_QueryGetPepNonceResponse) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetPepNonceResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPepNonceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGetPepNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPepNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7022,25 +7021,25 @@ func (x *fastReflection_QueryGetPepNonceResponse) ProtoMethods() *protoiface.Met } var ( - md_QueryAllPepNonceRequest protoreflect.MessageDescriptor - fd_QueryAllPepNonceRequest_pagination protoreflect.FieldDescriptor + md_QueryPepNonceAllRequest protoreflect.MessageDescriptor + fd_QueryPepNonceAllRequest_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryAllPepNonceRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryAllPepNonceRequest") - fd_QueryAllPepNonceRequest_pagination = md_QueryAllPepNonceRequest.Fields().ByName("pagination") + md_QueryPepNonceAllRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryPepNonceAllRequest") + fd_QueryPepNonceAllRequest_pagination = md_QueryPepNonceAllRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAllPepNonceRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPepNonceAllRequest)(nil) -type fastReflection_QueryAllPepNonceRequest QueryAllPepNonceRequest +type fastReflection_QueryPepNonceAllRequest QueryPepNonceAllRequest -func (x *QueryAllPepNonceRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllPepNonceRequest)(x) +func (x *QueryPepNonceAllRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPepNonceAllRequest)(x) } -func (x *QueryAllPepNonceRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryPepNonceAllRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7052,43 +7051,43 @@ func (x *QueryAllPepNonceRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryAllPepNonceRequest_messageType fastReflection_QueryAllPepNonceRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllPepNonceRequest_messageType{} +var _fastReflection_QueryPepNonceAllRequest_messageType fastReflection_QueryPepNonceAllRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryPepNonceAllRequest_messageType{} -type fastReflection_QueryAllPepNonceRequest_messageType struct{} +type fastReflection_QueryPepNonceAllRequest_messageType struct{} -func (x fastReflection_QueryAllPepNonceRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllPepNonceRequest)(nil) +func (x fastReflection_QueryPepNonceAllRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPepNonceAllRequest)(nil) } -func (x fastReflection_QueryAllPepNonceRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllPepNonceRequest) +func (x fastReflection_QueryPepNonceAllRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPepNonceAllRequest) } -func (x fastReflection_QueryAllPepNonceRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllPepNonceRequest +func (x fastReflection_QueryPepNonceAllRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPepNonceAllRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAllPepNonceRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllPepNonceRequest +func (x *fastReflection_QueryPepNonceAllRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPepNonceAllRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAllPepNonceRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryAllPepNonceRequest_messageType +func (x *fastReflection_QueryPepNonceAllRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryPepNonceAllRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllPepNonceRequest) New() protoreflect.Message { - return new(fastReflection_QueryAllPepNonceRequest) +func (x *fastReflection_QueryPepNonceAllRequest) New() protoreflect.Message { + return new(fastReflection_QueryPepNonceAllRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllPepNonceRequest) Interface() protoreflect.ProtoMessage { - return (*QueryAllPepNonceRequest)(x) +func (x *fastReflection_QueryPepNonceAllRequest) Interface() protoreflect.ProtoMessage { + return (*QueryPepNonceAllRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -7096,10 +7095,10 @@ func (x *fastReflection_QueryAllPepNonceRequest) Interface() protoreflect.ProtoM // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAllPepNonceRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryPepNonceAllRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAllPepNonceRequest_pagination, value) { + if !f(fd_QueryPepNonceAllRequest_pagination, value) { return } } @@ -7116,15 +7115,15 @@ func (x *fastReflection_QueryAllPepNonceRequest) Range(f func(protoreflect.Field // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAllPepNonceRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPepNonceAllRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryAllPepNonceRequest.pagination": + case "fairyring.pep.QueryPepNonceAllRequest.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllPepNonceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllPepNonceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceAllRequest does not contain field %s", fd.FullName())) } } @@ -7134,15 +7133,15 @@ func (x *fastReflection_QueryAllPepNonceRequest) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllPepNonceRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPepNonceAllRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryAllPepNonceRequest.pagination": + case "fairyring.pep.QueryPepNonceAllRequest.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllPepNonceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllPepNonceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceAllRequest does not contain field %s", fd.FullName())) } } @@ -7152,16 +7151,16 @@ func (x *fastReflection_QueryAllPepNonceRequest) Clear(fd protoreflect.FieldDesc // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAllPepNonceRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPepNonceAllRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryAllPepNonceRequest.pagination": + case "fairyring.pep.QueryPepNonceAllRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllPepNonceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllPepNonceRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceAllRequest does not contain field %s", descriptor.FullName())) } } @@ -7175,15 +7174,15 @@ func (x *fastReflection_QueryAllPepNonceRequest) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllPepNonceRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPepNonceAllRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryAllPepNonceRequest.pagination": + case "fairyring.pep.QueryPepNonceAllRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllPepNonceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllPepNonceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceAllRequest does not contain field %s", fd.FullName())) } } @@ -7197,44 +7196,44 @@ func (x *fastReflection_QueryAllPepNonceRequest) Set(fd protoreflect.FieldDescri // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllPepNonceRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPepNonceAllRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryAllPepNonceRequest.pagination": + case "fairyring.pep.QueryPepNonceAllRequest.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllPepNonceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllPepNonceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceAllRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAllPepNonceRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPepNonceAllRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryAllPepNonceRequest.pagination": + case "fairyring.pep.QueryPepNonceAllRequest.pagination": m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllPepNonceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllPepNonceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceAllRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAllPepNonceRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPepNonceAllRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryAllPepNonceRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryPepNonceAllRequest", d.FullName())) } panic("unreachable") } @@ -7242,7 +7241,7 @@ func (x *fastReflection_QueryAllPepNonceRequest) WhichOneof(d protoreflect.Oneof // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAllPepNonceRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPepNonceAllRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7253,7 +7252,7 @@ func (x *fastReflection_QueryAllPepNonceRequest) GetUnknown() protoreflect.RawFi // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllPepNonceRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPepNonceAllRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7265,7 +7264,7 @@ func (x *fastReflection_QueryAllPepNonceRequest) SetUnknown(fields protoreflect. // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAllPepNonceRequest) IsValid() bool { +func (x *fastReflection_QueryPepNonceAllRequest) IsValid() bool { return x != nil } @@ -7275,9 +7274,9 @@ func (x *fastReflection_QueryAllPepNonceRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAllPepNonceRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPepNonceAllRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllPepNonceRequest) + x := input.Message.Interface().(*QueryPepNonceAllRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7303,7 +7302,7 @@ func (x *fastReflection_QueryAllPepNonceRequest) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllPepNonceRequest) + x := input.Message.Interface().(*QueryPepNonceAllRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7347,7 +7346,7 @@ func (x *fastReflection_QueryAllPepNonceRequest) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAllPepNonceRequest) + x := input.Message.Interface().(*QueryPepNonceAllRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7379,10 +7378,10 @@ func (x *fastReflection_QueryAllPepNonceRequest) ProtoMethods() *protoiface.Meth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllPepNonceRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPepNonceAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllPepNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPepNonceAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7456,79 +7455,79 @@ func (x *fastReflection_QueryAllPepNonceRequest) ProtoMethods() *protoiface.Meth } } -var _ protoreflect.List = (*_QueryAllPepNonceResponse_1_list)(nil) +var _ protoreflect.List = (*_QueryPepNonceAllResponse_1_list)(nil) -type _QueryAllPepNonceResponse_1_list struct { +type _QueryPepNonceAllResponse_1_list struct { list *[]*PepNonce } -func (x *_QueryAllPepNonceResponse_1_list) Len() int { +func (x *_QueryPepNonceAllResponse_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryAllPepNonceResponse_1_list) Get(i int) protoreflect.Value { +func (x *_QueryPepNonceAllResponse_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryAllPepNonceResponse_1_list) Set(i int, value protoreflect.Value) { +func (x *_QueryPepNonceAllResponse_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*PepNonce) (*x.list)[i] = concreteValue } -func (x *_QueryAllPepNonceResponse_1_list) Append(value protoreflect.Value) { +func (x *_QueryPepNonceAllResponse_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*PepNonce) *x.list = append(*x.list, concreteValue) } -func (x *_QueryAllPepNonceResponse_1_list) AppendMutable() protoreflect.Value { +func (x *_QueryPepNonceAllResponse_1_list) AppendMutable() protoreflect.Value { v := new(PepNonce) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAllPepNonceResponse_1_list) Truncate(n int) { +func (x *_QueryPepNonceAllResponse_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryAllPepNonceResponse_1_list) NewElement() protoreflect.Value { +func (x *_QueryPepNonceAllResponse_1_list) NewElement() protoreflect.Value { v := new(PepNonce) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAllPepNonceResponse_1_list) IsValid() bool { +func (x *_QueryPepNonceAllResponse_1_list) IsValid() bool { return x.list != nil } var ( - md_QueryAllPepNonceResponse protoreflect.MessageDescriptor - fd_QueryAllPepNonceResponse_pepNonce protoreflect.FieldDescriptor - fd_QueryAllPepNonceResponse_pagination protoreflect.FieldDescriptor + md_QueryPepNonceAllResponse protoreflect.MessageDescriptor + fd_QueryPepNonceAllResponse_pep_nonce protoreflect.FieldDescriptor + fd_QueryPepNonceAllResponse_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryAllPepNonceResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryAllPepNonceResponse") - fd_QueryAllPepNonceResponse_pepNonce = md_QueryAllPepNonceResponse.Fields().ByName("pepNonce") - fd_QueryAllPepNonceResponse_pagination = md_QueryAllPepNonceResponse.Fields().ByName("pagination") + md_QueryPepNonceAllResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryPepNonceAllResponse") + fd_QueryPepNonceAllResponse_pep_nonce = md_QueryPepNonceAllResponse.Fields().ByName("pep_nonce") + fd_QueryPepNonceAllResponse_pagination = md_QueryPepNonceAllResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAllPepNonceResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPepNonceAllResponse)(nil) -type fastReflection_QueryAllPepNonceResponse QueryAllPepNonceResponse +type fastReflection_QueryPepNonceAllResponse QueryPepNonceAllResponse -func (x *QueryAllPepNonceResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAllPepNonceResponse)(x) +func (x *QueryPepNonceAllResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPepNonceAllResponse)(x) } -func (x *QueryAllPepNonceResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryPepNonceAllResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7540,43 +7539,43 @@ func (x *QueryAllPepNonceResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryAllPepNonceResponse_messageType fastReflection_QueryAllPepNonceResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryAllPepNonceResponse_messageType{} +var _fastReflection_QueryPepNonceAllResponse_messageType fastReflection_QueryPepNonceAllResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryPepNonceAllResponse_messageType{} -type fastReflection_QueryAllPepNonceResponse_messageType struct{} +type fastReflection_QueryPepNonceAllResponse_messageType struct{} -func (x fastReflection_QueryAllPepNonceResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAllPepNonceResponse)(nil) +func (x fastReflection_QueryPepNonceAllResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPepNonceAllResponse)(nil) } -func (x fastReflection_QueryAllPepNonceResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAllPepNonceResponse) +func (x fastReflection_QueryPepNonceAllResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPepNonceAllResponse) } -func (x fastReflection_QueryAllPepNonceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllPepNonceResponse +func (x fastReflection_QueryPepNonceAllResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPepNonceAllResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAllPepNonceResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAllPepNonceResponse +func (x *fastReflection_QueryPepNonceAllResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPepNonceAllResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAllPepNonceResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryAllPepNonceResponse_messageType +func (x *fastReflection_QueryPepNonceAllResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryPepNonceAllResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAllPepNonceResponse) New() protoreflect.Message { - return new(fastReflection_QueryAllPepNonceResponse) +func (x *fastReflection_QueryPepNonceAllResponse) New() protoreflect.Message { + return new(fastReflection_QueryPepNonceAllResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAllPepNonceResponse) Interface() protoreflect.ProtoMessage { - return (*QueryAllPepNonceResponse)(x) +func (x *fastReflection_QueryPepNonceAllResponse) Interface() protoreflect.ProtoMessage { + return (*QueryPepNonceAllResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -7584,16 +7583,16 @@ func (x *fastReflection_QueryAllPepNonceResponse) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAllPepNonceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryPepNonceAllResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.PepNonce) != 0 { - value := protoreflect.ValueOfList(&_QueryAllPepNonceResponse_1_list{list: &x.PepNonce}) - if !f(fd_QueryAllPepNonceResponse_pepNonce, value) { + value := protoreflect.ValueOfList(&_QueryPepNonceAllResponse_1_list{list: &x.PepNonce}) + if !f(fd_QueryPepNonceAllResponse_pep_nonce, value) { return } } if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAllPepNonceResponse_pagination, value) { + if !f(fd_QueryPepNonceAllResponse_pagination, value) { return } } @@ -7610,17 +7609,17 @@ func (x *fastReflection_QueryAllPepNonceResponse) Range(f func(protoreflect.Fiel // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAllPepNonceResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPepNonceAllResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryAllPepNonceResponse.pepNonce": + case "fairyring.pep.QueryPepNonceAllResponse.pep_nonce": return len(x.PepNonce) != 0 - case "fairyring.pep.QueryAllPepNonceResponse.pagination": + case "fairyring.pep.QueryPepNonceAllResponse.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllPepNonceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllPepNonceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceAllResponse does not contain field %s", fd.FullName())) } } @@ -7630,17 +7629,17 @@ func (x *fastReflection_QueryAllPepNonceResponse) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllPepNonceResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPepNonceAllResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryAllPepNonceResponse.pepNonce": + case "fairyring.pep.QueryPepNonceAllResponse.pep_nonce": x.PepNonce = nil - case "fairyring.pep.QueryAllPepNonceResponse.pagination": + case "fairyring.pep.QueryPepNonceAllResponse.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllPepNonceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllPepNonceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceAllResponse does not contain field %s", fd.FullName())) } } @@ -7650,22 +7649,22 @@ func (x *fastReflection_QueryAllPepNonceResponse) Clear(fd protoreflect.FieldDes // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAllPepNonceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPepNonceAllResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryAllPepNonceResponse.pepNonce": + case "fairyring.pep.QueryPepNonceAllResponse.pep_nonce": if len(x.PepNonce) == 0 { - return protoreflect.ValueOfList(&_QueryAllPepNonceResponse_1_list{}) + return protoreflect.ValueOfList(&_QueryPepNonceAllResponse_1_list{}) } - listValue := &_QueryAllPepNonceResponse_1_list{list: &x.PepNonce} + listValue := &_QueryPepNonceAllResponse_1_list{list: &x.PepNonce} return protoreflect.ValueOfList(listValue) - case "fairyring.pep.QueryAllPepNonceResponse.pagination": + case "fairyring.pep.QueryPepNonceAllResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllPepNonceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllPepNonceResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceAllResponse does not contain field %s", descriptor.FullName())) } } @@ -7679,19 +7678,19 @@ func (x *fastReflection_QueryAllPepNonceResponse) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllPepNonceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPepNonceAllResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryAllPepNonceResponse.pepNonce": + case "fairyring.pep.QueryPepNonceAllResponse.pep_nonce": lv := value.List() - clv := lv.(*_QueryAllPepNonceResponse_1_list) + clv := lv.(*_QueryPepNonceAllResponse_1_list) x.PepNonce = *clv.list - case "fairyring.pep.QueryAllPepNonceResponse.pagination": + case "fairyring.pep.QueryPepNonceAllResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllPepNonceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllPepNonceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceAllResponse does not contain field %s", fd.FullName())) } } @@ -7705,53 +7704,53 @@ func (x *fastReflection_QueryAllPepNonceResponse) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllPepNonceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPepNonceAllResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryAllPepNonceResponse.pepNonce": + case "fairyring.pep.QueryPepNonceAllResponse.pep_nonce": if x.PepNonce == nil { x.PepNonce = []*PepNonce{} } - value := &_QueryAllPepNonceResponse_1_list{list: &x.PepNonce} + value := &_QueryPepNonceAllResponse_1_list{list: &x.PepNonce} return protoreflect.ValueOfList(value) - case "fairyring.pep.QueryAllPepNonceResponse.pagination": + case "fairyring.pep.QueryPepNonceAllResponse.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageResponse) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllPepNonceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllPepNonceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceAllResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAllPepNonceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPepNonceAllResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryAllPepNonceResponse.pepNonce": + case "fairyring.pep.QueryPepNonceAllResponse.pep_nonce": list := []*PepNonce{} - return protoreflect.ValueOfList(&_QueryAllPepNonceResponse_1_list{list: &list}) - case "fairyring.pep.QueryAllPepNonceResponse.pagination": + return protoreflect.ValueOfList(&_QueryPepNonceAllResponse_1_list{list: &list}) + case "fairyring.pep.QueryPepNonceAllResponse.pagination": m := new(v1beta1.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryAllPepNonceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPepNonceAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryAllPepNonceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPepNonceAllResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAllPepNonceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPepNonceAllResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryAllPepNonceResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryPepNonceAllResponse", d.FullName())) } panic("unreachable") } @@ -7759,7 +7758,7 @@ func (x *fastReflection_QueryAllPepNonceResponse) WhichOneof(d protoreflect.Oneo // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAllPepNonceResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPepNonceAllResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7770,7 +7769,7 @@ func (x *fastReflection_QueryAllPepNonceResponse) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAllPepNonceResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPepNonceAllResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7782,7 +7781,7 @@ func (x *fastReflection_QueryAllPepNonceResponse) SetUnknown(fields protoreflect // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAllPepNonceResponse) IsValid() bool { +func (x *fastReflection_QueryPepNonceAllResponse) IsValid() bool { return x != nil } @@ -7792,9 +7791,9 @@ func (x *fastReflection_QueryAllPepNonceResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAllPepNonceResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPepNonceAllResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAllPepNonceResponse) + x := input.Message.Interface().(*QueryPepNonceAllResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7826,7 +7825,7 @@ func (x *fastReflection_QueryAllPepNonceResponse) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAllPepNonceResponse) + x := input.Message.Interface().(*QueryPepNonceAllResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7886,7 +7885,7 @@ func (x *fastReflection_QueryAllPepNonceResponse) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAllPepNonceResponse) + x := input.Message.Interface().(*QueryPepNonceAllResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7918,10 +7917,10 @@ func (x *fastReflection_QueryAllPepNonceResponse) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllPepNonceResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPepNonceAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAllPepNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPepNonceAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8386,16 +8385,16 @@ func (x *fastReflection_QueryPubKeyRequest) ProtoMethods() *protoiface.Methods { } var ( - md_QueryPubKeyResponse protoreflect.MessageDescriptor - fd_QueryPubKeyResponse_activePubKey protoreflect.FieldDescriptor - fd_QueryPubKeyResponse_queuedPubKey protoreflect.FieldDescriptor + md_QueryPubKeyResponse protoreflect.MessageDescriptor + fd_QueryPubKeyResponse_active_pub_key protoreflect.FieldDescriptor + fd_QueryPubKeyResponse_queued_pub_key protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() md_QueryPubKeyResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryPubKeyResponse") - fd_QueryPubKeyResponse_activePubKey = md_QueryPubKeyResponse.Fields().ByName("activePubKey") - fd_QueryPubKeyResponse_queuedPubKey = md_QueryPubKeyResponse.Fields().ByName("queuedPubKey") + fd_QueryPubKeyResponse_active_pub_key = md_QueryPubKeyResponse.Fields().ByName("active_pub_key") + fd_QueryPubKeyResponse_queued_pub_key = md_QueryPubKeyResponse.Fields().ByName("queued_pub_key") } var _ protoreflect.Message = (*fastReflection_QueryPubKeyResponse)(nil) @@ -8465,13 +8464,13 @@ func (x *fastReflection_QueryPubKeyResponse) Interface() protoreflect.ProtoMessa func (x *fastReflection_QueryPubKeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ActivePubKey != nil { value := protoreflect.ValueOfMessage(x.ActivePubKey.ProtoReflect()) - if !f(fd_QueryPubKeyResponse_activePubKey, value) { + if !f(fd_QueryPubKeyResponse_active_pub_key, value) { return } } if x.QueuedPubKey != nil { value := protoreflect.ValueOfMessage(x.QueuedPubKey.ProtoReflect()) - if !f(fd_QueryPubKeyResponse_queuedPubKey, value) { + if !f(fd_QueryPubKeyResponse_queued_pub_key, value) { return } } @@ -8490,9 +8489,9 @@ func (x *fastReflection_QueryPubKeyResponse) Range(f func(protoreflect.FieldDesc // a repeated field is populated if it is non-empty. func (x *fastReflection_QueryPubKeyResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryPubKeyResponse.activePubKey": + case "fairyring.pep.QueryPubKeyResponse.active_pub_key": return x.ActivePubKey != nil - case "fairyring.pep.QueryPubKeyResponse.queuedPubKey": + case "fairyring.pep.QueryPubKeyResponse.queued_pub_key": return x.QueuedPubKey != nil default: if fd.IsExtension() { @@ -8510,9 +8509,9 @@ func (x *fastReflection_QueryPubKeyResponse) Has(fd protoreflect.FieldDescriptor // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryPubKeyResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryPubKeyResponse.activePubKey": + case "fairyring.pep.QueryPubKeyResponse.active_pub_key": x.ActivePubKey = nil - case "fairyring.pep.QueryPubKeyResponse.queuedPubKey": + case "fairyring.pep.QueryPubKeyResponse.queued_pub_key": x.QueuedPubKey = nil default: if fd.IsExtension() { @@ -8530,10 +8529,10 @@ func (x *fastReflection_QueryPubKeyResponse) Clear(fd protoreflect.FieldDescript // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_QueryPubKeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryPubKeyResponse.activePubKey": + case "fairyring.pep.QueryPubKeyResponse.active_pub_key": value := x.ActivePubKey return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.pep.QueryPubKeyResponse.queuedPubKey": + case "fairyring.pep.QueryPubKeyResponse.queued_pub_key": value := x.QueuedPubKey return protoreflect.ValueOfMessage(value.ProtoReflect()) default: @@ -8556,9 +8555,9 @@ func (x *fastReflection_QueryPubKeyResponse) Get(descriptor protoreflect.FieldDe // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryPubKeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryPubKeyResponse.activePubKey": + case "fairyring.pep.QueryPubKeyResponse.active_pub_key": x.ActivePubKey = value.Message().Interface().(*common.ActivePublicKey) - case "fairyring.pep.QueryPubKeyResponse.queuedPubKey": + case "fairyring.pep.QueryPubKeyResponse.queued_pub_key": x.QueuedPubKey = value.Message().Interface().(*common.QueuedPublicKey) default: if fd.IsExtension() { @@ -8580,12 +8579,12 @@ func (x *fastReflection_QueryPubKeyResponse) Set(fd protoreflect.FieldDescriptor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueryPubKeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryPubKeyResponse.activePubKey": + case "fairyring.pep.QueryPubKeyResponse.active_pub_key": if x.ActivePubKey == nil { x.ActivePubKey = new(common.ActivePublicKey) } return protoreflect.ValueOfMessage(x.ActivePubKey.ProtoReflect()) - case "fairyring.pep.QueryPubKeyResponse.queuedPubKey": + case "fairyring.pep.QueryPubKeyResponse.queued_pub_key": if x.QueuedPubKey == nil { x.QueuedPubKey = new(common.QueuedPublicKey) } @@ -8603,10 +8602,10 @@ func (x *fastReflection_QueryPubKeyResponse) Mutable(fd protoreflect.FieldDescri // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_QueryPubKeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryPubKeyResponse.activePubKey": + case "fairyring.pep.QueryPubKeyResponse.active_pub_key": m := new(common.ActivePublicKey) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.pep.QueryPubKeyResponse.queuedPubKey": + case "fairyring.pep.QueryPubKeyResponse.queued_pub_key": m := new(common.QueuedPublicKey) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: @@ -8900,25 +8899,25 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods } var ( - md_QueryShowPrivateKeyshareReqRequest protoreflect.MessageDescriptor - fd_QueryShowPrivateKeyshareReqRequest_reqId protoreflect.FieldDescriptor + md_QueryPrivateKeyshareReqRequest protoreflect.MessageDescriptor + fd_QueryPrivateKeyshareReqRequest_req_id protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryShowPrivateKeyshareReqRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryShowPrivateKeyshareReqRequest") - fd_QueryShowPrivateKeyshareReqRequest_reqId = md_QueryShowPrivateKeyshareReqRequest.Fields().ByName("reqId") + md_QueryPrivateKeyshareReqRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryPrivateKeyshareReqRequest") + fd_QueryPrivateKeyshareReqRequest_req_id = md_QueryPrivateKeyshareReqRequest.Fields().ByName("req_id") } -var _ protoreflect.Message = (*fastReflection_QueryShowPrivateKeyshareReqRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPrivateKeyshareReqRequest)(nil) -type fastReflection_QueryShowPrivateKeyshareReqRequest QueryShowPrivateKeyshareReqRequest +type fastReflection_QueryPrivateKeyshareReqRequest QueryPrivateKeyshareReqRequest -func (x *QueryShowPrivateKeyshareReqRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryShowPrivateKeyshareReqRequest)(x) +func (x *QueryPrivateKeyshareReqRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPrivateKeyshareReqRequest)(x) } -func (x *QueryShowPrivateKeyshareReqRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryPrivateKeyshareReqRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8930,43 +8929,43 @@ func (x *QueryShowPrivateKeyshareReqRequest) slowProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -var _fastReflection_QueryShowPrivateKeyshareReqRequest_messageType fastReflection_QueryShowPrivateKeyshareReqRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryShowPrivateKeyshareReqRequest_messageType{} +var _fastReflection_QueryPrivateKeyshareReqRequest_messageType fastReflection_QueryPrivateKeyshareReqRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryPrivateKeyshareReqRequest_messageType{} -type fastReflection_QueryShowPrivateKeyshareReqRequest_messageType struct{} +type fastReflection_QueryPrivateKeyshareReqRequest_messageType struct{} -func (x fastReflection_QueryShowPrivateKeyshareReqRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryShowPrivateKeyshareReqRequest)(nil) +func (x fastReflection_QueryPrivateKeyshareReqRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPrivateKeyshareReqRequest)(nil) } -func (x fastReflection_QueryShowPrivateKeyshareReqRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryShowPrivateKeyshareReqRequest) +func (x fastReflection_QueryPrivateKeyshareReqRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPrivateKeyshareReqRequest) } -func (x fastReflection_QueryShowPrivateKeyshareReqRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryShowPrivateKeyshareReqRequest +func (x fastReflection_QueryPrivateKeyshareReqRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPrivateKeyshareReqRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryShowPrivateKeyshareReqRequest +func (x *fastReflection_QueryPrivateKeyshareReqRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPrivateKeyshareReqRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryShowPrivateKeyshareReqRequest_messageType +func (x *fastReflection_QueryPrivateKeyshareReqRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryPrivateKeyshareReqRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) New() protoreflect.Message { - return new(fastReflection_QueryShowPrivateKeyshareReqRequest) +func (x *fastReflection_QueryPrivateKeyshareReqRequest) New() protoreflect.Message { + return new(fastReflection_QueryPrivateKeyshareReqRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) Interface() protoreflect.ProtoMessage { - return (*QueryShowPrivateKeyshareReqRequest)(x) +func (x *fastReflection_QueryPrivateKeyshareReqRequest) Interface() protoreflect.ProtoMessage { + return (*QueryPrivateKeyshareReqRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -8974,10 +8973,10 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) Interface() protoref // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryPrivateKeyshareReqRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ReqId != "" { value := protoreflect.ValueOfString(x.ReqId) - if !f(fd_QueryShowPrivateKeyshareReqRequest_reqId, value) { + if !f(fd_QueryPrivateKeyshareReqRequest_req_id, value) { return } } @@ -8994,15 +8993,15 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) Range(f func(protore // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPrivateKeyshareReqRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryShowPrivateKeyshareReqRequest.reqId": + case "fairyring.pep.QueryPrivateKeyshareReqRequest.req_id": return x.ReqId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryShowPrivateKeyshareReqRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryShowPrivateKeyshareReqRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqRequest does not contain field %s", fd.FullName())) } } @@ -9012,15 +9011,15 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) Has(fd protoreflect. // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPrivateKeyshareReqRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryShowPrivateKeyshareReqRequest.reqId": + case "fairyring.pep.QueryPrivateKeyshareReqRequest.req_id": x.ReqId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryShowPrivateKeyshareReqRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryShowPrivateKeyshareReqRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqRequest does not contain field %s", fd.FullName())) } } @@ -9030,16 +9029,16 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) Clear(fd protoreflec // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPrivateKeyshareReqRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryShowPrivateKeyshareReqRequest.reqId": + case "fairyring.pep.QueryPrivateKeyshareReqRequest.req_id": value := x.ReqId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryShowPrivateKeyshareReqRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryShowPrivateKeyshareReqRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqRequest does not contain field %s", descriptor.FullName())) } } @@ -9053,15 +9052,15 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) Get(descriptor proto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPrivateKeyshareReqRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryShowPrivateKeyshareReqRequest.reqId": + case "fairyring.pep.QueryPrivateKeyshareReqRequest.req_id": x.ReqId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryShowPrivateKeyshareReqRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryShowPrivateKeyshareReqRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqRequest does not contain field %s", fd.FullName())) } } @@ -9075,40 +9074,40 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) Set(fd protoreflect. // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPrivateKeyshareReqRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryShowPrivateKeyshareReqRequest.reqId": - panic(fmt.Errorf("field reqId of message fairyring.pep.QueryShowPrivateKeyshareReqRequest is not mutable")) + case "fairyring.pep.QueryPrivateKeyshareReqRequest.req_id": + panic(fmt.Errorf("field req_id of message fairyring.pep.QueryPrivateKeyshareReqRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryShowPrivateKeyshareReqRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryShowPrivateKeyshareReqRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPrivateKeyshareReqRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryShowPrivateKeyshareReqRequest.reqId": + case "fairyring.pep.QueryPrivateKeyshareReqRequest.req_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryShowPrivateKeyshareReqRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryShowPrivateKeyshareReqRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPrivateKeyshareReqRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryShowPrivateKeyshareReqRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryPrivateKeyshareReqRequest", d.FullName())) } panic("unreachable") } @@ -9116,7 +9115,7 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) WhichOneof(d protore // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPrivateKeyshareReqRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9127,7 +9126,7 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) GetUnknown() protore // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPrivateKeyshareReqRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9139,7 +9138,7 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) SetUnknown(fields pr // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) IsValid() bool { +func (x *fastReflection_QueryPrivateKeyshareReqRequest) IsValid() bool { return x != nil } @@ -9149,9 +9148,9 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPrivateKeyshareReqRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryShowPrivateKeyshareReqRequest) + x := input.Message.Interface().(*QueryPrivateKeyshareReqRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9177,7 +9176,7 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) ProtoMethods() *prot } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryShowPrivateKeyshareReqRequest) + x := input.Message.Interface().(*QueryPrivateKeyshareReqRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9214,7 +9213,7 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) ProtoMethods() *prot }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryShowPrivateKeyshareReqRequest) + x := input.Message.Interface().(*QueryPrivateKeyshareReqRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9246,10 +9245,10 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) ProtoMethods() *prot fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryShowPrivateKeyshareReqRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPrivateKeyshareReqRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryShowPrivateKeyshareReqRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPrivateKeyshareReqRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9319,83 +9318,83 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqRequest) ProtoMethods() *prot } } -var _ protoreflect.List = (*_QueryShowPrivateKeyshareReqResponse_5_list)(nil) +var _ protoreflect.List = (*_QueryPrivateKeyshareReqResponse_5_list)(nil) -type _QueryShowPrivateKeyshareReqResponse_5_list struct { +type _QueryPrivateKeyshareReqResponse_5_list struct { list *[]*common.EncryptedKeyshare } -func (x *_QueryShowPrivateKeyshareReqResponse_5_list) Len() int { +func (x *_QueryPrivateKeyshareReqResponse_5_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryShowPrivateKeyshareReqResponse_5_list) Get(i int) protoreflect.Value { +func (x *_QueryPrivateKeyshareReqResponse_5_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryShowPrivateKeyshareReqResponse_5_list) Set(i int, value protoreflect.Value) { +func (x *_QueryPrivateKeyshareReqResponse_5_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*common.EncryptedKeyshare) (*x.list)[i] = concreteValue } -func (x *_QueryShowPrivateKeyshareReqResponse_5_list) Append(value protoreflect.Value) { +func (x *_QueryPrivateKeyshareReqResponse_5_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*common.EncryptedKeyshare) *x.list = append(*x.list, concreteValue) } -func (x *_QueryShowPrivateKeyshareReqResponse_5_list) AppendMutable() protoreflect.Value { +func (x *_QueryPrivateKeyshareReqResponse_5_list) AppendMutable() protoreflect.Value { v := new(common.EncryptedKeyshare) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryShowPrivateKeyshareReqResponse_5_list) Truncate(n int) { +func (x *_QueryPrivateKeyshareReqResponse_5_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryShowPrivateKeyshareReqResponse_5_list) NewElement() protoreflect.Value { +func (x *_QueryPrivateKeyshareReqResponse_5_list) NewElement() protoreflect.Value { v := new(common.EncryptedKeyshare) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryShowPrivateKeyshareReqResponse_5_list) IsValid() bool { +func (x *_QueryPrivateKeyshareReqResponse_5_list) IsValid() bool { return x.list != nil } var ( - md_QueryShowPrivateKeyshareReqResponse protoreflect.MessageDescriptor - fd_QueryShowPrivateKeyshareReqResponse_creator protoreflect.FieldDescriptor - fd_QueryShowPrivateKeyshareReqResponse_req_id protoreflect.FieldDescriptor - fd_QueryShowPrivateKeyshareReqResponse_pubkey protoreflect.FieldDescriptor - fd_QueryShowPrivateKeyshareReqResponse_encrypted_keyshares protoreflect.FieldDescriptor + md_QueryPrivateKeyshareReqResponse protoreflect.MessageDescriptor + fd_QueryPrivateKeyshareReqResponse_creator protoreflect.FieldDescriptor + fd_QueryPrivateKeyshareReqResponse_req_id protoreflect.FieldDescriptor + fd_QueryPrivateKeyshareReqResponse_pubkey protoreflect.FieldDescriptor + fd_QueryPrivateKeyshareReqResponse_encrypted_keyshares protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryShowPrivateKeyshareReqResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryShowPrivateKeyshareReqResponse") - fd_QueryShowPrivateKeyshareReqResponse_creator = md_QueryShowPrivateKeyshareReqResponse.Fields().ByName("creator") - fd_QueryShowPrivateKeyshareReqResponse_req_id = md_QueryShowPrivateKeyshareReqResponse.Fields().ByName("req_id") - fd_QueryShowPrivateKeyshareReqResponse_pubkey = md_QueryShowPrivateKeyshareReqResponse.Fields().ByName("pubkey") - fd_QueryShowPrivateKeyshareReqResponse_encrypted_keyshares = md_QueryShowPrivateKeyshareReqResponse.Fields().ByName("encrypted_keyshares") + md_QueryPrivateKeyshareReqResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryPrivateKeyshareReqResponse") + fd_QueryPrivateKeyshareReqResponse_creator = md_QueryPrivateKeyshareReqResponse.Fields().ByName("creator") + fd_QueryPrivateKeyshareReqResponse_req_id = md_QueryPrivateKeyshareReqResponse.Fields().ByName("req_id") + fd_QueryPrivateKeyshareReqResponse_pubkey = md_QueryPrivateKeyshareReqResponse.Fields().ByName("pubkey") + fd_QueryPrivateKeyshareReqResponse_encrypted_keyshares = md_QueryPrivateKeyshareReqResponse.Fields().ByName("encrypted_keyshares") } -var _ protoreflect.Message = (*fastReflection_QueryShowPrivateKeyshareReqResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPrivateKeyshareReqResponse)(nil) -type fastReflection_QueryShowPrivateKeyshareReqResponse QueryShowPrivateKeyshareReqResponse +type fastReflection_QueryPrivateKeyshareReqResponse QueryPrivateKeyshareReqResponse -func (x *QueryShowPrivateKeyshareReqResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryShowPrivateKeyshareReqResponse)(x) +func (x *QueryPrivateKeyshareReqResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPrivateKeyshareReqResponse)(x) } -func (x *QueryShowPrivateKeyshareReqResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryPrivateKeyshareReqResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9407,43 +9406,43 @@ func (x *QueryShowPrivateKeyshareReqResponse) slowProtoReflect() protoreflect.Me return mi.MessageOf(x) } -var _fastReflection_QueryShowPrivateKeyshareReqResponse_messageType fastReflection_QueryShowPrivateKeyshareReqResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryShowPrivateKeyshareReqResponse_messageType{} +var _fastReflection_QueryPrivateKeyshareReqResponse_messageType fastReflection_QueryPrivateKeyshareReqResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryPrivateKeyshareReqResponse_messageType{} -type fastReflection_QueryShowPrivateKeyshareReqResponse_messageType struct{} +type fastReflection_QueryPrivateKeyshareReqResponse_messageType struct{} -func (x fastReflection_QueryShowPrivateKeyshareReqResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryShowPrivateKeyshareReqResponse)(nil) +func (x fastReflection_QueryPrivateKeyshareReqResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPrivateKeyshareReqResponse)(nil) } -func (x fastReflection_QueryShowPrivateKeyshareReqResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryShowPrivateKeyshareReqResponse) +func (x fastReflection_QueryPrivateKeyshareReqResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPrivateKeyshareReqResponse) } -func (x fastReflection_QueryShowPrivateKeyshareReqResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryShowPrivateKeyshareReqResponse +func (x fastReflection_QueryPrivateKeyshareReqResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPrivateKeyshareReqResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryShowPrivateKeyshareReqResponse +func (x *fastReflection_QueryPrivateKeyshareReqResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPrivateKeyshareReqResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryShowPrivateKeyshareReqResponse_messageType +func (x *fastReflection_QueryPrivateKeyshareReqResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryPrivateKeyshareReqResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) New() protoreflect.Message { - return new(fastReflection_QueryShowPrivateKeyshareReqResponse) +func (x *fastReflection_QueryPrivateKeyshareReqResponse) New() protoreflect.Message { + return new(fastReflection_QueryPrivateKeyshareReqResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) Interface() protoreflect.ProtoMessage { - return (*QueryShowPrivateKeyshareReqResponse)(x) +func (x *fastReflection_QueryPrivateKeyshareReqResponse) Interface() protoreflect.ProtoMessage { + return (*QueryPrivateKeyshareReqResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -9451,28 +9450,28 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) Interface() protore // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryPrivateKeyshareReqResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_QueryShowPrivateKeyshareReqResponse_creator, value) { + if !f(fd_QueryPrivateKeyshareReqResponse_creator, value) { return } } if x.ReqId != "" { value := protoreflect.ValueOfString(x.ReqId) - if !f(fd_QueryShowPrivateKeyshareReqResponse_req_id, value) { + if !f(fd_QueryPrivateKeyshareReqResponse_req_id, value) { return } } if x.Pubkey != "" { value := protoreflect.ValueOfString(x.Pubkey) - if !f(fd_QueryShowPrivateKeyshareReqResponse_pubkey, value) { + if !f(fd_QueryPrivateKeyshareReqResponse_pubkey, value) { return } } if len(x.EncryptedKeyshares) != 0 { - value := protoreflect.ValueOfList(&_QueryShowPrivateKeyshareReqResponse_5_list{list: &x.EncryptedKeyshares}) - if !f(fd_QueryShowPrivateKeyshareReqResponse_encrypted_keyshares, value) { + value := protoreflect.ValueOfList(&_QueryPrivateKeyshareReqResponse_5_list{list: &x.EncryptedKeyshares}) + if !f(fd_QueryPrivateKeyshareReqResponse_encrypted_keyshares, value) { return } } @@ -9489,21 +9488,21 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) Range(f func(protor // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPrivateKeyshareReqResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.creator": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.creator": return x.Creator != "" - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.req_id": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.req_id": return x.ReqId != "" - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.pubkey": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.pubkey": return x.Pubkey != "" - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.encrypted_keyshares": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.encrypted_keyshares": return len(x.EncryptedKeyshares) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryShowPrivateKeyshareReqResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryShowPrivateKeyshareReqResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqResponse does not contain field %s", fd.FullName())) } } @@ -9513,21 +9512,21 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) Has(fd protoreflect // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPrivateKeyshareReqResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.creator": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.creator": x.Creator = "" - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.req_id": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.req_id": x.ReqId = "" - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.pubkey": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.pubkey": x.Pubkey = "" - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.encrypted_keyshares": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.encrypted_keyshares": x.EncryptedKeyshares = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryShowPrivateKeyshareReqResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryShowPrivateKeyshareReqResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqResponse does not contain field %s", fd.FullName())) } } @@ -9537,28 +9536,28 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) Clear(fd protorefle // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPrivateKeyshareReqResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.creator": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.req_id": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.req_id": value := x.ReqId return protoreflect.ValueOfString(value) - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.pubkey": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.pubkey": value := x.Pubkey return protoreflect.ValueOfString(value) - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.encrypted_keyshares": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.encrypted_keyshares": if len(x.EncryptedKeyshares) == 0 { - return protoreflect.ValueOfList(&_QueryShowPrivateKeyshareReqResponse_5_list{}) + return protoreflect.ValueOfList(&_QueryPrivateKeyshareReqResponse_5_list{}) } - listValue := &_QueryShowPrivateKeyshareReqResponse_5_list{list: &x.EncryptedKeyshares} + listValue := &_QueryPrivateKeyshareReqResponse_5_list{list: &x.EncryptedKeyshares} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryShowPrivateKeyshareReqResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryShowPrivateKeyshareReqResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqResponse does not contain field %s", descriptor.FullName())) } } @@ -9572,23 +9571,23 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) Get(descriptor prot // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPrivateKeyshareReqResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.creator": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.creator": x.Creator = value.Interface().(string) - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.req_id": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.req_id": x.ReqId = value.Interface().(string) - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.pubkey": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.pubkey": x.Pubkey = value.Interface().(string) - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.encrypted_keyshares": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.encrypted_keyshares": lv := value.List() - clv := lv.(*_QueryShowPrivateKeyshareReqResponse_5_list) + clv := lv.(*_QueryPrivateKeyshareReqResponse_5_list) x.EncryptedKeyshares = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryShowPrivateKeyshareReqResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryShowPrivateKeyshareReqResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqResponse does not contain field %s", fd.FullName())) } } @@ -9602,57 +9601,57 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) Set(fd protoreflect // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPrivateKeyshareReqResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.encrypted_keyshares": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.encrypted_keyshares": if x.EncryptedKeyshares == nil { x.EncryptedKeyshares = []*common.EncryptedKeyshare{} } - value := &_QueryShowPrivateKeyshareReqResponse_5_list{list: &x.EncryptedKeyshares} + value := &_QueryPrivateKeyshareReqResponse_5_list{list: &x.EncryptedKeyshares} return protoreflect.ValueOfList(value) - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.creator": - panic(fmt.Errorf("field creator of message fairyring.pep.QueryShowPrivateKeyshareReqResponse is not mutable")) - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.req_id": - panic(fmt.Errorf("field req_id of message fairyring.pep.QueryShowPrivateKeyshareReqResponse is not mutable")) - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.pubkey": - panic(fmt.Errorf("field pubkey of message fairyring.pep.QueryShowPrivateKeyshareReqResponse is not mutable")) + case "fairyring.pep.QueryPrivateKeyshareReqResponse.creator": + panic(fmt.Errorf("field creator of message fairyring.pep.QueryPrivateKeyshareReqResponse is not mutable")) + case "fairyring.pep.QueryPrivateKeyshareReqResponse.req_id": + panic(fmt.Errorf("field req_id of message fairyring.pep.QueryPrivateKeyshareReqResponse is not mutable")) + case "fairyring.pep.QueryPrivateKeyshareReqResponse.pubkey": + panic(fmt.Errorf("field pubkey of message fairyring.pep.QueryPrivateKeyshareReqResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryShowPrivateKeyshareReqResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryShowPrivateKeyshareReqResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPrivateKeyshareReqResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.creator": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.creator": return protoreflect.ValueOfString("") - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.req_id": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.req_id": return protoreflect.ValueOfString("") - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.pubkey": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.pubkey": return protoreflect.ValueOfString("") - case "fairyring.pep.QueryShowPrivateKeyshareReqResponse.encrypted_keyshares": + case "fairyring.pep.QueryPrivateKeyshareReqResponse.encrypted_keyshares": list := []*common.EncryptedKeyshare{} - return protoreflect.ValueOfList(&_QueryShowPrivateKeyshareReqResponse_5_list{list: &list}) + return protoreflect.ValueOfList(&_QueryPrivateKeyshareReqResponse_5_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryShowPrivateKeyshareReqResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryShowPrivateKeyshareReqResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPrivateKeyshareReqResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryShowPrivateKeyshareReqResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryPrivateKeyshareReqResponse", d.FullName())) } panic("unreachable") } @@ -9660,7 +9659,7 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) WhichOneof(d protor // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPrivateKeyshareReqResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9671,7 +9670,7 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) GetUnknown() protor // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPrivateKeyshareReqResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9683,7 +9682,7 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) SetUnknown(fields p // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) IsValid() bool { +func (x *fastReflection_QueryPrivateKeyshareReqResponse) IsValid() bool { return x != nil } @@ -9693,9 +9692,9 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPrivateKeyshareReqResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryShowPrivateKeyshareReqResponse) + x := input.Message.Interface().(*QueryPrivateKeyshareReqResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9735,7 +9734,7 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) ProtoMethods() *pro } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryShowPrivateKeyshareReqResponse) + x := input.Message.Interface().(*QueryPrivateKeyshareReqResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9802,7 +9801,7 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) ProtoMethods() *pro }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryShowPrivateKeyshareReqResponse) + x := input.Message.Interface().(*QueryPrivateKeyshareReqResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9834,10 +9833,10 @@ func (x *fastReflection_QueryShowPrivateKeyshareReqResponse) ProtoMethods() *pro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryShowPrivateKeyshareReqResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPrivateKeyshareReqResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryShowPrivateKeyshareReqResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPrivateKeyshareReqResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -11050,7 +11049,8 @@ func (x *QueryParamsResponse) GetParams() *Params { return nil } -type QueryKeyshareRequest struct { +// QueryKeyshareReqRequest is request type for the Query/KeyshareReq RPC method. +type QueryKeyshareReqRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -11058,8 +11058,8 @@ type QueryKeyshareRequest struct { ReqId string `protobuf:"bytes,1,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } -func (x *QueryKeyshareRequest) Reset() { - *x = QueryKeyshareRequest{} +func (x *QueryKeyshareReqRequest) Reset() { + *x = QueryKeyshareReqRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11067,34 +11067,35 @@ func (x *QueryKeyshareRequest) Reset() { } } -func (x *QueryKeyshareRequest) String() string { +func (x *QueryKeyshareReqRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryKeyshareRequest) ProtoMessage() {} +func (*QueryKeyshareReqRequest) ProtoMessage() {} -// Deprecated: Use QueryKeyshareRequest.ProtoReflect.Descriptor instead. -func (*QueryKeyshareRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryKeyshareReqRequest.ProtoReflect.Descriptor instead. +func (*QueryKeyshareReqRequest) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{2} } -func (x *QueryKeyshareRequest) GetReqId() string { +func (x *QueryKeyshareReqRequest) GetReqId() string { if x != nil { return x.ReqId } return "" } -type QueryKeyshareResponse struct { +// QueryKeyshareReqResponse is response type for the Query/KeyshareReq RPC method. +type QueryKeyshareReqResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Keyshare *GenEncTxExecutionQueue `protobuf:"bytes,1,opt,name=keyshare,proto3" json:"keyshare,omitempty"` + Keyshare *IdentityExecutionQueue `protobuf:"bytes,1,opt,name=keyshare,proto3" json:"keyshare,omitempty"` } -func (x *QueryKeyshareResponse) Reset() { - *x = QueryKeyshareResponse{} +func (x *QueryKeyshareReqResponse) Reset() { + *x = QueryKeyshareReqResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11102,25 +11103,26 @@ func (x *QueryKeyshareResponse) Reset() { } } -func (x *QueryKeyshareResponse) String() string { +func (x *QueryKeyshareReqResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryKeyshareResponse) ProtoMessage() {} +func (*QueryKeyshareReqResponse) ProtoMessage() {} -// Deprecated: Use QueryKeyshareResponse.ProtoReflect.Descriptor instead. -func (*QueryKeyshareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryKeyshareReqResponse.ProtoReflect.Descriptor instead. +func (*QueryKeyshareReqResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{3} } -func (x *QueryKeyshareResponse) GetKeyshare() *GenEncTxExecutionQueue { +func (x *QueryKeyshareReqResponse) GetKeyshare() *IdentityExecutionQueue { if x != nil { return x.Keyshare } return nil } -type QueryAllKeyshareRequest struct { +// QueryKeyshareReqAllRequest is request type for the Query/KeyshareReqAll RPC method. +type QueryKeyshareReqAllRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -11128,8 +11130,8 @@ type QueryAllKeyshareRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllKeyshareRequest) Reset() { - *x = QueryAllKeyshareRequest{} +func (x *QueryKeyshareReqAllRequest) Reset() { + *x = QueryKeyshareReqAllRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11137,35 +11139,36 @@ func (x *QueryAllKeyshareRequest) Reset() { } } -func (x *QueryAllKeyshareRequest) String() string { +func (x *QueryKeyshareReqAllRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllKeyshareRequest) ProtoMessage() {} +func (*QueryKeyshareReqAllRequest) ProtoMessage() {} -// Deprecated: Use QueryAllKeyshareRequest.ProtoReflect.Descriptor instead. -func (*QueryAllKeyshareRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryKeyshareReqAllRequest.ProtoReflect.Descriptor instead. +func (*QueryKeyshareReqAllRequest) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{4} } -func (x *QueryAllKeyshareRequest) GetPagination() *v1beta1.PageRequest { +func (x *QueryKeyshareReqAllRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination } return nil } -type QueryAllKeyshareResponse struct { +// QueryKeyshareReqAllResponse is response type for the Query/KeyshareReqAll RPC method. +type QueryKeyshareReqAllResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Keyshares []*GenEncTxExecutionQueue `protobuf:"bytes,1,rep,name=keyshares,proto3" json:"keyshares,omitempty"` + Keyshares []*IdentityExecutionQueue `protobuf:"bytes,1,rep,name=keyshares,proto3" json:"keyshares,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllKeyshareResponse) Reset() { - *x = QueryAllKeyshareResponse{} +func (x *QueryKeyshareReqAllResponse) Reset() { + *x = QueryKeyshareReqAllResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11173,42 +11176,43 @@ func (x *QueryAllKeyshareResponse) Reset() { } } -func (x *QueryAllKeyshareResponse) String() string { +func (x *QueryKeyshareReqAllResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllKeyshareResponse) ProtoMessage() {} +func (*QueryKeyshareReqAllResponse) ProtoMessage() {} -// Deprecated: Use QueryAllKeyshareResponse.ProtoReflect.Descriptor instead. -func (*QueryAllKeyshareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryKeyshareReqAllResponse.ProtoReflect.Descriptor instead. +func (*QueryKeyshareReqAllResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{5} } -func (x *QueryAllKeyshareResponse) GetKeyshares() []*GenEncTxExecutionQueue { +func (x *QueryKeyshareReqAllResponse) GetKeyshares() []*IdentityExecutionQueue { if x != nil { return x.Keyshares } return nil } -func (x *QueryAllKeyshareResponse) GetPagination() *v1beta1.PageResponse { +func (x *QueryKeyshareReqAllResponse) GetPagination() *v1beta1.PageResponse { if x != nil { return x.Pagination } return nil } -type QueryGetEncryptedTxRequest struct { +// QueryEncryptedTxRequest is request type for the Query/EncryptedTx RPC method. +type QueryEncryptedTxRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - TargetHeight uint64 `protobuf:"varint,1,opt,name=targetHeight,proto3" json:"targetHeight,omitempty"` + TargetHeight uint64 `protobuf:"varint,1,opt,name=target_height,json=targetHeight,proto3" json:"target_height,omitempty"` Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` } -func (x *QueryGetEncryptedTxRequest) Reset() { - *x = QueryGetEncryptedTxRequest{} +func (x *QueryEncryptedTxRequest) Reset() { + *x = QueryEncryptedTxRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11216,41 +11220,42 @@ func (x *QueryGetEncryptedTxRequest) Reset() { } } -func (x *QueryGetEncryptedTxRequest) String() string { +func (x *QueryEncryptedTxRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetEncryptedTxRequest) ProtoMessage() {} +func (*QueryEncryptedTxRequest) ProtoMessage() {} -// Deprecated: Use QueryGetEncryptedTxRequest.ProtoReflect.Descriptor instead. -func (*QueryGetEncryptedTxRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryEncryptedTxRequest.ProtoReflect.Descriptor instead. +func (*QueryEncryptedTxRequest) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{6} } -func (x *QueryGetEncryptedTxRequest) GetTargetHeight() uint64 { +func (x *QueryEncryptedTxRequest) GetTargetHeight() uint64 { if x != nil { return x.TargetHeight } return 0 } -func (x *QueryGetEncryptedTxRequest) GetIndex() uint64 { +func (x *QueryEncryptedTxRequest) GetIndex() uint64 { if x != nil { return x.Index } return 0 } -type QueryGetEncryptedTxResponse struct { +// QueryEncryptedTxResponse is response type for the Query/EncryptedTx RPC method. +type QueryEncryptedTxResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - EncryptedTx *EncryptedTx `protobuf:"bytes,1,opt,name=encryptedTx,proto3" json:"encryptedTx,omitempty"` + EncryptedTx *EncryptedTx `protobuf:"bytes,1,opt,name=encrypted_tx,json=encryptedTx,proto3" json:"encrypted_tx,omitempty"` } -func (x *QueryGetEncryptedTxResponse) Reset() { - *x = QueryGetEncryptedTxResponse{} +func (x *QueryEncryptedTxResponse) Reset() { + *x = QueryEncryptedTxResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11258,25 +11263,26 @@ func (x *QueryGetEncryptedTxResponse) Reset() { } } -func (x *QueryGetEncryptedTxResponse) String() string { +func (x *QueryEncryptedTxResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetEncryptedTxResponse) ProtoMessage() {} +func (*QueryEncryptedTxResponse) ProtoMessage() {} -// Deprecated: Use QueryGetEncryptedTxResponse.ProtoReflect.Descriptor instead. -func (*QueryGetEncryptedTxResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryEncryptedTxResponse.ProtoReflect.Descriptor instead. +func (*QueryEncryptedTxResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{7} } -func (x *QueryGetEncryptedTxResponse) GetEncryptedTx() *EncryptedTx { +func (x *QueryEncryptedTxResponse) GetEncryptedTx() *EncryptedTx { if x != nil { return x.EncryptedTx } return nil } -type QueryAllEncryptedTxRequest struct { +// QueryEncryptedTxAllRequest is request type for the Query/EncryptedTxAll RPC method. +type QueryEncryptedTxAllRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -11284,8 +11290,8 @@ type QueryAllEncryptedTxRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllEncryptedTxRequest) Reset() { - *x = QueryAllEncryptedTxRequest{} +func (x *QueryEncryptedTxAllRequest) Reset() { + *x = QueryEncryptedTxAllRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11293,35 +11299,36 @@ func (x *QueryAllEncryptedTxRequest) Reset() { } } -func (x *QueryAllEncryptedTxRequest) String() string { +func (x *QueryEncryptedTxAllRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllEncryptedTxRequest) ProtoMessage() {} +func (*QueryEncryptedTxAllRequest) ProtoMessage() {} -// Deprecated: Use QueryAllEncryptedTxRequest.ProtoReflect.Descriptor instead. -func (*QueryAllEncryptedTxRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryEncryptedTxAllRequest.ProtoReflect.Descriptor instead. +func (*QueryEncryptedTxAllRequest) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{8} } -func (x *QueryAllEncryptedTxRequest) GetPagination() *v1beta1.PageRequest { +func (x *QueryEncryptedTxAllRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination } return nil } -type QueryAllEncryptedTxResponse struct { +// QueryEncryptedTxAllResponse is response type for the Query/EncryptedTxAll RPC method. +type QueryEncryptedTxAllResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - EncryptedTxArray []*EncryptedTxArray `protobuf:"bytes,1,rep,name=encryptedTxArray,proto3" json:"encryptedTxArray,omitempty"` + EncryptedTxArray []*EncryptedTxArray `protobuf:"bytes,1,rep,name=encrypted_tx_array,json=encryptedTxArray,proto3" json:"encrypted_tx_array,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllEncryptedTxResponse) Reset() { - *x = QueryAllEncryptedTxResponse{} +func (x *QueryEncryptedTxAllResponse) Reset() { + *x = QueryEncryptedTxAllResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11329,41 +11336,42 @@ func (x *QueryAllEncryptedTxResponse) Reset() { } } -func (x *QueryAllEncryptedTxResponse) String() string { +func (x *QueryEncryptedTxAllResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllEncryptedTxResponse) ProtoMessage() {} +func (*QueryEncryptedTxAllResponse) ProtoMessage() {} -// Deprecated: Use QueryAllEncryptedTxResponse.ProtoReflect.Descriptor instead. -func (*QueryAllEncryptedTxResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryEncryptedTxAllResponse.ProtoReflect.Descriptor instead. +func (*QueryEncryptedTxAllResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{9} } -func (x *QueryAllEncryptedTxResponse) GetEncryptedTxArray() []*EncryptedTxArray { +func (x *QueryEncryptedTxAllResponse) GetEncryptedTxArray() []*EncryptedTxArray { if x != nil { return x.EncryptedTxArray } return nil } -func (x *QueryAllEncryptedTxResponse) GetPagination() *v1beta1.PageResponse { +func (x *QueryEncryptedTxAllResponse) GetPagination() *v1beta1.PageResponse { if x != nil { return x.Pagination } return nil } -type QueryAllEncryptedTxFromHeightRequest struct { +// QueryEncryptedTxAllFromHeightRequest is request type for the Query/EncryptedTxAllFromHeight RPC method. +type QueryEncryptedTxAllFromHeightRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - TargetHeight uint64 `protobuf:"varint,1,opt,name=targetHeight,proto3" json:"targetHeight,omitempty"` + TargetHeight uint64 `protobuf:"varint,1,opt,name=target_height,json=targetHeight,proto3" json:"target_height,omitempty"` } -func (x *QueryAllEncryptedTxFromHeightRequest) Reset() { - *x = QueryAllEncryptedTxFromHeightRequest{} +func (x *QueryEncryptedTxAllFromHeightRequest) Reset() { + *x = QueryEncryptedTxAllFromHeightRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11371,34 +11379,35 @@ func (x *QueryAllEncryptedTxFromHeightRequest) Reset() { } } -func (x *QueryAllEncryptedTxFromHeightRequest) String() string { +func (x *QueryEncryptedTxAllFromHeightRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllEncryptedTxFromHeightRequest) ProtoMessage() {} +func (*QueryEncryptedTxAllFromHeightRequest) ProtoMessage() {} -// Deprecated: Use QueryAllEncryptedTxFromHeightRequest.ProtoReflect.Descriptor instead. -func (*QueryAllEncryptedTxFromHeightRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryEncryptedTxAllFromHeightRequest.ProtoReflect.Descriptor instead. +func (*QueryEncryptedTxAllFromHeightRequest) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{10} } -func (x *QueryAllEncryptedTxFromHeightRequest) GetTargetHeight() uint64 { +func (x *QueryEncryptedTxAllFromHeightRequest) GetTargetHeight() uint64 { if x != nil { return x.TargetHeight } return 0 } -type QueryAllEncryptedTxFromHeightResponse struct { +// QueryEncryptedTxAllFromHeightResponse is response type for the Query/EncryptedTxAllFromHeight RPC method. +type QueryEncryptedTxAllFromHeightResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - EncryptedTxArray *EncryptedTxArray `protobuf:"bytes,1,opt,name=encryptedTxArray,proto3" json:"encryptedTxArray,omitempty"` + EncryptedTxArray *EncryptedTxArray `protobuf:"bytes,1,opt,name=encrypted_tx_array,json=encryptedTxArray,proto3" json:"encrypted_tx_array,omitempty"` } -func (x *QueryAllEncryptedTxFromHeightResponse) Reset() { - *x = QueryAllEncryptedTxFromHeightResponse{} +func (x *QueryEncryptedTxAllFromHeightResponse) Reset() { + *x = QueryEncryptedTxAllFromHeightResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11406,24 +11415,25 @@ func (x *QueryAllEncryptedTxFromHeightResponse) Reset() { } } -func (x *QueryAllEncryptedTxFromHeightResponse) String() string { +func (x *QueryEncryptedTxAllFromHeightResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllEncryptedTxFromHeightResponse) ProtoMessage() {} +func (*QueryEncryptedTxAllFromHeightResponse) ProtoMessage() {} -// Deprecated: Use QueryAllEncryptedTxFromHeightResponse.ProtoReflect.Descriptor instead. -func (*QueryAllEncryptedTxFromHeightResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryEncryptedTxAllFromHeightResponse.ProtoReflect.Descriptor instead. +func (*QueryEncryptedTxAllFromHeightResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{11} } -func (x *QueryAllEncryptedTxFromHeightResponse) GetEncryptedTxArray() *EncryptedTxArray { +func (x *QueryEncryptedTxAllFromHeightResponse) GetEncryptedTxArray() *EncryptedTxArray { if x != nil { return x.EncryptedTxArray } return nil } +// QueryLatestHeightRequest is request type for the Query/LatestHeight RPC method. type QueryLatestHeightRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -11450,6 +11460,7 @@ func (*QueryLatestHeightRequest) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{12} } +// QueryLatestHeightResponse is response type for the Query/LatestHeight RPC method. type QueryLatestHeightResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -11485,7 +11496,8 @@ func (x *QueryLatestHeightResponse) GetHeight() uint64 { return 0 } -type QueryGetPepNonceRequest struct { +// QueryPepNonceRequest is request type for the Query/PepNonce RPC method. +type QueryPepNonceRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -11493,8 +11505,8 @@ type QueryGetPepNonceRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` } -func (x *QueryGetPepNonceRequest) Reset() { - *x = QueryGetPepNonceRequest{} +func (x *QueryPepNonceRequest) Reset() { + *x = QueryPepNonceRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11502,34 +11514,35 @@ func (x *QueryGetPepNonceRequest) Reset() { } } -func (x *QueryGetPepNonceRequest) String() string { +func (x *QueryPepNonceRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetPepNonceRequest) ProtoMessage() {} +func (*QueryPepNonceRequest) ProtoMessage() {} -// Deprecated: Use QueryGetPepNonceRequest.ProtoReflect.Descriptor instead. -func (*QueryGetPepNonceRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryPepNonceRequest.ProtoReflect.Descriptor instead. +func (*QueryPepNonceRequest) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{14} } -func (x *QueryGetPepNonceRequest) GetAddress() string { +func (x *QueryPepNonceRequest) GetAddress() string { if x != nil { return x.Address } return "" } -type QueryGetPepNonceResponse struct { +// QueryPepNonceResponse is response type for the Query/PepNonce RPC method. +type QueryPepNonceResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - PepNonce *PepNonce `protobuf:"bytes,1,opt,name=pepNonce,proto3" json:"pepNonce,omitempty"` + PepNonce *PepNonce `protobuf:"bytes,1,opt,name=pep_nonce,json=pepNonce,proto3" json:"pep_nonce,omitempty"` } -func (x *QueryGetPepNonceResponse) Reset() { - *x = QueryGetPepNonceResponse{} +func (x *QueryPepNonceResponse) Reset() { + *x = QueryPepNonceResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11537,25 +11550,26 @@ func (x *QueryGetPepNonceResponse) Reset() { } } -func (x *QueryGetPepNonceResponse) String() string { +func (x *QueryPepNonceResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGetPepNonceResponse) ProtoMessage() {} +func (*QueryPepNonceResponse) ProtoMessage() {} -// Deprecated: Use QueryGetPepNonceResponse.ProtoReflect.Descriptor instead. -func (*QueryGetPepNonceResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryPepNonceResponse.ProtoReflect.Descriptor instead. +func (*QueryPepNonceResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{15} } -func (x *QueryGetPepNonceResponse) GetPepNonce() *PepNonce { +func (x *QueryPepNonceResponse) GetPepNonce() *PepNonce { if x != nil { return x.PepNonce } return nil } -type QueryAllPepNonceRequest struct { +// QueryPepNonceAllRequest is request type for the Query/PepNonceAll RPC method. +type QueryPepNonceAllRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -11563,8 +11577,8 @@ type QueryAllPepNonceRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllPepNonceRequest) Reset() { - *x = QueryAllPepNonceRequest{} +func (x *QueryPepNonceAllRequest) Reset() { + *x = QueryPepNonceAllRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11572,35 +11586,36 @@ func (x *QueryAllPepNonceRequest) Reset() { } } -func (x *QueryAllPepNonceRequest) String() string { +func (x *QueryPepNonceAllRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllPepNonceRequest) ProtoMessage() {} +func (*QueryPepNonceAllRequest) ProtoMessage() {} -// Deprecated: Use QueryAllPepNonceRequest.ProtoReflect.Descriptor instead. -func (*QueryAllPepNonceRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryPepNonceAllRequest.ProtoReflect.Descriptor instead. +func (*QueryPepNonceAllRequest) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{16} } -func (x *QueryAllPepNonceRequest) GetPagination() *v1beta1.PageRequest { +func (x *QueryPepNonceAllRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination } return nil } -type QueryAllPepNonceResponse struct { +// QueryPepNonceAllResponse is response type for the Query/PepNonceAll RPC method. +type QueryPepNonceAllResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - PepNonce []*PepNonce `protobuf:"bytes,1,rep,name=pepNonce,proto3" json:"pepNonce,omitempty"` + PepNonce []*PepNonce `protobuf:"bytes,1,rep,name=pep_nonce,json=pepNonce,proto3" json:"pep_nonce,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAllPepNonceResponse) Reset() { - *x = QueryAllPepNonceResponse{} +func (x *QueryPepNonceAllResponse) Reset() { + *x = QueryPepNonceAllResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11608,31 +11623,32 @@ func (x *QueryAllPepNonceResponse) Reset() { } } -func (x *QueryAllPepNonceResponse) String() string { +func (x *QueryPepNonceAllResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAllPepNonceResponse) ProtoMessage() {} +func (*QueryPepNonceAllResponse) ProtoMessage() {} -// Deprecated: Use QueryAllPepNonceResponse.ProtoReflect.Descriptor instead. -func (*QueryAllPepNonceResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryPepNonceAllResponse.ProtoReflect.Descriptor instead. +func (*QueryPepNonceAllResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{17} } -func (x *QueryAllPepNonceResponse) GetPepNonce() []*PepNonce { +func (x *QueryPepNonceAllResponse) GetPepNonce() []*PepNonce { if x != nil { return x.PepNonce } return nil } -func (x *QueryAllPepNonceResponse) GetPagination() *v1beta1.PageResponse { +func (x *QueryPepNonceAllResponse) GetPagination() *v1beta1.PageResponse { if x != nil { return x.Pagination } return nil } +// QueryPubKeyRequest is request type for the Query/PubKey RPC method. type QueryPubKeyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -11659,13 +11675,14 @@ func (*QueryPubKeyRequest) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{18} } +// QueryPubKeyResponse is response type for the Query/PubKey RPC method. type QueryPubKeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ActivePubKey *common.ActivePublicKey `protobuf:"bytes,1,opt,name=activePubKey,proto3" json:"activePubKey,omitempty"` - QueuedPubKey *common.QueuedPublicKey `protobuf:"bytes,2,opt,name=queuedPubKey,proto3" json:"queuedPubKey,omitempty"` + ActivePubKey *common.ActivePublicKey `protobuf:"bytes,1,opt,name=active_pub_key,json=activePubKey,proto3" json:"active_pub_key,omitempty"` + QueuedPubKey *common.QueuedPublicKey `protobuf:"bytes,2,opt,name=queued_pub_key,json=queuedPubKey,proto3" json:"queued_pub_key,omitempty"` } func (x *QueryPubKeyResponse) Reset() { @@ -11702,16 +11719,17 @@ func (x *QueryPubKeyResponse) GetQueuedPubKey() *common.QueuedPublicKey { return nil } -type QueryShowPrivateKeyshareReqRequest struct { +// QueryPrivateKeyshareReqRequest is request type for the Query/PrivateKeyshareReq RPC method. +type QueryPrivateKeyshareReqRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ReqId string `protobuf:"bytes,1,opt,name=reqId,proto3" json:"reqId,omitempty"` + ReqId string `protobuf:"bytes,1,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } -func (x *QueryShowPrivateKeyshareReqRequest) Reset() { - *x = QueryShowPrivateKeyshareReqRequest{} +func (x *QueryPrivateKeyshareReqRequest) Reset() { + *x = QueryPrivateKeyshareReqRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11719,25 +11737,26 @@ func (x *QueryShowPrivateKeyshareReqRequest) Reset() { } } -func (x *QueryShowPrivateKeyshareReqRequest) String() string { +func (x *QueryPrivateKeyshareReqRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryShowPrivateKeyshareReqRequest) ProtoMessage() {} +func (*QueryPrivateKeyshareReqRequest) ProtoMessage() {} -// Deprecated: Use QueryShowPrivateKeyshareReqRequest.ProtoReflect.Descriptor instead. -func (*QueryShowPrivateKeyshareReqRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryPrivateKeyshareReqRequest.ProtoReflect.Descriptor instead. +func (*QueryPrivateKeyshareReqRequest) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{20} } -func (x *QueryShowPrivateKeyshareReqRequest) GetReqId() string { +func (x *QueryPrivateKeyshareReqRequest) GetReqId() string { if x != nil { return x.ReqId } return "" } -type QueryShowPrivateKeyshareReqResponse struct { +// QueryPrivateKeyshareReqResponse is response type for the Query/PrivateKeyshareReq RPC method. +type QueryPrivateKeyshareReqResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -11748,8 +11767,8 @@ type QueryShowPrivateKeyshareReqResponse struct { EncryptedKeyshares []*common.EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` } -func (x *QueryShowPrivateKeyshareReqResponse) Reset() { - *x = QueryShowPrivateKeyshareReqResponse{} +func (x *QueryPrivateKeyshareReqResponse) Reset() { + *x = QueryPrivateKeyshareReqResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11757,45 +11776,46 @@ func (x *QueryShowPrivateKeyshareReqResponse) Reset() { } } -func (x *QueryShowPrivateKeyshareReqResponse) String() string { +func (x *QueryPrivateKeyshareReqResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryShowPrivateKeyshareReqResponse) ProtoMessage() {} +func (*QueryPrivateKeyshareReqResponse) ProtoMessage() {} -// Deprecated: Use QueryShowPrivateKeyshareReqResponse.ProtoReflect.Descriptor instead. -func (*QueryShowPrivateKeyshareReqResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryPrivateKeyshareReqResponse.ProtoReflect.Descriptor instead. +func (*QueryPrivateKeyshareReqResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{21} } -func (x *QueryShowPrivateKeyshareReqResponse) GetCreator() string { +func (x *QueryPrivateKeyshareReqResponse) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *QueryShowPrivateKeyshareReqResponse) GetReqId() string { +func (x *QueryPrivateKeyshareReqResponse) GetReqId() string { if x != nil { return x.ReqId } return "" } -func (x *QueryShowPrivateKeyshareReqResponse) GetPubkey() string { +func (x *QueryPrivateKeyshareReqResponse) GetPubkey() string { if x != nil { return x.Pubkey } return "" } -func (x *QueryShowPrivateKeyshareReqResponse) GetEncryptedKeyshares() []*common.EncryptedKeyshare { +func (x *QueryPrivateKeyshareReqResponse) GetEncryptedKeyshares() []*common.EncryptedKeyshare { if x != nil { return x.EncryptedKeyshares } return nil } +// QueryDecryptDataRequest is request type for the Query/DecryptData RPC method. type QueryDecryptDataRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -11847,6 +11867,7 @@ func (x *QueryDecryptDataRequest) GetEncryptedData() string { return "" } +// QueryDecryptDataResponse is response type for the Query/DecryptData RPC method. type QueryDecryptDataResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -11900,67 +11921,63 @@ var file_fairyring_pep_query_proto_rawDesc = []byte{ 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x65, 0x70, 0x5f, 0x6e, - 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, - 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, - 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, - 0x4f, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, - 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x22, 0x2d, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, - 0x5a, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x47, 0x65, 0x6e, 0x45, 0x6e, - 0x63, 0x54, 0x78, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x75, - 0x65, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x61, 0x0a, 0x17, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, - 0x01, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x09, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x47, - 0x65, 0x6e, 0x45, 0x6e, 0x63, 0x54, 0x78, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x09, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, - 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x56, 0x0a, 0x1a, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x74, + 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4f, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x30, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0x5d, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x08, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x64, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x41, 0x6c, 0x6c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xab, 0x01, + 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, + 0x65, 0x71, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, + 0x09, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, + 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x09, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x54, 0x0a, 0x17, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x22, 0x61, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x42, 0x0a, 0x0b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, - 0x78, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x54, 0x78, 0x22, 0x64, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, - 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb9, 0x01, 0x0a, 0x1b, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, - 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x10, 0x65, 0x6e, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x18, 0x01, + 0x78, 0x22, 0x5f, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, + 0x0c, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x70, 0x65, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x42, + 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, + 0x54, 0x78, 0x22, 0x64, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, + 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xbb, 0x01, 0x0a, 0x1b, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x65, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x5f, 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x10, 0x65, 0x6e, 0x63, @@ -11969,212 +11986,211 @@ var file_fairyring_pep_query_proto_rawDesc = []byte{ 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4a, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, - 0x6c, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x46, 0x72, 0x6f, - 0x6d, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, - 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x22, 0x7a, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x45, 0x6e, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x46, 0x72, 0x6f, 0x6d, 0x48, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x10, 0x65, - 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, - 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x10, 0x65, 0x6e, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x22, 0x1a, - 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x48, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x33, 0x0a, 0x19, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 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, 0x22, - 0x33, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x50, 0x65, 0x70, 0x4e, 0x6f, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4b, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, + 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x46, 0x72, 0x6f, + 0x6d, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, + 0x0a, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x22, 0x7c, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x46, 0x72, 0x6f, 0x6d, 0x48, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x12, + 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x5f, 0x61, 0x72, 0x72, + 0x61, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x10, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, + 0x79, 0x22, 0x1a, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, + 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x33, 0x0a, + 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x48, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 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, 0x22, 0x30, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x22, 0x55, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, - 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x39, 0x0a, 0x08, 0x70, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, - 0x65, 0x70, 0x2e, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x08, 0x70, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x22, 0x61, 0x0a, 0x17, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9e, - 0x01, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x50, 0x65, 0x70, 0x4e, 0x6f, - 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x70, - 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x50, 0x65, - 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x70, 0x65, - 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, - 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xaf, 0x01, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, - 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, - 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x72, 0x65, 0x73, 0x73, 0x22, 0x53, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, 0x70, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, + 0x09, 0x70, 0x65, 0x70, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, + 0x2e, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x08, 0x70, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x22, 0x61, 0x0a, 0x17, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9f, 0x01, 0x0a, + 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x41, 0x6c, + 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x09, 0x70, 0x65, 0x70, + 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x50, 0x65, 0x70, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x70, 0x65, 0x70, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x14, + 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x22, 0xb3, 0x01, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, + 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0e, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x4d, 0x0a, 0x0e, 0x71, + 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, - 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, 0x63, - 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x4b, 0x0a, 0x0c, 0x71, 0x75, - 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x75, 0x65, - 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x22, 0x3a, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x53, 0x68, 0x6f, 0x77, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, - 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, - 0x71, 0x49, 0x64, 0x22, 0xc4, 0x01, 0x0a, 0x23, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x68, 0x6f, - 0x77, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x52, 0x65, 0x71, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, - 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, - 0x62, 0x6b, 0x65, 0x79, 0x12, 0x54, 0x0a, 0x13, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, - 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, - 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0x7d, 0x0a, 0x17, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x23, 0x0a, - 0x0d, 0x61, 0x67, 0x67, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x22, 0x41, 0x0a, 0x18, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, - 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x32, 0xf7, 0x0d, 0x0a, - 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x6e, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x12, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, - 0x15, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, - 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0xa0, 0x01, 0x0a, 0x0b, 0x45, 0x6e, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x29, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, - 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, - 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, - 0x74, 0x78, 0x2f, 0x7b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x7d, 0x2f, 0x7b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x7d, 0x12, 0x8c, 0x01, 0x0a, 0x0e, 0x45, 0x6e, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x12, 0x29, 0x2e, 0x66, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, 0x75, + 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x22, 0x37, 0x0a, 0x1e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x52, 0x65, 0x71, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, + 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, + 0x71, 0x49, 0x64, 0x22, 0xc0, 0x01, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, + 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, + 0x12, 0x54, 0x0a, 0x13, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0x7d, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, + 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x67, 0x67, + 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0c, 0x61, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x25, + 0x0a, 0x0e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, + 0x64, 0x44, 0x61, 0x74, 0x61, 0x22, 0x41, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x32, 0xee, 0x0d, 0x0a, 0x05, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x12, 0x6e, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, + 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x22, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x12, 0x9b, 0x01, 0x0a, 0x0b, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, + 0x54, 0x78, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, + 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, + 0x64, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x66, 0x61, + 0x6e, 0x73, 0x65, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x12, 0x33, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x65, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x12, 0xb9, 0x01, 0x0a, 0x18, 0x45, 0x6e, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x46, 0x72, 0x6f, 0x6d, 0x48, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x33, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x45, 0x6e, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x46, 0x72, 0x6f, 0x6d, 0x48, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x46, 0x72, - 0x6f, 0x6d, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x5f, 0x74, 0x78, 0x2f, 0x7b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x7d, 0x12, 0x87, 0x01, 0x0a, 0x0c, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x48, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, - 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, + 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x2f, 0x7b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x7d, + 0x12, 0x8c, 0x01, 0x0a, 0x0e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, + 0x41, 0x6c, 0x6c, 0x12, 0x29, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, - 0x12, 0x1c, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, - 0x2f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x87, - 0x01, 0x0a, 0x08, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x26, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x47, 0x65, 0x74, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x74, 0x50, 0x65, 0x70, 0x4e, - 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x65, 0x70, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2f, 0x7b, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x80, 0x01, 0x0a, 0x0b, 0x50, 0x65, 0x70, - 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, - 0x6c, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x1a, 0x12, 0x18, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, - 0x70, 0x2f, 0x70, 0x65, 0x70, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x6f, 0x0a, 0x06, 0x50, - 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, - 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, - 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x12, 0x82, 0x01, 0x0a, - 0x0b, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x12, 0x23, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x24, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, - 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, - 0x20, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x7b, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, - 0x7d, 0x12, 0x82, 0x01, 0x0a, 0x0e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, - 0x71, 0x41, 0x6c, 0x6c, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x4b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, + 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, + 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, + 0x65, 0x70, 0x2f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x12, + 0xba, 0x01, 0x0a, 0x18, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, + 0x6c, 0x6c, 0x46, 0x72, 0x6f, 0x6d, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x33, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0xc3, 0x01, 0x0a, 0x16, 0x53, 0x68, 0x6f, 0x77, 0x50, - 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, - 0x71, 0x12, 0x31, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, - 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x68, 0x6f, 0x77, 0x50, 0x72, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x68, 0x6f, 0x77, 0x50, 0x72, - 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, - 0x12, 0x3a, 0x2f, 0x46, 0x61, 0x69, 0x72, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x73, 0x68, 0x6f, 0x77, 0x5f, - 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x5f, 0x72, 0x65, 0x71, 0x2f, 0x7b, 0x72, 0x65, 0x71, 0x49, 0x64, 0x7d, 0x12, 0xb7, 0x01, 0x0a, - 0x0b, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x26, 0x2e, 0x66, + 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, + 0x46, 0x72, 0x6f, 0x6d, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x34, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, + 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, + 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x46, 0x72, 0x6f, 0x6d, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, + 0x2b, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, + 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x2f, 0x7b, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0x87, 0x01, 0x0a, + 0x0c, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x27, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, + 0x73, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x81, 0x01, 0x0a, 0x08, 0x50, 0x65, 0x70, 0x4e, 0x6f, + 0x6e, 0x63, 0x65, 0x12, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, + 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x65, 0x70, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, + 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x80, 0x01, 0x0a, 0x0b, 0x50, + 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, + 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, + 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, + 0x70, 0x65, 0x70, 0x2f, 0x70, 0x65, 0x70, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x6f, 0x0a, + 0x06, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, + 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x12, 0x88, + 0x01, 0x0a, 0x0b, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x12, 0x26, + 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x2f, 0x7b, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x88, 0x01, 0x0a, 0x0e, 0x4b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x41, 0x6c, 0x6c, 0x12, 0x29, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x57, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x51, 0x12, 0x4f, 0x2f, 0x46, 0x61, 0x69, 0x72, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, - 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x75, - 0x62, 0x6b, 0x65, 0x79, 0x7d, 0x2f, 0x7b, 0x61, 0x67, 0x67, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x7d, 0x2f, 0x7b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, - 0x5f, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x42, 0x94, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x0a, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, - 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, - 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, - 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x41, 0x6c, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x12, 0xb8, 0x01, 0x0a, 0x12, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x12, 0x2d, 0x2e, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x52, 0x65, 0x71, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, + 0x65, 0x71, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x46, 0x61, 0x69, 0x72, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x73, 0x68, 0x6f, + 0x77, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x2f, 0x7b, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x7d, 0x12, + 0xb7, 0x01, 0x0a, 0x0b, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, + 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x57, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x51, 0x12, 0x4f, 0x2f, 0x46, 0x61, 0x69, 0x72, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, + 0x65, 0x70, 0x2f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x2f, + 0x7b, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x7d, 0x2f, 0x7b, 0x61, 0x67, 0x67, 0x72, 0x5f, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x7d, 0x2f, 0x7b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x42, 0x94, 0x01, 0x0a, 0x11, 0x63, 0x6f, + 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, + 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, + 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x50, 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, + 0x50, 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, + 0x50, 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -12193,30 +12209,30 @@ var file_fairyring_pep_query_proto_msgTypes = make([]protoimpl.MessageInfo, 24) var file_fairyring_pep_query_proto_goTypes = []interface{}{ (*QueryParamsRequest)(nil), // 0: fairyring.pep.QueryParamsRequest (*QueryParamsResponse)(nil), // 1: fairyring.pep.QueryParamsResponse - (*QueryKeyshareRequest)(nil), // 2: fairyring.pep.QueryKeyshareRequest - (*QueryKeyshareResponse)(nil), // 3: fairyring.pep.QueryKeyshareResponse - (*QueryAllKeyshareRequest)(nil), // 4: fairyring.pep.QueryAllKeyshareRequest - (*QueryAllKeyshareResponse)(nil), // 5: fairyring.pep.QueryAllKeyshareResponse - (*QueryGetEncryptedTxRequest)(nil), // 6: fairyring.pep.QueryGetEncryptedTxRequest - (*QueryGetEncryptedTxResponse)(nil), // 7: fairyring.pep.QueryGetEncryptedTxResponse - (*QueryAllEncryptedTxRequest)(nil), // 8: fairyring.pep.QueryAllEncryptedTxRequest - (*QueryAllEncryptedTxResponse)(nil), // 9: fairyring.pep.QueryAllEncryptedTxResponse - (*QueryAllEncryptedTxFromHeightRequest)(nil), // 10: fairyring.pep.QueryAllEncryptedTxFromHeightRequest - (*QueryAllEncryptedTxFromHeightResponse)(nil), // 11: fairyring.pep.QueryAllEncryptedTxFromHeightResponse + (*QueryKeyshareReqRequest)(nil), // 2: fairyring.pep.QueryKeyshareReqRequest + (*QueryKeyshareReqResponse)(nil), // 3: fairyring.pep.QueryKeyshareReqResponse + (*QueryKeyshareReqAllRequest)(nil), // 4: fairyring.pep.QueryKeyshareReqAllRequest + (*QueryKeyshareReqAllResponse)(nil), // 5: fairyring.pep.QueryKeyshareReqAllResponse + (*QueryEncryptedTxRequest)(nil), // 6: fairyring.pep.QueryEncryptedTxRequest + (*QueryEncryptedTxResponse)(nil), // 7: fairyring.pep.QueryEncryptedTxResponse + (*QueryEncryptedTxAllRequest)(nil), // 8: fairyring.pep.QueryEncryptedTxAllRequest + (*QueryEncryptedTxAllResponse)(nil), // 9: fairyring.pep.QueryEncryptedTxAllResponse + (*QueryEncryptedTxAllFromHeightRequest)(nil), // 10: fairyring.pep.QueryEncryptedTxAllFromHeightRequest + (*QueryEncryptedTxAllFromHeightResponse)(nil), // 11: fairyring.pep.QueryEncryptedTxAllFromHeightResponse (*QueryLatestHeightRequest)(nil), // 12: fairyring.pep.QueryLatestHeightRequest (*QueryLatestHeightResponse)(nil), // 13: fairyring.pep.QueryLatestHeightResponse - (*QueryGetPepNonceRequest)(nil), // 14: fairyring.pep.QueryGetPepNonceRequest - (*QueryGetPepNonceResponse)(nil), // 15: fairyring.pep.QueryGetPepNonceResponse - (*QueryAllPepNonceRequest)(nil), // 16: fairyring.pep.QueryAllPepNonceRequest - (*QueryAllPepNonceResponse)(nil), // 17: fairyring.pep.QueryAllPepNonceResponse + (*QueryPepNonceRequest)(nil), // 14: fairyring.pep.QueryPepNonceRequest + (*QueryPepNonceResponse)(nil), // 15: fairyring.pep.QueryPepNonceResponse + (*QueryPepNonceAllRequest)(nil), // 16: fairyring.pep.QueryPepNonceAllRequest + (*QueryPepNonceAllResponse)(nil), // 17: fairyring.pep.QueryPepNonceAllResponse (*QueryPubKeyRequest)(nil), // 18: fairyring.pep.QueryPubKeyRequest (*QueryPubKeyResponse)(nil), // 19: fairyring.pep.QueryPubKeyResponse - (*QueryShowPrivateKeyshareReqRequest)(nil), // 20: fairyring.pep.QueryShowPrivateKeyshareReqRequest - (*QueryShowPrivateKeyshareReqResponse)(nil), // 21: fairyring.pep.QueryShowPrivateKeyshareReqResponse + (*QueryPrivateKeyshareReqRequest)(nil), // 20: fairyring.pep.QueryPrivateKeyshareReqRequest + (*QueryPrivateKeyshareReqResponse)(nil), // 21: fairyring.pep.QueryPrivateKeyshareReqResponse (*QueryDecryptDataRequest)(nil), // 22: fairyring.pep.QueryDecryptDataRequest (*QueryDecryptDataResponse)(nil), // 23: fairyring.pep.QueryDecryptDataResponse (*Params)(nil), // 24: fairyring.pep.Params - (*GenEncTxExecutionQueue)(nil), // 25: fairyring.pep.GenEncTxExecutionQueue + (*IdentityExecutionQueue)(nil), // 25: fairyring.pep.IdentityExecutionQueue (*v1beta1.PageRequest)(nil), // 26: cosmos.base.query.v1beta1.PageRequest (*v1beta1.PageResponse)(nil), // 27: cosmos.base.query.v1beta1.PageResponse (*EncryptedTx)(nil), // 28: fairyring.pep.EncryptedTx @@ -12228,45 +12244,45 @@ var file_fairyring_pep_query_proto_goTypes = []interface{}{ } var file_fairyring_pep_query_proto_depIdxs = []int32{ 24, // 0: fairyring.pep.QueryParamsResponse.params:type_name -> fairyring.pep.Params - 25, // 1: fairyring.pep.QueryKeyshareResponse.keyshare:type_name -> fairyring.pep.GenEncTxExecutionQueue - 26, // 2: fairyring.pep.QueryAllKeyshareRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 25, // 3: fairyring.pep.QueryAllKeyshareResponse.keyshares:type_name -> fairyring.pep.GenEncTxExecutionQueue - 27, // 4: fairyring.pep.QueryAllKeyshareResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 28, // 5: fairyring.pep.QueryGetEncryptedTxResponse.encryptedTx:type_name -> fairyring.pep.EncryptedTx - 26, // 6: fairyring.pep.QueryAllEncryptedTxRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 29, // 7: fairyring.pep.QueryAllEncryptedTxResponse.encryptedTxArray:type_name -> fairyring.pep.EncryptedTxArray - 27, // 8: fairyring.pep.QueryAllEncryptedTxResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 29, // 9: fairyring.pep.QueryAllEncryptedTxFromHeightResponse.encryptedTxArray:type_name -> fairyring.pep.EncryptedTxArray - 30, // 10: fairyring.pep.QueryGetPepNonceResponse.pepNonce:type_name -> fairyring.pep.PepNonce - 26, // 11: fairyring.pep.QueryAllPepNonceRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 30, // 12: fairyring.pep.QueryAllPepNonceResponse.pepNonce:type_name -> fairyring.pep.PepNonce - 27, // 13: fairyring.pep.QueryAllPepNonceResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 31, // 14: fairyring.pep.QueryPubKeyResponse.activePubKey:type_name -> fairyring.common.ActivePublicKey - 32, // 15: fairyring.pep.QueryPubKeyResponse.queuedPubKey:type_name -> fairyring.common.QueuedPublicKey - 33, // 16: fairyring.pep.QueryShowPrivateKeyshareReqResponse.encrypted_keyshares:type_name -> fairyring.common.EncryptedKeyshare + 25, // 1: fairyring.pep.QueryKeyshareReqResponse.keyshare:type_name -> fairyring.pep.IdentityExecutionQueue + 26, // 2: fairyring.pep.QueryKeyshareReqAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 25, // 3: fairyring.pep.QueryKeyshareReqAllResponse.keyshares:type_name -> fairyring.pep.IdentityExecutionQueue + 27, // 4: fairyring.pep.QueryKeyshareReqAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 28, // 5: fairyring.pep.QueryEncryptedTxResponse.encrypted_tx:type_name -> fairyring.pep.EncryptedTx + 26, // 6: fairyring.pep.QueryEncryptedTxAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 29, // 7: fairyring.pep.QueryEncryptedTxAllResponse.encrypted_tx_array:type_name -> fairyring.pep.EncryptedTxArray + 27, // 8: fairyring.pep.QueryEncryptedTxAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 29, // 9: fairyring.pep.QueryEncryptedTxAllFromHeightResponse.encrypted_tx_array:type_name -> fairyring.pep.EncryptedTxArray + 30, // 10: fairyring.pep.QueryPepNonceResponse.pep_nonce:type_name -> fairyring.pep.PepNonce + 26, // 11: fairyring.pep.QueryPepNonceAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 30, // 12: fairyring.pep.QueryPepNonceAllResponse.pep_nonce:type_name -> fairyring.pep.PepNonce + 27, // 13: fairyring.pep.QueryPepNonceAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 31, // 14: fairyring.pep.QueryPubKeyResponse.active_pub_key:type_name -> fairyring.common.ActivePublicKey + 32, // 15: fairyring.pep.QueryPubKeyResponse.queued_pub_key:type_name -> fairyring.common.QueuedPublicKey + 33, // 16: fairyring.pep.QueryPrivateKeyshareReqResponse.encrypted_keyshares:type_name -> fairyring.common.EncryptedKeyshare 0, // 17: fairyring.pep.Query.Params:input_type -> fairyring.pep.QueryParamsRequest - 6, // 18: fairyring.pep.Query.EncryptedTx:input_type -> fairyring.pep.QueryGetEncryptedTxRequest - 8, // 19: fairyring.pep.Query.EncryptedTxAll:input_type -> fairyring.pep.QueryAllEncryptedTxRequest - 10, // 20: fairyring.pep.Query.EncryptedTxAllFromHeight:input_type -> fairyring.pep.QueryAllEncryptedTxFromHeightRequest + 6, // 18: fairyring.pep.Query.EncryptedTx:input_type -> fairyring.pep.QueryEncryptedTxRequest + 8, // 19: fairyring.pep.Query.EncryptedTxAll:input_type -> fairyring.pep.QueryEncryptedTxAllRequest + 10, // 20: fairyring.pep.Query.EncryptedTxAllFromHeight:input_type -> fairyring.pep.QueryEncryptedTxAllFromHeightRequest 12, // 21: fairyring.pep.Query.LatestHeight:input_type -> fairyring.pep.QueryLatestHeightRequest - 14, // 22: fairyring.pep.Query.PepNonce:input_type -> fairyring.pep.QueryGetPepNonceRequest - 16, // 23: fairyring.pep.Query.PepNonceAll:input_type -> fairyring.pep.QueryAllPepNonceRequest + 14, // 22: fairyring.pep.Query.PepNonce:input_type -> fairyring.pep.QueryPepNonceRequest + 16, // 23: fairyring.pep.Query.PepNonceAll:input_type -> fairyring.pep.QueryPepNonceAllRequest 18, // 24: fairyring.pep.Query.PubKey:input_type -> fairyring.pep.QueryPubKeyRequest - 2, // 25: fairyring.pep.Query.KeyshareReq:input_type -> fairyring.pep.QueryKeyshareRequest - 4, // 26: fairyring.pep.Query.KeyshareReqAll:input_type -> fairyring.pep.QueryAllKeyshareRequest - 20, // 27: fairyring.pep.Query.ShowPrivateKeyshareReq:input_type -> fairyring.pep.QueryShowPrivateKeyshareReqRequest + 2, // 25: fairyring.pep.Query.KeyshareReq:input_type -> fairyring.pep.QueryKeyshareReqRequest + 4, // 26: fairyring.pep.Query.KeyshareReqAll:input_type -> fairyring.pep.QueryKeyshareReqAllRequest + 20, // 27: fairyring.pep.Query.PrivateKeyshareReq:input_type -> fairyring.pep.QueryPrivateKeyshareReqRequest 22, // 28: fairyring.pep.Query.DecryptData:input_type -> fairyring.pep.QueryDecryptDataRequest 1, // 29: fairyring.pep.Query.Params:output_type -> fairyring.pep.QueryParamsResponse - 7, // 30: fairyring.pep.Query.EncryptedTx:output_type -> fairyring.pep.QueryGetEncryptedTxResponse - 9, // 31: fairyring.pep.Query.EncryptedTxAll:output_type -> fairyring.pep.QueryAllEncryptedTxResponse - 11, // 32: fairyring.pep.Query.EncryptedTxAllFromHeight:output_type -> fairyring.pep.QueryAllEncryptedTxFromHeightResponse + 7, // 30: fairyring.pep.Query.EncryptedTx:output_type -> fairyring.pep.QueryEncryptedTxResponse + 9, // 31: fairyring.pep.Query.EncryptedTxAll:output_type -> fairyring.pep.QueryEncryptedTxAllResponse + 11, // 32: fairyring.pep.Query.EncryptedTxAllFromHeight:output_type -> fairyring.pep.QueryEncryptedTxAllFromHeightResponse 13, // 33: fairyring.pep.Query.LatestHeight:output_type -> fairyring.pep.QueryLatestHeightResponse - 15, // 34: fairyring.pep.Query.PepNonce:output_type -> fairyring.pep.QueryGetPepNonceResponse - 17, // 35: fairyring.pep.Query.PepNonceAll:output_type -> fairyring.pep.QueryAllPepNonceResponse + 15, // 34: fairyring.pep.Query.PepNonce:output_type -> fairyring.pep.QueryPepNonceResponse + 17, // 35: fairyring.pep.Query.PepNonceAll:output_type -> fairyring.pep.QueryPepNonceAllResponse 19, // 36: fairyring.pep.Query.PubKey:output_type -> fairyring.pep.QueryPubKeyResponse - 3, // 37: fairyring.pep.Query.KeyshareReq:output_type -> fairyring.pep.QueryKeyshareResponse - 5, // 38: fairyring.pep.Query.KeyshareReqAll:output_type -> fairyring.pep.QueryAllKeyshareResponse - 21, // 39: fairyring.pep.Query.ShowPrivateKeyshareReq:output_type -> fairyring.pep.QueryShowPrivateKeyshareReqResponse + 3, // 37: fairyring.pep.Query.KeyshareReq:output_type -> fairyring.pep.QueryKeyshareReqResponse + 5, // 38: fairyring.pep.Query.KeyshareReqAll:output_type -> fairyring.pep.QueryKeyshareReqAllResponse + 21, // 39: fairyring.pep.Query.PrivateKeyshareReq:output_type -> fairyring.pep.QueryPrivateKeyshareReqResponse 23, // 40: fairyring.pep.Query.DecryptData:output_type -> fairyring.pep.QueryDecryptDataResponse 29, // [29:41] is the sub-list for method output_type 17, // [17:29] is the sub-list for method input_type @@ -12283,7 +12299,6 @@ func file_fairyring_pep_query_proto_init() { file_fairyring_pep_params_proto_init() file_fairyring_pep_encrypted_tx_proto_init() file_fairyring_pep_pep_nonce_proto_init() - file_fairyring_pep_aggregated_key_share_proto_init() if !protoimpl.UnsafeEnabled { file_fairyring_pep_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryParamsRequest); i { @@ -12310,7 +12325,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryKeyshareRequest); i { + switch v := v.(*QueryKeyshareReqRequest); i { case 0: return &v.state case 1: @@ -12322,7 +12337,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryKeyshareResponse); i { + switch v := v.(*QueryKeyshareReqResponse); i { case 0: return &v.state case 1: @@ -12334,7 +12349,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllKeyshareRequest); i { + switch v := v.(*QueryKeyshareReqAllRequest); i { case 0: return &v.state case 1: @@ -12346,7 +12361,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllKeyshareResponse); i { + switch v := v.(*QueryKeyshareReqAllResponse); i { case 0: return &v.state case 1: @@ -12358,7 +12373,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetEncryptedTxRequest); i { + switch v := v.(*QueryEncryptedTxRequest); i { case 0: return &v.state case 1: @@ -12370,7 +12385,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetEncryptedTxResponse); i { + switch v := v.(*QueryEncryptedTxResponse); i { case 0: return &v.state case 1: @@ -12382,7 +12397,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllEncryptedTxRequest); i { + switch v := v.(*QueryEncryptedTxAllRequest); i { case 0: return &v.state case 1: @@ -12394,7 +12409,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllEncryptedTxResponse); i { + switch v := v.(*QueryEncryptedTxAllResponse); i { case 0: return &v.state case 1: @@ -12406,7 +12421,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllEncryptedTxFromHeightRequest); i { + switch v := v.(*QueryEncryptedTxAllFromHeightRequest); i { case 0: return &v.state case 1: @@ -12418,7 +12433,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllEncryptedTxFromHeightResponse); i { + switch v := v.(*QueryEncryptedTxAllFromHeightResponse); i { case 0: return &v.state case 1: @@ -12454,7 +12469,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetPepNonceRequest); i { + switch v := v.(*QueryPepNonceRequest); i { case 0: return &v.state case 1: @@ -12466,7 +12481,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGetPepNonceResponse); i { + switch v := v.(*QueryPepNonceResponse); i { case 0: return &v.state case 1: @@ -12478,7 +12493,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllPepNonceRequest); i { + switch v := v.(*QueryPepNonceAllRequest); i { case 0: return &v.state case 1: @@ -12490,7 +12505,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAllPepNonceResponse); i { + switch v := v.(*QueryPepNonceAllResponse); i { case 0: return &v.state case 1: @@ -12526,7 +12541,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryShowPrivateKeyshareReqRequest); i { + switch v := v.(*QueryPrivateKeyshareReqRequest); i { case 0: return &v.state case 1: @@ -12538,7 +12553,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryShowPrivateKeyshareReqResponse); i { + switch v := v.(*QueryPrivateKeyshareReqResponse); i { case 0: return &v.state case 1: diff --git a/api/fairyring/pep/query_grpc.pb.go b/api/fairyring/pep/query_grpc.pb.go index 46318d75..2acd466b 100644 --- a/api/fairyring/pep/query_grpc.pb.go +++ b/api/fairyring/pep/query_grpc.pb.go @@ -29,7 +29,7 @@ const ( Query_PubKey_FullMethodName = "/fairyring.pep.Query/PubKey" Query_KeyshareReq_FullMethodName = "/fairyring.pep.Query/KeyshareReq" Query_KeyshareReqAll_FullMethodName = "/fairyring.pep.Query/KeyshareReqAll" - Query_ShowPrivateKeyshareReq_FullMethodName = "/fairyring.pep.Query/ShowPrivateKeyshareReq" + Query_PrivateKeyshareReq_FullMethodName = "/fairyring.pep.Query/PrivateKeyshareReq" Query_DecryptData_FullMethodName = "/fairyring.pep.Query/DecryptData" ) @@ -40,23 +40,25 @@ type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a EncryptedTx by index. - EncryptedTx(ctx context.Context, in *QueryGetEncryptedTxRequest, opts ...grpc.CallOption) (*QueryGetEncryptedTxResponse, error) + EncryptedTx(ctx context.Context, in *QueryEncryptedTxRequest, opts ...grpc.CallOption) (*QueryEncryptedTxResponse, error) // Queries a list of EncryptedTx items. - EncryptedTxAll(ctx context.Context, in *QueryAllEncryptedTxRequest, opts ...grpc.CallOption) (*QueryAllEncryptedTxResponse, error) + EncryptedTxAll(ctx context.Context, in *QueryEncryptedTxAllRequest, opts ...grpc.CallOption) (*QueryEncryptedTxAllResponse, error) // Queries a list of EncryptedTx items. - EncryptedTxAllFromHeight(ctx context.Context, in *QueryAllEncryptedTxFromHeightRequest, opts ...grpc.CallOption) (*QueryAllEncryptedTxFromHeightResponse, error) + EncryptedTxAllFromHeight(ctx context.Context, in *QueryEncryptedTxAllFromHeightRequest, opts ...grpc.CallOption) (*QueryEncryptedTxAllFromHeightResponse, error) // Queries a list of LatestHeight items. LatestHeight(ctx context.Context, in *QueryLatestHeightRequest, opts ...grpc.CallOption) (*QueryLatestHeightResponse, error) // Queries a PepNonce by index. - PepNonce(ctx context.Context, in *QueryGetPepNonceRequest, opts ...grpc.CallOption) (*QueryGetPepNonceResponse, error) + PepNonce(ctx context.Context, in *QueryPepNonceRequest, opts ...grpc.CallOption) (*QueryPepNonceResponse, error) // Queries a list of PepNonce items. - PepNonceAll(ctx context.Context, in *QueryAllPepNonceRequest, opts ...grpc.CallOption) (*QueryAllPepNonceResponse, error) + PepNonceAll(ctx context.Context, in *QueryPepNonceAllRequest, opts ...grpc.CallOption) (*QueryPepNonceAllResponse, error) // Queries the public keys PubKey(ctx context.Context, in *QueryPubKeyRequest, opts ...grpc.CallOption) (*QueryPubKeyResponse, error) - KeyshareReq(ctx context.Context, in *QueryKeyshareRequest, opts ...grpc.CallOption) (*QueryKeyshareResponse, error) - KeyshareReqAll(ctx context.Context, in *QueryAllKeyshareRequest, opts ...grpc.CallOption) (*QueryAllKeyshareResponse, error) + // Queries a Keyshare request by identity + KeyshareReq(ctx context.Context, in *QueryKeyshareReqRequest, opts ...grpc.CallOption) (*QueryKeyshareReqResponse, error) + // queries a list of keyshare requests + KeyshareReqAll(ctx context.Context, in *QueryKeyshareReqAllRequest, opts ...grpc.CallOption) (*QueryKeyshareReqAllResponse, error) // Queries a list of ShowPrivateKeyshareReq items. - ShowPrivateKeyshareReq(ctx context.Context, in *QueryShowPrivateKeyshareReqRequest, opts ...grpc.CallOption) (*QueryShowPrivateKeyshareReqResponse, error) + PrivateKeyshareReq(ctx context.Context, in *QueryPrivateKeyshareReqRequest, opts ...grpc.CallOption) (*QueryPrivateKeyshareReqResponse, error) // Queries a list of DecryptData items. DecryptData(ctx context.Context, in *QueryDecryptDataRequest, opts ...grpc.CallOption) (*QueryDecryptDataResponse, error) } @@ -78,8 +80,8 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . return out, nil } -func (c *queryClient) EncryptedTx(ctx context.Context, in *QueryGetEncryptedTxRequest, opts ...grpc.CallOption) (*QueryGetEncryptedTxResponse, error) { - out := new(QueryGetEncryptedTxResponse) +func (c *queryClient) EncryptedTx(ctx context.Context, in *QueryEncryptedTxRequest, opts ...grpc.CallOption) (*QueryEncryptedTxResponse, error) { + out := new(QueryEncryptedTxResponse) err := c.cc.Invoke(ctx, Query_EncryptedTx_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -87,8 +89,8 @@ func (c *queryClient) EncryptedTx(ctx context.Context, in *QueryGetEncryptedTxRe return out, nil } -func (c *queryClient) EncryptedTxAll(ctx context.Context, in *QueryAllEncryptedTxRequest, opts ...grpc.CallOption) (*QueryAllEncryptedTxResponse, error) { - out := new(QueryAllEncryptedTxResponse) +func (c *queryClient) EncryptedTxAll(ctx context.Context, in *QueryEncryptedTxAllRequest, opts ...grpc.CallOption) (*QueryEncryptedTxAllResponse, error) { + out := new(QueryEncryptedTxAllResponse) err := c.cc.Invoke(ctx, Query_EncryptedTxAll_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -96,8 +98,8 @@ func (c *queryClient) EncryptedTxAll(ctx context.Context, in *QueryAllEncryptedT return out, nil } -func (c *queryClient) EncryptedTxAllFromHeight(ctx context.Context, in *QueryAllEncryptedTxFromHeightRequest, opts ...grpc.CallOption) (*QueryAllEncryptedTxFromHeightResponse, error) { - out := new(QueryAllEncryptedTxFromHeightResponse) +func (c *queryClient) EncryptedTxAllFromHeight(ctx context.Context, in *QueryEncryptedTxAllFromHeightRequest, opts ...grpc.CallOption) (*QueryEncryptedTxAllFromHeightResponse, error) { + out := new(QueryEncryptedTxAllFromHeightResponse) err := c.cc.Invoke(ctx, Query_EncryptedTxAllFromHeight_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -114,8 +116,8 @@ func (c *queryClient) LatestHeight(ctx context.Context, in *QueryLatestHeightReq return out, nil } -func (c *queryClient) PepNonce(ctx context.Context, in *QueryGetPepNonceRequest, opts ...grpc.CallOption) (*QueryGetPepNonceResponse, error) { - out := new(QueryGetPepNonceResponse) +func (c *queryClient) PepNonce(ctx context.Context, in *QueryPepNonceRequest, opts ...grpc.CallOption) (*QueryPepNonceResponse, error) { + out := new(QueryPepNonceResponse) err := c.cc.Invoke(ctx, Query_PepNonce_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -123,8 +125,8 @@ func (c *queryClient) PepNonce(ctx context.Context, in *QueryGetPepNonceRequest, return out, nil } -func (c *queryClient) PepNonceAll(ctx context.Context, in *QueryAllPepNonceRequest, opts ...grpc.CallOption) (*QueryAllPepNonceResponse, error) { - out := new(QueryAllPepNonceResponse) +func (c *queryClient) PepNonceAll(ctx context.Context, in *QueryPepNonceAllRequest, opts ...grpc.CallOption) (*QueryPepNonceAllResponse, error) { + out := new(QueryPepNonceAllResponse) err := c.cc.Invoke(ctx, Query_PepNonceAll_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -141,8 +143,8 @@ func (c *queryClient) PubKey(ctx context.Context, in *QueryPubKeyRequest, opts . return out, nil } -func (c *queryClient) KeyshareReq(ctx context.Context, in *QueryKeyshareRequest, opts ...grpc.CallOption) (*QueryKeyshareResponse, error) { - out := new(QueryKeyshareResponse) +func (c *queryClient) KeyshareReq(ctx context.Context, in *QueryKeyshareReqRequest, opts ...grpc.CallOption) (*QueryKeyshareReqResponse, error) { + out := new(QueryKeyshareReqResponse) err := c.cc.Invoke(ctx, Query_KeyshareReq_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -150,8 +152,8 @@ func (c *queryClient) KeyshareReq(ctx context.Context, in *QueryKeyshareRequest, return out, nil } -func (c *queryClient) KeyshareReqAll(ctx context.Context, in *QueryAllKeyshareRequest, opts ...grpc.CallOption) (*QueryAllKeyshareResponse, error) { - out := new(QueryAllKeyshareResponse) +func (c *queryClient) KeyshareReqAll(ctx context.Context, in *QueryKeyshareReqAllRequest, opts ...grpc.CallOption) (*QueryKeyshareReqAllResponse, error) { + out := new(QueryKeyshareReqAllResponse) err := c.cc.Invoke(ctx, Query_KeyshareReqAll_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -159,9 +161,9 @@ func (c *queryClient) KeyshareReqAll(ctx context.Context, in *QueryAllKeyshareRe return out, nil } -func (c *queryClient) ShowPrivateKeyshareReq(ctx context.Context, in *QueryShowPrivateKeyshareReqRequest, opts ...grpc.CallOption) (*QueryShowPrivateKeyshareReqResponse, error) { - out := new(QueryShowPrivateKeyshareReqResponse) - err := c.cc.Invoke(ctx, Query_ShowPrivateKeyshareReq_FullMethodName, in, out, opts...) +func (c *queryClient) PrivateKeyshareReq(ctx context.Context, in *QueryPrivateKeyshareReqRequest, opts ...grpc.CallOption) (*QueryPrivateKeyshareReqResponse, error) { + out := new(QueryPrivateKeyshareReqResponse) + err := c.cc.Invoke(ctx, Query_PrivateKeyshareReq_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -184,23 +186,25 @@ type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a EncryptedTx by index. - EncryptedTx(context.Context, *QueryGetEncryptedTxRequest) (*QueryGetEncryptedTxResponse, error) + EncryptedTx(context.Context, *QueryEncryptedTxRequest) (*QueryEncryptedTxResponse, error) // Queries a list of EncryptedTx items. - EncryptedTxAll(context.Context, *QueryAllEncryptedTxRequest) (*QueryAllEncryptedTxResponse, error) + EncryptedTxAll(context.Context, *QueryEncryptedTxAllRequest) (*QueryEncryptedTxAllResponse, error) // Queries a list of EncryptedTx items. - EncryptedTxAllFromHeight(context.Context, *QueryAllEncryptedTxFromHeightRequest) (*QueryAllEncryptedTxFromHeightResponse, error) + EncryptedTxAllFromHeight(context.Context, *QueryEncryptedTxAllFromHeightRequest) (*QueryEncryptedTxAllFromHeightResponse, error) // Queries a list of LatestHeight items. LatestHeight(context.Context, *QueryLatestHeightRequest) (*QueryLatestHeightResponse, error) // Queries a PepNonce by index. - PepNonce(context.Context, *QueryGetPepNonceRequest) (*QueryGetPepNonceResponse, error) + PepNonce(context.Context, *QueryPepNonceRequest) (*QueryPepNonceResponse, error) // Queries a list of PepNonce items. - PepNonceAll(context.Context, *QueryAllPepNonceRequest) (*QueryAllPepNonceResponse, error) + PepNonceAll(context.Context, *QueryPepNonceAllRequest) (*QueryPepNonceAllResponse, error) // Queries the public keys PubKey(context.Context, *QueryPubKeyRequest) (*QueryPubKeyResponse, error) - KeyshareReq(context.Context, *QueryKeyshareRequest) (*QueryKeyshareResponse, error) - KeyshareReqAll(context.Context, *QueryAllKeyshareRequest) (*QueryAllKeyshareResponse, error) + // Queries a Keyshare request by identity + KeyshareReq(context.Context, *QueryKeyshareReqRequest) (*QueryKeyshareReqResponse, error) + // queries a list of keyshare requests + KeyshareReqAll(context.Context, *QueryKeyshareReqAllRequest) (*QueryKeyshareReqAllResponse, error) // Queries a list of ShowPrivateKeyshareReq items. - ShowPrivateKeyshareReq(context.Context, *QueryShowPrivateKeyshareReqRequest) (*QueryShowPrivateKeyshareReqResponse, error) + PrivateKeyshareReq(context.Context, *QueryPrivateKeyshareReqRequest) (*QueryPrivateKeyshareReqResponse, error) // Queries a list of DecryptData items. DecryptData(context.Context, *QueryDecryptDataRequest) (*QueryDecryptDataResponse, error) mustEmbedUnimplementedQueryServer() @@ -213,35 +217,35 @@ type UnimplementedQueryServer struct { func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") } -func (UnimplementedQueryServer) EncryptedTx(context.Context, *QueryGetEncryptedTxRequest) (*QueryGetEncryptedTxResponse, error) { +func (UnimplementedQueryServer) EncryptedTx(context.Context, *QueryEncryptedTxRequest) (*QueryEncryptedTxResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method EncryptedTx not implemented") } -func (UnimplementedQueryServer) EncryptedTxAll(context.Context, *QueryAllEncryptedTxRequest) (*QueryAllEncryptedTxResponse, error) { +func (UnimplementedQueryServer) EncryptedTxAll(context.Context, *QueryEncryptedTxAllRequest) (*QueryEncryptedTxAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method EncryptedTxAll not implemented") } -func (UnimplementedQueryServer) EncryptedTxAllFromHeight(context.Context, *QueryAllEncryptedTxFromHeightRequest) (*QueryAllEncryptedTxFromHeightResponse, error) { +func (UnimplementedQueryServer) EncryptedTxAllFromHeight(context.Context, *QueryEncryptedTxAllFromHeightRequest) (*QueryEncryptedTxAllFromHeightResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method EncryptedTxAllFromHeight not implemented") } func (UnimplementedQueryServer) LatestHeight(context.Context, *QueryLatestHeightRequest) (*QueryLatestHeightResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LatestHeight not implemented") } -func (UnimplementedQueryServer) PepNonce(context.Context, *QueryGetPepNonceRequest) (*QueryGetPepNonceResponse, error) { +func (UnimplementedQueryServer) PepNonce(context.Context, *QueryPepNonceRequest) (*QueryPepNonceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PepNonce not implemented") } -func (UnimplementedQueryServer) PepNonceAll(context.Context, *QueryAllPepNonceRequest) (*QueryAllPepNonceResponse, error) { +func (UnimplementedQueryServer) PepNonceAll(context.Context, *QueryPepNonceAllRequest) (*QueryPepNonceAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PepNonceAll not implemented") } func (UnimplementedQueryServer) PubKey(context.Context, *QueryPubKeyRequest) (*QueryPubKeyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PubKey not implemented") } -func (UnimplementedQueryServer) KeyshareReq(context.Context, *QueryKeyshareRequest) (*QueryKeyshareResponse, error) { +func (UnimplementedQueryServer) KeyshareReq(context.Context, *QueryKeyshareReqRequest) (*QueryKeyshareReqResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KeyshareReq not implemented") } -func (UnimplementedQueryServer) KeyshareReqAll(context.Context, *QueryAllKeyshareRequest) (*QueryAllKeyshareResponse, error) { +func (UnimplementedQueryServer) KeyshareReqAll(context.Context, *QueryKeyshareReqAllRequest) (*QueryKeyshareReqAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KeyshareReqAll not implemented") } -func (UnimplementedQueryServer) ShowPrivateKeyshareReq(context.Context, *QueryShowPrivateKeyshareReqRequest) (*QueryShowPrivateKeyshareReqResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ShowPrivateKeyshareReq not implemented") +func (UnimplementedQueryServer) PrivateKeyshareReq(context.Context, *QueryPrivateKeyshareReqRequest) (*QueryPrivateKeyshareReqResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PrivateKeyshareReq not implemented") } func (UnimplementedQueryServer) DecryptData(context.Context, *QueryDecryptDataRequest) (*QueryDecryptDataResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DecryptData not implemented") @@ -278,7 +282,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } func _Query_EncryptedTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetEncryptedTxRequest) + in := new(QueryEncryptedTxRequest) if err := dec(in); err != nil { return nil, err } @@ -290,13 +294,13 @@ func _Query_EncryptedTx_Handler(srv interface{}, ctx context.Context, dec func(i FullMethod: Query_EncryptedTx_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EncryptedTx(ctx, req.(*QueryGetEncryptedTxRequest)) + return srv.(QueryServer).EncryptedTx(ctx, req.(*QueryEncryptedTxRequest)) } return interceptor(ctx, in, info, handler) } func _Query_EncryptedTxAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllEncryptedTxRequest) + in := new(QueryEncryptedTxAllRequest) if err := dec(in); err != nil { return nil, err } @@ -308,13 +312,13 @@ func _Query_EncryptedTxAll_Handler(srv interface{}, ctx context.Context, dec fun FullMethod: Query_EncryptedTxAll_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EncryptedTxAll(ctx, req.(*QueryAllEncryptedTxRequest)) + return srv.(QueryServer).EncryptedTxAll(ctx, req.(*QueryEncryptedTxAllRequest)) } return interceptor(ctx, in, info, handler) } func _Query_EncryptedTxAllFromHeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllEncryptedTxFromHeightRequest) + in := new(QueryEncryptedTxAllFromHeightRequest) if err := dec(in); err != nil { return nil, err } @@ -326,7 +330,7 @@ func _Query_EncryptedTxAllFromHeight_Handler(srv interface{}, ctx context.Contex FullMethod: Query_EncryptedTxAllFromHeight_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EncryptedTxAllFromHeight(ctx, req.(*QueryAllEncryptedTxFromHeightRequest)) + return srv.(QueryServer).EncryptedTxAllFromHeight(ctx, req.(*QueryEncryptedTxAllFromHeightRequest)) } return interceptor(ctx, in, info, handler) } @@ -350,7 +354,7 @@ func _Query_LatestHeight_Handler(srv interface{}, ctx context.Context, dec func( } func _Query_PepNonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetPepNonceRequest) + in := new(QueryPepNonceRequest) if err := dec(in); err != nil { return nil, err } @@ -362,13 +366,13 @@ func _Query_PepNonce_Handler(srv interface{}, ctx context.Context, dec func(inte FullMethod: Query_PepNonce_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PepNonce(ctx, req.(*QueryGetPepNonceRequest)) + return srv.(QueryServer).PepNonce(ctx, req.(*QueryPepNonceRequest)) } return interceptor(ctx, in, info, handler) } func _Query_PepNonceAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllPepNonceRequest) + in := new(QueryPepNonceAllRequest) if err := dec(in); err != nil { return nil, err } @@ -380,7 +384,7 @@ func _Query_PepNonceAll_Handler(srv interface{}, ctx context.Context, dec func(i FullMethod: Query_PepNonceAll_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PepNonceAll(ctx, req.(*QueryAllPepNonceRequest)) + return srv.(QueryServer).PepNonceAll(ctx, req.(*QueryPepNonceAllRequest)) } return interceptor(ctx, in, info, handler) } @@ -404,7 +408,7 @@ func _Query_PubKey_Handler(srv interface{}, ctx context.Context, dec func(interf } func _Query_KeyshareReq_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryKeyshareRequest) + in := new(QueryKeyshareReqRequest) if err := dec(in); err != nil { return nil, err } @@ -416,13 +420,13 @@ func _Query_KeyshareReq_Handler(srv interface{}, ctx context.Context, dec func(i FullMethod: Query_KeyshareReq_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).KeyshareReq(ctx, req.(*QueryKeyshareRequest)) + return srv.(QueryServer).KeyshareReq(ctx, req.(*QueryKeyshareReqRequest)) } return interceptor(ctx, in, info, handler) } func _Query_KeyshareReqAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllKeyshareRequest) + in := new(QueryKeyshareReqAllRequest) if err := dec(in); err != nil { return nil, err } @@ -434,25 +438,25 @@ func _Query_KeyshareReqAll_Handler(srv interface{}, ctx context.Context, dec fun FullMethod: Query_KeyshareReqAll_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).KeyshareReqAll(ctx, req.(*QueryAllKeyshareRequest)) + return srv.(QueryServer).KeyshareReqAll(ctx, req.(*QueryKeyshareReqAllRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_ShowPrivateKeyshareReq_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryShowPrivateKeyshareReqRequest) +func _Query_PrivateKeyshareReq_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPrivateKeyshareReqRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).ShowPrivateKeyshareReq(ctx, in) + return srv.(QueryServer).PrivateKeyshareReq(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_ShowPrivateKeyshareReq_FullMethodName, + FullMethod: Query_PrivateKeyshareReq_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).ShowPrivateKeyshareReq(ctx, req.(*QueryShowPrivateKeyshareReqRequest)) + return srv.(QueryServer).PrivateKeyshareReq(ctx, req.(*QueryPrivateKeyshareReqRequest)) } return interceptor(ctx, in, info, handler) } @@ -523,8 +527,8 @@ var Query_ServiceDesc = grpc.ServiceDesc{ Handler: _Query_KeyshareReqAll_Handler, }, { - MethodName: "ShowPrivateKeyshareReq", - Handler: _Query_ShowPrivateKeyshareReq_Handler, + MethodName: "PrivateKeyshareReq", + Handler: _Query_PrivateKeyshareReq_Handler, }, { MethodName: "DecryptData", diff --git a/api/fairyring/pep/request_id.pulsar.go b/api/fairyring/pep/request_id.pulsar.go index ecc62c54..077b3437 100644 --- a/api/fairyring/pep/request_id.pulsar.go +++ b/api/fairyring/pep/request_id.pulsar.go @@ -17,14 +17,14 @@ import ( var ( md_RequestId protoreflect.MessageDescriptor fd_RequestId_creator protoreflect.FieldDescriptor - fd_RequestId_reqId protoreflect.FieldDescriptor + fd_RequestId_req_id protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_request_id_proto_init() md_RequestId = File_fairyring_pep_request_id_proto.Messages().ByName("RequestId") fd_RequestId_creator = md_RequestId.Fields().ByName("creator") - fd_RequestId_reqId = md_RequestId.Fields().ByName("reqId") + fd_RequestId_req_id = md_RequestId.Fields().ByName("req_id") } var _ protoreflect.Message = (*fastReflection_RequestId)(nil) @@ -100,7 +100,7 @@ func (x *fastReflection_RequestId) Range(f func(protoreflect.FieldDescriptor, pr } if x.ReqId != "" { value := protoreflect.ValueOfString(x.ReqId) - if !f(fd_RequestId_reqId, value) { + if !f(fd_RequestId_req_id, value) { return } } @@ -121,7 +121,7 @@ func (x *fastReflection_RequestId) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "fairyring.pep.RequestId.creator": return x.Creator != "" - case "fairyring.pep.RequestId.reqId": + case "fairyring.pep.RequestId.req_id": return x.ReqId != "" default: if fd.IsExtension() { @@ -141,7 +141,7 @@ func (x *fastReflection_RequestId) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "fairyring.pep.RequestId.creator": x.Creator = "" - case "fairyring.pep.RequestId.reqId": + case "fairyring.pep.RequestId.req_id": x.ReqId = "" default: if fd.IsExtension() { @@ -162,7 +162,7 @@ func (x *fastReflection_RequestId) Get(descriptor protoreflect.FieldDescriptor) case "fairyring.pep.RequestId.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.pep.RequestId.reqId": + case "fairyring.pep.RequestId.req_id": value := x.ReqId return protoreflect.ValueOfString(value) default: @@ -187,7 +187,7 @@ func (x *fastReflection_RequestId) Set(fd protoreflect.FieldDescriptor, value pr switch fd.FullName() { case "fairyring.pep.RequestId.creator": x.Creator = value.Interface().(string) - case "fairyring.pep.RequestId.reqId": + case "fairyring.pep.RequestId.req_id": x.ReqId = value.Interface().(string) default: if fd.IsExtension() { @@ -211,8 +211,8 @@ func (x *fastReflection_RequestId) Mutable(fd protoreflect.FieldDescriptor) prot switch fd.FullName() { case "fairyring.pep.RequestId.creator": panic(fmt.Errorf("field creator of message fairyring.pep.RequestId is not mutable")) - case "fairyring.pep.RequestId.reqId": - panic(fmt.Errorf("field reqId of message fairyring.pep.RequestId is not mutable")) + case "fairyring.pep.RequestId.req_id": + panic(fmt.Errorf("field req_id of message fairyring.pep.RequestId is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.RequestId")) @@ -228,7 +228,7 @@ func (x *fastReflection_RequestId) NewField(fd protoreflect.FieldDescriptor) pro switch fd.FullName() { case "fairyring.pep.RequestId.creator": return protoreflect.ValueOfString("") - case "fairyring.pep.RequestId.reqId": + case "fairyring.pep.RequestId.req_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { @@ -2787,13 +2787,15 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// RequestId defines the structure for storing request ids +// that have already been registered to prevent overlap type RequestId struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - ReqId string `protobuf:"bytes,2,opt,name=reqId,proto3" json:"reqId,omitempty"` + ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } func (x *RequestId) Reset() { @@ -2830,6 +2832,8 @@ func (x *RequestId) GetReqId() string { return "" } +// PrivateRequest defines the structure for storing private +// keyshare requests along with the unaggregated encrypted keyshares type PrivateRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2889,6 +2893,9 @@ func (x *PrivateRequest) GetEncryptedKeyshares() []*common.EncryptedKeyshare { return nil } +// ContractDetails defines the structure to store the details of a +// contract that has been registered to execute automatically when +// the identity associated with it has an aggregate keyshare available type ContractDetails struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2932,6 +2939,8 @@ func (x *ContractDetails) GetContractAddress() string { return "" } +// RegisteredContract defines the structure to store the list of +// contracts that have been registered with a particular identity type RegisteredContract struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2975,6 +2984,7 @@ func (x *RegisteredContract) GetContracts() []*ContractDetails { return nil } +// ExecuteContractMsg defines the structure to callback registered contracts type ExecuteContractMsg struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3035,52 +3045,52 @@ var file_fairyring_pep_request_id_proto_rawDesc = []byte{ 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3b, 0x0a, 0x09, 0x52, 0x65, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3c, 0x0a, 0x09, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0xaf, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x69, 0x76, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, - 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, - 0x6b, 0x65, 0x79, 0x12, 0x54, 0x0a, 0x13, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, - 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, - 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0x5a, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x1c, 0x0a, 0x09, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x6e, 0x0a, 0x12, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, - 0x72, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x3c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x73, 0x22, 0x6d, 0x0a, 0x12, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, - 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x4d, 0x73, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x69, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, - 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, - 0x23, 0x0a, 0x0d, 0x61, 0x67, 0x67, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x42, 0x98, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x0e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x49, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, - 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, - 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, - 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, - 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0xaf, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, + 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, + 0x62, 0x6b, 0x65, 0x79, 0x12, 0x54, 0x0a, 0x13, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, + 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, + 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0x5a, 0x0a, 0x0f, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x1c, 0x0a, + 0x09, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x63, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x6e, 0x0a, 0x12, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x3c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x09, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x22, 0x6d, 0x0a, 0x12, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x4d, 0x73, 0x67, 0x12, 0x1a, 0x0a, 0x08, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, + 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, + 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x67, 0x67, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x98, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x0e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, + 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x50, 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, + 0x50, 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, + 0x50, 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/api/fairyring/pep/tx.pulsar.go b/api/fairyring/pep/tx.pulsar.go index 9035a68e..98c22f73 100644 --- a/api/fairyring/pep/tx.pulsar.go +++ b/api/fairyring/pep/tx.pulsar.go @@ -3,7 +3,6 @@ package pep import ( _ "cosmossdk.io/api/amino" - _ "cosmossdk.io/api/cosmos/base/v1beta1" _ "cosmossdk.io/api/cosmos/msg/v1" fmt "fmt" _ "github.com/cosmos/cosmos-proto" @@ -874,10 +873,10 @@ func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Meth } var ( - md_MsgSubmitEncryptedTx protoreflect.MessageDescriptor - fd_MsgSubmitEncryptedTx_creator protoreflect.FieldDescriptor - fd_MsgSubmitEncryptedTx_data protoreflect.FieldDescriptor - fd_MsgSubmitEncryptedTx_targetBlockHeight protoreflect.FieldDescriptor + md_MsgSubmitEncryptedTx protoreflect.MessageDescriptor + fd_MsgSubmitEncryptedTx_creator protoreflect.FieldDescriptor + fd_MsgSubmitEncryptedTx_data protoreflect.FieldDescriptor + fd_MsgSubmitEncryptedTx_target_block_height protoreflect.FieldDescriptor ) func init() { @@ -885,7 +884,7 @@ func init() { md_MsgSubmitEncryptedTx = File_fairyring_pep_tx_proto.Messages().ByName("MsgSubmitEncryptedTx") fd_MsgSubmitEncryptedTx_creator = md_MsgSubmitEncryptedTx.Fields().ByName("creator") fd_MsgSubmitEncryptedTx_data = md_MsgSubmitEncryptedTx.Fields().ByName("data") - fd_MsgSubmitEncryptedTx_targetBlockHeight = md_MsgSubmitEncryptedTx.Fields().ByName("targetBlockHeight") + fd_MsgSubmitEncryptedTx_target_block_height = md_MsgSubmitEncryptedTx.Fields().ByName("target_block_height") } var _ protoreflect.Message = (*fastReflection_MsgSubmitEncryptedTx)(nil) @@ -967,7 +966,7 @@ func (x *fastReflection_MsgSubmitEncryptedTx) Range(f func(protoreflect.FieldDes } if x.TargetBlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.TargetBlockHeight) - if !f(fd_MsgSubmitEncryptedTx_targetBlockHeight, value) { + if !f(fd_MsgSubmitEncryptedTx_target_block_height, value) { return } } @@ -990,7 +989,7 @@ func (x *fastReflection_MsgSubmitEncryptedTx) Has(fd protoreflect.FieldDescripto return x.Creator != "" case "fairyring.pep.MsgSubmitEncryptedTx.data": return x.Data != "" - case "fairyring.pep.MsgSubmitEncryptedTx.targetBlockHeight": + case "fairyring.pep.MsgSubmitEncryptedTx.target_block_height": return x.TargetBlockHeight != uint64(0) default: if fd.IsExtension() { @@ -1012,7 +1011,7 @@ func (x *fastReflection_MsgSubmitEncryptedTx) Clear(fd protoreflect.FieldDescrip x.Creator = "" case "fairyring.pep.MsgSubmitEncryptedTx.data": x.Data = "" - case "fairyring.pep.MsgSubmitEncryptedTx.targetBlockHeight": + case "fairyring.pep.MsgSubmitEncryptedTx.target_block_height": x.TargetBlockHeight = uint64(0) default: if fd.IsExtension() { @@ -1036,7 +1035,7 @@ func (x *fastReflection_MsgSubmitEncryptedTx) Get(descriptor protoreflect.FieldD case "fairyring.pep.MsgSubmitEncryptedTx.data": value := x.Data return protoreflect.ValueOfString(value) - case "fairyring.pep.MsgSubmitEncryptedTx.targetBlockHeight": + case "fairyring.pep.MsgSubmitEncryptedTx.target_block_height": value := x.TargetBlockHeight return protoreflect.ValueOfUint64(value) default: @@ -1063,7 +1062,7 @@ func (x *fastReflection_MsgSubmitEncryptedTx) Set(fd protoreflect.FieldDescripto x.Creator = value.Interface().(string) case "fairyring.pep.MsgSubmitEncryptedTx.data": x.Data = value.Interface().(string) - case "fairyring.pep.MsgSubmitEncryptedTx.targetBlockHeight": + case "fairyring.pep.MsgSubmitEncryptedTx.target_block_height": x.TargetBlockHeight = value.Uint() default: if fd.IsExtension() { @@ -1089,8 +1088,8 @@ func (x *fastReflection_MsgSubmitEncryptedTx) Mutable(fd protoreflect.FieldDescr panic(fmt.Errorf("field creator of message fairyring.pep.MsgSubmitEncryptedTx is not mutable")) case "fairyring.pep.MsgSubmitEncryptedTx.data": panic(fmt.Errorf("field data of message fairyring.pep.MsgSubmitEncryptedTx is not mutable")) - case "fairyring.pep.MsgSubmitEncryptedTx.targetBlockHeight": - panic(fmt.Errorf("field targetBlockHeight of message fairyring.pep.MsgSubmitEncryptedTx is not mutable")) + case "fairyring.pep.MsgSubmitEncryptedTx.target_block_height": + panic(fmt.Errorf("field target_block_height of message fairyring.pep.MsgSubmitEncryptedTx is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitEncryptedTx")) @@ -1108,7 +1107,7 @@ func (x *fastReflection_MsgSubmitEncryptedTx) NewField(fd protoreflect.FieldDesc return protoreflect.ValueOfString("") case "fairyring.pep.MsgSubmitEncryptedTx.data": return protoreflect.ValueOfString("") - case "fairyring.pep.MsgSubmitEncryptedTx.targetBlockHeight": + case "fairyring.pep.MsgSubmitEncryptedTx.target_block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { @@ -1405,6 +1404,362 @@ func (x *fastReflection_MsgSubmitEncryptedTx) ProtoMethods() *protoiface.Methods } } +var ( + md_MsgSubmitEncryptedTxResponse protoreflect.MessageDescriptor +) + +func init() { + file_fairyring_pep_tx_proto_init() + md_MsgSubmitEncryptedTxResponse = File_fairyring_pep_tx_proto.Messages().ByName("MsgSubmitEncryptedTxResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgSubmitEncryptedTxResponse)(nil) + +type fastReflection_MsgSubmitEncryptedTxResponse MsgSubmitEncryptedTxResponse + +func (x *MsgSubmitEncryptedTxResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSubmitEncryptedTxResponse)(x) +} + +func (x *MsgSubmitEncryptedTxResponse) slowProtoReflect() protoreflect.Message { + mi := &file_fairyring_pep_tx_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 _fastReflection_MsgSubmitEncryptedTxResponse_messageType fastReflection_MsgSubmitEncryptedTxResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSubmitEncryptedTxResponse_messageType{} + +type fastReflection_MsgSubmitEncryptedTxResponse_messageType struct{} + +func (x fastReflection_MsgSubmitEncryptedTxResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSubmitEncryptedTxResponse)(nil) +} +func (x fastReflection_MsgSubmitEncryptedTxResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSubmitEncryptedTxResponse) +} +func (x fastReflection_MsgSubmitEncryptedTxResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitEncryptedTxResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgSubmitEncryptedTxResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitEncryptedTxResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_MsgSubmitEncryptedTxResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSubmitEncryptedTxResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgSubmitEncryptedTxResponse) New() protoreflect.Message { + return new(fastReflection_MsgSubmitEncryptedTxResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgSubmitEncryptedTxResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSubmitEncryptedTxResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_MsgSubmitEncryptedTxResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_MsgSubmitEncryptedTxResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitEncryptedTxResponse")) + } + panic(fmt.Errorf("message fairyring.pep.MsgSubmitEncryptedTxResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSubmitEncryptedTxResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitEncryptedTxResponse")) + } + panic(fmt.Errorf("message fairyring.pep.MsgSubmitEncryptedTxResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_MsgSubmitEncryptedTxResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitEncryptedTxResponse")) + } + panic(fmt.Errorf("message fairyring.pep.MsgSubmitEncryptedTxResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSubmitEncryptedTxResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitEncryptedTxResponse")) + } + panic(fmt.Errorf("message fairyring.pep.MsgSubmitEncryptedTxResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSubmitEncryptedTxResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitEncryptedTxResponse")) + } + panic(fmt.Errorf("message fairyring.pep.MsgSubmitEncryptedTxResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_MsgSubmitEncryptedTxResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitEncryptedTxResponse")) + } + panic(fmt.Errorf("message fairyring.pep.MsgSubmitEncryptedTxResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_MsgSubmitEncryptedTxResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgSubmitEncryptedTxResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_MsgSubmitEncryptedTxResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_MsgSubmitEncryptedTxResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_MsgSubmitEncryptedTxResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_MsgSubmitEncryptedTxResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgSubmitEncryptedTxResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*MsgSubmitEncryptedTxResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*MsgSubmitEncryptedTxResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitEncryptedTxResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitEncryptedTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + var ( md_MsgSubmitGeneralEncryptedTx protoreflect.MessageDescriptor fd_MsgSubmitGeneralEncryptedTx_creator protoreflect.FieldDescriptor @@ -1429,7 +1784,7 @@ func (x *MsgSubmitGeneralEncryptedTx) ProtoReflect() protoreflect.Message { } func (x *MsgSubmitGeneralEncryptedTx) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_pep_tx_proto_msgTypes[3] + mi := &file_fairyring_pep_tx_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1954,24 +2309,24 @@ func (x *fastReflection_MsgSubmitGeneralEncryptedTx) ProtoMethods() *protoiface. } var ( - md_MsgSubmitEncryptedTxResponse protoreflect.MessageDescriptor + md_MsgSubmitGeneralEncryptedTxResponse protoreflect.MessageDescriptor ) func init() { file_fairyring_pep_tx_proto_init() - md_MsgSubmitEncryptedTxResponse = File_fairyring_pep_tx_proto.Messages().ByName("MsgSubmitEncryptedTxResponse") + md_MsgSubmitGeneralEncryptedTxResponse = File_fairyring_pep_tx_proto.Messages().ByName("MsgSubmitGeneralEncryptedTxResponse") } -var _ protoreflect.Message = (*fastReflection_MsgSubmitEncryptedTxResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSubmitGeneralEncryptedTxResponse)(nil) -type fastReflection_MsgSubmitEncryptedTxResponse MsgSubmitEncryptedTxResponse +type fastReflection_MsgSubmitGeneralEncryptedTxResponse MsgSubmitGeneralEncryptedTxResponse -func (x *MsgSubmitEncryptedTxResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSubmitEncryptedTxResponse)(x) +func (x *MsgSubmitGeneralEncryptedTxResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSubmitGeneralEncryptedTxResponse)(x) } -func (x *MsgSubmitEncryptedTxResponse) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_pep_tx_proto_msgTypes[4] +func (x *MsgSubmitGeneralEncryptedTxResponse) slowProtoReflect() protoreflect.Message { + mi := &file_fairyring_pep_tx_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1982,43 +2337,43 @@ func (x *MsgSubmitEncryptedTxResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgSubmitEncryptedTxResponse_messageType fastReflection_MsgSubmitEncryptedTxResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSubmitEncryptedTxResponse_messageType{} +var _fastReflection_MsgSubmitGeneralEncryptedTxResponse_messageType fastReflection_MsgSubmitGeneralEncryptedTxResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSubmitGeneralEncryptedTxResponse_messageType{} -type fastReflection_MsgSubmitEncryptedTxResponse_messageType struct{} +type fastReflection_MsgSubmitGeneralEncryptedTxResponse_messageType struct{} -func (x fastReflection_MsgSubmitEncryptedTxResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSubmitEncryptedTxResponse)(nil) +func (x fastReflection_MsgSubmitGeneralEncryptedTxResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSubmitGeneralEncryptedTxResponse)(nil) } -func (x fastReflection_MsgSubmitEncryptedTxResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSubmitEncryptedTxResponse) +func (x fastReflection_MsgSubmitGeneralEncryptedTxResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSubmitGeneralEncryptedTxResponse) } -func (x fastReflection_MsgSubmitEncryptedTxResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSubmitEncryptedTxResponse +func (x fastReflection_MsgSubmitGeneralEncryptedTxResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitGeneralEncryptedTxResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgSubmitEncryptedTxResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSubmitEncryptedTxResponse +func (x *fastReflection_MsgSubmitGeneralEncryptedTxResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitGeneralEncryptedTxResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgSubmitEncryptedTxResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSubmitEncryptedTxResponse_messageType +func (x *fastReflection_MsgSubmitGeneralEncryptedTxResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSubmitGeneralEncryptedTxResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSubmitEncryptedTxResponse) New() protoreflect.Message { - return new(fastReflection_MsgSubmitEncryptedTxResponse) +func (x *fastReflection_MsgSubmitGeneralEncryptedTxResponse) New() protoreflect.Message { + return new(fastReflection_MsgSubmitGeneralEncryptedTxResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSubmitEncryptedTxResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSubmitEncryptedTxResponse)(x) +func (x *fastReflection_MsgSubmitGeneralEncryptedTxResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSubmitGeneralEncryptedTxResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -2026,7 +2381,7 @@ func (x *fastReflection_MsgSubmitEncryptedTxResponse) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgSubmitEncryptedTxResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgSubmitGeneralEncryptedTxResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -2040,13 +2395,13 @@ func (x *fastReflection_MsgSubmitEncryptedTxResponse) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSubmitEncryptedTxResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgSubmitGeneralEncryptedTxResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitEncryptedTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitGeneralEncryptedTxResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgSubmitEncryptedTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgSubmitGeneralEncryptedTxResponse does not contain field %s", fd.FullName())) } } @@ -2056,13 +2411,13 @@ func (x *fastReflection_MsgSubmitEncryptedTxResponse) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitEncryptedTxResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgSubmitGeneralEncryptedTxResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitEncryptedTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitGeneralEncryptedTxResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgSubmitEncryptedTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgSubmitGeneralEncryptedTxResponse does not contain field %s", fd.FullName())) } } @@ -2072,13 +2427,13 @@ func (x *fastReflection_MsgSubmitEncryptedTxResponse) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgSubmitEncryptedTxResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitGeneralEncryptedTxResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitEncryptedTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitGeneralEncryptedTxResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgSubmitEncryptedTxResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgSubmitGeneralEncryptedTxResponse does not contain field %s", descriptor.FullName())) } } @@ -2092,13 +2447,13 @@ func (x *fastReflection_MsgSubmitEncryptedTxResponse) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitEncryptedTxResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgSubmitGeneralEncryptedTxResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitEncryptedTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitGeneralEncryptedTxResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgSubmitEncryptedTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgSubmitGeneralEncryptedTxResponse does not contain field %s", fd.FullName())) } } @@ -2112,36 +2467,36 @@ func (x *fastReflection_MsgSubmitEncryptedTxResponse) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitEncryptedTxResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitGeneralEncryptedTxResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitEncryptedTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitGeneralEncryptedTxResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgSubmitEncryptedTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgSubmitGeneralEncryptedTxResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgSubmitEncryptedTxResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitGeneralEncryptedTxResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitEncryptedTxResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitGeneralEncryptedTxResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgSubmitEncryptedTxResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgSubmitGeneralEncryptedTxResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgSubmitEncryptedTxResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgSubmitGeneralEncryptedTxResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgSubmitEncryptedTxResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgSubmitGeneralEncryptedTxResponse", d.FullName())) } panic("unreachable") } @@ -2149,7 +2504,7 @@ func (x *fastReflection_MsgSubmitEncryptedTxResponse) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgSubmitEncryptedTxResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgSubmitGeneralEncryptedTxResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2160,7 +2515,7 @@ func (x *fastReflection_MsgSubmitEncryptedTxResponse) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitEncryptedTxResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgSubmitGeneralEncryptedTxResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2172,7 +2527,7 @@ func (x *fastReflection_MsgSubmitEncryptedTxResponse) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgSubmitEncryptedTxResponse) IsValid() bool { +func (x *fastReflection_MsgSubmitGeneralEncryptedTxResponse) IsValid() bool { return x != nil } @@ -2182,9 +2537,9 @@ func (x *fastReflection_MsgSubmitEncryptedTxResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgSubmitEncryptedTxResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgSubmitGeneralEncryptedTxResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSubmitEncryptedTxResponse) + x := input.Message.Interface().(*MsgSubmitGeneralEncryptedTxResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2206,7 +2561,7 @@ func (x *fastReflection_MsgSubmitEncryptedTxResponse) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSubmitEncryptedTxResponse) + x := input.Message.Interface().(*MsgSubmitGeneralEncryptedTxResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2236,7 +2591,7 @@ func (x *fastReflection_MsgSubmitEncryptedTxResponse) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSubmitEncryptedTxResponse) + x := input.Message.Interface().(*MsgSubmitGeneralEncryptedTxResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2268,10 +2623,10 @@ func (x *fastReflection_MsgSubmitEncryptedTxResponse) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitEncryptedTxResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitGeneralEncryptedTxResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitEncryptedTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitGeneralEncryptedTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -2333,7 +2688,7 @@ func (x *MsgCreateAggregatedKeyShare) ProtoReflect() protoreflect.Message { } func (x *MsgCreateAggregatedKeyShare) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_pep_tx_proto_msgTypes[5] + mi := &file_fairyring_pep_tx_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2859,7 +3214,7 @@ func (x *MsgCreateAggregatedKeyShareResponse) ProtoReflect() protoreflect.Messag } func (x *MsgCreateAggregatedKeyShareResponse) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_pep_tx_proto_msgTypes[6] + mi := &file_fairyring_pep_tx_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3221,7 +3576,7 @@ func (x *MsgRequestGeneralKeyshare) ProtoReflect() protoreflect.Message { } func (x *MsgRequestGeneralKeyshare) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_pep_tx_proto_msgTypes[7] + mi := &file_fairyring_pep_tx_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3780,7 +4135,7 @@ func (x *MsgRequestGeneralKeyshareResponse) ProtoReflect() protoreflect.Message } func (x *MsgRequestGeneralKeyshareResponse) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_pep_tx_proto_msgTypes[8] + mi := &file_fairyring_pep_tx_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4202,7 +4557,7 @@ func (x *MsgGetGeneralKeyshare) ProtoReflect() protoreflect.Message { } func (x *MsgGetGeneralKeyshare) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_pep_tx_proto_msgTypes[9] + mi := &file_fairyring_pep_tx_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4682,7 +5037,7 @@ func (x *MsgGetGeneralKeyshareResponse) ProtoReflect() protoreflect.Message { } func (x *MsgGetGeneralKeyshareResponse) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_pep_tx_proto_msgTypes[10] + mi := &file_fairyring_pep_tx_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5023,14 +5378,14 @@ func (x *fastReflection_MsgGetGeneralKeyshareResponse) ProtoMethods() *protoifac var ( md_MsgRequestPrivateIdentity protoreflect.MessageDescriptor fd_MsgRequestPrivateIdentity_creator protoreflect.FieldDescriptor - fd_MsgRequestPrivateIdentity_reqId protoreflect.FieldDescriptor + fd_MsgRequestPrivateIdentity_req_id protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_tx_proto_init() md_MsgRequestPrivateIdentity = File_fairyring_pep_tx_proto.Messages().ByName("MsgRequestPrivateIdentity") fd_MsgRequestPrivateIdentity_creator = md_MsgRequestPrivateIdentity.Fields().ByName("creator") - fd_MsgRequestPrivateIdentity_reqId = md_MsgRequestPrivateIdentity.Fields().ByName("reqId") + fd_MsgRequestPrivateIdentity_req_id = md_MsgRequestPrivateIdentity.Fields().ByName("req_id") } var _ protoreflect.Message = (*fastReflection_MsgRequestPrivateIdentity)(nil) @@ -5042,7 +5397,7 @@ func (x *MsgRequestPrivateIdentity) ProtoReflect() protoreflect.Message { } func (x *MsgRequestPrivateIdentity) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_pep_tx_proto_msgTypes[11] + mi := &file_fairyring_pep_tx_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5106,7 +5461,7 @@ func (x *fastReflection_MsgRequestPrivateIdentity) Range(f func(protoreflect.Fie } if x.ReqId != "" { value := protoreflect.ValueOfString(x.ReqId) - if !f(fd_MsgRequestPrivateIdentity_reqId, value) { + if !f(fd_MsgRequestPrivateIdentity_req_id, value) { return } } @@ -5127,7 +5482,7 @@ func (x *fastReflection_MsgRequestPrivateIdentity) Has(fd protoreflect.FieldDesc switch fd.FullName() { case "fairyring.pep.MsgRequestPrivateIdentity.creator": return x.Creator != "" - case "fairyring.pep.MsgRequestPrivateIdentity.reqId": + case "fairyring.pep.MsgRequestPrivateIdentity.req_id": return x.ReqId != "" default: if fd.IsExtension() { @@ -5147,7 +5502,7 @@ func (x *fastReflection_MsgRequestPrivateIdentity) Clear(fd protoreflect.FieldDe switch fd.FullName() { case "fairyring.pep.MsgRequestPrivateIdentity.creator": x.Creator = "" - case "fairyring.pep.MsgRequestPrivateIdentity.reqId": + case "fairyring.pep.MsgRequestPrivateIdentity.req_id": x.ReqId = "" default: if fd.IsExtension() { @@ -5168,7 +5523,7 @@ func (x *fastReflection_MsgRequestPrivateIdentity) Get(descriptor protoreflect.F case "fairyring.pep.MsgRequestPrivateIdentity.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.pep.MsgRequestPrivateIdentity.reqId": + case "fairyring.pep.MsgRequestPrivateIdentity.req_id": value := x.ReqId return protoreflect.ValueOfString(value) default: @@ -5193,7 +5548,7 @@ func (x *fastReflection_MsgRequestPrivateIdentity) Set(fd protoreflect.FieldDesc switch fd.FullName() { case "fairyring.pep.MsgRequestPrivateIdentity.creator": x.Creator = value.Interface().(string) - case "fairyring.pep.MsgRequestPrivateIdentity.reqId": + case "fairyring.pep.MsgRequestPrivateIdentity.req_id": x.ReqId = value.Interface().(string) default: if fd.IsExtension() { @@ -5217,8 +5572,8 @@ func (x *fastReflection_MsgRequestPrivateIdentity) Mutable(fd protoreflect.Field switch fd.FullName() { case "fairyring.pep.MsgRequestPrivateIdentity.creator": panic(fmt.Errorf("field creator of message fairyring.pep.MsgRequestPrivateIdentity is not mutable")) - case "fairyring.pep.MsgRequestPrivateIdentity.reqId": - panic(fmt.Errorf("field reqId of message fairyring.pep.MsgRequestPrivateIdentity is not mutable")) + case "fairyring.pep.MsgRequestPrivateIdentity.req_id": + panic(fmt.Errorf("field req_id of message fairyring.pep.MsgRequestPrivateIdentity is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestPrivateIdentity")) @@ -5234,7 +5589,7 @@ func (x *fastReflection_MsgRequestPrivateIdentity) NewField(fd protoreflect.Fiel switch fd.FullName() { case "fairyring.pep.MsgRequestPrivateIdentity.creator": return protoreflect.ValueOfString("") - case "fairyring.pep.MsgRequestPrivateIdentity.reqId": + case "fairyring.pep.MsgRequestPrivateIdentity.req_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { @@ -5524,7 +5879,7 @@ func (x *MsgRequestPrivateIdentityResponse) ProtoReflect() protoreflect.Message } func (x *MsgRequestPrivateIdentityResponse) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_pep_tx_proto_msgTypes[12] + mi := &file_fairyring_pep_tx_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5927,7 +6282,7 @@ func (x *fastReflection_MsgRequestPrivateIdentityResponse) ProtoMethods() *proto var ( md_MsgGetPrivateKeyshares protoreflect.MessageDescriptor fd_MsgGetPrivateKeyshares_creator protoreflect.FieldDescriptor - fd_MsgGetPrivateKeyshares_reqId protoreflect.FieldDescriptor + fd_MsgGetPrivateKeyshares_req_id protoreflect.FieldDescriptor fd_MsgGetPrivateKeyshares_secp_pubkey protoreflect.FieldDescriptor ) @@ -5935,7 +6290,7 @@ func init() { file_fairyring_pep_tx_proto_init() md_MsgGetPrivateKeyshares = File_fairyring_pep_tx_proto.Messages().ByName("MsgGetPrivateKeyshares") fd_MsgGetPrivateKeyshares_creator = md_MsgGetPrivateKeyshares.Fields().ByName("creator") - fd_MsgGetPrivateKeyshares_reqId = md_MsgGetPrivateKeyshares.Fields().ByName("reqId") + fd_MsgGetPrivateKeyshares_req_id = md_MsgGetPrivateKeyshares.Fields().ByName("req_id") fd_MsgGetPrivateKeyshares_secp_pubkey = md_MsgGetPrivateKeyshares.Fields().ByName("secp_pubkey") } @@ -5948,7 +6303,7 @@ func (x *MsgGetPrivateKeyshares) ProtoReflect() protoreflect.Message { } func (x *MsgGetPrivateKeyshares) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_pep_tx_proto_msgTypes[13] + mi := &file_fairyring_pep_tx_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6012,7 +6367,7 @@ func (x *fastReflection_MsgGetPrivateKeyshares) Range(f func(protoreflect.FieldD } if x.ReqId != "" { value := protoreflect.ValueOfString(x.ReqId) - if !f(fd_MsgGetPrivateKeyshares_reqId, value) { + if !f(fd_MsgGetPrivateKeyshares_req_id, value) { return } } @@ -6039,7 +6394,7 @@ func (x *fastReflection_MsgGetPrivateKeyshares) Has(fd protoreflect.FieldDescrip switch fd.FullName() { case "fairyring.pep.MsgGetPrivateKeyshares.creator": return x.Creator != "" - case "fairyring.pep.MsgGetPrivateKeyshares.reqId": + case "fairyring.pep.MsgGetPrivateKeyshares.req_id": return x.ReqId != "" case "fairyring.pep.MsgGetPrivateKeyshares.secp_pubkey": return x.SecpPubkey != "" @@ -6061,7 +6416,7 @@ func (x *fastReflection_MsgGetPrivateKeyshares) Clear(fd protoreflect.FieldDescr switch fd.FullName() { case "fairyring.pep.MsgGetPrivateKeyshares.creator": x.Creator = "" - case "fairyring.pep.MsgGetPrivateKeyshares.reqId": + case "fairyring.pep.MsgGetPrivateKeyshares.req_id": x.ReqId = "" case "fairyring.pep.MsgGetPrivateKeyshares.secp_pubkey": x.SecpPubkey = "" @@ -6084,7 +6439,7 @@ func (x *fastReflection_MsgGetPrivateKeyshares) Get(descriptor protoreflect.Fiel case "fairyring.pep.MsgGetPrivateKeyshares.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.pep.MsgGetPrivateKeyshares.reqId": + case "fairyring.pep.MsgGetPrivateKeyshares.req_id": value := x.ReqId return protoreflect.ValueOfString(value) case "fairyring.pep.MsgGetPrivateKeyshares.secp_pubkey": @@ -6112,7 +6467,7 @@ func (x *fastReflection_MsgGetPrivateKeyshares) Set(fd protoreflect.FieldDescrip switch fd.FullName() { case "fairyring.pep.MsgGetPrivateKeyshares.creator": x.Creator = value.Interface().(string) - case "fairyring.pep.MsgGetPrivateKeyshares.reqId": + case "fairyring.pep.MsgGetPrivateKeyshares.req_id": x.ReqId = value.Interface().(string) case "fairyring.pep.MsgGetPrivateKeyshares.secp_pubkey": x.SecpPubkey = value.Interface().(string) @@ -6138,8 +6493,8 @@ func (x *fastReflection_MsgGetPrivateKeyshares) Mutable(fd protoreflect.FieldDes switch fd.FullName() { case "fairyring.pep.MsgGetPrivateKeyshares.creator": panic(fmt.Errorf("field creator of message fairyring.pep.MsgGetPrivateKeyshares is not mutable")) - case "fairyring.pep.MsgGetPrivateKeyshares.reqId": - panic(fmt.Errorf("field reqId of message fairyring.pep.MsgGetPrivateKeyshares is not mutable")) + case "fairyring.pep.MsgGetPrivateKeyshares.req_id": + panic(fmt.Errorf("field req_id of message fairyring.pep.MsgGetPrivateKeyshares is not mutable")) case "fairyring.pep.MsgGetPrivateKeyshares.secp_pubkey": panic(fmt.Errorf("field secp_pubkey of message fairyring.pep.MsgGetPrivateKeyshares is not mutable")) default: @@ -6157,7 +6512,7 @@ func (x *fastReflection_MsgGetPrivateKeyshares) NewField(fd protoreflect.FieldDe switch fd.FullName() { case "fairyring.pep.MsgGetPrivateKeyshares.creator": return protoreflect.ValueOfString("") - case "fairyring.pep.MsgGetPrivateKeyshares.reqId": + case "fairyring.pep.MsgGetPrivateKeyshares.req_id": return protoreflect.ValueOfString("") case "fairyring.pep.MsgGetPrivateKeyshares.secp_pubkey": return protoreflect.ValueOfString("") @@ -6490,7 +6845,7 @@ func (x *MsgGetPrivateKeysharesResponse) ProtoReflect() protoreflect.Message { } func (x *MsgGetPrivateKeysharesResponse) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_pep_tx_proto_msgTypes[14] + mi := &file_fairyring_pep_tx_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6852,7 +7207,7 @@ func (x *MsgRegisterContract) ProtoReflect() protoreflect.Message { } func (x *MsgRegisterContract) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_pep_tx_proto_msgTypes[15] + mi := &file_fairyring_pep_tx_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7394,7 +7749,7 @@ func (x *MsgRegisterContractResponse) ProtoReflect() protoreflect.Message { } func (x *MsgRegisterContractResponse) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_pep_tx_proto_msgTypes[16] + mi := &file_fairyring_pep_tx_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7756,7 +8111,7 @@ func (x *MsgUnregisterContract) ProtoReflect() protoreflect.Message { } func (x *MsgUnregisterContract) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_pep_tx_proto_msgTypes[17] + mi := &file_fairyring_pep_tx_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8298,7 +8653,7 @@ func (x *MsgUnregisterContractResponse) ProtoReflect() protoreflect.Message { } func (x *MsgUnregisterContractResponse) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_pep_tx_proto_msgTypes[18] + mi := &file_fairyring_pep_tx_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8723,6 +9078,7 @@ func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{1} } +// MsgSubmitEncryptedTx is the Msg/SubmitEncryptedTx request type. type MsgSubmitEncryptedTx struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -8730,7 +9086,7 @@ type MsgSubmitEncryptedTx struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - TargetBlockHeight uint64 `protobuf:"varint,3,opt,name=targetBlockHeight,proto3" json:"targetBlockHeight,omitempty"` + TargetBlockHeight uint64 `protobuf:"varint,3,opt,name=target_block_height,json=targetBlockHeight,proto3" json:"target_block_height,omitempty"` } func (x *MsgSubmitEncryptedTx) Reset() { @@ -8774,6 +9130,35 @@ func (x *MsgSubmitEncryptedTx) GetTargetBlockHeight() uint64 { return 0 } +// MsgSubmitEncryptedTxResponse defines the response structure for executing a +// MsgSubmitEncryptedTx message. +type MsgSubmitEncryptedTxResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgSubmitEncryptedTxResponse) Reset() { + *x = MsgSubmitEncryptedTxResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_fairyring_pep_tx_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgSubmitEncryptedTxResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgSubmitEncryptedTxResponse) ProtoMessage() {} + +// Deprecated: Use MsgSubmitEncryptedTxResponse.ProtoReflect.Descriptor instead. +func (*MsgSubmitEncryptedTxResponse) Descriptor() ([]byte, []int) { + return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{3} +} + +// MsgSubmitGeneralEncryptedTx is the Msg/SubmitGeneralEncryptedTx request type. type MsgSubmitGeneralEncryptedTx struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -8787,7 +9172,7 @@ type MsgSubmitGeneralEncryptedTx struct { func (x *MsgSubmitGeneralEncryptedTx) Reset() { *x = MsgSubmitGeneralEncryptedTx{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_pep_tx_proto_msgTypes[3] + mi := &file_fairyring_pep_tx_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8801,7 +9186,7 @@ func (*MsgSubmitGeneralEncryptedTx) ProtoMessage() {} // Deprecated: Use MsgSubmitGeneralEncryptedTx.ProtoReflect.Descriptor instead. func (*MsgSubmitGeneralEncryptedTx) Descriptor() ([]byte, []int) { - return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{3} + return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{4} } func (x *MsgSubmitGeneralEncryptedTx) GetCreator() string { @@ -8825,33 +9210,35 @@ func (x *MsgSubmitGeneralEncryptedTx) GetReqId() string { return "" } -type MsgSubmitEncryptedTxResponse struct { +// MsgSubmitGeneralEncryptedTxResponse defines the response structure for executing a +// MsgSubmitGeneralEncryptedTx message. +type MsgSubmitGeneralEncryptedTxResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgSubmitEncryptedTxResponse) Reset() { - *x = MsgSubmitEncryptedTxResponse{} +func (x *MsgSubmitGeneralEncryptedTxResponse) Reset() { + *x = MsgSubmitGeneralEncryptedTxResponse{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_pep_tx_proto_msgTypes[4] + mi := &file_fairyring_pep_tx_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgSubmitEncryptedTxResponse) String() string { +func (x *MsgSubmitGeneralEncryptedTxResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgSubmitEncryptedTxResponse) ProtoMessage() {} +func (*MsgSubmitGeneralEncryptedTxResponse) ProtoMessage() {} -// Deprecated: Use MsgSubmitEncryptedTxResponse.ProtoReflect.Descriptor instead. -func (*MsgSubmitEncryptedTxResponse) Descriptor() ([]byte, []int) { - return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{4} +// Deprecated: Use MsgSubmitGeneralEncryptedTxResponse.ProtoReflect.Descriptor instead. +func (*MsgSubmitGeneralEncryptedTxResponse) Descriptor() ([]byte, []int) { + return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{5} } -// this line is used by starport scaffolding # proto/tx/message +// MsgCreateAggregatedKeyShare is the Msg/CreateAggregatedKeyShare request type. type MsgCreateAggregatedKeyShare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -8865,7 +9252,7 @@ type MsgCreateAggregatedKeyShare struct { func (x *MsgCreateAggregatedKeyShare) Reset() { *x = MsgCreateAggregatedKeyShare{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_pep_tx_proto_msgTypes[5] + mi := &file_fairyring_pep_tx_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8879,7 +9266,7 @@ func (*MsgCreateAggregatedKeyShare) ProtoMessage() {} // Deprecated: Use MsgCreateAggregatedKeyShare.ProtoReflect.Descriptor instead. func (*MsgCreateAggregatedKeyShare) Descriptor() ([]byte, []int) { - return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{5} + return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{6} } func (x *MsgCreateAggregatedKeyShare) GetCreator() string { @@ -8903,6 +9290,8 @@ func (x *MsgCreateAggregatedKeyShare) GetData() string { return "" } +// MsgCreateAggregatedKeyShareResponse defines the response structure for executing a +// MsgCreateAggregatedKeyShare message. type MsgCreateAggregatedKeyShareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -8912,7 +9301,7 @@ type MsgCreateAggregatedKeyShareResponse struct { func (x *MsgCreateAggregatedKeyShareResponse) Reset() { *x = MsgCreateAggregatedKeyShareResponse{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_pep_tx_proto_msgTypes[6] + mi := &file_fairyring_pep_tx_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8926,9 +9315,10 @@ func (*MsgCreateAggregatedKeyShareResponse) ProtoMessage() {} // Deprecated: Use MsgCreateAggregatedKeyShareResponse.ProtoReflect.Descriptor instead. func (*MsgCreateAggregatedKeyShareResponse) Descriptor() ([]byte, []int) { - return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{6} + return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{7} } +// MsgRequestGeneralKeyshare is the Msg/RequestGeneralKeyshare request type. type MsgRequestGeneralKeyshare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -8942,7 +9332,7 @@ type MsgRequestGeneralKeyshare struct { func (x *MsgRequestGeneralKeyshare) Reset() { *x = MsgRequestGeneralKeyshare{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_pep_tx_proto_msgTypes[7] + mi := &file_fairyring_pep_tx_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -8956,7 +9346,7 @@ func (*MsgRequestGeneralKeyshare) ProtoMessage() {} // Deprecated: Use MsgRequestGeneralKeyshare.ProtoReflect.Descriptor instead. func (*MsgRequestGeneralKeyshare) Descriptor() ([]byte, []int) { - return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{7} + return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{8} } func (x *MsgRequestGeneralKeyshare) GetCreator() string { @@ -8980,6 +9370,8 @@ func (x *MsgRequestGeneralKeyshare) GetReqId() string { return "" } +// MsgRequestGeneralKeyshareResponse defines the response structure for executing a +// MsgRequestGeneralKeyshare message. type MsgRequestGeneralKeyshareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -8991,7 +9383,7 @@ type MsgRequestGeneralKeyshareResponse struct { func (x *MsgRequestGeneralKeyshareResponse) Reset() { *x = MsgRequestGeneralKeyshareResponse{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_pep_tx_proto_msgTypes[8] + mi := &file_fairyring_pep_tx_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9005,7 +9397,7 @@ func (*MsgRequestGeneralKeyshareResponse) ProtoMessage() {} // Deprecated: Use MsgRequestGeneralKeyshareResponse.ProtoReflect.Descriptor instead. func (*MsgRequestGeneralKeyshareResponse) Descriptor() ([]byte, []int) { - return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{8} + return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{9} } func (x *MsgRequestGeneralKeyshareResponse) GetReqId() string { @@ -9015,6 +9407,7 @@ func (x *MsgRequestGeneralKeyshareResponse) GetReqId() string { return "" } +// MsgGetGeneralKeyshare is the Msg/GetGeneralKeyshare request type. type MsgGetGeneralKeyshare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -9027,7 +9420,7 @@ type MsgGetGeneralKeyshare struct { func (x *MsgGetGeneralKeyshare) Reset() { *x = MsgGetGeneralKeyshare{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_pep_tx_proto_msgTypes[9] + mi := &file_fairyring_pep_tx_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9041,7 +9434,7 @@ func (*MsgGetGeneralKeyshare) ProtoMessage() {} // Deprecated: Use MsgGetGeneralKeyshare.ProtoReflect.Descriptor instead. func (*MsgGetGeneralKeyshare) Descriptor() ([]byte, []int) { - return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{9} + return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{10} } func (x *MsgGetGeneralKeyshare) GetCreator() string { @@ -9058,6 +9451,8 @@ func (x *MsgGetGeneralKeyshare) GetReqId() string { return "" } +// MsgGetGeneralKeyshareResponse defines the response structure for executing a +// MsgGetGeneralKeyshare message. type MsgGetGeneralKeyshareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -9067,7 +9462,7 @@ type MsgGetGeneralKeyshareResponse struct { func (x *MsgGetGeneralKeyshareResponse) Reset() { *x = MsgGetGeneralKeyshareResponse{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_pep_tx_proto_msgTypes[10] + mi := &file_fairyring_pep_tx_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9081,22 +9476,23 @@ func (*MsgGetGeneralKeyshareResponse) ProtoMessage() {} // Deprecated: Use MsgGetGeneralKeyshareResponse.ProtoReflect.Descriptor instead. func (*MsgGetGeneralKeyshareResponse) Descriptor() ([]byte, []int) { - return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{10} + return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{11} } +// MsgRequestPrivateIdentity is the Msg/RequestPrivateIdentity request type. type MsgRequestPrivateIdentity struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - ReqId string `protobuf:"bytes,2,opt,name=reqId,proto3" json:"reqId,omitempty"` + ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } func (x *MsgRequestPrivateIdentity) Reset() { *x = MsgRequestPrivateIdentity{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_pep_tx_proto_msgTypes[11] + mi := &file_fairyring_pep_tx_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9110,7 +9506,7 @@ func (*MsgRequestPrivateIdentity) ProtoMessage() {} // Deprecated: Use MsgRequestPrivateIdentity.ProtoReflect.Descriptor instead. func (*MsgRequestPrivateIdentity) Descriptor() ([]byte, []int) { - return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{11} + return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{12} } func (x *MsgRequestPrivateIdentity) GetCreator() string { @@ -9127,6 +9523,8 @@ func (x *MsgRequestPrivateIdentity) GetReqId() string { return "" } +// MsgRequestPrivateIdentityResponse defines the response structure for executing a +// MsgRequestPrivateIdentity message. type MsgRequestPrivateIdentityResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -9138,7 +9536,7 @@ type MsgRequestPrivateIdentityResponse struct { func (x *MsgRequestPrivateIdentityResponse) Reset() { *x = MsgRequestPrivateIdentityResponse{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_pep_tx_proto_msgTypes[12] + mi := &file_fairyring_pep_tx_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9152,7 +9550,7 @@ func (*MsgRequestPrivateIdentityResponse) ProtoMessage() {} // Deprecated: Use MsgRequestPrivateIdentityResponse.ProtoReflect.Descriptor instead. func (*MsgRequestPrivateIdentityResponse) Descriptor() ([]byte, []int) { - return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{12} + return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{13} } func (x *MsgRequestPrivateIdentityResponse) GetReqId() string { @@ -9162,20 +9560,21 @@ func (x *MsgRequestPrivateIdentityResponse) GetReqId() string { return "" } +// MsgGetPrivateKeyshares is the Msg/GetPrivateKeyshares request type. type MsgGetPrivateKeyshares struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - ReqId string `protobuf:"bytes,2,opt,name=reqId,proto3" json:"reqId,omitempty"` + ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` SecpPubkey string `protobuf:"bytes,3,opt,name=secp_pubkey,json=secpPubkey,proto3" json:"secp_pubkey,omitempty"` } func (x *MsgGetPrivateKeyshares) Reset() { *x = MsgGetPrivateKeyshares{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_pep_tx_proto_msgTypes[13] + mi := &file_fairyring_pep_tx_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9189,7 +9588,7 @@ func (*MsgGetPrivateKeyshares) ProtoMessage() {} // Deprecated: Use MsgGetPrivateKeyshares.ProtoReflect.Descriptor instead. func (*MsgGetPrivateKeyshares) Descriptor() ([]byte, []int) { - return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{13} + return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{14} } func (x *MsgGetPrivateKeyshares) GetCreator() string { @@ -9213,6 +9612,8 @@ func (x *MsgGetPrivateKeyshares) GetSecpPubkey() string { return "" } +// MsgGetPrivateKeysharesResponse defines the response structure for executing a +// MsgGetPrivateKeyshares message. type MsgGetPrivateKeysharesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -9222,7 +9623,7 @@ type MsgGetPrivateKeysharesResponse struct { func (x *MsgGetPrivateKeysharesResponse) Reset() { *x = MsgGetPrivateKeysharesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_pep_tx_proto_msgTypes[14] + mi := &file_fairyring_pep_tx_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9236,9 +9637,10 @@ func (*MsgGetPrivateKeysharesResponse) ProtoMessage() {} // Deprecated: Use MsgGetPrivateKeysharesResponse.ProtoReflect.Descriptor instead. func (*MsgGetPrivateKeysharesResponse) Descriptor() ([]byte, []int) { - return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{14} + return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{15} } +// MsgRegisterContract is the Msg/RegisterContract request type. type MsgRegisterContract struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -9252,7 +9654,7 @@ type MsgRegisterContract struct { func (x *MsgRegisterContract) Reset() { *x = MsgRegisterContract{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_pep_tx_proto_msgTypes[15] + mi := &file_fairyring_pep_tx_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9266,7 +9668,7 @@ func (*MsgRegisterContract) ProtoMessage() {} // Deprecated: Use MsgRegisterContract.ProtoReflect.Descriptor instead. func (*MsgRegisterContract) Descriptor() ([]byte, []int) { - return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{15} + return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{16} } func (x *MsgRegisterContract) GetCreator() string { @@ -9290,6 +9692,8 @@ func (x *MsgRegisterContract) GetIdentity() string { return "" } +// MsgRegisterContractResponse defines the response structure for executing a +// MsgRegisterContract message. type MsgRegisterContractResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -9299,7 +9703,7 @@ type MsgRegisterContractResponse struct { func (x *MsgRegisterContractResponse) Reset() { *x = MsgRegisterContractResponse{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_pep_tx_proto_msgTypes[16] + mi := &file_fairyring_pep_tx_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9313,9 +9717,10 @@ func (*MsgRegisterContractResponse) ProtoMessage() {} // Deprecated: Use MsgRegisterContractResponse.ProtoReflect.Descriptor instead. func (*MsgRegisterContractResponse) Descriptor() ([]byte, []int) { - return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{16} + return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{17} } +// MsgUnregisterContract is the Msg/UnregisterContract request type. type MsgUnregisterContract struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -9329,7 +9734,7 @@ type MsgUnregisterContract struct { func (x *MsgUnregisterContract) Reset() { *x = MsgUnregisterContract{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_pep_tx_proto_msgTypes[17] + mi := &file_fairyring_pep_tx_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9343,7 +9748,7 @@ func (*MsgUnregisterContract) ProtoMessage() {} // Deprecated: Use MsgUnregisterContract.ProtoReflect.Descriptor instead. func (*MsgUnregisterContract) Descriptor() ([]byte, []int) { - return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{17} + return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{18} } func (x *MsgUnregisterContract) GetCreator() string { @@ -9367,6 +9772,8 @@ func (x *MsgUnregisterContract) GetIdentity() string { return "" } +// MsgUnregisterContractResponse defines the response structure for executing a +// MsgUnregisterContract message. type MsgUnregisterContractResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -9376,7 +9783,7 @@ type MsgUnregisterContractResponse struct { func (x *MsgUnregisterContractResponse) Reset() { *x = MsgUnregisterContractResponse{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_pep_tx_proto_msgTypes[18] + mi := &file_fairyring_pep_tx_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -9390,7 +9797,7 @@ func (*MsgUnregisterContractResponse) ProtoMessage() {} // Deprecated: Use MsgUnregisterContractResponse.ProtoReflect.Descriptor instead. func (*MsgUnregisterContractResponse) Descriptor() ([]byte, []int) { - return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{18} + return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{19} } var File_fairyring_pep_tx_proto protoreflect.FileDescriptor @@ -9408,193 +9815,192 @@ var file_fairyring_pep_tx_proto_rawDesc = []byte{ 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x28, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, - 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, - 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcc, 0x01, 0x0a, 0x0f, 0x4d, - 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, - 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x38, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, - 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x3a, 0x47, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, - 0x8a, 0xe7, 0xb0, 0x2a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x46, 0x61, 0x69, 0x72, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2f, 0x78, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, - 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x18, 0x0a, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2c, 0x0a, 0x11, 0x74, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x70, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x53, 0x75, - 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x03, + 0x22, 0xcc, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x38, 0x0a, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x47, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x46, 0x61, 0x69, 0x72, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x78, 0x2f, 0x70, 0x65, 0x70, 0x2f, + 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, + 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x82, 0x01, 0x0a, 0x14, 0x4d, + 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, + 0x64, 0x54, 0x78, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x12, 0x2e, 0x0a, 0x13, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, + 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, + 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x70, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x18, + 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x15, 0x0a, 0x06, + 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, + 0x71, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x22, 0x25, 0x0a, 0x23, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x71, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, + 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x0c, 0x82, + 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x25, 0x0a, 0x23, 0x4d, + 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, + 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0xa4, 0x01, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x48, 0x0a, 0x0f, 0x65, 0x73, + 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, + 0x98, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x65, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x44, + 0x65, 0x6c, 0x61, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, - 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, - 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, - 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x71, 0x0a, 0x1b, 0x4d, 0x73, 0x67, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, - 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x0c, - 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x25, 0x0a, 0x23, - 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, - 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0xa4, 0x01, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x48, 0x0a, 0x0f, 0x65, - 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, - 0x04, 0x98, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x65, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, - 0x44, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, - 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x3a, 0x0a, 0x21, 0x4d, 0x73, - 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0x56, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, - 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, - 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1f, - 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x59, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x18, + 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x3a, 0x0a, 0x21, 0x4d, 0x73, 0x67, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, + 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0x56, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x3a, + 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1f, 0x0a, + 0x1d, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5a, + 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x3a, 0x0a, 0x21, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0x77, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, + 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0x78, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, - 0x71, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, - 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x70, 0x50, 0x75, 0x62, 0x6b, 0x65, - 0x79, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, - 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x84, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, - 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, - 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x86, 0x01, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x55, - 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, - 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, - 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x32, 0xcd, 0x08, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x56, 0x0a, 0x0c, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1e, 0x2e, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x65, 0x0a, 0x11, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, - 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x1a, 0x2b, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, - 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x18, 0x53, 0x75, 0x62, 0x6d, - 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x54, 0x78, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, - 0x1a, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, - 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, - 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, - 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, + 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, + 0x71, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, + 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x70, 0x50, 0x75, 0x62, 0x6b, + 0x65, 0x79, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x84, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, + 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x86, 0x01, 0x0a, 0x15, 0x4d, 0x73, 0x67, + 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x29, 0x0a, 0x10, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x32, 0xd4, 0x08, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x56, 0x0a, 0x0c, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1e, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x26, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x65, 0x0a, 0x11, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, + 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x1a, 0x2b, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, + 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x18, 0x53, 0x75, 0x62, + 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, + 0x78, 0x1a, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, + 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x16, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x12, 0x28, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x30, 0x2e, + 0x65, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, + 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, + 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, - 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x68, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x24, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x2c, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x47, - 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x16, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x12, 0x28, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, - 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x30, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, - 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x6b, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x1a, 0x2d, 0x2e, + 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, + 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x74, 0x0a, 0x16, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x28, 0x2e, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x47, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x24, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, - 0x67, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x10, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x12, 0x22, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, - 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x68, 0x0a, 0x12, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x24, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2c, 0x2e, 0x66, + 0x67, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x1a, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x74, 0x0a, 0x16, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x28, 0x2e, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x50, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x25, + 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, + 0x73, 0x67, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x73, 0x1a, 0x2d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x22, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, - 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, - 0x01, 0x42, 0x91, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, - 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x12, 0x55, 0x6e, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x24, + 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, + 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0x91, 0x01, 0x0a, 0x11, 0x63, 0x6f, + 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, + 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, + 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, + 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, + 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -9609,53 +10015,54 @@ func file_fairyring_pep_tx_proto_rawDescGZIP() []byte { return file_fairyring_pep_tx_proto_rawDescData } -var file_fairyring_pep_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 19) +var file_fairyring_pep_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 20) var file_fairyring_pep_tx_proto_goTypes = []interface{}{ (*MsgUpdateParams)(nil), // 0: fairyring.pep.MsgUpdateParams (*MsgUpdateParamsResponse)(nil), // 1: fairyring.pep.MsgUpdateParamsResponse (*MsgSubmitEncryptedTx)(nil), // 2: fairyring.pep.MsgSubmitEncryptedTx - (*MsgSubmitGeneralEncryptedTx)(nil), // 3: fairyring.pep.MsgSubmitGeneralEncryptedTx - (*MsgSubmitEncryptedTxResponse)(nil), // 4: fairyring.pep.MsgSubmitEncryptedTxResponse - (*MsgCreateAggregatedKeyShare)(nil), // 5: fairyring.pep.MsgCreateAggregatedKeyShare - (*MsgCreateAggregatedKeyShareResponse)(nil), // 6: fairyring.pep.MsgCreateAggregatedKeyShareResponse - (*MsgRequestGeneralKeyshare)(nil), // 7: fairyring.pep.MsgRequestGeneralKeyshare - (*MsgRequestGeneralKeyshareResponse)(nil), // 8: fairyring.pep.MsgRequestGeneralKeyshareResponse - (*MsgGetGeneralKeyshare)(nil), // 9: fairyring.pep.MsgGetGeneralKeyshare - (*MsgGetGeneralKeyshareResponse)(nil), // 10: fairyring.pep.MsgGetGeneralKeyshareResponse - (*MsgRequestPrivateIdentity)(nil), // 11: fairyring.pep.MsgRequestPrivateIdentity - (*MsgRequestPrivateIdentityResponse)(nil), // 12: fairyring.pep.MsgRequestPrivateIdentityResponse - (*MsgGetPrivateKeyshares)(nil), // 13: fairyring.pep.MsgGetPrivateKeyshares - (*MsgGetPrivateKeysharesResponse)(nil), // 14: fairyring.pep.MsgGetPrivateKeysharesResponse - (*MsgRegisterContract)(nil), // 15: fairyring.pep.MsgRegisterContract - (*MsgRegisterContractResponse)(nil), // 16: fairyring.pep.MsgRegisterContractResponse - (*MsgUnregisterContract)(nil), // 17: fairyring.pep.MsgUnregisterContract - (*MsgUnregisterContractResponse)(nil), // 18: fairyring.pep.MsgUnregisterContractResponse - (*Params)(nil), // 19: fairyring.pep.Params - (*durationpb.Duration)(nil), // 20: google.protobuf.Duration + (*MsgSubmitEncryptedTxResponse)(nil), // 3: fairyring.pep.MsgSubmitEncryptedTxResponse + (*MsgSubmitGeneralEncryptedTx)(nil), // 4: fairyring.pep.MsgSubmitGeneralEncryptedTx + (*MsgSubmitGeneralEncryptedTxResponse)(nil), // 5: fairyring.pep.MsgSubmitGeneralEncryptedTxResponse + (*MsgCreateAggregatedKeyShare)(nil), // 6: fairyring.pep.MsgCreateAggregatedKeyShare + (*MsgCreateAggregatedKeyShareResponse)(nil), // 7: fairyring.pep.MsgCreateAggregatedKeyShareResponse + (*MsgRequestGeneralKeyshare)(nil), // 8: fairyring.pep.MsgRequestGeneralKeyshare + (*MsgRequestGeneralKeyshareResponse)(nil), // 9: fairyring.pep.MsgRequestGeneralKeyshareResponse + (*MsgGetGeneralKeyshare)(nil), // 10: fairyring.pep.MsgGetGeneralKeyshare + (*MsgGetGeneralKeyshareResponse)(nil), // 11: fairyring.pep.MsgGetGeneralKeyshareResponse + (*MsgRequestPrivateIdentity)(nil), // 12: fairyring.pep.MsgRequestPrivateIdentity + (*MsgRequestPrivateIdentityResponse)(nil), // 13: fairyring.pep.MsgRequestPrivateIdentityResponse + (*MsgGetPrivateKeyshares)(nil), // 14: fairyring.pep.MsgGetPrivateKeyshares + (*MsgGetPrivateKeysharesResponse)(nil), // 15: fairyring.pep.MsgGetPrivateKeysharesResponse + (*MsgRegisterContract)(nil), // 16: fairyring.pep.MsgRegisterContract + (*MsgRegisterContractResponse)(nil), // 17: fairyring.pep.MsgRegisterContractResponse + (*MsgUnregisterContract)(nil), // 18: fairyring.pep.MsgUnregisterContract + (*MsgUnregisterContractResponse)(nil), // 19: fairyring.pep.MsgUnregisterContractResponse + (*Params)(nil), // 20: fairyring.pep.Params + (*durationpb.Duration)(nil), // 21: google.protobuf.Duration } var file_fairyring_pep_tx_proto_depIdxs = []int32{ - 19, // 0: fairyring.pep.MsgUpdateParams.params:type_name -> fairyring.pep.Params - 20, // 1: fairyring.pep.MsgRequestGeneralKeyshare.estimated_delay:type_name -> google.protobuf.Duration + 20, // 0: fairyring.pep.MsgUpdateParams.params:type_name -> fairyring.pep.Params + 21, // 1: fairyring.pep.MsgRequestGeneralKeyshare.estimated_delay:type_name -> google.protobuf.Duration 0, // 2: fairyring.pep.Msg.UpdateParams:input_type -> fairyring.pep.MsgUpdateParams 2, // 3: fairyring.pep.Msg.SubmitEncryptedTx:input_type -> fairyring.pep.MsgSubmitEncryptedTx - 3, // 4: fairyring.pep.Msg.SubmitGeneralEncryptedTx:input_type -> fairyring.pep.MsgSubmitGeneralEncryptedTx - 5, // 5: fairyring.pep.Msg.CreateAggregatedKeyShare:input_type -> fairyring.pep.MsgCreateAggregatedKeyShare - 7, // 6: fairyring.pep.Msg.RequestGeneralKeyshare:input_type -> fairyring.pep.MsgRequestGeneralKeyshare - 9, // 7: fairyring.pep.Msg.GetGeneralKeyshare:input_type -> fairyring.pep.MsgGetGeneralKeyshare - 11, // 8: fairyring.pep.Msg.RequestPrivateIdentity:input_type -> fairyring.pep.MsgRequestPrivateIdentity - 13, // 9: fairyring.pep.Msg.GetPrivateKeyshares:input_type -> fairyring.pep.MsgGetPrivateKeyshares - 15, // 10: fairyring.pep.Msg.RegisterContract:input_type -> fairyring.pep.MsgRegisterContract - 17, // 11: fairyring.pep.Msg.UnregisterContract:input_type -> fairyring.pep.MsgUnregisterContract + 4, // 4: fairyring.pep.Msg.SubmitGeneralEncryptedTx:input_type -> fairyring.pep.MsgSubmitGeneralEncryptedTx + 6, // 5: fairyring.pep.Msg.CreateAggregatedKeyShare:input_type -> fairyring.pep.MsgCreateAggregatedKeyShare + 8, // 6: fairyring.pep.Msg.RequestGeneralKeyshare:input_type -> fairyring.pep.MsgRequestGeneralKeyshare + 10, // 7: fairyring.pep.Msg.GetGeneralKeyshare:input_type -> fairyring.pep.MsgGetGeneralKeyshare + 12, // 8: fairyring.pep.Msg.RequestPrivateIdentity:input_type -> fairyring.pep.MsgRequestPrivateIdentity + 14, // 9: fairyring.pep.Msg.GetPrivateKeyshares:input_type -> fairyring.pep.MsgGetPrivateKeyshares + 16, // 10: fairyring.pep.Msg.RegisterContract:input_type -> fairyring.pep.MsgRegisterContract + 18, // 11: fairyring.pep.Msg.UnregisterContract:input_type -> fairyring.pep.MsgUnregisterContract 1, // 12: fairyring.pep.Msg.UpdateParams:output_type -> fairyring.pep.MsgUpdateParamsResponse - 4, // 13: fairyring.pep.Msg.SubmitEncryptedTx:output_type -> fairyring.pep.MsgSubmitEncryptedTxResponse - 4, // 14: fairyring.pep.Msg.SubmitGeneralEncryptedTx:output_type -> fairyring.pep.MsgSubmitEncryptedTxResponse - 6, // 15: fairyring.pep.Msg.CreateAggregatedKeyShare:output_type -> fairyring.pep.MsgCreateAggregatedKeyShareResponse - 8, // 16: fairyring.pep.Msg.RequestGeneralKeyshare:output_type -> fairyring.pep.MsgRequestGeneralKeyshareResponse - 10, // 17: fairyring.pep.Msg.GetGeneralKeyshare:output_type -> fairyring.pep.MsgGetGeneralKeyshareResponse - 12, // 18: fairyring.pep.Msg.RequestPrivateIdentity:output_type -> fairyring.pep.MsgRequestPrivateIdentityResponse - 14, // 19: fairyring.pep.Msg.GetPrivateKeyshares:output_type -> fairyring.pep.MsgGetPrivateKeysharesResponse - 16, // 20: fairyring.pep.Msg.RegisterContract:output_type -> fairyring.pep.MsgRegisterContractResponse - 18, // 21: fairyring.pep.Msg.UnregisterContract:output_type -> fairyring.pep.MsgUnregisterContractResponse + 3, // 13: fairyring.pep.Msg.SubmitEncryptedTx:output_type -> fairyring.pep.MsgSubmitEncryptedTxResponse + 5, // 14: fairyring.pep.Msg.SubmitGeneralEncryptedTx:output_type -> fairyring.pep.MsgSubmitGeneralEncryptedTxResponse + 7, // 15: fairyring.pep.Msg.CreateAggregatedKeyShare:output_type -> fairyring.pep.MsgCreateAggregatedKeyShareResponse + 9, // 16: fairyring.pep.Msg.RequestGeneralKeyshare:output_type -> fairyring.pep.MsgRequestGeneralKeyshareResponse + 11, // 17: fairyring.pep.Msg.GetGeneralKeyshare:output_type -> fairyring.pep.MsgGetGeneralKeyshareResponse + 13, // 18: fairyring.pep.Msg.RequestPrivateIdentity:output_type -> fairyring.pep.MsgRequestPrivateIdentityResponse + 15, // 19: fairyring.pep.Msg.GetPrivateKeyshares:output_type -> fairyring.pep.MsgGetPrivateKeysharesResponse + 17, // 20: fairyring.pep.Msg.RegisterContract:output_type -> fairyring.pep.MsgRegisterContractResponse + 19, // 21: fairyring.pep.Msg.UnregisterContract:output_type -> fairyring.pep.MsgUnregisterContractResponse 12, // [12:22] is the sub-list for method output_type 2, // [2:12] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name @@ -9669,7 +10076,6 @@ func file_fairyring_pep_tx_proto_init() { return } file_fairyring_pep_params_proto_init() - file_fairyring_pep_aggregated_key_share_proto_init() if !protoimpl.UnsafeEnabled { file_fairyring_pep_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateParams); i { @@ -9708,7 +10114,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSubmitGeneralEncryptedTx); i { + switch v := v.(*MsgSubmitEncryptedTxResponse); i { case 0: return &v.state case 1: @@ -9720,7 +10126,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSubmitEncryptedTxResponse); i { + switch v := v.(*MsgSubmitGeneralEncryptedTx); i { case 0: return &v.state case 1: @@ -9732,7 +10138,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCreateAggregatedKeyShare); i { + switch v := v.(*MsgSubmitGeneralEncryptedTxResponse); i { case 0: return &v.state case 1: @@ -9744,7 +10150,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCreateAggregatedKeyShareResponse); i { + switch v := v.(*MsgCreateAggregatedKeyShare); i { case 0: return &v.state case 1: @@ -9756,7 +10162,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRequestGeneralKeyshare); i { + switch v := v.(*MsgCreateAggregatedKeyShareResponse); i { case 0: return &v.state case 1: @@ -9768,7 +10174,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRequestGeneralKeyshareResponse); i { + switch v := v.(*MsgRequestGeneralKeyshare); i { case 0: return &v.state case 1: @@ -9780,7 +10186,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgGetGeneralKeyshare); i { + switch v := v.(*MsgRequestGeneralKeyshareResponse); i { case 0: return &v.state case 1: @@ -9792,7 +10198,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgGetGeneralKeyshareResponse); i { + switch v := v.(*MsgGetGeneralKeyshare); i { case 0: return &v.state case 1: @@ -9804,7 +10210,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRequestPrivateIdentity); i { + switch v := v.(*MsgGetGeneralKeyshareResponse); i { case 0: return &v.state case 1: @@ -9816,7 +10222,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRequestPrivateIdentityResponse); i { + switch v := v.(*MsgRequestPrivateIdentity); i { case 0: return &v.state case 1: @@ -9828,7 +10234,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgGetPrivateKeyshares); i { + switch v := v.(*MsgRequestPrivateIdentityResponse); i { case 0: return &v.state case 1: @@ -9840,7 +10246,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgGetPrivateKeysharesResponse); i { + switch v := v.(*MsgGetPrivateKeyshares); i { case 0: return &v.state case 1: @@ -9852,7 +10258,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRegisterContract); i { + switch v := v.(*MsgGetPrivateKeysharesResponse); i { case 0: return &v.state case 1: @@ -9864,7 +10270,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRegisterContractResponse); i { + switch v := v.(*MsgRegisterContract); i { case 0: return &v.state case 1: @@ -9876,7 +10282,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUnregisterContract); i { + switch v := v.(*MsgRegisterContractResponse); i { case 0: return &v.state case 1: @@ -9888,6 +10294,18 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUnregisterContract); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_fairyring_pep_tx_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUnregisterContractResponse); i { case 0: return &v.state @@ -9906,7 +10324,7 @@ func file_fairyring_pep_tx_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_fairyring_pep_tx_proto_rawDesc, NumEnums: 0, - NumMessages: 19, + NumMessages: 20, NumExtensions: 0, NumServices: 1, }, diff --git a/api/fairyring/pep/tx_grpc.pb.go b/api/fairyring/pep/tx_grpc.pb.go index b712f03b..8fd724cc 100644 --- a/api/fairyring/pep/tx_grpc.pb.go +++ b/api/fairyring/pep/tx_grpc.pb.go @@ -38,15 +38,36 @@ type MsgClient interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) + // SubmitEncryptedTx defines an operation to submit an + // encrypted transaction for a particular target block height SubmitEncryptedTx(ctx context.Context, in *MsgSubmitEncryptedTx, opts ...grpc.CallOption) (*MsgSubmitEncryptedTxResponse, error) - SubmitGeneralEncryptedTx(ctx context.Context, in *MsgSubmitGeneralEncryptedTx, opts ...grpc.CallOption) (*MsgSubmitEncryptedTxResponse, error) - // this line is used by starport scaffolding # proto/tx/rpc + // SubmitGeneralEncryptedTx defines an operation to submit an + // encrypted transaction for a particular identity + SubmitGeneralEncryptedTx(ctx context.Context, in *MsgSubmitGeneralEncryptedTx, opts ...grpc.CallOption) (*MsgSubmitGeneralEncryptedTxResponse, error) + // CreateAggregatedKeyShare defines an operation to submit an + // aggregated keyshare to a destination chain CreateAggregatedKeyShare(ctx context.Context, in *MsgCreateAggregatedKeyShare, opts ...grpc.CallOption) (*MsgCreateAggregatedKeyShareResponse, error) + // RequestGeneralKeyshare defines an operation to request the + // creation of a new identity to which validators will be required + // to submit keyshares RequestGeneralKeyshare(ctx context.Context, in *MsgRequestGeneralKeyshare, opts ...grpc.CallOption) (*MsgRequestGeneralKeyshareResponse, error) + // GetGeneralKeyshare defines an operation to signal validators to start + // submitting keyshares for a particular identity GetGeneralKeyshare(ctx context.Context, in *MsgGetGeneralKeyshare, opts ...grpc.CallOption) (*MsgGetGeneralKeyshareResponse, error) + // RequestPrivateIdentity defines an operation to request the + // creation of a new identity to which validators will be required + // to submit encrypted keyshares RequestPrivateIdentity(ctx context.Context, in *MsgRequestPrivateIdentity, opts ...grpc.CallOption) (*MsgRequestPrivateIdentityResponse, error) + // GetPrivateKeyshares defines an operation to signal validators to start + // submitting encrypted keyshares for a particular identity GetPrivateKeyshares(ctx context.Context, in *MsgGetPrivateKeyshares, opts ...grpc.CallOption) (*MsgGetPrivateKeysharesResponse, error) + // RegisterContract defines an operation to make an instantiated + // contract eligible to be automatically executed when a particular + // identity has aggregated keyshares available for it RegisterContract(ctx context.Context, in *MsgRegisterContract, opts ...grpc.CallOption) (*MsgRegisterContractResponse, error) + // UnregisterContract defines an operation to remove a registered contract + // from the list of contracts set to be automatically executed when + // aggreagted keyshare is available for a particular identity UnregisterContract(ctx context.Context, in *MsgUnregisterContract, opts ...grpc.CallOption) (*MsgUnregisterContractResponse, error) } @@ -76,8 +97,8 @@ func (c *msgClient) SubmitEncryptedTx(ctx context.Context, in *MsgSubmitEncrypte return out, nil } -func (c *msgClient) SubmitGeneralEncryptedTx(ctx context.Context, in *MsgSubmitGeneralEncryptedTx, opts ...grpc.CallOption) (*MsgSubmitEncryptedTxResponse, error) { - out := new(MsgSubmitEncryptedTxResponse) +func (c *msgClient) SubmitGeneralEncryptedTx(ctx context.Context, in *MsgSubmitGeneralEncryptedTx, opts ...grpc.CallOption) (*MsgSubmitGeneralEncryptedTxResponse, error) { + out := new(MsgSubmitGeneralEncryptedTxResponse) err := c.cc.Invoke(ctx, Msg_SubmitGeneralEncryptedTx_FullMethodName, in, out, opts...) if err != nil { return nil, err @@ -155,15 +176,36 @@ type MsgServer interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + // SubmitEncryptedTx defines an operation to submit an + // encrypted transaction for a particular target block height SubmitEncryptedTx(context.Context, *MsgSubmitEncryptedTx) (*MsgSubmitEncryptedTxResponse, error) - SubmitGeneralEncryptedTx(context.Context, *MsgSubmitGeneralEncryptedTx) (*MsgSubmitEncryptedTxResponse, error) - // this line is used by starport scaffolding # proto/tx/rpc + // SubmitGeneralEncryptedTx defines an operation to submit an + // encrypted transaction for a particular identity + SubmitGeneralEncryptedTx(context.Context, *MsgSubmitGeneralEncryptedTx) (*MsgSubmitGeneralEncryptedTxResponse, error) + // CreateAggregatedKeyShare defines an operation to submit an + // aggregated keyshare to a destination chain CreateAggregatedKeyShare(context.Context, *MsgCreateAggregatedKeyShare) (*MsgCreateAggregatedKeyShareResponse, error) + // RequestGeneralKeyshare defines an operation to request the + // creation of a new identity to which validators will be required + // to submit keyshares RequestGeneralKeyshare(context.Context, *MsgRequestGeneralKeyshare) (*MsgRequestGeneralKeyshareResponse, error) + // GetGeneralKeyshare defines an operation to signal validators to start + // submitting keyshares for a particular identity GetGeneralKeyshare(context.Context, *MsgGetGeneralKeyshare) (*MsgGetGeneralKeyshareResponse, error) + // RequestPrivateIdentity defines an operation to request the + // creation of a new identity to which validators will be required + // to submit encrypted keyshares RequestPrivateIdentity(context.Context, *MsgRequestPrivateIdentity) (*MsgRequestPrivateIdentityResponse, error) + // GetPrivateKeyshares defines an operation to signal validators to start + // submitting encrypted keyshares for a particular identity GetPrivateKeyshares(context.Context, *MsgGetPrivateKeyshares) (*MsgGetPrivateKeysharesResponse, error) + // RegisterContract defines an operation to make an instantiated + // contract eligible to be automatically executed when a particular + // identity has aggregated keyshares available for it RegisterContract(context.Context, *MsgRegisterContract) (*MsgRegisterContractResponse, error) + // UnregisterContract defines an operation to remove a registered contract + // from the list of contracts set to be automatically executed when + // aggreagted keyshare is available for a particular identity UnregisterContract(context.Context, *MsgUnregisterContract) (*MsgUnregisterContractResponse, error) mustEmbedUnimplementedMsgServer() } @@ -178,7 +220,7 @@ func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (* func (UnimplementedMsgServer) SubmitEncryptedTx(context.Context, *MsgSubmitEncryptedTx) (*MsgSubmitEncryptedTxResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SubmitEncryptedTx not implemented") } -func (UnimplementedMsgServer) SubmitGeneralEncryptedTx(context.Context, *MsgSubmitGeneralEncryptedTx) (*MsgSubmitEncryptedTxResponse, error) { +func (UnimplementedMsgServer) SubmitGeneralEncryptedTx(context.Context, *MsgSubmitGeneralEncryptedTx) (*MsgSubmitGeneralEncryptedTxResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SubmitGeneralEncryptedTx not implemented") } func (UnimplementedMsgServer) CreateAggregatedKeyShare(context.Context, *MsgCreateAggregatedKeyShare) (*MsgCreateAggregatedKeyShareResponse, error) { diff --git a/cmd/fairyringd/cmd/aggregator/private_keyshare_aggregator.go b/cmd/fairyringd/cmd/aggregator/private_keyshare_aggregator.go index b2dc9276..d94a26e5 100644 --- a/cmd/fairyringd/cmd/aggregator/private_keyshare_aggregator.go +++ b/cmd/fairyringd/cmd/aggregator/private_keyshare_aggregator.go @@ -62,9 +62,9 @@ func AggregateCmd() *cobra.Command { queryClient := types.NewQueryClient(clientCtx) - res, err := queryClient.ShowPrivateKeyshareReq( + res, err := queryClient.PrivateKeyshareReq( context.Background(), - &types.QueryShowPrivateKeyshareReqRequest{ + &types.QueryPrivateKeyshareReqRequest{ ReqId: identity, }, ) diff --git a/cmd/fairyringd/cmd/verifiable_randomness/randomness.go b/cmd/fairyringd/cmd/verifiable_randomness/randomness.go index 60eb0842..2d1ee2b4 100644 --- a/cmd/fairyringd/cmd/verifiable_randomness/randomness.go +++ b/cmd/fairyringd/cmd/verifiable_randomness/randomness.go @@ -21,7 +21,10 @@ func VerifiableRandomness() *cobra.Command { queryClient := types.NewQueryClient(clientCtx) - res, err := queryClient.VerifiableRandomness(context.Background(), &types.QueryVerifiableRandomnessQuery{}) + res, err := queryClient.VerifiableRandomness( + context.Background(), + &types.QueryVerifiableRandomnessRequest{}, + ) if err != nil { return err } diff --git a/common/shared_types.pb.go b/common/shared_types.pb.go deleted file mode 100644 index c28ba87d..00000000 --- a/common/shared_types.pb.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fairyring/common/shared_types.proto - -package shared_types - -import ( - fmt "fmt" - math "math" - - proto "github.com/cosmos/gogoproto/proto" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// 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 - -func init() { - proto.RegisterFile("github.com/Fairblock/fairyring/common/shared_types.proto", fileDescriptor_b708507d1b3951ff) -} - -var fileDescriptor_b708507d1b3951ff = []byte{ - // 89 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4e, 0x4b, 0xcc, 0x2c, - 0xaa, 0x2c, 0xca, 0xcc, 0x4b, 0xd7, 0x4f, 0xce, 0xcf, 0xcd, 0xcd, 0xcf, 0xd3, 0x2f, 0xce, 0x48, - 0x2c, 0x4a, 0x4d, 0x89, 0x2f, 0xa9, 0x2c, 0x48, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x77, - 0x92, 0x38, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, - 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x06, 0x40, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x1d, 0xb1, 0xda, 0xb8, 0x3f, 0x00, 0x00, 0x00, -} diff --git a/proto/fairyring/common/shared_types.proto b/proto/fairyring/common/shared_types.proto index 5e7a799b..f19afa49 100644 --- a/proto/fairyring/common/shared_types.proto +++ b/proto/fairyring/common/shared_types.proto @@ -9,6 +9,7 @@ option go_package = "github.com/Fairblock/fairyring/x/common/types"; // RequestAggrKeyshare defines a struct for the data payload message RequestAggrKeyshare { string creator = 1; + // id can either be a rwquest id or a proposal id oneof id { string proposal_id = 2; string request_id = 3; @@ -16,6 +17,7 @@ message RequestAggrKeyshare { google.protobuf.Duration estimated_delay = 4 [(gogoproto.stdduration) = true]; } +// RequestAggrKeyshareResponse defines the response to the RequestAggrKeyshare message message RequestAggrKeyshareResponse { string identity = 1; string pubkey = 2; @@ -23,6 +25,7 @@ message RequestAggrKeyshareResponse { // GetAggrKeyshare defines a struct for the data payload message GetAggrKeyshare { + // id can either be a rwquest id or a proposal id oneof id { string proposal_id = 1; string request_id = 2; @@ -30,6 +33,7 @@ message GetAggrKeyshare { string identity = 3; } +// GetAggrKeyshareResponse defines the response to the GetAggrKeyshare message message GetAggrKeyshareResponse {} // GetPrivateKeyshare defines a struct for the data payload @@ -40,33 +44,43 @@ message GetPrivateKeyshare { string secp_pubkey = 4; } +// GetPrivateKeyshareResponse defines the response to the GetPrivateKeyshare message message GetPrivateKeyshareResponse { string pubkey = 1; } +// ActivePublicKey defines the pubkey currently in use message ActivePublicKey { - string publicKey = 1; + string public_key = 1; string creator = 2; uint64 expiry = 3; } +// QueuedPublicKey defines the pubkey that (when set) will replace the acive pubkey +// when it expires message QueuedPublicKey { - string publicKey = 1; + string public_key = 1; string creator = 2; uint64 expiry = 3; } -message RequestPrivateKeyshare { +// RequestEncryptedKeyshare defines the structure to request for +// encrypted and unaggregated keyshares +message RequestEncryptedKeyshare { string creator = 1; string request_id = 2; } +// EncryptedKeyshare defines the storage structure for +// the list of encrypted keyshares (unaggregated) message EncryptedKeyshare { string requester = 1; repeated IndexedEncryptedKeyshare private_keyshares = 2; } +// IndexedEncryptedKeyshare defines the storage of submitted encrypted +// keyshares along with their indices (can be decrypted and aggregated) message IndexedEncryptedKeyshare { string encrypted_keyshare_value = 1; uint64 encrypted_keyshare_index = 2; -} \ No newline at end of file +} diff --git a/proto/fairyring/keyshare/aggregated_key_share.proto b/proto/fairyring/keyshare/aggregated_key_share.proto index c06bb23a..bdff5227 100644 --- a/proto/fairyring/keyshare/aggregated_key_share.proto +++ b/proto/fairyring/keyshare/aggregated_key_share.proto @@ -3,8 +3,8 @@ package fairyring.keyshare; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; +// AggregatedKeyShare defines the structure and height for an aggregated keyshare message AggregatedKeyShare { uint64 height = 1; string data = 2; } - diff --git a/proto/fairyring/keyshare/authorized_address.proto b/proto/fairyring/keyshare/authorized_address.proto index 73c73954..b0f1d163 100644 --- a/proto/fairyring/keyshare/authorized_address.proto +++ b/proto/fairyring/keyshare/authorized_address.proto @@ -3,9 +3,9 @@ package fairyring.keyshare; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; +// AuthorizedAddress defines if an address is authorized to submit pubkeys message AuthorizedAddress { string target = 1; - bool isAuthorized = 2; - string authorizedBy = 3; + bool is_authorized = 2; + string authorized_by = 3; } - diff --git a/proto/fairyring/keyshare/commitments.proto b/proto/fairyring/keyshare/commitments.proto index a37bb9f7..8b49d808 100644 --- a/proto/fairyring/keyshare/commitments.proto +++ b/proto/fairyring/keyshare/commitments.proto @@ -3,6 +3,8 @@ package fairyring.keyshare; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; +// Commitments defines the list of commitments to verify the +// keyshares submitted by validators message Commitments { repeated string commitments = 1; } \ No newline at end of file diff --git a/proto/fairyring/keyshare/general_key_share.proto b/proto/fairyring/keyshare/general_key_share.proto deleted file mode 100644 index 9f80c014..00000000 --- a/proto/fairyring/keyshare/general_key_share.proto +++ /dev/null @@ -1,24 +0,0 @@ -syntax = "proto3"; -package fairyring.keyshare; - -option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; - -message GeneralKeyShare { - string validator = 1; - string idType = 2; - string idValue = 3; - string keyShare = 4; - uint64 keyShareIndex = 5; - uint64 receivedTimestamp = 6; - uint64 receivedBlockHeight = 7; -} - -message ValidatorEncryptedKeyShare { - string validator = 1; - string requester = 2; - string keyShare = 3; - uint64 keyShareIndex = 4; - uint64 receivedTimestamp = 5; - uint64 receivedBlockHeight = 6; - string identity = 7; -} \ No newline at end of file diff --git a/proto/fairyring/keyshare/genesis.proto b/proto/fairyring/keyshare/genesis.proto index 1aacfb12..0dc5752d 100644 --- a/proto/fairyring/keyshare/genesis.proto +++ b/proto/fairyring/keyshare/genesis.proto @@ -10,7 +10,6 @@ import "fairyring/keyshare/key_share.proto"; import "fairyring/keyshare/aggregated_key_share.proto"; import "fairyring/keyshare/pub_key.proto"; import "fairyring/keyshare/authorized_address.proto"; -import "fairyring/keyshare/general_key_share.proto"; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; @@ -18,17 +17,15 @@ option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; message GenesisState { // params defines all the parameters of the module. - Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - string port_id = 2; - repeated ValidatorSet validatorSetList = 3 [(gogoproto.nullable) = false]; - repeated KeyShare keyShareList = 4 [(gogoproto.nullable) = false]; - - // this line is used by starport scaffolding # genesis/proto/state - repeated AggregatedKeyShare aggregatedKeyShareList = 5 [(gogoproto.nullable) = false]; - ActivePubKey activePubKey = 6 [(gogoproto.nullable) = false]; - QueuedPubKey queuedPubKey = 7 [(gogoproto.nullable) = false]; - repeated AuthorizedAddress authorizedAddressList = 8 [(gogoproto.nullable) = false]; - uint64 request_count = 9; - repeated GeneralKeyShare generalKeyShareList = 10 [(gogoproto.nullable) = false]; + Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + string port_id = 2; + repeated ValidatorSet validator_set_list = 3 [(gogoproto.nullable) = false]; + repeated KeyShare key_share_list = 4 [(gogoproto.nullable) = false]; + repeated AggregatedKeyShare aggregated_key_share_list = 5 [(gogoproto.nullable) = false]; + ActivePubKey active_pub_key = 6 [(gogoproto.nullable) = false]; + QueuedPubKey queued_pub_key = 7 [(gogoproto.nullable) = false]; + repeated AuthorizedAddress authorized_address_list = 8 [(gogoproto.nullable) = false]; + uint64 request_count = 9; + repeated GeneralKeyShare general_key_share_list = 10 [(gogoproto.nullable) = false]; } diff --git a/proto/fairyring/keyshare/key_share.proto b/proto/fairyring/keyshare/key_share.proto index 77eb4d6d..bceb300c 100644 --- a/proto/fairyring/keyshare/key_share.proto +++ b/proto/fairyring/keyshare/key_share.proto @@ -3,12 +3,37 @@ package fairyring.keyshare; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; +// KeyShare defines the structure for submitting +// blockwise keyshares by validators message KeyShare { string validator = 1; - uint64 blockHeight = 2; - string keyShare = 3; - uint64 keyShareIndex = 4; - uint64 receivedTimestamp = 5; - uint64 receivedBlockHeight = 6; + uint64 block_height = 2; + string key_share = 3; + uint64 key_share_index = 4; + uint64 received_timestamp = 5; + uint64 received_block_height = 6; } +// GeneralKeyShare defines the structure for submitting +// general keyshares by validators +message GeneralKeyShare { + string validator = 1; + string id_type = 2; + string id_value = 3; + string key_share = 4; + uint64 key_share_index = 5; + uint64 received_timestamp = 6; + uint64 received_block_height = 7; +} + +// ValidatorEncryptedKeyShare defines the structure for +// submitting encrypted keyshares by validators +message ValidatorEncryptedKeyShare { + string validator = 1; + string requester = 2; + string key_share = 3; + uint64 key_share_index = 4; + uint64 received_timestamp = 5; + uint64 received_block_height = 6; + string identity = 7; +} \ No newline at end of file diff --git a/proto/fairyring/keyshare/params.proto b/proto/fairyring/keyshare/params.proto index 3a1ee3a5..f5a059a7 100644 --- a/proto/fairyring/keyshare/params.proto +++ b/proto/fairyring/keyshare/params.proto @@ -11,7 +11,6 @@ message Params { option (amino.name) = "github.com/Fairblock/fairyring/x/keyshare/Params"; option (gogoproto.equal) = true; - uint64 key_expiry = 1 [(gogoproto.moretags) = "yaml:\"key_expiry\""]; uint64 minimum_bonded = 2 [(gogoproto.moretags) = "yaml:\"minimum_bonded\""]; uint64 max_idled_block = 3 [(gogoproto.moretags) = "yaml:\"max_idled_block\""]; diff --git a/proto/fairyring/keyshare/pub_key.proto b/proto/fairyring/keyshare/pub_key.proto index 92854e56..88ee4bb2 100644 --- a/proto/fairyring/keyshare/pub_key.proto +++ b/proto/fairyring/keyshare/pub_key.proto @@ -3,23 +3,27 @@ package fairyring.keyshare; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; +// EncryptedKeyShare defines the structure for storing +// blockwise keyshares submitted by validators message EncryptedKeyShare { string data = 1; string validator = 2; } +// ActivePubKey defines the structure of the active public key message ActivePubKey { - string publicKey = 1; + string public_key = 1; string creator = 2; uint64 expiry = 3; - uint64 numberOfValidators = 4; - repeated EncryptedKeyShare encryptedKeyShares = 5; + uint64 number_of_validators = 4; + repeated EncryptedKeyShare encrypted_key_shares = 5; } +// QueuedPubKey defines the structure of the queued public key message QueuedPubKey { - string publicKey = 1; + string public_key = 1; string creator = 2; uint64 expiry = 3; - uint64 numberOfValidators = 4; - repeated EncryptedKeyShare encryptedKeyShares = 5; + uint64 number_of_validators = 4; + repeated EncryptedKeyShare encrypted_key_shares = 5; } diff --git a/proto/fairyring/keyshare/query.proto b/proto/fairyring/keyshare/query.proto index 74ff6a56..baea5e07 100644 --- a/proto/fairyring/keyshare/query.proto +++ b/proto/fairyring/keyshare/query.proto @@ -12,7 +12,6 @@ import "fairyring/keyshare/key_share.proto"; import "fairyring/keyshare/aggregated_key_share.proto"; import "fairyring/keyshare/pub_key.proto"; import "fairyring/keyshare/authorized_address.proto"; -import "fairyring/keyshare/general_key_share.proto"; import "fairyring/keyshare/commitments.proto"; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; @@ -26,42 +25,45 @@ service Query { } + // Commitments queries the lists of active and queued commitments rpc Commitments (QueryCommitmentsRequest) returns (QueryCommitmentsResponse) { option (google.api.http).get = "/fairyring/keyshare/commitments"; } // Queries a ValidatorSet by index. - rpc ValidatorSet (QueryGetValidatorSetRequest) returns (QueryGetValidatorSetResponse) { + rpc ValidatorSet (QueryValidatorSetRequest) returns (QueryValidatorSetResponse) { option (google.api.http).get = "/fairyring/keyshare/validator_set/{index}"; } // Queries a list of ValidatorSet items. - rpc ValidatorSetAll (QueryAllValidatorSetRequest) returns (QueryAllValidatorSetResponse) { + rpc ValidatorSetAll (QueryValidatorSetAllRequest) returns (QueryValidatorSetAllResponse) { option (google.api.http).get = "/fairyring/keyshare/validator_set"; } // Queries a KeyShare by index. - rpc KeyShare (QueryGetKeyShareRequest) returns (QueryGetKeyShareResponse) { - option (google.api.http).get = "/fairyring/keyshare/key_share/{validator}/{blockHeight}"; + rpc KeyShare (QueryKeyShareRequest) returns (QueryKeyShareResponse) { + option (google.api.http).get = "/fairyring/keyshare/key_share/{validator}/{block_height}"; } // Queries a list of KeyShare items. - rpc KeyShareAll (QueryAllKeyShareRequest) returns (QueryAllKeyShareResponse) { + rpc KeyShareAll (QueryKeyShareAllRequest) returns (QueryKeyShareAllResponse) { option (google.api.http).get = "/fairyring/keyshare/key_share"; } // this line is used by starport scaffolding # 2 - // Queries a list of AggregatedKeyShare items. - rpc AggregatedKeyShare (QueryGetAggregatedKeyShareRequest) returns (QueryGetAggregatedKeyShareResponse) { + // AggregatedKeyShare a AggregatedKeyShare item by height. + rpc AggregatedKeyShare (QueryAggregatedKeyShareRequest) returns (QueryAggregatedKeyShareResponse) { option (google.api.http).get = "/fairyring/keyshare/aggregated_key_share/{height}"; } - rpc AggregatedKeyShareAll (QueryAllAggregatedKeyShareRequest) returns (QueryAllAggregatedKeyShareResponse) { + + // AggregatedKeyShareAll Queries a list of AggregatedKeyShare items. + rpc AggregatedKeyShareAll (QueryAggregatedKeyShareAllRequest) returns (QueryAggregatedKeyShareAllResponse) { option (google.api.http).get = "/fairyring/keyshare/aggregated_key_share"; } @@ -72,33 +74,42 @@ service Query { } - // Queries a list of AuthorizedAddress items. - rpc AuthorizedAddress (QueryGetAuthorizedAddressRequest) returns (QueryGetAuthorizedAddressResponse) { + // Queries a AuthorizedAddress item by target. + rpc AuthorizedAddress (QueryAuthorizedAddressRequest) returns (QueryAuthorizedAddressResponse) { option (google.api.http).get = "/fairyring/keyshare/authorized_address/{target}"; } - rpc AuthorizedAddressAll (QueryAllAuthorizedAddressRequest) returns (QueryAllAuthorizedAddressResponse) { + + // Queries a list of AuthorizedAddress items + rpc AuthorizedAddressAll (QueryAuthorizedAddressAllRequest) returns (QueryAuthorizedAddressAllResponse) { option (google.api.http).get = "/fairyring/keyshare/authorized_address"; } - // Queries a list of GeneralKeyShare items. - rpc GeneralKeyShare (QueryGetGeneralKeyShareRequest) returns (QueryGetGeneralKeyShareResponse) { - option (google.api.http).get = "/fairyring/keyshare/general_key_share/{validator}/{idType}/{idValue}"; + // Queries a GeneralKeyShare item by validator address and identity. + rpc GeneralKeyShare (QueryGeneralKeyShareRequest) returns (QueryGeneralKeyShareResponse) { + option (google.api.http).get = "/fairyring/keyshare/general_key_share/{validator}/{id_type}/{id_value}"; } - rpc GeneralKeyShareAll (QueryAllGeneralKeyShareRequest) returns (QueryAllGeneralKeyShareResponse) { + + // Queries a list of GeneralKeyShare items + rpc GeneralKeyShareAll (QueryGeneralKeyShareAllRequest) returns (QueryGeneralKeyShareAllResponse) { option (google.api.http).get = "/fairyring/keyshare/general_key_share"; } - rpc VerifiableRandomness (QueryVerifiableRandomnessQuery) returns (QueryVerifiableRandomnessResponse) { + // Queries verifiable randomness + rpc VerifiableRandomness (QueryVerifiableRandomnessRequest) returns (QueryVerifiableRandomnessResponse) { option (google.api.http).get = "/fairyring/keyshare/verifiable_randomness"; } } -message QueryVerifiableRandomnessQuery {} +// QueryVerifiableRandomnessRequest is the request type for +// the Query/VerifiableRandomness method +message QueryVerifiableRandomnessRequest {} +// QueryVerifiableRandomnessResponse is the response type for +// the Query/VerifiableRandomness method message QueryVerifiableRandomnessResponse { string randomness = 1; uint64 round = 2; @@ -114,106 +125,129 @@ message QueryParamsResponse { Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } +// QueryCommitmentsRequest is request type for the Query/Commitments RPC method. message QueryCommitmentsRequest {} +// QueryCommitmentsResponse is response type for the Query/Commitments RPC method message QueryCommitmentsResponse { - Commitments activeCommitments = 1; - Commitments queuedCommitments = 2; + Commitments active_commitments = 1; + Commitments queued_commitments = 2; } -message QueryGetValidatorSetRequest { +// QueryValidatorSetRequest is request type for the Query/ValidatorSet RPC method. +message QueryValidatorSetRequest { string index = 1; } -message QueryGetValidatorSetResponse { - ValidatorSet validatorSet = 1 [(gogoproto.nullable) = false]; +// QueryValidatorSetResponse is response type for the Query/ValidatorSet RPC method. +message QueryValidatorSetResponse { + ValidatorSet validator_set = 1 [(gogoproto.nullable) = false]; } -message QueryAllValidatorSetRequest { +// QueryValidatorSetAllRequest is request type for the Query/ValidatorSetAll RPC method. +message QueryValidatorSetAllRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } -message QueryAllValidatorSetResponse { - repeated ValidatorSet validatorSet = 1 [(gogoproto.nullable) = false]; +// QueryValidatorSetAllResponse is response type for the Query/ValidatorSetAll RPC method. +message QueryValidatorSetAllResponse { + repeated ValidatorSet validator_set = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } -message QueryGetKeyShareRequest { +// QueryKeyShareRequest is request type for the Query/KeyShare RPC method. +message QueryKeyShareRequest { string validator = 1; - uint64 blockHeight = 2; + uint64 block_height = 2; } -message QueryGetKeyShareResponse { - KeyShare keyShare = 1 [(gogoproto.nullable) = false]; +// QueryKeyShareResponse is response type for the Query/KeyShare RPC method. +message QueryKeyShareResponse { + KeyShare key_share = 1 [(gogoproto.nullable) = false]; } -message QueryAllKeyShareRequest { +// QueryKeyShareAllRequest is request type for the Query/KeyShareAll RPC method. +message QueryKeyShareAllRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } -message QueryAllKeyShareResponse { - repeated KeyShare keyShare = 1 [(gogoproto.nullable) = false]; +// QueryKeyShareAllResponse is response type for the Query/KeyShareAll RPC method. +message QueryKeyShareAllResponse { + repeated KeyShare key_share = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } -// this line is used by starport scaffolding # 3 -message QueryGetAggregatedKeyShareRequest { +// QueryAggregatedKeyShareRequest is request type for the Query/AggregatedKeyShare RPC method. +message QueryAggregatedKeyShareRequest { uint64 height = 1; } -message QueryGetAggregatedKeyShareResponse { - AggregatedKeyShare aggregatedKeyShare = 1 [(gogoproto.nullable) = false]; +// QueryAggregatedKeyShareResponse is response type for the Query/AggregatedKeyShare RPC method. +message QueryAggregatedKeyShareResponse { + AggregatedKeyShare aggregated_key_share = 1 [(gogoproto.nullable) = false]; } -message QueryAllAggregatedKeyShareRequest { +// QueryAggregatedKeyShareAllRequest is request type for the Query/AggregatedKeyShareAll RPC method. +message QueryAggregatedKeyShareAllRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } -message QueryAllAggregatedKeyShareResponse { - repeated AggregatedKeyShare aggregatedKeyShare = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; +// QueryAggregatedKeyShareAllResponse is response type for the Query/AggregatedKeyShareAll RPC method. +message QueryAggregatedKeyShareAllResponse { + repeated AggregatedKeyShare aggregated_key_share = 1 [(gogoproto.nullable) = false]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } +// QueryPubKeyRequest is request type for the Query/PubKey RPC method. message QueryPubKeyRequest {} +// QueryPubKeyResponse is response type for the Query/PubKey RPC method. message QueryPubKeyResponse { - ActivePubKey activePubKey = 1 [(gogoproto.nullable) = false]; - QueuedPubKey queuedPubKey = 2 [(gogoproto.nullable) = false]; + ActivePubKey active_pub_key = 1 [(gogoproto.nullable) = false]; + QueuedPubKey queued_pub_key = 2 [(gogoproto.nullable) = false]; } -message QueryGetAuthorizedAddressRequest { +// QueryAuthorizedAddressRequest is request type for the Query/AuthorizedAddress RPC method. +message QueryAuthorizedAddressRequest { string target = 1; } -message QueryGetAuthorizedAddressResponse { - AuthorizedAddress authorizedAddress = 1 [(gogoproto.nullable) = false]; +// QueryAuthorizedAddressResponse is response type for the Query/AuthorizedAddress RPC method. +message QueryAuthorizedAddressResponse { + AuthorizedAddress authorized_address = 1 [(gogoproto.nullable) = false]; } -message QueryAllAuthorizedAddressRequest { +// QueryAuthorizedAddressAllRequest is request type for the Query/AuthorizedAddressAll RPC method. +message QueryAuthorizedAddressAllRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } -message QueryAllAuthorizedAddressResponse { - repeated AuthorizedAddress authorizedAddress = 1 [(gogoproto.nullable) = false]; +// QueryAuthorizedAddressAllResponse is response type for the Query/AuthorizedAddressAll RPC method. +message QueryAuthorizedAddressAllResponse { + repeated AuthorizedAddress authorized_address = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } -message QueryGetGeneralKeyShareRequest { +// QueryGeneralKeyShareRequest is request type for the Query/GeneralKeyShare RPC method. +message QueryGeneralKeyShareRequest { string validator = 1; - string idType = 2; - string idValue = 3; + string id_type = 2; + string id_value = 3; } -message QueryGetGeneralKeyShareResponse { - GeneralKeyShare generalKeyShare = 1 [(gogoproto.nullable) = false]; +// QueryGeneralKeyShareResponse is response type for the Query/GeneralKeyShare RPC method. +message QueryGeneralKeyShareResponse { + GeneralKeyShare general_key_share = 1 [(gogoproto.nullable) = false]; } -message QueryAllGeneralKeyShareRequest { +// QueryGeneralKeyShareAllRequest is request type for the Query/GeneralKeyShareAll RPC method. +message QueryGeneralKeyShareAllRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } -message QueryAllGeneralKeyShareResponse { - repeated GeneralKeyShare generalKeyShare = 1 [(gogoproto.nullable) = false]; +// QueryGeneralKeyShareAllResponse is response type for the Query/GeneralKeyShareAll RPC method. +message QueryGeneralKeyShareAllResponse { + repeated GeneralKeyShare general_key_share = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } diff --git a/proto/fairyring/keyshare/requested_keyshare.proto b/proto/fairyring/keyshare/requested_keyshare.proto index 4f35145c..59485907 100644 --- a/proto/fairyring/keyshare/requested_keyshare.proto +++ b/proto/fairyring/keyshare/requested_keyshare.proto @@ -5,6 +5,7 @@ import "fairyring/common/shared_types.proto"; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; +// KeyShareRequest defines the storage structure for general keyshare requests message KeyShareRequest { string identity = 1; string pubkey = 2; @@ -16,20 +17,26 @@ message KeyShareRequest { bool sent = 8; } +// IBCInfo defines the structure to verify request for +// aggregated and encrypted keyshares in case the request was made over IBC message IBCInfo { - string ClientID = 1; - string ConnectionID = 2; - string ChannelID = 3; - string PortID = 4; + string client_id = 1; + string connection_id = 2; + string channel_id = 3; + string port_id = 4; } +// CounterPartyIBCInfo defines the structure to send aggregated +// and encrypted keyshares if the request was made over IBC message CounterPartyIBCInfo { - string ClientID = 1; - string ConnectionID = 2; - string ChannelID = 3; - string PortID = 4; + string client_id = 1; + string connection_id = 2; + string channel_id = 3; + string port_id = 4; } +// PrivateKeyshareRequest defines the stroage structure for private +// encrypted and unaggregated keyshare requests message PrivateKeyshareRequest { string identity = 1; string pubkey = 2; diff --git a/proto/fairyring/keyshare/tx.proto b/proto/fairyring/keyshare/tx.proto index 6daddd09..9f822fd6 100644 --- a/proto/fairyring/keyshare/tx.proto +++ b/proto/fairyring/keyshare/tx.proto @@ -7,7 +7,6 @@ import "cosmos/msg/v1/msg.proto"; import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; import "fairyring/keyshare/params.proto"; -import "fairyring/keyshare/general_key_share.proto"; import "fairyring/keyshare/pub_key.proto"; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; @@ -19,17 +18,44 @@ service Msg { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. rpc UpdateParams (MsgUpdateParams ) returns (MsgUpdateParamsResponse ); + + // RegisterValidator defines a operation to register validator which + // is then eligible to participate in sending keyshares rpc RegisterValidator (MsgRegisterValidator ) returns (MsgRegisterValidatorResponse ); + + // DeRegisterValidator defines an operation to de-register + // a registered validator rpc DeRegisterValidator (MsgDeRegisterValidator) returns (MsgDeRegisterValidatorResponse); + + // SendKeyshare defines an operation to submit keyshares + // every block from registered validators rpc SendKeyshare (MsgSendKeyshare ) returns (MsgSendKeyshareResponse ); - // this line is used by starport scaffolding # proto/tx/rpc + // CreateLatestPubKey defines an operation to add a + // public key to the chain (can only be done by an authorized address) rpc CreateLatestPubKey (MsgCreateLatestPubKey ) returns (MsgCreateLatestPubKeyResponse ); + + // OverrideLatestPubKey defines an operation to override the current active pubkey rpc OverrideLatestPubKey (MsgOverrideLatestPubKey ) returns (MsgOverrideLatestPubKeyResponse ); + + // CreateAuthorizedAddress defines an operation to mark an address + // as authorized to create and/or update pubkeys on the chain rpc CreateAuthorizedAddress (MsgCreateAuthorizedAddress) returns (MsgCreateAuthorizedAddressResponse); + + // UpdateAuthorizedAddress defines an operation to update the + // list of authorized addresses rpc UpdateAuthorizedAddress (MsgUpdateAuthorizedAddress) returns (MsgUpdateAuthorizedAddressResponse); + + // DeleteAuthorizedAddress defines an operation to revoke the + // authorization of a previously authorized address rpc DeleteAuthorizedAddress (MsgDeleteAuthorizedAddress) returns (MsgDeleteAuthorizedAddressResponse); + + // CreateGeneralKeyShare defines an operation to submit a + // general keyshare from a registered validator rpc CreateGeneralKeyShare (MsgCreateGeneralKeyShare ) returns (MsgCreateGeneralKeyShareResponse ); + + // SubmitEncryptedKeyshare defines an operation to submit + // an encrypted keyshare from a registered validator rpc SubmitEncryptedKeyshare (MsgSubmitEncryptedKeyshare) returns (MsgSubmitEncryptedKeyshareResponse); } // MsgUpdateParams is the Msg/UpdateParams request type. @@ -46,126 +72,153 @@ message MsgUpdateParams { Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } -// MsgUpdateParamsResponse defines the response structure for executing a -// MsgUpdateParams message. +// MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message. message MsgUpdateParamsResponse {} +// MsgRegisterValidator is the Msg/RegisterValidator request type. message MsgRegisterValidator { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; } +// MsgRegisterValidatorResponse defines the response structure for +// executing a MsgRegisterValidator message. message MsgRegisterValidatorResponse { string creator = 1; } +// MsgDeRegisterValidator is the Msg/DeRegisterValidator request type. message MsgDeRegisterValidator { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; } +// MsgDeRegisterValidatorResponse defines the response structure for +// executing a MsgDeRegisterValidator message. message MsgDeRegisterValidatorResponse { string creator = 1; } +// MsgSendKeyshare is the Msg/SendKeyshare request type. message MsgSendKeyshare { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string message = 2; - uint64 keyShareIndex = 3; - uint64 blockHeight = 4; + uint64 key_share_index = 3; + uint64 block_height = 4; } +// MsgSendKeyshareResponse defines the response structure for +// executing a MsgSendKeyshare message. message MsgSendKeyshareResponse { string creator = 1; string keyshare = 2; - uint64 keyshareIndex = 3; - uint64 blockHeight = 4; - uint64 receivedBlockHeight = 5; + uint64 keyshare_index = 3; + uint64 block_height = 4; + uint64 received_block_height = 5; bool success = 6; - string errorMessage = 7; + string error_message = 7; } -// this line is used by starport scaffolding # proto/tx/message +// MsgCreateLatestPubKey is the Msg/CreateLatestPubKey request type. message MsgCreateLatestPubKey { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - string publicKey = 2; - repeated string commitments = 3; - uint64 numberOfValidators = 4; - repeated EncryptedKeyShare encryptedKeyShares = 5; + string creator = 1; + string public_key = 2; + repeated string commitments = 3; + uint64 number_of_validators = 4; + repeated EncryptedKeyShare encrypted_key_shares = 5; } +// MsgCreateLatestPubKeyResponse defines the response structure for +// executing a MsgCreateLatestPubKey message. message MsgCreateLatestPubKeyResponse {} +// MsgOverrideLatestPubKey is the Msg/OverrideLatestPubKey request type. message MsgOverrideLatestPubKey { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - string publicKey = 2; - repeated string commitments = 3; - uint64 numberOfValidators = 4; - repeated EncryptedKeyShare encryptedKeyShares = 5; + string creator = 1; + string public_key = 2; + repeated string commitments = 3; + uint64 number_of_validators = 4; + repeated EncryptedKeyShare encrypted_key_shares = 5; } +// MsgOverrideLatestPubKeyResponse defines the response structure for +// executing a MsgOverrideLatestPubKey message. message MsgOverrideLatestPubKeyResponse {} +// MsgCreateAuthorizedAddress is the Msg/CreateAuthorizedAddress request type. message MsgCreateAuthorizedAddress { option (cosmos.msg.v1.signer) = "creator"; string target = 1; string creator = 2; } +// MsgCreateAuthorizedAddressResponse defines the response structure for +// executing a MsgCreateAuthorizedAddress message. message MsgCreateAuthorizedAddressResponse {} +// MsgUpdateAuthorizedAddress is the Msg/UpdateAuthorizedAddress request type. message MsgUpdateAuthorizedAddress { option (cosmos.msg.v1.signer) = "creator"; string target = 1; - bool isAuthorized = 2; + bool is_authorized = 2; string creator = 3; } +// MsgUpdateAuthorizedAddressResponse defines the response structure for +// executing a MsgUpdateAuthorizedAddress message. message MsgUpdateAuthorizedAddressResponse {} +// MsgDeleteAuthorizedAddress is the Msg/DeleteAuthorizedAddress request type. message MsgDeleteAuthorizedAddress { option (cosmos.msg.v1.signer) = "creator"; string target = 1; string creator = 2; } +// MsgDeleteAuthorizedAddressResponse defines the response structure for +// executing a MsgDeleteAuthorizedAddress message. message MsgDeleteAuthorizedAddressResponse {} +// MsgCreateGeneralKeyShare is the Msg/CreateGeneralKeyShare request type. message MsgCreateGeneralKeyShare { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - string idType = 2; - string idValue = 3; - string keyShare = 4; - uint64 keyShareIndex = 5; - uint64 receivedTimestamp = 6; - uint64 receivedBlockHeight = 7; + string creator = 1; + string id_type = 2; + string id_value = 3; + string key_share = 4; + uint64 key_share_index = 5; + uint64 received_timestamp = 6; + uint64 received_block_height = 7; } +// MsgCreateGeneralKeyShareResponse defines the response structure for +// executing a MsgCreateGeneralKeyShare message. message MsgCreateGeneralKeyShareResponse { - string creator = 1; - string idType = 2; - string idValue = 3; - string keyShare = 4; - uint64 keyShareIndex = 5; - uint64 receivedBlockHeight = 6; - bool success = 7; - string errorMessage = 8; + string creator = 1; + string id_type = 2; + string id_value = 3; + string key_share = 4; + uint64 key_share_index = 5; + uint64 received_block_height = 6; + bool success = 7; + string error_message = 8; } +// MsgSubmitEncryptedKeyshare is the Msg/SubmitEncryptedKeyshare request type. message MsgSubmitEncryptedKeyshare { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string identity = 2; - string encryptedKeyshare = 3; - uint64 keyShareIndex = 4; - uint64 receivedTimestamp = 5; - uint64 receivedBlockHeight = 6; + string encrypted_keyshare = 3; + uint64 key_share_index = 4; + uint64 received_timestamp = 5; + uint64 received_block_height = 6; string requester = 7; } +// MsgSubmitEncryptedKeyshareResponse defines the response structure for +// executing a MsgSubmitEncryptedKeyshare message. message MsgSubmitEncryptedKeyshareResponse {} - diff --git a/proto/fairyring/keyshare/validator_set.proto b/proto/fairyring/keyshare/validator_set.proto index 02801cc3..75817782 100644 --- a/proto/fairyring/keyshare/validator_set.proto +++ b/proto/fairyring/keyshare/validator_set.proto @@ -3,10 +3,12 @@ package fairyring.keyshare; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; +// ValidatorSet defines the structure for storing the list of +// validators who will be eligible to send keyshares message ValidatorSet { string index = 1; string validator = 2; - string consAddr = 3; - bool isActive = 4; + string cons_addr = 3; + bool is_active = 4; } diff --git a/proto/fairyring/pep/aggregated_key_share.proto b/proto/fairyring/pep/aggregated_key_share.proto index 04381c07..f425f9f2 100644 --- a/proto/fairyring/pep/aggregated_key_share.proto +++ b/proto/fairyring/pep/aggregated_key_share.proto @@ -3,9 +3,10 @@ package fairyring.pep; option go_package = "github.com/Fairblock/fairyring/x/pep/types"; +// AggregatedKeyShare defines the structure to store +// the aggregated keyshare of a particular identity message AggregatedKeyShare { uint64 height = 1; string data = 2; string creator = 3; } - diff --git a/proto/fairyring/pep/encrypted_tx.proto b/proto/fairyring/pep/encrypted_tx.proto index 822fdbaa..e1d4376d 100644 --- a/proto/fairyring/pep/encrypted_tx.proto +++ b/proto/fairyring/pep/encrypted_tx.proto @@ -6,33 +6,42 @@ import "cosmos/base/v1beta1/coin.proto"; option go_package = "github.com/Fairblock/fairyring/x/pep/types"; +// EncryptedTx defines the structure to store an encrypted transaction +// by execution height message EncryptedTx { - uint64 targetHeight = 1; + uint64 target_height = 1; uint64 index = 2; string data = 3; string creator = 4; - cosmos.base.v1beta1.Coin chargedGas = 5; - uint64 processedAtChainHeight = 6; + cosmos.base.v1beta1.Coin charged_gas = 5; + uint64 processed_at_chain_height = 6; bool expired = 7; } +// EncryptedTxArray defines a list of EncryptedTx message EncryptedTxArray { - repeated EncryptedTx encryptedTx = 1 [(gogoproto.nullable) = false]; + repeated EncryptedTx encrypted_tx = 1 [(gogoproto.nullable) = false]; } +// GeneralEncryptedTx defines the structure to store a +// general encrypted transaction by identity message GeneralEncryptedTx { string identity = 1; uint64 index = 2; string data = 3; string creator = 4; - cosmos.base.v1beta1.Coin chargedGas = 5; + cosmos.base.v1beta1.Coin charged_gas = 5; } +// GeneralEncryptedTxArray defines a list of GeneralEncryptedTx message GeneralEncryptedTxArray { - repeated GeneralEncryptedTx encryptedTx = 1 [(gogoproto.nullable) = false]; + repeated GeneralEncryptedTx encrypted_tx = 1 [(gogoproto.nullable) = false]; } -message GenEncTxExecutionQueue { +// IdentityExecutionQueue defines the structure to queue up +// identities that have aggregated keyshares available and +// are ready to execute any associated contracts or encrypted transactions +message IdentityExecutionQueue { string creator = 1; string request_id = 2; string identity = 3; diff --git a/proto/fairyring/pep/genesis.proto b/proto/fairyring/pep/genesis.proto index 3a30f119..afcf00bf 100644 --- a/proto/fairyring/pep/genesis.proto +++ b/proto/fairyring/pep/genesis.proto @@ -17,16 +17,13 @@ option go_package = "github.com/Fairblock/fairyring/x/pep/types"; message GenesisState { // params defines all the parameters of the module. - Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - string port_id = 2; - repeated EncryptedTxArray encryptedTxArray = 3 [(gogoproto.nullable) = false] ; - repeated PepNonce pepNonceList = 4 [(gogoproto.nullable) = false] ; - - // this line is used by starport scaffolding # genesis/proto/state - repeated AggregatedKeyShare aggregatedKeyShareList = 6 [(gogoproto.nullable) = false]; - fairyring.common.ActivePublicKey activePubKey = 7 [(gogoproto.nullable) = false]; - fairyring.common.QueuedPublicKey queuedPubKey = 8 [(gogoproto.nullable) = false]; - uint64 request_count = 9; - repeated RequestId requestIdList = 10 [(gogoproto.nullable) = false]; + Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + string port_id = 2; + repeated EncryptedTxArray encryptedTxArray = 3 [(gogoproto.nullable) = false] ; + repeated PepNonce pepNonceList = 4 [(gogoproto.nullable) = false] ; + repeated AggregatedKeyShare aggregatedKeyShareList = 6 [(gogoproto.nullable) = false]; + fairyring.common.ActivePublicKey activePubKey = 7 [(gogoproto.nullable) = false]; + fairyring.common.QueuedPublicKey queuedPubKey = 8 [(gogoproto.nullable) = false]; + uint64 request_count = 9; + repeated RequestId requestIdList = 10 [(gogoproto.nullable) = false]; } - diff --git a/proto/fairyring/pep/params.proto b/proto/fairyring/pep/params.proto index dd931c6e..47378201 100644 --- a/proto/fairyring/pep/params.proto +++ b/proto/fairyring/pep/params.proto @@ -11,8 +11,6 @@ option go_package = "github.com/Fairblock/fairyring/x/pep/types"; message Params { option (amino.name) = "fairyring/x/pep/Params"; // option (gogoproto.equal) = true; - - string keyshare_channel_id = 1 [(gogoproto.moretags) = "yaml:\"keyshare_channel_id\""]; bool is_source_chain = 2 [(gogoproto.moretags) = "yaml:\"is_source_chain\""]; repeated TrustedCounterParty trusted_counter_parties = 3; @@ -21,6 +19,9 @@ message Params { cosmos.base.v1beta1.Coin private_keyshare_price = 6 [(gogoproto.moretags) = "yaml:\"private_keyshare_price\""]; } +// TrustedCounterParty defines the structure to store the ibc info +// of the source chain (fairyring) to reliably fetch active keys and +// aggregated/encrypted keyshares message TrustedCounterParty { string client_id = 1; string connection_id = 2; diff --git a/proto/fairyring/pep/pep_nonce.proto b/proto/fairyring/pep/pep_nonce.proto index 154095bb..51734d8d 100644 --- a/proto/fairyring/pep/pep_nonce.proto +++ b/proto/fairyring/pep/pep_nonce.proto @@ -3,9 +3,10 @@ package fairyring.pep; option go_package = "github.com/Fairblock/fairyring/x/pep/types"; +// PepNonce defines the nonce of an account to send encrypted transactions. +// It is incremanted seperately from the nonce maintained by the auth module message PepNonce { string address = 1; uint64 nonce = 2; - } diff --git a/proto/fairyring/pep/query.proto b/proto/fairyring/pep/query.proto index db71194a..8fe2f7ad 100644 --- a/proto/fairyring/pep/query.proto +++ b/proto/fairyring/pep/query.proto @@ -9,9 +9,7 @@ import "cosmos/base/query/v1beta1/pagination.proto"; import "fairyring/pep/params.proto"; import "fairyring/pep/encrypted_tx.proto"; import "fairyring/pep/pep_nonce.proto"; -import "fairyring/pep/aggregated_key_share.proto"; import "fairyring/common/shared_types.proto"; -import "cosmos/base/v1beta1/coin.proto"; option go_package = "github.com/Fairblock/fairyring/x/pep/types"; @@ -25,20 +23,20 @@ service Query { } // Queries a EncryptedTx by index. - rpc EncryptedTx (QueryGetEncryptedTxRequest) returns (QueryGetEncryptedTxResponse) { - option (google.api.http).get = "/fairyring/pep/encrypted_tx/{targetHeight}/{index}"; + rpc EncryptedTx (QueryEncryptedTxRequest) returns (QueryEncryptedTxResponse) { + option (google.api.http).get = "/fairyring/pep/encrypted_tx/{target_height}/{index}"; } // Queries a list of EncryptedTx items. - rpc EncryptedTxAll (QueryAllEncryptedTxRequest) returns (QueryAllEncryptedTxResponse) { + rpc EncryptedTxAll (QueryEncryptedTxAllRequest) returns (QueryEncryptedTxAllResponse) { option (google.api.http).get = "/fairyring/pep/encrypted_tx"; } // Queries a list of EncryptedTx items. - rpc EncryptedTxAllFromHeight (QueryAllEncryptedTxFromHeightRequest) returns (QueryAllEncryptedTxFromHeightResponse) { - option (google.api.http).get = "/fairyring/pep/encrypted_tx/{targetHeight}"; + rpc EncryptedTxAllFromHeight (QueryEncryptedTxAllFromHeightRequest) returns (QueryEncryptedTxAllFromHeightResponse) { + option (google.api.http).get = "/fairyring/pep/encrypted_tx/{target_height}"; } @@ -49,34 +47,38 @@ service Query { } // Queries a PepNonce by index. - rpc PepNonce (QueryGetPepNonceRequest) returns (QueryGetPepNonceResponse) { + rpc PepNonce (QueryPepNonceRequest) returns (QueryPepNonceResponse) { option (google.api.http).get = "/fairyring/pep/pep_nonce/{address}"; } // Queries a list of PepNonce items. - rpc PepNonceAll (QueryAllPepNonceRequest) returns (QueryAllPepNonceResponse) { + rpc PepNonceAll (QueryPepNonceAllRequest) returns (QueryPepNonceAllResponse) { option (google.api.http).get = "/fairyring/pep/pep_nonce"; } // Queries the public keys - rpc PubKey (QueryPubKeyRequest ) returns (QueryPubKeyResponse ) { + rpc PubKey (QueryPubKeyRequest) returns (QueryPubKeyResponse) { option (google.api.http).get = "/fairyring/pep/pub_key"; } - rpc KeyshareReq (QueryKeyshareRequest ) returns (QueryKeyshareResponse ) { + + // Queries a Keyshare request by identity + rpc KeyshareReq (QueryKeyshareReqRequest) returns (QueryKeyshareReqResponse) { option (google.api.http).get = "/fairyring/pep/keyshare/{req_id}"; } - rpc KeyshareReqAll (QueryAllKeyshareRequest) returns (QueryAllKeyshareResponse) { + + // queries a list of keyshare requests + rpc KeyshareReqAll (QueryKeyshareReqAllRequest) returns (QueryKeyshareReqAllResponse) { option (google.api.http).get = "/fairyring/pep/keyshare"; } // Queries a list of ShowPrivateKeyshareReq items. - rpc ShowPrivateKeyshareReq (QueryShowPrivateKeyshareReqRequest) returns (QueryShowPrivateKeyshareReqResponse) { - option (google.api.http).get = "/Fairblock/fairyring/pep/show_private_keyshare_req/{reqId}"; + rpc PrivateKeyshareReq (QueryPrivateKeyshareReqRequest) returns (QueryPrivateKeyshareReqResponse) { + option (google.api.http).get = "/Fairblock/fairyring/pep/show_private_keyshare_req/{req_id}"; } @@ -86,6 +88,7 @@ service Query { } } + // QueryParamsRequest is request type for the Query/Params RPC method. message QueryParamsRequest {} @@ -96,97 +99,118 @@ message QueryParamsResponse { Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } -message QueryKeyshareRequest { +// QueryKeyshareReqRequest is request type for the Query/KeyshareReq RPC method. +message QueryKeyshareReqRequest { string req_id = 1; } -message QueryKeyshareResponse { - GenEncTxExecutionQueue keyshare = 1; +// QueryKeyshareReqResponse is response type for the Query/KeyshareReq RPC method. +message QueryKeyshareReqResponse { + IdentityExecutionQueue keyshare = 1; } -message QueryAllKeyshareRequest { +// QueryKeyshareReqAllRequest is request type for the Query/KeyshareReqAll RPC method. +message QueryKeyshareReqAllRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } -message QueryAllKeyshareResponse { - repeated GenEncTxExecutionQueue keyshares = 1; - cosmos.base.query.v1beta1.PageResponse pagination = 2; +// QueryKeyshareReqAllResponse is response type for the Query/KeyshareReqAll RPC method. +message QueryKeyshareReqAllResponse { + repeated IdentityExecutionQueue keyshares = 1; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } -message QueryGetEncryptedTxRequest { - uint64 targetHeight = 1; +// QueryEncryptedTxRequest is request type for the Query/EncryptedTx RPC method. +message QueryEncryptedTxRequest { + uint64 target_height = 1; uint64 index = 2; } -message QueryGetEncryptedTxResponse { - EncryptedTx encryptedTx = 1 [(gogoproto.nullable) = false]; +// QueryEncryptedTxResponse is response type for the Query/EncryptedTx RPC method. +message QueryEncryptedTxResponse { + EncryptedTx encrypted_tx = 1 [(gogoproto.nullable) = false]; } -message QueryAllEncryptedTxRequest { +// QueryEncryptedTxAllRequest is request type for the Query/EncryptedTxAll RPC method. +message QueryEncryptedTxAllRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } -message QueryAllEncryptedTxResponse { - repeated EncryptedTxArray encryptedTxArray = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; +// QueryEncryptedTxAllResponse is response type for the Query/EncryptedTxAll RPC method. +message QueryEncryptedTxAllResponse { + repeated EncryptedTxArray encrypted_tx_array = 1 [(gogoproto.nullable) = false]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } -message QueryAllEncryptedTxFromHeightRequest { - uint64 targetHeight = 1; +// QueryEncryptedTxAllFromHeightRequest is request type for the Query/EncryptedTxAllFromHeight RPC method. +message QueryEncryptedTxAllFromHeightRequest { + uint64 target_height = 1; } -message QueryAllEncryptedTxFromHeightResponse { - EncryptedTxArray encryptedTxArray = 1 [(gogoproto.nullable) = false]; +// QueryEncryptedTxAllFromHeightResponse is response type for the Query/EncryptedTxAllFromHeight RPC method. +message QueryEncryptedTxAllFromHeightResponse { + EncryptedTxArray encrypted_tx_array = 1 [(gogoproto.nullable) = false]; } +// QueryLatestHeightRequest is request type for the Query/LatestHeight RPC method. message QueryLatestHeightRequest {} +// QueryLatestHeightResponse is response type for the Query/LatestHeight RPC method. message QueryLatestHeightResponse { uint64 height = 1; } -message QueryGetPepNonceRequest { +// QueryPepNonceRequest is request type for the Query/PepNonce RPC method. +message QueryPepNonceRequest { string address = 1; } -message QueryGetPepNonceResponse { - PepNonce pepNonce = 1 [(gogoproto.nullable) = false]; +// QueryPepNonceResponse is response type for the Query/PepNonce RPC method. +message QueryPepNonceResponse { + PepNonce pep_nonce = 1 [(gogoproto.nullable) = false]; } -message QueryAllPepNonceRequest { +// QueryPepNonceAllRequest is request type for the Query/PepNonceAll RPC method. +message QueryPepNonceAllRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } -message QueryAllPepNonceResponse { - repeated PepNonce pepNonce = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; +// QueryPepNonceAllResponse is response type for the Query/PepNonceAll RPC method. +message QueryPepNonceAllResponse { + repeated PepNonce pep_nonce = 1 [(gogoproto.nullable) = false]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } +// QueryPubKeyRequest is request type for the Query/PubKey RPC method. message QueryPubKeyRequest {} +// QueryPubKeyResponse is response type for the Query/PubKey RPC method. message QueryPubKeyResponse { - fairyring.common.ActivePublicKey activePubKey = 1 [(gogoproto.nullable) = false]; - fairyring.common.QueuedPublicKey queuedPubKey = 2 [(gogoproto.nullable) = false]; + fairyring.common.ActivePublicKey active_pub_key = 1 [(gogoproto.nullable) = false]; + fairyring.common.QueuedPublicKey queued_pub_key = 2 [(gogoproto.nullable) = false]; } -message QueryShowPrivateKeyshareReqRequest { - string reqId = 1; +// QueryPrivateKeyshareReqRequest is request type for the Query/PrivateKeyshareReq RPC method. +message QueryPrivateKeyshareReqRequest { + string req_id = 1; } -message QueryShowPrivateKeyshareReqResponse { +// QueryPrivateKeyshareReqResponse is response type for the Query/PrivateKeyshareReq RPC method. +message QueryPrivateKeyshareReqResponse { string creator = 1; string req_id = 2; string pubkey = 3; repeated fairyring.common.EncryptedKeyshare encrypted_keyshares = 5; } +// QueryDecryptDataRequest is request type for the Query/DecryptData RPC method. message QueryDecryptDataRequest { string pubkey = 1; string aggr_keyshare = 2; string encrypted_data = 3; } +// QueryDecryptDataResponse is response type for the Query/DecryptData RPC method. message QueryDecryptDataResponse { string decrypted_data = 1; } - diff --git a/proto/fairyring/pep/request_id.proto b/proto/fairyring/pep/request_id.proto index fd04d48c..4a72894c 100644 --- a/proto/fairyring/pep/request_id.proto +++ b/proto/fairyring/pep/request_id.proto @@ -6,11 +6,15 @@ import "fairyring/common/shared_types.proto"; option go_package = "github.com/Fairblock/fairyring/x/pep/types"; +// RequestId defines the structure for storing request ids +// that have already been registered to prevent overlap message RequestId { string creator = 1; - string reqId = 2; + string req_id = 2; } +// PrivateRequest defines the structure for storing private +// keyshare requests along with the unaggregated encrypted keyshares message PrivateRequest { string creator = 1; string req_id = 2; @@ -18,16 +22,22 @@ message PrivateRequest { repeated fairyring.common.EncryptedKeyshare encrypted_keyshares = 5; } +// ContractDetails defines the structure to store the details of a +// contract that has been registered to execute automatically when +// the identity associated with it has an aggregate keyshare available message ContractDetails { string registrar = 1; string contract_address = 2; } +// RegisteredContract defines the structure to store the list of +// contracts that have been registered with a particular identity message RegisteredContract { string identity = 1; repeated ContractDetails contracts = 2; } +// ExecuteContractMsg defines the structure to callback registered contracts message ExecuteContractMsg { string identity = 1; string pubkey = 2; diff --git a/proto/fairyring/pep/tx.proto b/proto/fairyring/pep/tx.proto index 9fcf4b9e..0ac4f321 100644 --- a/proto/fairyring/pep/tx.proto +++ b/proto/fairyring/pep/tx.proto @@ -10,8 +10,6 @@ import "google/protobuf/duration.proto"; // this line is used by starport scaffolding # proto/tx/import import "gogoproto/gogo.proto"; import "fairyring/pep/params.proto"; -import "fairyring/pep/aggregated_key_share.proto"; -import "cosmos/base/v1beta1/coin.proto"; option go_package = "github.com/Fairblock/fairyring/x/pep/types"; @@ -22,16 +20,45 @@ service Msg { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. rpc UpdateParams (MsgUpdateParams ) returns (MsgUpdateParamsResponse ); + + // SubmitEncryptedTx defines an operation to submit an + // encrypted transaction for a particular target block height rpc SubmitEncryptedTx (MsgSubmitEncryptedTx ) returns (MsgSubmitEncryptedTxResponse); - rpc SubmitGeneralEncryptedTx (MsgSubmitGeneralEncryptedTx) returns (MsgSubmitEncryptedTxResponse); - // this line is used by starport scaffolding # proto/tx/rpc + // SubmitGeneralEncryptedTx defines an operation to submit an + // encrypted transaction for a particular identity + rpc SubmitGeneralEncryptedTx (MsgSubmitGeneralEncryptedTx) returns (MsgSubmitGeneralEncryptedTxResponse); + + // CreateAggregatedKeyShare defines an operation to submit an + // aggregated keyshare to a destination chain rpc CreateAggregatedKeyShare (MsgCreateAggregatedKeyShare) returns (MsgCreateAggregatedKeyShareResponse); + + // RequestGeneralKeyshare defines an operation to request the + // creation of a new identity to which validators will be required + // to submit keyshares rpc RequestGeneralKeyshare (MsgRequestGeneralKeyshare ) returns (MsgRequestGeneralKeyshareResponse ); + + // GetGeneralKeyshare defines an operation to signal validators to start + // submitting keyshares for a particular identity rpc GetGeneralKeyshare (MsgGetGeneralKeyshare ) returns (MsgGetGeneralKeyshareResponse ); + + // RequestPrivateIdentity defines an operation to request the + // creation of a new identity to which validators will be required + // to submit encrypted keyshares rpc RequestPrivateIdentity (MsgRequestPrivateIdentity ) returns (MsgRequestPrivateIdentityResponse ); + + // GetPrivateKeyshares defines an operation to signal validators to start + // submitting encrypted keyshares for a particular identity rpc GetPrivateKeyshares (MsgGetPrivateKeyshares ) returns (MsgGetPrivateKeysharesResponse ); + + // RegisterContract defines an operation to make an instantiated + // contract eligible to be automatically executed when a particular + // identity has aggregated keyshares available for it rpc RegisterContract (MsgRegisterContract ) returns (MsgRegisterContractResponse ); + + // UnregisterContract defines an operation to remove a registered contract + // from the list of contracts set to be automatically executed when + // aggreagted keyshare is available for a particular identity rpc UnregisterContract (MsgUnregisterContract ) returns (MsgUnregisterContractResponse ); } // MsgUpdateParams is the Msg/UpdateParams request type. @@ -52,13 +79,19 @@ message MsgUpdateParams { // MsgUpdateParams message. message MsgUpdateParamsResponse {} +// MsgSubmitEncryptedTx is the Msg/SubmitEncryptedTx request type. message MsgSubmitEncryptedTx { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string data = 2; - uint64 targetBlockHeight = 3; + uint64 target_block_height = 3; } +// MsgSubmitEncryptedTxResponse defines the response structure for executing a +// MsgSubmitEncryptedTx message. +message MsgSubmitEncryptedTxResponse {} + +// MsgSubmitGeneralEncryptedTx is the Msg/SubmitGeneralEncryptedTx request type. message MsgSubmitGeneralEncryptedTx { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; @@ -66,9 +99,11 @@ message MsgSubmitGeneralEncryptedTx { string req_id = 3; } -message MsgSubmitEncryptedTxResponse {} +// MsgSubmitGeneralEncryptedTxResponse defines the response structure for executing a +// MsgSubmitGeneralEncryptedTx message. +message MsgSubmitGeneralEncryptedTxResponse {} -// this line is used by starport scaffolding # proto/tx/message +// MsgCreateAggregatedKeyShare is the Msg/CreateAggregatedKeyShare request type. message MsgCreateAggregatedKeyShare { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; @@ -76,8 +111,11 @@ message MsgCreateAggregatedKeyShare { string data = 3; } +// MsgCreateAggregatedKeyShareResponse defines the response structure for executing a +// MsgCreateAggregatedKeyShare message. message MsgCreateAggregatedKeyShareResponse {} +// MsgRequestGeneralKeyshare is the Msg/RequestGeneralKeyshare request type. message MsgRequestGeneralKeyshare { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; @@ -85,37 +123,49 @@ message MsgRequestGeneralKeyshare { string req_id = 3; } +// MsgRequestGeneralKeyshareResponse defines the response structure for executing a +// MsgRequestGeneralKeyshare message. message MsgRequestGeneralKeyshareResponse { string req_id = 1; } +// MsgGetGeneralKeyshare is the Msg/GetGeneralKeyshare request type. message MsgGetGeneralKeyshare { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string req_id = 2; } +// MsgGetGeneralKeyshareResponse defines the response structure for executing a +// MsgGetGeneralKeyshare message. message MsgGetGeneralKeyshareResponse {} +// MsgRequestPrivateIdentity is the Msg/RequestPrivateIdentity request type. message MsgRequestPrivateIdentity { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; - string reqId = 2; + string req_id = 2; } +// MsgRequestPrivateIdentityResponse defines the response structure for executing a +// MsgRequestPrivateIdentity message. message MsgRequestPrivateIdentityResponse { string req_id = 1; } +// MsgGetPrivateKeyshares is the Msg/GetPrivateKeyshares request type. message MsgGetPrivateKeyshares { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; - string reqId = 2; + string req_id = 2; string secp_pubkey = 3; } +// MsgGetPrivateKeysharesResponse defines the response structure for executing a +// MsgGetPrivateKeyshares message. message MsgGetPrivateKeysharesResponse {} +// MsgRegisterContract is the Msg/RegisterContract request type. message MsgRegisterContract { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; @@ -123,8 +173,11 @@ message MsgRegisterContract { string identity = 3; } +// MsgRegisterContractResponse defines the response structure for executing a +// MsgRegisterContract message. message MsgRegisterContractResponse {} +// MsgUnregisterContract is the Msg/UnregisterContract request type. message MsgUnregisterContract { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; @@ -132,4 +185,6 @@ message MsgUnregisterContract { string identity = 3; } +// MsgUnregisterContractResponse defines the response structure for executing a +// MsgUnregisterContract message. message MsgUnregisterContractResponse {} \ No newline at end of file diff --git a/x/common/types/shared_types.pb.go b/x/common/types/shared_types.pb.go index e39cb011..81f7cacd 100644 --- a/x/common/types/shared_types.pb.go +++ b/x/common/types/shared_types.pb.go @@ -30,6 +30,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // RequestAggrKeyshare defines a struct for the data payload type RequestAggrKeyshare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + // id can either be a rwquest id or a proposal id + // // Types that are valid to be assigned to Id: // // *RequestAggrKeyshare_ProposalId @@ -130,6 +132,7 @@ func (*RequestAggrKeyshare) XXX_OneofWrappers() []interface{} { } } +// RequestAggrKeyshareResponse defines the response to the RequestAggrKeyshare message type RequestAggrKeyshareResponse struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` @@ -184,6 +187,8 @@ func (m *RequestAggrKeyshareResponse) GetPubkey() string { // GetAggrKeyshare defines a struct for the data payload type GetAggrKeyshare struct { + // id can either be a rwquest id or a proposal id + // // Types that are valid to be assigned to Id: // // *GetAggrKeyshare_ProposalId @@ -277,6 +282,7 @@ func (*GetAggrKeyshare) XXX_OneofWrappers() []interface{} { } } +// GetAggrKeyshareResponse defines the response to the GetAggrKeyshare message type GetAggrKeyshareResponse struct { } @@ -382,6 +388,7 @@ func (m *GetPrivateKeyshare) GetSecpPubkey() string { return "" } +// GetPrivateKeyshareResponse defines the response to the GetPrivateKeyshare message type GetPrivateKeyshareResponse struct { Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"` } @@ -426,8 +433,9 @@ func (m *GetPrivateKeyshareResponse) GetPubkey() string { return "" } +// ActivePublicKey defines the pubkey currently in use type ActivePublicKey struct { - PublicKey string `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"` + PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` Expiry uint64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` } @@ -486,8 +494,10 @@ func (m *ActivePublicKey) GetExpiry() uint64 { return 0 } +// QueuedPublicKey defines the pubkey that (when set) will replace the acive pubkey +// when it expires type QueuedPublicKey struct { - PublicKey string `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"` + PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` Expiry uint64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` } @@ -546,23 +556,25 @@ func (m *QueuedPublicKey) GetExpiry() uint64 { return 0 } -type RequestPrivateKeyshare struct { +// RequestEncryptedKeyshare defines the structure to request for +// encrypted and unaggregated keyshares +type RequestEncryptedKeyshare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (m *RequestPrivateKeyshare) Reset() { *m = RequestPrivateKeyshare{} } -func (m *RequestPrivateKeyshare) String() string { return proto.CompactTextString(m) } -func (*RequestPrivateKeyshare) ProtoMessage() {} -func (*RequestPrivateKeyshare) Descriptor() ([]byte, []int) { +func (m *RequestEncryptedKeyshare) Reset() { *m = RequestEncryptedKeyshare{} } +func (m *RequestEncryptedKeyshare) String() string { return proto.CompactTextString(m) } +func (*RequestEncryptedKeyshare) ProtoMessage() {} +func (*RequestEncryptedKeyshare) Descriptor() ([]byte, []int) { return fileDescriptor_b708507d1b3951ff, []int{8} } -func (m *RequestPrivateKeyshare) XXX_Unmarshal(b []byte) error { +func (m *RequestEncryptedKeyshare) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RequestPrivateKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RequestEncryptedKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RequestPrivateKeyshare.Marshal(b, m, deterministic) + return xxx_messageInfo_RequestEncryptedKeyshare.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -572,32 +584,34 @@ func (m *RequestPrivateKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *RequestPrivateKeyshare) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestPrivateKeyshare.Merge(m, src) +func (m *RequestEncryptedKeyshare) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestEncryptedKeyshare.Merge(m, src) } -func (m *RequestPrivateKeyshare) XXX_Size() int { +func (m *RequestEncryptedKeyshare) XXX_Size() int { return m.Size() } -func (m *RequestPrivateKeyshare) XXX_DiscardUnknown() { - xxx_messageInfo_RequestPrivateKeyshare.DiscardUnknown(m) +func (m *RequestEncryptedKeyshare) XXX_DiscardUnknown() { + xxx_messageInfo_RequestEncryptedKeyshare.DiscardUnknown(m) } -var xxx_messageInfo_RequestPrivateKeyshare proto.InternalMessageInfo +var xxx_messageInfo_RequestEncryptedKeyshare proto.InternalMessageInfo -func (m *RequestPrivateKeyshare) GetCreator() string { +func (m *RequestEncryptedKeyshare) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *RequestPrivateKeyshare) GetRequestId() string { +func (m *RequestEncryptedKeyshare) GetRequestId() string { if m != nil { return m.RequestId } return "" } +// EncryptedKeyshare defines the storage structure for +// the list of encrypted keyshares (unaggregated) type EncryptedKeyshare struct { Requester string `protobuf:"bytes,1,opt,name=requester,proto3" json:"requester,omitempty"` PrivateKeyshares []*IndexedEncryptedKeyshare `protobuf:"bytes,2,rep,name=private_keyshares,json=privateKeyshares,proto3" json:"private_keyshares,omitempty"` @@ -650,6 +664,8 @@ func (m *EncryptedKeyshare) GetPrivateKeyshares() []*IndexedEncryptedKeyshare { return nil } +// IndexedEncryptedKeyshare defines the storage of submitted encrypted +// keyshares along with their indices (can be decrypted and aggregated) type IndexedEncryptedKeyshare struct { EncryptedKeyshareValue string `protobuf:"bytes,1,opt,name=encrypted_keyshare_value,json=encryptedKeyshareValue,proto3" json:"encrypted_keyshare_value,omitempty"` EncryptedKeyshareIndex uint64 `protobuf:"varint,2,opt,name=encrypted_keyshare_index,json=encryptedKeyshareIndex,proto3" json:"encrypted_keyshare_index,omitempty"` @@ -711,7 +727,7 @@ func init() { proto.RegisterType((*GetPrivateKeyshareResponse)(nil), "fairyring.common.GetPrivateKeyshareResponse") proto.RegisterType((*ActivePublicKey)(nil), "fairyring.common.ActivePublicKey") proto.RegisterType((*QueuedPublicKey)(nil), "fairyring.common.QueuedPublicKey") - proto.RegisterType((*RequestPrivateKeyshare)(nil), "fairyring.common.RequestPrivateKeyshare") + proto.RegisterType((*RequestEncryptedKeyshare)(nil), "fairyring.common.RequestEncryptedKeyshare") proto.RegisterType((*EncryptedKeyshare)(nil), "fairyring.common.EncryptedKeyshare") proto.RegisterType((*IndexedEncryptedKeyshare)(nil), "fairyring.common.IndexedEncryptedKeyshare") } @@ -721,45 +737,45 @@ func init() { } var fileDescriptor_b708507d1b3951ff = []byte{ - // 597 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0x41, 0x4f, 0xd5, 0x40, - 0x10, 0xc7, 0xdf, 0x3e, 0x5e, 0x50, 0xe6, 0x25, 0x02, 0xd5, 0x3c, 0xcb, 0x53, 0x0a, 0x3e, 0x2f, - 0xc4, 0xc4, 0x36, 0x41, 0x0f, 0x5e, 0x21, 0x28, 0x10, 0x2e, 0xd0, 0x83, 0x26, 0x5e, 0x9a, 0xb6, - 0x3b, 0x94, 0x0d, 0xa5, 0xbb, 0x6e, 0xb7, 0x48, 0xbf, 0x82, 0x07, 0xe3, 0xd1, 0xef, 0xe3, 0xc5, - 0x23, 0x47, 0x6f, 0x1a, 0xf8, 0x22, 0xa6, 0xed, 0xb6, 0xd0, 0x3e, 0x5e, 0x3c, 0x79, 0xeb, 0xcc, - 0xce, 0xec, 0x7f, 0x7e, 0xb3, 0xd3, 0x81, 0xe7, 0xc7, 0x3e, 0x93, 0xb9, 0x64, 0x49, 0xe4, 0x84, - 0xfc, 0xec, 0x8c, 0x27, 0x4e, 0x7a, 0xe2, 0x4b, 0xa4, 0x9e, 0xca, 0x05, 0xa6, 0xb6, 0x90, 0x5c, - 0x71, 0x63, 0xa9, 0x09, 0xb2, 0xab, 0xa0, 0xb1, 0x15, 0x71, 0x1e, 0xc5, 0xe8, 0x94, 0xe7, 0x41, - 0x76, 0xec, 0xd0, 0x4c, 0xfa, 0x8a, 0xf1, 0xa4, 0xca, 0x18, 0x3f, 0x8a, 0x78, 0xc4, 0xcb, 0x4f, - 0xa7, 0xf8, 0xaa, 0xbc, 0x93, 0x1f, 0x04, 0x1e, 0xba, 0xf8, 0x29, 0xc3, 0x54, 0x6d, 0x45, 0x91, - 0x3c, 0xc0, 0xbc, 0x14, 0x33, 0x4c, 0xb8, 0x17, 0x4a, 0xf4, 0x15, 0x97, 0x26, 0x59, 0x27, 0x1b, - 0x0b, 0x6e, 0x6d, 0x1a, 0xcf, 0x60, 0x28, 0x24, 0x17, 0x3c, 0xf5, 0x63, 0x8f, 0x51, 0xb3, 0x5f, - 0x9c, 0xee, 0xf5, 0x5c, 0xa8, 0x9d, 0xfb, 0xd4, 0x58, 0x03, 0x90, 0xd5, 0x9d, 0x45, 0xc4, 0x9c, - 0x8e, 0x58, 0xd0, 0xbe, 0x7d, 0x6a, 0xec, 0xc1, 0x22, 0xa6, 0x8a, 0x9d, 0xf9, 0x0a, 0xa9, 0x47, - 0x31, 0xf6, 0x73, 0x73, 0xb0, 0x4e, 0x36, 0x86, 0x9b, 0x2b, 0x76, 0x45, 0x61, 0xd7, 0x14, 0xf6, - 0x8e, 0xa6, 0xd8, 0x1e, 0x7c, 0xff, 0xbd, 0x46, 0xdc, 0x07, 0x4d, 0xde, 0x4e, 0x91, 0xb6, 0x3d, - 0x80, 0x3e, 0xa3, 0x93, 0x23, 0x78, 0x72, 0x07, 0x84, 0x8b, 0xa9, 0xe0, 0x49, 0x8a, 0xc6, 0x18, - 0xee, 0x33, 0x8a, 0x89, 0x62, 0x2a, 0xd7, 0x34, 0x8d, 0x6d, 0x8c, 0x60, 0x5e, 0x64, 0xc1, 0x29, - 0xe6, 0x15, 0x89, 0xab, 0xad, 0xc9, 0x67, 0x58, 0xdc, 0xc5, 0x76, 0x4f, 0x3a, 0xe4, 0xe4, 0x9f, - 0xe4, 0xfd, 0x69, 0xf2, 0xdb, 0xa5, 0xcc, 0xb5, 0x4b, 0xd1, 0x2c, 0x2b, 0xf0, 0xb8, 0x23, 0x5c, - 0x73, 0x4c, 0xbe, 0x12, 0x30, 0x76, 0x51, 0x1d, 0x4a, 0x76, 0xee, 0x2b, 0x6c, 0xea, 0x5a, 0x6d, - 0x89, 0x56, 0x80, 0x33, 0x24, 0xfb, 0x1d, 0xfa, 0xa7, 0x50, 0x07, 0xa2, 0xd4, 0xf5, 0xdc, 0x38, - 0x8c, 0x35, 0x18, 0xa6, 0x18, 0x0a, 0x4f, 0x37, 0x68, 0x50, 0x9e, 0x43, 0xe1, 0x3a, 0xac, 0x9a, - 0xf4, 0x1a, 0xc6, 0xd3, 0xf5, 0x34, 0x6d, 0xbf, 0x69, 0x2d, 0x69, 0xb5, 0xd6, 0x87, 0xc5, 0xad, - 0x50, 0xb1, 0x73, 0x3c, 0xcc, 0x82, 0x98, 0x85, 0x07, 0x58, 0xd6, 0x21, 0x6a, 0xa3, 0x26, 0x68, - 0x1c, 0xb7, 0x87, 0xb1, 0xdf, 0x1e, 0xc6, 0x11, 0xcc, 0xe3, 0x85, 0x60, 0xb2, 0x6a, 0xe6, 0xc0, - 0xd5, 0x56, 0x21, 0x71, 0x94, 0x61, 0x86, 0xf4, 0xff, 0x49, 0x1c, 0xc1, 0x48, 0xcf, 0x5c, 0xf7, - 0x3d, 0x66, 0xff, 0x3b, 0xab, 0xd3, 0xe3, 0x71, 0xeb, 0xa5, 0x26, 0x5f, 0x08, 0x2c, 0xbf, 0x4d, - 0x42, 0x99, 0x0b, 0x85, 0xb4, 0xb9, 0xae, 0xf5, 0x46, 0xa4, 0xfb, 0x46, 0x1f, 0x60, 0x59, 0x54, - 0xfa, 0xde, 0xa9, 0xce, 0x48, 0xcd, 0xfe, 0xfa, 0xdc, 0xc6, 0x70, 0xf3, 0x85, 0xdd, 0x5d, 0x12, - 0xf6, 0x7e, 0x42, 0xf1, 0x02, 0xe9, 0x94, 0x88, 0xbb, 0x24, 0xda, 0x10, 0x69, 0x31, 0x6c, 0xe6, - 0xac, 0x70, 0xe3, 0x0d, 0x98, 0x58, 0x3b, 0x1b, 0x5d, 0xef, 0xdc, 0x8f, 0x33, 0xd4, 0x25, 0x8e, - 0xb0, 0x9b, 0xf4, 0xbe, 0x38, 0x9d, 0x91, 0xc9, 0x0a, 0xa1, 0xb2, 0x21, 0x83, 0x3b, 0x32, 0xcb, - 0x32, 0xb6, 0x77, 0x7f, 0x5e, 0x59, 0xe4, 0xf2, 0xca, 0x22, 0x7f, 0xae, 0x2c, 0xf2, 0xed, 0xda, - 0xea, 0x5d, 0x5e, 0x5b, 0xbd, 0x5f, 0xd7, 0x56, 0xef, 0xe3, 0xcb, 0x88, 0xa9, 0x93, 0x2c, 0x28, - 0x20, 0x9d, 0x77, 0x3e, 0x93, 0x41, 0xcc, 0xc3, 0x53, 0xe7, 0x66, 0x8d, 0x5e, 0xd4, 0x8b, 0xb4, - 0xdc, 0xa0, 0xc1, 0x7c, 0xb9, 0x5c, 0x5e, 0xfd, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xe1, 0x04, 0xb2, - 0x48, 0x69, 0x05, 0x00, 0x00, + // 598 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0x4f, 0x4f, 0xd4, 0x40, + 0x14, 0xdf, 0x59, 0x36, 0x28, 0x6f, 0x13, 0x81, 0x6a, 0xb0, 0xac, 0x52, 0x70, 0xbd, 0x10, 0x13, + 0xdb, 0x04, 0x3d, 0x78, 0x85, 0xa0, 0x40, 0xb8, 0x40, 0x4d, 0x34, 0xf1, 0xd2, 0xb4, 0x9d, 0x47, + 0x99, 0x50, 0x3a, 0xe3, 0x74, 0x8a, 0xf4, 0x2b, 0x78, 0x30, 0x1e, 0xfd, 0x3e, 0x5e, 0x3c, 0x72, + 0xf4, 0xa6, 0x81, 0x2f, 0x62, 0xa6, 0xff, 0x96, 0x76, 0x21, 0x7a, 0xf1, 0xd6, 0xf7, 0x6f, 0x7e, + 0xef, 0xf7, 0x7b, 0xaf, 0x0f, 0x9e, 0x1e, 0xf9, 0x4c, 0xe6, 0x92, 0x25, 0x91, 0x13, 0xf2, 0xd3, + 0x53, 0x9e, 0x38, 0xe9, 0xb1, 0x2f, 0x91, 0x7a, 0x2a, 0x17, 0x98, 0xda, 0x42, 0x72, 0xc5, 0x8d, + 0x85, 0x26, 0xc9, 0x2e, 0x93, 0x46, 0x56, 0xc4, 0x79, 0x14, 0xa3, 0x53, 0xc4, 0x83, 0xec, 0xc8, + 0xa1, 0x99, 0xf4, 0x15, 0xe3, 0x49, 0x59, 0x31, 0x7a, 0x10, 0xf1, 0x88, 0x17, 0x9f, 0x8e, 0xfe, + 0x2a, 0xbd, 0xe3, 0xef, 0x04, 0xee, 0xbb, 0xf8, 0x31, 0xc3, 0x54, 0x6d, 0x46, 0x91, 0xdc, 0xc7, + 0xbc, 0x00, 0x33, 0x4c, 0xb8, 0x13, 0x4a, 0xf4, 0x15, 0x97, 0x26, 0x59, 0x23, 0xeb, 0x73, 0x6e, + 0x6d, 0x1a, 0x4f, 0x60, 0x28, 0x24, 0x17, 0x3c, 0xf5, 0x63, 0x8f, 0x51, 0xb3, 0xaf, 0xa3, 0xbb, + 0x3d, 0x17, 0x6a, 0xe7, 0x1e, 0x35, 0x56, 0x01, 0x64, 0xf9, 0xa6, 0xce, 0x98, 0xa9, 0x32, 0xe6, + 0x2a, 0xdf, 0x1e, 0x35, 0x76, 0x61, 0x1e, 0x53, 0xc5, 0x4e, 0x7d, 0x85, 0xd4, 0xa3, 0x18, 0xfb, + 0xb9, 0x39, 0x58, 0x23, 0xeb, 0xc3, 0x8d, 0x65, 0xbb, 0x64, 0x61, 0xd7, 0x2c, 0xec, 0xed, 0x8a, + 0xc5, 0xd6, 0xe0, 0xdb, 0xaf, 0x55, 0xe2, 0xde, 0x6b, 0xea, 0xb6, 0x75, 0xd9, 0xd6, 0x00, 0xfa, + 0x8c, 0x8e, 0x0f, 0xe1, 0xd1, 0x0d, 0x24, 0x5c, 0x4c, 0x05, 0x4f, 0x52, 0x34, 0x46, 0x70, 0x97, + 0x51, 0x4c, 0x14, 0x53, 0x79, 0xc5, 0xa6, 0xb1, 0x8d, 0x25, 0x98, 0x15, 0x59, 0x70, 0x82, 0x79, + 0xc9, 0xc4, 0xad, 0xac, 0xf1, 0x27, 0x98, 0xdf, 0xc1, 0xb6, 0x26, 0x1d, 0xe6, 0xe4, 0xaf, 0xcc, + 0xfb, 0xd3, 0xcc, 0xaf, 0xb7, 0x32, 0xd3, 0x6e, 0xa5, 0xe2, 0xb2, 0x0c, 0x0f, 0x3b, 0xc0, 0x35, + 0x8f, 0xf1, 0x17, 0x02, 0xc6, 0x0e, 0xaa, 0x03, 0xc9, 0xce, 0x7c, 0x85, 0x4d, 0x5f, 0x2b, 0x2d, + 0xd0, 0x92, 0xe0, 0x2d, 0x90, 0xfd, 0x0e, 0xfb, 0xc7, 0x50, 0x27, 0xa2, 0xac, 0xfa, 0x99, 0x38, + 0x8c, 0x55, 0x18, 0xa6, 0x18, 0x0a, 0xaf, 0x12, 0x68, 0x50, 0xc4, 0x41, 0xbb, 0x0e, 0x4a, 0x91, + 0x5e, 0xc2, 0x68, 0xba, 0x9f, 0x46, 0xf6, 0x89, 0xb4, 0xa4, 0x25, 0x6d, 0x00, 0xf3, 0x9b, 0xa1, + 0x62, 0x67, 0x78, 0x90, 0x05, 0x31, 0x0b, 0xf7, 0x31, 0xd7, 0x14, 0x44, 0x61, 0x78, 0x93, 0xf4, + 0x39, 0xd1, 0x84, 0xaf, 0x6d, 0x63, 0xbf, 0xbd, 0x8d, 0x4b, 0x30, 0x8b, 0xe7, 0x82, 0xc9, 0x52, + 0xcd, 0x81, 0x5b, 0x59, 0x1a, 0xe3, 0x30, 0xc3, 0x0c, 0xe9, 0x7f, 0xc4, 0x78, 0x0b, 0x66, 0xb5, + 0x75, 0xaf, 0x93, 0x50, 0xe6, 0x42, 0x21, 0xfd, 0x87, 0xff, 0x67, 0x65, 0x7a, 0x45, 0xae, 0x4d, + 0x6b, 0xfc, 0x99, 0xc0, 0xe2, 0xf4, 0x73, 0xad, 0x39, 0x91, 0xee, 0x9c, 0xde, 0xc3, 0xa2, 0x28, + 0x67, 0xa0, 0xa9, 0x15, 0x15, 0xa9, 0xd9, 0x5f, 0x9b, 0x59, 0x1f, 0x6e, 0x3c, 0xb3, 0xbb, 0x87, + 0xc2, 0xde, 0x4b, 0x28, 0x9e, 0x23, 0x9d, 0x02, 0x71, 0x17, 0x44, 0x7b, 0x90, 0xa9, 0x5e, 0x38, + 0xf3, 0xb6, 0x74, 0xe3, 0x15, 0x98, 0x58, 0x3b, 0x1b, 0x5c, 0xef, 0xcc, 0x8f, 0x33, 0xac, 0x5a, + 0x5c, 0xc2, 0x6e, 0xd1, 0x3b, 0x1d, 0xbd, 0xa5, 0x92, 0x69, 0xa0, 0x42, 0x90, 0xc1, 0x0d, 0x95, + 0x45, 0x1b, 0x5b, 0x3b, 0x3f, 0x2e, 0x2d, 0x72, 0x71, 0x69, 0x91, 0xdf, 0x97, 0x16, 0xf9, 0x7a, + 0x65, 0xf5, 0x2e, 0xae, 0xac, 0xde, 0xcf, 0x2b, 0xab, 0xf7, 0xe1, 0x79, 0xc4, 0xd4, 0x71, 0x16, + 0x68, 0x92, 0xce, 0x1b, 0x9f, 0xc9, 0x20, 0xe6, 0xe1, 0x89, 0x33, 0x39, 0xa5, 0xe7, 0xf5, 0x31, + 0x2d, 0xae, 0x68, 0x30, 0x5b, 0x1c, 0x98, 0x17, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x5b, 0x10, + 0x56, 0xff, 0x6d, 0x05, 0x00, 0x00, } func (m *RequestAggrKeyshare) Marshal() (dAtA []byte, err error) { @@ -1131,7 +1147,7 @@ func (m *QueuedPublicKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RequestPrivateKeyshare) Marshal() (dAtA []byte, err error) { +func (m *RequestEncryptedKeyshare) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1141,12 +1157,12 @@ func (m *RequestPrivateKeyshare) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RequestPrivateKeyshare) MarshalTo(dAtA []byte) (int, error) { +func (m *RequestEncryptedKeyshare) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RequestPrivateKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RequestEncryptedKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1438,7 +1454,7 @@ func (m *QueuedPublicKey) Size() (n int) { return n } -func (m *RequestPrivateKeyshare) Size() (n int) { +func (m *RequestEncryptedKeyshare) Size() (n int) { if m == nil { return 0 } @@ -2514,7 +2530,7 @@ func (m *QueuedPublicKey) Unmarshal(dAtA []byte) error { } return nil } -func (m *RequestPrivateKeyshare) Unmarshal(dAtA []byte) error { +func (m *RequestEncryptedKeyshare) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2537,10 +2553,10 @@ func (m *RequestPrivateKeyshare) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RequestPrivateKeyshare: wiretype end group for non-group") + return fmt.Errorf("proto: RequestEncryptedKeyshare: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RequestPrivateKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RequestEncryptedKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/keyshare/keeper/get_aggr_key_share.go b/x/keyshare/keeper/get_aggr_key_share.go index b3cc09e8..27fc9712 100644 --- a/x/keyshare/keeper/get_aggr_key_share.go +++ b/x/keyshare/keeper/get_aggr_key_share.go @@ -82,13 +82,13 @@ func (k Keeper) OnRecvGetPrivateKeysharePacket( keyshareReq.Identity = data.Identity keyshareReq.Pubkey = activePubKey.PublicKey keyshareReq.IbcInfo = &types.IBCInfo{ - ChannelID: packet.DestinationChannel, - PortID: packet.DestinationPort, + ChannelId: packet.DestinationChannel, + PortId: packet.DestinationPort, } keyshareReq.Counterparty = &types.CounterPartyIBCInfo{ - ChannelID: packet.SourceChannel, - PortID: packet.SourcePort, + ChannelId: packet.SourceChannel, + PortId: packet.SourcePort, } keyshareReq.EncryptedKeyshares = make([]*commontypes.EncryptedKeyshare, 0) @@ -123,10 +123,10 @@ func (k Keeper) OnTimeoutGetPrivateKeysharePacket(ctx sdk.Context, packet channe } func verifyIBCInfo(packet channeltypes.Packet, keyshareReq types.KeyShareRequest) error { - if keyshareReq.Counterparty.ChannelID != packet.SourceChannel || - keyshareReq.Counterparty.PortID != packet.SourcePort || - keyshareReq.IbcInfo.ChannelID != packet.DestinationChannel || - keyshareReq.IbcInfo.PortID != packet.DestinationPort { + if keyshareReq.Counterparty.ChannelId != packet.SourceChannel || + keyshareReq.Counterparty.PortId != packet.SourcePort || + keyshareReq.IbcInfo.ChannelId != packet.DestinationChannel || + keyshareReq.IbcInfo.PortId != packet.DestinationPort { return errors.New("unauthorized request") } return nil diff --git a/x/keyshare/keeper/msg_create_general_key_share.go b/x/keyshare/keeper/msg_create_general_key_share.go index 0f1652bc..0b7ff543 100644 --- a/x/keyshare/keeper/msg_create_general_key_share.go +++ b/x/keyshare/keeper/msg_create_general_key_share.go @@ -282,7 +282,7 @@ func (k msgServer) CreateGeneralKeyShare(goCtx context.Context, msg *types.MsgCr timeoutTimestamp := ctx.BlockTime().Add(time.Second * 20).UnixNano() if keyShareReq.IbcInfo != nil { - if keyShareReq.IbcInfo.ChannelID != "" { + if keyShareReq.IbcInfo.ChannelId != "" { _, err := k.TransmitAggrKeyshareDataPacket( ctx, types.AggrKeyshareDataPacketData{ @@ -294,8 +294,8 @@ func (k msgServer) CreateGeneralKeyShare(goCtx context.Context, msg *types.MsgCr RequestId: keyShareReq.RequestId, Retries: 0, }, - keyShareReq.IbcInfo.PortID, - keyShareReq.IbcInfo.ChannelID, + keyShareReq.IbcInfo.PortId, + keyShareReq.IbcInfo.ChannelId, clienttypes.ZeroHeight(), uint64(timeoutTimestamp), ) diff --git a/x/keyshare/keeper/msg_create_general_key_share_test.go b/x/keyshare/keeper/msg_create_general_key_share_test.go index 310ff328..6e58cb1d 100644 --- a/x/keyshare/keeper/msg_create_general_key_share_test.go +++ b/x/keyshare/keeper/msg_create_general_key_share_test.go @@ -1,11 +1,12 @@ package keeper_test import ( + "strconv" + "testing" + "github.com/Fairblock/fairyring/testutil/random" "github.com/Fairblock/fairyring/testutil/shares" types2 "github.com/Fairblock/fairyring/x/pep/types" - "strconv" - "testing" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" @@ -68,7 +69,7 @@ func TestGeneralKeyShareMsgServerCreateAggregated(t *testing.T) { RequestId: idVal, Sent: false, }) - pk.SetEntry(wctx, types2.GenEncTxExecutionQueue{ + pk.SetEntry(wctx, types2.IdentityExecutionQueue{ Creator: creator, RequestId: idVal, Identity: idVal, @@ -126,7 +127,7 @@ func TestGeneralKeyShareMsgServerCreateNotAggregated(t *testing.T) { RequestId: idVal, Sent: false, }) - pk.SetEntry(wctx, types2.GenEncTxExecutionQueue{ + pk.SetEntry(wctx, types2.IdentityExecutionQueue{ Creator: creator, RequestId: idVal, Identity: idVal, @@ -170,7 +171,7 @@ func TestGeneralKeyShareMsgServerFailCases(t *testing.T) { out, creator := SetupTestGeneralKeyShare(t, wctx, k, 1, 1) onlyIdVal := random.RandHex(32) - pk.SetEntry(wctx, types2.GenEncTxExecutionQueue{ + pk.SetEntry(wctx, types2.IdentityExecutionQueue{ Creator: creator, RequestId: onlyIdVal, Identity: onlyIdVal, diff --git a/x/keyshare/keeper/msg_submit_encrypted_keyshare.go b/x/keyshare/keeper/msg_submit_encrypted_keyshare.go index 26aee3e5..7f7026f8 100644 --- a/x/keyshare/keeper/msg_submit_encrypted_keyshare.go +++ b/x/keyshare/keeper/msg_submit_encrypted_keyshare.go @@ -130,7 +130,7 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg timeoutTimestamp := ctx.BlockTime().Add(time.Second * 20).UnixNano() if keyShareReq.IbcInfo != nil { - if keyShareReq.IbcInfo.ChannelID != "" { + if keyShareReq.IbcInfo.ChannelId != "" { _, err := k.TransmitEncryptedKeyshareDataPacket( ctx, types.EncryptedKeysharesPacketData{ @@ -139,8 +139,8 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg RequestId: keyShareReq.RequestId, EncryptedKeyshares: keyShareReq.EncryptedKeyshares, }, - keyShareReq.IbcInfo.PortID, - keyShareReq.IbcInfo.ChannelID, + keyShareReq.IbcInfo.PortId, + keyShareReq.IbcInfo.ChannelId, clienttypes.ZeroHeight(), uint64(timeoutTimestamp), ) diff --git a/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go b/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go index 1e03d45c..e14c54f9 100644 --- a/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go +++ b/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go @@ -1,12 +1,13 @@ package keeper_test import ( + "strconv" + "testing" + "github.com/Fairblock/fairyring/testutil/random" "github.com/Fairblock/fairyring/testutil/shares" commontypes "github.com/Fairblock/fairyring/x/common/types" types2 "github.com/Fairblock/fairyring/x/pep/types" - "strconv" - "testing" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" @@ -48,7 +49,7 @@ func TestEncryptedlKeyShareMsgServerCreate(t *testing.T) { Pubkey: out.MasterPublicKey, EncryptedKeyshares: make([]*commontypes.EncryptedKeyshare, 0), }) - pk.SetPrivateReqQueueEntry(wctx, commontypes.RequestPrivateKeyshare{ + pk.SetPrivateReqQueueEntry(wctx, commontypes.RequestEncryptedKeyshare{ Creator: creator, RequestId: idVal, }) @@ -90,7 +91,7 @@ func TestEncryptedKeyShareMsgServerFailCases(t *testing.T) { out, creator := SetupTestGeneralKeyShare(t, wctx, k, 1, 1) onlyIdVal := random.RandHex(32) - pk.SetPrivateReqQueueEntry(wctx, commontypes.RequestPrivateKeyshare{ + pk.SetPrivateReqQueueEntry(wctx, commontypes.RequestEncryptedKeyshare{ Creator: creator, RequestId: onlyIdVal, }) diff --git a/x/keyshare/keeper/process_queues.go b/x/keyshare/keeper/process_queues.go index 7dd61ed9..9ed05dc4 100644 --- a/x/keyshare/keeper/process_queues.go +++ b/x/keyshare/keeper/process_queues.go @@ -57,7 +57,7 @@ func (k Keeper) ProcessPepRequestQueue(ctx sdk.Context) error { k.SetKeyShareRequest(ctx, keyshareRequest) - entry := peptypes.GenEncTxExecutionQueue{ + entry := peptypes.IdentityExecutionQueue{ Creator: req.Creator, RequestId: req.GetRequestId(), Identity: keyshareRequest.Identity, diff --git a/x/keyshare/keeper/query_aggregated_key_share.go b/x/keyshare/keeper/query_aggregated_key_share.go index e08c334b..0e7f5d73 100644 --- a/x/keyshare/keeper/query_aggregated_key_share.go +++ b/x/keyshare/keeper/query_aggregated_key_share.go @@ -15,7 +15,10 @@ import ( ) // AggregatedKeyShareAll returns the paginated list of all aggregated keyshares -func (k Keeper) AggregatedKeyShareAll(goCtx context.Context, req *types.QueryAllAggregatedKeyShareRequest) (*types.QueryAllAggregatedKeyShareResponse, error) { +func (k Keeper) AggregatedKeyShareAll( + goCtx context.Context, + req *types.QueryAggregatedKeyShareAllRequest, +) (*types.QueryAggregatedKeyShareAllResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -41,11 +44,17 @@ func (k Keeper) AggregatedKeyShareAll(goCtx context.Context, req *types.QueryAll return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryAllAggregatedKeyShareResponse{AggregatedKeyShare: aggregatedKeyShares, Pagination: pageRes}, nil + return &types.QueryAggregatedKeyShareAllResponse{ + AggregatedKeyShare: aggregatedKeyShares, + Pagination: pageRes, + }, nil } // AggregatedKeyShare returns the aggregated key share for a particular height -func (k Keeper) AggregatedKeyShare(goCtx context.Context, req *types.QueryGetAggregatedKeyShareRequest) (*types.QueryGetAggregatedKeyShareResponse, error) { +func (k Keeper) AggregatedKeyShare( + goCtx context.Context, + req *types.QueryAggregatedKeyShareRequest, +) (*types.QueryAggregatedKeyShareResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -59,5 +68,5 @@ func (k Keeper) AggregatedKeyShare(goCtx context.Context, req *types.QueryGetAgg return nil, status.Error(codes.NotFound, "not found") } - return &types.QueryGetAggregatedKeyShareResponse{AggregatedKeyShare: val}, nil + return &types.QueryAggregatedKeyShareResponse{AggregatedKeyShare: val}, nil } diff --git a/x/keyshare/keeper/query_aggregated_key_share_test.go b/x/keyshare/keeper/query_aggregated_key_share_test.go index b0631b15..638c29d6 100644 --- a/x/keyshare/keeper/query_aggregated_key_share_test.go +++ b/x/keyshare/keeper/query_aggregated_key_share_test.go @@ -24,27 +24,27 @@ func TestAggregatedKeyShareQuerySingle(t *testing.T) { msgs := createNAggregatedKeyShare(&keeper, ctx, 2) for _, tc := range []struct { desc string - request *types.QueryGetAggregatedKeyShareRequest - response *types.QueryGetAggregatedKeyShareResponse + request *types.QueryAggregatedKeyShareRequest + response *types.QueryAggregatedKeyShareResponse err error }{ { desc: "First", - request: &types.QueryGetAggregatedKeyShareRequest{ + request: &types.QueryAggregatedKeyShareRequest{ Height: msgs[0].Height, }, - response: &types.QueryGetAggregatedKeyShareResponse{AggregatedKeyShare: msgs[0]}, + response: &types.QueryAggregatedKeyShareResponse{AggregatedKeyShare: msgs[0]}, }, { desc: "Second", - request: &types.QueryGetAggregatedKeyShareRequest{ + request: &types.QueryAggregatedKeyShareRequest{ Height: msgs[1].Height, }, - response: &types.QueryGetAggregatedKeyShareResponse{AggregatedKeyShare: msgs[1]}, + response: &types.QueryAggregatedKeyShareResponse{AggregatedKeyShare: msgs[1]}, }, { desc: "KeyNotFound", - request: &types.QueryGetAggregatedKeyShareRequest{ + request: &types.QueryAggregatedKeyShareRequest{ Height: msgs[1].Height * 2, }, err: status.Error(codes.NotFound, "not found"), @@ -75,13 +75,13 @@ func TestAggregatedKeyShareQueryAllNoPagination(t *testing.T) { msgs := createNAggregatedKeyShare(&keeper, ctx, 10) for _, tc := range []struct { desc string - request *types.QueryAllAggregatedKeyShareRequest - response *types.QueryAllAggregatedKeyShareResponse + request *types.QueryAggregatedKeyShareAllRequest + response *types.QueryAggregatedKeyShareAllResponse err error }{ { desc: "QueryAll", - request: &types.QueryAllAggregatedKeyShareRequest{ + request: &types.QueryAggregatedKeyShareAllRequest{ Pagination: &query.PageRequest{ Key: nil, Offset: 0, @@ -90,7 +90,7 @@ func TestAggregatedKeyShareQueryAllNoPagination(t *testing.T) { Reverse: false, }, }, - response: &types.QueryAllAggregatedKeyShareResponse{ + response: &types.QueryAggregatedKeyShareAllResponse{ AggregatedKeyShare: msgs, Pagination: &query.PageResponse{ NextKey: nil, @@ -119,8 +119,13 @@ func TestAggregatedKeyShareQueryPaginated(t *testing.T) { wctx := sdk.UnwrapSDKContext(ctx) msgs := createNAggregatedKeyShare(&keeper, ctx, 5) - request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllAggregatedKeyShareRequest { - return &types.QueryAllAggregatedKeyShareRequest{ + request := func( + next []byte, + offset, + limit uint64, + total bool, + ) *types.QueryAggregatedKeyShareAllRequest { + return &types.QueryAggregatedKeyShareAllRequest{ Pagination: &query.PageRequest{ Key: next, Offset: offset, diff --git a/x/keyshare/keeper/query_authorized_address.go b/x/keyshare/keeper/query_authorized_address.go index ef42c6e2..fca4426e 100644 --- a/x/keyshare/keeper/query_authorized_address.go +++ b/x/keyshare/keeper/query_authorized_address.go @@ -13,7 +13,10 @@ import ( "google.golang.org/grpc/status" ) -func (k Keeper) AuthorizedAddressAll(goCtx context.Context, req *types.QueryAllAuthorizedAddressRequest) (*types.QueryAllAuthorizedAddressResponse, error) { +func (k Keeper) AuthorizedAddressAll( + goCtx context.Context, + req *types.QueryAuthorizedAddressAllRequest, +) (*types.QueryAuthorizedAddressAllResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -39,10 +42,16 @@ func (k Keeper) AuthorizedAddressAll(goCtx context.Context, req *types.QueryAllA return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryAllAuthorizedAddressResponse{AuthorizedAddress: authorizedAddresss, Pagination: pageRes}, nil + return &types.QueryAuthorizedAddressAllResponse{ + AuthorizedAddress: authorizedAddresss, + Pagination: pageRes, + }, nil } -func (k Keeper) AuthorizedAddress(goCtx context.Context, req *types.QueryGetAuthorizedAddressRequest) (*types.QueryGetAuthorizedAddressResponse, error) { +func (k Keeper) AuthorizedAddress( + goCtx context.Context, + req *types.QueryAuthorizedAddressRequest, +) (*types.QueryAuthorizedAddressResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -56,5 +65,5 @@ func (k Keeper) AuthorizedAddress(goCtx context.Context, req *types.QueryGetAuth return nil, types.ErrAuthorizedAddrNotFound } - return &types.QueryGetAuthorizedAddressResponse{AuthorizedAddress: val}, nil + return &types.QueryAuthorizedAddressResponse{AuthorizedAddress: val}, nil } diff --git a/x/keyshare/keeper/query_authorized_address_test.go b/x/keyshare/keeper/query_authorized_address_test.go index 88ed99d0..f3d763a8 100644 --- a/x/keyshare/keeper/query_authorized_address_test.go +++ b/x/keyshare/keeper/query_authorized_address_test.go @@ -24,27 +24,27 @@ func TestAuthorizedAddressQuerySingle(t *testing.T) { msgs := createNAuthorizedAddress(&keeper, ctx, 2) for _, tc := range []struct { desc string - request *types.QueryGetAuthorizedAddressRequest - response *types.QueryGetAuthorizedAddressResponse + request *types.QueryAuthorizedAddressRequest + response *types.QueryAuthorizedAddressResponse err error }{ { desc: "First", - request: &types.QueryGetAuthorizedAddressRequest{ + request: &types.QueryAuthorizedAddressRequest{ Target: msgs[0].Target, }, - response: &types.QueryGetAuthorizedAddressResponse{AuthorizedAddress: msgs[0]}, + response: &types.QueryAuthorizedAddressResponse{AuthorizedAddress: msgs[0]}, }, { desc: "Second", - request: &types.QueryGetAuthorizedAddressRequest{ + request: &types.QueryAuthorizedAddressRequest{ Target: msgs[1].Target, }, - response: &types.QueryGetAuthorizedAddressResponse{AuthorizedAddress: msgs[1]}, + response: &types.QueryAuthorizedAddressResponse{AuthorizedAddress: msgs[1]}, }, { desc: "AuthorizedAddressNotFound", - request: &types.QueryGetAuthorizedAddressRequest{ + request: &types.QueryAuthorizedAddressRequest{ Target: strconv.Itoa(100000), }, err: types.ErrAuthorizedAddrNotFound, @@ -75,13 +75,13 @@ func TestAuthorizedAddressQueryAllNoPagination(t *testing.T) { msgs := createNAuthorizedAddress(&keeper, ctx, 12) for _, tc := range []struct { desc string - request *types.QueryAllAuthorizedAddressRequest - response *types.QueryAllAuthorizedAddressResponse + request *types.QueryAuthorizedAddressAllRequest + response *types.QueryAuthorizedAddressAllResponse err error }{ { desc: "QueryAllAuthorizedAddress", - request: &types.QueryAllAuthorizedAddressRequest{ + request: &types.QueryAuthorizedAddressAllRequest{ Pagination: &query.PageRequest{ Key: nil, Offset: 0, @@ -90,7 +90,7 @@ func TestAuthorizedAddressQueryAllNoPagination(t *testing.T) { Reverse: false, }, }, - response: &types.QueryAllAuthorizedAddressResponse{ + response: &types.QueryAuthorizedAddressAllResponse{ AuthorizedAddress: msgs, Pagination: &query.PageResponse{ NextKey: nil, @@ -119,8 +119,13 @@ func TestAuthorizedAddressQueryPaginated(t *testing.T) { wctx := sdk.UnwrapSDKContext(ctx) msgs := createNAuthorizedAddress(&keeper, ctx, 5) - request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllAuthorizedAddressRequest { - return &types.QueryAllAuthorizedAddressRequest{ + request := func( + next []byte, + offset, + limit uint64, + total bool, + ) *types.QueryAuthorizedAddressAllRequest { + return &types.QueryAuthorizedAddressAllRequest{ Pagination: &query.PageRequest{ Key: next, Offset: offset, diff --git a/x/keyshare/keeper/query_general_key_share.go b/x/keyshare/keeper/query_general_key_share.go index 0f501e2d..d774fd1d 100644 --- a/x/keyshare/keeper/query_general_key_share.go +++ b/x/keyshare/keeper/query_general_key_share.go @@ -13,7 +13,10 @@ import ( "google.golang.org/grpc/status" ) -func (k Keeper) GeneralKeyShareAll(goCtx context.Context, req *types.QueryAllGeneralKeyShareRequest) (*types.QueryAllGeneralKeyShareResponse, error) { +func (k Keeper) GeneralKeyShareAll( + goCtx context.Context, + req *types.QueryGeneralKeyShareAllRequest, +) (*types.QueryGeneralKeyShareAllResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -39,10 +42,16 @@ func (k Keeper) GeneralKeyShareAll(goCtx context.Context, req *types.QueryAllGen return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryAllGeneralKeyShareResponse{GeneralKeyShare: generalKeyShares, Pagination: pageRes}, nil + return &types.QueryGeneralKeyShareAllResponse{ + GeneralKeyShare: generalKeyShares, + Pagination: pageRes, + }, nil } -func (k Keeper) GeneralKeyShare(goCtx context.Context, req *types.QueryGetGeneralKeyShareRequest) (*types.QueryGetGeneralKeyShareResponse, error) { +func (k Keeper) GeneralKeyShare( + goCtx context.Context, + req *types.QueryGeneralKeyShareRequest, +) (*types.QueryGeneralKeyShareResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -58,5 +67,5 @@ func (k Keeper) GeneralKeyShare(goCtx context.Context, req *types.QueryGetGenera return nil, status.Error(codes.NotFound, "not found") } - return &types.QueryGetGeneralKeyShareResponse{GeneralKeyShare: val}, nil + return &types.QueryGeneralKeyShareResponse{GeneralKeyShare: val}, nil } diff --git a/x/keyshare/keeper/query_general_key_share_test.go b/x/keyshare/keeper/query_general_key_share_test.go index 9e24d1e9..5611301a 100644 --- a/x/keyshare/keeper/query_general_key_share_test.go +++ b/x/keyshare/keeper/query_general_key_share_test.go @@ -24,31 +24,31 @@ func TestGeneralKeyShareQuerySingle(t *testing.T) { msgs := createNGeneralKeyShares(&keeper, ctx, 2) for _, tc := range []struct { desc string - request *types.QueryGetGeneralKeyShareRequest - response *types.QueryGetGeneralKeyShareResponse + request *types.QueryGeneralKeyShareRequest + response *types.QueryGeneralKeyShareResponse err error }{ { desc: "First", - request: &types.QueryGetGeneralKeyShareRequest{ + request: &types.QueryGeneralKeyShareRequest{ Validator: msgs[0].Validator, IdType: msgs[0].IdType, IdValue: msgs[0].IdValue, }, - response: &types.QueryGetGeneralKeyShareResponse{GeneralKeyShare: msgs[0]}, + response: &types.QueryGeneralKeyShareResponse{GeneralKeyShare: msgs[0]}, }, { desc: "Second", - request: &types.QueryGetGeneralKeyShareRequest{ + request: &types.QueryGeneralKeyShareRequest{ Validator: msgs[1].Validator, IdType: msgs[1].IdType, IdValue: msgs[1].IdValue, }, - response: &types.QueryGetGeneralKeyShareResponse{GeneralKeyShare: msgs[1]}, + response: &types.QueryGeneralKeyShareResponse{GeneralKeyShare: msgs[1]}, }, { desc: "KeyNotFound", - request: &types.QueryGetGeneralKeyShareRequest{ + request: &types.QueryGeneralKeyShareRequest{ Validator: strconv.Itoa(100000), IdType: strconv.Itoa(100000), IdValue: strconv.Itoa(100000), @@ -81,13 +81,13 @@ func TestGeneralKeyShareQueryAllNoPagination(t *testing.T) { msgs := createNGeneralKeyShares(&keeper, ctx, 10) for _, tc := range []struct { desc string - request *types.QueryAllGeneralKeyShareRequest - response *types.QueryAllGeneralKeyShareResponse + request *types.QueryGeneralKeyShareAllRequest + response *types.QueryGeneralKeyShareAllResponse err error }{ { desc: "QueryAllGeneralKeyShare", - request: &types.QueryAllGeneralKeyShareRequest{ + request: &types.QueryGeneralKeyShareAllRequest{ Pagination: &query.PageRequest{ Key: nil, Offset: 0, @@ -96,7 +96,7 @@ func TestGeneralKeyShareQueryAllNoPagination(t *testing.T) { Reverse: false, }, }, - response: &types.QueryAllGeneralKeyShareResponse{ + response: &types.QueryGeneralKeyShareAllResponse{ GeneralKeyShare: msgs, Pagination: &query.PageResponse{ NextKey: nil, @@ -125,8 +125,13 @@ func TestGeneralKeyShareQueryPaginated(t *testing.T) { wctx := sdk.UnwrapSDKContext(ctx) msgs := createNGeneralKeyShares(&keeper, ctx, 5) - request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllGeneralKeyShareRequest { - return &types.QueryAllGeneralKeyShareRequest{ + request := func( + next []byte, + offset, + limit uint64, + total bool, + ) *types.QueryGeneralKeyShareAllRequest { + return &types.QueryGeneralKeyShareAllRequest{ Pagination: &query.PageRequest{ Key: next, Offset: offset, diff --git a/x/keyshare/keeper/query_key_share.go b/x/keyshare/keeper/query_key_share.go index cf561dd0..36dabfb8 100644 --- a/x/keyshare/keeper/query_key_share.go +++ b/x/keyshare/keeper/query_key_share.go @@ -15,7 +15,10 @@ import ( ) // KeyShareAll returns the list of all keyshares submitted -func (k Keeper) KeyShareAll(c context.Context, req *types.QueryAllKeyShareRequest) (*types.QueryAllKeyShareResponse, error) { +func (k Keeper) KeyShareAll( + c context.Context, + req *types.QueryKeyShareAllRequest, +) (*types.QueryKeyShareAllResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -41,11 +44,14 @@ func (k Keeper) KeyShareAll(c context.Context, req *types.QueryAllKeyShareReques return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryAllKeyShareResponse{KeyShare: keyShares, Pagination: pageRes}, nil + return &types.QueryKeyShareAllResponse{KeyShare: keyShares, Pagination: pageRes}, nil } // KeyShare returns a single keyshare submitted by a particular validator for a particular block height -func (k Keeper) KeyShare(c context.Context, req *types.QueryGetKeyShareRequest) (*types.QueryGetKeyShareResponse, error) { +func (k Keeper) KeyShare( + c context.Context, + req *types.QueryKeyShareRequest, +) (*types.QueryKeyShareResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -60,5 +66,5 @@ func (k Keeper) KeyShare(c context.Context, req *types.QueryGetKeyShareRequest) return nil, status.Error(codes.NotFound, "not found") } - return &types.QueryGetKeyShareResponse{KeyShare: val}, nil + return &types.QueryKeyShareResponse{KeyShare: val}, nil } diff --git a/x/keyshare/keeper/query_key_share_test.go b/x/keyshare/keeper/query_key_share_test.go index e0ccd433..1d0b2151 100644 --- a/x/keyshare/keeper/query_key_share_test.go +++ b/x/keyshare/keeper/query_key_share_test.go @@ -1,11 +1,12 @@ package keeper_test import ( - "github.com/Fairblock/fairyring/testutil/sample" "math/rand" "strconv" "testing" + "github.com/Fairblock/fairyring/testutil/sample" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" "github.com/stretchr/testify/require" @@ -26,29 +27,29 @@ func TestKeyShareQuerySingle(t *testing.T) { msgs := createNKeyShares(&keeper, ctx, 2) for _, tc := range []struct { desc string - request *types.QueryGetKeyShareRequest - response *types.QueryGetKeyShareResponse + request *types.QueryKeyShareRequest + response *types.QueryKeyShareResponse err error }{ { desc: "First", - request: &types.QueryGetKeyShareRequest{ + request: &types.QueryKeyShareRequest{ Validator: msgs[0].Validator, BlockHeight: msgs[0].BlockHeight, }, - response: &types.QueryGetKeyShareResponse{KeyShare: msgs[0]}, + response: &types.QueryKeyShareResponse{KeyShare: msgs[0]}, }, { desc: "Second", - request: &types.QueryGetKeyShareRequest{ + request: &types.QueryKeyShareRequest{ Validator: msgs[1].Validator, BlockHeight: msgs[1].BlockHeight, }, - response: &types.QueryGetKeyShareResponse{KeyShare: msgs[1]}, + response: &types.QueryKeyShareResponse{KeyShare: msgs[1]}, }, { desc: "KeyNotFound", - request: &types.QueryGetKeyShareRequest{ + request: &types.QueryKeyShareRequest{ Validator: sample.AccAddress(), BlockHeight: rand.Uint64(), }, @@ -80,13 +81,13 @@ func TestKeyShareQueryAllNoPagination(t *testing.T) { msgs := createNKeyShares(&keeper, ctx, 10) for _, tc := range []struct { desc string - request *types.QueryAllKeyShareRequest - response *types.QueryAllKeyShareResponse + request *types.QueryKeyShareAllRequest + response *types.QueryKeyShareAllResponse err error }{ { desc: "QueryAllKeyShare", - request: &types.QueryAllKeyShareRequest{ + request: &types.QueryKeyShareAllRequest{ Pagination: &query.PageRequest{ Key: nil, Offset: 0, @@ -95,7 +96,7 @@ func TestKeyShareQueryAllNoPagination(t *testing.T) { Reverse: false, }, }, - response: &types.QueryAllKeyShareResponse{ + response: &types.QueryKeyShareAllResponse{ KeyShare: msgs, Pagination: &query.PageResponse{ NextKey: nil, @@ -124,8 +125,13 @@ func TestKeyShareQueryPaginated(t *testing.T) { wctx := sdk.UnwrapSDKContext(ctx) msgs := createNKeyShares(&keeper, ctx, 5) - request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllKeyShareRequest { - return &types.QueryAllKeyShareRequest{ + request := func( + next []byte, + offset, + limit uint64, + total bool, + ) *types.QueryKeyShareAllRequest { + return &types.QueryKeyShareAllRequest{ Pagination: &query.PageRequest{ Key: next, Offset: offset, diff --git a/x/keyshare/keeper/query_validator_set.go b/x/keyshare/keeper/query_validator_set.go index 4ff01f8e..8fc112b1 100644 --- a/x/keyshare/keeper/query_validator_set.go +++ b/x/keyshare/keeper/query_validator_set.go @@ -15,7 +15,10 @@ import ( ) // ValidatorSetAll returns the complete list of registered validators -func (k Keeper) ValidatorSetAll(c context.Context, req *types.QueryAllValidatorSetRequest) (*types.QueryAllValidatorSetResponse, error) { +func (k Keeper) ValidatorSetAll( + c context.Context, + req *types.QueryValidatorSetAllRequest, +) (*types.QueryValidatorSetAllResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -40,10 +43,16 @@ func (k Keeper) ValidatorSetAll(c context.Context, req *types.QueryAllValidatorS return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryAllValidatorSetResponse{ValidatorSet: validatorSets, Pagination: pageRes}, nil + return &types.QueryValidatorSetAllResponse{ + ValidatorSet: validatorSets, + Pagination: pageRes, + }, nil } -func (k Keeper) ValidatorSet(c context.Context, req *types.QueryGetValidatorSetRequest) (*types.QueryGetValidatorSetResponse, error) { +func (k Keeper) ValidatorSet( + c context.Context, + req *types.QueryValidatorSetRequest, +) (*types.QueryValidatorSetResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -57,5 +66,5 @@ func (k Keeper) ValidatorSet(c context.Context, req *types.QueryGetValidatorSetR return nil, status.Error(codes.NotFound, "not found") } - return &types.QueryGetValidatorSetResponse{ValidatorSet: val}, nil + return &types.QueryValidatorSetResponse{ValidatorSet: val}, nil } diff --git a/x/keyshare/keeper/query_validator_set_test.go b/x/keyshare/keeper/query_validator_set_test.go index 59b99358..0af1a48c 100644 --- a/x/keyshare/keeper/query_validator_set_test.go +++ b/x/keyshare/keeper/query_validator_set_test.go @@ -1,10 +1,11 @@ package keeper_test import ( - "github.com/Fairblock/fairyring/testutil/sample" "strconv" "testing" + "github.com/Fairblock/fairyring/testutil/sample" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" "github.com/stretchr/testify/require" @@ -25,27 +26,27 @@ func TestValidatorSetQuerySingle(t *testing.T) { msgs := createNValidatorSet(&keeper, ctx, 2) for _, tc := range []struct { desc string - request *types.QueryGetValidatorSetRequest - response *types.QueryGetValidatorSetResponse + request *types.QueryValidatorSetRequest + response *types.QueryValidatorSetResponse err error }{ { desc: "First", - request: &types.QueryGetValidatorSetRequest{ + request: &types.QueryValidatorSetRequest{ Index: msgs[0].Index, }, - response: &types.QueryGetValidatorSetResponse{ValidatorSet: msgs[0]}, + response: &types.QueryValidatorSetResponse{ValidatorSet: msgs[0]}, }, { desc: "Second", - request: &types.QueryGetValidatorSetRequest{ + request: &types.QueryValidatorSetRequest{ Index: msgs[1].Index, }, - response: &types.QueryGetValidatorSetResponse{ValidatorSet: msgs[1]}, + response: &types.QueryValidatorSetResponse{ValidatorSet: msgs[1]}, }, { desc: "KeyNotFound", - request: &types.QueryGetValidatorSetRequest{ + request: &types.QueryValidatorSetRequest{ Index: sample.AccAddress(), }, err: status.Error(codes.NotFound, "not found"), @@ -76,13 +77,13 @@ func TestValidatorSetQueryAllNoPagination(t *testing.T) { msgs := createNValidatorSet(&keeper, ctx, 10) for _, tc := range []struct { desc string - request *types.QueryAllValidatorSetRequest - response *types.QueryAllValidatorSetResponse + request *types.QueryValidatorSetAllRequest + response *types.QueryValidatorSetAllResponse err error }{ { desc: "QueryAllValidatorSet", - request: &types.QueryAllValidatorSetRequest{ + request: &types.QueryValidatorSetAllRequest{ Pagination: &query.PageRequest{ Key: nil, Offset: 0, @@ -91,7 +92,7 @@ func TestValidatorSetQueryAllNoPagination(t *testing.T) { Reverse: false, }, }, - response: &types.QueryAllValidatorSetResponse{ + response: &types.QueryValidatorSetAllResponse{ ValidatorSet: msgs, Pagination: &query.PageResponse{ NextKey: nil, @@ -120,8 +121,13 @@ func TestValidatorSetQueryPaginated(t *testing.T) { wctx := sdk.UnwrapSDKContext(ctx) msgs := createNValidatorSet(&keeper, ctx, 5) - request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllValidatorSetRequest { - return &types.QueryAllValidatorSetRequest{ + request := func( + next []byte, + offset, + limit uint64, + total bool, + ) *types.QueryValidatorSetAllRequest { + return &types.QueryValidatorSetAllRequest{ Pagination: &query.PageRequest{ Key: next, Offset: offset, diff --git a/x/keyshare/keeper/query_verifiable_randomness.go b/x/keyshare/keeper/query_verifiable_randomness.go index fce5d4a7..b59caaaf 100644 --- a/x/keyshare/keeper/query_verifiable_randomness.go +++ b/x/keyshare/keeper/query_verifiable_randomness.go @@ -11,7 +11,10 @@ import ( "google.golang.org/grpc/status" ) -func (k Keeper) VerifiableRandomness(goCtx context.Context, req *types.QueryVerifiableRandomnessQuery) (*types.QueryVerifiableRandomnessResponse, error) { +func (k Keeper) VerifiableRandomness( + goCtx context.Context, + req *types.QueryVerifiableRandomnessRequest, +) (*types.QueryVerifiableRandomnessResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) if req == nil { @@ -34,5 +37,8 @@ func (k Keeper) VerifiableRandomness(goCtx context.Context, req *types.QueryVeri hash.Write(aggrKeyBytes) hashedAggrKey := hash.Sum(nil) - return &types.QueryVerifiableRandomnessResponse{Randomness: hex.EncodeToString(hashedAggrKey), Round: aggrKey.Height}, nil + return &types.QueryVerifiableRandomnessResponse{ + Randomness: hex.EncodeToString(hashedAggrKey), + Round: aggrKey.Height, + }, nil } diff --git a/x/keyshare/keeper/query_verifiable_randomness_test.go b/x/keyshare/keeper/query_verifiable_randomness_test.go index f443cd2d..dd1122c2 100644 --- a/x/keyshare/keeper/query_verifiable_randomness_test.go +++ b/x/keyshare/keeper/query_verifiable_randomness_test.go @@ -3,6 +3,9 @@ package keeper_test import ( "crypto/sha256" "encoding/hex" + "math/rand" + "testing" + keepertest "github.com/Fairblock/fairyring/testutil/keeper" "github.com/Fairblock/fairyring/testutil/nullify" "github.com/Fairblock/fairyring/testutil/random" @@ -11,8 +14,6 @@ import ( "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "math/rand" - "testing" ) func TestVerifiableRandomnessQuery(t *testing.T) { @@ -21,7 +22,7 @@ func TestVerifiableRandomnessQuery(t *testing.T) { for _, tc := range []struct { desc string - request *types.QueryVerifiableRandomnessQuery + request *types.QueryVerifiableRandomnessRequest response *types.QueryVerifiableRandomnessResponse err error }{ @@ -31,7 +32,7 @@ func TestVerifiableRandomnessQuery(t *testing.T) { }, { desc: "AggregatedKeyNotFound", - request: &types.QueryVerifiableRandomnessQuery{}, + request: &types.QueryVerifiableRandomnessRequest{}, err: status.Error(codes.Internal, "aggregated key not found"), }, } { @@ -65,18 +66,18 @@ func TestVerifiableRandomnessQuery(t *testing.T) { for _, tc := range []struct { desc string - request *types.QueryVerifiableRandomnessQuery + request *types.QueryVerifiableRandomnessRequest response *types.QueryVerifiableRandomnessResponse err error }{ { desc: "UnableDecodeAggregatedKey", - request: &types.QueryVerifiableRandomnessQuery{}, + request: &types.QueryVerifiableRandomnessRequest{}, err: status.Error(codes.Internal, "unable to decode aggregated key"), }, { desc: "QueryVerifiableRandomness", - request: &types.QueryVerifiableRandomnessQuery{}, + request: &types.QueryVerifiableRandomnessRequest{}, response: &types.QueryVerifiableRandomnessResponse{ Randomness: hex.EncodeToString(hashedAggrKey), Round: randomHeight + 1, diff --git a/x/keyshare/keeper/request_aggr_key_share.go b/x/keyshare/keeper/request_aggr_key_share.go index 2fd7f3ac..31a9e58f 100644 --- a/x/keyshare/keeper/request_aggr_key_share.go +++ b/x/keyshare/keeper/request_aggr_key_share.go @@ -79,13 +79,13 @@ func (k Keeper) OnRecvRequestAggrKeysharePacket( keyshareRequest.Identity = id keyshareRequest.Pubkey = activePubKey.PublicKey keyshareRequest.IbcInfo = &types.IBCInfo{ - ChannelID: packet.DestinationChannel, - PortID: packet.DestinationPort, + ChannelId: packet.DestinationChannel, + PortId: packet.DestinationPort, } keyshareRequest.Counterparty = &types.CounterPartyIBCInfo{ - ChannelID: packet.SourceChannel, - PortID: packet.SourcePort, + ChannelId: packet.SourceChannel, + PortId: packet.SourcePort, } keyshareRequest.AggrKeyshare = "" @@ -137,13 +137,13 @@ func (k Keeper) OnRecvRequestPrivateKeysharePacket( keyshareRequest.Identity = id keyshareRequest.Pubkey = activePubKey.PublicKey keyshareRequest.IbcInfo = &types.IBCInfo{ - ChannelID: packet.DestinationChannel, - PortID: packet.DestinationPort, + ChannelId: packet.DestinationChannel, + PortId: packet.DestinationPort, } keyshareRequest.Counterparty = &types.CounterPartyIBCInfo{ - ChannelID: packet.SourceChannel, - PortID: packet.SourcePort, + ChannelId: packet.SourceChannel, + PortId: packet.SourcePort, } keyshareRequest.EncryptedKeyshares = make([]*commontypes.EncryptedKeyshare, 0) diff --git a/x/keyshare/module/genesis_test.go b/x/keyshare/module/genesis_test.go index ec65ec68..f51956c4 100644 --- a/x/keyshare/module/genesis_test.go +++ b/x/keyshare/module/genesis_test.go @@ -26,7 +26,7 @@ func TestGenesis(t *testing.T) { // this line is used by starport scaffolding # genesis/test/state } - k, ctx := keepertest.KeyshareKeeper(t) + k, ctx, _, _ := keepertest.KeyshareKeeper(t) keyshare.InitGenesis(ctx, k, genesisState) got := keyshare.ExportGenesis(ctx, k) require.NotNil(t, got) diff --git a/x/keyshare/types/aggregated_key_share.pb.go b/x/keyshare/types/aggregated_key_share.pb.go index ed0ca84e..1b42cd94 100644 --- a/x/keyshare/types/aggregated_key_share.pb.go +++ b/x/keyshare/types/aggregated_key_share.pb.go @@ -22,6 +22,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// AggregatedKeyShare defines the structure and height for an aggregated keyshare type AggregatedKeyShare struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` diff --git a/x/keyshare/types/authorized_address.pb.go b/x/keyshare/types/authorized_address.pb.go index 94d51ed7..b4429a59 100644 --- a/x/keyshare/types/authorized_address.pb.go +++ b/x/keyshare/types/authorized_address.pb.go @@ -22,10 +22,11 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// AuthorizedAddress defines if an address is authorized to submit pubkeys type AuthorizedAddress struct { Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` - IsAuthorized bool `protobuf:"varint,2,opt,name=isAuthorized,proto3" json:"isAuthorized,omitempty"` - AuthorizedBy string `protobuf:"bytes,3,opt,name=authorizedBy,proto3" json:"authorizedBy,omitempty"` + IsAuthorized bool `protobuf:"varint,2,opt,name=is_authorized,json=isAuthorized,proto3" json:"is_authorized,omitempty"` + AuthorizedBy string `protobuf:"bytes,3,opt,name=authorized_by,json=authorizedBy,proto3" json:"authorized_by,omitempty"` } func (m *AuthorizedAddress) Reset() { *m = AuthorizedAddress{} } @@ -91,20 +92,20 @@ func init() { } var fileDescriptor_7b09dee94c56d60e = []byte{ - // 200 bytes of a gzipped FileDescriptorProto + // 208 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4e, 0x4b, 0xcc, 0x2c, 0xaa, 0x2c, 0xca, 0xcc, 0x4b, 0xd7, 0xcf, 0x4e, 0xad, 0x2c, 0xce, 0x48, 0x2c, 0x4a, 0xd5, 0x4f, 0x2c, 0x2d, 0xc9, 0xc8, 0x2f, 0xca, 0xac, 0x4a, 0x4d, 0x89, 0x4f, 0x4c, 0x49, 0x29, 0x4a, 0x2d, 0x2e, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x82, 0x2b, 0xd6, 0x83, 0x29, 0x56, 0x2a, - 0xe6, 0x12, 0x74, 0x84, 0xab, 0x77, 0x84, 0x28, 0x17, 0x12, 0xe3, 0x62, 0x2b, 0x49, 0x2c, 0x4a, - 0x4f, 0x2d, 0x91, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x82, 0xf2, 0x84, 0x94, 0xb8, 0x78, 0x32, - 0x8b, 0x11, 0xca, 0x25, 0x98, 0x14, 0x18, 0x35, 0x38, 0x82, 0x50, 0xc4, 0x40, 0x6a, 0x10, 0x0e, - 0x70, 0xaa, 0x94, 0x60, 0x06, 0x9b, 0x80, 0x22, 0xe6, 0xe4, 0x79, 0xe2, 0x91, 0x1c, 0xe3, 0x85, - 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, - 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0xfa, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, - 0xfa, 0x6e, 0x89, 0x99, 0x45, 0x49, 0x39, 0xf9, 0xc9, 0xd9, 0xfa, 0x08, 0x4f, 0x56, 0x20, 0xbc, - 0x59, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0xf6, 0x9a, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, - 0x3c, 0x5a, 0x70, 0x9f, 0x09, 0x01, 0x00, 0x00, + 0xe5, 0x12, 0x74, 0x84, 0xab, 0x77, 0x84, 0x28, 0x17, 0x12, 0xe3, 0x62, 0x2b, 0x49, 0x2c, 0x4a, + 0x4f, 0x2d, 0x91, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x82, 0xf2, 0x84, 0x94, 0xb9, 0x78, 0x33, + 0x8b, 0xe3, 0x11, 0xe6, 0x4b, 0x30, 0x29, 0x30, 0x6a, 0x70, 0x04, 0xf1, 0x64, 0x16, 0x23, 0xcc, + 0x00, 0x29, 0x42, 0x72, 0x41, 0x52, 0xa5, 0x04, 0x33, 0xd8, 0x0c, 0x1e, 0x84, 0xa0, 0x53, 0xa5, + 0x93, 0xe7, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, 0xc7, 0x38, 0xe1, + 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0xe9, 0xa7, 0x67, 0x96, + 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xbb, 0x25, 0x66, 0x16, 0x25, 0xe5, 0xe4, 0x27, + 0x67, 0xeb, 0x23, 0xbc, 0x59, 0x81, 0xf0, 0x68, 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, + 0x73, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xda, 0x11, 0x76, 0x03, 0x0b, 0x01, 0x00, 0x00, } func (m *AuthorizedAddress) Marshal() (dAtA []byte, err error) { diff --git a/x/keyshare/types/commitments.pb.go b/x/keyshare/types/commitments.pb.go index 2eaba0ac..47c4de84 100644 --- a/x/keyshare/types/commitments.pb.go +++ b/x/keyshare/types/commitments.pb.go @@ -22,6 +22,8 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// Commitments defines the list of commitments to verify the +// keyshares submitted by validators type Commitments struct { Commitments []string `protobuf:"bytes,1,rep,name=commitments,proto3" json:"commitments,omitempty"` } diff --git a/x/keyshare/types/expected_keepers.go b/x/keyshare/types/expected_keepers.go index 647f31fe..6176f2ad 100644 --- a/x/keyshare/types/expected_keepers.go +++ b/x/keyshare/types/expected_keepers.go @@ -64,26 +64,26 @@ type PepKeeper interface { GetQueuedPubKey(ctx context.Context) (val commontypes.QueuedPublicKey, found bool) DeleteActivePubKey(ctx context.Context) DeleteQueuedPubKey(ctx context.Context) - SetEntry(ctx context.Context, val peptypes.GenEncTxExecutionQueue) - GetEntry(ctx context.Context, reqID string) (val peptypes.GenEncTxExecutionQueue, found bool) + SetEntry(ctx context.Context, val peptypes.IdentityExecutionQueue) + GetEntry(ctx context.Context, reqID string) (val peptypes.IdentityExecutionQueue, found bool) RemoveEntry(ctx context.Context, reqID string) - GetAllGenEncTxEntry(ctx context.Context) (list []peptypes.GenEncTxExecutionQueue) + GetAllGenEncTxEntry(ctx context.Context) (list []peptypes.IdentityExecutionQueue) GetSignalQueueEntry(ctx context.Context, reqID string) (val commontypes.GetAggrKeyshare, found bool) SetSignalQueueEntry(ctx context.Context, val commontypes.GetAggrKeyshare) RemoveSignalQueueEntry(ctx context.Context, reqID string) GetAllGenEncTxSignalQueueEntry(ctx context.Context) (list []commontypes.GetAggrKeyshare) - GetExecutionQueueEntry(ctx context.Context, reqID string) (val peptypes.GenEncTxExecutionQueue, found bool) - SetExecutionQueueEntry(ctx context.Context, val peptypes.GenEncTxExecutionQueue) + GetExecutionQueueEntry(ctx context.Context, reqID string) (val peptypes.IdentityExecutionQueue, found bool) + SetExecutionQueueEntry(ctx context.Context, val peptypes.IdentityExecutionQueue) RemoveExecutionQueueEntry(ctx context.Context, reqID string) - GetAllGenEncTxExecutionQueueEntry(ctx context.Context) (list []peptypes.GenEncTxExecutionQueue) + GetAllGenEncTxExecutionQueueEntry(ctx context.Context) (list []peptypes.IdentityExecutionQueue) GetRequestQueueEntry(ctx context.Context, reqID string) (val commontypes.RequestAggrKeyshare, found bool) SetReqQueueEntry(ctx context.Context, val commontypes.RequestAggrKeyshare) RemoveReqQueueEntry(ctx context.Context, reqID string) GetAllGenEncTxReqQueueEntry(ctx context.Context) (list []commontypes.RequestAggrKeyshare) - GetPrivateRequestQueueEntry(ctx context.Context, reqID string) (val commontypes.RequestPrivateKeyshare, found bool) - SetPrivateReqQueueEntry(ctx context.Context, val commontypes.RequestPrivateKeyshare) + GetPrivateRequestQueueEntry(ctx context.Context, reqID string) (val commontypes.RequestEncryptedKeyshare, found bool) + SetPrivateReqQueueEntry(ctx context.Context, val commontypes.RequestEncryptedKeyshare) RemovePrivateReqQueueEntry(ctx context.Context, reqID string) - GetAllPrivateReqQueueEntry(ctx context.Context) (list []commontypes.RequestPrivateKeyshare) + GetAllPrivateReqQueueEntry(ctx context.Context) (list []commontypes.RequestEncryptedKeyshare) GetPrivateSignalQueueEntry(ctx context.Context, reqID string) (val commontypes.GetPrivateKeyshare, found bool) SetPrivateSignalQueueEntry(ctx context.Context, val commontypes.GetPrivateKeyshare) RemovePrivateSignalQueueEntry(ctx context.Context, reqID string) diff --git a/x/keyshare/types/general_key_share.pb.go b/x/keyshare/types/general_key_share.pb.go deleted file mode 100644 index a0aa23e7..00000000 --- a/x/keyshare/types/general_key_share.pb.go +++ /dev/null @@ -1,1014 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fairyring/keyshare/general_key_share.proto - -package types - -import ( - fmt "fmt" - proto "github.com/cosmos/gogoproto/proto" - io "io" - math "math" - math_bits "math/bits" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// 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 - -type GeneralKeyShare struct { - Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` - IdType string `protobuf:"bytes,2,opt,name=idType,proto3" json:"idType,omitempty"` - IdValue string `protobuf:"bytes,3,opt,name=idValue,proto3" json:"idValue,omitempty"` - KeyShare string `protobuf:"bytes,4,opt,name=keyShare,proto3" json:"keyShare,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,5,opt,name=keyShareIndex,proto3" json:"keyShareIndex,omitempty"` - ReceivedTimestamp uint64 `protobuf:"varint,6,opt,name=receivedTimestamp,proto3" json:"receivedTimestamp,omitempty"` - ReceivedBlockHeight uint64 `protobuf:"varint,7,opt,name=receivedBlockHeight,proto3" json:"receivedBlockHeight,omitempty"` -} - -func (m *GeneralKeyShare) Reset() { *m = GeneralKeyShare{} } -func (m *GeneralKeyShare) String() string { return proto.CompactTextString(m) } -func (*GeneralKeyShare) ProtoMessage() {} -func (*GeneralKeyShare) Descriptor() ([]byte, []int) { - return fileDescriptor_05ce460a69fa2745, []int{0} -} -func (m *GeneralKeyShare) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GeneralKeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GeneralKeyShare.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GeneralKeyShare) XXX_Merge(src proto.Message) { - xxx_messageInfo_GeneralKeyShare.Merge(m, src) -} -func (m *GeneralKeyShare) XXX_Size() int { - return m.Size() -} -func (m *GeneralKeyShare) XXX_DiscardUnknown() { - xxx_messageInfo_GeneralKeyShare.DiscardUnknown(m) -} - -var xxx_messageInfo_GeneralKeyShare proto.InternalMessageInfo - -func (m *GeneralKeyShare) GetValidator() string { - if m != nil { - return m.Validator - } - return "" -} - -func (m *GeneralKeyShare) GetIdType() string { - if m != nil { - return m.IdType - } - return "" -} - -func (m *GeneralKeyShare) GetIdValue() string { - if m != nil { - return m.IdValue - } - return "" -} - -func (m *GeneralKeyShare) GetKeyShare() string { - if m != nil { - return m.KeyShare - } - return "" -} - -func (m *GeneralKeyShare) GetKeyShareIndex() uint64 { - if m != nil { - return m.KeyShareIndex - } - return 0 -} - -func (m *GeneralKeyShare) GetReceivedTimestamp() uint64 { - if m != nil { - return m.ReceivedTimestamp - } - return 0 -} - -func (m *GeneralKeyShare) GetReceivedBlockHeight() uint64 { - if m != nil { - return m.ReceivedBlockHeight - } - return 0 -} - -type ValidatorEncryptedKeyShare struct { - Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` - Requester string `protobuf:"bytes,2,opt,name=requester,proto3" json:"requester,omitempty"` - KeyShare string `protobuf:"bytes,3,opt,name=keyShare,proto3" json:"keyShare,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,4,opt,name=keyShareIndex,proto3" json:"keyShareIndex,omitempty"` - ReceivedTimestamp uint64 `protobuf:"varint,5,opt,name=receivedTimestamp,proto3" json:"receivedTimestamp,omitempty"` - ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=receivedBlockHeight,proto3" json:"receivedBlockHeight,omitempty"` - Identity string `protobuf:"bytes,7,opt,name=identity,proto3" json:"identity,omitempty"` -} - -func (m *ValidatorEncryptedKeyShare) Reset() { *m = ValidatorEncryptedKeyShare{} } -func (m *ValidatorEncryptedKeyShare) String() string { return proto.CompactTextString(m) } -func (*ValidatorEncryptedKeyShare) ProtoMessage() {} -func (*ValidatorEncryptedKeyShare) Descriptor() ([]byte, []int) { - return fileDescriptor_05ce460a69fa2745, []int{1} -} -func (m *ValidatorEncryptedKeyShare) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValidatorEncryptedKeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ValidatorEncryptedKeyShare.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ValidatorEncryptedKeyShare) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorEncryptedKeyShare.Merge(m, src) -} -func (m *ValidatorEncryptedKeyShare) XXX_Size() int { - return m.Size() -} -func (m *ValidatorEncryptedKeyShare) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorEncryptedKeyShare.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidatorEncryptedKeyShare proto.InternalMessageInfo - -func (m *ValidatorEncryptedKeyShare) GetValidator() string { - if m != nil { - return m.Validator - } - return "" -} - -func (m *ValidatorEncryptedKeyShare) GetRequester() string { - if m != nil { - return m.Requester - } - return "" -} - -func (m *ValidatorEncryptedKeyShare) GetKeyShare() string { - if m != nil { - return m.KeyShare - } - return "" -} - -func (m *ValidatorEncryptedKeyShare) GetKeyShareIndex() uint64 { - if m != nil { - return m.KeyShareIndex - } - return 0 -} - -func (m *ValidatorEncryptedKeyShare) GetReceivedTimestamp() uint64 { - if m != nil { - return m.ReceivedTimestamp - } - return 0 -} - -func (m *ValidatorEncryptedKeyShare) GetReceivedBlockHeight() uint64 { - if m != nil { - return m.ReceivedBlockHeight - } - return 0 -} - -func (m *ValidatorEncryptedKeyShare) GetIdentity() string { - if m != nil { - return m.Identity - } - return "" -} - -func init() { - proto.RegisterType((*GeneralKeyShare)(nil), "fairyring.keyshare.GeneralKeyShare") - proto.RegisterType((*ValidatorEncryptedKeyShare)(nil), "fairyring.keyshare.ValidatorEncryptedKeyShare") -} - -func init() { - proto.RegisterFile("fairyring/keyshare/general_key_share.proto", fileDescriptor_05ce460a69fa2745) -} - -var fileDescriptor_05ce460a69fa2745 = []byte{ - // 348 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xcb, 0x6a, 0xf2, 0x40, - 0x14, 0xc7, 0x8d, 0x97, 0xf8, 0x65, 0xe0, 0xa3, 0x74, 0x0a, 0x65, 0x10, 0x19, 0x44, 0xba, 0x90, - 0x52, 0x4c, 0xa1, 0x6f, 0x20, 0xf4, 0x22, 0xdd, 0x59, 0x71, 0xd1, 0x8d, 0x8c, 0x99, 0xd3, 0x38, - 0x24, 0x26, 0xe9, 0x64, 0x14, 0x67, 0xdd, 0x17, 0xe8, 0xaa, 0xcf, 0xd4, 0xa5, 0xcb, 0x2e, 0x8b, - 0xbe, 0x48, 0x71, 0x6a, 0x0c, 0xd2, 0x96, 0xda, 0xdd, 0xfc, 0x2f, 0x1c, 0xe6, 0x77, 0x38, 0xe8, - 0xf4, 0x81, 0x09, 0xa9, 0xa5, 0x88, 0x7c, 0x37, 0x00, 0x9d, 0x8e, 0x99, 0x04, 0xd7, 0x87, 0x08, - 0x24, 0x0b, 0x87, 0x01, 0xe8, 0xa1, 0x71, 0xda, 0x89, 0x8c, 0x55, 0x8c, 0xf1, 0xb6, 0xdb, 0xce, - 0xba, 0xcd, 0xa7, 0x22, 0x3a, 0xb8, 0xfe, 0xec, 0xdf, 0x82, 0xbe, 0x5b, 0x7b, 0xb8, 0x8e, 0x9c, - 0x19, 0x0b, 0x05, 0x67, 0x2a, 0x96, 0xc4, 0x6a, 0x58, 0x2d, 0xa7, 0x97, 0x1b, 0xf8, 0x18, 0xd9, - 0x82, 0xf7, 0x75, 0x02, 0xa4, 0x68, 0xa2, 0x8d, 0xc2, 0x04, 0x55, 0x05, 0x1f, 0xb0, 0x70, 0x0a, - 0xa4, 0x64, 0x82, 0x4c, 0xe2, 0x1a, 0xfa, 0x17, 0x6c, 0x66, 0x93, 0xb2, 0x89, 0xb6, 0x1a, 0x9f, - 0xa0, 0xff, 0xd9, 0xbb, 0x1b, 0x71, 0x98, 0x93, 0x4a, 0xc3, 0x6a, 0x95, 0x7b, 0xbb, 0x26, 0x3e, - 0x43, 0x87, 0x12, 0x3c, 0x10, 0x33, 0xe0, 0x7d, 0x31, 0x81, 0x54, 0xb1, 0x49, 0x42, 0x6c, 0xd3, - 0xfc, 0x1a, 0xe0, 0x73, 0x74, 0x94, 0x99, 0x9d, 0x30, 0xf6, 0x82, 0x1b, 0x10, 0xfe, 0x58, 0x91, - 0xaa, 0xe9, 0x7f, 0x17, 0x35, 0x5f, 0x8a, 0xa8, 0x36, 0xc8, 0x08, 0x2f, 0x23, 0x4f, 0xea, 0x44, - 0x01, 0xdf, 0x73, 0x21, 0x75, 0xe4, 0x48, 0x78, 0x9c, 0x42, 0xaa, 0x40, 0x6e, 0x76, 0x92, 0x1b, - 0x3b, 0xf0, 0xa5, 0xdf, 0xe0, 0xcb, 0x7b, 0xc3, 0x57, 0xfe, 0x08, 0x6f, 0xff, 0x08, 0xbf, 0xfe, - 0xa1, 0xe0, 0x10, 0x29, 0xa1, 0xb4, 0xd9, 0x91, 0xd3, 0xdb, 0xea, 0x4e, 0xf7, 0x75, 0x49, 0xad, - 0xc5, 0x92, 0x5a, 0xef, 0x4b, 0x6a, 0x3d, 0xaf, 0x68, 0x61, 0xb1, 0xa2, 0x85, 0xb7, 0x15, 0x2d, - 0xdc, 0xbb, 0xbe, 0x50, 0xe3, 0xe9, 0xa8, 0xed, 0xc5, 0x13, 0xf7, 0x8a, 0x09, 0x39, 0x5a, 0x4f, - 0x74, 0xf3, 0x6b, 0x9c, 0xe7, 0xf7, 0xa8, 0x74, 0x02, 0xe9, 0xc8, 0x36, 0x47, 0x78, 0xf1, 0x11, - 0x00, 0x00, 0xff, 0xff, 0xb0, 0x19, 0x6e, 0x0c, 0xb2, 0x02, 0x00, 0x00, -} - -func (m *GeneralKeyShare) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GeneralKeyShare) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GeneralKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ReceivedBlockHeight != 0 { - i = encodeVarintGeneralKeyShare(dAtA, i, uint64(m.ReceivedBlockHeight)) - i-- - dAtA[i] = 0x38 - } - if m.ReceivedTimestamp != 0 { - i = encodeVarintGeneralKeyShare(dAtA, i, uint64(m.ReceivedTimestamp)) - i-- - dAtA[i] = 0x30 - } - if m.KeyShareIndex != 0 { - i = encodeVarintGeneralKeyShare(dAtA, i, uint64(m.KeyShareIndex)) - i-- - dAtA[i] = 0x28 - } - if len(m.KeyShare) > 0 { - i -= len(m.KeyShare) - copy(dAtA[i:], m.KeyShare) - i = encodeVarintGeneralKeyShare(dAtA, i, uint64(len(m.KeyShare))) - i-- - dAtA[i] = 0x22 - } - if len(m.IdValue) > 0 { - i -= len(m.IdValue) - copy(dAtA[i:], m.IdValue) - i = encodeVarintGeneralKeyShare(dAtA, i, uint64(len(m.IdValue))) - i-- - dAtA[i] = 0x1a - } - if len(m.IdType) > 0 { - i -= len(m.IdType) - copy(dAtA[i:], m.IdType) - i = encodeVarintGeneralKeyShare(dAtA, i, uint64(len(m.IdType))) - i-- - dAtA[i] = 0x12 - } - if len(m.Validator) > 0 { - i -= len(m.Validator) - copy(dAtA[i:], m.Validator) - i = encodeVarintGeneralKeyShare(dAtA, i, uint64(len(m.Validator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ValidatorEncryptedKeyShare) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidatorEncryptedKeyShare) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidatorEncryptedKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Identity) > 0 { - i -= len(m.Identity) - copy(dAtA[i:], m.Identity) - i = encodeVarintGeneralKeyShare(dAtA, i, uint64(len(m.Identity))) - i-- - dAtA[i] = 0x3a - } - if m.ReceivedBlockHeight != 0 { - i = encodeVarintGeneralKeyShare(dAtA, i, uint64(m.ReceivedBlockHeight)) - i-- - dAtA[i] = 0x30 - } - if m.ReceivedTimestamp != 0 { - i = encodeVarintGeneralKeyShare(dAtA, i, uint64(m.ReceivedTimestamp)) - i-- - dAtA[i] = 0x28 - } - if m.KeyShareIndex != 0 { - i = encodeVarintGeneralKeyShare(dAtA, i, uint64(m.KeyShareIndex)) - i-- - dAtA[i] = 0x20 - } - if len(m.KeyShare) > 0 { - i -= len(m.KeyShare) - copy(dAtA[i:], m.KeyShare) - i = encodeVarintGeneralKeyShare(dAtA, i, uint64(len(m.KeyShare))) - i-- - dAtA[i] = 0x1a - } - if len(m.Requester) > 0 { - i -= len(m.Requester) - copy(dAtA[i:], m.Requester) - i = encodeVarintGeneralKeyShare(dAtA, i, uint64(len(m.Requester))) - i-- - dAtA[i] = 0x12 - } - if len(m.Validator) > 0 { - i -= len(m.Validator) - copy(dAtA[i:], m.Validator) - i = encodeVarintGeneralKeyShare(dAtA, i, uint64(len(m.Validator))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintGeneralKeyShare(dAtA []byte, offset int, v uint64) int { - offset -= sovGeneralKeyShare(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *GeneralKeyShare) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Validator) - if l > 0 { - n += 1 + l + sovGeneralKeyShare(uint64(l)) - } - l = len(m.IdType) - if l > 0 { - n += 1 + l + sovGeneralKeyShare(uint64(l)) - } - l = len(m.IdValue) - if l > 0 { - n += 1 + l + sovGeneralKeyShare(uint64(l)) - } - l = len(m.KeyShare) - if l > 0 { - n += 1 + l + sovGeneralKeyShare(uint64(l)) - } - if m.KeyShareIndex != 0 { - n += 1 + sovGeneralKeyShare(uint64(m.KeyShareIndex)) - } - if m.ReceivedTimestamp != 0 { - n += 1 + sovGeneralKeyShare(uint64(m.ReceivedTimestamp)) - } - if m.ReceivedBlockHeight != 0 { - n += 1 + sovGeneralKeyShare(uint64(m.ReceivedBlockHeight)) - } - return n -} - -func (m *ValidatorEncryptedKeyShare) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Validator) - if l > 0 { - n += 1 + l + sovGeneralKeyShare(uint64(l)) - } - l = len(m.Requester) - if l > 0 { - n += 1 + l + sovGeneralKeyShare(uint64(l)) - } - l = len(m.KeyShare) - if l > 0 { - n += 1 + l + sovGeneralKeyShare(uint64(l)) - } - if m.KeyShareIndex != 0 { - n += 1 + sovGeneralKeyShare(uint64(m.KeyShareIndex)) - } - if m.ReceivedTimestamp != 0 { - n += 1 + sovGeneralKeyShare(uint64(m.ReceivedTimestamp)) - } - if m.ReceivedBlockHeight != 0 { - n += 1 + sovGeneralKeyShare(uint64(m.ReceivedBlockHeight)) - } - l = len(m.Identity) - if l > 0 { - n += 1 + l + sovGeneralKeyShare(uint64(l)) - } - return n -} - -func sovGeneralKeyShare(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGeneralKeyShare(x uint64) (n int) { - return sovGeneralKeyShare(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *GeneralKeyShare) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GeneralKeyShare: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GeneralKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGeneralKeyShare - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGeneralKeyShare - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Validator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IdType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGeneralKeyShare - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGeneralKeyShare - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IdType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IdValue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGeneralKeyShare - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGeneralKeyShare - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IdValue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGeneralKeyShare - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGeneralKeyShare - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KeyShare = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) - } - m.KeyShareIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.KeyShareIndex |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReceivedTimestamp", wireType) - } - m.ReceivedTimestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReceivedTimestamp |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReceivedBlockHeight", wireType) - } - m.ReceivedBlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReceivedBlockHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipGeneralKeyShare(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGeneralKeyShare - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidatorEncryptedKeyShare) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ValidatorEncryptedKeyShare: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorEncryptedKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGeneralKeyShare - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGeneralKeyShare - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Validator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Requester", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGeneralKeyShare - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGeneralKeyShare - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Requester = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGeneralKeyShare - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGeneralKeyShare - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KeyShare = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) - } - m.KeyShareIndex = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.KeyShareIndex |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReceivedTimestamp", wireType) - } - m.ReceivedTimestamp = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReceivedTimestamp |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReceivedBlockHeight", wireType) - } - m.ReceivedBlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReceivedBlockHeight |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthGeneralKeyShare - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthGeneralKeyShare - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identity = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipGeneralKeyShare(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthGeneralKeyShare - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipGeneralKeyShare(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowGeneralKeyShare - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthGeneralKeyShare - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupGeneralKeyShare - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthGeneralKeyShare - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthGeneralKeyShare = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowGeneralKeyShare = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupGeneralKeyShare = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/keyshare/types/genesis.pb.go b/x/keyshare/types/genesis.pb.go index a6ab2827..6ddd6c10 100644 --- a/x/keyshare/types/genesis.pb.go +++ b/x/keyshare/types/genesis.pb.go @@ -27,17 +27,16 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // GenesisState defines the keyshare module's genesis state. type GenesisState struct { // params defines all the parameters of the module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - ValidatorSetList []ValidatorSet `protobuf:"bytes,3,rep,name=validatorSetList,proto3" json:"validatorSetList"` - KeyShareList []KeyShare `protobuf:"bytes,4,rep,name=keyShareList,proto3" json:"keyShareList"` - // this line is used by starport scaffolding # genesis/proto/state - AggregatedKeyShareList []AggregatedKeyShare `protobuf:"bytes,5,rep,name=aggregatedKeyShareList,proto3" json:"aggregatedKeyShareList"` - ActivePubKey ActivePubKey `protobuf:"bytes,6,opt,name=activePubKey,proto3" json:"activePubKey"` - QueuedPubKey QueuedPubKey `protobuf:"bytes,7,opt,name=queuedPubKey,proto3" json:"queuedPubKey"` - AuthorizedAddressList []AuthorizedAddress `protobuf:"bytes,8,rep,name=authorizedAddressList,proto3" json:"authorizedAddressList"` + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` + ValidatorSetList []ValidatorSet `protobuf:"bytes,3,rep,name=validator_set_list,json=validatorSetList,proto3" json:"validator_set_list"` + KeyShareList []KeyShare `protobuf:"bytes,4,rep,name=key_share_list,json=keyShareList,proto3" json:"key_share_list"` + AggregatedKeyShareList []AggregatedKeyShare `protobuf:"bytes,5,rep,name=aggregated_key_share_list,json=aggregatedKeyShareList,proto3" json:"aggregated_key_share_list"` + ActivePubKey ActivePubKey `protobuf:"bytes,6,opt,name=active_pub_key,json=activePubKey,proto3" json:"active_pub_key"` + QueuedPubKey QueuedPubKey `protobuf:"bytes,7,opt,name=queued_pub_key,json=queuedPubKey,proto3" json:"queued_pub_key"` + AuthorizedAddressList []AuthorizedAddress `protobuf:"bytes,8,rep,name=authorized_address_list,json=authorizedAddressList,proto3" json:"authorized_address_list"` RequestCount uint64 `protobuf:"varint,9,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"` - GeneralKeyShareList []GeneralKeyShare `protobuf:"bytes,10,rep,name=generalKeyShareList,proto3" json:"generalKeyShareList"` + GeneralKeyShareList []GeneralKeyShare `protobuf:"bytes,10,rep,name=general_key_share_list,json=generalKeyShareList,proto3" json:"general_key_share_list"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -150,40 +149,41 @@ func init() { func init() { proto.RegisterFile("fairyring/keyshare/genesis.proto", fileDescriptor_6629804056e1ba8d) } var fileDescriptor_6629804056e1ba8d = []byte{ - // 517 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0x4f, 0x6f, 0xd3, 0x3e, - 0x18, 0xc7, 0x9b, 0xdf, 0xba, 0xee, 0x57, 0xaf, 0x48, 0x60, 0xfe, 0x45, 0x15, 0xca, 0xa2, 0x4d, - 0x4c, 0xd5, 0x10, 0x89, 0x34, 0xce, 0x1c, 0x5a, 0xa4, 0x4d, 0xa3, 0x1c, 0x46, 0x2a, 0x71, 0x80, - 0x43, 0xe4, 0xd4, 0x0f, 0xa9, 0xd5, 0x3f, 0xce, 0x1c, 0x67, 0x22, 0xbc, 0x0a, 0x5e, 0x06, 0x47, - 0x5e, 0xc6, 0x8e, 0x3b, 0x72, 0x42, 0xa8, 0x15, 0xe2, 0x6d, 0xa0, 0xb8, 0xee, 0x9a, 0xb6, 0xee, - 0xa5, 0x72, 0xad, 0xcf, 0xf7, 0xe3, 0xe7, 0x79, 0x62, 0x23, 0xf7, 0x33, 0x61, 0x22, 0x17, 0x6c, - 0x12, 0xfb, 0x43, 0xc8, 0xd3, 0x01, 0x11, 0xe0, 0xc7, 0x30, 0x81, 0x94, 0xa5, 0x5e, 0x22, 0xb8, - 0xe4, 0x18, 0xdf, 0x11, 0xde, 0x82, 0x68, 0x3e, 0x20, 0x63, 0x36, 0xe1, 0xbe, 0xfa, 0x9d, 0x63, - 0xcd, 0x47, 0x31, 0x8f, 0xb9, 0x5a, 0xfa, 0xc5, 0x4a, 0xef, 0x1e, 0x18, 0xf4, 0x09, 0x11, 0x64, - 0xac, 0xed, 0xcd, 0x63, 0x03, 0x70, 0x4d, 0x46, 0x8c, 0x12, 0xc9, 0x45, 0x98, 0x82, 0xd4, 0xdc, - 0xa1, 0x81, 0x1b, 0x42, 0x1e, 0xaa, 0x95, 0x66, 0x5e, 0x1a, 0x18, 0x12, 0xc7, 0x02, 0x62, 0x22, - 0x81, 0x86, 0xeb, 0xb8, 0xa9, 0xf5, 0x24, 0x8b, 0x0a, 0x4e, 0x13, 0x2f, 0x4c, 0xc2, 0x4c, 0x0e, - 0xb8, 0x60, 0x5f, 0x81, 0x86, 0x84, 0x52, 0x01, 0xe9, 0xa2, 0x93, 0x93, 0x2d, 0x93, 0x14, 0x64, - 0xb4, 0x7e, 0xf4, 0xe1, 0x9f, 0x5d, 0xd4, 0x38, 0x9f, 0x4f, 0xb9, 0x27, 0x89, 0x04, 0xfc, 0x1a, - 0xd5, 0xe6, 0x63, 0xb1, 0x2d, 0xd7, 0x6a, 0xed, 0x9f, 0x36, 0xbd, 0xcd, 0xa9, 0x7b, 0x97, 0x8a, - 0xe8, 0xd4, 0x6f, 0x7e, 0x1d, 0x54, 0xbe, 0xff, 0xfd, 0x71, 0x62, 0x05, 0x3a, 0x84, 0x9f, 0xa2, - 0xbd, 0x84, 0x0b, 0x19, 0x32, 0x6a, 0xff, 0xe7, 0x5a, 0xad, 0x7a, 0x50, 0x2b, 0xfe, 0x5e, 0x50, - 0x1c, 0xa0, 0xfb, 0x77, 0xd3, 0xec, 0x81, 0x7c, 0xc7, 0x52, 0x69, 0xef, 0xb8, 0x3b, 0xad, 0xfd, - 0x53, 0xd7, 0x74, 0xc2, 0x87, 0x12, 0xdb, 0xa9, 0x16, 0xe7, 0x04, 0x1b, 0x79, 0x7c, 0x86, 0x1a, - 0x43, 0xc8, 0x7b, 0x45, 0x40, 0xf9, 0xaa, 0xca, 0xf7, 0xcc, 0xe4, 0xeb, 0x6a, 0x4e, 0xbb, 0x56, - 0x72, 0x98, 0xa2, 0x27, 0xcb, 0xaf, 0xd3, 0x2d, 0x1b, 0x77, 0x95, 0xf1, 0xd8, 0x64, 0x6c, 0x6f, - 0x24, 0xb4, 0x7b, 0x8b, 0x0b, 0xbf, 0x45, 0x0d, 0xd2, 0x97, 0xec, 0x1a, 0x2e, 0xb3, 0xa8, 0x0b, - 0xb9, 0x5d, 0x53, 0xf3, 0x35, 0x76, 0xdf, 0x2e, 0x71, 0x8b, 0x8a, 0xcb, 0xd9, 0xc2, 0x75, 0x95, - 0x41, 0x06, 0x54, 0xbb, 0xf6, 0xb6, 0xbb, 0xde, 0x97, 0xb8, 0x85, 0xab, 0x9c, 0xc5, 0x04, 0x3d, - 0x5e, 0x5e, 0xa5, 0xf6, 0xfc, 0x26, 0xa9, 0xe6, 0xff, 0x57, 0xcd, 0x3f, 0x37, 0x16, 0xb8, 0x1e, - 0xd0, 0x66, 0xb3, 0x09, 0x1f, 0xa1, 0x7b, 0x02, 0xae, 0x32, 0x48, 0x65, 0xd8, 0xe7, 0xd9, 0x44, - 0xda, 0x75, 0xd7, 0x6a, 0x55, 0x83, 0x86, 0xde, 0x7c, 0x53, 0xec, 0xe1, 0x4f, 0xe8, 0xa1, 0xbe, - 0xa5, 0x2b, 0x9f, 0x00, 0xa9, 0x2a, 0x8e, 0x4c, 0x55, 0x9c, 0xaf, 0xe2, 0xba, 0x06, 0x93, 0xa5, - 0x73, 0x71, 0x33, 0x75, 0xac, 0xdb, 0xa9, 0x63, 0xfd, 0x9e, 0x3a, 0xd6, 0xb7, 0x99, 0x53, 0xb9, - 0x9d, 0x39, 0x95, 0x9f, 0x33, 0xa7, 0xf2, 0xd1, 0x8f, 0x99, 0x1c, 0x64, 0x91, 0xd7, 0xe7, 0x63, - 0xff, 0x8c, 0x30, 0x11, 0x8d, 0x78, 0x7f, 0xe8, 0x2f, 0x9f, 0xd0, 0x97, 0xe5, 0x23, 0x92, 0x79, - 0x02, 0x69, 0x54, 0x53, 0x2f, 0xe7, 0xd5, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x85, 0xa0, 0x8c, - 0x1c, 0xb1, 0x04, 0x00, 0x00, + // 534 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0xcf, 0x6e, 0xd3, 0x4e, + 0x10, 0xc7, 0xe3, 0x5f, 0xd3, 0xf4, 0x97, 0x6d, 0xa8, 0xc0, 0x40, 0x1b, 0x22, 0xe4, 0x5a, 0xad, + 0xa8, 0x22, 0x10, 0xb6, 0x54, 0xce, 0x1c, 0x12, 0x24, 0x4a, 0xd5, 0x1e, 0x4a, 0x82, 0x38, 0x70, + 0xc0, 0x5a, 0xdb, 0xc3, 0x66, 0x95, 0x3f, 0xeb, 0xac, 0xd7, 0x11, 0xe6, 0x29, 0x78, 0x0c, 0x8e, + 0x3c, 0x46, 0x8f, 0x3d, 0x72, 0x42, 0x28, 0x39, 0xf0, 0x04, 0xdc, 0x91, 0xd7, 0x1b, 0x37, 0x71, + 0x96, 0x8b, 0x35, 0x3b, 0xfb, 0x9d, 0xcf, 0xce, 0x7e, 0xd7, 0x83, 0xec, 0x4f, 0x98, 0xf2, 0x94, + 0xd3, 0x09, 0x71, 0x87, 0x90, 0xc6, 0x03, 0xcc, 0xc1, 0x25, 0x30, 0x81, 0x98, 0xc6, 0x4e, 0xc4, + 0x99, 0x60, 0xa6, 0x59, 0x28, 0x9c, 0xa5, 0xa2, 0x75, 0x0f, 0x8f, 0xe9, 0x84, 0xb9, 0xf2, 0x9b, + 0xcb, 0x5a, 0x0f, 0x08, 0x23, 0x4c, 0x86, 0x6e, 0x16, 0xa9, 0xec, 0xa1, 0x06, 0x1f, 0x61, 0x8e, + 0xc7, 0x8a, 0xde, 0x3a, 0xd1, 0x08, 0x66, 0x78, 0x44, 0x43, 0x2c, 0x18, 0xf7, 0x62, 0x10, 0x4a, + 0x77, 0xa4, 0xd1, 0x0d, 0x21, 0xf5, 0x64, 0xa4, 0x34, 0xcf, 0x35, 0x1a, 0x4c, 0x08, 0x07, 0x82, + 0x05, 0x84, 0x5e, 0x59, 0xae, 0xbb, 0x7a, 0x94, 0xf8, 0x99, 0x4e, 0x29, 0x9e, 0xe9, 0x80, 0x89, + 0x18, 0x30, 0x4e, 0xbf, 0x40, 0xe8, 0xe1, 0x30, 0xe4, 0x10, 0xab, 0x9b, 0x1c, 0xfd, 0xd9, 0x46, + 0x8d, 0xb3, 0xdc, 0xb9, 0xbe, 0xc0, 0x02, 0xcc, 0x97, 0xa8, 0x96, 0x5f, 0xb5, 0x69, 0xd8, 0x46, + 0x7b, 0xf7, 0xb4, 0xe5, 0x6c, 0x3a, 0xe9, 0x5c, 0x49, 0x45, 0xb7, 0x7e, 0xfd, 0xf3, 0xb0, 0xf2, + 0xed, 0xf7, 0xf7, 0xa7, 0x46, 0x4f, 0x15, 0x99, 0x07, 0x68, 0x27, 0x62, 0x5c, 0x78, 0x34, 0x6c, + 0xfe, 0x67, 0x1b, 0xed, 0x7a, 0xaf, 0x96, 0x2d, 0xcf, 0x43, 0xf3, 0x1d, 0x32, 0xd7, 0x1c, 0xf2, + 0x46, 0x34, 0x16, 0xcd, 0x2d, 0x7b, 0xab, 0xbd, 0x7b, 0x6a, 0xeb, 0xce, 0x78, 0xbf, 0x54, 0xf7, + 0x41, 0x74, 0xab, 0xd9, 0x49, 0xbd, 0xbb, 0xb3, 0x95, 0xdc, 0x25, 0x8d, 0x85, 0xf9, 0x06, 0xed, + 0x15, 0x06, 0xe5, 0xc4, 0xaa, 0x24, 0x3e, 0xd6, 0x11, 0x2f, 0x20, 0xed, 0x67, 0x81, 0xa2, 0x35, + 0x86, 0x6a, 0x2d, 0x49, 0x04, 0x3d, 0xd2, 0xb9, 0x9e, 0x43, 0xb7, 0x25, 0xf4, 0x44, 0x07, 0xed, + 0x14, 0x45, 0x25, 0xfc, 0x3e, 0xde, 0xd8, 0x91, 0x07, 0x5d, 0xa2, 0x3d, 0x1c, 0x08, 0x3a, 0x03, + 0x4f, 0x3d, 0x5b, 0xb3, 0x26, 0x8d, 0xd6, 0x9a, 0xd0, 0x91, 0xca, 0xab, 0xc4, 0xbf, 0x80, 0x74, + 0xd9, 0x36, 0x5e, 0xc9, 0x65, 0xb4, 0x69, 0x02, 0x09, 0x84, 0x05, 0x6d, 0xe7, 0xdf, 0xb4, 0xb7, + 0x52, 0xb9, 0x4e, 0x9b, 0xae, 0xe4, 0xcc, 0x00, 0x1d, 0x6c, 0xfe, 0x29, 0xb9, 0x05, 0xff, 0x4b, + 0x0b, 0x9e, 0x68, 0x9b, 0x2c, 0x4a, 0x3a, 0x79, 0x85, 0x62, 0x3f, 0xc4, 0xe5, 0x0d, 0x69, 0xc0, + 0x31, 0xba, 0xc3, 0x61, 0x9a, 0x40, 0x2c, 0xbc, 0x80, 0x25, 0x13, 0xd1, 0xac, 0xdb, 0x46, 0xbb, + 0xda, 0x6b, 0xa8, 0xe4, 0xab, 0x2c, 0x67, 0x7e, 0x44, 0xfb, 0xd9, 0x40, 0x73, 0x3c, 0x2a, 0xbf, + 0x05, 0x92, 0x8d, 0x1c, 0xeb, 0x1a, 0x39, 0xcb, 0x2b, 0x4a, 0x0f, 0x71, 0x9f, 0xac, 0xa7, 0xb3, + 0x26, 0xba, 0xe7, 0xd7, 0x73, 0xcb, 0xb8, 0x99, 0x5b, 0xc6, 0xaf, 0xb9, 0x65, 0x7c, 0x5d, 0x58, + 0x95, 0x9b, 0x85, 0x55, 0xf9, 0xb1, 0xb0, 0x2a, 0x1f, 0x5c, 0x42, 0xc5, 0x20, 0xf1, 0x9d, 0x80, + 0x8d, 0xdd, 0xd7, 0x98, 0x72, 0x7f, 0xc4, 0x82, 0xa1, 0x7b, 0x3b, 0x53, 0x9f, 0x6f, 0xa7, 0x4a, + 0xa4, 0x11, 0xc4, 0x7e, 0x4d, 0x4e, 0xd2, 0x8b, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd6, 0xa3, + 0x22, 0x09, 0x95, 0x04, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/keyshare/types/key_share.pb.go b/x/keyshare/types/key_share.pb.go index 41d06ffe..778b7135 100644 --- a/x/keyshare/types/key_share.pb.go +++ b/x/keyshare/types/key_share.pb.go @@ -22,13 +22,15 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// KeyShare defines the structure for submitting +// blockwise keyshares by validators type KeyShare struct { Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` - BlockHeight uint64 `protobuf:"varint,2,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"` - KeyShare string `protobuf:"bytes,3,opt,name=keyShare,proto3" json:"keyShare,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,4,opt,name=keyShareIndex,proto3" json:"keyShareIndex,omitempty"` - ReceivedTimestamp uint64 `protobuf:"varint,5,opt,name=receivedTimestamp,proto3" json:"receivedTimestamp,omitempty"` - ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=receivedBlockHeight,proto3" json:"receivedBlockHeight,omitempty"` + BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + KeyShare string `protobuf:"bytes,3,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` + KeyShareIndex uint64 `protobuf:"varint,4,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + ReceivedTimestamp uint64 `protobuf:"varint,5,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` + ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` } func (m *KeyShare) Reset() { *m = KeyShare{} } @@ -106,8 +108,198 @@ func (m *KeyShare) GetReceivedBlockHeight() uint64 { return 0 } +// GeneralKeyShare defines the structure for submitting +// general keyshares by validators +type GeneralKeyShare struct { + Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` + IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` + IdValue string `protobuf:"bytes,3,opt,name=id_value,json=idValue,proto3" json:"id_value,omitempty"` + KeyShare string `protobuf:"bytes,4,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` + KeyShareIndex uint64 `protobuf:"varint,5,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + ReceivedTimestamp uint64 `protobuf:"varint,6,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` + ReceivedBlockHeight uint64 `protobuf:"varint,7,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` +} + +func (m *GeneralKeyShare) Reset() { *m = GeneralKeyShare{} } +func (m *GeneralKeyShare) String() string { return proto.CompactTextString(m) } +func (*GeneralKeyShare) ProtoMessage() {} +func (*GeneralKeyShare) Descriptor() ([]byte, []int) { + return fileDescriptor_cb45212b5123dd29, []int{1} +} +func (m *GeneralKeyShare) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GeneralKeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GeneralKeyShare.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GeneralKeyShare) XXX_Merge(src proto.Message) { + xxx_messageInfo_GeneralKeyShare.Merge(m, src) +} +func (m *GeneralKeyShare) XXX_Size() int { + return m.Size() +} +func (m *GeneralKeyShare) XXX_DiscardUnknown() { + xxx_messageInfo_GeneralKeyShare.DiscardUnknown(m) +} + +var xxx_messageInfo_GeneralKeyShare proto.InternalMessageInfo + +func (m *GeneralKeyShare) GetValidator() string { + if m != nil { + return m.Validator + } + return "" +} + +func (m *GeneralKeyShare) GetIdType() string { + if m != nil { + return m.IdType + } + return "" +} + +func (m *GeneralKeyShare) GetIdValue() string { + if m != nil { + return m.IdValue + } + return "" +} + +func (m *GeneralKeyShare) GetKeyShare() string { + if m != nil { + return m.KeyShare + } + return "" +} + +func (m *GeneralKeyShare) GetKeyShareIndex() uint64 { + if m != nil { + return m.KeyShareIndex + } + return 0 +} + +func (m *GeneralKeyShare) GetReceivedTimestamp() uint64 { + if m != nil { + return m.ReceivedTimestamp + } + return 0 +} + +func (m *GeneralKeyShare) GetReceivedBlockHeight() uint64 { + if m != nil { + return m.ReceivedBlockHeight + } + return 0 +} + +// ValidatorEncryptedKeyShare defines the structure for +// submitting encrypted keyshares by validators +type ValidatorEncryptedKeyShare struct { + Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` + Requester string `protobuf:"bytes,2,opt,name=requester,proto3" json:"requester,omitempty"` + KeyShare string `protobuf:"bytes,3,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` + KeyShareIndex uint64 `protobuf:"varint,4,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + ReceivedTimestamp uint64 `protobuf:"varint,5,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` + ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` + Identity string `protobuf:"bytes,7,opt,name=identity,proto3" json:"identity,omitempty"` +} + +func (m *ValidatorEncryptedKeyShare) Reset() { *m = ValidatorEncryptedKeyShare{} } +func (m *ValidatorEncryptedKeyShare) String() string { return proto.CompactTextString(m) } +func (*ValidatorEncryptedKeyShare) ProtoMessage() {} +func (*ValidatorEncryptedKeyShare) Descriptor() ([]byte, []int) { + return fileDescriptor_cb45212b5123dd29, []int{2} +} +func (m *ValidatorEncryptedKeyShare) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidatorEncryptedKeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidatorEncryptedKeyShare.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ValidatorEncryptedKeyShare) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorEncryptedKeyShare.Merge(m, src) +} +func (m *ValidatorEncryptedKeyShare) XXX_Size() int { + return m.Size() +} +func (m *ValidatorEncryptedKeyShare) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorEncryptedKeyShare.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidatorEncryptedKeyShare proto.InternalMessageInfo + +func (m *ValidatorEncryptedKeyShare) GetValidator() string { + if m != nil { + return m.Validator + } + return "" +} + +func (m *ValidatorEncryptedKeyShare) GetRequester() string { + if m != nil { + return m.Requester + } + return "" +} + +func (m *ValidatorEncryptedKeyShare) GetKeyShare() string { + if m != nil { + return m.KeyShare + } + return "" +} + +func (m *ValidatorEncryptedKeyShare) GetKeyShareIndex() uint64 { + if m != nil { + return m.KeyShareIndex + } + return 0 +} + +func (m *ValidatorEncryptedKeyShare) GetReceivedTimestamp() uint64 { + if m != nil { + return m.ReceivedTimestamp + } + return 0 +} + +func (m *ValidatorEncryptedKeyShare) GetReceivedBlockHeight() uint64 { + if m != nil { + return m.ReceivedBlockHeight + } + return 0 +} + +func (m *ValidatorEncryptedKeyShare) GetIdentity() string { + if m != nil { + return m.Identity + } + return "" +} + func init() { proto.RegisterType((*KeyShare)(nil), "fairyring.keyshare.KeyShare") + proto.RegisterType((*GeneralKeyShare)(nil), "fairyring.keyshare.GeneralKeyShare") + proto.RegisterType((*ValidatorEncryptedKeyShare)(nil), "fairyring.keyshare.ValidatorEncryptedKeyShare") } func init() { @@ -115,23 +307,32 @@ func init() { } var fileDescriptor_cb45212b5123dd29 = []byte{ - // 253 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4a, 0x4b, 0xcc, 0x2c, - 0xaa, 0x2c, 0xca, 0xcc, 0x4b, 0xd7, 0xcf, 0x4e, 0xad, 0x2c, 0xce, 0x48, 0x2c, 0x4a, 0x05, 0x31, - 0xe2, 0xc1, 0x2c, 0xbd, 0x82, 0xa2, 0xfc, 0x92, 0x7c, 0x21, 0x21, 0xb8, 0x1a, 0x3d, 0x98, 0x1a, - 0xa5, 0x37, 0x8c, 0x5c, 0x1c, 0xde, 0xa9, 0x95, 0xc1, 0x20, 0x8e, 0x90, 0x0c, 0x17, 0x67, 0x59, - 0x62, 0x4e, 0x66, 0x4a, 0x62, 0x49, 0x7e, 0x91, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x67, 0x10, 0x42, - 0x40, 0x48, 0x81, 0x8b, 0x3b, 0x29, 0x27, 0x3f, 0x39, 0xdb, 0x23, 0x35, 0x33, 0x3d, 0xa3, 0x44, - 0x82, 0x49, 0x81, 0x51, 0x83, 0x25, 0x08, 0x59, 0x48, 0x48, 0x8a, 0x8b, 0x23, 0x1b, 0x6a, 0x96, - 0x04, 0x33, 0x58, 0x3b, 0x9c, 0x2f, 0xa4, 0xc2, 0xc5, 0x0b, 0x63, 0x7b, 0xe6, 0xa5, 0xa4, 0x56, - 0x48, 0xb0, 0x80, 0xf5, 0xa3, 0x0a, 0x0a, 0xe9, 0x70, 0x09, 0x16, 0xa5, 0x26, 0xa7, 0x66, 0x96, - 0xa5, 0xa6, 0x84, 0x64, 0xe6, 0xa6, 0x16, 0x97, 0x24, 0xe6, 0x16, 0x48, 0xb0, 0x82, 0x55, 0x62, - 0x4a, 0x08, 0x19, 0x70, 0x09, 0xc3, 0x04, 0x9d, 0x90, 0x5c, 0xc6, 0x06, 0x56, 0x8f, 0x4d, 0xca, - 0xc9, 0xf3, 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, - 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xf4, 0xd3, 0x33, 0x4b, - 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xdd, 0x12, 0x33, 0x8b, 0xc0, 0xfe, 0xd2, 0x47, - 0x84, 0x6a, 0x05, 0x22, 0x5c, 0x4b, 0x2a, 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x81, 0x6a, 0x0c, - 0x08, 0x00, 0x00, 0xff, 0xff, 0x1e, 0xf4, 0xc1, 0xf3, 0x7a, 0x01, 0x00, 0x00, + // 392 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x93, 0xcf, 0x4e, 0xea, 0x40, + 0x14, 0xc6, 0x29, 0x17, 0x0a, 0x9d, 0x7b, 0x6f, 0xc8, 0x9d, 0x1b, 0x63, 0x45, 0xd2, 0x20, 0x0b, + 0xc3, 0x46, 0x9a, 0xe8, 0x1b, 0x90, 0xf8, 0x87, 0xb8, 0xab, 0x84, 0x85, 0x9b, 0x66, 0xe8, 0x1c, + 0xe9, 0x84, 0xd2, 0xd6, 0xe9, 0x40, 0xe8, 0x33, 0xb8, 0xf1, 0x01, 0x7c, 0x20, 0x97, 0x2c, 0x5d, + 0x1a, 0x78, 0x04, 0x5f, 0xc0, 0x74, 0xe2, 0xb4, 0x61, 0x61, 0xc4, 0xa5, 0xbb, 0x39, 0xdf, 0xf9, + 0x7a, 0x66, 0xce, 0xaf, 0xe7, 0xa0, 0xce, 0x1d, 0x61, 0x3c, 0xe5, 0x2c, 0x9c, 0xd8, 0x53, 0x48, + 0x13, 0x9f, 0x70, 0xc8, 0x0e, 0xae, 0x3c, 0xf5, 0x62, 0x1e, 0x89, 0x08, 0xe3, 0xdc, 0xd3, 0x53, + 0x9e, 0xce, 0x9b, 0x86, 0xea, 0xd7, 0x90, 0xde, 0x64, 0x01, 0x6e, 0x21, 0x63, 0x41, 0x02, 0x46, + 0x89, 0x88, 0xb8, 0xa9, 0xb5, 0xb5, 0xae, 0xe1, 0x14, 0x02, 0x3e, 0x42, 0x7f, 0xc6, 0x41, 0xe4, + 0x4d, 0x5d, 0x1f, 0xd8, 0xc4, 0x17, 0x66, 0xb9, 0xad, 0x75, 0x2b, 0xce, 0x6f, 0xa9, 0x5d, 0x49, + 0x09, 0x1f, 0x22, 0x23, 0xbf, 0xd4, 0xfc, 0x25, 0x0b, 0xd4, 0xa7, 0xaa, 0xfa, 0x31, 0x6a, 0xe4, + 0x49, 0x97, 0x85, 0x14, 0x96, 0x66, 0x45, 0x96, 0xf8, 0xab, 0x2c, 0x83, 0x4c, 0xc4, 0x27, 0x08, + 0x73, 0xf0, 0x80, 0x2d, 0x80, 0xba, 0x82, 0xcd, 0x20, 0x11, 0x64, 0x16, 0x9b, 0x55, 0x69, 0xfd, + 0xa7, 0x32, 0x43, 0x95, 0xc0, 0xa7, 0x68, 0x2f, 0xb7, 0x6f, 0xbd, 0x4f, 0x97, 0x5f, 0xfc, 0x57, + 0xc9, 0x7e, 0xf1, 0xce, 0xce, 0x43, 0x19, 0x35, 0x2e, 0x21, 0x04, 0x4e, 0x82, 0x1d, 0x9b, 0xdf, + 0x47, 0x35, 0x46, 0x5d, 0x91, 0xc6, 0x20, 0xfb, 0x36, 0x1c, 0x9d, 0xd1, 0x61, 0x1a, 0x03, 0x3e, + 0x40, 0x75, 0x46, 0xdd, 0x05, 0x09, 0xe6, 0xaa, 0xe3, 0x1a, 0xa3, 0xa3, 0x2c, 0xdc, 0xa6, 0x51, + 0xf9, 0x9a, 0x46, 0x75, 0x77, 0x1a, 0xfa, 0xb7, 0x69, 0xd4, 0x3e, 0xa7, 0xf1, 0x54, 0x46, 0xcd, + 0x91, 0xea, 0xf4, 0x3c, 0xf4, 0x78, 0x1a, 0x0b, 0xa0, 0x3b, 0x82, 0x69, 0x21, 0x83, 0xc3, 0xfd, + 0x1c, 0x12, 0x01, 0xfc, 0x03, 0x4d, 0x21, 0xfc, 0x94, 0x81, 0xc0, 0xcd, 0xec, 0x2f, 0x42, 0x28, + 0x98, 0x48, 0x25, 0x29, 0xc3, 0xc9, 0xe3, 0xfe, 0xe0, 0x79, 0x6d, 0x69, 0xab, 0xb5, 0xa5, 0xbd, + 0xae, 0x2d, 0xed, 0x71, 0x63, 0x95, 0x56, 0x1b, 0xab, 0xf4, 0xb2, 0xb1, 0x4a, 0xb7, 0xf6, 0x84, + 0x09, 0x7f, 0x3e, 0xee, 0x79, 0xd1, 0xcc, 0xbe, 0x20, 0x8c, 0xcb, 0xdb, 0xec, 0x62, 0x13, 0x97, + 0xc5, 0x2e, 0x66, 0x93, 0x93, 0x8c, 0x75, 0xb9, 0x88, 0x67, 0xef, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xe9, 0x20, 0xe4, 0xae, 0xae, 0x03, 0x00, 0x00, } func (m *KeyShare) Marshal() (dAtA []byte, err error) { @@ -188,56 +389,681 @@ func (m *KeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0xa } - return len(dAtA) - i, nil -} + return len(dAtA) - i, nil +} + +func (m *GeneralKeyShare) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GeneralKeyShare) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GeneralKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ReceivedBlockHeight != 0 { + i = encodeVarintKeyShare(dAtA, i, uint64(m.ReceivedBlockHeight)) + i-- + dAtA[i] = 0x38 + } + if m.ReceivedTimestamp != 0 { + i = encodeVarintKeyShare(dAtA, i, uint64(m.ReceivedTimestamp)) + i-- + dAtA[i] = 0x30 + } + if m.KeyShareIndex != 0 { + i = encodeVarintKeyShare(dAtA, i, uint64(m.KeyShareIndex)) + i-- + dAtA[i] = 0x28 + } + if len(m.KeyShare) > 0 { + i -= len(m.KeyShare) + copy(dAtA[i:], m.KeyShare) + i = encodeVarintKeyShare(dAtA, i, uint64(len(m.KeyShare))) + i-- + dAtA[i] = 0x22 + } + if len(m.IdValue) > 0 { + i -= len(m.IdValue) + copy(dAtA[i:], m.IdValue) + i = encodeVarintKeyShare(dAtA, i, uint64(len(m.IdValue))) + i-- + dAtA[i] = 0x1a + } + if len(m.IdType) > 0 { + i -= len(m.IdType) + copy(dAtA[i:], m.IdType) + i = encodeVarintKeyShare(dAtA, i, uint64(len(m.IdType))) + i-- + dAtA[i] = 0x12 + } + if len(m.Validator) > 0 { + i -= len(m.Validator) + copy(dAtA[i:], m.Validator) + i = encodeVarintKeyShare(dAtA, i, uint64(len(m.Validator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ValidatorEncryptedKeyShare) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ValidatorEncryptedKeyShare) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidatorEncryptedKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Identity) > 0 { + i -= len(m.Identity) + copy(dAtA[i:], m.Identity) + i = encodeVarintKeyShare(dAtA, i, uint64(len(m.Identity))) + i-- + dAtA[i] = 0x3a + } + if m.ReceivedBlockHeight != 0 { + i = encodeVarintKeyShare(dAtA, i, uint64(m.ReceivedBlockHeight)) + i-- + dAtA[i] = 0x30 + } + if m.ReceivedTimestamp != 0 { + i = encodeVarintKeyShare(dAtA, i, uint64(m.ReceivedTimestamp)) + i-- + dAtA[i] = 0x28 + } + if m.KeyShareIndex != 0 { + i = encodeVarintKeyShare(dAtA, i, uint64(m.KeyShareIndex)) + i-- + dAtA[i] = 0x20 + } + if len(m.KeyShare) > 0 { + i -= len(m.KeyShare) + copy(dAtA[i:], m.KeyShare) + i = encodeVarintKeyShare(dAtA, i, uint64(len(m.KeyShare))) + i-- + dAtA[i] = 0x1a + } + if len(m.Requester) > 0 { + i -= len(m.Requester) + copy(dAtA[i:], m.Requester) + i = encodeVarintKeyShare(dAtA, i, uint64(len(m.Requester))) + i-- + dAtA[i] = 0x12 + } + if len(m.Validator) > 0 { + i -= len(m.Validator) + copy(dAtA[i:], m.Validator) + i = encodeVarintKeyShare(dAtA, i, uint64(len(m.Validator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintKeyShare(dAtA []byte, offset int, v uint64) int { + offset -= sovKeyShare(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *KeyShare) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Validator) + if l > 0 { + n += 1 + l + sovKeyShare(uint64(l)) + } + if m.BlockHeight != 0 { + n += 1 + sovKeyShare(uint64(m.BlockHeight)) + } + l = len(m.KeyShare) + if l > 0 { + n += 1 + l + sovKeyShare(uint64(l)) + } + if m.KeyShareIndex != 0 { + n += 1 + sovKeyShare(uint64(m.KeyShareIndex)) + } + if m.ReceivedTimestamp != 0 { + n += 1 + sovKeyShare(uint64(m.ReceivedTimestamp)) + } + if m.ReceivedBlockHeight != 0 { + n += 1 + sovKeyShare(uint64(m.ReceivedBlockHeight)) + } + return n +} + +func (m *GeneralKeyShare) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Validator) + if l > 0 { + n += 1 + l + sovKeyShare(uint64(l)) + } + l = len(m.IdType) + if l > 0 { + n += 1 + l + sovKeyShare(uint64(l)) + } + l = len(m.IdValue) + if l > 0 { + n += 1 + l + sovKeyShare(uint64(l)) + } + l = len(m.KeyShare) + if l > 0 { + n += 1 + l + sovKeyShare(uint64(l)) + } + if m.KeyShareIndex != 0 { + n += 1 + sovKeyShare(uint64(m.KeyShareIndex)) + } + if m.ReceivedTimestamp != 0 { + n += 1 + sovKeyShare(uint64(m.ReceivedTimestamp)) + } + if m.ReceivedBlockHeight != 0 { + n += 1 + sovKeyShare(uint64(m.ReceivedBlockHeight)) + } + return n +} + +func (m *ValidatorEncryptedKeyShare) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Validator) + if l > 0 { + n += 1 + l + sovKeyShare(uint64(l)) + } + l = len(m.Requester) + if l > 0 { + n += 1 + l + sovKeyShare(uint64(l)) + } + l = len(m.KeyShare) + if l > 0 { + n += 1 + l + sovKeyShare(uint64(l)) + } + if m.KeyShareIndex != 0 { + n += 1 + sovKeyShare(uint64(m.KeyShareIndex)) + } + if m.ReceivedTimestamp != 0 { + n += 1 + sovKeyShare(uint64(m.ReceivedTimestamp)) + } + if m.ReceivedBlockHeight != 0 { + n += 1 + sovKeyShare(uint64(m.ReceivedBlockHeight)) + } + l = len(m.Identity) + if l > 0 { + n += 1 + l + sovKeyShare(uint64(l)) + } + return n +} + +func sovKeyShare(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozKeyShare(x uint64) (n int) { + return sovKeyShare(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *KeyShare) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeyShare + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: KeyShare: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: KeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeyShare + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthKeyShare + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKeyShare + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Validator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeyShare + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeyShare + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthKeyShare + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKeyShare + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KeyShare = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) + } + m.KeyShareIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeyShare + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KeyShareIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReceivedTimestamp", wireType) + } + m.ReceivedTimestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeyShare + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReceivedTimestamp |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReceivedBlockHeight", wireType) + } + m.ReceivedBlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeyShare + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReceivedBlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipKeyShare(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeyShare + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GeneralKeyShare) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeyShare + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GeneralKeyShare: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GeneralKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Validator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeyShare + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthKeyShare + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKeyShare + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Validator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IdType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeyShare + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthKeyShare + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKeyShare + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IdType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IdValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeyShare + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthKeyShare + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKeyShare + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IdValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeyShare + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthKeyShare + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKeyShare + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KeyShare = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) + } + m.KeyShareIndex = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeyShare + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.KeyShareIndex |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReceivedTimestamp", wireType) + } + m.ReceivedTimestamp = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeyShare + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReceivedTimestamp |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReceivedBlockHeight", wireType) + } + m.ReceivedBlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeyShare + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ReceivedBlockHeight |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipKeyShare(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthKeyShare + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } -func encodeVarintKeyShare(dAtA []byte, offset int, v uint64) int { - offset -= sovKeyShare(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *KeyShare) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Validator) - if l > 0 { - n += 1 + l + sovKeyShare(uint64(l)) - } - if m.BlockHeight != 0 { - n += 1 + sovKeyShare(uint64(m.BlockHeight)) - } - l = len(m.KeyShare) - if l > 0 { - n += 1 + l + sovKeyShare(uint64(l)) - } - if m.KeyShareIndex != 0 { - n += 1 + sovKeyShare(uint64(m.KeyShareIndex)) - } - if m.ReceivedTimestamp != 0 { - n += 1 + sovKeyShare(uint64(m.ReceivedTimestamp)) - } - if m.ReceivedBlockHeight != 0 { - n += 1 + sovKeyShare(uint64(m.ReceivedBlockHeight)) + if iNdEx > l { + return io.ErrUnexpectedEOF } - return n -} - -func sovKeyShare(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozKeyShare(x uint64) (n int) { - return sovKeyShare(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + return nil } -func (m *KeyShare) Unmarshal(dAtA []byte) error { +func (m *ValidatorEncryptedKeyShare) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -260,10 +1086,10 @@ func (m *KeyShare) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: KeyShare: wiretype end group for non-group") + return fmt.Errorf("proto: ValidatorEncryptedKeyShare: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: KeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidatorEncryptedKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -299,10 +1125,10 @@ func (m *KeyShare) Unmarshal(dAtA []byte) error { m.Validator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Requester", wireType) } - m.BlockHeight = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowKeyShare @@ -312,11 +1138,24 @@ func (m *KeyShare) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BlockHeight |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthKeyShare + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKeyShare + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Requester = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) @@ -406,6 +1245,38 @@ func (m *KeyShare) Unmarshal(dAtA []byte) error { break } } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Identity", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowKeyShare + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthKeyShare + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthKeyShare + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Identity = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipKeyShare(dAtA[iNdEx:]) diff --git a/x/keyshare/types/pub_key.pb.go b/x/keyshare/types/pub_key.pb.go index 14930b3e..bb0644c1 100644 --- a/x/keyshare/types/pub_key.pb.go +++ b/x/keyshare/types/pub_key.pb.go @@ -22,6 +22,8 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// EncryptedKeyShare defines the structure for storing +// blockwise keyshares submitted by validators type EncryptedKeyShare struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"` @@ -74,12 +76,13 @@ func (m *EncryptedKeyShare) GetValidator() string { return "" } +// ActivePubKey defines the structure of the active public key type ActivePubKey struct { - PublicKey string `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"` + PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` Expiry uint64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` - NumberOfValidators uint64 `protobuf:"varint,4,opt,name=numberOfValidators,proto3" json:"numberOfValidators,omitempty"` - EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encryptedKeyShares,proto3" json:"encryptedKeyShares,omitempty"` + NumberOfValidators uint64 `protobuf:"varint,4,opt,name=number_of_validators,json=numberOfValidators,proto3" json:"number_of_validators,omitempty"` + EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encrypted_key_shares,json=encryptedKeyShares,proto3" json:"encrypted_key_shares,omitempty"` } func (m *ActivePubKey) Reset() { *m = ActivePubKey{} } @@ -150,12 +153,13 @@ func (m *ActivePubKey) GetEncryptedKeyShares() []*EncryptedKeyShare { return nil } +// QueuedPubKey defines the structure of the queued public key type QueuedPubKey struct { - PublicKey string `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"` + PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` Expiry uint64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` - NumberOfValidators uint64 `protobuf:"varint,4,opt,name=numberOfValidators,proto3" json:"numberOfValidators,omitempty"` - EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encryptedKeyShares,proto3" json:"encryptedKeyShares,omitempty"` + NumberOfValidators uint64 `protobuf:"varint,4,opt,name=number_of_validators,json=numberOfValidators,proto3" json:"number_of_validators,omitempty"` + EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encrypted_key_shares,json=encryptedKeyShares,proto3" json:"encrypted_key_shares,omitempty"` } func (m *QueuedPubKey) Reset() { *m = QueuedPubKey{} } @@ -235,26 +239,27 @@ func init() { func init() { proto.RegisterFile("fairyring/keyshare/pub_key.proto", fileDescriptor_2c1c9675c7c2f3c4) } var fileDescriptor_2c1c9675c7c2f3c4 = []byte{ - // 306 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x92, 0xcf, 0x4a, 0x33, 0x31, - 0x14, 0xc5, 0x9b, 0xaf, 0xfd, 0x2a, 0x8d, 0x6e, 0xcc, 0x42, 0xb2, 0x90, 0x30, 0x14, 0x84, 0xae, - 0x32, 0xa0, 0x4f, 0xa0, 0x50, 0x41, 0xba, 0x50, 0x2b, 0xba, 0x70, 0x23, 0x49, 0xe6, 0xb6, 0x0d, - 0xfd, 0x33, 0x21, 0x93, 0x94, 0xe6, 0x2d, 0x7c, 0x2c, 0x97, 0x5d, 0xba, 0x94, 0x19, 0x7c, 0x0f, - 0xe9, 0xd0, 0x71, 0xc4, 0xf6, 0x09, 0xdc, 0xe5, 0x9e, 0xfb, 0xe3, 0x84, 0x73, 0x39, 0x38, 0x1a, - 0x09, 0x6d, 0x83, 0xd5, 0x8b, 0x71, 0x3c, 0x85, 0x90, 0x4d, 0x84, 0x85, 0xd8, 0x78, 0xf9, 0x32, - 0x85, 0xc0, 0x8d, 0x4d, 0x5d, 0x4a, 0xc8, 0x37, 0xc1, 0x2b, 0xa2, 0xdb, 0xc7, 0xc7, 0xfd, 0x85, - 0xb2, 0xc1, 0x38, 0x48, 0x06, 0x10, 0x1e, 0x36, 0x22, 0x21, 0xb8, 0x95, 0x08, 0x27, 0x28, 0x8a, - 0x50, 0xaf, 0x33, 0x2c, 0xdf, 0xe4, 0x14, 0x77, 0x96, 0x62, 0xa6, 0x13, 0xe1, 0x52, 0x4b, 0xff, - 0x95, 0x8b, 0x5a, 0xe8, 0x7e, 0x22, 0x7c, 0x74, 0xa9, 0x9c, 0x5e, 0xc2, 0x9d, 0x97, 0x03, 0x08, - 0x1b, 0xdc, 0x78, 0x39, 0xd3, 0x6a, 0x00, 0x61, 0xeb, 0x53, 0x0b, 0x84, 0xe2, 0x03, 0x65, 0xe1, - 0x87, 0x55, 0x35, 0x92, 0x13, 0xdc, 0x86, 0x95, 0xd1, 0x36, 0xd0, 0x66, 0x84, 0x7a, 0xad, 0xe1, - 0x76, 0x22, 0x1c, 0x93, 0x85, 0x9f, 0x4b, 0xb0, 0xb7, 0xa3, 0xa7, 0xea, 0xd7, 0x8c, 0xb6, 0x4a, - 0x66, 0xcf, 0x86, 0x3c, 0x62, 0x02, 0xbf, 0x73, 0x65, 0xf4, 0x7f, 0xd4, 0xec, 0x1d, 0x9e, 0x9f, - 0xf1, 0xdd, 0x43, 0xf0, 0x9d, 0x2b, 0x0c, 0xf7, 0x18, 0x94, 0x39, 0xef, 0x3d, 0x78, 0x48, 0xfe, - 0x74, 0xce, 0xab, 0x9b, 0xb7, 0x9c, 0xa1, 0x75, 0xce, 0xd0, 0x47, 0xce, 0xd0, 0x6b, 0xc1, 0x1a, - 0xeb, 0x82, 0x35, 0xde, 0x0b, 0xd6, 0x78, 0x8e, 0xc7, 0xda, 0x4d, 0xbc, 0xe4, 0x2a, 0x9d, 0xc7, - 0xd7, 0x42, 0x5b, 0x39, 0x4b, 0xd5, 0x34, 0xae, 0xbb, 0xb7, 0xaa, 0xdb, 0xe7, 0x82, 0x81, 0x4c, - 0xb6, 0xcb, 0xf2, 0x5d, 0x7c, 0x05, 0x00, 0x00, 0xff, 0xff, 0xda, 0x09, 0xa8, 0x6d, 0xa0, 0x02, + // 322 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x52, 0xcd, 0x4a, 0x33, 0x31, + 0x14, 0x6d, 0xbe, 0xf6, 0xab, 0x34, 0xba, 0x31, 0x14, 0x99, 0x85, 0x0e, 0x43, 0x41, 0xe8, 0x6a, + 0x46, 0xf4, 0x09, 0x14, 0x2a, 0x48, 0x17, 0x6a, 0x05, 0x05, 0x37, 0x43, 0x92, 0xb9, 0x6d, 0x43, + 0x7f, 0x12, 0x32, 0x49, 0x69, 0xde, 0xc2, 0xc7, 0x72, 0xd9, 0xa5, 0x4b, 0x69, 0x77, 0x3e, 0x85, + 0x4c, 0xfa, 0x33, 0x62, 0xdf, 0xc0, 0x5d, 0xee, 0x39, 0x87, 0x7b, 0x73, 0x0e, 0x07, 0x47, 0x7d, + 0x2a, 0xb4, 0xd3, 0x62, 0x3a, 0x48, 0x46, 0xe0, 0xf2, 0x21, 0xd5, 0x90, 0x28, 0xcb, 0xd2, 0x11, + 0xb8, 0x58, 0x69, 0x69, 0x24, 0x21, 0x3b, 0x45, 0xbc, 0x55, 0xb4, 0x3a, 0xf8, 0xb8, 0x33, 0xe5, + 0xda, 0x29, 0x03, 0x59, 0x17, 0xdc, 0x53, 0x01, 0x12, 0x82, 0x6b, 0x19, 0x35, 0x34, 0x40, 0x11, + 0x6a, 0x37, 0x7a, 0xfe, 0x4d, 0x4e, 0x71, 0x63, 0x46, 0xc7, 0x22, 0xa3, 0x46, 0xea, 0xe0, 0x9f, + 0x27, 0x4a, 0xa0, 0xf5, 0x85, 0xf0, 0xd1, 0x35, 0x37, 0x62, 0x06, 0x0f, 0x96, 0x75, 0xc1, 0x91, + 0x33, 0x8c, 0x95, 0x65, 0x63, 0xc1, 0x8b, 0xfb, 0x9b, 0x45, 0x8d, 0x35, 0x52, 0xd0, 0x01, 0x3e, + 0xe0, 0x1a, 0x7e, 0xec, 0xda, 0x8e, 0xe4, 0x04, 0xd7, 0x61, 0xae, 0x84, 0x76, 0x41, 0x35, 0x42, + 0xed, 0x5a, 0x6f, 0x33, 0x91, 0x0b, 0xdc, 0x9c, 0xda, 0x09, 0x03, 0x9d, 0xca, 0x7e, 0xba, 0x3b, + 0x9c, 0x07, 0x35, 0xaf, 0x22, 0x6b, 0xee, 0xbe, 0xff, 0xbc, 0x63, 0xc8, 0x0b, 0x6e, 0xc2, 0xd6, + 0x5a, 0xf1, 0x8b, 0xd4, 0x3b, 0xce, 0x83, 0xff, 0x51, 0xb5, 0x7d, 0x78, 0x79, 0x1e, 0xef, 0xa7, + 0x11, 0xef, 0x45, 0xd1, 0x23, 0xf0, 0x1b, 0xca, 0xbd, 0xd9, 0x47, 0x0b, 0x16, 0xb2, 0xbf, 0x6f, + 0xf6, 0xe6, 0xee, 0x7d, 0x19, 0xa2, 0xc5, 0x32, 0x44, 0x9f, 0xcb, 0x10, 0xbd, 0xad, 0xc2, 0xca, + 0x62, 0x15, 0x56, 0x3e, 0x56, 0x61, 0xe5, 0x35, 0x19, 0x08, 0x33, 0xb4, 0x2c, 0xe6, 0x72, 0x92, + 0xdc, 0x52, 0xa1, 0xd9, 0x58, 0xf2, 0x51, 0x52, 0xb6, 0x70, 0x5e, 0xf6, 0xd0, 0x38, 0x05, 0x39, + 0xab, 0xfb, 0x1a, 0x5e, 0x7d, 0x07, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x0f, 0x30, 0x51, 0xaa, 0x02, 0x00, 0x00, } diff --git a/x/keyshare/types/query.pb.go b/x/keyshare/types/query.pb.go index 0c9fedb9..c68e55fd 100644 --- a/x/keyshare/types/query.pb.go +++ b/x/keyshare/types/query.pb.go @@ -31,21 +31,23 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -type QueryVerifiableRandomnessQuery struct { +// QueryVerifiableRandomnessRequest is the request type for +// the Query/VerifiableRandomness method +type QueryVerifiableRandomnessRequest struct { } -func (m *QueryVerifiableRandomnessQuery) Reset() { *m = QueryVerifiableRandomnessQuery{} } -func (m *QueryVerifiableRandomnessQuery) String() string { return proto.CompactTextString(m) } -func (*QueryVerifiableRandomnessQuery) ProtoMessage() {} -func (*QueryVerifiableRandomnessQuery) Descriptor() ([]byte, []int) { +func (m *QueryVerifiableRandomnessRequest) Reset() { *m = QueryVerifiableRandomnessRequest{} } +func (m *QueryVerifiableRandomnessRequest) String() string { return proto.CompactTextString(m) } +func (*QueryVerifiableRandomnessRequest) ProtoMessage() {} +func (*QueryVerifiableRandomnessRequest) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{0} } -func (m *QueryVerifiableRandomnessQuery) XXX_Unmarshal(b []byte) error { +func (m *QueryVerifiableRandomnessRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryVerifiableRandomnessQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryVerifiableRandomnessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryVerifiableRandomnessQuery.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryVerifiableRandomnessRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -55,18 +57,20 @@ func (m *QueryVerifiableRandomnessQuery) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *QueryVerifiableRandomnessQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryVerifiableRandomnessQuery.Merge(m, src) +func (m *QueryVerifiableRandomnessRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryVerifiableRandomnessRequest.Merge(m, src) } -func (m *QueryVerifiableRandomnessQuery) XXX_Size() int { +func (m *QueryVerifiableRandomnessRequest) XXX_Size() int { return m.Size() } -func (m *QueryVerifiableRandomnessQuery) XXX_DiscardUnknown() { - xxx_messageInfo_QueryVerifiableRandomnessQuery.DiscardUnknown(m) +func (m *QueryVerifiableRandomnessRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryVerifiableRandomnessRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryVerifiableRandomnessQuery proto.InternalMessageInfo +var xxx_messageInfo_QueryVerifiableRandomnessRequest proto.InternalMessageInfo +// QueryVerifiableRandomnessResponse is the response type for +// the Query/VerifiableRandomness method type QueryVerifiableRandomnessResponse struct { Randomness string `protobuf:"bytes,1,opt,name=randomness,proto3" json:"randomness,omitempty"` Round uint64 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` @@ -202,6 +206,7 @@ func (m *QueryParamsResponse) GetParams() Params { return Params{} } +// QueryCommitmentsRequest is request type for the Query/Commitments RPC method. type QueryCommitmentsRequest struct { } @@ -238,9 +243,10 @@ func (m *QueryCommitmentsRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryCommitmentsRequest proto.InternalMessageInfo +// QueryCommitmentsResponse is response type for the Query/Commitments RPC method type QueryCommitmentsResponse struct { - ActiveCommitments *Commitments `protobuf:"bytes,1,opt,name=activeCommitments,proto3" json:"activeCommitments,omitempty"` - QueuedCommitments *Commitments `protobuf:"bytes,2,opt,name=queuedCommitments,proto3" json:"queuedCommitments,omitempty"` + ActiveCommitments *Commitments `protobuf:"bytes,1,opt,name=active_commitments,json=activeCommitments,proto3" json:"active_commitments,omitempty"` + QueuedCommitments *Commitments `protobuf:"bytes,2,opt,name=queued_commitments,json=queuedCommitments,proto3" json:"queued_commitments,omitempty"` } func (m *QueryCommitmentsResponse) Reset() { *m = QueryCommitmentsResponse{} } @@ -290,22 +296,23 @@ func (m *QueryCommitmentsResponse) GetQueuedCommitments() *Commitments { return nil } -type QueryGetValidatorSetRequest struct { +// QueryValidatorSetRequest is request type for the Query/ValidatorSet RPC method. +type QueryValidatorSetRequest struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` } -func (m *QueryGetValidatorSetRequest) Reset() { *m = QueryGetValidatorSetRequest{} } -func (m *QueryGetValidatorSetRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetValidatorSetRequest) ProtoMessage() {} -func (*QueryGetValidatorSetRequest) Descriptor() ([]byte, []int) { +func (m *QueryValidatorSetRequest) Reset() { *m = QueryValidatorSetRequest{} } +func (m *QueryValidatorSetRequest) String() string { return proto.CompactTextString(m) } +func (*QueryValidatorSetRequest) ProtoMessage() {} +func (*QueryValidatorSetRequest) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{6} } -func (m *QueryGetValidatorSetRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryValidatorSetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetValidatorSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryValidatorSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetValidatorSetRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryValidatorSetRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -315,41 +322,42 @@ func (m *QueryGetValidatorSetRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryGetValidatorSetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetValidatorSetRequest.Merge(m, src) +func (m *QueryValidatorSetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryValidatorSetRequest.Merge(m, src) } -func (m *QueryGetValidatorSetRequest) XXX_Size() int { +func (m *QueryValidatorSetRequest) XXX_Size() int { return m.Size() } -func (m *QueryGetValidatorSetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetValidatorSetRequest.DiscardUnknown(m) +func (m *QueryValidatorSetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryValidatorSetRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetValidatorSetRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryValidatorSetRequest proto.InternalMessageInfo -func (m *QueryGetValidatorSetRequest) GetIndex() string { +func (m *QueryValidatorSetRequest) GetIndex() string { if m != nil { return m.Index } return "" } -type QueryGetValidatorSetResponse struct { - ValidatorSet ValidatorSet `protobuf:"bytes,1,opt,name=validatorSet,proto3" json:"validatorSet"` +// QueryValidatorSetResponse is response type for the Query/ValidatorSet RPC method. +type QueryValidatorSetResponse struct { + ValidatorSet ValidatorSet `protobuf:"bytes,1,opt,name=validator_set,json=validatorSet,proto3" json:"validator_set"` } -func (m *QueryGetValidatorSetResponse) Reset() { *m = QueryGetValidatorSetResponse{} } -func (m *QueryGetValidatorSetResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetValidatorSetResponse) ProtoMessage() {} -func (*QueryGetValidatorSetResponse) Descriptor() ([]byte, []int) { +func (m *QueryValidatorSetResponse) Reset() { *m = QueryValidatorSetResponse{} } +func (m *QueryValidatorSetResponse) String() string { return proto.CompactTextString(m) } +func (*QueryValidatorSetResponse) ProtoMessage() {} +func (*QueryValidatorSetResponse) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{7} } -func (m *QueryGetValidatorSetResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryValidatorSetResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetValidatorSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryValidatorSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetValidatorSetResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryValidatorSetResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -359,41 +367,42 @@ func (m *QueryGetValidatorSetResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryGetValidatorSetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetValidatorSetResponse.Merge(m, src) +func (m *QueryValidatorSetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryValidatorSetResponse.Merge(m, src) } -func (m *QueryGetValidatorSetResponse) XXX_Size() int { +func (m *QueryValidatorSetResponse) XXX_Size() int { return m.Size() } -func (m *QueryGetValidatorSetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetValidatorSetResponse.DiscardUnknown(m) +func (m *QueryValidatorSetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryValidatorSetResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetValidatorSetResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryValidatorSetResponse proto.InternalMessageInfo -func (m *QueryGetValidatorSetResponse) GetValidatorSet() ValidatorSet { +func (m *QueryValidatorSetResponse) GetValidatorSet() ValidatorSet { if m != nil { return m.ValidatorSet } return ValidatorSet{} } -type QueryAllValidatorSetRequest struct { +// QueryValidatorSetAllRequest is request type for the Query/ValidatorSetAll RPC method. +type QueryValidatorSetAllRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllValidatorSetRequest) Reset() { *m = QueryAllValidatorSetRequest{} } -func (m *QueryAllValidatorSetRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllValidatorSetRequest) ProtoMessage() {} -func (*QueryAllValidatorSetRequest) Descriptor() ([]byte, []int) { +func (m *QueryValidatorSetAllRequest) Reset() { *m = QueryValidatorSetAllRequest{} } +func (m *QueryValidatorSetAllRequest) String() string { return proto.CompactTextString(m) } +func (*QueryValidatorSetAllRequest) ProtoMessage() {} +func (*QueryValidatorSetAllRequest) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{8} } -func (m *QueryAllValidatorSetRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryValidatorSetAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllValidatorSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryValidatorSetAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllValidatorSetRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryValidatorSetAllRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -403,42 +412,43 @@ func (m *QueryAllValidatorSetRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryAllValidatorSetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllValidatorSetRequest.Merge(m, src) +func (m *QueryValidatorSetAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryValidatorSetAllRequest.Merge(m, src) } -func (m *QueryAllValidatorSetRequest) XXX_Size() int { +func (m *QueryValidatorSetAllRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllValidatorSetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllValidatorSetRequest.DiscardUnknown(m) +func (m *QueryValidatorSetAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryValidatorSetAllRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllValidatorSetRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryValidatorSetAllRequest proto.InternalMessageInfo -func (m *QueryAllValidatorSetRequest) GetPagination() *query.PageRequest { +func (m *QueryValidatorSetAllRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -type QueryAllValidatorSetResponse struct { - ValidatorSet []ValidatorSet `protobuf:"bytes,1,rep,name=validatorSet,proto3" json:"validatorSet"` +// QueryValidatorSetAllResponse is response type for the Query/ValidatorSetAll RPC method. +type QueryValidatorSetAllResponse struct { + ValidatorSet []ValidatorSet `protobuf:"bytes,1,rep,name=validator_set,json=validatorSet,proto3" json:"validator_set"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllValidatorSetResponse) Reset() { *m = QueryAllValidatorSetResponse{} } -func (m *QueryAllValidatorSetResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllValidatorSetResponse) ProtoMessage() {} -func (*QueryAllValidatorSetResponse) Descriptor() ([]byte, []int) { +func (m *QueryValidatorSetAllResponse) Reset() { *m = QueryValidatorSetAllResponse{} } +func (m *QueryValidatorSetAllResponse) String() string { return proto.CompactTextString(m) } +func (*QueryValidatorSetAllResponse) ProtoMessage() {} +func (*QueryValidatorSetAllResponse) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{9} } -func (m *QueryAllValidatorSetResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryValidatorSetAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllValidatorSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryValidatorSetAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllValidatorSetResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryValidatorSetAllResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -448,49 +458,50 @@ func (m *QueryAllValidatorSetResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryAllValidatorSetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllValidatorSetResponse.Merge(m, src) +func (m *QueryValidatorSetAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryValidatorSetAllResponse.Merge(m, src) } -func (m *QueryAllValidatorSetResponse) XXX_Size() int { +func (m *QueryValidatorSetAllResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllValidatorSetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllValidatorSetResponse.DiscardUnknown(m) +func (m *QueryValidatorSetAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryValidatorSetAllResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllValidatorSetResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryValidatorSetAllResponse proto.InternalMessageInfo -func (m *QueryAllValidatorSetResponse) GetValidatorSet() []ValidatorSet { +func (m *QueryValidatorSetAllResponse) GetValidatorSet() []ValidatorSet { if m != nil { return m.ValidatorSet } return nil } -func (m *QueryAllValidatorSetResponse) GetPagination() *query.PageResponse { +func (m *QueryValidatorSetAllResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } return nil } -type QueryGetKeyShareRequest struct { +// QueryKeyShareRequest is request type for the Query/KeyShare RPC method. +type QueryKeyShareRequest struct { Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` - BlockHeight uint64 `protobuf:"varint,2,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"` + BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } -func (m *QueryGetKeyShareRequest) Reset() { *m = QueryGetKeyShareRequest{} } -func (m *QueryGetKeyShareRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetKeyShareRequest) ProtoMessage() {} -func (*QueryGetKeyShareRequest) Descriptor() ([]byte, []int) { +func (m *QueryKeyShareRequest) Reset() { *m = QueryKeyShareRequest{} } +func (m *QueryKeyShareRequest) String() string { return proto.CompactTextString(m) } +func (*QueryKeyShareRequest) ProtoMessage() {} +func (*QueryKeyShareRequest) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{10} } -func (m *QueryGetKeyShareRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryKeyShareRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetKeyShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryKeyShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetKeyShareRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryKeyShareRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -500,48 +511,49 @@ func (m *QueryGetKeyShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *QueryGetKeyShareRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetKeyShareRequest.Merge(m, src) +func (m *QueryKeyShareRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryKeyShareRequest.Merge(m, src) } -func (m *QueryGetKeyShareRequest) XXX_Size() int { +func (m *QueryKeyShareRequest) XXX_Size() int { return m.Size() } -func (m *QueryGetKeyShareRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetKeyShareRequest.DiscardUnknown(m) +func (m *QueryKeyShareRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryKeyShareRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetKeyShareRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryKeyShareRequest proto.InternalMessageInfo -func (m *QueryGetKeyShareRequest) GetValidator() string { +func (m *QueryKeyShareRequest) GetValidator() string { if m != nil { return m.Validator } return "" } -func (m *QueryGetKeyShareRequest) GetBlockHeight() uint64 { +func (m *QueryKeyShareRequest) GetBlockHeight() uint64 { if m != nil { return m.BlockHeight } return 0 } -type QueryGetKeyShareResponse struct { - KeyShare KeyShare `protobuf:"bytes,1,opt,name=keyShare,proto3" json:"keyShare"` +// QueryKeyShareResponse is response type for the Query/KeyShare RPC method. +type QueryKeyShareResponse struct { + KeyShare KeyShare `protobuf:"bytes,1,opt,name=key_share,json=keyShare,proto3" json:"key_share"` } -func (m *QueryGetKeyShareResponse) Reset() { *m = QueryGetKeyShareResponse{} } -func (m *QueryGetKeyShareResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetKeyShareResponse) ProtoMessage() {} -func (*QueryGetKeyShareResponse) Descriptor() ([]byte, []int) { +func (m *QueryKeyShareResponse) Reset() { *m = QueryKeyShareResponse{} } +func (m *QueryKeyShareResponse) String() string { return proto.CompactTextString(m) } +func (*QueryKeyShareResponse) ProtoMessage() {} +func (*QueryKeyShareResponse) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{11} } -func (m *QueryGetKeyShareResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryKeyShareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetKeyShareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryKeyShareResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -551,41 +563,42 @@ func (m *QueryGetKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *QueryGetKeyShareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetKeyShareResponse.Merge(m, src) +func (m *QueryKeyShareResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryKeyShareResponse.Merge(m, src) } -func (m *QueryGetKeyShareResponse) XXX_Size() int { +func (m *QueryKeyShareResponse) XXX_Size() int { return m.Size() } -func (m *QueryGetKeyShareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetKeyShareResponse.DiscardUnknown(m) +func (m *QueryKeyShareResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryKeyShareResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetKeyShareResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryKeyShareResponse proto.InternalMessageInfo -func (m *QueryGetKeyShareResponse) GetKeyShare() KeyShare { +func (m *QueryKeyShareResponse) GetKeyShare() KeyShare { if m != nil { return m.KeyShare } return KeyShare{} } -type QueryAllKeyShareRequest struct { +// QueryKeyShareAllRequest is request type for the Query/KeyShareAll RPC method. +type QueryKeyShareAllRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllKeyShareRequest) Reset() { *m = QueryAllKeyShareRequest{} } -func (m *QueryAllKeyShareRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllKeyShareRequest) ProtoMessage() {} -func (*QueryAllKeyShareRequest) Descriptor() ([]byte, []int) { +func (m *QueryKeyShareAllRequest) Reset() { *m = QueryKeyShareAllRequest{} } +func (m *QueryKeyShareAllRequest) String() string { return proto.CompactTextString(m) } +func (*QueryKeyShareAllRequest) ProtoMessage() {} +func (*QueryKeyShareAllRequest) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{12} } -func (m *QueryAllKeyShareRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryKeyShareAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllKeyShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryKeyShareAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllKeyShareRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryKeyShareAllRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -595,42 +608,43 @@ func (m *QueryAllKeyShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *QueryAllKeyShareRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllKeyShareRequest.Merge(m, src) +func (m *QueryKeyShareAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryKeyShareAllRequest.Merge(m, src) } -func (m *QueryAllKeyShareRequest) XXX_Size() int { +func (m *QueryKeyShareAllRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllKeyShareRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllKeyShareRequest.DiscardUnknown(m) +func (m *QueryKeyShareAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryKeyShareAllRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllKeyShareRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryKeyShareAllRequest proto.InternalMessageInfo -func (m *QueryAllKeyShareRequest) GetPagination() *query.PageRequest { +func (m *QueryKeyShareAllRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -type QueryAllKeyShareResponse struct { - KeyShare []KeyShare `protobuf:"bytes,1,rep,name=keyShare,proto3" json:"keyShare"` +// QueryKeyShareAllResponse is response type for the Query/KeyShareAll RPC method. +type QueryKeyShareAllResponse struct { + KeyShare []KeyShare `protobuf:"bytes,1,rep,name=key_share,json=keyShare,proto3" json:"key_share"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllKeyShareResponse) Reset() { *m = QueryAllKeyShareResponse{} } -func (m *QueryAllKeyShareResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllKeyShareResponse) ProtoMessage() {} -func (*QueryAllKeyShareResponse) Descriptor() ([]byte, []int) { +func (m *QueryKeyShareAllResponse) Reset() { *m = QueryKeyShareAllResponse{} } +func (m *QueryKeyShareAllResponse) String() string { return proto.CompactTextString(m) } +func (*QueryKeyShareAllResponse) ProtoMessage() {} +func (*QueryKeyShareAllResponse) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{13} } -func (m *QueryAllKeyShareResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryKeyShareAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryKeyShareAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllKeyShareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryKeyShareAllResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -640,49 +654,49 @@ func (m *QueryAllKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *QueryAllKeyShareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllKeyShareResponse.Merge(m, src) +func (m *QueryKeyShareAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryKeyShareAllResponse.Merge(m, src) } -func (m *QueryAllKeyShareResponse) XXX_Size() int { +func (m *QueryKeyShareAllResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllKeyShareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllKeyShareResponse.DiscardUnknown(m) +func (m *QueryKeyShareAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryKeyShareAllResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllKeyShareResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryKeyShareAllResponse proto.InternalMessageInfo -func (m *QueryAllKeyShareResponse) GetKeyShare() []KeyShare { +func (m *QueryKeyShareAllResponse) GetKeyShare() []KeyShare { if m != nil { return m.KeyShare } return nil } -func (m *QueryAllKeyShareResponse) GetPagination() *query.PageResponse { +func (m *QueryKeyShareAllResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } return nil } -// this line is used by starport scaffolding # 3 -type QueryGetAggregatedKeyShareRequest struct { +// QueryAggregatedKeyShareRequest is request type for the Query/AggregatedKeyShare RPC method. +type QueryAggregatedKeyShareRequest struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` } -func (m *QueryGetAggregatedKeyShareRequest) Reset() { *m = QueryGetAggregatedKeyShareRequest{} } -func (m *QueryGetAggregatedKeyShareRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetAggregatedKeyShareRequest) ProtoMessage() {} -func (*QueryGetAggregatedKeyShareRequest) Descriptor() ([]byte, []int) { +func (m *QueryAggregatedKeyShareRequest) Reset() { *m = QueryAggregatedKeyShareRequest{} } +func (m *QueryAggregatedKeyShareRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAggregatedKeyShareRequest) ProtoMessage() {} +func (*QueryAggregatedKeyShareRequest) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{14} } -func (m *QueryGetAggregatedKeyShareRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryAggregatedKeyShareRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetAggregatedKeyShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAggregatedKeyShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetAggregatedKeyShareRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAggregatedKeyShareRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -692,41 +706,42 @@ func (m *QueryGetAggregatedKeyShareRequest) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryGetAggregatedKeyShareRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetAggregatedKeyShareRequest.Merge(m, src) +func (m *QueryAggregatedKeyShareRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAggregatedKeyShareRequest.Merge(m, src) } -func (m *QueryGetAggregatedKeyShareRequest) XXX_Size() int { +func (m *QueryAggregatedKeyShareRequest) XXX_Size() int { return m.Size() } -func (m *QueryGetAggregatedKeyShareRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetAggregatedKeyShareRequest.DiscardUnknown(m) +func (m *QueryAggregatedKeyShareRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAggregatedKeyShareRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetAggregatedKeyShareRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryAggregatedKeyShareRequest proto.InternalMessageInfo -func (m *QueryGetAggregatedKeyShareRequest) GetHeight() uint64 { +func (m *QueryAggregatedKeyShareRequest) GetHeight() uint64 { if m != nil { return m.Height } return 0 } -type QueryGetAggregatedKeyShareResponse struct { - AggregatedKeyShare AggregatedKeyShare `protobuf:"bytes,1,opt,name=aggregatedKeyShare,proto3" json:"aggregatedKeyShare"` +// QueryAggregatedKeyShareResponse is response type for the Query/AggregatedKeyShare RPC method. +type QueryAggregatedKeyShareResponse struct { + AggregatedKeyShare AggregatedKeyShare `protobuf:"bytes,1,opt,name=aggregated_key_share,json=aggregatedKeyShare,proto3" json:"aggregated_key_share"` } -func (m *QueryGetAggregatedKeyShareResponse) Reset() { *m = QueryGetAggregatedKeyShareResponse{} } -func (m *QueryGetAggregatedKeyShareResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetAggregatedKeyShareResponse) ProtoMessage() {} -func (*QueryGetAggregatedKeyShareResponse) Descriptor() ([]byte, []int) { +func (m *QueryAggregatedKeyShareResponse) Reset() { *m = QueryAggregatedKeyShareResponse{} } +func (m *QueryAggregatedKeyShareResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAggregatedKeyShareResponse) ProtoMessage() {} +func (*QueryAggregatedKeyShareResponse) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{15} } -func (m *QueryGetAggregatedKeyShareResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryAggregatedKeyShareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetAggregatedKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAggregatedKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetAggregatedKeyShareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAggregatedKeyShareResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -736,41 +751,42 @@ func (m *QueryGetAggregatedKeyShareResponse) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryGetAggregatedKeyShareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetAggregatedKeyShareResponse.Merge(m, src) +func (m *QueryAggregatedKeyShareResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAggregatedKeyShareResponse.Merge(m, src) } -func (m *QueryGetAggregatedKeyShareResponse) XXX_Size() int { +func (m *QueryAggregatedKeyShareResponse) XXX_Size() int { return m.Size() } -func (m *QueryGetAggregatedKeyShareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetAggregatedKeyShareResponse.DiscardUnknown(m) +func (m *QueryAggregatedKeyShareResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAggregatedKeyShareResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetAggregatedKeyShareResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryAggregatedKeyShareResponse proto.InternalMessageInfo -func (m *QueryGetAggregatedKeyShareResponse) GetAggregatedKeyShare() AggregatedKeyShare { +func (m *QueryAggregatedKeyShareResponse) GetAggregatedKeyShare() AggregatedKeyShare { if m != nil { return m.AggregatedKeyShare } return AggregatedKeyShare{} } -type QueryAllAggregatedKeyShareRequest struct { +// QueryAggregatedKeyShareAllRequest is request type for the Query/AggregatedKeyShareAll RPC method. +type QueryAggregatedKeyShareAllRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllAggregatedKeyShareRequest) Reset() { *m = QueryAllAggregatedKeyShareRequest{} } -func (m *QueryAllAggregatedKeyShareRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllAggregatedKeyShareRequest) ProtoMessage() {} -func (*QueryAllAggregatedKeyShareRequest) Descriptor() ([]byte, []int) { +func (m *QueryAggregatedKeyShareAllRequest) Reset() { *m = QueryAggregatedKeyShareAllRequest{} } +func (m *QueryAggregatedKeyShareAllRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAggregatedKeyShareAllRequest) ProtoMessage() {} +func (*QueryAggregatedKeyShareAllRequest) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{16} } -func (m *QueryAllAggregatedKeyShareRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryAggregatedKeyShareAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllAggregatedKeyShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAggregatedKeyShareAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllAggregatedKeyShareRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAggregatedKeyShareAllRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -780,42 +796,43 @@ func (m *QueryAllAggregatedKeyShareRequest) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryAllAggregatedKeyShareRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllAggregatedKeyShareRequest.Merge(m, src) +func (m *QueryAggregatedKeyShareAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAggregatedKeyShareAllRequest.Merge(m, src) } -func (m *QueryAllAggregatedKeyShareRequest) XXX_Size() int { +func (m *QueryAggregatedKeyShareAllRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllAggregatedKeyShareRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllAggregatedKeyShareRequest.DiscardUnknown(m) +func (m *QueryAggregatedKeyShareAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAggregatedKeyShareAllRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllAggregatedKeyShareRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryAggregatedKeyShareAllRequest proto.InternalMessageInfo -func (m *QueryAllAggregatedKeyShareRequest) GetPagination() *query.PageRequest { +func (m *QueryAggregatedKeyShareAllRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -type QueryAllAggregatedKeyShareResponse struct { - AggregatedKeyShare []AggregatedKeyShare `protobuf:"bytes,1,rep,name=aggregatedKeyShare,proto3" json:"aggregatedKeyShare"` +// QueryAggregatedKeyShareAllResponse is response type for the Query/AggregatedKeyShareAll RPC method. +type QueryAggregatedKeyShareAllResponse struct { + AggregatedKeyShare []AggregatedKeyShare `protobuf:"bytes,1,rep,name=aggregated_key_share,json=aggregatedKeyShare,proto3" json:"aggregated_key_share"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllAggregatedKeyShareResponse) Reset() { *m = QueryAllAggregatedKeyShareResponse{} } -func (m *QueryAllAggregatedKeyShareResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllAggregatedKeyShareResponse) ProtoMessage() {} -func (*QueryAllAggregatedKeyShareResponse) Descriptor() ([]byte, []int) { +func (m *QueryAggregatedKeyShareAllResponse) Reset() { *m = QueryAggregatedKeyShareAllResponse{} } +func (m *QueryAggregatedKeyShareAllResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAggregatedKeyShareAllResponse) ProtoMessage() {} +func (*QueryAggregatedKeyShareAllResponse) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{17} } -func (m *QueryAllAggregatedKeyShareResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryAggregatedKeyShareAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllAggregatedKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAggregatedKeyShareAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllAggregatedKeyShareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAggregatedKeyShareAllResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -825,32 +842,33 @@ func (m *QueryAllAggregatedKeyShareResponse) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryAllAggregatedKeyShareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllAggregatedKeyShareResponse.Merge(m, src) +func (m *QueryAggregatedKeyShareAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAggregatedKeyShareAllResponse.Merge(m, src) } -func (m *QueryAllAggregatedKeyShareResponse) XXX_Size() int { +func (m *QueryAggregatedKeyShareAllResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllAggregatedKeyShareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllAggregatedKeyShareResponse.DiscardUnknown(m) +func (m *QueryAggregatedKeyShareAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAggregatedKeyShareAllResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllAggregatedKeyShareResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryAggregatedKeyShareAllResponse proto.InternalMessageInfo -func (m *QueryAllAggregatedKeyShareResponse) GetAggregatedKeyShare() []AggregatedKeyShare { +func (m *QueryAggregatedKeyShareAllResponse) GetAggregatedKeyShare() []AggregatedKeyShare { if m != nil { return m.AggregatedKeyShare } return nil } -func (m *QueryAllAggregatedKeyShareResponse) GetPagination() *query.PageResponse { +func (m *QueryAggregatedKeyShareAllResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } return nil } +// QueryPubKeyRequest is request type for the Query/PubKey RPC method. type QueryPubKeyRequest struct { } @@ -887,9 +905,10 @@ func (m *QueryPubKeyRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryPubKeyRequest proto.InternalMessageInfo +// QueryPubKeyResponse is response type for the Query/PubKey RPC method. type QueryPubKeyResponse struct { - ActivePubKey ActivePubKey `protobuf:"bytes,1,opt,name=activePubKey,proto3" json:"activePubKey"` - QueuedPubKey QueuedPubKey `protobuf:"bytes,2,opt,name=queuedPubKey,proto3" json:"queuedPubKey"` + ActivePubKey ActivePubKey `protobuf:"bytes,1,opt,name=active_pub_key,json=activePubKey,proto3" json:"active_pub_key"` + QueuedPubKey QueuedPubKey `protobuf:"bytes,2,opt,name=queued_pub_key,json=queuedPubKey,proto3" json:"queued_pub_key"` } func (m *QueryPubKeyResponse) Reset() { *m = QueryPubKeyResponse{} } @@ -939,22 +958,23 @@ func (m *QueryPubKeyResponse) GetQueuedPubKey() QueuedPubKey { return QueuedPubKey{} } -type QueryGetAuthorizedAddressRequest struct { +// QueryAuthorizedAddressRequest is request type for the Query/AuthorizedAddress RPC method. +type QueryAuthorizedAddressRequest struct { Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` } -func (m *QueryGetAuthorizedAddressRequest) Reset() { *m = QueryGetAuthorizedAddressRequest{} } -func (m *QueryGetAuthorizedAddressRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetAuthorizedAddressRequest) ProtoMessage() {} -func (*QueryGetAuthorizedAddressRequest) Descriptor() ([]byte, []int) { +func (m *QueryAuthorizedAddressRequest) Reset() { *m = QueryAuthorizedAddressRequest{} } +func (m *QueryAuthorizedAddressRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAuthorizedAddressRequest) ProtoMessage() {} +func (*QueryAuthorizedAddressRequest) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{20} } -func (m *QueryGetAuthorizedAddressRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryAuthorizedAddressRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetAuthorizedAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAuthorizedAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetAuthorizedAddressRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAuthorizedAddressRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -964,41 +984,42 @@ func (m *QueryGetAuthorizedAddressRequest) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } -func (m *QueryGetAuthorizedAddressRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetAuthorizedAddressRequest.Merge(m, src) +func (m *QueryAuthorizedAddressRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAuthorizedAddressRequest.Merge(m, src) } -func (m *QueryGetAuthorizedAddressRequest) XXX_Size() int { +func (m *QueryAuthorizedAddressRequest) XXX_Size() int { return m.Size() } -func (m *QueryGetAuthorizedAddressRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetAuthorizedAddressRequest.DiscardUnknown(m) +func (m *QueryAuthorizedAddressRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAuthorizedAddressRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetAuthorizedAddressRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryAuthorizedAddressRequest proto.InternalMessageInfo -func (m *QueryGetAuthorizedAddressRequest) GetTarget() string { +func (m *QueryAuthorizedAddressRequest) GetTarget() string { if m != nil { return m.Target } return "" } -type QueryGetAuthorizedAddressResponse struct { - AuthorizedAddress AuthorizedAddress `protobuf:"bytes,1,opt,name=authorizedAddress,proto3" json:"authorizedAddress"` +// QueryAuthorizedAddressResponse is response type for the Query/AuthorizedAddress RPC method. +type QueryAuthorizedAddressResponse struct { + AuthorizedAddress AuthorizedAddress `protobuf:"bytes,1,opt,name=authorized_address,json=authorizedAddress,proto3" json:"authorized_address"` } -func (m *QueryGetAuthorizedAddressResponse) Reset() { *m = QueryGetAuthorizedAddressResponse{} } -func (m *QueryGetAuthorizedAddressResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetAuthorizedAddressResponse) ProtoMessage() {} -func (*QueryGetAuthorizedAddressResponse) Descriptor() ([]byte, []int) { +func (m *QueryAuthorizedAddressResponse) Reset() { *m = QueryAuthorizedAddressResponse{} } +func (m *QueryAuthorizedAddressResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAuthorizedAddressResponse) ProtoMessage() {} +func (*QueryAuthorizedAddressResponse) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{21} } -func (m *QueryGetAuthorizedAddressResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryAuthorizedAddressResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetAuthorizedAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAuthorizedAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetAuthorizedAddressResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAuthorizedAddressResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1008,41 +1029,42 @@ func (m *QueryGetAuthorizedAddressResponse) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryGetAuthorizedAddressResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetAuthorizedAddressResponse.Merge(m, src) +func (m *QueryAuthorizedAddressResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAuthorizedAddressResponse.Merge(m, src) } -func (m *QueryGetAuthorizedAddressResponse) XXX_Size() int { +func (m *QueryAuthorizedAddressResponse) XXX_Size() int { return m.Size() } -func (m *QueryGetAuthorizedAddressResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetAuthorizedAddressResponse.DiscardUnknown(m) +func (m *QueryAuthorizedAddressResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAuthorizedAddressResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetAuthorizedAddressResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryAuthorizedAddressResponse proto.InternalMessageInfo -func (m *QueryGetAuthorizedAddressResponse) GetAuthorizedAddress() AuthorizedAddress { +func (m *QueryAuthorizedAddressResponse) GetAuthorizedAddress() AuthorizedAddress { if m != nil { return m.AuthorizedAddress } return AuthorizedAddress{} } -type QueryAllAuthorizedAddressRequest struct { +// QueryAuthorizedAddressAllRequest is request type for the Query/AuthorizedAddressAll RPC method. +type QueryAuthorizedAddressAllRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllAuthorizedAddressRequest) Reset() { *m = QueryAllAuthorizedAddressRequest{} } -func (m *QueryAllAuthorizedAddressRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllAuthorizedAddressRequest) ProtoMessage() {} -func (*QueryAllAuthorizedAddressRequest) Descriptor() ([]byte, []int) { +func (m *QueryAuthorizedAddressAllRequest) Reset() { *m = QueryAuthorizedAddressAllRequest{} } +func (m *QueryAuthorizedAddressAllRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAuthorizedAddressAllRequest) ProtoMessage() {} +func (*QueryAuthorizedAddressAllRequest) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{22} } -func (m *QueryAllAuthorizedAddressRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryAuthorizedAddressAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllAuthorizedAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAuthorizedAddressAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllAuthorizedAddressRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAuthorizedAddressAllRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1052,42 +1074,43 @@ func (m *QueryAllAuthorizedAddressRequest) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } -func (m *QueryAllAuthorizedAddressRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllAuthorizedAddressRequest.Merge(m, src) +func (m *QueryAuthorizedAddressAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAuthorizedAddressAllRequest.Merge(m, src) } -func (m *QueryAllAuthorizedAddressRequest) XXX_Size() int { +func (m *QueryAuthorizedAddressAllRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllAuthorizedAddressRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllAuthorizedAddressRequest.DiscardUnknown(m) +func (m *QueryAuthorizedAddressAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAuthorizedAddressAllRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllAuthorizedAddressRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryAuthorizedAddressAllRequest proto.InternalMessageInfo -func (m *QueryAllAuthorizedAddressRequest) GetPagination() *query.PageRequest { +func (m *QueryAuthorizedAddressAllRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -type QueryAllAuthorizedAddressResponse struct { - AuthorizedAddress []AuthorizedAddress `protobuf:"bytes,1,rep,name=authorizedAddress,proto3" json:"authorizedAddress"` +// QueryAuthorizedAddressAllResponse is response type for the Query/AuthorizedAddressAll RPC method. +type QueryAuthorizedAddressAllResponse struct { + AuthorizedAddress []AuthorizedAddress `protobuf:"bytes,1,rep,name=authorized_address,json=authorizedAddress,proto3" json:"authorized_address"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllAuthorizedAddressResponse) Reset() { *m = QueryAllAuthorizedAddressResponse{} } -func (m *QueryAllAuthorizedAddressResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllAuthorizedAddressResponse) ProtoMessage() {} -func (*QueryAllAuthorizedAddressResponse) Descriptor() ([]byte, []int) { +func (m *QueryAuthorizedAddressAllResponse) Reset() { *m = QueryAuthorizedAddressAllResponse{} } +func (m *QueryAuthorizedAddressAllResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAuthorizedAddressAllResponse) ProtoMessage() {} +func (*QueryAuthorizedAddressAllResponse) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{23} } -func (m *QueryAllAuthorizedAddressResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryAuthorizedAddressAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllAuthorizedAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryAuthorizedAddressAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllAuthorizedAddressResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryAuthorizedAddressAllResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1097,50 +1120,51 @@ func (m *QueryAllAuthorizedAddressResponse) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryAllAuthorizedAddressResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllAuthorizedAddressResponse.Merge(m, src) +func (m *QueryAuthorizedAddressAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAuthorizedAddressAllResponse.Merge(m, src) } -func (m *QueryAllAuthorizedAddressResponse) XXX_Size() int { +func (m *QueryAuthorizedAddressAllResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllAuthorizedAddressResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllAuthorizedAddressResponse.DiscardUnknown(m) +func (m *QueryAuthorizedAddressAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAuthorizedAddressAllResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllAuthorizedAddressResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryAuthorizedAddressAllResponse proto.InternalMessageInfo -func (m *QueryAllAuthorizedAddressResponse) GetAuthorizedAddress() []AuthorizedAddress { +func (m *QueryAuthorizedAddressAllResponse) GetAuthorizedAddress() []AuthorizedAddress { if m != nil { return m.AuthorizedAddress } return nil } -func (m *QueryAllAuthorizedAddressResponse) GetPagination() *query.PageResponse { +func (m *QueryAuthorizedAddressAllResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } return nil } -type QueryGetGeneralKeyShareRequest struct { +// QueryGeneralKeyShareRequest is request type for the Query/GeneralKeyShare RPC method. +type QueryGeneralKeyShareRequest struct { Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` - IdType string `protobuf:"bytes,2,opt,name=idType,proto3" json:"idType,omitempty"` - IdValue string `protobuf:"bytes,3,opt,name=idValue,proto3" json:"idValue,omitempty"` + IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` + IdValue string `protobuf:"bytes,3,opt,name=id_value,json=idValue,proto3" json:"id_value,omitempty"` } -func (m *QueryGetGeneralKeyShareRequest) Reset() { *m = QueryGetGeneralKeyShareRequest{} } -func (m *QueryGetGeneralKeyShareRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetGeneralKeyShareRequest) ProtoMessage() {} -func (*QueryGetGeneralKeyShareRequest) Descriptor() ([]byte, []int) { +func (m *QueryGeneralKeyShareRequest) Reset() { *m = QueryGeneralKeyShareRequest{} } +func (m *QueryGeneralKeyShareRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGeneralKeyShareRequest) ProtoMessage() {} +func (*QueryGeneralKeyShareRequest) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{24} } -func (m *QueryGetGeneralKeyShareRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryGeneralKeyShareRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetGeneralKeyShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGeneralKeyShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetGeneralKeyShareRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGeneralKeyShareRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1150,55 +1174,56 @@ func (m *QueryGetGeneralKeyShareRequest) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *QueryGetGeneralKeyShareRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetGeneralKeyShareRequest.Merge(m, src) +func (m *QueryGeneralKeyShareRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGeneralKeyShareRequest.Merge(m, src) } -func (m *QueryGetGeneralKeyShareRequest) XXX_Size() int { +func (m *QueryGeneralKeyShareRequest) XXX_Size() int { return m.Size() } -func (m *QueryGetGeneralKeyShareRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetGeneralKeyShareRequest.DiscardUnknown(m) +func (m *QueryGeneralKeyShareRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGeneralKeyShareRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetGeneralKeyShareRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryGeneralKeyShareRequest proto.InternalMessageInfo -func (m *QueryGetGeneralKeyShareRequest) GetValidator() string { +func (m *QueryGeneralKeyShareRequest) GetValidator() string { if m != nil { return m.Validator } return "" } -func (m *QueryGetGeneralKeyShareRequest) GetIdType() string { +func (m *QueryGeneralKeyShareRequest) GetIdType() string { if m != nil { return m.IdType } return "" } -func (m *QueryGetGeneralKeyShareRequest) GetIdValue() string { +func (m *QueryGeneralKeyShareRequest) GetIdValue() string { if m != nil { return m.IdValue } return "" } -type QueryGetGeneralKeyShareResponse struct { - GeneralKeyShare GeneralKeyShare `protobuf:"bytes,1,opt,name=generalKeyShare,proto3" json:"generalKeyShare"` +// QueryGeneralKeyShareResponse is response type for the Query/GeneralKeyShare RPC method. +type QueryGeneralKeyShareResponse struct { + GeneralKeyShare GeneralKeyShare `protobuf:"bytes,1,opt,name=general_key_share,json=generalKeyShare,proto3" json:"general_key_share"` } -func (m *QueryGetGeneralKeyShareResponse) Reset() { *m = QueryGetGeneralKeyShareResponse{} } -func (m *QueryGetGeneralKeyShareResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetGeneralKeyShareResponse) ProtoMessage() {} -func (*QueryGetGeneralKeyShareResponse) Descriptor() ([]byte, []int) { +func (m *QueryGeneralKeyShareResponse) Reset() { *m = QueryGeneralKeyShareResponse{} } +func (m *QueryGeneralKeyShareResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGeneralKeyShareResponse) ProtoMessage() {} +func (*QueryGeneralKeyShareResponse) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{25} } -func (m *QueryGetGeneralKeyShareResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryGeneralKeyShareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetGeneralKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGeneralKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetGeneralKeyShareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGeneralKeyShareResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1208,41 +1233,42 @@ func (m *QueryGetGeneralKeyShareResponse) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (m *QueryGetGeneralKeyShareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetGeneralKeyShareResponse.Merge(m, src) +func (m *QueryGeneralKeyShareResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGeneralKeyShareResponse.Merge(m, src) } -func (m *QueryGetGeneralKeyShareResponse) XXX_Size() int { +func (m *QueryGeneralKeyShareResponse) XXX_Size() int { return m.Size() } -func (m *QueryGetGeneralKeyShareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetGeneralKeyShareResponse.DiscardUnknown(m) +func (m *QueryGeneralKeyShareResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGeneralKeyShareResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetGeneralKeyShareResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryGeneralKeyShareResponse proto.InternalMessageInfo -func (m *QueryGetGeneralKeyShareResponse) GetGeneralKeyShare() GeneralKeyShare { +func (m *QueryGeneralKeyShareResponse) GetGeneralKeyShare() GeneralKeyShare { if m != nil { return m.GeneralKeyShare } return GeneralKeyShare{} } -type QueryAllGeneralKeyShareRequest struct { +// QueryGeneralKeyShareAllRequest is request type for the Query/GeneralKeyShareAll RPC method. +type QueryGeneralKeyShareAllRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllGeneralKeyShareRequest) Reset() { *m = QueryAllGeneralKeyShareRequest{} } -func (m *QueryAllGeneralKeyShareRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllGeneralKeyShareRequest) ProtoMessage() {} -func (*QueryAllGeneralKeyShareRequest) Descriptor() ([]byte, []int) { +func (m *QueryGeneralKeyShareAllRequest) Reset() { *m = QueryGeneralKeyShareAllRequest{} } +func (m *QueryGeneralKeyShareAllRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGeneralKeyShareAllRequest) ProtoMessage() {} +func (*QueryGeneralKeyShareAllRequest) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{26} } -func (m *QueryAllGeneralKeyShareRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryGeneralKeyShareAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllGeneralKeyShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGeneralKeyShareAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllGeneralKeyShareRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGeneralKeyShareAllRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1252,42 +1278,43 @@ func (m *QueryAllGeneralKeyShareRequest) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *QueryAllGeneralKeyShareRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllGeneralKeyShareRequest.Merge(m, src) +func (m *QueryGeneralKeyShareAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGeneralKeyShareAllRequest.Merge(m, src) } -func (m *QueryAllGeneralKeyShareRequest) XXX_Size() int { +func (m *QueryGeneralKeyShareAllRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllGeneralKeyShareRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllGeneralKeyShareRequest.DiscardUnknown(m) +func (m *QueryGeneralKeyShareAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGeneralKeyShareAllRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllGeneralKeyShareRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryGeneralKeyShareAllRequest proto.InternalMessageInfo -func (m *QueryAllGeneralKeyShareRequest) GetPagination() *query.PageRequest { +func (m *QueryGeneralKeyShareAllRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -type QueryAllGeneralKeyShareResponse struct { - GeneralKeyShare []GeneralKeyShare `protobuf:"bytes,1,rep,name=generalKeyShare,proto3" json:"generalKeyShare"` +// QueryGeneralKeyShareAllResponse is response type for the Query/GeneralKeyShareAll RPC method. +type QueryGeneralKeyShareAllResponse struct { + GeneralKeyShare []GeneralKeyShare `protobuf:"bytes,1,rep,name=general_key_share,json=generalKeyShare,proto3" json:"general_key_share"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllGeneralKeyShareResponse) Reset() { *m = QueryAllGeneralKeyShareResponse{} } -func (m *QueryAllGeneralKeyShareResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllGeneralKeyShareResponse) ProtoMessage() {} -func (*QueryAllGeneralKeyShareResponse) Descriptor() ([]byte, []int) { +func (m *QueryGeneralKeyShareAllResponse) Reset() { *m = QueryGeneralKeyShareAllResponse{} } +func (m *QueryGeneralKeyShareAllResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGeneralKeyShareAllResponse) ProtoMessage() {} +func (*QueryGeneralKeyShareAllResponse) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{27} } -func (m *QueryAllGeneralKeyShareResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryGeneralKeyShareAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllGeneralKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGeneralKeyShareAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllGeneralKeyShareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGeneralKeyShareAllResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1297,26 +1324,26 @@ func (m *QueryAllGeneralKeyShareResponse) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (m *QueryAllGeneralKeyShareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllGeneralKeyShareResponse.Merge(m, src) +func (m *QueryGeneralKeyShareAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGeneralKeyShareAllResponse.Merge(m, src) } -func (m *QueryAllGeneralKeyShareResponse) XXX_Size() int { +func (m *QueryGeneralKeyShareAllResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllGeneralKeyShareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllGeneralKeyShareResponse.DiscardUnknown(m) +func (m *QueryGeneralKeyShareAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGeneralKeyShareAllResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllGeneralKeyShareResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryGeneralKeyShareAllResponse proto.InternalMessageInfo -func (m *QueryAllGeneralKeyShareResponse) GetGeneralKeyShare() []GeneralKeyShare { +func (m *QueryGeneralKeyShareAllResponse) GetGeneralKeyShare() []GeneralKeyShare { if m != nil { return m.GeneralKeyShare } return nil } -func (m *QueryAllGeneralKeyShareResponse) GetPagination() *query.PageResponse { +func (m *QueryGeneralKeyShareAllResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } @@ -1324,129 +1351,130 @@ func (m *QueryAllGeneralKeyShareResponse) GetPagination() *query.PageResponse { } func init() { - proto.RegisterType((*QueryVerifiableRandomnessQuery)(nil), "fairyring.keyshare.QueryVerifiableRandomnessQuery") + proto.RegisterType((*QueryVerifiableRandomnessRequest)(nil), "fairyring.keyshare.QueryVerifiableRandomnessRequest") proto.RegisterType((*QueryVerifiableRandomnessResponse)(nil), "fairyring.keyshare.QueryVerifiableRandomnessResponse") proto.RegisterType((*QueryParamsRequest)(nil), "fairyring.keyshare.QueryParamsRequest") proto.RegisterType((*QueryParamsResponse)(nil), "fairyring.keyshare.QueryParamsResponse") proto.RegisterType((*QueryCommitmentsRequest)(nil), "fairyring.keyshare.QueryCommitmentsRequest") proto.RegisterType((*QueryCommitmentsResponse)(nil), "fairyring.keyshare.QueryCommitmentsResponse") - proto.RegisterType((*QueryGetValidatorSetRequest)(nil), "fairyring.keyshare.QueryGetValidatorSetRequest") - proto.RegisterType((*QueryGetValidatorSetResponse)(nil), "fairyring.keyshare.QueryGetValidatorSetResponse") - proto.RegisterType((*QueryAllValidatorSetRequest)(nil), "fairyring.keyshare.QueryAllValidatorSetRequest") - proto.RegisterType((*QueryAllValidatorSetResponse)(nil), "fairyring.keyshare.QueryAllValidatorSetResponse") - proto.RegisterType((*QueryGetKeyShareRequest)(nil), "fairyring.keyshare.QueryGetKeyShareRequest") - proto.RegisterType((*QueryGetKeyShareResponse)(nil), "fairyring.keyshare.QueryGetKeyShareResponse") - proto.RegisterType((*QueryAllKeyShareRequest)(nil), "fairyring.keyshare.QueryAllKeyShareRequest") - proto.RegisterType((*QueryAllKeyShareResponse)(nil), "fairyring.keyshare.QueryAllKeyShareResponse") - proto.RegisterType((*QueryGetAggregatedKeyShareRequest)(nil), "fairyring.keyshare.QueryGetAggregatedKeyShareRequest") - proto.RegisterType((*QueryGetAggregatedKeyShareResponse)(nil), "fairyring.keyshare.QueryGetAggregatedKeyShareResponse") - proto.RegisterType((*QueryAllAggregatedKeyShareRequest)(nil), "fairyring.keyshare.QueryAllAggregatedKeyShareRequest") - proto.RegisterType((*QueryAllAggregatedKeyShareResponse)(nil), "fairyring.keyshare.QueryAllAggregatedKeyShareResponse") + proto.RegisterType((*QueryValidatorSetRequest)(nil), "fairyring.keyshare.QueryValidatorSetRequest") + proto.RegisterType((*QueryValidatorSetResponse)(nil), "fairyring.keyshare.QueryValidatorSetResponse") + proto.RegisterType((*QueryValidatorSetAllRequest)(nil), "fairyring.keyshare.QueryValidatorSetAllRequest") + proto.RegisterType((*QueryValidatorSetAllResponse)(nil), "fairyring.keyshare.QueryValidatorSetAllResponse") + proto.RegisterType((*QueryKeyShareRequest)(nil), "fairyring.keyshare.QueryKeyShareRequest") + proto.RegisterType((*QueryKeyShareResponse)(nil), "fairyring.keyshare.QueryKeyShareResponse") + proto.RegisterType((*QueryKeyShareAllRequest)(nil), "fairyring.keyshare.QueryKeyShareAllRequest") + proto.RegisterType((*QueryKeyShareAllResponse)(nil), "fairyring.keyshare.QueryKeyShareAllResponse") + proto.RegisterType((*QueryAggregatedKeyShareRequest)(nil), "fairyring.keyshare.QueryAggregatedKeyShareRequest") + proto.RegisterType((*QueryAggregatedKeyShareResponse)(nil), "fairyring.keyshare.QueryAggregatedKeyShareResponse") + proto.RegisterType((*QueryAggregatedKeyShareAllRequest)(nil), "fairyring.keyshare.QueryAggregatedKeyShareAllRequest") + proto.RegisterType((*QueryAggregatedKeyShareAllResponse)(nil), "fairyring.keyshare.QueryAggregatedKeyShareAllResponse") proto.RegisterType((*QueryPubKeyRequest)(nil), "fairyring.keyshare.QueryPubKeyRequest") proto.RegisterType((*QueryPubKeyResponse)(nil), "fairyring.keyshare.QueryPubKeyResponse") - proto.RegisterType((*QueryGetAuthorizedAddressRequest)(nil), "fairyring.keyshare.QueryGetAuthorizedAddressRequest") - proto.RegisterType((*QueryGetAuthorizedAddressResponse)(nil), "fairyring.keyshare.QueryGetAuthorizedAddressResponse") - proto.RegisterType((*QueryAllAuthorizedAddressRequest)(nil), "fairyring.keyshare.QueryAllAuthorizedAddressRequest") - proto.RegisterType((*QueryAllAuthorizedAddressResponse)(nil), "fairyring.keyshare.QueryAllAuthorizedAddressResponse") - proto.RegisterType((*QueryGetGeneralKeyShareRequest)(nil), "fairyring.keyshare.QueryGetGeneralKeyShareRequest") - proto.RegisterType((*QueryGetGeneralKeyShareResponse)(nil), "fairyring.keyshare.QueryGetGeneralKeyShareResponse") - proto.RegisterType((*QueryAllGeneralKeyShareRequest)(nil), "fairyring.keyshare.QueryAllGeneralKeyShareRequest") - proto.RegisterType((*QueryAllGeneralKeyShareResponse)(nil), "fairyring.keyshare.QueryAllGeneralKeyShareResponse") + proto.RegisterType((*QueryAuthorizedAddressRequest)(nil), "fairyring.keyshare.QueryAuthorizedAddressRequest") + proto.RegisterType((*QueryAuthorizedAddressResponse)(nil), "fairyring.keyshare.QueryAuthorizedAddressResponse") + proto.RegisterType((*QueryAuthorizedAddressAllRequest)(nil), "fairyring.keyshare.QueryAuthorizedAddressAllRequest") + proto.RegisterType((*QueryAuthorizedAddressAllResponse)(nil), "fairyring.keyshare.QueryAuthorizedAddressAllResponse") + proto.RegisterType((*QueryGeneralKeyShareRequest)(nil), "fairyring.keyshare.QueryGeneralKeyShareRequest") + proto.RegisterType((*QueryGeneralKeyShareResponse)(nil), "fairyring.keyshare.QueryGeneralKeyShareResponse") + proto.RegisterType((*QueryGeneralKeyShareAllRequest)(nil), "fairyring.keyshare.QueryGeneralKeyShareAllRequest") + proto.RegisterType((*QueryGeneralKeyShareAllResponse)(nil), "fairyring.keyshare.QueryGeneralKeyShareAllResponse") } func init() { proto.RegisterFile("fairyring/keyshare/query.proto", fileDescriptor_572603c2d521bf14) } var fileDescriptor_572603c2d521bf14 = []byte{ - // 1423 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0x24, 0x6d, 0x68, 0x26, 0x95, 0xaa, 0x0c, 0xa1, 0x04, 0x37, 0x75, 0xdc, 0x29, 0x4d, - 0xd2, 0x86, 0x7a, 0x9a, 0xa4, 0xa5, 0x2a, 0x08, 0x90, 0x0b, 0x6a, 0x80, 0x82, 0xd4, 0xba, 0x55, - 0xa5, 0x56, 0x48, 0xd1, 0x38, 0x9e, 0xae, 0xb7, 0x59, 0xef, 0xba, 0xbb, 0xeb, 0xa8, 0x26, 0x72, - 0x0f, 0xfd, 0x02, 0x80, 0xf8, 0x00, 0x1c, 0x40, 0x88, 0x03, 0x48, 0x48, 0xe5, 0x50, 0x0e, 0xc0, - 0x91, 0x4a, 0x5c, 0x2a, 0x71, 0xe1, 0x84, 0x50, 0x83, 0xc4, 0xd7, 0x40, 0x3b, 0xfb, 0x76, 0xbd, - 0xf6, 0xce, 0x8e, 0xed, 0xd6, 0x17, 0xcb, 0x3b, 0xf3, 0xfe, 0xfc, 0x7e, 0xef, 0xcd, 0xce, 0xfc, - 0x76, 0x70, 0xfe, 0x36, 0x37, 0xdd, 0x96, 0x6b, 0xda, 0x06, 0xdb, 0x16, 0x2d, 0xaf, 0xc6, 0x5d, - 0xc1, 0xee, 0x36, 0x85, 0xdb, 0x2a, 0x36, 0x5c, 0xc7, 0x77, 0x08, 0x89, 0xe7, 0x8b, 0xd1, 0x7c, - 0x6e, 0x86, 0xd7, 0x4d, 0xdb, 0x61, 0xf2, 0x37, 0x34, 0xcb, 0xcd, 0x1a, 0x8e, 0xe1, 0xc8, 0xbf, - 0x2c, 0xf8, 0x07, 0xa3, 0xf3, 0x86, 0xe3, 0x18, 0x96, 0x60, 0xbc, 0x61, 0x32, 0x6e, 0xdb, 0x8e, - 0xcf, 0x7d, 0xd3, 0xb1, 0x3d, 0x98, 0x3d, 0xb5, 0xe5, 0x78, 0x75, 0xc7, 0x63, 0x15, 0xee, 0x41, - 0x4e, 0xb6, 0xb3, 0x5a, 0x11, 0x3e, 0x5f, 0x65, 0x0d, 0x6e, 0x98, 0xb6, 0x34, 0x06, 0xdb, 0x05, - 0x05, 0xcc, 0x06, 0x77, 0x79, 0x3d, 0x0a, 0xb6, 0xa8, 0x30, 0xd8, 0xe1, 0x96, 0x59, 0xe5, 0xbe, - 0xe3, 0x6e, 0x7a, 0xc2, 0x07, 0x3b, 0xaa, 0xb0, 0xdb, 0x16, 0xad, 0x4d, 0xf9, 0x0f, 0x6c, 0x4e, - 0x2b, 0x6c, 0xb8, 0x61, 0xb8, 0xc2, 0xe0, 0xbe, 0xa8, 0x6e, 0xf6, 0x9a, 0x17, 0x54, 0xd8, 0x9a, - 0x95, 0xc0, 0x0e, 0x2c, 0x56, 0x54, 0x01, 0x9b, 0x7e, 0xcd, 0x71, 0xcd, 0x4f, 0x45, 0x75, 0x93, - 0x57, 0xab, 0xae, 0xf0, 0xe2, 0xb2, 0x28, 0x8c, 0x0d, 0x61, 0x0b, 0x97, 0x5b, 0xa9, 0xd4, 0xaf, - 0x2a, 0x6c, 0xb7, 0x9c, 0x7a, 0xdd, 0xf4, 0xeb, 0xc2, 0xf6, 0x21, 0x22, 0x2d, 0xe0, 0xfc, 0xd5, - 0xa0, 0xbc, 0x37, 0x84, 0x6b, 0xde, 0x36, 0x79, 0xc5, 0x12, 0x65, 0x6e, 0x57, 0x9d, 0xba, 0x2d, - 0x3c, 0x4f, 0x4e, 0xd0, 0x9b, 0xf8, 0x58, 0xa6, 0x45, 0x59, 0x78, 0x0d, 0xc7, 0xf6, 0x04, 0xc9, - 0x63, 0xec, 0xc6, 0xa3, 0x73, 0xa8, 0x80, 0x96, 0xa7, 0xca, 0x89, 0x11, 0x32, 0x8b, 0xf7, 0xbb, - 0x4e, 0xd3, 0xae, 0xce, 0x8d, 0x17, 0xd0, 0xf2, 0xbe, 0x72, 0xf8, 0x40, 0x67, 0x31, 0x91, 0xa1, - 0xaf, 0xc8, 0x6e, 0x95, 0xc5, 0xdd, 0xa6, 0xf0, 0x7c, 0x7a, 0x1d, 0xbf, 0xd8, 0x35, 0x0a, 0x29, - 0xde, 0xc2, 0x93, 0x61, 0x57, 0x65, 0xf8, 0xe9, 0xb5, 0x5c, 0x31, 0xbd, 0xfc, 0x8a, 0xa1, 0xcf, - 0xc5, 0xa9, 0xc7, 0x7f, 0x2f, 0x8c, 0x7d, 0xf7, 0xdf, 0x8f, 0xa7, 0x50, 0x19, 0x9c, 0xe8, 0x2b, - 0xf8, 0x65, 0x19, 0xf5, 0xdd, 0x4e, 0x09, 0xa2, 0x84, 0x8f, 0x10, 0x9e, 0x4b, 0xcf, 0x41, 0xda, - 0x8f, 0xf1, 0x0c, 0xdf, 0xf2, 0xcd, 0x1d, 0x91, 0x98, 0x04, 0x04, 0x0b, 0x2a, 0x04, 0xc9, 0x18, - 0x69, 0xcf, 0x20, 0xdc, 0xdd, 0xa6, 0x68, 0x8a, 0x6a, 0x32, 0xdc, 0xf8, 0x80, 0xe1, 0x52, 0x9e, - 0x74, 0x1d, 0x1f, 0x91, 0xc8, 0x37, 0x84, 0x7f, 0x23, 0x5a, 0xd1, 0xd7, 0x84, 0x0f, 0xcc, 0x82, - 0xb2, 0x9b, 0x76, 0x55, 0xdc, 0x83, 0x8e, 0x84, 0x0f, 0xf4, 0x0e, 0x9e, 0x57, 0x3b, 0x01, 0xe5, - 0x0f, 0xf1, 0xc1, 0x9d, 0xc4, 0x38, 0xb0, 0x2d, 0xa8, 0xe0, 0x25, 0xfd, 0x2f, 0xee, 0x0b, 0xaa, - 0x5e, 0xee, 0xf2, 0xa5, 0x02, 0x00, 0x96, 0x2c, 0x4b, 0x05, 0xf0, 0x12, 0xc6, 0x9d, 0xf7, 0x19, - 0x12, 0x2d, 0x16, 0xc3, 0x97, 0xbf, 0x18, 0xbc, 0xfc, 0xc5, 0x70, 0xc3, 0x81, 0x97, 0xbf, 0x78, - 0x85, 0x1b, 0x02, 0x7c, 0xcb, 0x09, 0x4f, 0xfa, 0x10, 0x01, 0xa7, 0x54, 0x9e, 0x4c, 0x4e, 0x13, - 0xcf, 0xca, 0x89, 0x6c, 0x74, 0x81, 0x0e, 0x9b, 0xb7, 0xd4, 0x17, 0x74, 0x08, 0xa4, 0x0b, 0xf5, - 0x4d, 0x58, 0x93, 0x1b, 0xc2, 0xbf, 0x2c, 0x5a, 0xd7, 0x82, 0xec, 0x51, 0x61, 0xe6, 0xf1, 0x54, - 0x9c, 0x13, 0xba, 0xd7, 0x19, 0x20, 0x05, 0x3c, 0x5d, 0xb1, 0x9c, 0xad, 0xed, 0xf7, 0x85, 0x69, - 0xd4, 0x7c, 0x78, 0xa9, 0x92, 0x43, 0xf4, 0x16, 0x2c, 0xe9, 0xae, 0xd0, 0x50, 0x8b, 0xb7, 0xf1, - 0x81, 0x6d, 0x18, 0x83, 0x92, 0xcf, 0xab, 0xea, 0x10, 0xf9, 0x41, 0x0d, 0x62, 0x1f, 0xca, 0x01, - 0x76, 0xc9, 0xb2, 0x7a, 0x61, 0x8f, 0xaa, 0x9f, 0x5f, 0x47, 0xaf, 0x64, 0x57, 0x0e, 0x25, 0xfe, - 0x89, 0x61, 0xf1, 0x8f, 0xae, 0x7f, 0x6f, 0xc2, 0xd6, 0xb8, 0x21, 0xfc, 0x52, 0x7c, 0x06, 0xf4, - 0x96, 0xe4, 0x30, 0x9e, 0xac, 0x85, 0x6d, 0x42, 0xb2, 0x4d, 0xf0, 0x44, 0x1f, 0x20, 0x4c, 0x75, - 0xde, 0x40, 0xf6, 0x13, 0x4c, 0x78, 0x6a, 0x36, 0xae, 0xac, 0x82, 0x76, 0x3a, 0x16, 0x14, 0x40, - 0x11, 0x87, 0x6e, 0x03, 0x83, 0x92, 0x65, 0x65, 0x33, 0x18, 0x55, 0x53, 0xff, 0x88, 0x18, 0x67, - 0x64, 0xeb, 0xc3, 0x78, 0x62, 0x14, 0x8c, 0x47, 0xd7, 0xfc, 0xf8, 0xf0, 0x6a, 0x56, 0x2e, 0x8b, - 0x56, 0x74, 0x96, 0xfc, 0x80, 0xa2, 0xd3, 0x0b, 0x86, 0x3b, 0xfb, 0x4f, 0x78, 0x18, 0x84, 0xe3, - 0xba, 0x3d, 0xb5, 0x94, 0xb0, 0x8b, 0xf6, 0x9f, 0xa4, 0x6f, 0x10, 0x2b, 0x3c, 0x09, 0x20, 0xd6, - 0x78, 0x76, 0xac, 0xab, 0x09, 0xbb, 0x28, 0x56, 0xd2, 0x97, 0xbe, 0x81, 0x0b, 0xf1, 0x22, 0x8c, - 0x55, 0x47, 0x29, 0x14, 0x1d, 0x89, 0x15, 0xec, 0x73, 0xd7, 0x80, 0x93, 0x60, 0xaa, 0x0c, 0x4f, - 0xf4, 0x7e, 0x62, 0xf9, 0xa7, 0x7d, 0x81, 0xf8, 0x4d, 0x3c, 0xc3, 0x7b, 0x27, 0x81, 0xfd, 0x09, - 0x25, 0xfb, 0x5e, 0x63, 0x80, 0x9d, 0x8e, 0x42, 0xef, 0x00, 0xf6, 0x60, 0x39, 0x65, 0x61, 0x1f, - 0xd5, 0xda, 0xfd, 0x1d, 0x25, 0xde, 0x94, 0x61, 0xc9, 0x4e, 0x3c, 0x3f, 0xd9, 0xd1, 0xad, 0xdb, - 0x06, 0x28, 0xbe, 0x0d, 0xe1, 0x6f, 0x84, 0xd2, 0x71, 0xb8, 0xb3, 0xe7, 0x30, 0x9e, 0x34, 0xab, - 0xd7, 0x5b, 0x0d, 0x21, 0x41, 0x4c, 0x95, 0xe1, 0x89, 0xcc, 0xe1, 0x17, 0xcc, 0xea, 0x0d, 0x6e, - 0x35, 0xc5, 0xdc, 0x84, 0x9c, 0x88, 0x1e, 0xe9, 0x0e, 0x5e, 0xc8, 0xcc, 0x08, 0x85, 0xbb, 0x86, - 0x0f, 0x19, 0xdd, 0x53, 0xd0, 0xab, 0xe3, 0xaa, 0xb2, 0xf5, 0x44, 0x81, 0xa2, 0xf5, 0x46, 0xa0, - 0x35, 0x60, 0x5a, 0xb2, 0xac, 0x0c, 0xa6, 0xa3, 0x5a, 0x1d, 0xbf, 0x21, 0xa0, 0xa8, 0x4a, 0xa5, - 0xa3, 0x38, 0xf1, 0x7c, 0x14, 0x47, 0xb6, 0x2a, 0xd6, 0x7e, 0x21, 0x78, 0xbf, 0x64, 0x40, 0xda, - 0x78, 0x32, 0x54, 0xd1, 0x64, 0x31, 0x63, 0x47, 0xe9, 0x11, 0xec, 0xb9, 0xa5, 0xbe, 0x76, 0x61, - 0x42, 0x4a, 0x1f, 0xfc, 0xf9, 0xef, 0x97, 0xe3, 0xf3, 0x24, 0xc7, 0x32, 0x3f, 0xd9, 0xc8, 0x17, - 0x08, 0x4f, 0x27, 0x05, 0xf3, 0x4a, 0x66, 0xf0, 0xb4, 0x92, 0xcf, 0xbd, 0x36, 0x98, 0x31, 0xc0, - 0x59, 0x92, 0x70, 0x8e, 0x91, 0x05, 0xa6, 0xff, 0x54, 0x22, 0xdf, 0x20, 0x7c, 0x30, 0xa9, 0x0a, - 0x09, 0xcb, 0xcc, 0xa3, 0x16, 0xe2, 0xb9, 0x33, 0x83, 0x3b, 0x00, 0xb8, 0x55, 0x09, 0x6e, 0x85, - 0x9c, 0x64, 0xfd, 0xbe, 0x5e, 0xd9, 0xae, 0x94, 0xf5, 0x6d, 0xf2, 0x15, 0xc2, 0x87, 0x92, 0xb1, - 0x4a, 0x96, 0xa5, 0x41, 0xaa, 0x56, 0xe4, 0x1a, 0xa4, 0x19, 0xd2, 0x9a, 0x9e, 0x94, 0x48, 0x8f, - 0x93, 0x63, 0x7d, 0x91, 0x92, 0x6f, 0x11, 0x3e, 0x10, 0xaf, 0xdd, 0x15, 0x5d, 0x4d, 0x7a, 0xde, - 0x54, 0x4d, 0x67, 0x15, 0x0a, 0x97, 0xbe, 0x23, 0x21, 0x5d, 0x20, 0xe7, 0x99, 0xee, 0x93, 0x9e, - 0xed, 0xc6, 0xe8, 0xda, 0x6c, 0x37, 0xa1, 0x9e, 0xdb, 0xe4, 0x33, 0x84, 0xa7, 0xa3, 0xa8, 0x41, - 0x19, 0x57, 0x74, 0x55, 0x19, 0x1c, 0xab, 0x42, 0xcd, 0xd2, 0x13, 0x12, 0xeb, 0x02, 0x39, 0xaa, - 0xc5, 0x4a, 0x7e, 0x45, 0x98, 0xa4, 0x85, 0x0e, 0x39, 0xa7, 0xab, 0x4b, 0xa6, 0xa4, 0xcb, 0xbd, - 0x3e, 0xac, 0x1b, 0x80, 0xbd, 0x20, 0xc1, 0xae, 0x93, 0x55, 0x36, 0xe0, 0x3d, 0x08, 0xdb, 0xad, - 0x41, 0x49, 0x1f, 0x21, 0xfc, 0x52, 0x3a, 0x72, 0x50, 0xdc, 0x73, 0xba, 0x7a, 0x3d, 0x0b, 0x07, - 0xad, 0xbe, 0xa4, 0x67, 0x24, 0x87, 0x53, 0x64, 0x79, 0x50, 0x0e, 0xe4, 0x3e, 0x9e, 0x04, 0xe9, - 0xa5, 0xd9, 0x12, 0x93, 0x32, 0x50, 0xb7, 0x25, 0x76, 0xe9, 0x42, 0x7a, 0x5c, 0x82, 0x39, 0x4a, - 0x8e, 0xb0, 0xec, 0x9b, 0x22, 0xf2, 0x33, 0xc2, 0x33, 0x29, 0xa9, 0x40, 0xce, 0x6a, 0x7b, 0x98, - 0x21, 0x88, 0x72, 0xe7, 0x86, 0xf4, 0x02, 0x9c, 0xe7, 0x25, 0xce, 0x55, 0xc2, 0xd8, 0x40, 0xf7, - 0x55, 0x6c, 0x37, 0xd4, 0x88, 0x6d, 0xf2, 0x10, 0xe1, 0xd9, 0x54, 0xd8, 0xa0, 0xeb, 0x67, 0xb5, - 0xed, 0x1b, 0x1e, 0xbe, 0x4e, 0x98, 0xd1, 0xa2, 0x84, 0xbf, 0x4c, 0x16, 0x07, 0x83, 0x4f, 0x1e, - 0x23, 0x7c, 0xa8, 0xe7, 0x08, 0x26, 0x6b, 0xba, 0xca, 0xa9, 0x05, 0x46, 0x6e, 0x7d, 0x28, 0x1f, - 0x00, 0xfb, 0x91, 0x04, 0x7b, 0x89, 0xbc, 0xc7, 0x06, 0xb9, 0xee, 0xeb, 0xde, 0xc5, 0x42, 0x31, - 0x26, 0xff, 0x48, 0xf1, 0xd5, 0x26, 0xdf, 0x23, 0x4c, 0x7a, 0x32, 0x05, 0xe5, 0x5f, 0xd3, 0x15, - 0x72, 0x68, 0x36, 0xd9, 0xba, 0x87, 0x9e, 0x96, 0x6c, 0x96, 0xc8, 0x89, 0x81, 0xd8, 0x90, 0x9f, - 0x10, 0x9e, 0x55, 0x5d, 0x35, 0x6a, 0x00, 0x67, 0xde, 0x5d, 0x6a, 0x56, 0x8b, 0xee, 0x36, 0xb3, - 0xcf, 0xd9, 0x1b, 0x7b, 0x6e, 0x76, 0x2e, 0x38, 0x2f, 0x7e, 0xf0, 0xf8, 0x69, 0x1e, 0x3d, 0x79, - 0x9a, 0x47, 0xff, 0x3c, 0xcd, 0xa3, 0xcf, 0xf7, 0xf2, 0x63, 0x4f, 0xf6, 0xf2, 0x63, 0x7f, 0xed, - 0xe5, 0xc7, 0x6e, 0x31, 0xc3, 0xf4, 0x6b, 0xcd, 0x4a, 0x71, 0xcb, 0xa9, 0xb3, 0x4b, 0xdc, 0x74, - 0xe5, 0x39, 0x93, 0x08, 0x7c, 0xaf, 0x13, 0xda, 0x6f, 0x35, 0x84, 0x57, 0x99, 0x94, 0x37, 0xb3, - 0xeb, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x1a, 0x16, 0x81, 0xab, 0x7f, 0x17, 0x00, 0x00, + // 1432 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcf, 0x6f, 0x1b, 0xc5, + 0x17, 0xcf, 0x24, 0x6d, 0xda, 0xbc, 0xf4, 0xfb, 0xad, 0x32, 0xb8, 0x34, 0x75, 0x53, 0x27, 0x99, + 0xd2, 0x24, 0x6d, 0xa9, 0xa7, 0x49, 0x29, 0x2d, 0x48, 0x08, 0x52, 0xa4, 0xb6, 0xa8, 0xa8, 0x6a, + 0xdd, 0x52, 0xa0, 0x07, 0xac, 0x71, 0x76, 0xba, 0x5e, 0x62, 0xef, 0x3a, 0xbb, 0xeb, 0xa8, 0x26, + 0x04, 0x09, 0xfe, 0x01, 0x40, 0xdc, 0x41, 0x48, 0x3d, 0x70, 0xe0, 0x00, 0x02, 0xa1, 0x8a, 0x1b, + 0x12, 0x87, 0x5e, 0x90, 0x2a, 0x71, 0xe1, 0x84, 0x50, 0x83, 0xc4, 0xbf, 0x81, 0x3c, 0xfb, 0xd6, + 0x59, 0x7b, 0x67, 0xd7, 0x6b, 0x9a, 0x5c, 0x2c, 0xef, 0xec, 0xfb, 0xf1, 0x79, 0x3f, 0xe6, 0xcd, + 0x67, 0x07, 0x0a, 0xf7, 0x84, 0xe5, 0xb6, 0x5c, 0xcb, 0x36, 0xf9, 0xaa, 0x6c, 0x79, 0x55, 0xe1, + 0x4a, 0xbe, 0xd6, 0x94, 0x6e, 0xab, 0xd8, 0x70, 0x1d, 0xdf, 0xa1, 0xb4, 0xf3, 0xbe, 0x18, 0xbe, + 0xcf, 0x4f, 0x88, 0xba, 0x65, 0x3b, 0x5c, 0xfd, 0x06, 0x62, 0xf9, 0x9c, 0xe9, 0x98, 0x8e, 0xfa, + 0xcb, 0xdb, 0xff, 0x70, 0x75, 0xca, 0x74, 0x1c, 0xb3, 0x26, 0xb9, 0x68, 0x58, 0x5c, 0xd8, 0xb6, + 0xe3, 0x0b, 0xdf, 0x72, 0x6c, 0x0f, 0xdf, 0x9e, 0x5a, 0x71, 0xbc, 0xba, 0xe3, 0xf1, 0x8a, 0xf0, + 0xd0, 0x27, 0x5f, 0x5f, 0xac, 0x48, 0x5f, 0x2c, 0xf2, 0x86, 0x30, 0x2d, 0x5b, 0x09, 0xa3, 0xec, + 0xb4, 0x06, 0x66, 0x43, 0xb8, 0xa2, 0x1e, 0x1a, 0x9b, 0xd3, 0x08, 0xac, 0x8b, 0x9a, 0x65, 0x08, + 0xdf, 0x71, 0xcb, 0x9e, 0xf4, 0x51, 0x8e, 0x69, 0xe4, 0x56, 0x65, 0xab, 0xac, 0xfe, 0xa1, 0xcc, + 0x19, 0x8d, 0x8c, 0x30, 0x4d, 0x57, 0x9a, 0xc2, 0x97, 0x46, 0xb9, 0x57, 0x7c, 0x46, 0x87, 0xad, + 0x59, 0x69, 0xcb, 0xa1, 0xc4, 0x69, 0x9d, 0xc1, 0xa6, 0x5f, 0x75, 0x5c, 0xeb, 0x03, 0x69, 0x94, + 0x85, 0x61, 0xb8, 0xd2, 0x0b, 0x23, 0x79, 0x4e, 0x23, 0xbc, 0xe2, 0xd4, 0xeb, 0x96, 0x5f, 0x97, + 0xb6, 0x8f, 0x52, 0x8c, 0xc1, 0xcc, 0xcd, 0x76, 0xca, 0xee, 0x48, 0xd7, 0xba, 0x67, 0x89, 0x4a, + 0x4d, 0x96, 0x84, 0x6d, 0x38, 0x75, 0x5b, 0x7a, 0x5e, 0x49, 0xae, 0x35, 0xa5, 0xe7, 0xb3, 0x77, + 0x61, 0x36, 0x45, 0xc6, 0x6b, 0x38, 0xb6, 0x27, 0x69, 0x01, 0xc0, 0xed, 0xac, 0x4e, 0x92, 0x19, + 0xb2, 0x30, 0x56, 0x8a, 0xac, 0xd0, 0x1c, 0xec, 0x75, 0x9d, 0xa6, 0x6d, 0x4c, 0x0e, 0xcf, 0x90, + 0x85, 0x3d, 0xa5, 0xe0, 0x81, 0xe5, 0x80, 0x2a, 0xd3, 0x37, 0x54, 0x0d, 0x42, 0x87, 0xb7, 0xe1, + 0x99, 0xae, 0x55, 0x74, 0xf1, 0x0a, 0x8c, 0x06, 0xb5, 0x52, 0xe6, 0xc7, 0x97, 0xf2, 0xc5, 0x78, + 0x53, 0x15, 0x03, 0x9d, 0x4b, 0x63, 0x8f, 0xfe, 0x9c, 0x1e, 0xfa, 0xe6, 0x9f, 0xef, 0x4e, 0x91, + 0x12, 0x2a, 0xb1, 0x23, 0x70, 0x58, 0x59, 0x7d, 0x7d, 0x3b, 0x09, 0xa1, 0xc3, 0x9f, 0x09, 0x4c, + 0xc6, 0xdf, 0xa1, 0xdb, 0xeb, 0x40, 0xc5, 0x8a, 0x6f, 0xad, 0xcb, 0x72, 0x24, 0x7d, 0x08, 0x61, + 0x5a, 0x07, 0x21, 0x6a, 0x64, 0x22, 0x50, 0x8d, 0x2c, 0xb5, 0xed, 0xad, 0x35, 0x65, 0x53, 0x1a, + 0x5d, 0xf6, 0x86, 0x33, 0xda, 0x0b, 0x54, 0x23, 0x4b, 0xec, 0x2c, 0x62, 0xbf, 0x13, 0xb6, 0xe9, + 0x2d, 0xe9, 0x63, 0x60, 0xed, 0xac, 0x5b, 0xb6, 0x21, 0xef, 0x63, 0x41, 0x82, 0x07, 0x56, 0x85, + 0x23, 0x1a, 0x0d, 0x0c, 0xf7, 0x1a, 0xfc, 0xaf, 0xab, 0xe1, 0x31, 0xd2, 0x19, 0x1d, 0xb2, 0xa8, + 0x81, 0x4b, 0x7b, 0xda, 0x29, 0x2f, 0x1d, 0x58, 0x8f, 0xac, 0x31, 0x09, 0x47, 0x63, 0x9e, 0x96, + 0x6b, 0xb5, 0x10, 0xde, 0x65, 0x80, 0xed, 0x2d, 0x8a, 0x8e, 0xe6, 0x8a, 0xc1, 0x7e, 0x2e, 0xb6, + 0xf7, 0x73, 0x31, 0x98, 0x21, 0xb8, 0x9f, 0x8b, 0x37, 0x84, 0x29, 0x51, 0xb7, 0x14, 0xd1, 0x64, + 0x3f, 0x12, 0x98, 0xd2, 0xfb, 0x49, 0x0e, 0x6a, 0xe4, 0xbf, 0x06, 0x45, 0xaf, 0x74, 0xa1, 0x0e, + 0x0a, 0x37, 0xdf, 0x17, 0x75, 0x80, 0xa4, 0x0b, 0xf6, 0xdb, 0x90, 0x53, 0xa8, 0xaf, 0xc9, 0xd6, + 0xad, 0xb6, 0xeb, 0x30, 0x2d, 0x53, 0x30, 0xd6, 0x71, 0x88, 0x95, 0xdb, 0x5e, 0xa0, 0xb3, 0x70, + 0xa0, 0x52, 0x73, 0x56, 0x56, 0xcb, 0x55, 0x69, 0x99, 0x55, 0x1f, 0x37, 0xd4, 0xb8, 0x5a, 0xbb, + 0xaa, 0x96, 0xd8, 0x3b, 0x70, 0xa8, 0xc7, 0x30, 0xe6, 0xe1, 0x55, 0x18, 0xeb, 0x8c, 0x1d, 0xcc, + 0xf7, 0x94, 0x2e, 0x07, 0xa1, 0x22, 0xc6, 0xbf, 0x7f, 0x15, 0x9f, 0x99, 0xc0, 0x4d, 0x14, 0x0a, + 0xec, 0x42, 0x31, 0x1f, 0x84, 0x9b, 0xb1, 0xcb, 0x87, 0x3e, 0x80, 0x91, 0x41, 0x03, 0xd8, 0xb9, + 0xe2, 0x5d, 0x84, 0x82, 0x42, 0xb9, 0xdc, 0x99, 0xe8, 0xbd, 0x65, 0x7c, 0x16, 0x46, 0xb1, 0x44, + 0x44, 0x95, 0x08, 0x9f, 0xd8, 0xc7, 0x04, 0xa6, 0x13, 0x55, 0x31, 0xce, 0xf7, 0x20, 0xa7, 0x3b, + 0x2a, 0x3a, 0x69, 0xd5, 0x84, 0x1c, 0xb7, 0x86, 0xc1, 0x53, 0x11, 0x7b, 0xc3, 0x56, 0x71, 0xa6, + 0xc7, 0x95, 0x76, 0xa1, 0xa2, 0xbf, 0x11, 0x60, 0x69, 0xde, 0xfa, 0xc6, 0x3c, 0xb2, 0x13, 0x31, + 0xef, 0x5c, 0xe9, 0x3b, 0xa7, 0x56, 0xb3, 0x72, 0x4d, 0xb6, 0xc2, 0x43, 0xe4, 0x7b, 0x12, 0x1e, + 0x5b, 0xb8, 0x8c, 0x61, 0xbd, 0x09, 0xff, 0xc7, 0xf3, 0x03, 0x4f, 0xf3, 0xb4, 0x89, 0xba, 0xac, + 0x24, 0x03, 0x0b, 0xe1, 0xf0, 0x11, 0x91, 0xb5, 0xb6, 0x35, 0x3c, 0x3d, 0x42, 0x6b, 0xc3, 0xc9, + 0xd6, 0x6e, 0x2a, 0xc9, 0x6e, 0x6b, 0x6b, 0x91, 0x35, 0x76, 0x01, 0x8e, 0x05, 0x85, 0xe9, 0xb0, + 0x88, 0xe5, 0x80, 0x44, 0x44, 0x7a, 0xd8, 0x17, 0xae, 0x89, 0xc7, 0xc0, 0x58, 0x09, 0x9f, 0xd8, + 0x87, 0x61, 0xf7, 0xc7, 0x15, 0x31, 0xec, 0xbb, 0x40, 0xe3, 0xdc, 0x04, 0x43, 0x3f, 0xa1, 0x0d, + 0xbd, 0xd7, 0x14, 0x22, 0x9e, 0x10, 0xbd, 0x2f, 0xd8, 0xfb, 0xc8, 0x5a, 0x62, 0x2a, 0xbb, 0xd0, + 0xbc, 0x8f, 0x48, 0xb8, 0x55, 0xb4, 0xce, 0xfa, 0x44, 0x3b, 0xf2, 0xf4, 0xd1, 0xee, 0x5c, 0xdf, + 0x3a, 0x78, 0x1a, 0x5f, 0x91, 0xb6, 0x74, 0x45, 0x6d, 0xb0, 0x63, 0xe7, 0x30, 0xec, 0xb3, 0x8c, + 0xb2, 0xdf, 0x6a, 0x48, 0x05, 0x61, 0xac, 0x34, 0x6a, 0x19, 0xb7, 0x5b, 0x0d, 0x49, 0x8f, 0xc0, + 0x7e, 0xcb, 0x28, 0xaf, 0x8b, 0x5a, 0x53, 0x4e, 0x8e, 0xa8, 0x37, 0xfb, 0x2c, 0xe3, 0x4e, 0xfb, + 0x91, 0x35, 0xf1, 0x58, 0x8e, 0x39, 0xc4, 0xac, 0xbd, 0x05, 0x13, 0x66, 0xf0, 0x2a, 0x36, 0xe2, + 0x8e, 0xeb, 0x92, 0xd6, 0x63, 0x07, 0x53, 0x76, 0xd0, 0xec, 0x5e, 0x66, 0x55, 0x6c, 0xce, 0x1e, + 0xf1, 0x5d, 0x68, 0x8e, 0x5f, 0xc2, 0x51, 0xae, 0x73, 0x95, 0x1e, 0xe4, 0xc8, 0xd3, 0x05, 0xb9, + 0x63, 0x5d, 0xb1, 0xf4, 0x80, 0xc2, 0x5e, 0x15, 0x03, 0xdd, 0x84, 0xd1, 0x80, 0x3e, 0xd3, 0xb9, + 0x84, 0x69, 0xd2, 0xc3, 0xd4, 0xf3, 0xf3, 0x7d, 0xe5, 0x02, 0x87, 0x8c, 0x7d, 0xf2, 0xfb, 0xdf, + 0x5f, 0x0c, 0x4f, 0xd1, 0x3c, 0x4f, 0xfc, 0x02, 0xa3, 0x9f, 0x13, 0x18, 0x8f, 0x12, 0xe5, 0xd3, + 0x89, 0xc6, 0xe3, 0x14, 0x3e, 0xff, 0x7c, 0x36, 0x61, 0x84, 0x33, 0xaf, 0xe0, 0xcc, 0xd2, 0x69, + 0x9e, 0xfe, 0x95, 0x44, 0xbf, 0x24, 0x70, 0x20, 0x4a, 0x08, 0x69, 0xb2, 0x1f, 0x0d, 0xff, 0xce, + 0x9f, 0xc9, 0x28, 0x8d, 0xb0, 0x16, 0x15, 0xac, 0xd3, 0xf4, 0x24, 0xef, 0xf7, 0x19, 0xca, 0x37, + 0x14, 0x95, 0xdf, 0xa4, 0x5f, 0x11, 0x38, 0xd8, 0xc3, 0x7a, 0x29, 0xcf, 0xe4, 0x75, 0x7b, 0x3b, + 0xe4, 0xcf, 0x66, 0x57, 0x40, 0xa4, 0x27, 0x15, 0xd2, 0xe3, 0x74, 0xb6, 0x2f, 0x52, 0xfa, 0x35, + 0x81, 0xfd, 0x9d, 0xae, 0x5d, 0x48, 0xf4, 0xd4, 0x33, 0x8d, 0xf2, 0x27, 0x33, 0x48, 0x22, 0x98, + 0xd7, 0x14, 0x98, 0x97, 0xe9, 0x45, 0x9e, 0xf6, 0x55, 0xce, 0x37, 0x3a, 0xb8, 0x36, 0xf9, 0x46, + 0x94, 0x42, 0x6f, 0xd2, 0x4f, 0x09, 0x8c, 0x47, 0xf6, 0x6e, 0x4a, 0xeb, 0xc5, 0x87, 0x49, 0x4a, + 0xeb, 0x69, 0xc6, 0x01, 0x3b, 0xa1, 0xc0, 0x4e, 0xd3, 0x63, 0xa9, 0x60, 0xe9, 0x43, 0x02, 0x34, + 0xce, 0x6e, 0xe8, 0x52, 0xa2, 0xaf, 0x44, 0x1e, 0x9a, 0x3f, 0x37, 0x90, 0x0e, 0xc2, 0x7c, 0x49, + 0xc1, 0x3c, 0x47, 0x17, 0x79, 0xc6, 0x5b, 0x0c, 0xbe, 0x11, 0x26, 0xf3, 0x21, 0x81, 0x43, 0x5a, + 0xa6, 0x47, 0xcf, 0x0f, 0x80, 0x24, 0x92, 0xe0, 0x17, 0x07, 0x55, 0xc3, 0x18, 0xce, 0xaa, 0x18, + 0x4e, 0xd1, 0x85, 0xac, 0x31, 0xd0, 0x8f, 0x60, 0x14, 0x79, 0x56, 0xca, 0x04, 0x8c, 0xb2, 0xbe, + 0xb4, 0x09, 0xd8, 0x45, 0x03, 0xd9, 0x71, 0x05, 0xe6, 0x18, 0x3d, 0xca, 0x93, 0xef, 0x79, 0xe8, + 0x0f, 0x04, 0x26, 0x62, 0xcc, 0x80, 0x2e, 0x26, 0xc7, 0x9f, 0xc0, 0xdb, 0xf2, 0x4b, 0x83, 0xa8, + 0x20, 0xc2, 0x0b, 0x0a, 0xe1, 0x22, 0xe5, 0x3c, 0xd3, 0x3d, 0x13, 0xdf, 0x08, 0xb8, 0xe0, 0x66, + 0x1b, 0x75, 0x4e, 0xc7, 0x8e, 0xe8, 0x0b, 0xd9, 0x51, 0x44, 0xca, 0x7d, 0x7e, 0x40, 0x2d, 0x84, + 0x5f, 0x54, 0xf0, 0x17, 0xe8, 0x5c, 0x36, 0xf8, 0xf4, 0x57, 0x02, 0x07, 0x7b, 0xce, 0xda, 0x94, + 0xc9, 0xa9, 0xe7, 0x4c, 0x29, 0x93, 0x33, 0x81, 0xf3, 0xb0, 0xeb, 0x0a, 0xe6, 0x55, 0x7a, 0x59, + 0x07, 0x33, 0x46, 0x14, 0xba, 0x87, 0x16, 0x12, 0xb0, 0xe0, 0x9f, 0x62, 0x5c, 0x9b, 0xf4, 0x5b, + 0x02, 0x34, 0xce, 0x3e, 0x52, 0x06, 0x45, 0x22, 0x2b, 0x4a, 0x19, 0x14, 0xc9, 0xf4, 0x86, 0x9d, + 0x51, 0xf1, 0xcc, 0xd3, 0x13, 0x99, 0xe2, 0xa1, 0x3f, 0x11, 0xc8, 0xe9, 0x2e, 0x12, 0x53, 0x7a, + 0x25, 0xe5, 0x6e, 0x32, 0xa5, 0x57, 0xd2, 0x6e, 0x2b, 0xfb, 0x1c, 0xb4, 0x1d, 0xcd, 0xf2, 0xf6, + 0x05, 0xe6, 0xa5, 0x37, 0x1e, 0x3d, 0x29, 0x90, 0xc7, 0x4f, 0x0a, 0xe4, 0xaf, 0x27, 0x05, 0xf2, + 0xd9, 0x56, 0x61, 0xe8, 0xf1, 0x56, 0x61, 0xe8, 0x8f, 0xad, 0xc2, 0xd0, 0x5d, 0x6e, 0x5a, 0x7e, + 0xb5, 0x59, 0x29, 0xae, 0x38, 0x75, 0x7e, 0x59, 0x58, 0xae, 0x3a, 0x5a, 0x22, 0x86, 0xef, 0x6f, + 0x9b, 0x6e, 0x57, 0xcf, 0xab, 0x8c, 0xaa, 0xbb, 0xd7, 0x73, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, + 0x48, 0x65, 0x99, 0x9c, 0x35, 0x17, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1463,27 +1491,32 @@ const _ = grpc.SupportPackageIsVersion4 type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + // Commitments queries the lists of active and queued commitments Commitments(ctx context.Context, in *QueryCommitmentsRequest, opts ...grpc.CallOption) (*QueryCommitmentsResponse, error) // Queries a ValidatorSet by index. - ValidatorSet(ctx context.Context, in *QueryGetValidatorSetRequest, opts ...grpc.CallOption) (*QueryGetValidatorSetResponse, error) + ValidatorSet(ctx context.Context, in *QueryValidatorSetRequest, opts ...grpc.CallOption) (*QueryValidatorSetResponse, error) // Queries a list of ValidatorSet items. - ValidatorSetAll(ctx context.Context, in *QueryAllValidatorSetRequest, opts ...grpc.CallOption) (*QueryAllValidatorSetResponse, error) + ValidatorSetAll(ctx context.Context, in *QueryValidatorSetAllRequest, opts ...grpc.CallOption) (*QueryValidatorSetAllResponse, error) // Queries a KeyShare by index. - KeyShare(ctx context.Context, in *QueryGetKeyShareRequest, opts ...grpc.CallOption) (*QueryGetKeyShareResponse, error) + KeyShare(ctx context.Context, in *QueryKeyShareRequest, opts ...grpc.CallOption) (*QueryKeyShareResponse, error) // Queries a list of KeyShare items. - KeyShareAll(ctx context.Context, in *QueryAllKeyShareRequest, opts ...grpc.CallOption) (*QueryAllKeyShareResponse, error) - // Queries a list of AggregatedKeyShare items. - AggregatedKeyShare(ctx context.Context, in *QueryGetAggregatedKeyShareRequest, opts ...grpc.CallOption) (*QueryGetAggregatedKeyShareResponse, error) - AggregatedKeyShareAll(ctx context.Context, in *QueryAllAggregatedKeyShareRequest, opts ...grpc.CallOption) (*QueryAllAggregatedKeyShareResponse, error) + KeyShareAll(ctx context.Context, in *QueryKeyShareAllRequest, opts ...grpc.CallOption) (*QueryKeyShareAllResponse, error) + // AggregatedKeyShare a AggregatedKeyShare item by height. + AggregatedKeyShare(ctx context.Context, in *QueryAggregatedKeyShareRequest, opts ...grpc.CallOption) (*QueryAggregatedKeyShareResponse, error) + // AggregatedKeyShareAll Queries a list of AggregatedKeyShare items. + AggregatedKeyShareAll(ctx context.Context, in *QueryAggregatedKeyShareAllRequest, opts ...grpc.CallOption) (*QueryAggregatedKeyShareAllResponse, error) // Queries the public keys PubKey(ctx context.Context, in *QueryPubKeyRequest, opts ...grpc.CallOption) (*QueryPubKeyResponse, error) - // Queries a list of AuthorizedAddress items. - AuthorizedAddress(ctx context.Context, in *QueryGetAuthorizedAddressRequest, opts ...grpc.CallOption) (*QueryGetAuthorizedAddressResponse, error) - AuthorizedAddressAll(ctx context.Context, in *QueryAllAuthorizedAddressRequest, opts ...grpc.CallOption) (*QueryAllAuthorizedAddressResponse, error) - // Queries a list of GeneralKeyShare items. - GeneralKeyShare(ctx context.Context, in *QueryGetGeneralKeyShareRequest, opts ...grpc.CallOption) (*QueryGetGeneralKeyShareResponse, error) - GeneralKeyShareAll(ctx context.Context, in *QueryAllGeneralKeyShareRequest, opts ...grpc.CallOption) (*QueryAllGeneralKeyShareResponse, error) - VerifiableRandomness(ctx context.Context, in *QueryVerifiableRandomnessQuery, opts ...grpc.CallOption) (*QueryVerifiableRandomnessResponse, error) + // Queries a AuthorizedAddress item by target. + AuthorizedAddress(ctx context.Context, in *QueryAuthorizedAddressRequest, opts ...grpc.CallOption) (*QueryAuthorizedAddressResponse, error) + // Queries a list of AuthorizedAddress items + AuthorizedAddressAll(ctx context.Context, in *QueryAuthorizedAddressAllRequest, opts ...grpc.CallOption) (*QueryAuthorizedAddressAllResponse, error) + // Queries a GeneralKeyShare item by validator address and identity. + GeneralKeyShare(ctx context.Context, in *QueryGeneralKeyShareRequest, opts ...grpc.CallOption) (*QueryGeneralKeyShareResponse, error) + // Queries a list of GeneralKeyShare items + GeneralKeyShareAll(ctx context.Context, in *QueryGeneralKeyShareAllRequest, opts ...grpc.CallOption) (*QueryGeneralKeyShareAllResponse, error) + // Queries verifiable randomness + VerifiableRandomness(ctx context.Context, in *QueryVerifiableRandomnessRequest, opts ...grpc.CallOption) (*QueryVerifiableRandomnessResponse, error) } type queryClient struct { @@ -1512,8 +1545,8 @@ func (c *queryClient) Commitments(ctx context.Context, in *QueryCommitmentsReque return out, nil } -func (c *queryClient) ValidatorSet(ctx context.Context, in *QueryGetValidatorSetRequest, opts ...grpc.CallOption) (*QueryGetValidatorSetResponse, error) { - out := new(QueryGetValidatorSetResponse) +func (c *queryClient) ValidatorSet(ctx context.Context, in *QueryValidatorSetRequest, opts ...grpc.CallOption) (*QueryValidatorSetResponse, error) { + out := new(QueryValidatorSetResponse) err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/ValidatorSet", in, out, opts...) if err != nil { return nil, err @@ -1521,8 +1554,8 @@ func (c *queryClient) ValidatorSet(ctx context.Context, in *QueryGetValidatorSet return out, nil } -func (c *queryClient) ValidatorSetAll(ctx context.Context, in *QueryAllValidatorSetRequest, opts ...grpc.CallOption) (*QueryAllValidatorSetResponse, error) { - out := new(QueryAllValidatorSetResponse) +func (c *queryClient) ValidatorSetAll(ctx context.Context, in *QueryValidatorSetAllRequest, opts ...grpc.CallOption) (*QueryValidatorSetAllResponse, error) { + out := new(QueryValidatorSetAllResponse) err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/ValidatorSetAll", in, out, opts...) if err != nil { return nil, err @@ -1530,8 +1563,8 @@ func (c *queryClient) ValidatorSetAll(ctx context.Context, in *QueryAllValidator return out, nil } -func (c *queryClient) KeyShare(ctx context.Context, in *QueryGetKeyShareRequest, opts ...grpc.CallOption) (*QueryGetKeyShareResponse, error) { - out := new(QueryGetKeyShareResponse) +func (c *queryClient) KeyShare(ctx context.Context, in *QueryKeyShareRequest, opts ...grpc.CallOption) (*QueryKeyShareResponse, error) { + out := new(QueryKeyShareResponse) err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/KeyShare", in, out, opts...) if err != nil { return nil, err @@ -1539,8 +1572,8 @@ func (c *queryClient) KeyShare(ctx context.Context, in *QueryGetKeyShareRequest, return out, nil } -func (c *queryClient) KeyShareAll(ctx context.Context, in *QueryAllKeyShareRequest, opts ...grpc.CallOption) (*QueryAllKeyShareResponse, error) { - out := new(QueryAllKeyShareResponse) +func (c *queryClient) KeyShareAll(ctx context.Context, in *QueryKeyShareAllRequest, opts ...grpc.CallOption) (*QueryKeyShareAllResponse, error) { + out := new(QueryKeyShareAllResponse) err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/KeyShareAll", in, out, opts...) if err != nil { return nil, err @@ -1548,8 +1581,8 @@ func (c *queryClient) KeyShareAll(ctx context.Context, in *QueryAllKeyShareReque return out, nil } -func (c *queryClient) AggregatedKeyShare(ctx context.Context, in *QueryGetAggregatedKeyShareRequest, opts ...grpc.CallOption) (*QueryGetAggregatedKeyShareResponse, error) { - out := new(QueryGetAggregatedKeyShareResponse) +func (c *queryClient) AggregatedKeyShare(ctx context.Context, in *QueryAggregatedKeyShareRequest, opts ...grpc.CallOption) (*QueryAggregatedKeyShareResponse, error) { + out := new(QueryAggregatedKeyShareResponse) err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/AggregatedKeyShare", in, out, opts...) if err != nil { return nil, err @@ -1557,8 +1590,8 @@ func (c *queryClient) AggregatedKeyShare(ctx context.Context, in *QueryGetAggreg return out, nil } -func (c *queryClient) AggregatedKeyShareAll(ctx context.Context, in *QueryAllAggregatedKeyShareRequest, opts ...grpc.CallOption) (*QueryAllAggregatedKeyShareResponse, error) { - out := new(QueryAllAggregatedKeyShareResponse) +func (c *queryClient) AggregatedKeyShareAll(ctx context.Context, in *QueryAggregatedKeyShareAllRequest, opts ...grpc.CallOption) (*QueryAggregatedKeyShareAllResponse, error) { + out := new(QueryAggregatedKeyShareAllResponse) err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/AggregatedKeyShareAll", in, out, opts...) if err != nil { return nil, err @@ -1575,8 +1608,8 @@ func (c *queryClient) PubKey(ctx context.Context, in *QueryPubKeyRequest, opts . return out, nil } -func (c *queryClient) AuthorizedAddress(ctx context.Context, in *QueryGetAuthorizedAddressRequest, opts ...grpc.CallOption) (*QueryGetAuthorizedAddressResponse, error) { - out := new(QueryGetAuthorizedAddressResponse) +func (c *queryClient) AuthorizedAddress(ctx context.Context, in *QueryAuthorizedAddressRequest, opts ...grpc.CallOption) (*QueryAuthorizedAddressResponse, error) { + out := new(QueryAuthorizedAddressResponse) err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/AuthorizedAddress", in, out, opts...) if err != nil { return nil, err @@ -1584,8 +1617,8 @@ func (c *queryClient) AuthorizedAddress(ctx context.Context, in *QueryGetAuthori return out, nil } -func (c *queryClient) AuthorizedAddressAll(ctx context.Context, in *QueryAllAuthorizedAddressRequest, opts ...grpc.CallOption) (*QueryAllAuthorizedAddressResponse, error) { - out := new(QueryAllAuthorizedAddressResponse) +func (c *queryClient) AuthorizedAddressAll(ctx context.Context, in *QueryAuthorizedAddressAllRequest, opts ...grpc.CallOption) (*QueryAuthorizedAddressAllResponse, error) { + out := new(QueryAuthorizedAddressAllResponse) err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/AuthorizedAddressAll", in, out, opts...) if err != nil { return nil, err @@ -1593,8 +1626,8 @@ func (c *queryClient) AuthorizedAddressAll(ctx context.Context, in *QueryAllAuth return out, nil } -func (c *queryClient) GeneralKeyShare(ctx context.Context, in *QueryGetGeneralKeyShareRequest, opts ...grpc.CallOption) (*QueryGetGeneralKeyShareResponse, error) { - out := new(QueryGetGeneralKeyShareResponse) +func (c *queryClient) GeneralKeyShare(ctx context.Context, in *QueryGeneralKeyShareRequest, opts ...grpc.CallOption) (*QueryGeneralKeyShareResponse, error) { + out := new(QueryGeneralKeyShareResponse) err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/GeneralKeyShare", in, out, opts...) if err != nil { return nil, err @@ -1602,8 +1635,8 @@ func (c *queryClient) GeneralKeyShare(ctx context.Context, in *QueryGetGeneralKe return out, nil } -func (c *queryClient) GeneralKeyShareAll(ctx context.Context, in *QueryAllGeneralKeyShareRequest, opts ...grpc.CallOption) (*QueryAllGeneralKeyShareResponse, error) { - out := new(QueryAllGeneralKeyShareResponse) +func (c *queryClient) GeneralKeyShareAll(ctx context.Context, in *QueryGeneralKeyShareAllRequest, opts ...grpc.CallOption) (*QueryGeneralKeyShareAllResponse, error) { + out := new(QueryGeneralKeyShareAllResponse) err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/GeneralKeyShareAll", in, out, opts...) if err != nil { return nil, err @@ -1611,7 +1644,7 @@ func (c *queryClient) GeneralKeyShareAll(ctx context.Context, in *QueryAllGenera return out, nil } -func (c *queryClient) VerifiableRandomness(ctx context.Context, in *QueryVerifiableRandomnessQuery, opts ...grpc.CallOption) (*QueryVerifiableRandomnessResponse, error) { +func (c *queryClient) VerifiableRandomness(ctx context.Context, in *QueryVerifiableRandomnessRequest, opts ...grpc.CallOption) (*QueryVerifiableRandomnessResponse, error) { out := new(QueryVerifiableRandomnessResponse) err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/VerifiableRandomness", in, out, opts...) if err != nil { @@ -1624,27 +1657,32 @@ func (c *queryClient) VerifiableRandomness(ctx context.Context, in *QueryVerifia type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + // Commitments queries the lists of active and queued commitments Commitments(context.Context, *QueryCommitmentsRequest) (*QueryCommitmentsResponse, error) // Queries a ValidatorSet by index. - ValidatorSet(context.Context, *QueryGetValidatorSetRequest) (*QueryGetValidatorSetResponse, error) + ValidatorSet(context.Context, *QueryValidatorSetRequest) (*QueryValidatorSetResponse, error) // Queries a list of ValidatorSet items. - ValidatorSetAll(context.Context, *QueryAllValidatorSetRequest) (*QueryAllValidatorSetResponse, error) + ValidatorSetAll(context.Context, *QueryValidatorSetAllRequest) (*QueryValidatorSetAllResponse, error) // Queries a KeyShare by index. - KeyShare(context.Context, *QueryGetKeyShareRequest) (*QueryGetKeyShareResponse, error) + KeyShare(context.Context, *QueryKeyShareRequest) (*QueryKeyShareResponse, error) // Queries a list of KeyShare items. - KeyShareAll(context.Context, *QueryAllKeyShareRequest) (*QueryAllKeyShareResponse, error) - // Queries a list of AggregatedKeyShare items. - AggregatedKeyShare(context.Context, *QueryGetAggregatedKeyShareRequest) (*QueryGetAggregatedKeyShareResponse, error) - AggregatedKeyShareAll(context.Context, *QueryAllAggregatedKeyShareRequest) (*QueryAllAggregatedKeyShareResponse, error) + KeyShareAll(context.Context, *QueryKeyShareAllRequest) (*QueryKeyShareAllResponse, error) + // AggregatedKeyShare a AggregatedKeyShare item by height. + AggregatedKeyShare(context.Context, *QueryAggregatedKeyShareRequest) (*QueryAggregatedKeyShareResponse, error) + // AggregatedKeyShareAll Queries a list of AggregatedKeyShare items. + AggregatedKeyShareAll(context.Context, *QueryAggregatedKeyShareAllRequest) (*QueryAggregatedKeyShareAllResponse, error) // Queries the public keys PubKey(context.Context, *QueryPubKeyRequest) (*QueryPubKeyResponse, error) - // Queries a list of AuthorizedAddress items. - AuthorizedAddress(context.Context, *QueryGetAuthorizedAddressRequest) (*QueryGetAuthorizedAddressResponse, error) - AuthorizedAddressAll(context.Context, *QueryAllAuthorizedAddressRequest) (*QueryAllAuthorizedAddressResponse, error) - // Queries a list of GeneralKeyShare items. - GeneralKeyShare(context.Context, *QueryGetGeneralKeyShareRequest) (*QueryGetGeneralKeyShareResponse, error) - GeneralKeyShareAll(context.Context, *QueryAllGeneralKeyShareRequest) (*QueryAllGeneralKeyShareResponse, error) - VerifiableRandomness(context.Context, *QueryVerifiableRandomnessQuery) (*QueryVerifiableRandomnessResponse, error) + // Queries a AuthorizedAddress item by target. + AuthorizedAddress(context.Context, *QueryAuthorizedAddressRequest) (*QueryAuthorizedAddressResponse, error) + // Queries a list of AuthorizedAddress items + AuthorizedAddressAll(context.Context, *QueryAuthorizedAddressAllRequest) (*QueryAuthorizedAddressAllResponse, error) + // Queries a GeneralKeyShare item by validator address and identity. + GeneralKeyShare(context.Context, *QueryGeneralKeyShareRequest) (*QueryGeneralKeyShareResponse, error) + // Queries a list of GeneralKeyShare items + GeneralKeyShareAll(context.Context, *QueryGeneralKeyShareAllRequest) (*QueryGeneralKeyShareAllResponse, error) + // Queries verifiable randomness + VerifiableRandomness(context.Context, *QueryVerifiableRandomnessRequest) (*QueryVerifiableRandomnessResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1657,40 +1695,40 @@ func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsReq func (*UnimplementedQueryServer) Commitments(ctx context.Context, req *QueryCommitmentsRequest) (*QueryCommitmentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Commitments not implemented") } -func (*UnimplementedQueryServer) ValidatorSet(ctx context.Context, req *QueryGetValidatorSetRequest) (*QueryGetValidatorSetResponse, error) { +func (*UnimplementedQueryServer) ValidatorSet(ctx context.Context, req *QueryValidatorSetRequest) (*QueryValidatorSetResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValidatorSet not implemented") } -func (*UnimplementedQueryServer) ValidatorSetAll(ctx context.Context, req *QueryAllValidatorSetRequest) (*QueryAllValidatorSetResponse, error) { +func (*UnimplementedQueryServer) ValidatorSetAll(ctx context.Context, req *QueryValidatorSetAllRequest) (*QueryValidatorSetAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValidatorSetAll not implemented") } -func (*UnimplementedQueryServer) KeyShare(ctx context.Context, req *QueryGetKeyShareRequest) (*QueryGetKeyShareResponse, error) { +func (*UnimplementedQueryServer) KeyShare(ctx context.Context, req *QueryKeyShareRequest) (*QueryKeyShareResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KeyShare not implemented") } -func (*UnimplementedQueryServer) KeyShareAll(ctx context.Context, req *QueryAllKeyShareRequest) (*QueryAllKeyShareResponse, error) { +func (*UnimplementedQueryServer) KeyShareAll(ctx context.Context, req *QueryKeyShareAllRequest) (*QueryKeyShareAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KeyShareAll not implemented") } -func (*UnimplementedQueryServer) AggregatedKeyShare(ctx context.Context, req *QueryGetAggregatedKeyShareRequest) (*QueryGetAggregatedKeyShareResponse, error) { +func (*UnimplementedQueryServer) AggregatedKeyShare(ctx context.Context, req *QueryAggregatedKeyShareRequest) (*QueryAggregatedKeyShareResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AggregatedKeyShare not implemented") } -func (*UnimplementedQueryServer) AggregatedKeyShareAll(ctx context.Context, req *QueryAllAggregatedKeyShareRequest) (*QueryAllAggregatedKeyShareResponse, error) { +func (*UnimplementedQueryServer) AggregatedKeyShareAll(ctx context.Context, req *QueryAggregatedKeyShareAllRequest) (*QueryAggregatedKeyShareAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AggregatedKeyShareAll not implemented") } func (*UnimplementedQueryServer) PubKey(ctx context.Context, req *QueryPubKeyRequest) (*QueryPubKeyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PubKey not implemented") } -func (*UnimplementedQueryServer) AuthorizedAddress(ctx context.Context, req *QueryGetAuthorizedAddressRequest) (*QueryGetAuthorizedAddressResponse, error) { +func (*UnimplementedQueryServer) AuthorizedAddress(ctx context.Context, req *QueryAuthorizedAddressRequest) (*QueryAuthorizedAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AuthorizedAddress not implemented") } -func (*UnimplementedQueryServer) AuthorizedAddressAll(ctx context.Context, req *QueryAllAuthorizedAddressRequest) (*QueryAllAuthorizedAddressResponse, error) { +func (*UnimplementedQueryServer) AuthorizedAddressAll(ctx context.Context, req *QueryAuthorizedAddressAllRequest) (*QueryAuthorizedAddressAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AuthorizedAddressAll not implemented") } -func (*UnimplementedQueryServer) GeneralKeyShare(ctx context.Context, req *QueryGetGeneralKeyShareRequest) (*QueryGetGeneralKeyShareResponse, error) { +func (*UnimplementedQueryServer) GeneralKeyShare(ctx context.Context, req *QueryGeneralKeyShareRequest) (*QueryGeneralKeyShareResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GeneralKeyShare not implemented") } -func (*UnimplementedQueryServer) GeneralKeyShareAll(ctx context.Context, req *QueryAllGeneralKeyShareRequest) (*QueryAllGeneralKeyShareResponse, error) { +func (*UnimplementedQueryServer) GeneralKeyShareAll(ctx context.Context, req *QueryGeneralKeyShareAllRequest) (*QueryGeneralKeyShareAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GeneralKeyShareAll not implemented") } -func (*UnimplementedQueryServer) VerifiableRandomness(ctx context.Context, req *QueryVerifiableRandomnessQuery) (*QueryVerifiableRandomnessResponse, error) { +func (*UnimplementedQueryServer) VerifiableRandomness(ctx context.Context, req *QueryVerifiableRandomnessRequest) (*QueryVerifiableRandomnessResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method VerifiableRandomness not implemented") } @@ -1735,7 +1773,7 @@ func _Query_Commitments_Handler(srv interface{}, ctx context.Context, dec func(i } func _Query_ValidatorSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetValidatorSetRequest) + in := new(QueryValidatorSetRequest) if err := dec(in); err != nil { return nil, err } @@ -1747,13 +1785,13 @@ func _Query_ValidatorSet_Handler(srv interface{}, ctx context.Context, dec func( FullMethod: "/fairyring.keyshare.Query/ValidatorSet", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).ValidatorSet(ctx, req.(*QueryGetValidatorSetRequest)) + return srv.(QueryServer).ValidatorSet(ctx, req.(*QueryValidatorSetRequest)) } return interceptor(ctx, in, info, handler) } func _Query_ValidatorSetAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllValidatorSetRequest) + in := new(QueryValidatorSetAllRequest) if err := dec(in); err != nil { return nil, err } @@ -1765,13 +1803,13 @@ func _Query_ValidatorSetAll_Handler(srv interface{}, ctx context.Context, dec fu FullMethod: "/fairyring.keyshare.Query/ValidatorSetAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).ValidatorSetAll(ctx, req.(*QueryAllValidatorSetRequest)) + return srv.(QueryServer).ValidatorSetAll(ctx, req.(*QueryValidatorSetAllRequest)) } return interceptor(ctx, in, info, handler) } func _Query_KeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetKeyShareRequest) + in := new(QueryKeyShareRequest) if err := dec(in); err != nil { return nil, err } @@ -1783,13 +1821,13 @@ func _Query_KeyShare_Handler(srv interface{}, ctx context.Context, dec func(inte FullMethod: "/fairyring.keyshare.Query/KeyShare", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).KeyShare(ctx, req.(*QueryGetKeyShareRequest)) + return srv.(QueryServer).KeyShare(ctx, req.(*QueryKeyShareRequest)) } return interceptor(ctx, in, info, handler) } func _Query_KeyShareAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllKeyShareRequest) + in := new(QueryKeyShareAllRequest) if err := dec(in); err != nil { return nil, err } @@ -1801,13 +1839,13 @@ func _Query_KeyShareAll_Handler(srv interface{}, ctx context.Context, dec func(i FullMethod: "/fairyring.keyshare.Query/KeyShareAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).KeyShareAll(ctx, req.(*QueryAllKeyShareRequest)) + return srv.(QueryServer).KeyShareAll(ctx, req.(*QueryKeyShareAllRequest)) } return interceptor(ctx, in, info, handler) } func _Query_AggregatedKeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetAggregatedKeyShareRequest) + in := new(QueryAggregatedKeyShareRequest) if err := dec(in); err != nil { return nil, err } @@ -1819,13 +1857,13 @@ func _Query_AggregatedKeyShare_Handler(srv interface{}, ctx context.Context, dec FullMethod: "/fairyring.keyshare.Query/AggregatedKeyShare", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AggregatedKeyShare(ctx, req.(*QueryGetAggregatedKeyShareRequest)) + return srv.(QueryServer).AggregatedKeyShare(ctx, req.(*QueryAggregatedKeyShareRequest)) } return interceptor(ctx, in, info, handler) } func _Query_AggregatedKeyShareAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllAggregatedKeyShareRequest) + in := new(QueryAggregatedKeyShareAllRequest) if err := dec(in); err != nil { return nil, err } @@ -1837,7 +1875,7 @@ func _Query_AggregatedKeyShareAll_Handler(srv interface{}, ctx context.Context, FullMethod: "/fairyring.keyshare.Query/AggregatedKeyShareAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AggregatedKeyShareAll(ctx, req.(*QueryAllAggregatedKeyShareRequest)) + return srv.(QueryServer).AggregatedKeyShareAll(ctx, req.(*QueryAggregatedKeyShareAllRequest)) } return interceptor(ctx, in, info, handler) } @@ -1861,7 +1899,7 @@ func _Query_PubKey_Handler(srv interface{}, ctx context.Context, dec func(interf } func _Query_AuthorizedAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetAuthorizedAddressRequest) + in := new(QueryAuthorizedAddressRequest) if err := dec(in); err != nil { return nil, err } @@ -1873,13 +1911,13 @@ func _Query_AuthorizedAddress_Handler(srv interface{}, ctx context.Context, dec FullMethod: "/fairyring.keyshare.Query/AuthorizedAddress", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AuthorizedAddress(ctx, req.(*QueryGetAuthorizedAddressRequest)) + return srv.(QueryServer).AuthorizedAddress(ctx, req.(*QueryAuthorizedAddressRequest)) } return interceptor(ctx, in, info, handler) } func _Query_AuthorizedAddressAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllAuthorizedAddressRequest) + in := new(QueryAuthorizedAddressAllRequest) if err := dec(in); err != nil { return nil, err } @@ -1891,13 +1929,13 @@ func _Query_AuthorizedAddressAll_Handler(srv interface{}, ctx context.Context, d FullMethod: "/fairyring.keyshare.Query/AuthorizedAddressAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AuthorizedAddressAll(ctx, req.(*QueryAllAuthorizedAddressRequest)) + return srv.(QueryServer).AuthorizedAddressAll(ctx, req.(*QueryAuthorizedAddressAllRequest)) } return interceptor(ctx, in, info, handler) } func _Query_GeneralKeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetGeneralKeyShareRequest) + in := new(QueryGeneralKeyShareRequest) if err := dec(in); err != nil { return nil, err } @@ -1909,13 +1947,13 @@ func _Query_GeneralKeyShare_Handler(srv interface{}, ctx context.Context, dec fu FullMethod: "/fairyring.keyshare.Query/GeneralKeyShare", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GeneralKeyShare(ctx, req.(*QueryGetGeneralKeyShareRequest)) + return srv.(QueryServer).GeneralKeyShare(ctx, req.(*QueryGeneralKeyShareRequest)) } return interceptor(ctx, in, info, handler) } func _Query_GeneralKeyShareAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllGeneralKeyShareRequest) + in := new(QueryGeneralKeyShareAllRequest) if err := dec(in); err != nil { return nil, err } @@ -1927,13 +1965,13 @@ func _Query_GeneralKeyShareAll_Handler(srv interface{}, ctx context.Context, dec FullMethod: "/fairyring.keyshare.Query/GeneralKeyShareAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GeneralKeyShareAll(ctx, req.(*QueryAllGeneralKeyShareRequest)) + return srv.(QueryServer).GeneralKeyShareAll(ctx, req.(*QueryGeneralKeyShareAllRequest)) } return interceptor(ctx, in, info, handler) } func _Query_VerifiableRandomness_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryVerifiableRandomnessQuery) + in := new(QueryVerifiableRandomnessRequest) if err := dec(in); err != nil { return nil, err } @@ -1945,7 +1983,7 @@ func _Query_VerifiableRandomness_Handler(srv interface{}, ctx context.Context, d FullMethod: "/fairyring.keyshare.Query/VerifiableRandomness", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).VerifiableRandomness(ctx, req.(*QueryVerifiableRandomnessQuery)) + return srv.(QueryServer).VerifiableRandomness(ctx, req.(*QueryVerifiableRandomnessRequest)) } return interceptor(ctx, in, info, handler) } @@ -2015,7 +2053,7 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Metadata: "fairyring/keyshare/query.proto", } -func (m *QueryVerifiableRandomnessQuery) Marshal() (dAtA []byte, err error) { +func (m *QueryVerifiableRandomnessRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2025,12 +2063,12 @@ func (m *QueryVerifiableRandomnessQuery) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryVerifiableRandomnessQuery) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryVerifiableRandomnessRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryVerifiableRandomnessQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryVerifiableRandomnessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2199,7 +2237,7 @@ func (m *QueryCommitmentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *QueryGetValidatorSetRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryValidatorSetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2209,12 +2247,12 @@ func (m *QueryGetValidatorSetRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetValidatorSetRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryValidatorSetRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetValidatorSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryValidatorSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2229,7 +2267,7 @@ func (m *QueryGetValidatorSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *QueryGetValidatorSetResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryValidatorSetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2239,12 +2277,12 @@ func (m *QueryGetValidatorSetResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetValidatorSetResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryValidatorSetResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetValidatorSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryValidatorSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2262,7 +2300,7 @@ func (m *QueryGetValidatorSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *QueryAllValidatorSetRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryValidatorSetAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2272,12 +2310,12 @@ func (m *QueryAllValidatorSetRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllValidatorSetRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryValidatorSetAllRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllValidatorSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryValidatorSetAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2297,7 +2335,7 @@ func (m *QueryAllValidatorSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *QueryAllValidatorSetResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryValidatorSetAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2307,12 +2345,12 @@ func (m *QueryAllValidatorSetResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllValidatorSetResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryValidatorSetAllResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllValidatorSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryValidatorSetAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2346,7 +2384,7 @@ func (m *QueryAllValidatorSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *QueryGetKeyShareRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryKeyShareRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2356,12 +2394,12 @@ func (m *QueryGetKeyShareRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetKeyShareRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryKeyShareRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2381,7 +2419,7 @@ func (m *QueryGetKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *QueryGetKeyShareResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryKeyShareResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2391,12 +2429,12 @@ func (m *QueryGetKeyShareResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetKeyShareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryKeyShareResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2414,7 +2452,7 @@ func (m *QueryGetKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *QueryAllKeyShareRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryKeyShareAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2424,12 +2462,12 @@ func (m *QueryAllKeyShareRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllKeyShareRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryKeyShareAllRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryKeyShareAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2449,7 +2487,7 @@ func (m *QueryAllKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *QueryAllKeyShareResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryKeyShareAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2459,12 +2497,12 @@ func (m *QueryAllKeyShareResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllKeyShareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryKeyShareAllResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryKeyShareAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2498,7 +2536,7 @@ func (m *QueryAllKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *QueryGetAggregatedKeyShareRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryAggregatedKeyShareRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2508,12 +2546,12 @@ func (m *QueryGetAggregatedKeyShareRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetAggregatedKeyShareRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAggregatedKeyShareRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetAggregatedKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAggregatedKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2526,7 +2564,7 @@ func (m *QueryGetAggregatedKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *QueryGetAggregatedKeyShareResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryAggregatedKeyShareResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2536,12 +2574,12 @@ func (m *QueryGetAggregatedKeyShareResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryGetAggregatedKeyShareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAggregatedKeyShareResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetAggregatedKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAggregatedKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2559,7 +2597,7 @@ func (m *QueryGetAggregatedKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } -func (m *QueryAllAggregatedKeyShareRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryAggregatedKeyShareAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2569,12 +2607,12 @@ func (m *QueryAllAggregatedKeyShareRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllAggregatedKeyShareRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAggregatedKeyShareAllRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllAggregatedKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAggregatedKeyShareAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2594,7 +2632,7 @@ func (m *QueryAllAggregatedKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *QueryAllAggregatedKeyShareResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryAggregatedKeyShareAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2604,12 +2642,12 @@ func (m *QueryAllAggregatedKeyShareResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryAllAggregatedKeyShareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAggregatedKeyShareAllResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllAggregatedKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAggregatedKeyShareAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2709,7 +2747,7 @@ func (m *QueryPubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryGetAuthorizedAddressRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryAuthorizedAddressRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2719,12 +2757,12 @@ func (m *QueryGetAuthorizedAddressRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetAuthorizedAddressRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAuthorizedAddressRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetAuthorizedAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAuthorizedAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2739,7 +2777,7 @@ func (m *QueryGetAuthorizedAddressRequest) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *QueryGetAuthorizedAddressResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryAuthorizedAddressResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2749,12 +2787,12 @@ func (m *QueryGetAuthorizedAddressResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetAuthorizedAddressResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAuthorizedAddressResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetAuthorizedAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAuthorizedAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2772,7 +2810,7 @@ func (m *QueryGetAuthorizedAddressResponse) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *QueryAllAuthorizedAddressRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryAuthorizedAddressAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2782,12 +2820,12 @@ func (m *QueryAllAuthorizedAddressRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllAuthorizedAddressRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAuthorizedAddressAllRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllAuthorizedAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAuthorizedAddressAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2807,7 +2845,7 @@ func (m *QueryAllAuthorizedAddressRequest) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *QueryAllAuthorizedAddressResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryAuthorizedAddressAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2817,12 +2855,12 @@ func (m *QueryAllAuthorizedAddressResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllAuthorizedAddressResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAuthorizedAddressAllResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllAuthorizedAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAuthorizedAddressAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2856,7 +2894,7 @@ func (m *QueryAllAuthorizedAddressResponse) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *QueryGetGeneralKeyShareRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryGeneralKeyShareRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2866,12 +2904,12 @@ func (m *QueryGetGeneralKeyShareRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetGeneralKeyShareRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryGeneralKeyShareRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetGeneralKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryGeneralKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2900,7 +2938,7 @@ func (m *QueryGetGeneralKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *QueryGetGeneralKeyShareResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryGeneralKeyShareResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2910,12 +2948,12 @@ func (m *QueryGetGeneralKeyShareResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetGeneralKeyShareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryGeneralKeyShareResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetGeneralKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryGeneralKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2933,7 +2971,7 @@ func (m *QueryGetGeneralKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } -func (m *QueryAllGeneralKeyShareRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryGeneralKeyShareAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2943,12 +2981,12 @@ func (m *QueryAllGeneralKeyShareRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllGeneralKeyShareRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryGeneralKeyShareAllRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllGeneralKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryGeneralKeyShareAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2968,7 +3006,7 @@ func (m *QueryAllGeneralKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *QueryAllGeneralKeyShareResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryGeneralKeyShareAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2978,12 +3016,12 @@ func (m *QueryAllGeneralKeyShareResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllGeneralKeyShareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryGeneralKeyShareAllResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllGeneralKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryGeneralKeyShareAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3028,7 +3066,7 @@ func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *QueryVerifiableRandomnessQuery) Size() (n int) { +func (m *QueryVerifiableRandomnessRequest) Size() (n int) { if m == nil { return 0 } @@ -3099,7 +3137,7 @@ func (m *QueryCommitmentsResponse) Size() (n int) { return n } -func (m *QueryGetValidatorSetRequest) Size() (n int) { +func (m *QueryValidatorSetRequest) Size() (n int) { if m == nil { return 0 } @@ -3112,7 +3150,7 @@ func (m *QueryGetValidatorSetRequest) Size() (n int) { return n } -func (m *QueryGetValidatorSetResponse) Size() (n int) { +func (m *QueryValidatorSetResponse) Size() (n int) { if m == nil { return 0 } @@ -3123,7 +3161,7 @@ func (m *QueryGetValidatorSetResponse) Size() (n int) { return n } -func (m *QueryAllValidatorSetRequest) Size() (n int) { +func (m *QueryValidatorSetAllRequest) Size() (n int) { if m == nil { return 0 } @@ -3136,7 +3174,7 @@ func (m *QueryAllValidatorSetRequest) Size() (n int) { return n } -func (m *QueryAllValidatorSetResponse) Size() (n int) { +func (m *QueryValidatorSetAllResponse) Size() (n int) { if m == nil { return 0 } @@ -3155,7 +3193,7 @@ func (m *QueryAllValidatorSetResponse) Size() (n int) { return n } -func (m *QueryGetKeyShareRequest) Size() (n int) { +func (m *QueryKeyShareRequest) Size() (n int) { if m == nil { return 0 } @@ -3171,7 +3209,7 @@ func (m *QueryGetKeyShareRequest) Size() (n int) { return n } -func (m *QueryGetKeyShareResponse) Size() (n int) { +func (m *QueryKeyShareResponse) Size() (n int) { if m == nil { return 0 } @@ -3182,7 +3220,7 @@ func (m *QueryGetKeyShareResponse) Size() (n int) { return n } -func (m *QueryAllKeyShareRequest) Size() (n int) { +func (m *QueryKeyShareAllRequest) Size() (n int) { if m == nil { return 0 } @@ -3195,7 +3233,7 @@ func (m *QueryAllKeyShareRequest) Size() (n int) { return n } -func (m *QueryAllKeyShareResponse) Size() (n int) { +func (m *QueryKeyShareAllResponse) Size() (n int) { if m == nil { return 0 } @@ -3214,7 +3252,7 @@ func (m *QueryAllKeyShareResponse) Size() (n int) { return n } -func (m *QueryGetAggregatedKeyShareRequest) Size() (n int) { +func (m *QueryAggregatedKeyShareRequest) Size() (n int) { if m == nil { return 0 } @@ -3226,7 +3264,7 @@ func (m *QueryGetAggregatedKeyShareRequest) Size() (n int) { return n } -func (m *QueryGetAggregatedKeyShareResponse) Size() (n int) { +func (m *QueryAggregatedKeyShareResponse) Size() (n int) { if m == nil { return 0 } @@ -3237,7 +3275,7 @@ func (m *QueryGetAggregatedKeyShareResponse) Size() (n int) { return n } -func (m *QueryAllAggregatedKeyShareRequest) Size() (n int) { +func (m *QueryAggregatedKeyShareAllRequest) Size() (n int) { if m == nil { return 0 } @@ -3250,7 +3288,7 @@ func (m *QueryAllAggregatedKeyShareRequest) Size() (n int) { return n } -func (m *QueryAllAggregatedKeyShareResponse) Size() (n int) { +func (m *QueryAggregatedKeyShareAllResponse) Size() (n int) { if m == nil { return 0 } @@ -3291,7 +3329,7 @@ func (m *QueryPubKeyResponse) Size() (n int) { return n } -func (m *QueryGetAuthorizedAddressRequest) Size() (n int) { +func (m *QueryAuthorizedAddressRequest) Size() (n int) { if m == nil { return 0 } @@ -3304,7 +3342,7 @@ func (m *QueryGetAuthorizedAddressRequest) Size() (n int) { return n } -func (m *QueryGetAuthorizedAddressResponse) Size() (n int) { +func (m *QueryAuthorizedAddressResponse) Size() (n int) { if m == nil { return 0 } @@ -3315,7 +3353,7 @@ func (m *QueryGetAuthorizedAddressResponse) Size() (n int) { return n } -func (m *QueryAllAuthorizedAddressRequest) Size() (n int) { +func (m *QueryAuthorizedAddressAllRequest) Size() (n int) { if m == nil { return 0 } @@ -3328,7 +3366,7 @@ func (m *QueryAllAuthorizedAddressRequest) Size() (n int) { return n } -func (m *QueryAllAuthorizedAddressResponse) Size() (n int) { +func (m *QueryAuthorizedAddressAllResponse) Size() (n int) { if m == nil { return 0 } @@ -3347,7 +3385,7 @@ func (m *QueryAllAuthorizedAddressResponse) Size() (n int) { return n } -func (m *QueryGetGeneralKeyShareRequest) Size() (n int) { +func (m *QueryGeneralKeyShareRequest) Size() (n int) { if m == nil { return 0 } @@ -3368,7 +3406,7 @@ func (m *QueryGetGeneralKeyShareRequest) Size() (n int) { return n } -func (m *QueryGetGeneralKeyShareResponse) Size() (n int) { +func (m *QueryGeneralKeyShareResponse) Size() (n int) { if m == nil { return 0 } @@ -3379,7 +3417,7 @@ func (m *QueryGetGeneralKeyShareResponse) Size() (n int) { return n } -func (m *QueryAllGeneralKeyShareRequest) Size() (n int) { +func (m *QueryGeneralKeyShareAllRequest) Size() (n int) { if m == nil { return 0 } @@ -3392,7 +3430,7 @@ func (m *QueryAllGeneralKeyShareRequest) Size() (n int) { return n } -func (m *QueryAllGeneralKeyShareResponse) Size() (n int) { +func (m *QueryGeneralKeyShareAllResponse) Size() (n int) { if m == nil { return 0 } @@ -3417,7 +3455,7 @@ func sovQuery(x uint64) (n int) { func sozQuery(x uint64) (n int) { return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *QueryVerifiableRandomnessQuery) Unmarshal(dAtA []byte) error { +func (m *QueryVerifiableRandomnessRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3440,10 +3478,10 @@ func (m *QueryVerifiableRandomnessQuery) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryVerifiableRandomnessQuery: wiretype end group for non-group") + return fmt.Errorf("proto: QueryVerifiableRandomnessRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryVerifiableRandomnessQuery: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryVerifiableRandomnessRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -3873,7 +3911,7 @@ func (m *QueryCommitmentsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetValidatorSetRequest) Unmarshal(dAtA []byte) error { +func (m *QueryValidatorSetRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3896,10 +3934,10 @@ func (m *QueryGetValidatorSetRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetValidatorSetRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryValidatorSetRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetValidatorSetRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryValidatorSetRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3955,7 +3993,7 @@ func (m *QueryGetValidatorSetRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetValidatorSetResponse) Unmarshal(dAtA []byte) error { +func (m *QueryValidatorSetResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3978,10 +4016,10 @@ func (m *QueryGetValidatorSetResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetValidatorSetResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryValidatorSetResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetValidatorSetResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryValidatorSetResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4038,7 +4076,7 @@ func (m *QueryGetValidatorSetResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllValidatorSetRequest) Unmarshal(dAtA []byte) error { +func (m *QueryValidatorSetAllRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4061,10 +4099,10 @@ func (m *QueryAllValidatorSetRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllValidatorSetRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryValidatorSetAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllValidatorSetRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryValidatorSetAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4124,7 +4162,7 @@ func (m *QueryAllValidatorSetRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllValidatorSetResponse) Unmarshal(dAtA []byte) error { +func (m *QueryValidatorSetAllResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4147,10 +4185,10 @@ func (m *QueryAllValidatorSetResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllValidatorSetResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryValidatorSetAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllValidatorSetResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryValidatorSetAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4244,7 +4282,7 @@ func (m *QueryAllValidatorSetResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetKeyShareRequest) Unmarshal(dAtA []byte) error { +func (m *QueryKeyShareRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4267,10 +4305,10 @@ func (m *QueryGetKeyShareRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetKeyShareRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryKeyShareRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4345,7 +4383,7 @@ func (m *QueryGetKeyShareRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetKeyShareResponse) Unmarshal(dAtA []byte) error { +func (m *QueryKeyShareResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4368,10 +4406,10 @@ func (m *QueryGetKeyShareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetKeyShareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryKeyShareResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4428,7 +4466,7 @@ func (m *QueryGetKeyShareResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllKeyShareRequest) Unmarshal(dAtA []byte) error { +func (m *QueryKeyShareAllRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4451,10 +4489,10 @@ func (m *QueryAllKeyShareRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllKeyShareRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryKeyShareAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryKeyShareAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4514,7 +4552,7 @@ func (m *QueryAllKeyShareRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllKeyShareResponse) Unmarshal(dAtA []byte) error { +func (m *QueryKeyShareAllResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4537,10 +4575,10 @@ func (m *QueryAllKeyShareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllKeyShareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryKeyShareAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryKeyShareAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4634,7 +4672,7 @@ func (m *QueryAllKeyShareResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetAggregatedKeyShareRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAggregatedKeyShareRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4657,10 +4695,10 @@ func (m *QueryGetAggregatedKeyShareRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetAggregatedKeyShareRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAggregatedKeyShareRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetAggregatedKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAggregatedKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4703,7 +4741,7 @@ func (m *QueryGetAggregatedKeyShareRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetAggregatedKeyShareResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAggregatedKeyShareResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4726,10 +4764,10 @@ func (m *QueryGetAggregatedKeyShareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetAggregatedKeyShareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAggregatedKeyShareResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetAggregatedKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAggregatedKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4786,7 +4824,7 @@ func (m *QueryGetAggregatedKeyShareResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllAggregatedKeyShareRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAggregatedKeyShareAllRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4809,10 +4847,10 @@ func (m *QueryAllAggregatedKeyShareRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllAggregatedKeyShareRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAggregatedKeyShareAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllAggregatedKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAggregatedKeyShareAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4872,7 +4910,7 @@ func (m *QueryAllAggregatedKeyShareRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllAggregatedKeyShareResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAggregatedKeyShareAllResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4895,10 +4933,10 @@ func (m *QueryAllAggregatedKeyShareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllAggregatedKeyShareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAggregatedKeyShareAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllAggregatedKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAggregatedKeyShareAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5158,7 +5196,7 @@ func (m *QueryPubKeyResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetAuthorizedAddressRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAuthorizedAddressRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5181,10 +5219,10 @@ func (m *QueryGetAuthorizedAddressRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetAuthorizedAddressRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAuthorizedAddressRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetAuthorizedAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAuthorizedAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5240,7 +5278,7 @@ func (m *QueryGetAuthorizedAddressRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetAuthorizedAddressResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAuthorizedAddressResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5263,10 +5301,10 @@ func (m *QueryGetAuthorizedAddressResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetAuthorizedAddressResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAuthorizedAddressResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetAuthorizedAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAuthorizedAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5323,7 +5361,7 @@ func (m *QueryGetAuthorizedAddressResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllAuthorizedAddressRequest) Unmarshal(dAtA []byte) error { +func (m *QueryAuthorizedAddressAllRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5346,10 +5384,10 @@ func (m *QueryAllAuthorizedAddressRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllAuthorizedAddressRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAuthorizedAddressAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllAuthorizedAddressRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAuthorizedAddressAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5409,7 +5447,7 @@ func (m *QueryAllAuthorizedAddressRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllAuthorizedAddressResponse) Unmarshal(dAtA []byte) error { +func (m *QueryAuthorizedAddressAllResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5432,10 +5470,10 @@ func (m *QueryAllAuthorizedAddressResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllAuthorizedAddressResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryAuthorizedAddressAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllAuthorizedAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryAuthorizedAddressAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5529,7 +5567,7 @@ func (m *QueryAllAuthorizedAddressResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetGeneralKeyShareRequest) Unmarshal(dAtA []byte) error { +func (m *QueryGeneralKeyShareRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5552,10 +5590,10 @@ func (m *QueryGetGeneralKeyShareRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetGeneralKeyShareRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGeneralKeyShareRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetGeneralKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGeneralKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5675,7 +5713,7 @@ func (m *QueryGetGeneralKeyShareRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetGeneralKeyShareResponse) Unmarshal(dAtA []byte) error { +func (m *QueryGeneralKeyShareResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5698,10 +5736,10 @@ func (m *QueryGetGeneralKeyShareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetGeneralKeyShareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGeneralKeyShareResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetGeneralKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGeneralKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5758,7 +5796,7 @@ func (m *QueryGetGeneralKeyShareResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllGeneralKeyShareRequest) Unmarshal(dAtA []byte) error { +func (m *QueryGeneralKeyShareAllRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5781,10 +5819,10 @@ func (m *QueryAllGeneralKeyShareRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllGeneralKeyShareRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGeneralKeyShareAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllGeneralKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGeneralKeyShareAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5844,7 +5882,7 @@ func (m *QueryAllGeneralKeyShareRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllGeneralKeyShareResponse) Unmarshal(dAtA []byte) error { +func (m *QueryGeneralKeyShareAllResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5867,10 +5905,10 @@ func (m *QueryAllGeneralKeyShareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllGeneralKeyShareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGeneralKeyShareAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllGeneralKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGeneralKeyShareAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/keyshare/types/query.pb.gw.go b/x/keyshare/types/query.pb.gw.go index e69474ae..1af31000 100644 --- a/x/keyshare/types/query.pb.gw.go +++ b/x/keyshare/types/query.pb.gw.go @@ -70,7 +70,7 @@ func local_request_Query_Commitments_0(ctx context.Context, marshaler runtime.Ma } func request_Query_ValidatorSet_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetValidatorSetRequest + var protoReq QueryValidatorSetRequest var metadata runtime.ServerMetadata var ( @@ -97,7 +97,7 @@ func request_Query_ValidatorSet_0(ctx context.Context, marshaler runtime.Marshal } func local_request_Query_ValidatorSet_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetValidatorSetRequest + var protoReq QueryValidatorSetRequest var metadata runtime.ServerMetadata var ( @@ -128,7 +128,7 @@ var ( ) func request_Query_ValidatorSetAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllValidatorSetRequest + var protoReq QueryValidatorSetAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -144,7 +144,7 @@ func request_Query_ValidatorSetAll_0(ctx context.Context, marshaler runtime.Mars } func local_request_Query_ValidatorSetAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllValidatorSetRequest + var protoReq QueryValidatorSetAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -160,7 +160,7 @@ func local_request_Query_ValidatorSetAll_0(ctx context.Context, marshaler runtim } func request_Query_KeyShare_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetKeyShareRequest + var protoReq QueryKeyShareRequest var metadata runtime.ServerMetadata var ( @@ -181,15 +181,15 @@ func request_Query_KeyShare_0(ctx context.Context, marshaler runtime.Marshaler, return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "validator", err) } - val, ok = pathParams["blockHeight"] + val, ok = pathParams["block_height"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "blockHeight") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "block_height") } protoReq.BlockHeight, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "blockHeight", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "block_height", err) } msg, err := client.KeyShare(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -198,7 +198,7 @@ func request_Query_KeyShare_0(ctx context.Context, marshaler runtime.Marshaler, } func local_request_Query_KeyShare_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetKeyShareRequest + var protoReq QueryKeyShareRequest var metadata runtime.ServerMetadata var ( @@ -219,15 +219,15 @@ func local_request_Query_KeyShare_0(ctx context.Context, marshaler runtime.Marsh return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "validator", err) } - val, ok = pathParams["blockHeight"] + val, ok = pathParams["block_height"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "blockHeight") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "block_height") } protoReq.BlockHeight, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "blockHeight", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "block_height", err) } msg, err := server.KeyShare(ctx, &protoReq) @@ -240,7 +240,7 @@ var ( ) func request_Query_KeyShareAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllKeyShareRequest + var protoReq QueryKeyShareAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -256,7 +256,7 @@ func request_Query_KeyShareAll_0(ctx context.Context, marshaler runtime.Marshale } func local_request_Query_KeyShareAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllKeyShareRequest + var protoReq QueryKeyShareAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -272,7 +272,7 @@ func local_request_Query_KeyShareAll_0(ctx context.Context, marshaler runtime.Ma } func request_Query_AggregatedKeyShare_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetAggregatedKeyShareRequest + var protoReq QueryAggregatedKeyShareRequest var metadata runtime.ServerMetadata var ( @@ -299,7 +299,7 @@ func request_Query_AggregatedKeyShare_0(ctx context.Context, marshaler runtime.M } func local_request_Query_AggregatedKeyShare_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetAggregatedKeyShareRequest + var protoReq QueryAggregatedKeyShareRequest var metadata runtime.ServerMetadata var ( @@ -330,7 +330,7 @@ var ( ) func request_Query_AggregatedKeyShareAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllAggregatedKeyShareRequest + var protoReq QueryAggregatedKeyShareAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -346,7 +346,7 @@ func request_Query_AggregatedKeyShareAll_0(ctx context.Context, marshaler runtim } func local_request_Query_AggregatedKeyShareAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllAggregatedKeyShareRequest + var protoReq QueryAggregatedKeyShareAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -380,7 +380,7 @@ func local_request_Query_PubKey_0(ctx context.Context, marshaler runtime.Marshal } func request_Query_AuthorizedAddress_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetAuthorizedAddressRequest + var protoReq QueryAuthorizedAddressRequest var metadata runtime.ServerMetadata var ( @@ -407,7 +407,7 @@ func request_Query_AuthorizedAddress_0(ctx context.Context, marshaler runtime.Ma } func local_request_Query_AuthorizedAddress_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetAuthorizedAddressRequest + var protoReq QueryAuthorizedAddressRequest var metadata runtime.ServerMetadata var ( @@ -438,7 +438,7 @@ var ( ) func request_Query_AuthorizedAddressAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllAuthorizedAddressRequest + var protoReq QueryAuthorizedAddressAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -454,7 +454,7 @@ func request_Query_AuthorizedAddressAll_0(ctx context.Context, marshaler runtime } func local_request_Query_AuthorizedAddressAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllAuthorizedAddressRequest + var protoReq QueryAuthorizedAddressAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -470,7 +470,7 @@ func local_request_Query_AuthorizedAddressAll_0(ctx context.Context, marshaler r } func request_Query_GeneralKeyShare_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetGeneralKeyShareRequest + var protoReq QueryGeneralKeyShareRequest var metadata runtime.ServerMetadata var ( @@ -491,26 +491,26 @@ func request_Query_GeneralKeyShare_0(ctx context.Context, marshaler runtime.Mars return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "validator", err) } - val, ok = pathParams["idType"] + val, ok = pathParams["id_type"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "idType") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id_type") } protoReq.IdType, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "idType", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id_type", err) } - val, ok = pathParams["idValue"] + val, ok = pathParams["id_value"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "idValue") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id_value") } protoReq.IdValue, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "idValue", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id_value", err) } msg, err := client.GeneralKeyShare(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -519,7 +519,7 @@ func request_Query_GeneralKeyShare_0(ctx context.Context, marshaler runtime.Mars } func local_request_Query_GeneralKeyShare_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetGeneralKeyShareRequest + var protoReq QueryGeneralKeyShareRequest var metadata runtime.ServerMetadata var ( @@ -540,26 +540,26 @@ func local_request_Query_GeneralKeyShare_0(ctx context.Context, marshaler runtim return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "validator", err) } - val, ok = pathParams["idType"] + val, ok = pathParams["id_type"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "idType") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id_type") } protoReq.IdType, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "idType", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id_type", err) } - val, ok = pathParams["idValue"] + val, ok = pathParams["id_value"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "idValue") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id_value") } protoReq.IdValue, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "idValue", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id_value", err) } msg, err := server.GeneralKeyShare(ctx, &protoReq) @@ -572,7 +572,7 @@ var ( ) func request_Query_GeneralKeyShareAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllGeneralKeyShareRequest + var protoReq QueryGeneralKeyShareAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -588,7 +588,7 @@ func request_Query_GeneralKeyShareAll_0(ctx context.Context, marshaler runtime.M } func local_request_Query_GeneralKeyShareAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllGeneralKeyShareRequest + var protoReq QueryGeneralKeyShareAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -604,7 +604,7 @@ func local_request_Query_GeneralKeyShareAll_0(ctx context.Context, marshaler run } func request_Query_VerifiableRandomness_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryVerifiableRandomnessQuery + var protoReq QueryVerifiableRandomnessRequest var metadata runtime.ServerMetadata msg, err := client.VerifiableRandomness(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -613,7 +613,7 @@ func request_Query_VerifiableRandomness_0(ctx context.Context, marshaler runtime } func local_request_Query_VerifiableRandomness_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryVerifiableRandomnessQuery + var protoReq QueryVerifiableRandomnessRequest var metadata runtime.ServerMetadata msg, err := server.VerifiableRandomness(ctx, &protoReq) @@ -1282,7 +1282,7 @@ var ( pattern_Query_ValidatorSetAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "keyshare", "validator_set"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_KeyShare_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"fairyring", "keyshare", "key_share", "validator", "blockHeight"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_KeyShare_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"fairyring", "keyshare", "key_share", "validator", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_KeyShareAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "keyshare", "key_share"}, "", runtime.AssumeColonVerbOpt(false))) @@ -1296,7 +1296,7 @@ var ( pattern_Query_AuthorizedAddressAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "keyshare", "authorized_address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GeneralKeyShare_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"fairyring", "keyshare", "general_key_share", "validator", "idType", "idValue"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GeneralKeyShare_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"fairyring", "keyshare", "general_key_share", "validator", "id_type", "id_value"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_GeneralKeyShareAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "keyshare", "general_key_share"}, "", runtime.AssumeColonVerbOpt(false))) diff --git a/x/keyshare/types/requested_keyshare.pb.go b/x/keyshare/types/requested_keyshare.pb.go index 7c870f13..86d68b8f 100644 --- a/x/keyshare/types/requested_keyshare.pb.go +++ b/x/keyshare/types/requested_keyshare.pb.go @@ -23,6 +23,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// KeyShareRequest defines the storage structure for general keyshare requests type KeyShareRequest struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` @@ -123,11 +124,13 @@ func (m *KeyShareRequest) GetSent() bool { return false } +// IBCInfo defines the structure to verify request for +// aggregated and encrypted keyshares in case the request was made over IBC type IBCInfo struct { - ClientID string `protobuf:"bytes,1,opt,name=ClientID,proto3" json:"ClientID,omitempty"` - ConnectionID string `protobuf:"bytes,2,opt,name=ConnectionID,proto3" json:"ConnectionID,omitempty"` - ChannelID string `protobuf:"bytes,3,opt,name=ChannelID,proto3" json:"ChannelID,omitempty"` - PortID string `protobuf:"bytes,4,opt,name=PortID,proto3" json:"PortID,omitempty"` + ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` + ChannelId string `protobuf:"bytes,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + PortId string `protobuf:"bytes,4,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` } func (m *IBCInfo) Reset() { *m = IBCInfo{} } @@ -163,39 +166,41 @@ func (m *IBCInfo) XXX_DiscardUnknown() { var xxx_messageInfo_IBCInfo proto.InternalMessageInfo -func (m *IBCInfo) GetClientID() string { +func (m *IBCInfo) GetClientId() string { if m != nil { - return m.ClientID + return m.ClientId } return "" } -func (m *IBCInfo) GetConnectionID() string { +func (m *IBCInfo) GetConnectionId() string { if m != nil { - return m.ConnectionID + return m.ConnectionId } return "" } -func (m *IBCInfo) GetChannelID() string { +func (m *IBCInfo) GetChannelId() string { if m != nil { - return m.ChannelID + return m.ChannelId } return "" } -func (m *IBCInfo) GetPortID() string { +func (m *IBCInfo) GetPortId() string { if m != nil { - return m.PortID + return m.PortId } return "" } +// CounterPartyIBCInfo defines the structure to send aggregated +// and encrypted keyshares if the request was made over IBC type CounterPartyIBCInfo struct { - ClientID string `protobuf:"bytes,1,opt,name=ClientID,proto3" json:"ClientID,omitempty"` - ConnectionID string `protobuf:"bytes,2,opt,name=ConnectionID,proto3" json:"ConnectionID,omitempty"` - ChannelID string `protobuf:"bytes,3,opt,name=ChannelID,proto3" json:"ChannelID,omitempty"` - PortID string `protobuf:"bytes,4,opt,name=PortID,proto3" json:"PortID,omitempty"` + ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` + ChannelId string `protobuf:"bytes,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` + PortId string `protobuf:"bytes,4,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` } func (m *CounterPartyIBCInfo) Reset() { *m = CounterPartyIBCInfo{} } @@ -231,34 +236,36 @@ func (m *CounterPartyIBCInfo) XXX_DiscardUnknown() { var xxx_messageInfo_CounterPartyIBCInfo proto.InternalMessageInfo -func (m *CounterPartyIBCInfo) GetClientID() string { +func (m *CounterPartyIBCInfo) GetClientId() string { if m != nil { - return m.ClientID + return m.ClientId } return "" } -func (m *CounterPartyIBCInfo) GetConnectionID() string { +func (m *CounterPartyIBCInfo) GetConnectionId() string { if m != nil { - return m.ConnectionID + return m.ConnectionId } return "" } -func (m *CounterPartyIBCInfo) GetChannelID() string { +func (m *CounterPartyIBCInfo) GetChannelId() string { if m != nil { - return m.ChannelID + return m.ChannelId } return "" } -func (m *CounterPartyIBCInfo) GetPortID() string { +func (m *CounterPartyIBCInfo) GetPortId() string { if m != nil { - return m.PortID + return m.PortId } return "" } +// PrivateKeyshareRequest defines the stroage structure for private +// encrypted and unaggregated keyshare requests type PrivateKeyshareRequest struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` @@ -363,37 +370,37 @@ func init() { } var fileDescriptor_e8ed024b19ae59bd = []byte{ - // 477 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x94, 0xcb, 0x8a, 0x13, 0x41, - 0x14, 0x86, 0xd3, 0x99, 0x4c, 0x2e, 0x27, 0x11, 0xa1, 0x06, 0x86, 0x66, 0xd4, 0x36, 0x24, 0x0b, - 0x03, 0x42, 0x37, 0x8c, 0xe0, 0x03, 0x4c, 0x47, 0xa1, 0xc9, 0x26, 0xb4, 0xae, 0xdc, 0x84, 0xbe, - 0x9c, 0x24, 0x45, 0x32, 0x55, 0x6d, 0x75, 0x45, 0xec, 0x95, 0x0f, 0xe0, 0xc6, 0x77, 0x72, 0xe3, - 0x72, 0x96, 0xe2, 0x4a, 0x92, 0x17, 0x91, 0xaa, 0xbe, 0xcd, 0x8c, 0x71, 0x2d, 0xb3, 0xab, 0xf3, - 0x9f, 0x0b, 0x3f, 0x1f, 0xa7, 0x0e, 0xbc, 0x5c, 0x06, 0x54, 0x64, 0x82, 0xb2, 0x95, 0xb3, 0xc1, - 0x2c, 0x5d, 0x07, 0x02, 0x1d, 0x81, 0x1f, 0x77, 0x98, 0x4a, 0x8c, 0x17, 0xa5, 0x64, 0x27, 0x82, - 0x4b, 0x4e, 0x48, 0x55, 0x6c, 0x97, 0x99, 0x8b, 0x71, 0x3d, 0x20, 0xe2, 0xd7, 0xd7, 0x9c, 0x39, - 0x5a, 0x8f, 0x17, 0x32, 0x4b, 0x30, 0xcd, 0x1b, 0x47, 0xdf, 0x9b, 0xf0, 0x78, 0x86, 0xd9, 0x3b, - 0x95, 0xf1, 0xf3, 0xe9, 0xe4, 0x02, 0xba, 0x34, 0x46, 0x26, 0xa9, 0xcc, 0x4c, 0x63, 0x68, 0x4c, - 0x7a, 0x7e, 0x15, 0x93, 0x73, 0x68, 0x27, 0xbb, 0x70, 0x83, 0x99, 0xd9, 0xd4, 0x99, 0x22, 0x22, - 0xaf, 0xa1, 0x4b, 0xc3, 0x68, 0x41, 0xd9, 0x92, 0x9b, 0x27, 0x43, 0x63, 0xd2, 0xbf, 0x7c, 0x62, - 0xff, 0xed, 0xc9, 0xf6, 0xae, 0x5c, 0x8f, 0x2d, 0xb9, 0xdf, 0xa1, 0x61, 0xa4, 0x1e, 0x64, 0x06, - 0x83, 0x88, 0xef, 0x98, 0x44, 0x91, 0x04, 0x42, 0x66, 0x66, 0x4b, 0xf7, 0xbe, 0x38, 0xd6, 0xeb, - 0xe6, 0x75, 0x73, 0x55, 0x57, 0xce, 0xb9, 0xd3, 0x4c, 0xc6, 0xf0, 0x28, 0x58, 0xad, 0x44, 0x05, - 0xc7, 0x3c, 0xd5, 0x1e, 0x07, 0x4a, 0x9c, 0x15, 0x1a, 0x79, 0x0e, 0xfd, 0x44, 0xf0, 0x84, 0xa7, - 0xc1, 0x76, 0x41, 0x63, 0xb3, 0xad, 0x4b, 0xa0, 0x94, 0xbc, 0x98, 0x3c, 0x03, 0x28, 0x38, 0xab, - 0x7c, 0x47, 0xe7, 0x7b, 0x85, 0xe2, 0xc5, 0x84, 0x40, 0x2b, 0x45, 0x26, 0xcd, 0xee, 0xd0, 0x98, - 0x74, 0x7d, 0xfd, 0x1e, 0x7d, 0x81, 0x4e, 0xe1, 0x48, 0xc1, 0x73, 0xb7, 0x14, 0x99, 0xf4, 0xa6, - 0x25, 0xbc, 0x32, 0x26, 0x23, 0x18, 0xb8, 0x9c, 0x31, 0x8c, 0x24, 0xe5, 0xcc, 0x9b, 0x16, 0x08, - 0xef, 0x68, 0xe4, 0x29, 0xf4, 0xdc, 0x75, 0xc0, 0x18, 0x6e, 0xbd, 0xa9, 0x26, 0xd9, 0xf3, 0x6b, - 0x41, 0xe1, 0x9f, 0x73, 0xa1, 0x66, 0xb7, 0x72, 0xfc, 0x79, 0x34, 0xfa, 0x6a, 0xc0, 0xd9, 0x11, - 0x3e, 0xff, 0xc9, 0xcd, 0xaf, 0x26, 0x9c, 0xcf, 0x05, 0xfd, 0x14, 0x48, 0x2c, 0xb1, 0x3f, 0xf8, - 0xdd, 0x7a, 0x0f, 0x67, 0xc8, 0x22, 0x91, 0x25, 0xb7, 0x7f, 0x5f, 0x6a, 0x9e, 0x0e, 0x4f, 0x26, - 0xfd, 0xcb, 0xf1, 0xad, 0x99, 0xf9, 0x5f, 0xb3, 0xdf, 0x94, 0xc5, 0x15, 0x01, 0x82, 0xf7, 0xa5, - 0xf4, 0xde, 0xae, 0xb5, 0xff, 0xb5, 0x6b, 0x9d, 0x7a, 0xd7, 0xae, 0xbc, 0x1f, 0x7b, 0xcb, 0xb8, - 0xd9, 0x5b, 0xc6, 0xef, 0xbd, 0x65, 0x7c, 0x3b, 0x58, 0x8d, 0x9b, 0x83, 0xd5, 0xf8, 0x79, 0xb0, - 0x1a, 0x1f, 0x9c, 0x15, 0x95, 0xeb, 0x5d, 0xa8, 0x1c, 0x38, 0x6f, 0x03, 0x2a, 0xc2, 0x2d, 0x8f, - 0x36, 0x4e, 0x7d, 0x05, 0x3e, 0xd7, 0x87, 0x44, 0x9f, 0x80, 0xb0, 0xad, 0x6f, 0xc0, 0xab, 0x3f, - 0x01, 0x00, 0x00, 0xff, 0xff, 0xb3, 0x16, 0xed, 0xc7, 0x6b, 0x04, 0x00, 0x00, + // 480 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x54, 0x41, 0x8b, 0xd3, 0x40, + 0x14, 0xee, 0xb4, 0xdd, 0xa6, 0x7d, 0xad, 0x08, 0xb3, 0xb0, 0x86, 0x5d, 0x8c, 0xa5, 0x3d, 0x58, + 0x10, 0x12, 0x58, 0xc1, 0x1f, 0xb0, 0x8b, 0x42, 0xe8, 0x65, 0xa9, 0x9e, 0xbc, 0x94, 0x64, 0xe6, + 0xb5, 0x1d, 0xda, 0x9d, 0x89, 0x93, 0xa9, 0x98, 0xb3, 0x3f, 0x40, 0xff, 0x93, 0x17, 0x8f, 0x7b, + 0x14, 0x4f, 0xd2, 0xfe, 0x11, 0xc9, 0x24, 0x69, 0xd6, 0x75, 0x3d, 0xcb, 0xde, 0x66, 0xbe, 0xf7, + 0xbd, 0x8f, 0x8f, 0x6f, 0xde, 0x3c, 0x78, 0xb1, 0x88, 0x84, 0xce, 0xb4, 0x90, 0xcb, 0x60, 0x8d, + 0x59, 0xba, 0x8a, 0x34, 0x06, 0x1a, 0x3f, 0x6c, 0x31, 0x35, 0xc8, 0xe7, 0x15, 0xe4, 0x27, 0x5a, + 0x19, 0x45, 0xe9, 0x81, 0xec, 0x57, 0x95, 0xd3, 0x71, 0x2d, 0xc0, 0xd4, 0xf5, 0xb5, 0x92, 0x81, + 0xc5, 0xf9, 0xdc, 0x64, 0x09, 0xa6, 0x45, 0xe3, 0xe8, 0x5b, 0x13, 0x1e, 0x4f, 0x31, 0x7b, 0x9b, + 0x57, 0x66, 0x85, 0x3a, 0x3d, 0x85, 0xae, 0xe0, 0x28, 0x8d, 0x30, 0x99, 0x4b, 0x86, 0x64, 0xd2, + 0x9b, 0x1d, 0xee, 0xf4, 0x04, 0x3a, 0xc9, 0x36, 0x5e, 0x63, 0xe6, 0x36, 0x6d, 0xa5, 0xbc, 0xd1, + 0x57, 0xd0, 0x15, 0x31, 0x9b, 0x0b, 0xb9, 0x50, 0x6e, 0x6b, 0x48, 0x26, 0xfd, 0xf3, 0x33, 0xff, + 0x6f, 0x4f, 0x7e, 0x78, 0x71, 0x19, 0xca, 0x85, 0x9a, 0x39, 0x22, 0x66, 0xf9, 0x81, 0x4e, 0x61, + 0xc0, 0xd4, 0x56, 0x1a, 0xd4, 0x49, 0xa4, 0x4d, 0xe6, 0xb6, 0x6d, 0xef, 0xf3, 0xfb, 0x7a, 0x2f, + 0x0b, 0xde, 0x55, 0xce, 0xab, 0x74, 0xfe, 0x68, 0xa6, 0x63, 0x78, 0x14, 0x2d, 0x97, 0xfa, 0x10, + 0x8e, 0x7b, 0x64, 0x3d, 0x0e, 0x72, 0x70, 0x5a, 0x62, 0xf4, 0x19, 0xf4, 0x13, 0xad, 0x12, 0x95, + 0x46, 0x9b, 0xb9, 0xe0, 0x6e, 0xc7, 0x52, 0xa0, 0x82, 0x42, 0x4e, 0x9f, 0x02, 0x94, 0x39, 0xe7, + 0x75, 0xc7, 0xd6, 0x7b, 0x25, 0x12, 0x72, 0x4a, 0xa1, 0x9d, 0xa2, 0x34, 0x6e, 0x77, 0x48, 0x26, + 0xdd, 0x99, 0x3d, 0x8f, 0x3e, 0x13, 0x70, 0x4a, 0x4b, 0xf4, 0x0c, 0x7a, 0x6c, 0x23, 0x50, 0xda, + 0xee, 0x32, 0xbe, 0x02, 0x08, 0x79, 0xee, 0x90, 0x29, 0x29, 0x91, 0x19, 0xa1, 0x64, 0x4e, 0x28, + 0x52, 0x1c, 0xd4, 0x60, 0x61, 0x80, 0xad, 0x22, 0x29, 0xd1, 0x1a, 0x6c, 0x15, 0x06, 0x4a, 0x24, + 0xe4, 0xf4, 0x09, 0x38, 0x89, 0xd2, 0x56, 0xbe, 0x5d, 0xbe, 0x81, 0xd2, 0x26, 0xe4, 0xa3, 0x2f, + 0x04, 0x8e, 0xef, 0x09, 0xe9, 0x3f, 0x3a, 0xfa, 0xd9, 0x84, 0x93, 0x2b, 0x2d, 0x3e, 0x46, 0x06, + 0xab, 0xfc, 0x1f, 0xfc, 0x90, 0xbd, 0x83, 0x63, 0x94, 0x4c, 0x67, 0xc9, 0xed, 0x6f, 0x98, 0xba, + 0x47, 0xc3, 0xd6, 0xa4, 0x7f, 0x3e, 0xbe, 0xa5, 0x59, 0x7c, 0x3a, 0xff, 0x75, 0x45, 0x3e, 0x24, + 0x40, 0xf1, 0x2e, 0x94, 0xde, 0x19, 0xba, 0xce, 0xbf, 0x86, 0xce, 0xa9, 0x87, 0xee, 0x22, 0xfc, + 0xbe, 0xf3, 0xc8, 0xcd, 0xce, 0x23, 0xbf, 0x76, 0x1e, 0xf9, 0xba, 0xf7, 0x1a, 0x37, 0x7b, 0xaf, + 0xf1, 0x63, 0xef, 0x35, 0xde, 0x07, 0x4b, 0x61, 0x56, 0xdb, 0x38, 0x77, 0x10, 0xbc, 0x89, 0x84, + 0x8e, 0x37, 0x8a, 0xad, 0x83, 0x7a, 0x1d, 0x7c, 0xaa, 0x37, 0x8a, 0xdd, 0x05, 0x71, 0xc7, 0x2e, + 0x83, 0x97, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xf5, 0xfd, 0xd4, 0x29, 0x74, 0x04, 0x00, 0x00, } func (m *KeyShareRequest) Marshal() (dAtA []byte, err error) { @@ -508,31 +515,31 @@ func (m *IBCInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.PortID) > 0 { - i -= len(m.PortID) - copy(dAtA[i:], m.PortID) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.PortID))) + if len(m.PortId) > 0 { + i -= len(m.PortId) + copy(dAtA[i:], m.PortId) + i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.PortId))) i-- dAtA[i] = 0x22 } - if len(m.ChannelID) > 0 { - i -= len(m.ChannelID) - copy(dAtA[i:], m.ChannelID) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ChannelID))) + if len(m.ChannelId) > 0 { + i -= len(m.ChannelId) + copy(dAtA[i:], m.ChannelId) + i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ChannelId))) i-- dAtA[i] = 0x1a } - if len(m.ConnectionID) > 0 { - i -= len(m.ConnectionID) - copy(dAtA[i:], m.ConnectionID) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ConnectionID))) + if len(m.ConnectionId) > 0 { + i -= len(m.ConnectionId) + copy(dAtA[i:], m.ConnectionId) + i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ConnectionId))) i-- dAtA[i] = 0x12 } - if len(m.ClientID) > 0 { - i -= len(m.ClientID) - copy(dAtA[i:], m.ClientID) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ClientID))) + if len(m.ClientId) > 0 { + i -= len(m.ClientId) + copy(dAtA[i:], m.ClientId) + i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ClientId))) i-- dAtA[i] = 0xa } @@ -559,31 +566,31 @@ func (m *CounterPartyIBCInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.PortID) > 0 { - i -= len(m.PortID) - copy(dAtA[i:], m.PortID) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.PortID))) + if len(m.PortId) > 0 { + i -= len(m.PortId) + copy(dAtA[i:], m.PortId) + i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.PortId))) i-- dAtA[i] = 0x22 } - if len(m.ChannelID) > 0 { - i -= len(m.ChannelID) - copy(dAtA[i:], m.ChannelID) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ChannelID))) + if len(m.ChannelId) > 0 { + i -= len(m.ChannelId) + copy(dAtA[i:], m.ChannelId) + i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ChannelId))) i-- dAtA[i] = 0x1a } - if len(m.ConnectionID) > 0 { - i -= len(m.ConnectionID) - copy(dAtA[i:], m.ConnectionID) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ConnectionID))) + if len(m.ConnectionId) > 0 { + i -= len(m.ConnectionId) + copy(dAtA[i:], m.ConnectionId) + i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ConnectionId))) i-- dAtA[i] = 0x12 } - if len(m.ClientID) > 0 { - i -= len(m.ClientID) - copy(dAtA[i:], m.ClientID) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ClientID))) + if len(m.ClientId) > 0 { + i -= len(m.ClientId) + copy(dAtA[i:], m.ClientId) + i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ClientId))) i-- dAtA[i] = 0xa } @@ -739,19 +746,19 @@ func (m *IBCInfo) Size() (n int) { } var l int _ = l - l = len(m.ClientID) + l = len(m.ClientId) if l > 0 { n += 1 + l + sovRequestedKeyshare(uint64(l)) } - l = len(m.ConnectionID) + l = len(m.ConnectionId) if l > 0 { n += 1 + l + sovRequestedKeyshare(uint64(l)) } - l = len(m.ChannelID) + l = len(m.ChannelId) if l > 0 { n += 1 + l + sovRequestedKeyshare(uint64(l)) } - l = len(m.PortID) + l = len(m.PortId) if l > 0 { n += 1 + l + sovRequestedKeyshare(uint64(l)) } @@ -764,19 +771,19 @@ func (m *CounterPartyIBCInfo) Size() (n int) { } var l int _ = l - l = len(m.ClientID) + l = len(m.ClientId) if l > 0 { n += 1 + l + sovRequestedKeyshare(uint64(l)) } - l = len(m.ConnectionID) + l = len(m.ConnectionId) if l > 0 { n += 1 + l + sovRequestedKeyshare(uint64(l)) } - l = len(m.ChannelID) + l = len(m.ChannelId) if l > 0 { n += 1 + l + sovRequestedKeyshare(uint64(l)) } - l = len(m.PortID) + l = len(m.PortId) if l > 0 { n += 1 + l + sovRequestedKeyshare(uint64(l)) } @@ -1160,7 +1167,7 @@ func (m *IBCInfo) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClientId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1188,11 +1195,11 @@ func (m *IBCInfo) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClientID = string(dAtA[iNdEx:postIndex]) + m.ClientId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConnectionID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ConnectionId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1220,11 +1227,11 @@ func (m *IBCInfo) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ConnectionID = string(dAtA[iNdEx:postIndex]) + m.ConnectionId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1252,11 +1259,11 @@ func (m *IBCInfo) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ChannelID = string(dAtA[iNdEx:postIndex]) + m.ChannelId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PortID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1284,7 +1291,7 @@ func (m *IBCInfo) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PortID = string(dAtA[iNdEx:postIndex]) + m.PortId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -1338,7 +1345,7 @@ func (m *CounterPartyIBCInfo) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClientID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ClientId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1366,11 +1373,11 @@ func (m *CounterPartyIBCInfo) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ClientID = string(dAtA[iNdEx:postIndex]) + m.ClientId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConnectionID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ConnectionId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1398,11 +1405,11 @@ func (m *CounterPartyIBCInfo) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ConnectionID = string(dAtA[iNdEx:postIndex]) + m.ConnectionId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannelID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1430,11 +1437,11 @@ func (m *CounterPartyIBCInfo) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ChannelID = string(dAtA[iNdEx:postIndex]) + m.ChannelId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PortID", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1462,7 +1469,7 @@ func (m *CounterPartyIBCInfo) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PortID = string(dAtA[iNdEx:postIndex]) + m.PortId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/keyshare/types/tx.pb.go b/x/keyshare/types/tx.pb.go index 9decfe73..15a17966 100644 --- a/x/keyshare/types/tx.pb.go +++ b/x/keyshare/types/tx.pb.go @@ -86,8 +86,7 @@ func (m *MsgUpdateParams) GetParams() Params { return Params{} } -// MsgUpdateParamsResponse defines the response structure for executing a -// MsgUpdateParams message. +// MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message. type MsgUpdateParamsResponse struct { } @@ -124,6 +123,7 @@ func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo +// MsgRegisterValidator is the Msg/RegisterValidator request type. type MsgRegisterValidator struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` } @@ -168,6 +168,8 @@ func (m *MsgRegisterValidator) GetCreator() string { return "" } +// MsgRegisterValidatorResponse defines the response structure for +// executing a MsgRegisterValidator message. type MsgRegisterValidatorResponse struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` } @@ -212,6 +214,7 @@ func (m *MsgRegisterValidatorResponse) GetCreator() string { return "" } +// MsgDeRegisterValidator is the Msg/DeRegisterValidator request type. type MsgDeRegisterValidator struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` } @@ -256,6 +259,8 @@ func (m *MsgDeRegisterValidator) GetCreator() string { return "" } +// MsgDeRegisterValidatorResponse defines the response structure for +// executing a MsgDeRegisterValidator message. type MsgDeRegisterValidatorResponse struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` } @@ -300,11 +305,12 @@ func (m *MsgDeRegisterValidatorResponse) GetCreator() string { return "" } +// MsgSendKeyshare is the Msg/SendKeyshare request type. type MsgSendKeyshare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,3,opt,name=keyShareIndex,proto3" json:"keyShareIndex,omitempty"` - BlockHeight uint64 `protobuf:"varint,4,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"` + KeyShareIndex uint64 `protobuf:"varint,3,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + BlockHeight uint64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } func (m *MsgSendKeyshare) Reset() { *m = MsgSendKeyshare{} } @@ -368,14 +374,16 @@ func (m *MsgSendKeyshare) GetBlockHeight() uint64 { return 0 } +// MsgSendKeyshareResponse defines the response structure for +// executing a MsgSendKeyshare message. type MsgSendKeyshareResponse struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Keyshare string `protobuf:"bytes,2,opt,name=keyshare,proto3" json:"keyshare,omitempty"` - KeyshareIndex uint64 `protobuf:"varint,3,opt,name=keyshareIndex,proto3" json:"keyshareIndex,omitempty"` - BlockHeight uint64 `protobuf:"varint,4,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"` - ReceivedBlockHeight uint64 `protobuf:"varint,5,opt,name=receivedBlockHeight,proto3" json:"receivedBlockHeight,omitempty"` + KeyshareIndex uint64 `protobuf:"varint,3,opt,name=keyshare_index,json=keyshareIndex,proto3" json:"keyshare_index,omitempty"` + BlockHeight uint64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + ReceivedBlockHeight uint64 `protobuf:"varint,5,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` Success bool `protobuf:"varint,6,opt,name=success,proto3" json:"success,omitempty"` - ErrorMessage string `protobuf:"bytes,7,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"` + ErrorMessage string `protobuf:"bytes,7,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` } func (m *MsgSendKeyshareResponse) Reset() { *m = MsgSendKeyshareResponse{} } @@ -460,13 +468,13 @@ func (m *MsgSendKeyshareResponse) GetErrorMessage() string { return "" } -// this line is used by starport scaffolding # proto/tx/message +// MsgCreateLatestPubKey is the Msg/CreateLatestPubKey request type. type MsgCreateLatestPubKey struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - PublicKey string `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"` + PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Commitments []string `protobuf:"bytes,3,rep,name=commitments,proto3" json:"commitments,omitempty"` - NumberOfValidators uint64 `protobuf:"varint,4,opt,name=numberOfValidators,proto3" json:"numberOfValidators,omitempty"` - EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encryptedKeyShares,proto3" json:"encryptedKeyShares,omitempty"` + NumberOfValidators uint64 `protobuf:"varint,4,opt,name=number_of_validators,json=numberOfValidators,proto3" json:"number_of_validators,omitempty"` + EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encrypted_key_shares,json=encryptedKeyShares,proto3" json:"encrypted_key_shares,omitempty"` } func (m *MsgCreateLatestPubKey) Reset() { *m = MsgCreateLatestPubKey{} } @@ -537,6 +545,8 @@ func (m *MsgCreateLatestPubKey) GetEncryptedKeyShares() []*EncryptedKeyShare { return nil } +// MsgCreateLatestPubKeyResponse defines the response structure for +// executing a MsgCreateLatestPubKey message. type MsgCreateLatestPubKeyResponse struct { } @@ -573,12 +583,13 @@ func (m *MsgCreateLatestPubKeyResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgCreateLatestPubKeyResponse proto.InternalMessageInfo +// MsgOverrideLatestPubKey is the Msg/OverrideLatestPubKey request type. type MsgOverrideLatestPubKey struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - PublicKey string `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"` + PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Commitments []string `protobuf:"bytes,3,rep,name=commitments,proto3" json:"commitments,omitempty"` - NumberOfValidators uint64 `protobuf:"varint,4,opt,name=numberOfValidators,proto3" json:"numberOfValidators,omitempty"` - EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encryptedKeyShares,proto3" json:"encryptedKeyShares,omitempty"` + NumberOfValidators uint64 `protobuf:"varint,4,opt,name=number_of_validators,json=numberOfValidators,proto3" json:"number_of_validators,omitempty"` + EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encrypted_key_shares,json=encryptedKeyShares,proto3" json:"encrypted_key_shares,omitempty"` } func (m *MsgOverrideLatestPubKey) Reset() { *m = MsgOverrideLatestPubKey{} } @@ -649,6 +660,8 @@ func (m *MsgOverrideLatestPubKey) GetEncryptedKeyShares() []*EncryptedKeyShare { return nil } +// MsgOverrideLatestPubKeyResponse defines the response structure for +// executing a MsgOverrideLatestPubKey message. type MsgOverrideLatestPubKeyResponse struct { } @@ -685,6 +698,7 @@ func (m *MsgOverrideLatestPubKeyResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgOverrideLatestPubKeyResponse proto.InternalMessageInfo +// MsgCreateAuthorizedAddress is the Msg/CreateAuthorizedAddress request type. type MsgCreateAuthorizedAddress struct { Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` @@ -737,6 +751,8 @@ func (m *MsgCreateAuthorizedAddress) GetCreator() string { return "" } +// MsgCreateAuthorizedAddressResponse defines the response structure for +// executing a MsgCreateAuthorizedAddress message. type MsgCreateAuthorizedAddressResponse struct { } @@ -773,9 +789,10 @@ func (m *MsgCreateAuthorizedAddressResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgCreateAuthorizedAddressResponse proto.InternalMessageInfo +// MsgUpdateAuthorizedAddress is the Msg/UpdateAuthorizedAddress request type. type MsgUpdateAuthorizedAddress struct { Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` - IsAuthorized bool `protobuf:"varint,2,opt,name=isAuthorized,proto3" json:"isAuthorized,omitempty"` + IsAuthorized bool `protobuf:"varint,2,opt,name=is_authorized,json=isAuthorized,proto3" json:"is_authorized,omitempty"` Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"` } @@ -833,6 +850,8 @@ func (m *MsgUpdateAuthorizedAddress) GetCreator() string { return "" } +// MsgUpdateAuthorizedAddressResponse defines the response structure for +// executing a MsgUpdateAuthorizedAddress message. type MsgUpdateAuthorizedAddressResponse struct { } @@ -869,6 +888,7 @@ func (m *MsgUpdateAuthorizedAddressResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateAuthorizedAddressResponse proto.InternalMessageInfo +// MsgDeleteAuthorizedAddress is the Msg/DeleteAuthorizedAddress request type. type MsgDeleteAuthorizedAddress struct { Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` @@ -921,6 +941,8 @@ func (m *MsgDeleteAuthorizedAddress) GetCreator() string { return "" } +// MsgDeleteAuthorizedAddressResponse defines the response structure for +// executing a MsgDeleteAuthorizedAddress message. type MsgDeleteAuthorizedAddressResponse struct { } @@ -957,14 +979,15 @@ func (m *MsgDeleteAuthorizedAddressResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgDeleteAuthorizedAddressResponse proto.InternalMessageInfo +// MsgCreateGeneralKeyShare is the Msg/CreateGeneralKeyShare request type. type MsgCreateGeneralKeyShare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - IdType string `protobuf:"bytes,2,opt,name=idType,proto3" json:"idType,omitempty"` - IdValue string `protobuf:"bytes,3,opt,name=idValue,proto3" json:"idValue,omitempty"` - KeyShare string `protobuf:"bytes,4,opt,name=keyShare,proto3" json:"keyShare,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,5,opt,name=keyShareIndex,proto3" json:"keyShareIndex,omitempty"` - ReceivedTimestamp uint64 `protobuf:"varint,6,opt,name=receivedTimestamp,proto3" json:"receivedTimestamp,omitempty"` - ReceivedBlockHeight uint64 `protobuf:"varint,7,opt,name=receivedBlockHeight,proto3" json:"receivedBlockHeight,omitempty"` + IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` + IdValue string `protobuf:"bytes,3,opt,name=id_value,json=idValue,proto3" json:"id_value,omitempty"` + KeyShare string `protobuf:"bytes,4,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` + KeyShareIndex uint64 `protobuf:"varint,5,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + ReceivedTimestamp uint64 `protobuf:"varint,6,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` + ReceivedBlockHeight uint64 `protobuf:"varint,7,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` } func (m *MsgCreateGeneralKeyShare) Reset() { *m = MsgCreateGeneralKeyShare{} } @@ -1049,15 +1072,17 @@ func (m *MsgCreateGeneralKeyShare) GetReceivedBlockHeight() uint64 { return 0 } +// MsgCreateGeneralKeyShareResponse defines the response structure for +// executing a MsgCreateGeneralKeyShare message. type MsgCreateGeneralKeyShareResponse struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - IdType string `protobuf:"bytes,2,opt,name=idType,proto3" json:"idType,omitempty"` - IdValue string `protobuf:"bytes,3,opt,name=idValue,proto3" json:"idValue,omitempty"` - KeyShare string `protobuf:"bytes,4,opt,name=keyShare,proto3" json:"keyShare,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,5,opt,name=keyShareIndex,proto3" json:"keyShareIndex,omitempty"` - ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=receivedBlockHeight,proto3" json:"receivedBlockHeight,omitempty"` + IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` + IdValue string `protobuf:"bytes,3,opt,name=id_value,json=idValue,proto3" json:"id_value,omitempty"` + KeyShare string `protobuf:"bytes,4,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` + KeyShareIndex uint64 `protobuf:"varint,5,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` Success bool `protobuf:"varint,7,opt,name=success,proto3" json:"success,omitempty"` - ErrorMessage string `protobuf:"bytes,8,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"` + ErrorMessage string `protobuf:"bytes,8,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` } func (m *MsgCreateGeneralKeyShareResponse) Reset() { *m = MsgCreateGeneralKeyShareResponse{} } @@ -1149,13 +1174,14 @@ func (m *MsgCreateGeneralKeyShareResponse) GetErrorMessage() string { return "" } +// MsgSubmitEncryptedKeyshare is the Msg/SubmitEncryptedKeyshare request type. type MsgSubmitEncryptedKeyshare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - EncryptedKeyshare string `protobuf:"bytes,3,opt,name=encryptedKeyshare,proto3" json:"encryptedKeyshare,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,4,opt,name=keyShareIndex,proto3" json:"keyShareIndex,omitempty"` - ReceivedTimestamp uint64 `protobuf:"varint,5,opt,name=receivedTimestamp,proto3" json:"receivedTimestamp,omitempty"` - ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=receivedBlockHeight,proto3" json:"receivedBlockHeight,omitempty"` + EncryptedKeyshare string `protobuf:"bytes,3,opt,name=encrypted_keyshare,json=encryptedKeyshare,proto3" json:"encrypted_keyshare,omitempty"` + KeyShareIndex uint64 `protobuf:"varint,4,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + ReceivedTimestamp uint64 `protobuf:"varint,5,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` + ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` Requester string `protobuf:"bytes,7,opt,name=requester,proto3" json:"requester,omitempty"` } @@ -1241,6 +1267,8 @@ func (m *MsgSubmitEncryptedKeyshare) GetRequester() string { return "" } +// MsgSubmitEncryptedKeyshareResponse defines the response structure for +// executing a MsgSubmitEncryptedKeyshare message. type MsgSubmitEncryptedKeyshareResponse struct { } @@ -1305,79 +1333,81 @@ func init() { func init() { proto.RegisterFile("fairyring/keyshare/tx.proto", fileDescriptor_1f96ac6a55f1845c) } var fileDescriptor_1f96ac6a55f1845c = []byte{ - // 1145 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0xcf, 0x6f, 0x1b, 0xc5, - 0x17, 0xcf, 0xda, 0x89, 0x13, 0xbf, 0xe4, 0xab, 0xaf, 0xb2, 0x4d, 0x13, 0x77, 0x09, 0x8e, 0x31, - 0x41, 0x32, 0xa1, 0xd8, 0x6d, 0x8a, 0x0a, 0x8a, 0x04, 0xa2, 0xa1, 0xfc, 0xa8, 0x82, 0xd5, 0x6a, - 0xd3, 0xf6, 0x80, 0x90, 0xd2, 0xb5, 0xf7, 0x75, 0xb3, 0x8a, 0xd7, 0x6b, 0x66, 0x66, 0xa3, 0x18, - 0x2e, 0x85, 0x03, 0x20, 0x4e, 0x9c, 0xb8, 0x70, 0xe1, 0xc8, 0x31, 0x02, 0xfe, 0x01, 0x6e, 0x3d, - 0x56, 0x9c, 0x38, 0x21, 0x94, 0x1c, 0xf2, 0x6f, 0xa0, 0xdd, 0x9d, 0x5d, 0xaf, 0xd7, 0x33, 0xf6, - 0x1a, 0x09, 0x71, 0xe0, 0xd2, 0xfa, 0xbd, 0xf9, 0xec, 0x9b, 0xcf, 0x7c, 0xe6, 0xed, 0x7b, 0x6f, - 0x03, 0xcf, 0x3d, 0x36, 0x6c, 0xd2, 0x27, 0x76, 0xd7, 0x6a, 0x1c, 0x61, 0x9f, 0x1e, 0x1a, 0x04, - 0x1b, 0xec, 0xa4, 0xde, 0x23, 0x2e, 0x73, 0x55, 0x35, 0x5e, 0xac, 0x47, 0x8b, 0xda, 0xb2, 0xe1, - 0xd8, 0x5d, 0xb7, 0x11, 0xfc, 0x1b, 0xc2, 0xb4, 0xb5, 0xb6, 0x4b, 0x1d, 0x97, 0x36, 0x1c, 0x6a, - 0x35, 0x8e, 0xaf, 0xfb, 0xff, 0xf1, 0x85, 0x2b, 0xe1, 0xc2, 0x41, 0x60, 0x35, 0x42, 0x83, 0x2f, - 0xad, 0x58, 0xae, 0xe5, 0x86, 0x7e, 0xff, 0x17, 0xf7, 0x6e, 0x08, 0xd8, 0xf4, 0x0c, 0x62, 0x38, - 0xd1, 0x63, 0x5b, 0x02, 0x80, 0x85, 0x5d, 0x24, 0x46, 0xe7, 0xe0, 0x08, 0xfb, 0x07, 0x81, 0x87, - 0x63, 0x2b, 0xa2, 0x60, 0x5e, 0xcb, 0xc7, 0x85, 0x88, 0xea, 0xaf, 0x0a, 0xfc, 0xbf, 0x49, 0xad, - 0x07, 0x3d, 0xd3, 0x60, 0x78, 0x2f, 0xd8, 0x47, 0xbd, 0x09, 0x45, 0xc3, 0x63, 0x87, 0x2e, 0xb1, - 0x59, 0xbf, 0xa4, 0x54, 0x94, 0x5a, 0x71, 0xb7, 0xf4, 0xdb, 0x2f, 0xaf, 0xae, 0x70, 0xf6, 0xb7, - 0x4c, 0x93, 0x20, 0xa5, 0xfb, 0xcc, 0x8f, 0xab, 0x0f, 0xa0, 0xea, 0x9b, 0x50, 0x08, 0x99, 0x96, - 0x72, 0x15, 0xa5, 0xb6, 0xb8, 0xad, 0xd5, 0x47, 0xc5, 0xab, 0x87, 0x7b, 0xec, 0x16, 0x9f, 0xfe, - 0xb1, 0x31, 0xf3, 0xe3, 0xc5, 0xe9, 0x96, 0xa2, 0xf3, 0x87, 0x76, 0x5e, 0xff, 0xe2, 0xe2, 0x74, - 0x6b, 0x10, 0xee, 0x9b, 0x8b, 0xd3, 0xad, 0xcd, 0x01, 0xff, 0x93, 0xc1, 0x09, 0x52, 0x7c, 0xab, - 0x57, 0x60, 0x2d, 0xe5, 0xd2, 0x91, 0xf6, 0xdc, 0x2e, 0xc5, 0xea, 0x5b, 0xb0, 0xd2, 0xa4, 0x96, - 0x8e, 0x96, 0x4d, 0x19, 0x92, 0x87, 0x46, 0xc7, 0x36, 0x0d, 0xe6, 0x12, 0xb5, 0x04, 0xf3, 0x6d, - 0x82, 0xfe, 0xcf, 0xf0, 0x80, 0x7a, 0x64, 0xee, 0x2c, 0xf9, 0x2c, 0x22, 0xab, 0xfa, 0x06, 0xac, - 0x8b, 0x9e, 0x8f, 0xe2, 0xcb, 0xe3, 0x54, 0xdf, 0x86, 0xd5, 0x26, 0xb5, 0x6e, 0xe3, 0xdf, 0xdf, - 0x7b, 0x07, 0xca, 0xe2, 0x08, 0x19, 0x76, 0xff, 0x3e, 0xbc, 0xd6, 0x7d, 0xec, 0x9a, 0x7b, 0x5c, - 0x36, 0x39, 0xda, 0x5f, 0x71, 0x90, 0x52, 0xc3, 0xc2, 0xe0, 0xe6, 0x8a, 0x7a, 0x64, 0xaa, 0x9b, - 0xf0, 0xbf, 0x23, 0xec, 0xef, 0xfb, 0xcf, 0xdf, 0xe9, 0x9a, 0x78, 0x52, 0xca, 0x57, 0x94, 0xda, - 0xac, 0x3e, 0xec, 0x54, 0x2b, 0xb0, 0xd8, 0xea, 0xb8, 0xed, 0xa3, 0x0f, 0xd0, 0xb6, 0x0e, 0x59, - 0x69, 0x36, 0xc0, 0x24, 0x5d, 0xa9, 0x93, 0x7d, 0x95, 0x0b, 0x6e, 0x2c, 0xc9, 0x6e, 0xf2, 0x99, - 0x54, 0x0d, 0x16, 0xa2, 0x14, 0xe0, 0x34, 0x63, 0x9b, 0xf3, 0xa4, 0x22, 0x9e, 0x74, 0x0a, 0x9e, - 0xea, 0x35, 0xb8, 0x44, 0xb0, 0x8d, 0xf6, 0x31, 0x9a, 0xbb, 0x09, 0xe4, 0x5c, 0x80, 0x14, 0x2d, - 0xf9, 0x7c, 0xa9, 0xd7, 0x6e, 0x23, 0xa5, 0xa5, 0x42, 0x45, 0xa9, 0x2d, 0xe8, 0x91, 0xa9, 0x56, - 0x61, 0x09, 0x09, 0x71, 0x49, 0x93, 0x4b, 0x3b, 0x1f, 0x70, 0x1e, 0xf2, 0x55, 0xbf, 0xcc, 0xc1, - 0xe5, 0x26, 0xb5, 0xde, 0xf1, 0x8f, 0x88, 0x1f, 0x1a, 0x0c, 0x29, 0xbb, 0xe7, 0xb5, 0xf6, 0xb0, - 0x3f, 0x46, 0x87, 0x75, 0x28, 0xf6, 0xbc, 0x56, 0xc7, 0x6e, 0xef, 0x61, 0x9f, 0x0b, 0x31, 0x70, - 0xf8, 0x67, 0x6c, 0xbb, 0x8e, 0x63, 0x33, 0x07, 0xbb, 0x8c, 0x96, 0xf2, 0x95, 0x7c, 0xad, 0xa8, - 0x27, 0x5d, 0x6a, 0x1d, 0xd4, 0xae, 0xe7, 0xb4, 0x90, 0xdc, 0x7d, 0x1c, 0xa7, 0x14, 0xe5, 0x62, - 0x08, 0x56, 0xd4, 0x07, 0xa0, 0x62, 0xb7, 0x4d, 0xfa, 0x3d, 0x86, 0xfe, 0x75, 0x05, 0xf7, 0x4e, - 0x4b, 0x73, 0x95, 0x7c, 0x6d, 0x71, 0xfb, 0x25, 0xd1, 0x2b, 0xfe, 0x6e, 0x1a, 0xad, 0x0b, 0x02, - 0xa4, 0x52, 0x62, 0x03, 0x9e, 0x17, 0xea, 0x10, 0xbf, 0xc9, 0x5f, 0x87, 0x39, 0x73, 0xf7, 0x18, - 0x09, 0xb1, 0xcd, 0xff, 0xb4, 0x56, 0x2f, 0xc0, 0x86, 0x44, 0x89, 0x58, 0xad, 0x8f, 0x41, 0x8b, - 0xe5, 0xbc, 0x15, 0x56, 0xd4, 0x4f, 0xd1, 0xe4, 0x95, 0x5b, 0x5d, 0x85, 0x02, 0x33, 0x88, 0x85, - 0x8c, 0xcb, 0xc5, 0xad, 0xa4, 0x8e, 0xb9, 0x71, 0x95, 0x69, 0x13, 0xaa, 0xf2, 0xe8, 0x31, 0x87, - 0x27, 0x4a, 0x40, 0x22, 0xac, 0xcb, 0xd9, 0x49, 0x54, 0x61, 0xc9, 0xa6, 0x03, 0x78, 0xc0, 0x64, - 0x41, 0x1f, 0xf2, 0x25, 0x89, 0xe6, 0x27, 0x13, 0x95, 0x30, 0x48, 0x89, 0x75, 0x1b, 0x3b, 0xf8, - 0xcf, 0x89, 0x25, 0x89, 0x1e, 0x73, 0xf8, 0x2e, 0x07, 0xa5, 0x58, 0xd3, 0xf7, 0xc3, 0x76, 0x1e, - 0xdd, 0xff, 0x98, 0xfc, 0x5e, 0x85, 0x82, 0x6d, 0xde, 0xef, 0xf7, 0xa2, 0x8a, 0xc8, 0x2d, 0xff, - 0x09, 0xdb, 0x7c, 0x68, 0x74, 0x3c, 0x8c, 0x04, 0xe2, 0x26, 0xaf, 0xa2, 0x41, 0xdc, 0x20, 0x8f, - 0xc3, 0x2a, 0xba, 0x9f, 0xa8, 0xa2, 0x89, 0x6a, 0x3f, 0x27, 0xaa, 0xf6, 0x57, 0x61, 0x39, 0x2a, - 0x84, 0xf7, 0x6d, 0x07, 0x29, 0x33, 0x9c, 0x5e, 0x50, 0xfb, 0x66, 0xf5, 0xd1, 0x05, 0x59, 0x45, - 0x9d, 0x97, 0x56, 0xd4, 0x94, 0x7c, 0x3f, 0xe4, 0xa0, 0x22, 0x13, 0x26, 0x43, 0xd3, 0xf8, 0x37, - 0x04, 0x92, 0x1c, 0xb9, 0x90, 0xa9, 0x89, 0xcc, 0x8f, 0x6f, 0x22, 0x0b, 0x82, 0x26, 0xf2, 0x53, - 0x2e, 0x48, 0xe0, 0x7d, 0xaf, 0xe5, 0xd8, 0x2c, 0x59, 0x50, 0x26, 0xf5, 0x7d, 0x0d, 0x16, 0x6c, - 0x13, 0xbb, 0xcc, 0x9f, 0xf3, 0x78, 0x47, 0x8d, 0x6c, 0xff, 0x96, 0x31, 0x1d, 0x8a, 0x4b, 0x35, - 0xba, 0x30, 0x2a, 0xcc, 0x6c, 0xe6, 0xcc, 0x99, 0x9b, 0x32, 0x73, 0xc6, 0xc8, 0xb8, 0x0e, 0x45, - 0x82, 0x9f, 0x78, 0xe8, 0x4f, 0x4b, 0xbc, 0xdd, 0x0e, 0x1c, 0xc2, 0xd7, 0x52, 0xa2, 0x59, 0x94, - 0x58, 0xdb, 0x3f, 0x03, 0xe4, 0x9b, 0xd4, 0x52, 0x1f, 0xc1, 0xd2, 0xd0, 0x88, 0xfc, 0xa2, 0xa8, - 0x96, 0xa7, 0x86, 0x50, 0xed, 0x95, 0x0c, 0xa0, 0x38, 0x85, 0x5d, 0x58, 0x1e, 0x1d, 0x15, 0x6b, - 0x92, 0x08, 0x23, 0x48, 0xed, 0x5a, 0x56, 0x64, 0xbc, 0xa1, 0x07, 0x97, 0x44, 0xd3, 0xe9, 0x96, - 0x24, 0x90, 0x00, 0xab, 0x6d, 0x67, 0xc7, 0xc6, 0xdb, 0x3e, 0x82, 0xa5, 0xa1, 0xa9, 0x54, 0xa6, - 0x64, 0x12, 0x24, 0x55, 0x52, 0x38, 0x41, 0x12, 0x50, 0x05, 0xf3, 0xd4, 0xcb, 0x92, 0x10, 0xa3, - 0x50, 0xed, 0x7a, 0x66, 0x68, 0xbc, 0xe7, 0x09, 0xac, 0x08, 0x27, 0x13, 0x19, 0x71, 0x11, 0x58, - 0xbb, 0x31, 0x05, 0x38, 0xde, 0xf9, 0x73, 0x05, 0xd6, 0x64, 0x7d, 0xbe, 0x3e, 0xf6, 0x20, 0x23, - 0x78, 0xed, 0xe6, 0x74, 0xf8, 0x21, 0x0e, 0xb2, 0x36, 0x5f, 0x1f, 0xfb, 0x12, 0x64, 0xe7, 0x30, - 0xa1, 0x89, 0x07, 0x1c, 0x64, 0x2d, 0xbc, 0x2e, 0xcd, 0x53, 0x21, 0x5e, 0xca, 0x61, 0x42, 0x13, - 0x57, 0x3f, 0x83, 0xcb, 0xe2, 0x06, 0x7e, 0x75, 0xac, 0xb0, 0x29, 0xb4, 0xf6, 0xda, 0x34, 0xe8, - 0x21, 0x01, 0x64, 0x2d, 0x40, 0x26, 0x80, 0x04, 0x2f, 0x15, 0x60, 0x42, 0xb9, 0xd4, 0xe6, 0x9e, - 0xf8, 0x5f, 0xf4, 0xbb, 0x77, 0x9e, 0x9e, 0x95, 0x95, 0x67, 0x67, 0x65, 0xe5, 0xcf, 0xb3, 0xb2, - 0xf2, 0xed, 0x79, 0x79, 0xe6, 0xd9, 0x79, 0x79, 0xe6, 0xf7, 0xf3, 0xf2, 0xcc, 0x47, 0x0d, 0xcb, - 0x66, 0x87, 0x5e, 0xab, 0xde, 0x76, 0x9d, 0xc6, 0x7b, 0x86, 0x4d, 0x82, 0x6f, 0xaf, 0x86, 0xf0, - 0x2b, 0x9f, 0xf5, 0x7b, 0x48, 0x5b, 0x85, 0xe0, 0xcf, 0x14, 0x37, 0xfe, 0x0a, 0x00, 0x00, 0xff, - 0xff, 0xd6, 0x0f, 0xf3, 0x4c, 0xa5, 0x11, 0x00, 0x00, + // 1184 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0xcd, 0x6f, 0x1b, 0x45, + 0x14, 0xcf, 0xda, 0x89, 0x1d, 0xbf, 0xb8, 0x54, 0x99, 0xba, 0x8d, 0xbb, 0x6d, 0x1d, 0xd7, 0x69, + 0x91, 0x09, 0xd4, 0x6e, 0x53, 0x54, 0x50, 0x24, 0x10, 0x0d, 0xe5, 0xa3, 0x0a, 0x56, 0xab, 0x4d, + 0x29, 0x12, 0x42, 0xda, 0xae, 0xbd, 0x2f, 0x9b, 0x51, 0xb2, 0x5e, 0x33, 0x33, 0x1b, 0xc5, 0x70, + 0xa1, 0x1c, 0xf9, 0x90, 0xf8, 0x0b, 0x7a, 0xee, 0x31, 0x12, 0x1c, 0xb8, 0x72, 0xeb, 0xb1, 0xe2, + 0xc4, 0x09, 0xa1, 0xe4, 0x90, 0x7f, 0x03, 0xed, 0xa7, 0xbf, 0x76, 0x6c, 0x07, 0x09, 0x71, 0xe1, + 0xd2, 0xee, 0xbc, 0xf9, 0xcd, 0x7b, 0xbf, 0xf9, 0xed, 0xdb, 0xf7, 0x5e, 0x0c, 0x97, 0xb6, 0x0d, + 0xca, 0xba, 0x8c, 0xb6, 0xad, 0xfa, 0x2e, 0x76, 0xf9, 0x8e, 0xc1, 0xb0, 0x2e, 0x0e, 0x6a, 0x1d, + 0xe6, 0x08, 0x87, 0x90, 0x78, 0xb3, 0x16, 0x6d, 0xaa, 0x8b, 0x86, 0x4d, 0xdb, 0x4e, 0xdd, 0xff, + 0x37, 0x80, 0xa9, 0x4b, 0x2d, 0x87, 0xdb, 0x0e, 0xaf, 0xdb, 0xdc, 0xaa, 0xef, 0xdf, 0xf2, 0xfe, + 0x0b, 0x37, 0x2e, 0x06, 0x1b, 0xba, 0xbf, 0xaa, 0x07, 0x8b, 0x70, 0xab, 0x60, 0x39, 0x96, 0x13, + 0xd8, 0xbd, 0xa7, 0xd0, 0xba, 0x9c, 0xc0, 0xa6, 0x63, 0x30, 0xc3, 0x8e, 0x8e, 0x95, 0x93, 0x00, + 0x6e, 0x53, 0xdf, 0xc5, 0x6e, 0x80, 0xa8, 0xfc, 0xa6, 0xc0, 0xd9, 0x06, 0xb7, 0x3e, 0xed, 0x98, + 0x86, 0xc0, 0x87, 0xfe, 0x59, 0x72, 0x07, 0x72, 0x86, 0x2b, 0x76, 0x1c, 0x46, 0x45, 0xb7, 0xa8, + 0x94, 0x95, 0x6a, 0x6e, 0xa3, 0xf8, 0xfb, 0x2f, 0x37, 0x0a, 0x21, 0xa3, 0xbb, 0xa6, 0xc9, 0x90, + 0xf3, 0x2d, 0xe1, 0xf9, 0xd5, 0x7a, 0x50, 0xf2, 0x0e, 0x64, 0x82, 0xe8, 0xc5, 0x54, 0x59, 0xa9, + 0x2e, 0xac, 0xa9, 0xb5, 0x51, 0x41, 0x6a, 0x41, 0x8c, 0x8d, 0xdc, 0x8b, 0x3f, 0x97, 0x67, 0x9e, + 0x9f, 0x1c, 0xae, 0x2a, 0x5a, 0x78, 0x68, 0xfd, 0xad, 0x6f, 0x4f, 0x0e, 0x57, 0x7b, 0xee, 0xbe, + 0x3b, 0x39, 0x5c, 0xbd, 0xd6, 0xe3, 0x7f, 0xd0, 0xbb, 0xc1, 0x10, 0xdf, 0xca, 0x45, 0x58, 0x1a, + 0x32, 0x69, 0xc8, 0x3b, 0x4e, 0x9b, 0x63, 0xe5, 0x5d, 0x28, 0x34, 0xb8, 0xa5, 0xa1, 0x45, 0xb9, + 0x40, 0xf6, 0xd8, 0xd8, 0xa3, 0xa6, 0x21, 0x1c, 0x46, 0x8a, 0x90, 0x6d, 0x31, 0xf4, 0x1e, 0x83, + 0x0b, 0x6a, 0xd1, 0x72, 0x3d, 0xef, 0xb1, 0x88, 0x56, 0x95, 0xb7, 0xe1, 0x72, 0xd2, 0xf9, 0xc8, + 0xbf, 0xdc, 0x4f, 0xe5, 0x3d, 0xb8, 0xd0, 0xe0, 0xd6, 0x3d, 0xfc, 0xe7, 0xb1, 0xd7, 0xa1, 0x94, + 0xec, 0x61, 0x8a, 0xe8, 0xcf, 0x82, 0xd7, 0xba, 0x85, 0x6d, 0x73, 0x33, 0x94, 0x4d, 0x8e, 0xf6, + 0x76, 0x6c, 0xe4, 0xdc, 0xb0, 0xd0, 0x7f, 0x73, 0x39, 0x2d, 0x5a, 0x92, 0x57, 0xe1, 0xec, 0x2e, + 0x76, 0x75, 0xdf, 0x81, 0x4e, 0xdb, 0x26, 0x1e, 0x14, 0xd3, 0x65, 0xa5, 0x3a, 0xab, 0x9d, 0xd9, + 0xc5, 0xee, 0x96, 0x67, 0xbd, 0xef, 0x19, 0xc9, 0x55, 0xc8, 0x37, 0xf7, 0x9c, 0xd6, 0xae, 0xbe, + 0x83, 0xd4, 0xda, 0x11, 0xc5, 0x59, 0x1f, 0xb4, 0xe0, 0xdb, 0x3e, 0xf6, 0x4d, 0x43, 0x97, 0xfb, + 0x21, 0xe5, 0xbf, 0xb4, 0x7e, 0x82, 0x93, 0xaf, 0x45, 0x54, 0x98, 0x8f, 0xb2, 0x20, 0x64, 0x1a, + 0xaf, 0xc9, 0x75, 0x78, 0x25, 0x7a, 0x1e, 0x61, 0xca, 0x4f, 0xc3, 0x94, 0xac, 0xc1, 0x79, 0x86, + 0x2d, 0xa4, 0xfb, 0x68, 0xea, 0x03, 0xd8, 0x39, 0x1f, 0x7b, 0x2e, 0xda, 0xdc, 0xe8, 0x3b, 0x53, + 0x84, 0x2c, 0x77, 0x5b, 0x2d, 0xe4, 0xbc, 0x98, 0x29, 0x2b, 0xd5, 0x79, 0x2d, 0x5a, 0x92, 0x15, + 0x38, 0x83, 0x8c, 0x39, 0x4c, 0x8f, 0x24, 0xce, 0xfa, 0xc4, 0xf3, 0xbe, 0xb1, 0x11, 0xd8, 0x2a, + 0xdf, 0xa7, 0xe0, 0x7c, 0x83, 0x5b, 0xef, 0x7b, 0xf7, 0xc4, 0x4f, 0x0c, 0x81, 0x5c, 0x3c, 0x74, + 0x9b, 0x9b, 0xd8, 0x1d, 0x23, 0xc6, 0x15, 0x80, 0x8e, 0xdb, 0xdc, 0xa3, 0x2d, 0xef, 0x73, 0x0e, + 0xe5, 0xc8, 0x05, 0x16, 0xef, 0x60, 0x19, 0x16, 0x5a, 0x8e, 0x6d, 0x53, 0x61, 0x63, 0x5b, 0xf0, + 0x62, 0xba, 0x9c, 0xae, 0xe6, 0xb4, 0x7e, 0x13, 0xb9, 0x09, 0x85, 0xb6, 0x6b, 0x37, 0x91, 0xe9, + 0xce, 0xb6, 0xbe, 0x1f, 0x65, 0x17, 0x0f, 0x25, 0x21, 0xc1, 0xde, 0x83, 0xed, 0x38, 0xef, 0x38, + 0xf9, 0x0c, 0x0a, 0xd8, 0x6e, 0xb1, 0x6e, 0x47, 0xa0, 0xa9, 0xc7, 0x89, 0xc1, 0x8b, 0x73, 0xe5, + 0x74, 0x75, 0x61, 0xed, 0x7a, 0xd2, 0xf7, 0xfe, 0x41, 0x84, 0xdf, 0x0c, 0x13, 0x46, 0x23, 0x38, + 0x6c, 0xe2, 0x43, 0xc9, 0xb1, 0x0c, 0x57, 0x12, 0xc5, 0x88, 0x3f, 0xeb, 0x1f, 0x83, 0xec, 0x79, + 0xb0, 0x8f, 0x8c, 0x51, 0xf3, 0x7f, 0xc1, 0xae, 0xc2, 0xb2, 0x44, 0x8e, 0x58, 0xb2, 0x2f, 0x40, + 0x8d, 0x35, 0xbd, 0x1b, 0xd4, 0xd8, 0xaf, 0xd0, 0x0c, 0x6b, 0x39, 0xb9, 0x00, 0x19, 0x61, 0x30, + 0x0b, 0x45, 0xa8, 0x59, 0xb8, 0xea, 0x17, 0x33, 0x35, 0xae, 0x56, 0x5d, 0x83, 0x8a, 0xdc, 0x7b, + 0xcc, 0xe1, 0xa9, 0xe2, 0x93, 0x08, 0x2a, 0xf5, 0xf4, 0x24, 0x56, 0xe0, 0x0c, 0xe5, 0xba, 0x11, + 0xe3, 0x7d, 0x2a, 0xf3, 0x5a, 0x9e, 0xf2, 0x9e, 0x8f, 0x7e, 0xa6, 0xe9, 0xc9, 0x4c, 0x25, 0x14, + 0x86, 0xd4, 0xba, 0x87, 0x7b, 0xf8, 0xef, 0xa9, 0x25, 0xf1, 0x1e, 0x73, 0x78, 0x96, 0x82, 0x62, + 0x2c, 0xea, 0x47, 0xd8, 0x46, 0x66, 0xec, 0x45, 0x09, 0x30, 0x26, 0xcb, 0x97, 0x20, 0x4b, 0x4d, + 0x5d, 0x74, 0x3b, 0x51, 0x89, 0xcc, 0x50, 0xf3, 0x51, 0xb7, 0x83, 0xe4, 0x22, 0xcc, 0x53, 0xd3, + 0x4b, 0x5b, 0x17, 0x23, 0x89, 0xa8, 0xf9, 0xd8, 0x5b, 0x92, 0x4b, 0x90, 0x8b, 0x93, 0xd3, 0xcf, + 0xe6, 0xa0, 0xb0, 0x06, 0xa1, 0x12, 0x7a, 0xc0, 0x5c, 0x52, 0x0f, 0xb8, 0x01, 0x24, 0x2e, 0x9b, + 0x82, 0xda, 0xc8, 0x85, 0x61, 0x77, 0xfc, 0x6a, 0x38, 0xab, 0x2d, 0x46, 0x3b, 0x8f, 0xa2, 0x0d, + 0x79, 0x95, 0xcd, 0x4a, 0xab, 0xec, 0x90, 0x8c, 0xcf, 0x53, 0x50, 0x96, 0x09, 0x34, 0x45, 0x33, + 0xf9, 0xcf, 0x84, 0x92, 0xde, 0x3c, 0x33, 0x55, 0x7f, 0xc9, 0x4e, 0xe8, 0x2f, 0xf3, 0x09, 0xfd, + 0xe5, 0xd7, 0x94, 0x9f, 0xd0, 0x5b, 0x6e, 0xd3, 0xa6, 0xa2, 0xbf, 0xc2, 0x4c, 0x1a, 0x0d, 0x54, + 0x4f, 0x0b, 0x6c, 0x0b, 0x6f, 0x14, 0x0c, 0x3b, 0x6e, 0xb4, 0xf6, 0x5e, 0xf8, 0x40, 0x71, 0x0b, + 0x54, 0x09, 0x14, 0x5b, 0xc4, 0x91, 0x20, 0x09, 0xf2, 0xcc, 0x4e, 0x9f, 0x47, 0x73, 0xa7, 0xce, + 0xa3, 0x31, 0x6a, 0x5e, 0x86, 0x1c, 0xc3, 0x2f, 0x5d, 0xf4, 0xc6, 0xaa, 0xb0, 0x1f, 0xf7, 0x0c, + 0x89, 0x1f, 0xab, 0x44, 0xb9, 0x28, 0xcd, 0xd6, 0x7e, 0x06, 0x48, 0x37, 0xb8, 0x45, 0x9e, 0x40, + 0x7e, 0x60, 0x96, 0x5e, 0x49, 0x2a, 0xf1, 0x43, 0xd3, 0xaa, 0xfa, 0xfa, 0x14, 0xa0, 0x38, 0xa1, + 0x1d, 0x58, 0x1c, 0x9d, 0x29, 0xab, 0x12, 0x0f, 0x23, 0x48, 0xf5, 0xe6, 0xb4, 0xc8, 0x38, 0xa0, + 0x0b, 0xe7, 0x92, 0xc6, 0xd8, 0x55, 0x89, 0xa3, 0x04, 0xac, 0xba, 0x36, 0x3d, 0x36, 0x0e, 0xfb, + 0x04, 0xf2, 0x03, 0xe3, 0xab, 0x4c, 0xc9, 0x7e, 0x90, 0x54, 0xc9, 0xc4, 0x39, 0x93, 0x01, 0x49, + 0x18, 0xb8, 0x5e, 0x93, 0xb8, 0x18, 0x85, 0xaa, 0xb7, 0xa6, 0x86, 0xc6, 0x31, 0x0f, 0xa0, 0x90, + 0x38, 0xb5, 0xc8, 0x88, 0x27, 0x81, 0xd5, 0xdb, 0xa7, 0x00, 0xc7, 0x91, 0x9f, 0x2a, 0xb0, 0x24, + 0x6b, 0xff, 0xb5, 0xb1, 0x17, 0x19, 0xc1, 0xab, 0x77, 0x4e, 0x87, 0x1f, 0xe0, 0x20, 0xeb, 0xfe, + 0xb5, 0xb1, 0x1f, 0xc1, 0xf4, 0x1c, 0x26, 0xb4, 0x76, 0x9f, 0x83, 0xac, 0xb1, 0xd7, 0xa4, 0x79, + 0x9a, 0x88, 0x97, 0x72, 0x98, 0xd0, 0xda, 0xc9, 0xd7, 0x70, 0x3e, 0xb9, 0xad, 0xbf, 0x31, 0x56, + 0xd8, 0x21, 0xb4, 0xfa, 0xe6, 0x69, 0xd0, 0x03, 0x02, 0xc8, 0x1a, 0x81, 0x4c, 0x00, 0x09, 0x5e, + 0x2a, 0xc0, 0x84, 0x72, 0xa9, 0xce, 0x7d, 0xe3, 0xfd, 0xe9, 0xbf, 0x71, 0xff, 0xc5, 0x51, 0x49, + 0x79, 0x79, 0x54, 0x52, 0xfe, 0x3a, 0x2a, 0x29, 0x3f, 0x1d, 0x97, 0x66, 0x5e, 0x1e, 0x97, 0x66, + 0xfe, 0x38, 0x2e, 0xcd, 0x7c, 0x5e, 0xb7, 0xa8, 0xd8, 0x71, 0x9b, 0xb5, 0x96, 0x63, 0xd7, 0x3f, + 0x34, 0x28, 0xf3, 0x2b, 0x7b, 0x3d, 0xf1, 0xe7, 0x00, 0xaf, 0x83, 0xf3, 0x66, 0xc6, 0xff, 0x3d, + 0xe3, 0xf6, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa8, 0x3c, 0x63, 0x2b, 0xa2, 0x11, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1395,16 +1425,34 @@ type MsgClient interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) + // RegisterValidator defines a operation to register validator which + // is then eligible to participate in sending keyshares RegisterValidator(ctx context.Context, in *MsgRegisterValidator, opts ...grpc.CallOption) (*MsgRegisterValidatorResponse, error) + // DeRegisterValidator defines an operation to de-register + // a registered validator DeRegisterValidator(ctx context.Context, in *MsgDeRegisterValidator, opts ...grpc.CallOption) (*MsgDeRegisterValidatorResponse, error) + // SendKeyshare defines an operation to submit keyshares + // every block from registered validators SendKeyshare(ctx context.Context, in *MsgSendKeyshare, opts ...grpc.CallOption) (*MsgSendKeyshareResponse, error) - // this line is used by starport scaffolding # proto/tx/rpc + // CreateLatestPubKey defines an operation to add a + // public key to the chain (can only be done by an authorized address) CreateLatestPubKey(ctx context.Context, in *MsgCreateLatestPubKey, opts ...grpc.CallOption) (*MsgCreateLatestPubKeyResponse, error) + // OverrideLatestPubKey defines an operation to override the current active pubkey OverrideLatestPubKey(ctx context.Context, in *MsgOverrideLatestPubKey, opts ...grpc.CallOption) (*MsgOverrideLatestPubKeyResponse, error) + // CreateAuthorizedAddress defines an operation to mark an address + // as authorized to create and/or update pubkeys on the chain CreateAuthorizedAddress(ctx context.Context, in *MsgCreateAuthorizedAddress, opts ...grpc.CallOption) (*MsgCreateAuthorizedAddressResponse, error) + // UpdateAuthorizedAddress defines an operation to update the + // list of authorized addresses UpdateAuthorizedAddress(ctx context.Context, in *MsgUpdateAuthorizedAddress, opts ...grpc.CallOption) (*MsgUpdateAuthorizedAddressResponse, error) + // DeleteAuthorizedAddress defines an operation to revoke the + // authorization of a previously authorized address DeleteAuthorizedAddress(ctx context.Context, in *MsgDeleteAuthorizedAddress, opts ...grpc.CallOption) (*MsgDeleteAuthorizedAddressResponse, error) + // CreateGeneralKeyShare defines an operation to submit a + // general keyshare from a registered validator CreateGeneralKeyShare(ctx context.Context, in *MsgCreateGeneralKeyShare, opts ...grpc.CallOption) (*MsgCreateGeneralKeyShareResponse, error) + // SubmitEncryptedKeyshare defines an operation to submit + // an encrypted keyshare from a registered validator SubmitEncryptedKeyshare(ctx context.Context, in *MsgSubmitEncryptedKeyshare, opts ...grpc.CallOption) (*MsgSubmitEncryptedKeyshareResponse, error) } @@ -1520,16 +1568,34 @@ type MsgServer interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + // RegisterValidator defines a operation to register validator which + // is then eligible to participate in sending keyshares RegisterValidator(context.Context, *MsgRegisterValidator) (*MsgRegisterValidatorResponse, error) + // DeRegisterValidator defines an operation to de-register + // a registered validator DeRegisterValidator(context.Context, *MsgDeRegisterValidator) (*MsgDeRegisterValidatorResponse, error) + // SendKeyshare defines an operation to submit keyshares + // every block from registered validators SendKeyshare(context.Context, *MsgSendKeyshare) (*MsgSendKeyshareResponse, error) - // this line is used by starport scaffolding # proto/tx/rpc + // CreateLatestPubKey defines an operation to add a + // public key to the chain (can only be done by an authorized address) CreateLatestPubKey(context.Context, *MsgCreateLatestPubKey) (*MsgCreateLatestPubKeyResponse, error) + // OverrideLatestPubKey defines an operation to override the current active pubkey OverrideLatestPubKey(context.Context, *MsgOverrideLatestPubKey) (*MsgOverrideLatestPubKeyResponse, error) + // CreateAuthorizedAddress defines an operation to mark an address + // as authorized to create and/or update pubkeys on the chain CreateAuthorizedAddress(context.Context, *MsgCreateAuthorizedAddress) (*MsgCreateAuthorizedAddressResponse, error) + // UpdateAuthorizedAddress defines an operation to update the + // list of authorized addresses UpdateAuthorizedAddress(context.Context, *MsgUpdateAuthorizedAddress) (*MsgUpdateAuthorizedAddressResponse, error) + // DeleteAuthorizedAddress defines an operation to revoke the + // authorization of a previously authorized address DeleteAuthorizedAddress(context.Context, *MsgDeleteAuthorizedAddress) (*MsgDeleteAuthorizedAddressResponse, error) + // CreateGeneralKeyShare defines an operation to submit a + // general keyshare from a registered validator CreateGeneralKeyShare(context.Context, *MsgCreateGeneralKeyShare) (*MsgCreateGeneralKeyShareResponse, error) + // SubmitEncryptedKeyshare defines an operation to submit + // an encrypted keyshare from a registered validator SubmitEncryptedKeyshare(context.Context, *MsgSubmitEncryptedKeyshare) (*MsgSubmitEncryptedKeyshareResponse, error) } diff --git a/x/keyshare/types/validator_set.pb.go b/x/keyshare/types/validator_set.pb.go index 577f272a..29bd4fb5 100644 --- a/x/keyshare/types/validator_set.pb.go +++ b/x/keyshare/types/validator_set.pb.go @@ -22,11 +22,13 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// ValidatorSet defines the structure for storing the list of +// validators who will be eligible to send keyshares type ValidatorSet struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"` - ConsAddr string `protobuf:"bytes,3,opt,name=consAddr,proto3" json:"consAddr,omitempty"` - IsActive bool `protobuf:"varint,4,opt,name=isActive,proto3" json:"isActive,omitempty"` + ConsAddr string `protobuf:"bytes,3,opt,name=cons_addr,json=consAddr,proto3" json:"cons_addr,omitempty"` + IsActive bool `protobuf:"varint,4,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` } func (m *ValidatorSet) Reset() { *m = ValidatorSet{} } @@ -99,21 +101,21 @@ func init() { } var fileDescriptor_092022802a527ced = []byte{ - // 213 bytes of a gzipped FileDescriptorProto + // 223 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4b, 0x4b, 0xcc, 0x2c, 0xaa, 0x2c, 0xca, 0xcc, 0x4b, 0xd7, 0xcf, 0x4e, 0xad, 0x2c, 0xce, 0x48, 0x2c, 0x4a, 0xd5, 0x2f, 0x4b, 0xcc, 0xc9, 0x4c, 0x49, 0x2c, 0xc9, 0x2f, 0x8a, 0x2f, 0x4e, 0x2d, 0xd1, 0x2b, 0x28, 0xca, - 0x2f, 0xc9, 0x17, 0x12, 0x82, 0xab, 0xd3, 0x83, 0xa9, 0x53, 0xaa, 0xe2, 0xe2, 0x09, 0x83, 0x29, + 0x2f, 0xc9, 0x17, 0x12, 0x82, 0xab, 0xd3, 0x83, 0xa9, 0x53, 0xaa, 0xe1, 0xe2, 0x09, 0x83, 0x29, 0x0d, 0x4e, 0x2d, 0x11, 0x12, 0xe1, 0x62, 0xcd, 0xcc, 0x4b, 0x49, 0xad, 0x90, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x82, 0x70, 0x84, 0x64, 0xb8, 0x38, 0xe1, 0x06, 0x4a, 0x30, 0x81, 0x65, 0x10, - 0x02, 0x42, 0x52, 0x5c, 0x1c, 0xc9, 0xf9, 0x79, 0xc5, 0x8e, 0x29, 0x29, 0x45, 0x12, 0xcc, 0x60, - 0x49, 0x38, 0x1f, 0x24, 0x97, 0x59, 0xec, 0x98, 0x5c, 0x92, 0x59, 0x96, 0x2a, 0xc1, 0xa2, 0xc0, - 0xa8, 0xc1, 0x11, 0x04, 0xe7, 0x3b, 0x79, 0x9e, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, - 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, - 0x43, 0x94, 0x7e, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0xbe, 0x5b, 0x62, - 0x66, 0x51, 0x52, 0x4e, 0x7e, 0x72, 0xb6, 0x3e, 0xc2, 0x9b, 0x15, 0x08, 0x8f, 0x96, 0x54, 0x16, - 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x7d, 0x68, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xec, 0x4c, 0x2b, - 0x6d, 0x0b, 0x01, 0x00, 0x00, + 0x02, 0x42, 0xd2, 0x5c, 0x9c, 0xc9, 0xf9, 0x79, 0xc5, 0xf1, 0x89, 0x29, 0x29, 0x45, 0x12, 0xcc, + 0x60, 0x59, 0x0e, 0x90, 0x80, 0x63, 0x4a, 0x0a, 0x58, 0x32, 0xb3, 0x38, 0x3e, 0x31, 0xb9, 0x24, + 0xb3, 0x2c, 0x55, 0x82, 0x45, 0x81, 0x51, 0x83, 0x23, 0x88, 0x23, 0xb3, 0xd8, 0x11, 0xcc, 0x77, + 0xf2, 0x3c, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, + 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xfd, 0xf4, 0xcc, 0x92, + 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xb7, 0xc4, 0xcc, 0xa2, 0xa4, 0x9c, 0xfc, 0xe4, + 0x6c, 0x7d, 0x84, 0x47, 0x2b, 0x10, 0x5e, 0x2d, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0xfb, + 0xd1, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x0f, 0x87, 0xaf, 0x97, 0x0d, 0x01, 0x00, 0x00, } func (m *ValidatorSet) Marshal() (dAtA []byte, err error) { diff --git a/x/pep/keeper/gen_enc_tx.go b/x/pep/keeper/gen_enc_tx.go index 5605358b..3fb72bf4 100644 --- a/x/pep/keeper/gen_enc_tx.go +++ b/x/pep/keeper/gen_enc_tx.go @@ -14,7 +14,7 @@ import ( func (k Keeper) GetEntry( ctx context.Context, reqID string, -) (val types.GenEncTxExecutionQueue, found bool) { +) (val types.IdentityExecutionQueue, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxKeyPrefix)) @@ -32,7 +32,7 @@ func (k Keeper) GetEntry( // SetEntry sets a queue entry by its identity func (k Keeper) SetEntry( ctx context.Context, - val types.GenEncTxExecutionQueue, + val types.IdentityExecutionQueue, ) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxKeyPrefix)) @@ -55,7 +55,7 @@ func (k Keeper) RemoveEntry( } // GetAllGenEncTxEntry returns all GenEncTxQueue entries -func (k Keeper) GetAllGenEncTxEntry(ctx context.Context) (list []types.GenEncTxExecutionQueue) { +func (k Keeper) GetAllGenEncTxEntry(ctx context.Context) (list []types.IdentityExecutionQueue) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) @@ -63,14 +63,18 @@ func (k Keeper) GetAllGenEncTxEntry(ctx context.Context) (list []types.GenEncTxE defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - var val types.GenEncTxExecutionQueue + var val types.IdentityExecutionQueue k.cdc.MustUnmarshal(iterator.Value(), &val) list = append(list, val) } return } -func (k Keeper) AppendTxToEntry(ctx context.Context, reqID string, encTx types.GeneralEncryptedTx) uint64 { +func (k Keeper) AppendTxToEntry( + ctx context.Context, + reqID string, + encTx types.GeneralEncryptedTx, +) uint64 { val, _ := k.GetEntry(ctx, reqID) var index uint64 = 0 var list types.GeneralEncryptedTxArray @@ -131,7 +135,9 @@ func (k Keeper) RemoveReqQueueEntry( } // GetAllGenEncTxQueueEntry returns all GenEncTxQueue entries -func (k Keeper) GetAllGenEncTxReqQueueEntry(ctx context.Context) (list []commontypes.RequestAggrKeyshare) { +func (k Keeper) GetAllGenEncTxReqQueueEntry( + ctx context.Context, +) (list []commontypes.RequestAggrKeyshare) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxReqQueueKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) @@ -191,7 +197,9 @@ func (k Keeper) RemoveSignalQueueEntry( } // GetAllGenEncTxQueueEntry returns all GenEncTxQueue entries -func (k Keeper) GetAllGenEncTxSignalQueueEntry(ctx context.Context) (list []commontypes.GetAggrKeyshare) { +func (k Keeper) GetAllGenEncTxSignalQueueEntry( + ctx context.Context, +) (list []commontypes.GetAggrKeyshare) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxSignalQueueKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) @@ -210,7 +218,7 @@ func (k Keeper) GetAllGenEncTxSignalQueueEntry(ctx context.Context) (list []comm func (k Keeper) GetExecutionQueueEntry( ctx context.Context, reqID string, -) (val types.GenEncTxExecutionQueue, found bool) { +) (val types.IdentityExecutionQueue, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxExeQueueKeyPrefix)) @@ -228,7 +236,7 @@ func (k Keeper) GetExecutionQueueEntry( // SetQueueEntry sets a queue entry by its identity func (k Keeper) SetExecutionQueueEntry( ctx context.Context, - val types.GenEncTxExecutionQueue, + val types.IdentityExecutionQueue, ) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxExeQueueKeyPrefix)) @@ -251,7 +259,9 @@ func (k Keeper) RemoveExecutionQueueEntry( } // GetAllGenEncTxQueueEntry returns all GenEncTxQueue entries -func (k Keeper) GetAllGenEncTxExecutionQueueEntry(ctx context.Context) (list []types.GenEncTxExecutionQueue) { +func (k Keeper) GetAllGenEncTxExecutionQueueEntry( + ctx context.Context, +) (list []types.IdentityExecutionQueue) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxExeQueueKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) @@ -259,7 +269,7 @@ func (k Keeper) GetAllGenEncTxExecutionQueueEntry(ctx context.Context) (list []t defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - var val types.GenEncTxExecutionQueue + var val types.IdentityExecutionQueue k.cdc.MustUnmarshal(iterator.Value(), &val) list = append(list, val) } @@ -270,7 +280,7 @@ func (k Keeper) GetAllGenEncTxExecutionQueueEntry(ctx context.Context) (list []t func (k Keeper) GetPrivateRequestQueueEntry( ctx context.Context, reqID string, -) (val commontypes.RequestPrivateKeyshare, found bool) { +) (val commontypes.RequestEncryptedKeyshare, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateRequestQueueKeyPrefix)) @@ -288,7 +298,7 @@ func (k Keeper) GetPrivateRequestQueueEntry( // SetPrivateReqQueueEntry sets a queue entry by its identity func (k Keeper) SetPrivateReqQueueEntry( ctx context.Context, - val commontypes.RequestPrivateKeyshare, + val commontypes.RequestEncryptedKeyshare, ) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateRequestQueueKeyPrefix)) @@ -311,7 +321,8 @@ func (k Keeper) RemovePrivateReqQueueEntry( } // GetAllPrivateReqQueueEntry returns all PrivateQueue entries -func (k Keeper) GetAllPrivateReqQueueEntry(ctx context.Context) (list []commontypes.RequestPrivateKeyshare) { +func (k Keeper) GetAllPrivateReqQueueEntry( + ctx context.Context) (list []commontypes.RequestEncryptedKeyshare) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateRequestQueueKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) @@ -319,7 +330,7 @@ func (k Keeper) GetAllPrivateReqQueueEntry(ctx context.Context) (list []commonty defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - var val commontypes.RequestPrivateKeyshare + var val commontypes.RequestEncryptedKeyshare k.cdc.MustUnmarshal(iterator.Value(), &val) list = append(list, val) } @@ -371,7 +382,9 @@ func (k Keeper) RemovePrivateSignalQueueEntry( } // GetAllPrivateSignalQueueEntry returns all GenEncTxQueue entries -func (k Keeper) GetAllPrivateSignalQueueEntry(ctx context.Context) (list []commontypes.GetPrivateKeyshare) { +func (k Keeper) GetAllPrivateSignalQueueEntry( + ctx context.Context, +) (list []commontypes.GetPrivateKeyshare) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateSignalQueueKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) diff --git a/x/pep/keeper/gen_enc_tx_test.go b/x/pep/keeper/gen_enc_tx_test.go index 7b7bed45..08166c95 100644 --- a/x/pep/keeper/gen_enc_tx_test.go +++ b/x/pep/keeper/gen_enc_tx_test.go @@ -1,11 +1,12 @@ package keeper_test import ( - "github.com/Fairblock/fairyring/testutil/random" - "github.com/Fairblock/fairyring/testutil/sample" "strconv" "testing" + "github.com/Fairblock/fairyring/testutil/random" + "github.com/Fairblock/fairyring/testutil/sample" + keepertest "github.com/Fairblock/fairyring/testutil/keeper" "github.com/Fairblock/fairyring/testutil/nullify" "github.com/Fairblock/fairyring/x/pep/keeper" @@ -18,9 +19,13 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func createNGeneralEncryptedTxEntry(keeper *keeper.Keeper, ctx sdk.Context, n int) (queue []types.GenEncTxExecutionQueue) { +func createNGeneralEncryptedTxEntry( + keeper *keeper.Keeper, + ctx sdk.Context, + n int, +) (queue []types.IdentityExecutionQueue) { items := make([]types.GeneralEncryptedTxArray, n) - queue = make([]types.GenEncTxExecutionQueue, n) + queue = make([]types.IdentityExecutionQueue, n) for i := range items { // i is block height items[i].EncryptedTx = make([]types.GeneralEncryptedTx, n) @@ -31,7 +36,7 @@ func createNGeneralEncryptedTxEntry(keeper *keeper.Keeper, ctx sdk.Context, n in items[i].EncryptedTx[j].Identity = identity items[i].EncryptedTx[j].Index = uint64(j) } - queue[i] = types.GenEncTxExecutionQueue{ + queue[i] = types.IdentityExecutionQueue{ Creator: sample.AccAddress(), RequestId: identity, Identity: identity, diff --git a/x/pep/keeper/msg_get_general_key_share_test.go b/x/pep/keeper/msg_get_general_key_share_test.go index 5a4f56a4..a73b69fb 100644 --- a/x/pep/keeper/msg_get_general_key_share_test.go +++ b/x/pep/keeper/msg_get_general_key_share_test.go @@ -31,7 +31,7 @@ func TestGetGeneralKeyshare(t *testing.T) { require.Equal(t, "request not found", err.Error()) // Test case when creator is unauthorized - entry := types.GenEncTxExecutionQueue{ + entry := types.IdentityExecutionQueue{ Creator: "authorized_creator", RequestId: "test_req_id", Identity: "test_identity", diff --git a/x/pep/keeper/msg_request_general_key_share.go b/x/pep/keeper/msg_request_general_key_share.go index 980262e8..ada27abf 100644 --- a/x/pep/keeper/msg_request_general_key_share.go +++ b/x/pep/keeper/msg_request_general_key_share.go @@ -120,7 +120,7 @@ func (k Keeper) OnAcknowledgementRequestAggrKeysharePacket(ctx sdk.Context, pack return errors.New("cannot unmarshal acknowledgment") } - entry := types.GenEncTxExecutionQueue{ + entry := types.IdentityExecutionQueue{ Creator: data.Requester, RequestId: data.GetRequestId(), Identity: packetAck.GetIdentity(), diff --git a/x/pep/keeper/msg_request_private_identity.go b/x/pep/keeper/msg_request_private_identity.go index fa2d150d..e671f61e 100644 --- a/x/pep/keeper/msg_request_private_identity.go +++ b/x/pep/keeper/msg_request_private_identity.go @@ -41,7 +41,7 @@ func (k msgServer) RequestPrivateIdentity(goCtx context.Context, msg *types.MsgR params := k.GetParams(ctx) if params.IsSourceChain { - entry := commontypes.RequestPrivateKeyshare{ + entry := commontypes.RequestEncryptedKeyshare{ Creator: msg.Creator, RequestId: msg.ReqId, } diff --git a/x/pep/keeper/msg_submit_gen_enc_tx.go b/x/pep/keeper/msg_submit_gen_enc_tx.go index 18ea6f89..de4d15a4 100644 --- a/x/pep/keeper/msg_submit_gen_enc_tx.go +++ b/x/pep/keeper/msg_submit_gen_enc_tx.go @@ -11,7 +11,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) -func (k msgServer) SubmitGeneralEncryptedTx(goCtx context.Context, msg *types.MsgSubmitGeneralEncryptedTx) (*types.MsgSubmitEncryptedTxResponse, error) { +func (k msgServer) SubmitGeneralEncryptedTx( + goCtx context.Context, + msg *types.MsgSubmitGeneralEncryptedTx, +) (*types.MsgSubmitGeneralEncryptedTxResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) entry, found := k.GetEntry(ctx, msg.ReqId) @@ -68,5 +71,5 @@ func (k msgServer) SubmitGeneralEncryptedTx(goCtx context.Context, msg *types.Ms defer telemetry.IncrCounter(1, types.KeyTotalEncryptedTxSubmitted) - return &types.MsgSubmitEncryptedTxResponse{}, nil + return &types.MsgSubmitGeneralEncryptedTxResponse{}, nil } diff --git a/x/pep/keeper/msg_submit_gen_enc_tx_test.go b/x/pep/keeper/msg_submit_gen_enc_tx_test.go index 85b0c68c..16382230 100644 --- a/x/pep/keeper/msg_submit_gen_enc_tx_test.go +++ b/x/pep/keeper/msg_submit_gen_enc_tx_test.go @@ -1,12 +1,13 @@ package keeper_test import ( + "strconv" + "testing" + "cosmossdk.io/math" "github.com/Fairblock/fairyring/testutil/nullify" "github.com/Fairblock/fairyring/testutil/random" "github.com/Fairblock/fairyring/testutil/sample" - "strconv" - "testing" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" @@ -88,7 +89,7 @@ func TestSubmitGeneralEncryptedTx(t *testing.T) { } if tc.desc == "InvalidIdentity" { - k.SetEntry(wctx, types.GenEncTxExecutionQueue{ + k.SetEntry(wctx, types.IdentityExecutionQueue{ Creator: sample.AccAddress(), RequestId: validIdentity, Identity: validIdentity, diff --git a/x/pep/keeper/query_encrypted_tx.go b/x/pep/keeper/query_encrypted_tx.go index eb52431d..ba58db11 100644 --- a/x/pep/keeper/query_encrypted_tx.go +++ b/x/pep/keeper/query_encrypted_tx.go @@ -14,7 +14,10 @@ import ( ) // EncryptedTxAll returns the paginated list of all encrypted Txs -func (k Keeper) EncryptedTxAll(c context.Context, req *types.QueryAllEncryptedTxRequest) (*types.QueryAllEncryptedTxResponse, error) { +func (k Keeper) EncryptedTxAll( + c context.Context, + req *types.QueryEncryptedTxAllRequest, +) (*types.QueryEncryptedTxAllResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -40,11 +43,17 @@ func (k Keeper) EncryptedTxAll(c context.Context, req *types.QueryAllEncryptedTx return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryAllEncryptedTxResponse{EncryptedTxArray: encryptedTxs, Pagination: pageRes}, nil + return &types.QueryEncryptedTxAllResponse{ + EncryptedTxArray: encryptedTxs, + Pagination: pageRes, + }, nil } // EncryptedTxAllFromHeight returns all the encrypted TXs for a particular height -func (k Keeper) EncryptedTxAllFromHeight(c context.Context, req *types.QueryAllEncryptedTxFromHeightRequest) (*types.QueryAllEncryptedTxFromHeightResponse, error) { +func (k Keeper) EncryptedTxAllFromHeight( + c context.Context, + req *types.QueryEncryptedTxAllFromHeightRequest, +) (*types.QueryEncryptedTxAllFromHeightResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -52,11 +61,16 @@ func (k Keeper) EncryptedTxAllFromHeight(c context.Context, req *types.QueryAllE ctx := sdk.UnwrapSDKContext(c) val := k.GetEncryptedTxAllFromHeight(ctx, req.TargetHeight) - return &types.QueryAllEncryptedTxFromHeightResponse{EncryptedTxArray: val}, nil + return &types.QueryEncryptedTxAllFromHeightResponse{ + EncryptedTxArray: val, + }, nil } // EncryptedTx returns a singe encrypted Tx by index -func (k Keeper) EncryptedTx(c context.Context, req *types.QueryGetEncryptedTxRequest) (*types.QueryGetEncryptedTxResponse, error) { +func (k Keeper) EncryptedTx( + c context.Context, + req *types.QueryEncryptedTxRequest, +) (*types.QueryEncryptedTxResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -71,5 +85,5 @@ func (k Keeper) EncryptedTx(c context.Context, req *types.QueryGetEncryptedTxReq return nil, status.Error(codes.NotFound, "not found") } - return &types.QueryGetEncryptedTxResponse{EncryptedTx: val}, nil + return &types.QueryEncryptedTxResponse{EncryptedTx: val}, nil } diff --git a/x/pep/keeper/query_encrypted_tx_test.go b/x/pep/keeper/query_encrypted_tx_test.go index 6e41500c..8d721b97 100644 --- a/x/pep/keeper/query_encrypted_tx_test.go +++ b/x/pep/keeper/query_encrypted_tx_test.go @@ -25,29 +25,29 @@ func TestEncryptedTxQuerySingle(t *testing.T) { for _, tc := range []struct { desc string - request *types.QueryGetEncryptedTxRequest - response *types.QueryGetEncryptedTxResponse + request *types.QueryEncryptedTxRequest + response *types.QueryEncryptedTxResponse err error }{ { desc: "First", - request: &types.QueryGetEncryptedTxRequest{ + request: &types.QueryEncryptedTxRequest{ TargetHeight: msgs[0].EncryptedTx[0].TargetHeight, Index: msgs[0].EncryptedTx[0].Index, }, - response: &types.QueryGetEncryptedTxResponse{EncryptedTx: msgs[0].EncryptedTx[0]}, + response: &types.QueryEncryptedTxResponse{EncryptedTx: msgs[0].EncryptedTx[0]}, }, { desc: "Second", - request: &types.QueryGetEncryptedTxRequest{ + request: &types.QueryEncryptedTxRequest{ TargetHeight: msgs[1].EncryptedTx[0].TargetHeight, Index: msgs[1].EncryptedTx[0].Index, }, - response: &types.QueryGetEncryptedTxResponse{EncryptedTx: msgs[1].EncryptedTx[0]}, + response: &types.QueryEncryptedTxResponse{EncryptedTx: msgs[1].EncryptedTx[0]}, }, { desc: "KeyNotFound", - request: &types.QueryGetEncryptedTxRequest{ + request: &types.QueryEncryptedTxRequest{ TargetHeight: 100000, Index: 100000, }, @@ -78,7 +78,7 @@ func TestEncryptedTxQueryAll(t *testing.T) { wctx := sdk.UnwrapSDKContext(ctx) msgs := createNEncryptedTx(&keeper, ctx, 5) - resp, err := keeper.EncryptedTxAll(wctx, &types.QueryAllEncryptedTxRequest{ + resp, err := keeper.EncryptedTxAll(wctx, &types.QueryEncryptedTxAllRequest{ Pagination: &query.PageRequest{ Key: nil, Offset: 0, @@ -99,8 +99,13 @@ func TestEncryptedTxQueryPaginated(t *testing.T) { wctx := sdk.UnwrapSDKContext(ctx) msgs := createNEncryptedTx(&keeper, ctx, 5) - request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllEncryptedTxRequest { - return &types.QueryAllEncryptedTxRequest{ + request := func( + next []byte, + offset, + limit uint64, + total bool, + ) *types.QueryEncryptedTxAllRequest { + return &types.QueryEncryptedTxAllRequest{ Pagination: &query.PageRequest{ Key: next, Offset: offset, diff --git a/x/pep/keeper/query_keyshare.go b/x/pep/keeper/query_keyshare.go index d613f028..0b644f10 100644 --- a/x/pep/keeper/query_keyshare.go +++ b/x/pep/keeper/query_keyshare.go @@ -2,6 +2,7 @@ package keeper import ( "context" + "cosmossdk.io/store/prefix" "github.com/cosmos/cosmos-sdk/runtime" "github.com/cosmos/cosmos-sdk/types/query" @@ -12,7 +13,10 @@ import ( "google.golang.org/grpc/status" ) -func (k Keeper) KeyshareReq(c context.Context, req *types.QueryKeyshareRequest) (*types.QueryKeyshareResponse, error) { +func (k Keeper) KeyshareReq( + c context.Context, + req *types.QueryKeyshareReqRequest, +) (*types.QueryKeyshareReqResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -24,10 +28,13 @@ func (k Keeper) KeyshareReq(c context.Context, req *types.QueryKeyshareRequest) return nil, status.Error(codes.NotFound, "not found") } - return &types.QueryKeyshareResponse{Keyshare: &entry}, nil + return &types.QueryKeyshareReqResponse{Keyshare: &entry}, nil } -func (k Keeper) KeyshareReqAll(c context.Context, req *types.QueryAllKeyshareRequest) (*types.QueryAllKeyshareResponse, error) { +func (k Keeper) KeyshareReqAll( + c context.Context, + req *types.QueryKeyshareReqAllRequest, +) (*types.QueryKeyshareReqAllResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -37,10 +44,10 @@ func (k Keeper) KeyshareReqAll(c context.Context, req *types.QueryAllKeyshareReq storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxKeyPrefix)) - var keyshares []*types.GenEncTxExecutionQueue + var keyshares []*types.IdentityExecutionQueue pageRes, err := query.Paginate(store, req.Pagination, func(key []byte, value []byte) error { - var keyshare types.GenEncTxExecutionQueue + var keyshare types.IdentityExecutionQueue if err := k.cdc.Unmarshal(value, &keyshare); err != nil { return err } @@ -53,5 +60,8 @@ func (k Keeper) KeyshareReqAll(c context.Context, req *types.QueryAllKeyshareReq return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryAllKeyshareResponse{Keyshares: keyshares, Pagination: pageRes}, nil + return &types.QueryKeyshareReqAllResponse{ + Keyshares: keyshares, + Pagination: pageRes, + }, nil } diff --git a/x/pep/keeper/query_keyshare_test.go b/x/pep/keeper/query_keyshare_test.go index 616b0c4e..2c2a49c0 100644 --- a/x/pep/keeper/query_keyshare_test.go +++ b/x/pep/keeper/query_keyshare_test.go @@ -1,12 +1,13 @@ package keeper_test import ( + "strconv" + "testing" + "github.com/Fairblock/fairyring/testutil/random" "github.com/cosmos/cosmos-sdk/types/query" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "strconv" - "testing" keepertest "github.com/Fairblock/fairyring/testutil/keeper" "github.com/Fairblock/fairyring/testutil/nullify" @@ -26,23 +27,23 @@ func TestKeyShareReqSingle(t *testing.T) { for _, tc := range []struct { desc string - request *types.QueryKeyshareRequest - response *types.QueryKeyshareResponse + request *types.QueryKeyshareReqRequest + response *types.QueryKeyshareReqResponse err error errMsg string }{ { desc: "First item", - request: &types.QueryKeyshareRequest{ + request: &types.QueryKeyshareReqRequest{ ReqId: out[0].RequestId, }, - response: &types.QueryKeyshareResponse{ + response: &types.QueryKeyshareReqResponse{ Keyshare: &out[0], }, }, { desc: "Not found", - request: &types.QueryKeyshareRequest{ + request: &types.QueryKeyshareReqRequest{ ReqId: random.RandHex(64), }, err: status.Error(codes.NotFound, "not found"), @@ -74,7 +75,7 @@ func TestKeyshareReqAll(t *testing.T) { wctx := sdk.UnwrapSDKContext(ctx) msgs := createNGeneralEncryptedTxEntry(&keeper, ctx, 5) - resp, err := keeper.KeyshareReqAll(wctx, &types.QueryAllKeyshareRequest{ + resp, err := keeper.KeyshareReqAll(wctx, &types.QueryKeyshareReqAllRequest{ Pagination: &query.PageRequest{ Key: nil, Offset: 0, @@ -85,7 +86,7 @@ func TestKeyshareReqAll(t *testing.T) { require.NoError(t, err) require.Equal(t, len(resp.Keyshares), len(msgs)) - check := make([]types.GenEncTxExecutionQueue, len(resp.Keyshares)) + check := make([]types.IdentityExecutionQueue, len(resp.Keyshares)) for i := range resp.Keyshares { check[i] = *resp.Keyshares[i] } @@ -101,8 +102,13 @@ func TestKeyshareReqPaginated(t *testing.T) { wctx := sdk.UnwrapSDKContext(ctx) msgs := createNGeneralEncryptedTxEntry(&keeper, ctx, 5) - request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllKeyshareRequest { - return &types.QueryAllKeyshareRequest{ + request := func( + next []byte, + offset, + limit uint64, + total bool, + ) *types.QueryKeyshareReqAllRequest { + return &types.QueryKeyshareReqAllRequest{ Pagination: &query.PageRequest{ Key: next, Offset: offset, @@ -118,7 +124,7 @@ func TestKeyshareReqPaginated(t *testing.T) { require.NoError(t, err) require.LessOrEqual(t, len(resp.Keyshares), step) - check := make([]types.GenEncTxExecutionQueue, len(resp.Keyshares)) + check := make([]types.IdentityExecutionQueue, len(resp.Keyshares)) for j := range resp.Keyshares { check[j] = *resp.Keyshares[j] } @@ -137,7 +143,7 @@ func TestKeyshareReqPaginated(t *testing.T) { require.NoError(t, err) require.LessOrEqual(t, len(resp.Keyshares), step) - check := make([]types.GenEncTxExecutionQueue, len(resp.Keyshares)) + check := make([]types.IdentityExecutionQueue, len(resp.Keyshares)) for j := range resp.Keyshares { check[j] = *resp.Keyshares[j] } @@ -154,7 +160,7 @@ func TestKeyshareReqPaginated(t *testing.T) { require.NoError(t, err) require.Equal(t, len(msgs), int(resp.Pagination.Total)) - check := make([]types.GenEncTxExecutionQueue, len(resp.Keyshares)) + check := make([]types.IdentityExecutionQueue, len(resp.Keyshares)) for j := range resp.Keyshares { check[j] = *resp.Keyshares[j] } diff --git a/x/pep/keeper/query_pep_nonce.go b/x/pep/keeper/query_pep_nonce.go index 53fa3fcd..773fb612 100644 --- a/x/pep/keeper/query_pep_nonce.go +++ b/x/pep/keeper/query_pep_nonce.go @@ -15,7 +15,10 @@ import ( ) // PepNonceAll returns the list of all Nonce -func (k Keeper) PepNonceAll(c context.Context, req *types.QueryAllPepNonceRequest) (*types.QueryAllPepNonceResponse, error) { +func (k Keeper) PepNonceAll( + c context.Context, + req *types.QueryPepNonceAllRequest, +) (*types.QueryPepNonceAllResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -40,11 +43,14 @@ func (k Keeper) PepNonceAll(c context.Context, req *types.QueryAllPepNonceReques return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryAllPepNonceResponse{PepNonce: pepNonces, Pagination: pageRes}, nil + return &types.QueryPepNonceAllResponse{PepNonce: pepNonces, Pagination: pageRes}, nil } // PepNonce returns a single Nonce by address -func (k Keeper) PepNonce(c context.Context, req *types.QueryGetPepNonceRequest) (*types.QueryGetPepNonceResponse, error) { +func (k Keeper) PepNonce( + c context.Context, + req *types.QueryPepNonceRequest, +) (*types.QueryPepNonceResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -58,5 +64,5 @@ func (k Keeper) PepNonce(c context.Context, req *types.QueryGetPepNonceRequest) return nil, status.Error(codes.NotFound, "not found") } - return &types.QueryGetPepNonceResponse{PepNonce: val}, nil + return &types.QueryPepNonceResponse{PepNonce: val}, nil } diff --git a/x/pep/keeper/query_pep_nonce_test.go b/x/pep/keeper/query_pep_nonce_test.go index 2b04b527..612f8c2f 100644 --- a/x/pep/keeper/query_pep_nonce_test.go +++ b/x/pep/keeper/query_pep_nonce_test.go @@ -24,16 +24,16 @@ func TestPepNonceQuerySingle(t *testing.T) { msgs := createNPepNonce(&keeper, ctx, 2) for _, tc := range []struct { desc string - request *types.QueryGetPepNonceRequest - response *types.QueryGetPepNonceResponse + request *types.QueryPepNonceRequest + response *types.QueryPepNonceResponse err error }{ { desc: "First", - request: &types.QueryGetPepNonceRequest{ + request: &types.QueryPepNonceRequest{ Address: msgs[0].Address, }, - response: &types.QueryGetPepNonceResponse{PepNonce: msgs[0]}, + response: &types.QueryPepNonceResponse{PepNonce: msgs[0]}, }, { desc: "InvalidRequest", @@ -60,7 +60,7 @@ func TestPepNonceQueryAll(t *testing.T) { wctx := sdk.UnwrapSDKContext(ctx) msgs := createNPepNonce(&keeper, ctx, 5) - all, err := keeper.PepNonceAll(wctx, &types.QueryAllPepNonceRequest{ + all, err := keeper.PepNonceAll(wctx, &types.QueryPepNonceAllRequest{ Pagination: &query.PageRequest{ Key: nil, Offset: 0, @@ -78,8 +78,13 @@ func TestPepNonceQueryPaginated(t *testing.T) { wctx := sdk.UnwrapSDKContext(ctx) msgs := createNPepNonce(&keeper, ctx, 5) - request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllPepNonceRequest { - return &types.QueryAllPepNonceRequest{ + request := func( + next []byte, + offset, + limit uint64, + total bool, + ) *types.QueryPepNonceAllRequest { + return &types.QueryPepNonceAllRequest{ Pagination: &query.PageRequest{ Key: next, Offset: offset, diff --git a/x/pep/keeper/query_private_keyshare_req.go b/x/pep/keeper/query_private_keyshare_req.go index 1ef97a66..baf3c5b4 100644 --- a/x/pep/keeper/query_private_keyshare_req.go +++ b/x/pep/keeper/query_private_keyshare_req.go @@ -10,7 +10,10 @@ import ( "google.golang.org/grpc/status" ) -func (k Keeper) ShowPrivateKeyshareReq(goCtx context.Context, req *types.QueryShowPrivateKeyshareReqRequest) (*types.QueryShowPrivateKeyshareReqResponse, error) { +func (k Keeper) PrivateKeyshareReq( + goCtx context.Context, + req *types.QueryPrivateKeyshareReqRequest, +) (*types.QueryPrivateKeyshareReqResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -22,7 +25,7 @@ func (k Keeper) ShowPrivateKeyshareReq(goCtx context.Context, req *types.QuerySh return nil, errors.New("entry not found") } - return &types.QueryShowPrivateKeyshareReqResponse{ + return &types.QueryPrivateKeyshareReqResponse{ Creator: val.Creator, ReqId: val.ReqId, Pubkey: val.Pubkey, diff --git a/x/pep/keeper/query_private_keyshare_req_test.go b/x/pep/keeper/query_private_keyshare_req_test.go index 9a596def..3d6b90b0 100644 --- a/x/pep/keeper/query_private_keyshare_req_test.go +++ b/x/pep/keeper/query_private_keyshare_req_test.go @@ -1,13 +1,14 @@ package keeper_test import ( + "strconv" + "testing" + "github.com/Fairblock/fairyring/testutil/random" "github.com/Fairblock/fairyring/testutil/sample" types2 "github.com/Fairblock/fairyring/x/common/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "strconv" - "testing" keepertest "github.com/Fairblock/fairyring/testutil/keeper" "github.com/Fairblock/fairyring/testutil/nullify" @@ -19,7 +20,7 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func TestShowPrivateKeyshareReq(t *testing.T) { +func TestPrivateKeyshareReq(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) @@ -34,16 +35,16 @@ func TestShowPrivateKeyshareReq(t *testing.T) { for _, tc := range []struct { desc string - request *types.QueryShowPrivateKeyshareReqRequest - response *types.QueryShowPrivateKeyshareReqResponse + request *types.QueryPrivateKeyshareReqRequest + response *types.QueryPrivateKeyshareReqResponse err error }{ { desc: "ValidRequest", - request: &types.QueryShowPrivateKeyshareReqRequest{ + request: &types.QueryPrivateKeyshareReqRequest{ ReqId: req.ReqId, }, - response: &types.QueryShowPrivateKeyshareReqResponse{ + response: &types.QueryPrivateKeyshareReqResponse{ Creator: req.Creator, ReqId: req.ReqId, Pubkey: req.Pubkey, @@ -57,7 +58,7 @@ func TestShowPrivateKeyshareReq(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.ShowPrivateKeyshareReq(wctx, tc.request) + response, err := keeper.PrivateKeyshareReq(wctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) } else { diff --git a/x/pep/types/aggregated_key_share.pb.go b/x/pep/types/aggregated_key_share.pb.go index 45698f3c..b4da6067 100644 --- a/x/pep/types/aggregated_key_share.pb.go +++ b/x/pep/types/aggregated_key_share.pb.go @@ -22,6 +22,8 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// AggregatedKeyShare defines the structure to store +// the aggregated keyshare of a particular identity type AggregatedKeyShare struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` diff --git a/x/pep/types/encrypted_tx.pb.go b/x/pep/types/encrypted_tx.pb.go index 22432a96..cc98a600 100644 --- a/x/pep/types/encrypted_tx.pb.go +++ b/x/pep/types/encrypted_tx.pb.go @@ -24,13 +24,15 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// EncryptedTx defines the structure to store an encrypted transaction +// by execution height type EncryptedTx struct { - TargetHeight uint64 `protobuf:"varint,1,opt,name=targetHeight,proto3" json:"targetHeight,omitempty"` + TargetHeight uint64 `protobuf:"varint,1,opt,name=target_height,json=targetHeight,proto3" json:"target_height,omitempty"` Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` Creator string `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"` - ChargedGas *types.Coin `protobuf:"bytes,5,opt,name=chargedGas,proto3" json:"chargedGas,omitempty"` - ProcessedAtChainHeight uint64 `protobuf:"varint,6,opt,name=processedAtChainHeight,proto3" json:"processedAtChainHeight,omitempty"` + ChargedGas *types.Coin `protobuf:"bytes,5,opt,name=charged_gas,json=chargedGas,proto3" json:"charged_gas,omitempty"` + ProcessedAtChainHeight uint64 `protobuf:"varint,6,opt,name=processed_at_chain_height,json=processedAtChainHeight,proto3" json:"processed_at_chain_height,omitempty"` Expired bool `protobuf:"varint,7,opt,name=expired,proto3" json:"expired,omitempty"` } @@ -116,8 +118,9 @@ func (m *EncryptedTx) GetExpired() bool { return false } +// EncryptedTxArray defines a list of EncryptedTx type EncryptedTxArray struct { - EncryptedTx []EncryptedTx `protobuf:"bytes,1,rep,name=encryptedTx,proto3" json:"encryptedTx"` + EncryptedTx []EncryptedTx `protobuf:"bytes,1,rep,name=encrypted_tx,json=encryptedTx,proto3" json:"encrypted_tx"` } func (m *EncryptedTxArray) Reset() { *m = EncryptedTxArray{} } @@ -160,12 +163,14 @@ func (m *EncryptedTxArray) GetEncryptedTx() []EncryptedTx { return nil } +// GeneralEncryptedTx defines the structure to store a +// general encrypted transaction by identity type GeneralEncryptedTx struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` Creator string `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"` - ChargedGas *types.Coin `protobuf:"bytes,5,opt,name=chargedGas,proto3" json:"chargedGas,omitempty"` + ChargedGas *types.Coin `protobuf:"bytes,5,opt,name=charged_gas,json=chargedGas,proto3" json:"charged_gas,omitempty"` } func (m *GeneralEncryptedTx) Reset() { *m = GeneralEncryptedTx{} } @@ -236,8 +241,9 @@ func (m *GeneralEncryptedTx) GetChargedGas() *types.Coin { return nil } +// GeneralEncryptedTxArray defines a list of GeneralEncryptedTx type GeneralEncryptedTxArray struct { - EncryptedTx []GeneralEncryptedTx `protobuf:"bytes,1,rep,name=encryptedTx,proto3" json:"encryptedTx"` + EncryptedTx []GeneralEncryptedTx `protobuf:"bytes,1,rep,name=encrypted_tx,json=encryptedTx,proto3" json:"encrypted_tx"` } func (m *GeneralEncryptedTxArray) Reset() { *m = GeneralEncryptedTxArray{} } @@ -280,7 +286,10 @@ func (m *GeneralEncryptedTxArray) GetEncryptedTx() []GeneralEncryptedTx { return nil } -type GenEncTxExecutionQueue struct { +// IdentityExecutionQueue defines the structure to queue up +// identities that have aggregated keyshares available and +// are ready to execute any associated contracts or encrypted transactions +type IdentityExecutionQueue struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` @@ -289,18 +298,18 @@ type GenEncTxExecutionQueue struct { AggrKeyshare string `protobuf:"bytes,6,opt,name=aggr_keyshare,json=aggrKeyshare,proto3" json:"aggr_keyshare,omitempty"` } -func (m *GenEncTxExecutionQueue) Reset() { *m = GenEncTxExecutionQueue{} } -func (m *GenEncTxExecutionQueue) String() string { return proto.CompactTextString(m) } -func (*GenEncTxExecutionQueue) ProtoMessage() {} -func (*GenEncTxExecutionQueue) Descriptor() ([]byte, []int) { +func (m *IdentityExecutionQueue) Reset() { *m = IdentityExecutionQueue{} } +func (m *IdentityExecutionQueue) String() string { return proto.CompactTextString(m) } +func (*IdentityExecutionQueue) ProtoMessage() {} +func (*IdentityExecutionQueue) Descriptor() ([]byte, []int) { return fileDescriptor_7c124d687cde8326, []int{4} } -func (m *GenEncTxExecutionQueue) XXX_Unmarshal(b []byte) error { +func (m *IdentityExecutionQueue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *GenEncTxExecutionQueue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *IdentityExecutionQueue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_GenEncTxExecutionQueue.Marshal(b, m, deterministic) + return xxx_messageInfo_IdentityExecutionQueue.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -310,54 +319,54 @@ func (m *GenEncTxExecutionQueue) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *GenEncTxExecutionQueue) XXX_Merge(src proto.Message) { - xxx_messageInfo_GenEncTxExecutionQueue.Merge(m, src) +func (m *IdentityExecutionQueue) XXX_Merge(src proto.Message) { + xxx_messageInfo_IdentityExecutionQueue.Merge(m, src) } -func (m *GenEncTxExecutionQueue) XXX_Size() int { +func (m *IdentityExecutionQueue) XXX_Size() int { return m.Size() } -func (m *GenEncTxExecutionQueue) XXX_DiscardUnknown() { - xxx_messageInfo_GenEncTxExecutionQueue.DiscardUnknown(m) +func (m *IdentityExecutionQueue) XXX_DiscardUnknown() { + xxx_messageInfo_IdentityExecutionQueue.DiscardUnknown(m) } -var xxx_messageInfo_GenEncTxExecutionQueue proto.InternalMessageInfo +var xxx_messageInfo_IdentityExecutionQueue proto.InternalMessageInfo -func (m *GenEncTxExecutionQueue) GetCreator() string { +func (m *IdentityExecutionQueue) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *GenEncTxExecutionQueue) GetRequestId() string { +func (m *IdentityExecutionQueue) GetRequestId() string { if m != nil { return m.RequestId } return "" } -func (m *GenEncTxExecutionQueue) GetIdentity() string { +func (m *IdentityExecutionQueue) GetIdentity() string { if m != nil { return m.Identity } return "" } -func (m *GenEncTxExecutionQueue) GetPubkey() string { +func (m *IdentityExecutionQueue) GetPubkey() string { if m != nil { return m.Pubkey } return "" } -func (m *GenEncTxExecutionQueue) GetTxList() *GeneralEncryptedTxArray { +func (m *IdentityExecutionQueue) GetTxList() *GeneralEncryptedTxArray { if m != nil { return m.TxList } return nil } -func (m *GenEncTxExecutionQueue) GetAggrKeyshare() string { +func (m *IdentityExecutionQueue) GetAggrKeyshare() string { if m != nil { return m.AggrKeyshare } @@ -369,46 +378,47 @@ func init() { proto.RegisterType((*EncryptedTxArray)(nil), "fairyring.pep.EncryptedTxArray") proto.RegisterType((*GeneralEncryptedTx)(nil), "fairyring.pep.GeneralEncryptedTx") proto.RegisterType((*GeneralEncryptedTxArray)(nil), "fairyring.pep.GeneralEncryptedTxArray") - proto.RegisterType((*GenEncTxExecutionQueue)(nil), "fairyring.pep.GenEncTxExecutionQueue") + proto.RegisterType((*IdentityExecutionQueue)(nil), "fairyring.pep.IdentityExecutionQueue") } func init() { proto.RegisterFile("fairyring/pep/encrypted_tx.proto", fileDescriptor_7c124d687cde8326) } var fileDescriptor_7c124d687cde8326 = []byte{ - // 526 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x93, 0xc1, 0x6e, 0xd3, 0x40, - 0x10, 0x86, 0xb3, 0x4d, 0x9a, 0x34, 0x9b, 0x56, 0x42, 0xab, 0x2a, 0x98, 0x48, 0x18, 0x13, 0x24, - 0x14, 0x71, 0xb0, 0xd5, 0x22, 0x21, 0x71, 0x42, 0x4d, 0x09, 0xa1, 0x82, 0x0b, 0x56, 0xc5, 0x81, - 0x4b, 0xb4, 0xb6, 0x07, 0x67, 0x95, 0x74, 0xd7, 0xec, 0xae, 0x91, 0x7d, 0xe5, 0x09, 0x78, 0x13, - 0x5e, 0xa3, 0xc7, 0x1e, 0x39, 0x21, 0x94, 0x1c, 0x79, 0x09, 0x94, 0xb5, 0xd3, 0x3a, 0x6d, 0x11, - 0xc7, 0xde, 0xfc, 0xff, 0x33, 0xb3, 0xfa, 0xe7, 0x93, 0x07, 0x3b, 0x9f, 0x29, 0x93, 0xb9, 0x64, - 0x3c, 0xf6, 0x12, 0x48, 0x3c, 0xe0, 0xa1, 0xcc, 0x13, 0x0d, 0xd1, 0x44, 0x67, 0x6e, 0x22, 0x85, - 0x16, 0x64, 0xef, 0xb2, 0xc3, 0x4d, 0x20, 0xe9, 0xed, 0xc7, 0x22, 0x16, 0xa6, 0xe2, 0xad, 0xbe, - 0x8a, 0xa6, 0x9e, 0x1d, 0x0a, 0x75, 0x26, 0x94, 0x17, 0x50, 0x05, 0xde, 0xd7, 0x83, 0x00, 0x34, - 0x3d, 0xf0, 0x42, 0xc1, 0x78, 0x51, 0xef, 0x7f, 0xdb, 0xc2, 0x9d, 0xd1, 0xfa, 0xed, 0xd3, 0x8c, - 0xf4, 0xf1, 0xae, 0xa6, 0x32, 0x06, 0xfd, 0x16, 0x58, 0x3c, 0xd5, 0x16, 0x72, 0xd0, 0xa0, 0xe1, - 0x6f, 0x78, 0x64, 0x1f, 0x6f, 0x33, 0x1e, 0x41, 0x66, 0x6d, 0x99, 0x62, 0x21, 0x08, 0xc1, 0x8d, - 0x88, 0x6a, 0x6a, 0xd5, 0x1d, 0x34, 0x68, 0xfb, 0xe6, 0x9b, 0x58, 0xb8, 0x15, 0x4a, 0xa0, 0x5a, - 0x48, 0xab, 0x61, 0xec, 0xb5, 0x24, 0x2f, 0x31, 0x0e, 0xa7, 0xab, 0x47, 0xa3, 0x31, 0x55, 0xd6, - 0xb6, 0x83, 0x06, 0x9d, 0xc3, 0x07, 0x6e, 0x11, 0xd6, 0x5d, 0x85, 0x75, 0xcb, 0xb0, 0xee, 0xb1, - 0x60, 0xdc, 0xaf, 0x34, 0x93, 0x17, 0xb8, 0x9b, 0x48, 0x11, 0x82, 0x52, 0x10, 0x1d, 0xe9, 0xe3, - 0x29, 0x65, 0xbc, 0x0c, 0xdb, 0x34, 0x79, 0xfe, 0x51, 0x5d, 0x85, 0x81, 0x2c, 0x61, 0x12, 0x22, - 0xab, 0xe5, 0xa0, 0xc1, 0x8e, 0xbf, 0x96, 0xfd, 0x8f, 0xf8, 0x5e, 0x85, 0xc1, 0x91, 0x94, 0x34, - 0x27, 0x43, 0xdc, 0x81, 0x2b, 0xcf, 0x42, 0x4e, 0x7d, 0xd0, 0x39, 0xec, 0xb9, 0x1b, 0xcc, 0xdd, - 0xca, 0xd4, 0xb0, 0x71, 0xfe, 0xeb, 0x51, 0xcd, 0xaf, 0x0e, 0xf5, 0x7f, 0x20, 0x4c, 0xc6, 0xc0, - 0x41, 0xd2, 0x79, 0x95, 0x71, 0x0f, 0xef, 0xb0, 0x08, 0xb8, 0x66, 0x3a, 0x37, 0x7c, 0xdb, 0xfe, - 0xa5, 0xbe, 0x63, 0xb6, 0xfd, 0x08, 0xdf, 0xbf, 0x19, 0xb8, 0x00, 0x72, 0x72, 0x1b, 0x90, 0xc7, - 0xd7, 0x80, 0xdc, 0x1c, 0xbe, 0x8d, 0xcb, 0x1f, 0x84, 0xbb, 0x63, 0xe0, 0x23, 0x1e, 0x9e, 0x66, - 0xa3, 0x0c, 0xc2, 0x54, 0x33, 0xc1, 0x3f, 0xa4, 0x90, 0x42, 0x75, 0x2b, 0xb4, 0xb9, 0xd5, 0x43, - 0x8c, 0x25, 0x7c, 0x49, 0x41, 0xe9, 0x09, 0x8b, 0x0c, 0x9e, 0xb6, 0xdf, 0x2e, 0x9d, 0x93, 0x68, - 0x03, 0x6a, 0xfd, 0x1a, 0xd4, 0x2e, 0x6e, 0x26, 0x69, 0x30, 0x83, 0xbc, 0x24, 0x55, 0x2a, 0xf2, - 0x0a, 0xb7, 0x74, 0x36, 0x99, 0x33, 0xa5, 0x4b, 0x4a, 0x4f, 0xff, 0xbb, 0x8e, 0x61, 0xe1, 0x37, - 0x75, 0xf6, 0x9e, 0x29, 0x4d, 0x9e, 0xe0, 0x3d, 0x1a, 0xc7, 0x72, 0x32, 0x83, 0x5c, 0x4d, 0xa9, - 0x04, 0xf3, 0x07, 0xb6, 0xfd, 0xdd, 0x95, 0xf9, 0xae, 0xf4, 0x86, 0xaf, 0xcf, 0x17, 0x36, 0xba, - 0x58, 0xd8, 0xe8, 0xf7, 0xc2, 0x46, 0xdf, 0x97, 0x76, 0xed, 0x62, 0x69, 0xd7, 0x7e, 0x2e, 0xed, - 0xda, 0xa7, 0x67, 0x31, 0xd3, 0xd3, 0x34, 0x70, 0x43, 0x71, 0xe6, 0xbd, 0xa1, 0x4c, 0x06, 0x73, - 0x11, 0xce, 0xbc, 0xab, 0xc3, 0xcf, 0xcc, 0xe9, 0xeb, 0x3c, 0x01, 0x15, 0x34, 0xcd, 0xbd, 0x3e, - 0xff, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x64, 0xa5, 0xcd, 0xa6, 0x18, 0x04, 0x00, 0x00, + // 539 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x94, 0xc1, 0x6e, 0xd3, 0x30, + 0x18, 0xc7, 0xeb, 0xb5, 0x6b, 0x57, 0xb7, 0x93, 0x90, 0x35, 0x95, 0xac, 0x12, 0x21, 0x14, 0x09, + 0x55, 0x1c, 0x12, 0x6d, 0x9c, 0xe0, 0x82, 0xb6, 0x32, 0xc6, 0x80, 0x0b, 0x11, 0x12, 0x12, 0x97, + 0xc8, 0x49, 0x3e, 0x12, 0xab, 0x5d, 0x1c, 0x6c, 0x07, 0x25, 0x4f, 0xc0, 0x95, 0x47, 0xe1, 0x31, + 0x76, 0xdc, 0x91, 0x13, 0x42, 0xed, 0x91, 0x97, 0x40, 0x71, 0xd2, 0xae, 0xdd, 0x26, 0x71, 0xdc, + 0xcd, 0xff, 0xff, 0xf7, 0xd9, 0xfa, 0x7f, 0x3f, 0xd9, 0xc6, 0xd6, 0x17, 0xca, 0x44, 0x21, 0x58, + 0x12, 0x39, 0x29, 0xa4, 0x0e, 0x24, 0x81, 0x28, 0x52, 0x05, 0xa1, 0xa7, 0x72, 0x3b, 0x15, 0x5c, + 0x71, 0xb2, 0xbb, 0xea, 0xb0, 0x53, 0x48, 0x87, 0x7b, 0x11, 0x8f, 0xb8, 0xae, 0x38, 0xe5, 0xaa, + 0x6a, 0x1a, 0x9a, 0x01, 0x97, 0xe7, 0x5c, 0x3a, 0x3e, 0x95, 0xe0, 0x7c, 0x3b, 0xf0, 0x41, 0xd1, + 0x03, 0x27, 0xe0, 0x2c, 0xa9, 0xea, 0xa3, 0xef, 0x5b, 0xb8, 0x77, 0xb2, 0x3c, 0xfb, 0x63, 0x4e, + 0x1e, 0xe3, 0x5d, 0x45, 0x45, 0x04, 0xca, 0x8b, 0x81, 0x45, 0xb1, 0x32, 0x90, 0x85, 0xc6, 0x2d, + 0xb7, 0x5f, 0x99, 0x6f, 0xb4, 0x47, 0xf6, 0xf0, 0x36, 0x4b, 0x42, 0xc8, 0x8d, 0x2d, 0x5d, 0xac, + 0x04, 0x21, 0xb8, 0x15, 0x52, 0x45, 0x8d, 0xa6, 0x85, 0xc6, 0x5d, 0x57, 0xaf, 0x89, 0x81, 0x3b, + 0x81, 0x00, 0xaa, 0xb8, 0x30, 0x5a, 0xda, 0x5e, 0x4a, 0xf2, 0x02, 0xf7, 0x82, 0xb8, 0x3c, 0x34, + 0xf4, 0x22, 0x2a, 0x8d, 0x6d, 0x0b, 0x8d, 0x7b, 0x87, 0xfb, 0x76, 0x15, 0xd7, 0x2e, 0xe3, 0xda, + 0x75, 0x5c, 0x7b, 0xc2, 0x59, 0xe2, 0xe2, 0xba, 0xfb, 0x94, 0x4a, 0xf2, 0x1c, 0xef, 0xa7, 0x82, + 0x07, 0x20, 0x25, 0x84, 0x1e, 0x55, 0x5e, 0x10, 0x53, 0x96, 0x2c, 0x03, 0xb7, 0x75, 0xa6, 0xc1, + 0xaa, 0xe1, 0x48, 0x4d, 0xca, 0x72, 0x1d, 0xdd, 0xc0, 0x1d, 0xc8, 0x53, 0x26, 0x20, 0x34, 0x3a, + 0x16, 0x1a, 0xef, 0xb8, 0x4b, 0x39, 0xfa, 0x84, 0xef, 0xad, 0x81, 0x38, 0x12, 0x82, 0x16, 0x64, + 0x82, 0xfb, 0xeb, 0xe0, 0x0d, 0x64, 0x35, 0xc7, 0xbd, 0xc3, 0xa1, 0xbd, 0x41, 0xde, 0x5e, 0xdb, + 0x76, 0xdc, 0xba, 0xf8, 0xfd, 0xb0, 0xe1, 0xf6, 0xe0, 0xca, 0x1a, 0xfd, 0x44, 0x98, 0x9c, 0x42, + 0x02, 0x82, 0xce, 0xd6, 0x49, 0x0f, 0xf1, 0x0e, 0x0b, 0x21, 0x51, 0x4c, 0x15, 0x1a, 0x72, 0xd7, + 0x5d, 0xe9, 0xbb, 0x06, 0x3c, 0x02, 0x7c, 0xff, 0x66, 0xe2, 0x0a, 0xc9, 0xdb, 0x5b, 0x91, 0x3c, + 0xba, 0x86, 0xe4, 0xe6, 0xee, 0xdb, 0xc8, 0xfc, 0x45, 0x78, 0x70, 0x56, 0xcf, 0x7c, 0x92, 0x43, + 0x90, 0x29, 0xc6, 0x93, 0x0f, 0x19, 0x64, 0xb0, 0x3e, 0x17, 0xda, 0x9c, 0xeb, 0x01, 0xc6, 0x02, + 0xbe, 0x66, 0x20, 0x95, 0xc7, 0x42, 0x0d, 0xa8, 0xeb, 0x76, 0x6b, 0xe7, 0x2c, 0xdc, 0xc0, 0xda, + 0xbc, 0x86, 0x75, 0x80, 0xdb, 0x69, 0xe6, 0x4f, 0xa1, 0xa8, 0x59, 0xd5, 0x8a, 0xbc, 0xc4, 0x1d, + 0x95, 0x7b, 0x33, 0x26, 0x55, 0x8d, 0xe9, 0xc9, 0x7f, 0xc7, 0xd1, 0x30, 0xdc, 0xb6, 0xca, 0xdf, + 0x33, 0xa9, 0xca, 0x57, 0x43, 0xa3, 0x48, 0x78, 0x53, 0x28, 0x64, 0x4c, 0x05, 0xe8, 0x4b, 0xd8, + 0x75, 0xfb, 0xa5, 0xf9, 0xae, 0xf6, 0x8e, 0x5f, 0x5d, 0xcc, 0x4d, 0x74, 0x39, 0x37, 0xd1, 0x9f, + 0xb9, 0x89, 0x7e, 0x2c, 0xcc, 0xc6, 0xe5, 0xc2, 0x6c, 0xfc, 0x5a, 0x98, 0x8d, 0xcf, 0x4f, 0x23, + 0xa6, 0xe2, 0xcc, 0xb7, 0x03, 0x7e, 0xee, 0xbc, 0xa6, 0x4c, 0xf8, 0x33, 0x1e, 0x4c, 0x9d, 0xab, + 0x0f, 0x20, 0xd7, 0x5f, 0x80, 0x2a, 0x52, 0x90, 0x7e, 0x5b, 0xbf, 0xdb, 0x67, 0xff, 0x02, 0x00, + 0x00, 0xff, 0xff, 0xdf, 0x47, 0x5d, 0x37, 0x20, 0x04, 0x00, 0x00, } func (m *EncryptedTx) Marshal() (dAtA []byte, err error) { @@ -620,7 +630,7 @@ func (m *GeneralEncryptedTxArray) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *GenEncTxExecutionQueue) Marshal() (dAtA []byte, err error) { +func (m *IdentityExecutionQueue) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -630,12 +640,12 @@ func (m *GenEncTxExecutionQueue) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GenEncTxExecutionQueue) MarshalTo(dAtA []byte) (int, error) { +func (m *IdentityExecutionQueue) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GenEncTxExecutionQueue) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *IdentityExecutionQueue) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -792,7 +802,7 @@ func (m *GeneralEncryptedTxArray) Size() (n int) { return n } -func (m *GenEncTxExecutionQueue) Size() (n int) { +func (m *IdentityExecutionQueue) Size() (n int) { if m == nil { return 0 } @@ -1427,7 +1437,7 @@ func (m *GeneralEncryptedTxArray) Unmarshal(dAtA []byte) error { } return nil } -func (m *GenEncTxExecutionQueue) Unmarshal(dAtA []byte) error { +func (m *IdentityExecutionQueue) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1450,10 +1460,10 @@ func (m *GenEncTxExecutionQueue) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GenEncTxExecutionQueue: wiretype end group for non-group") + return fmt.Errorf("proto: IdentityExecutionQueue: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GenEncTxExecutionQueue: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: IdentityExecutionQueue: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/pep/types/genesis.pb.go b/x/pep/types/genesis.pb.go index a48a4264..b3171fad 100644 --- a/x/pep/types/genesis.pb.go +++ b/x/pep/types/genesis.pb.go @@ -28,11 +28,10 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // GenesisState defines the pep module's genesis state. type GenesisState struct { // params defines all the parameters of the module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - EncryptedTxArray []EncryptedTxArray `protobuf:"bytes,3,rep,name=encryptedTxArray,proto3" json:"encryptedTxArray"` - PepNonceList []PepNonce `protobuf:"bytes,4,rep,name=pepNonceList,proto3" json:"pepNonceList"` - // this line is used by starport scaffolding # genesis/proto/state + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` + EncryptedTxArray []EncryptedTxArray `protobuf:"bytes,3,rep,name=encryptedTxArray,proto3" json:"encryptedTxArray"` + PepNonceList []PepNonce `protobuf:"bytes,4,rep,name=pepNonceList,proto3" json:"pepNonceList"` AggregatedKeyShareList []AggregatedKeyShare `protobuf:"bytes,6,rep,name=aggregatedKeyShareList,proto3" json:"aggregatedKeyShareList"` ActivePubKey types.ActivePublicKey `protobuf:"bytes,7,opt,name=activePubKey,proto3" json:"activePubKey"` QueuedPubKey types.QueuedPublicKey `protobuf:"bytes,8,opt,name=queuedPubKey,proto3" json:"queuedPubKey"` diff --git a/x/pep/types/packet.pb.go b/x/pep/types/packet.pb.go deleted file mode 100644 index 2010eea3..00000000 --- a/x/pep/types/packet.pb.go +++ /dev/null @@ -1,502 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fairyring/pep/packet.proto - -package types - -import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - - proto "github.com/cosmos/gogoproto/proto" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// 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 - -type PepPacketData struct { - // Types that are valid to be assigned to Packet: - // - // *PepPacketData_NoData - Packet isPepPacketData_Packet `protobuf_oneof:"packet"` -} - -func (m *PepPacketData) Reset() { *m = PepPacketData{} } -func (m *PepPacketData) String() string { return proto.CompactTextString(m) } -func (*PepPacketData) ProtoMessage() {} -func (*PepPacketData) Descriptor() ([]byte, []int) { - return fileDescriptor_69dc34a7ea22bf8e, []int{0} -} -func (m *PepPacketData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PepPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PepPacketData.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *PepPacketData) XXX_Merge(src proto.Message) { - xxx_messageInfo_PepPacketData.Merge(m, src) -} -func (m *PepPacketData) XXX_Size() int { - return m.Size() -} -func (m *PepPacketData) XXX_DiscardUnknown() { - xxx_messageInfo_PepPacketData.DiscardUnknown(m) -} - -var xxx_messageInfo_PepPacketData proto.InternalMessageInfo - -type isPepPacketData_Packet interface { - isPepPacketData_Packet() - MarshalTo([]byte) (int, error) - Size() int -} - -type PepPacketData_NoData struct { - NoData *NoData `protobuf:"bytes,1,opt,name=noData,proto3,oneof" json:"noData,omitempty"` -} - -func (*PepPacketData_NoData) isPepPacketData_Packet() {} - -func (m *PepPacketData) GetPacket() isPepPacketData_Packet { - if m != nil { - return m.Packet - } - return nil -} - -func (m *PepPacketData) GetNoData() *NoData { - if x, ok := m.GetPacket().(*PepPacketData_NoData); ok { - return x.NoData - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*PepPacketData) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*PepPacketData_NoData)(nil), - } -} - -type NoData struct { -} - -func (m *NoData) Reset() { *m = NoData{} } -func (m *NoData) String() string { return proto.CompactTextString(m) } -func (*NoData) ProtoMessage() {} -func (*NoData) Descriptor() ([]byte, []int) { - return fileDescriptor_69dc34a7ea22bf8e, []int{1} -} -func (m *NoData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *NoData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_NoData.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *NoData) XXX_Merge(src proto.Message) { - xxx_messageInfo_NoData.Merge(m, src) -} -func (m *NoData) XXX_Size() int { - return m.Size() -} -func (m *NoData) XXX_DiscardUnknown() { - xxx_messageInfo_NoData.DiscardUnknown(m) -} - -var xxx_messageInfo_NoData proto.InternalMessageInfo - -func init() { - proto.RegisterType((*PepPacketData)(nil), "fairyring.pep.PepPacketData") - proto.RegisterType((*NoData)(nil), "fairyring.pep.NoData") -} - -func init() { proto.RegisterFile("fairyring/pep/packet.proto", fileDescriptor_69dc34a7ea22bf8e) } - -var fileDescriptor_69dc34a7ea22bf8e = []byte{ - // 180 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0x4b, 0xcc, 0x2c, - 0xaa, 0x2c, 0xca, 0xcc, 0x4b, 0xd7, 0x2f, 0x48, 0x2d, 0xd0, 0x2f, 0x48, 0x4c, 0xce, 0x4e, 0x2d, - 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x85, 0xcb, 0xe9, 0x15, 0xa4, 0x16, 0x28, 0x79, - 0x71, 0xf1, 0x06, 0xa4, 0x16, 0x04, 0x80, 0x55, 0xb8, 0x24, 0x96, 0x24, 0x0a, 0xe9, 0x73, 0xb1, - 0xe5, 0xe5, 0x83, 0x58, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xdc, 0x46, 0xa2, 0x7a, 0x28, 0x1a, 0xf4, - 0xfc, 0xc0, 0x92, 0x1e, 0x0c, 0x41, 0x50, 0x65, 0x4e, 0x1c, 0x5c, 0x6c, 0x10, 0x0b, 0x94, 0x38, - 0xb8, 0xd8, 0x20, 0xb2, 0x4e, 0x2e, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, - 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, - 0xa5, 0x95, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0xef, 0x96, 0x98, 0x59, - 0x94, 0x94, 0x93, 0x9f, 0x9c, 0xad, 0x8f, 0x70, 0x6f, 0x05, 0xd8, 0xc5, 0x25, 0x95, 0x05, 0xa9, - 0xc5, 0x49, 0x6c, 0x60, 0x17, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x5d, 0x9d, 0x59, 0xbf, - 0xcf, 0x00, 0x00, 0x00, -} - -func (m *PepPacketData) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PepPacketData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PepPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Packet != nil { - { - size := m.Packet.Size() - i -= size - if _, err := m.Packet.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - return len(dAtA) - i, nil -} - -func (m *PepPacketData_NoData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PepPacketData_NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.NoData != nil { - { - size, err := m.NoData.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintPacket(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} -func (m *NoData) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *NoData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func encodeVarintPacket(dAtA []byte, offset int, v uint64) int { - offset -= sovPacket(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *PepPacketData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Packet != nil { - n += m.Packet.Size() - } - return n -} - -func (m *PepPacketData_NoData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.NoData != nil { - l = m.NoData.Size() - n += 1 + l + sovPacket(uint64(l)) - } - return n -} -func (m *NoData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func sovPacket(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozPacket(x uint64) (n int) { - return sovPacket(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *PepPacketData) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPacket - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PepPacketData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PepPacketData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NoData", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPacket - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthPacket - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthPacket - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &NoData{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Packet = &PepPacketData_NoData{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipPacket(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPacket - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *NoData) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowPacket - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: NoData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: NoData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipPacket(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPacket - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipPacket(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPacket - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPacket - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowPacket - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthPacket - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupPacket - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthPacket - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthPacket = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowPacket = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupPacket = fmt.Errorf("proto: unexpected end of group") -) diff --git a/x/pep/types/params.pb.go b/x/pep/types/params.pb.go index ef59726d..7865c663 100644 --- a/x/pep/types/params.pb.go +++ b/x/pep/types/params.pb.go @@ -27,6 +27,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Params defines the parameters for the module. type Params struct { + // option (gogoproto.equal) = true; KeyshareChannelId string `protobuf:"bytes,1,opt,name=keyshare_channel_id,json=keyshareChannelId,proto3" json:"keyshare_channel_id,omitempty" yaml:"keyshare_channel_id"` IsSourceChain bool `protobuf:"varint,2,opt,name=is_source_chain,json=isSourceChain,proto3" json:"is_source_chain,omitempty" yaml:"is_source_chain"` TrustedCounterParties []*TrustedCounterParty `protobuf:"bytes,3,rep,name=trusted_counter_parties,json=trustedCounterParties,proto3" json:"trusted_counter_parties,omitempty"` @@ -110,6 +111,9 @@ func (m *Params) GetPrivateKeysharePrice() *types.Coin { return nil } +// TrustedCounterParty defines the structure to store the ibc info +// of the source chain (fairyring) to reliably fetch active keys and +// aggregated/encrypted keyshares type TrustedCounterParty struct { ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` diff --git a/x/pep/types/pep_nonce.pb.go b/x/pep/types/pep_nonce.pb.go index fc341a76..0e8f43aa 100644 --- a/x/pep/types/pep_nonce.pb.go +++ b/x/pep/types/pep_nonce.pb.go @@ -22,6 +22,8 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// PepNonce defines the nonce of an account to send encrypted transactions. +// It is incremanted seperately from the nonce maintained by the auth module type PepNonce struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` diff --git a/x/pep/types/query.pb.go b/x/pep/types/query.pb.go index 7044ff6c..aa8416a1 100644 --- a/x/pep/types/query.pb.go +++ b/x/pep/types/query.pb.go @@ -7,7 +7,6 @@ import ( context "context" fmt "fmt" types "github.com/Fairblock/fairyring/x/common/types" - _ "github.com/cosmos/cosmos-sdk/types" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" _ "github.com/cosmos/gogoproto/gogoproto" @@ -116,22 +115,23 @@ func (m *QueryParamsResponse) GetParams() Params { return Params{} } -type QueryKeyshareRequest struct { +// QueryKeyshareReqRequest is request type for the Query/KeyshareReq RPC method. +type QueryKeyshareReqRequest struct { ReqId string `protobuf:"bytes,1,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } -func (m *QueryKeyshareRequest) Reset() { *m = QueryKeyshareRequest{} } -func (m *QueryKeyshareRequest) String() string { return proto.CompactTextString(m) } -func (*QueryKeyshareRequest) ProtoMessage() {} -func (*QueryKeyshareRequest) Descriptor() ([]byte, []int) { +func (m *QueryKeyshareReqRequest) Reset() { *m = QueryKeyshareReqRequest{} } +func (m *QueryKeyshareReqRequest) String() string { return proto.CompactTextString(m) } +func (*QueryKeyshareReqRequest) ProtoMessage() {} +func (*QueryKeyshareReqRequest) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{2} } -func (m *QueryKeyshareRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryKeyshareReqRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryKeyshareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryKeyshareReqRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryKeyshareRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryKeyshareReqRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -141,41 +141,42 @@ func (m *QueryKeyshareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *QueryKeyshareRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryKeyshareRequest.Merge(m, src) +func (m *QueryKeyshareReqRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryKeyshareReqRequest.Merge(m, src) } -func (m *QueryKeyshareRequest) XXX_Size() int { +func (m *QueryKeyshareReqRequest) XXX_Size() int { return m.Size() } -func (m *QueryKeyshareRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryKeyshareRequest.DiscardUnknown(m) +func (m *QueryKeyshareReqRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryKeyshareReqRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryKeyshareRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryKeyshareReqRequest proto.InternalMessageInfo -func (m *QueryKeyshareRequest) GetReqId() string { +func (m *QueryKeyshareReqRequest) GetReqId() string { if m != nil { return m.ReqId } return "" } -type QueryKeyshareResponse struct { - Keyshare *GenEncTxExecutionQueue `protobuf:"bytes,1,opt,name=keyshare,proto3" json:"keyshare,omitempty"` +// QueryKeyshareReqResponse is response type for the Query/KeyshareReq RPC method. +type QueryKeyshareReqResponse struct { + Keyshare *IdentityExecutionQueue `protobuf:"bytes,1,opt,name=keyshare,proto3" json:"keyshare,omitempty"` } -func (m *QueryKeyshareResponse) Reset() { *m = QueryKeyshareResponse{} } -func (m *QueryKeyshareResponse) String() string { return proto.CompactTextString(m) } -func (*QueryKeyshareResponse) ProtoMessage() {} -func (*QueryKeyshareResponse) Descriptor() ([]byte, []int) { +func (m *QueryKeyshareReqResponse) Reset() { *m = QueryKeyshareReqResponse{} } +func (m *QueryKeyshareReqResponse) String() string { return proto.CompactTextString(m) } +func (*QueryKeyshareReqResponse) ProtoMessage() {} +func (*QueryKeyshareReqResponse) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{3} } -func (m *QueryKeyshareResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryKeyshareReqResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryKeyshareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryKeyshareReqResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryKeyshareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryKeyshareReqResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -185,41 +186,42 @@ func (m *QueryKeyshareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *QueryKeyshareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryKeyshareResponse.Merge(m, src) +func (m *QueryKeyshareReqResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryKeyshareReqResponse.Merge(m, src) } -func (m *QueryKeyshareResponse) XXX_Size() int { +func (m *QueryKeyshareReqResponse) XXX_Size() int { return m.Size() } -func (m *QueryKeyshareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryKeyshareResponse.DiscardUnknown(m) +func (m *QueryKeyshareReqResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryKeyshareReqResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryKeyshareResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryKeyshareReqResponse proto.InternalMessageInfo -func (m *QueryKeyshareResponse) GetKeyshare() *GenEncTxExecutionQueue { +func (m *QueryKeyshareReqResponse) GetKeyshare() *IdentityExecutionQueue { if m != nil { return m.Keyshare } return nil } -type QueryAllKeyshareRequest struct { +// QueryKeyshareReqAllRequest is request type for the Query/KeyshareReqAll RPC method. +type QueryKeyshareReqAllRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllKeyshareRequest) Reset() { *m = QueryAllKeyshareRequest{} } -func (m *QueryAllKeyshareRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllKeyshareRequest) ProtoMessage() {} -func (*QueryAllKeyshareRequest) Descriptor() ([]byte, []int) { +func (m *QueryKeyshareReqAllRequest) Reset() { *m = QueryKeyshareReqAllRequest{} } +func (m *QueryKeyshareReqAllRequest) String() string { return proto.CompactTextString(m) } +func (*QueryKeyshareReqAllRequest) ProtoMessage() {} +func (*QueryKeyshareReqAllRequest) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{4} } -func (m *QueryAllKeyshareRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryKeyshareReqAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllKeyshareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryKeyshareReqAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllKeyshareRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryKeyshareReqAllRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -229,42 +231,43 @@ func (m *QueryAllKeyshareRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *QueryAllKeyshareRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllKeyshareRequest.Merge(m, src) +func (m *QueryKeyshareReqAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryKeyshareReqAllRequest.Merge(m, src) } -func (m *QueryAllKeyshareRequest) XXX_Size() int { +func (m *QueryKeyshareReqAllRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllKeyshareRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllKeyshareRequest.DiscardUnknown(m) +func (m *QueryKeyshareReqAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryKeyshareReqAllRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllKeyshareRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryKeyshareReqAllRequest proto.InternalMessageInfo -func (m *QueryAllKeyshareRequest) GetPagination() *query.PageRequest { +func (m *QueryKeyshareReqAllRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -type QueryAllKeyshareResponse struct { - Keyshares []*GenEncTxExecutionQueue `protobuf:"bytes,1,rep,name=keyshares,proto3" json:"keyshares,omitempty"` +// QueryKeyshareReqAllResponse is response type for the Query/KeyshareReqAll RPC method. +type QueryKeyshareReqAllResponse struct { + Keyshares []*IdentityExecutionQueue `protobuf:"bytes,1,rep,name=keyshares,proto3" json:"keyshares,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllKeyshareResponse) Reset() { *m = QueryAllKeyshareResponse{} } -func (m *QueryAllKeyshareResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllKeyshareResponse) ProtoMessage() {} -func (*QueryAllKeyshareResponse) Descriptor() ([]byte, []int) { +func (m *QueryKeyshareReqAllResponse) Reset() { *m = QueryKeyshareReqAllResponse{} } +func (m *QueryKeyshareReqAllResponse) String() string { return proto.CompactTextString(m) } +func (*QueryKeyshareReqAllResponse) ProtoMessage() {} +func (*QueryKeyshareReqAllResponse) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{5} } -func (m *QueryAllKeyshareResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryKeyshareReqAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllKeyshareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryKeyshareReqAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllKeyshareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryKeyshareReqAllResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -274,49 +277,50 @@ func (m *QueryAllKeyshareResponse) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *QueryAllKeyshareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllKeyshareResponse.Merge(m, src) +func (m *QueryKeyshareReqAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryKeyshareReqAllResponse.Merge(m, src) } -func (m *QueryAllKeyshareResponse) XXX_Size() int { +func (m *QueryKeyshareReqAllResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllKeyshareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllKeyshareResponse.DiscardUnknown(m) +func (m *QueryKeyshareReqAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryKeyshareReqAllResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllKeyshareResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryKeyshareReqAllResponse proto.InternalMessageInfo -func (m *QueryAllKeyshareResponse) GetKeyshares() []*GenEncTxExecutionQueue { +func (m *QueryKeyshareReqAllResponse) GetKeyshares() []*IdentityExecutionQueue { if m != nil { return m.Keyshares } return nil } -func (m *QueryAllKeyshareResponse) GetPagination() *query.PageResponse { +func (m *QueryKeyshareReqAllResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } return nil } -type QueryGetEncryptedTxRequest struct { - TargetHeight uint64 `protobuf:"varint,1,opt,name=targetHeight,proto3" json:"targetHeight,omitempty"` +// QueryEncryptedTxRequest is request type for the Query/EncryptedTx RPC method. +type QueryEncryptedTxRequest struct { + TargetHeight uint64 `protobuf:"varint,1,opt,name=target_height,json=targetHeight,proto3" json:"target_height,omitempty"` Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` } -func (m *QueryGetEncryptedTxRequest) Reset() { *m = QueryGetEncryptedTxRequest{} } -func (m *QueryGetEncryptedTxRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetEncryptedTxRequest) ProtoMessage() {} -func (*QueryGetEncryptedTxRequest) Descriptor() ([]byte, []int) { +func (m *QueryEncryptedTxRequest) Reset() { *m = QueryEncryptedTxRequest{} } +func (m *QueryEncryptedTxRequest) String() string { return proto.CompactTextString(m) } +func (*QueryEncryptedTxRequest) ProtoMessage() {} +func (*QueryEncryptedTxRequest) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{6} } -func (m *QueryGetEncryptedTxRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryEncryptedTxRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetEncryptedTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryEncryptedTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetEncryptedTxRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryEncryptedTxRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -326,48 +330,49 @@ func (m *QueryGetEncryptedTxRequest) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *QueryGetEncryptedTxRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetEncryptedTxRequest.Merge(m, src) +func (m *QueryEncryptedTxRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEncryptedTxRequest.Merge(m, src) } -func (m *QueryGetEncryptedTxRequest) XXX_Size() int { +func (m *QueryEncryptedTxRequest) XXX_Size() int { return m.Size() } -func (m *QueryGetEncryptedTxRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetEncryptedTxRequest.DiscardUnknown(m) +func (m *QueryEncryptedTxRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEncryptedTxRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetEncryptedTxRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryEncryptedTxRequest proto.InternalMessageInfo -func (m *QueryGetEncryptedTxRequest) GetTargetHeight() uint64 { +func (m *QueryEncryptedTxRequest) GetTargetHeight() uint64 { if m != nil { return m.TargetHeight } return 0 } -func (m *QueryGetEncryptedTxRequest) GetIndex() uint64 { +func (m *QueryEncryptedTxRequest) GetIndex() uint64 { if m != nil { return m.Index } return 0 } -type QueryGetEncryptedTxResponse struct { - EncryptedTx EncryptedTx `protobuf:"bytes,1,opt,name=encryptedTx,proto3" json:"encryptedTx"` +// QueryEncryptedTxResponse is response type for the Query/EncryptedTx RPC method. +type QueryEncryptedTxResponse struct { + EncryptedTx EncryptedTx `protobuf:"bytes,1,opt,name=encrypted_tx,json=encryptedTx,proto3" json:"encrypted_tx"` } -func (m *QueryGetEncryptedTxResponse) Reset() { *m = QueryGetEncryptedTxResponse{} } -func (m *QueryGetEncryptedTxResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetEncryptedTxResponse) ProtoMessage() {} -func (*QueryGetEncryptedTxResponse) Descriptor() ([]byte, []int) { +func (m *QueryEncryptedTxResponse) Reset() { *m = QueryEncryptedTxResponse{} } +func (m *QueryEncryptedTxResponse) String() string { return proto.CompactTextString(m) } +func (*QueryEncryptedTxResponse) ProtoMessage() {} +func (*QueryEncryptedTxResponse) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{7} } -func (m *QueryGetEncryptedTxResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryEncryptedTxResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetEncryptedTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryEncryptedTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetEncryptedTxResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryEncryptedTxResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -377,41 +382,42 @@ func (m *QueryGetEncryptedTxResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryGetEncryptedTxResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetEncryptedTxResponse.Merge(m, src) +func (m *QueryEncryptedTxResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEncryptedTxResponse.Merge(m, src) } -func (m *QueryGetEncryptedTxResponse) XXX_Size() int { +func (m *QueryEncryptedTxResponse) XXX_Size() int { return m.Size() } -func (m *QueryGetEncryptedTxResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetEncryptedTxResponse.DiscardUnknown(m) +func (m *QueryEncryptedTxResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEncryptedTxResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetEncryptedTxResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryEncryptedTxResponse proto.InternalMessageInfo -func (m *QueryGetEncryptedTxResponse) GetEncryptedTx() EncryptedTx { +func (m *QueryEncryptedTxResponse) GetEncryptedTx() EncryptedTx { if m != nil { return m.EncryptedTx } return EncryptedTx{} } -type QueryAllEncryptedTxRequest struct { +// QueryEncryptedTxAllRequest is request type for the Query/EncryptedTxAll RPC method. +type QueryEncryptedTxAllRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllEncryptedTxRequest) Reset() { *m = QueryAllEncryptedTxRequest{} } -func (m *QueryAllEncryptedTxRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllEncryptedTxRequest) ProtoMessage() {} -func (*QueryAllEncryptedTxRequest) Descriptor() ([]byte, []int) { +func (m *QueryEncryptedTxAllRequest) Reset() { *m = QueryEncryptedTxAllRequest{} } +func (m *QueryEncryptedTxAllRequest) String() string { return proto.CompactTextString(m) } +func (*QueryEncryptedTxAllRequest) ProtoMessage() {} +func (*QueryEncryptedTxAllRequest) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{8} } -func (m *QueryAllEncryptedTxRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryEncryptedTxAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllEncryptedTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryEncryptedTxAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllEncryptedTxRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryEncryptedTxAllRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -421,42 +427,43 @@ func (m *QueryAllEncryptedTxRequest) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *QueryAllEncryptedTxRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllEncryptedTxRequest.Merge(m, src) +func (m *QueryEncryptedTxAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEncryptedTxAllRequest.Merge(m, src) } -func (m *QueryAllEncryptedTxRequest) XXX_Size() int { +func (m *QueryEncryptedTxAllRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllEncryptedTxRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllEncryptedTxRequest.DiscardUnknown(m) +func (m *QueryEncryptedTxAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEncryptedTxAllRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllEncryptedTxRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryEncryptedTxAllRequest proto.InternalMessageInfo -func (m *QueryAllEncryptedTxRequest) GetPagination() *query.PageRequest { +func (m *QueryEncryptedTxAllRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -type QueryAllEncryptedTxResponse struct { - EncryptedTxArray []EncryptedTxArray `protobuf:"bytes,1,rep,name=encryptedTxArray,proto3" json:"encryptedTxArray"` +// QueryEncryptedTxAllResponse is response type for the Query/EncryptedTxAll RPC method. +type QueryEncryptedTxAllResponse struct { + EncryptedTxArray []EncryptedTxArray `protobuf:"bytes,1,rep,name=encrypted_tx_array,json=encryptedTxArray,proto3" json:"encrypted_tx_array"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllEncryptedTxResponse) Reset() { *m = QueryAllEncryptedTxResponse{} } -func (m *QueryAllEncryptedTxResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllEncryptedTxResponse) ProtoMessage() {} -func (*QueryAllEncryptedTxResponse) Descriptor() ([]byte, []int) { +func (m *QueryEncryptedTxAllResponse) Reset() { *m = QueryEncryptedTxAllResponse{} } +func (m *QueryEncryptedTxAllResponse) String() string { return proto.CompactTextString(m) } +func (*QueryEncryptedTxAllResponse) ProtoMessage() {} +func (*QueryEncryptedTxAllResponse) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{9} } -func (m *QueryAllEncryptedTxResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryEncryptedTxAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllEncryptedTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryEncryptedTxAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllEncryptedTxResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryEncryptedTxAllResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -466,48 +473,49 @@ func (m *QueryAllEncryptedTxResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryAllEncryptedTxResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllEncryptedTxResponse.Merge(m, src) +func (m *QueryEncryptedTxAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEncryptedTxAllResponse.Merge(m, src) } -func (m *QueryAllEncryptedTxResponse) XXX_Size() int { +func (m *QueryEncryptedTxAllResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllEncryptedTxResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllEncryptedTxResponse.DiscardUnknown(m) +func (m *QueryEncryptedTxAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEncryptedTxAllResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllEncryptedTxResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryEncryptedTxAllResponse proto.InternalMessageInfo -func (m *QueryAllEncryptedTxResponse) GetEncryptedTxArray() []EncryptedTxArray { +func (m *QueryEncryptedTxAllResponse) GetEncryptedTxArray() []EncryptedTxArray { if m != nil { return m.EncryptedTxArray } return nil } -func (m *QueryAllEncryptedTxResponse) GetPagination() *query.PageResponse { +func (m *QueryEncryptedTxAllResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } return nil } -type QueryAllEncryptedTxFromHeightRequest struct { - TargetHeight uint64 `protobuf:"varint,1,opt,name=targetHeight,proto3" json:"targetHeight,omitempty"` +// QueryEncryptedTxAllFromHeightRequest is request type for the Query/EncryptedTxAllFromHeight RPC method. +type QueryEncryptedTxAllFromHeightRequest struct { + TargetHeight uint64 `protobuf:"varint,1,opt,name=target_height,json=targetHeight,proto3" json:"target_height,omitempty"` } -func (m *QueryAllEncryptedTxFromHeightRequest) Reset() { *m = QueryAllEncryptedTxFromHeightRequest{} } -func (m *QueryAllEncryptedTxFromHeightRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllEncryptedTxFromHeightRequest) ProtoMessage() {} -func (*QueryAllEncryptedTxFromHeightRequest) Descriptor() ([]byte, []int) { +func (m *QueryEncryptedTxAllFromHeightRequest) Reset() { *m = QueryEncryptedTxAllFromHeightRequest{} } +func (m *QueryEncryptedTxAllFromHeightRequest) String() string { return proto.CompactTextString(m) } +func (*QueryEncryptedTxAllFromHeightRequest) ProtoMessage() {} +func (*QueryEncryptedTxAllFromHeightRequest) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{10} } -func (m *QueryAllEncryptedTxFromHeightRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryEncryptedTxAllFromHeightRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllEncryptedTxFromHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryEncryptedTxAllFromHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllEncryptedTxFromHeightRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryEncryptedTxAllFromHeightRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -517,41 +525,42 @@ func (m *QueryAllEncryptedTxFromHeightRequest) XXX_Marshal(b []byte, determinist return b[:n], nil } } -func (m *QueryAllEncryptedTxFromHeightRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllEncryptedTxFromHeightRequest.Merge(m, src) +func (m *QueryEncryptedTxAllFromHeightRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEncryptedTxAllFromHeightRequest.Merge(m, src) } -func (m *QueryAllEncryptedTxFromHeightRequest) XXX_Size() int { +func (m *QueryEncryptedTxAllFromHeightRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllEncryptedTxFromHeightRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllEncryptedTxFromHeightRequest.DiscardUnknown(m) +func (m *QueryEncryptedTxAllFromHeightRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEncryptedTxAllFromHeightRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllEncryptedTxFromHeightRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryEncryptedTxAllFromHeightRequest proto.InternalMessageInfo -func (m *QueryAllEncryptedTxFromHeightRequest) GetTargetHeight() uint64 { +func (m *QueryEncryptedTxAllFromHeightRequest) GetTargetHeight() uint64 { if m != nil { return m.TargetHeight } return 0 } -type QueryAllEncryptedTxFromHeightResponse struct { - EncryptedTxArray EncryptedTxArray `protobuf:"bytes,1,opt,name=encryptedTxArray,proto3" json:"encryptedTxArray"` +// QueryEncryptedTxAllFromHeightResponse is response type for the Query/EncryptedTxAllFromHeight RPC method. +type QueryEncryptedTxAllFromHeightResponse struct { + EncryptedTxArray EncryptedTxArray `protobuf:"bytes,1,opt,name=encrypted_tx_array,json=encryptedTxArray,proto3" json:"encrypted_tx_array"` } -func (m *QueryAllEncryptedTxFromHeightResponse) Reset() { *m = QueryAllEncryptedTxFromHeightResponse{} } -func (m *QueryAllEncryptedTxFromHeightResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllEncryptedTxFromHeightResponse) ProtoMessage() {} -func (*QueryAllEncryptedTxFromHeightResponse) Descriptor() ([]byte, []int) { +func (m *QueryEncryptedTxAllFromHeightResponse) Reset() { *m = QueryEncryptedTxAllFromHeightResponse{} } +func (m *QueryEncryptedTxAllFromHeightResponse) String() string { return proto.CompactTextString(m) } +func (*QueryEncryptedTxAllFromHeightResponse) ProtoMessage() {} +func (*QueryEncryptedTxAllFromHeightResponse) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{11} } -func (m *QueryAllEncryptedTxFromHeightResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryEncryptedTxAllFromHeightResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllEncryptedTxFromHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryEncryptedTxAllFromHeightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllEncryptedTxFromHeightResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryEncryptedTxAllFromHeightResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -561,25 +570,26 @@ func (m *QueryAllEncryptedTxFromHeightResponse) XXX_Marshal(b []byte, determinis return b[:n], nil } } -func (m *QueryAllEncryptedTxFromHeightResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllEncryptedTxFromHeightResponse.Merge(m, src) +func (m *QueryEncryptedTxAllFromHeightResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEncryptedTxAllFromHeightResponse.Merge(m, src) } -func (m *QueryAllEncryptedTxFromHeightResponse) XXX_Size() int { +func (m *QueryEncryptedTxAllFromHeightResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllEncryptedTxFromHeightResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllEncryptedTxFromHeightResponse.DiscardUnknown(m) +func (m *QueryEncryptedTxAllFromHeightResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEncryptedTxAllFromHeightResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllEncryptedTxFromHeightResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryEncryptedTxAllFromHeightResponse proto.InternalMessageInfo -func (m *QueryAllEncryptedTxFromHeightResponse) GetEncryptedTxArray() EncryptedTxArray { +func (m *QueryEncryptedTxAllFromHeightResponse) GetEncryptedTxArray() EncryptedTxArray { if m != nil { return m.EncryptedTxArray } return EncryptedTxArray{} } +// QueryLatestHeightRequest is request type for the Query/LatestHeight RPC method. type QueryLatestHeightRequest struct { } @@ -616,6 +626,7 @@ func (m *QueryLatestHeightRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryLatestHeightRequest proto.InternalMessageInfo +// QueryLatestHeightResponse is response type for the Query/LatestHeight RPC method. type QueryLatestHeightResponse struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` } @@ -660,22 +671,23 @@ func (m *QueryLatestHeightResponse) GetHeight() uint64 { return 0 } -type QueryGetPepNonceRequest struct { +// QueryPepNonceRequest is request type for the Query/PepNonce RPC method. +type QueryPepNonceRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` } -func (m *QueryGetPepNonceRequest) Reset() { *m = QueryGetPepNonceRequest{} } -func (m *QueryGetPepNonceRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGetPepNonceRequest) ProtoMessage() {} -func (*QueryGetPepNonceRequest) Descriptor() ([]byte, []int) { +func (m *QueryPepNonceRequest) Reset() { *m = QueryPepNonceRequest{} } +func (m *QueryPepNonceRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPepNonceRequest) ProtoMessage() {} +func (*QueryPepNonceRequest) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{14} } -func (m *QueryGetPepNonceRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryPepNonceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetPepNonceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPepNonceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetPepNonceRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPepNonceRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -685,41 +697,42 @@ func (m *QueryGetPepNonceRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *QueryGetPepNonceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetPepNonceRequest.Merge(m, src) +func (m *QueryPepNonceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPepNonceRequest.Merge(m, src) } -func (m *QueryGetPepNonceRequest) XXX_Size() int { +func (m *QueryPepNonceRequest) XXX_Size() int { return m.Size() } -func (m *QueryGetPepNonceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetPepNonceRequest.DiscardUnknown(m) +func (m *QueryPepNonceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPepNonceRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetPepNonceRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryPepNonceRequest proto.InternalMessageInfo -func (m *QueryGetPepNonceRequest) GetAddress() string { +func (m *QueryPepNonceRequest) GetAddress() string { if m != nil { return m.Address } return "" } -type QueryGetPepNonceResponse struct { - PepNonce PepNonce `protobuf:"bytes,1,opt,name=pepNonce,proto3" json:"pepNonce"` +// QueryPepNonceResponse is response type for the Query/PepNonce RPC method. +type QueryPepNonceResponse struct { + PepNonce PepNonce `protobuf:"bytes,1,opt,name=pep_nonce,json=pepNonce,proto3" json:"pep_nonce"` } -func (m *QueryGetPepNonceResponse) Reset() { *m = QueryGetPepNonceResponse{} } -func (m *QueryGetPepNonceResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGetPepNonceResponse) ProtoMessage() {} -func (*QueryGetPepNonceResponse) Descriptor() ([]byte, []int) { +func (m *QueryPepNonceResponse) Reset() { *m = QueryPepNonceResponse{} } +func (m *QueryPepNonceResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPepNonceResponse) ProtoMessage() {} +func (*QueryPepNonceResponse) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{15} } -func (m *QueryGetPepNonceResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryPepNonceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGetPepNonceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPepNonceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGetPepNonceResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPepNonceResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -729,41 +742,42 @@ func (m *QueryGetPepNonceResponse) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *QueryGetPepNonceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGetPepNonceResponse.Merge(m, src) +func (m *QueryPepNonceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPepNonceResponse.Merge(m, src) } -func (m *QueryGetPepNonceResponse) XXX_Size() int { +func (m *QueryPepNonceResponse) XXX_Size() int { return m.Size() } -func (m *QueryGetPepNonceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGetPepNonceResponse.DiscardUnknown(m) +func (m *QueryPepNonceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPepNonceResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryGetPepNonceResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryPepNonceResponse proto.InternalMessageInfo -func (m *QueryGetPepNonceResponse) GetPepNonce() PepNonce { +func (m *QueryPepNonceResponse) GetPepNonce() PepNonce { if m != nil { return m.PepNonce } return PepNonce{} } -type QueryAllPepNonceRequest struct { +// QueryPepNonceAllRequest is request type for the Query/PepNonceAll RPC method. +type QueryPepNonceAllRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllPepNonceRequest) Reset() { *m = QueryAllPepNonceRequest{} } -func (m *QueryAllPepNonceRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAllPepNonceRequest) ProtoMessage() {} -func (*QueryAllPepNonceRequest) Descriptor() ([]byte, []int) { +func (m *QueryPepNonceAllRequest) Reset() { *m = QueryPepNonceAllRequest{} } +func (m *QueryPepNonceAllRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPepNonceAllRequest) ProtoMessage() {} +func (*QueryPepNonceAllRequest) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{16} } -func (m *QueryAllPepNonceRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryPepNonceAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllPepNonceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPepNonceAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllPepNonceRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPepNonceAllRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -773,42 +787,43 @@ func (m *QueryAllPepNonceRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *QueryAllPepNonceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllPepNonceRequest.Merge(m, src) +func (m *QueryPepNonceAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPepNonceAllRequest.Merge(m, src) } -func (m *QueryAllPepNonceRequest) XXX_Size() int { +func (m *QueryPepNonceAllRequest) XXX_Size() int { return m.Size() } -func (m *QueryAllPepNonceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllPepNonceRequest.DiscardUnknown(m) +func (m *QueryPepNonceAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPepNonceAllRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllPepNonceRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryPepNonceAllRequest proto.InternalMessageInfo -func (m *QueryAllPepNonceRequest) GetPagination() *query.PageRequest { +func (m *QueryPepNonceAllRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -type QueryAllPepNonceResponse struct { - PepNonce []PepNonce `protobuf:"bytes,1,rep,name=pepNonce,proto3" json:"pepNonce"` +// QueryPepNonceAllResponse is response type for the Query/PepNonceAll RPC method. +type QueryPepNonceAllResponse struct { + PepNonce []PepNonce `protobuf:"bytes,1,rep,name=pep_nonce,json=pepNonce,proto3" json:"pep_nonce"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAllPepNonceResponse) Reset() { *m = QueryAllPepNonceResponse{} } -func (m *QueryAllPepNonceResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAllPepNonceResponse) ProtoMessage() {} -func (*QueryAllPepNonceResponse) Descriptor() ([]byte, []int) { +func (m *QueryPepNonceAllResponse) Reset() { *m = QueryPepNonceAllResponse{} } +func (m *QueryPepNonceAllResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPepNonceAllResponse) ProtoMessage() {} +func (*QueryPepNonceAllResponse) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{17} } -func (m *QueryAllPepNonceResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryPepNonceAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAllPepNonceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPepNonceAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAllPepNonceResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPepNonceAllResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -818,32 +833,33 @@ func (m *QueryAllPepNonceResponse) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *QueryAllPepNonceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAllPepNonceResponse.Merge(m, src) +func (m *QueryPepNonceAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPepNonceAllResponse.Merge(m, src) } -func (m *QueryAllPepNonceResponse) XXX_Size() int { +func (m *QueryPepNonceAllResponse) XXX_Size() int { return m.Size() } -func (m *QueryAllPepNonceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAllPepNonceResponse.DiscardUnknown(m) +func (m *QueryPepNonceAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPepNonceAllResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAllPepNonceResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryPepNonceAllResponse proto.InternalMessageInfo -func (m *QueryAllPepNonceResponse) GetPepNonce() []PepNonce { +func (m *QueryPepNonceAllResponse) GetPepNonce() []PepNonce { if m != nil { return m.PepNonce } return nil } -func (m *QueryAllPepNonceResponse) GetPagination() *query.PageResponse { +func (m *QueryPepNonceAllResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } return nil } +// QueryPubKeyRequest is request type for the Query/PubKey RPC method. type QueryPubKeyRequest struct { } @@ -880,9 +896,10 @@ func (m *QueryPubKeyRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryPubKeyRequest proto.InternalMessageInfo +// QueryPubKeyResponse is response type for the Query/PubKey RPC method. type QueryPubKeyResponse struct { - ActivePubKey types.ActivePublicKey `protobuf:"bytes,1,opt,name=activePubKey,proto3" json:"activePubKey"` - QueuedPubKey types.QueuedPublicKey `protobuf:"bytes,2,opt,name=queuedPubKey,proto3" json:"queuedPubKey"` + ActivePubKey types.ActivePublicKey `protobuf:"bytes,1,opt,name=active_pub_key,json=activePubKey,proto3" json:"active_pub_key"` + QueuedPubKey types.QueuedPublicKey `protobuf:"bytes,2,opt,name=queued_pub_key,json=queuedPubKey,proto3" json:"queued_pub_key"` } func (m *QueryPubKeyResponse) Reset() { *m = QueryPubKeyResponse{} } @@ -932,22 +949,23 @@ func (m *QueryPubKeyResponse) GetQueuedPubKey() types.QueuedPublicKey { return types.QueuedPublicKey{} } -type QueryShowPrivateKeyshareReqRequest struct { - ReqId string `protobuf:"bytes,1,opt,name=reqId,proto3" json:"reqId,omitempty"` +// QueryPrivateKeyshareReqRequest is request type for the Query/PrivateKeyshareReq RPC method. +type QueryPrivateKeyshareReqRequest struct { + ReqId string `protobuf:"bytes,1,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } -func (m *QueryShowPrivateKeyshareReqRequest) Reset() { *m = QueryShowPrivateKeyshareReqRequest{} } -func (m *QueryShowPrivateKeyshareReqRequest) String() string { return proto.CompactTextString(m) } -func (*QueryShowPrivateKeyshareReqRequest) ProtoMessage() {} -func (*QueryShowPrivateKeyshareReqRequest) Descriptor() ([]byte, []int) { +func (m *QueryPrivateKeyshareReqRequest) Reset() { *m = QueryPrivateKeyshareReqRequest{} } +func (m *QueryPrivateKeyshareReqRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPrivateKeyshareReqRequest) ProtoMessage() {} +func (*QueryPrivateKeyshareReqRequest) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{20} } -func (m *QueryShowPrivateKeyshareReqRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryPrivateKeyshareReqRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryShowPrivateKeyshareReqRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPrivateKeyshareReqRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryShowPrivateKeyshareReqRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPrivateKeyshareReqRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -957,44 +975,45 @@ func (m *QueryShowPrivateKeyshareReqRequest) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryShowPrivateKeyshareReqRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryShowPrivateKeyshareReqRequest.Merge(m, src) +func (m *QueryPrivateKeyshareReqRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPrivateKeyshareReqRequest.Merge(m, src) } -func (m *QueryShowPrivateKeyshareReqRequest) XXX_Size() int { +func (m *QueryPrivateKeyshareReqRequest) XXX_Size() int { return m.Size() } -func (m *QueryShowPrivateKeyshareReqRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryShowPrivateKeyshareReqRequest.DiscardUnknown(m) +func (m *QueryPrivateKeyshareReqRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPrivateKeyshareReqRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryShowPrivateKeyshareReqRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryPrivateKeyshareReqRequest proto.InternalMessageInfo -func (m *QueryShowPrivateKeyshareReqRequest) GetReqId() string { +func (m *QueryPrivateKeyshareReqRequest) GetReqId() string { if m != nil { return m.ReqId } return "" } -type QueryShowPrivateKeyshareReqResponse struct { +// QueryPrivateKeyshareReqResponse is response type for the Query/PrivateKeyshareReq RPC method. +type QueryPrivateKeyshareReqResponse struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` Pubkey string `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` EncryptedKeyshares []*types.EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` } -func (m *QueryShowPrivateKeyshareReqResponse) Reset() { *m = QueryShowPrivateKeyshareReqResponse{} } -func (m *QueryShowPrivateKeyshareReqResponse) String() string { return proto.CompactTextString(m) } -func (*QueryShowPrivateKeyshareReqResponse) ProtoMessage() {} -func (*QueryShowPrivateKeyshareReqResponse) Descriptor() ([]byte, []int) { +func (m *QueryPrivateKeyshareReqResponse) Reset() { *m = QueryPrivateKeyshareReqResponse{} } +func (m *QueryPrivateKeyshareReqResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPrivateKeyshareReqResponse) ProtoMessage() {} +func (*QueryPrivateKeyshareReqResponse) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{21} } -func (m *QueryShowPrivateKeyshareReqResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryPrivateKeyshareReqResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryShowPrivateKeyshareReqResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPrivateKeyshareReqResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryShowPrivateKeyshareReqResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPrivateKeyshareReqResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1004,46 +1023,47 @@ func (m *QueryShowPrivateKeyshareReqResponse) XXX_Marshal(b []byte, deterministi return b[:n], nil } } -func (m *QueryShowPrivateKeyshareReqResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryShowPrivateKeyshareReqResponse.Merge(m, src) +func (m *QueryPrivateKeyshareReqResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPrivateKeyshareReqResponse.Merge(m, src) } -func (m *QueryShowPrivateKeyshareReqResponse) XXX_Size() int { +func (m *QueryPrivateKeyshareReqResponse) XXX_Size() int { return m.Size() } -func (m *QueryShowPrivateKeyshareReqResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryShowPrivateKeyshareReqResponse.DiscardUnknown(m) +func (m *QueryPrivateKeyshareReqResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPrivateKeyshareReqResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryShowPrivateKeyshareReqResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryPrivateKeyshareReqResponse proto.InternalMessageInfo -func (m *QueryShowPrivateKeyshareReqResponse) GetCreator() string { +func (m *QueryPrivateKeyshareReqResponse) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *QueryShowPrivateKeyshareReqResponse) GetReqId() string { +func (m *QueryPrivateKeyshareReqResponse) GetReqId() string { if m != nil { return m.ReqId } return "" } -func (m *QueryShowPrivateKeyshareReqResponse) GetPubkey() string { +func (m *QueryPrivateKeyshareReqResponse) GetPubkey() string { if m != nil { return m.Pubkey } return "" } -func (m *QueryShowPrivateKeyshareReqResponse) GetEncryptedKeyshares() []*types.EncryptedKeyshare { +func (m *QueryPrivateKeyshareReqResponse) GetEncryptedKeyshares() []*types.EncryptedKeyshare { if m != nil { return m.EncryptedKeyshares } return nil } +// QueryDecryptDataRequest is request type for the Query/DecryptData RPC method. type QueryDecryptDataRequest struct { Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"` AggrKeyshare string `protobuf:"bytes,2,opt,name=aggr_keyshare,json=aggrKeyshare,proto3" json:"aggr_keyshare,omitempty"` @@ -1104,6 +1124,7 @@ func (m *QueryDecryptDataRequest) GetEncryptedData() string { return "" } +// QueryDecryptDataResponse is response type for the Query/DecryptData RPC method. type QueryDecryptDataResponse struct { DecryptedData string `protobuf:"bytes,1,opt,name=decrypted_data,json=decryptedData,proto3" json:"decrypted_data,omitempty"` } @@ -1151,26 +1172,26 @@ func (m *QueryDecryptDataResponse) GetDecryptedData() string { func init() { proto.RegisterType((*QueryParamsRequest)(nil), "fairyring.pep.QueryParamsRequest") proto.RegisterType((*QueryParamsResponse)(nil), "fairyring.pep.QueryParamsResponse") - proto.RegisterType((*QueryKeyshareRequest)(nil), "fairyring.pep.QueryKeyshareRequest") - proto.RegisterType((*QueryKeyshareResponse)(nil), "fairyring.pep.QueryKeyshareResponse") - proto.RegisterType((*QueryAllKeyshareRequest)(nil), "fairyring.pep.QueryAllKeyshareRequest") - proto.RegisterType((*QueryAllKeyshareResponse)(nil), "fairyring.pep.QueryAllKeyshareResponse") - proto.RegisterType((*QueryGetEncryptedTxRequest)(nil), "fairyring.pep.QueryGetEncryptedTxRequest") - proto.RegisterType((*QueryGetEncryptedTxResponse)(nil), "fairyring.pep.QueryGetEncryptedTxResponse") - proto.RegisterType((*QueryAllEncryptedTxRequest)(nil), "fairyring.pep.QueryAllEncryptedTxRequest") - proto.RegisterType((*QueryAllEncryptedTxResponse)(nil), "fairyring.pep.QueryAllEncryptedTxResponse") - proto.RegisterType((*QueryAllEncryptedTxFromHeightRequest)(nil), "fairyring.pep.QueryAllEncryptedTxFromHeightRequest") - proto.RegisterType((*QueryAllEncryptedTxFromHeightResponse)(nil), "fairyring.pep.QueryAllEncryptedTxFromHeightResponse") + proto.RegisterType((*QueryKeyshareReqRequest)(nil), "fairyring.pep.QueryKeyshareReqRequest") + proto.RegisterType((*QueryKeyshareReqResponse)(nil), "fairyring.pep.QueryKeyshareReqResponse") + proto.RegisterType((*QueryKeyshareReqAllRequest)(nil), "fairyring.pep.QueryKeyshareReqAllRequest") + proto.RegisterType((*QueryKeyshareReqAllResponse)(nil), "fairyring.pep.QueryKeyshareReqAllResponse") + proto.RegisterType((*QueryEncryptedTxRequest)(nil), "fairyring.pep.QueryEncryptedTxRequest") + proto.RegisterType((*QueryEncryptedTxResponse)(nil), "fairyring.pep.QueryEncryptedTxResponse") + proto.RegisterType((*QueryEncryptedTxAllRequest)(nil), "fairyring.pep.QueryEncryptedTxAllRequest") + proto.RegisterType((*QueryEncryptedTxAllResponse)(nil), "fairyring.pep.QueryEncryptedTxAllResponse") + proto.RegisterType((*QueryEncryptedTxAllFromHeightRequest)(nil), "fairyring.pep.QueryEncryptedTxAllFromHeightRequest") + proto.RegisterType((*QueryEncryptedTxAllFromHeightResponse)(nil), "fairyring.pep.QueryEncryptedTxAllFromHeightResponse") proto.RegisterType((*QueryLatestHeightRequest)(nil), "fairyring.pep.QueryLatestHeightRequest") proto.RegisterType((*QueryLatestHeightResponse)(nil), "fairyring.pep.QueryLatestHeightResponse") - proto.RegisterType((*QueryGetPepNonceRequest)(nil), "fairyring.pep.QueryGetPepNonceRequest") - proto.RegisterType((*QueryGetPepNonceResponse)(nil), "fairyring.pep.QueryGetPepNonceResponse") - proto.RegisterType((*QueryAllPepNonceRequest)(nil), "fairyring.pep.QueryAllPepNonceRequest") - proto.RegisterType((*QueryAllPepNonceResponse)(nil), "fairyring.pep.QueryAllPepNonceResponse") + proto.RegisterType((*QueryPepNonceRequest)(nil), "fairyring.pep.QueryPepNonceRequest") + proto.RegisterType((*QueryPepNonceResponse)(nil), "fairyring.pep.QueryPepNonceResponse") + proto.RegisterType((*QueryPepNonceAllRequest)(nil), "fairyring.pep.QueryPepNonceAllRequest") + proto.RegisterType((*QueryPepNonceAllResponse)(nil), "fairyring.pep.QueryPepNonceAllResponse") proto.RegisterType((*QueryPubKeyRequest)(nil), "fairyring.pep.QueryPubKeyRequest") proto.RegisterType((*QueryPubKeyResponse)(nil), "fairyring.pep.QueryPubKeyResponse") - proto.RegisterType((*QueryShowPrivateKeyshareReqRequest)(nil), "fairyring.pep.QueryShowPrivateKeyshareReqRequest") - proto.RegisterType((*QueryShowPrivateKeyshareReqResponse)(nil), "fairyring.pep.QueryShowPrivateKeyshareReqResponse") + proto.RegisterType((*QueryPrivateKeyshareReqRequest)(nil), "fairyring.pep.QueryPrivateKeyshareReqRequest") + proto.RegisterType((*QueryPrivateKeyshareReqResponse)(nil), "fairyring.pep.QueryPrivateKeyshareReqResponse") proto.RegisterType((*QueryDecryptDataRequest)(nil), "fairyring.pep.QueryDecryptDataRequest") proto.RegisterType((*QueryDecryptDataResponse)(nil), "fairyring.pep.QueryDecryptDataResponse") } @@ -1178,92 +1199,91 @@ func init() { func init() { proto.RegisterFile("fairyring/pep/query.proto", fileDescriptor_dd36cf23112e8be0) } var fileDescriptor_dd36cf23112e8be0 = []byte{ - // 1357 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x98, 0xcf, 0x6f, 0xe3, 0x44, - 0x14, 0xc7, 0xeb, 0x6e, 0x9b, 0x6d, 0x27, 0x6d, 0x05, 0xb3, 0xfd, 0x91, 0x7a, 0xb7, 0x69, 0x77, - 0xd2, 0x5f, 0x44, 0x10, 0xab, 0xed, 0x1e, 0xa0, 0xe2, 0x92, 0xd2, 0x1f, 0x2c, 0x45, 0x6c, 0x1b, - 0x0a, 0x48, 0x7b, 0x89, 0x26, 0xf6, 0xe0, 0x58, 0x4d, 0x6c, 0xc7, 0x76, 0xba, 0x09, 0x51, 0x24, - 0xb4, 0x17, 0x2e, 0x1c, 0x90, 0xb8, 0x23, 0x8e, 0x7b, 0x83, 0x1b, 0xda, 0x33, 0x1c, 0xf6, 0xb8, - 0x12, 0x17, 0x4e, 0x08, 0xb5, 0x48, 0xfc, 0x09, 0x5c, 0x91, 0xc7, 0xcf, 0x89, 0xed, 0x38, 0x49, - 0x2b, 0x7a, 0xa9, 0xea, 0x99, 0xf7, 0xe3, 0xf3, 0xde, 0x8c, 0xdf, 0xd7, 0x2d, 0x5a, 0xfc, 0x92, - 0x6a, 0x56, 0xd3, 0xd2, 0x74, 0x55, 0x32, 0x99, 0x29, 0xd5, 0xea, 0xcc, 0x6a, 0xe6, 0x4c, 0xcb, - 0x70, 0x0c, 0x3c, 0xdd, 0xd9, 0xca, 0x99, 0xcc, 0x14, 0xdf, 0xa4, 0x55, 0x4d, 0x37, 0x24, 0xfe, - 0xd3, 0xb3, 0x10, 0x67, 0x55, 0x43, 0x35, 0xf8, 0xaf, 0x92, 0xfb, 0x1b, 0xac, 0x3e, 0x50, 0x0d, - 0x43, 0xad, 0x30, 0x89, 0x9a, 0x9a, 0x44, 0x75, 0xdd, 0x70, 0xa8, 0xa3, 0x19, 0xba, 0x0d, 0xbb, - 0x59, 0xd9, 0xb0, 0xab, 0x86, 0x2d, 0x95, 0xa8, 0xcd, 0xbc, 0x74, 0xd2, 0xc5, 0x56, 0x89, 0x39, - 0x74, 0x4b, 0x32, 0xa9, 0xaa, 0xe9, 0xdc, 0x18, 0x6c, 0xc5, 0x30, 0x9c, 0x49, 0x2d, 0x5a, 0xf5, - 0xe3, 0xac, 0x84, 0xf7, 0x98, 0x2e, 0x5b, 0x4d, 0xd3, 0x61, 0x4a, 0xd1, 0x69, 0x80, 0xc5, 0x52, - 0xc4, 0x9b, 0x99, 0x45, 0xdd, 0xd0, 0x65, 0x06, 0xdb, 0x9b, 0xe1, 0x6d, 0xaa, 0xaa, 0x16, 0x53, - 0xa9, 0x1b, 0xe1, 0x9c, 0x35, 0x8b, 0x76, 0x99, 0x5a, 0xbe, 0x65, 0xa6, 0x6b, 0x29, 0x1b, 0xd5, - 0xaa, 0xa1, 0x4b, 0x7c, 0x57, 0x29, 0x3a, 0x4d, 0x93, 0xf9, 0x3c, 0xe9, 0x60, 0x5d, 0x7e, 0x45, - 0xb2, 0xa1, 0x41, 0x2d, 0x64, 0x16, 0xe1, 0x53, 0xb7, 0xda, 0x13, 0x5e, 0x44, 0x81, 0xd5, 0xea, - 0xcc, 0x76, 0xc8, 0x13, 0x74, 0x2f, 0xb4, 0x6a, 0x9b, 0x86, 0x6e, 0x33, 0xfc, 0x2e, 0x4a, 0x78, - 0xc5, 0xa6, 0x84, 0x15, 0x61, 0x33, 0xb9, 0x3d, 0x97, 0x0b, 0x9d, 0x45, 0xce, 0x33, 0xdf, 0x9b, - 0x7c, 0xf5, 0xe7, 0xf2, 0xc8, 0x8b, 0x7f, 0x7e, 0xce, 0x0a, 0x05, 0xb0, 0x27, 0xef, 0xa0, 0x59, - 0x1e, 0xf0, 0x98, 0x35, 0x39, 0x24, 0x24, 0xc2, 0x73, 0x28, 0x61, 0xb1, 0x5a, 0x51, 0x53, 0x78, - 0xc4, 0xc9, 0xc2, 0xb8, 0xc5, 0x6a, 0x8f, 0x15, 0xf2, 0x14, 0xcd, 0x45, 0xcc, 0x81, 0x20, 0x8f, - 0x26, 0xce, 0x61, 0x0d, 0x18, 0xd6, 0x22, 0x0c, 0x47, 0x4c, 0x3f, 0xd0, 0xe5, 0xb3, 0xc6, 0x41, - 0x83, 0xc9, 0x75, 0xf7, 0xd0, 0x4e, 0xeb, 0xac, 0xce, 0x0a, 0x1d, 0x37, 0x42, 0xd1, 0x02, 0x8f, - 0x9d, 0xaf, 0x54, 0xa2, 0x34, 0x87, 0x08, 0x75, 0x0f, 0x1b, 0xe2, 0xaf, 0xe7, 0xbc, 0x0e, 0xe6, - 0xdc, 0x0e, 0xe6, 0xbc, 0x8b, 0x08, 0x7d, 0xcc, 0x9d, 0x50, 0xd5, 0xf7, 0x2d, 0x04, 0x3c, 0xc9, - 0x0b, 0x01, 0xa5, 0x7a, 0x73, 0x40, 0x09, 0x1f, 0xa0, 0x49, 0x9f, 0xc5, 0xed, 0xe3, 0x9d, 0xeb, - 0xd7, 0xd0, 0xf5, 0xc3, 0x47, 0x21, 0xd2, 0x51, 0x4e, 0xba, 0x31, 0x94, 0xd4, 0x23, 0x08, 0xa1, - 0x7e, 0x8e, 0x44, 0x4e, 0x7a, 0xc4, 0x9c, 0x03, 0xff, 0xae, 0x9e, 0x35, 0xfc, 0x86, 0x10, 0x34, - 0xe5, 0x50, 0x4b, 0x65, 0xce, 0x87, 0x4c, 0x53, 0xcb, 0x0e, 0x6f, 0xc9, 0x58, 0x21, 0xb4, 0x86, - 0x67, 0xd1, 0xb8, 0xa6, 0x2b, 0xac, 0xc1, 0x29, 0xc6, 0x0a, 0xde, 0x03, 0xa1, 0xe8, 0x7e, 0x6c, - 0x5c, 0x68, 0xc2, 0x1e, 0x4a, 0xb2, 0xee, 0x32, 0xb4, 0x5a, 0x8c, 0xb4, 0x21, 0xe0, 0xb8, 0x37, - 0xe6, 0xde, 0xa9, 0x42, 0xd0, 0x89, 0x28, 0x80, 0x9e, 0xaf, 0x54, 0x62, 0xd0, 0x6f, 0xeb, 0x2c, - 0x5f, 0x0a, 0x50, 0x49, 0x34, 0x0d, 0x54, 0x72, 0x8a, 0xde, 0x08, 0x40, 0xe5, 0x2d, 0x8b, 0x36, - 0xe1, 0x54, 0x97, 0xfb, 0x97, 0xc3, 0xcd, 0xa0, 0xa6, 0x1e, 0xf7, 0xdb, 0x3b, 0xdc, 0x8f, 0xd0, - 0x6a, 0x0c, 0xfa, 0xa1, 0x65, 0x54, 0xbd, 0xb3, 0xbb, 0xc1, 0x31, 0x93, 0xaf, 0xd0, 0xda, 0x90, - 0x58, 0x03, 0x1b, 0x22, 0xfc, 0x8f, 0x86, 0x10, 0x11, 0x5e, 0xa7, 0x8f, 0xa9, 0xc3, 0x6c, 0x27, - 0xc4, 0x4e, 0x76, 0xd0, 0x62, 0xcc, 0x1e, 0xb0, 0xcc, 0xa3, 0x44, 0x39, 0x58, 0x12, 0x3c, 0x91, - 0x1d, 0x98, 0x01, 0x47, 0xcc, 0x39, 0x61, 0xe6, 0x27, 0xee, 0xf8, 0xf5, 0x7b, 0x91, 0x42, 0x77, - 0xa9, 0xa2, 0x58, 0xcc, 0xb6, 0x61, 0x24, 0xf9, 0x8f, 0xe4, 0x33, 0xa0, 0x08, 0x39, 0x41, 0xa2, - 0xf7, 0xd0, 0x84, 0x09, 0x6b, 0x50, 0xec, 0x42, 0x74, 0x36, 0xc2, 0x36, 0x14, 0xd9, 0x31, 0x0f, - 0xce, 0xa3, 0x28, 0xcb, 0x6d, 0xdd, 0xe1, 0x1f, 0x02, 0xf3, 0x68, 0x08, 0xfa, 0x9d, 0x1b, 0xa0, - 0xdf, 0xde, 0x45, 0xed, 0xa8, 0x50, 0xbd, 0x74, 0xcc, 0x9a, 0xfe, 0xd1, 0xfe, 0x24, 0xf8, 0x32, - 0x04, 0xcb, 0x40, 0x7c, 0x8c, 0xa6, 0xa8, 0xec, 0x68, 0x17, 0xcc, 0x5b, 0x87, 0xc6, 0x3c, 0x0c, - 0x50, 0x7b, 0x7a, 0x98, 0xcb, 0xfb, 0x56, 0x15, 0x4d, 0x3e, 0x66, 0xfe, 0xfd, 0x0a, 0x39, 0xbb, - 0xc1, 0x6a, 0xee, 0x74, 0x55, 0x20, 0xd8, 0x68, 0xbf, 0x60, 0xa7, 0xbe, 0x55, 0x38, 0x58, 0xd0, - 0x99, 0xec, 0x22, 0xc2, 0x81, 0x3f, 0x2d, 0x1b, 0xcf, 0x4e, 0x2c, 0xed, 0x82, 0x3a, 0x2c, 0xa0, - 0x31, 0xfe, 0xb1, 0xce, 0x22, 0x4f, 0xe6, 0xc2, 0x9a, 0xf7, 0x9b, 0x80, 0x32, 0x03, 0x9d, 0xa1, - 0xfa, 0x14, 0xba, 0x2b, 0x5b, 0x8c, 0x3a, 0x86, 0xe5, 0x5f, 0x50, 0x78, 0x0c, 0x88, 0xe9, 0x68, - 0x20, 0xb0, 0xfb, 0x12, 0x98, 0xf5, 0xd2, 0x39, 0x6b, 0xa6, 0xee, 0xf0, 0x65, 0x78, 0xc2, 0x67, - 0xe8, 0x5e, 0xf7, 0xf3, 0xa4, 0x2b, 0x49, 0xe3, 0xfc, 0x0e, 0x64, 0x7a, 0x1b, 0xd0, 0x79, 0x5d, - 0x3b, 0x54, 0x98, 0x45, 0x97, 0x6c, 0xd2, 0x86, 0xeb, 0xbc, 0xcf, 0xf8, 0xd6, 0x3e, 0x75, 0xa8, - 0x5f, 0x77, 0x17, 0x44, 0x08, 0x81, 0x64, 0xd0, 0xb4, 0xfb, 0x99, 0xd3, 0x61, 0x00, 0xfc, 0x29, - 0x77, 0xd1, 0x0f, 0x8c, 0xd7, 0xd0, 0x4c, 0x97, 0x56, 0xa1, 0x0e, 0x85, 0x6a, 0xa6, 0x3b, 0xab, - 0x6e, 0x2a, 0x92, 0x87, 0x9b, 0x1e, 0x4a, 0x0f, 0x9d, 0x5b, 0x43, 0x33, 0x0a, 0x0b, 0x85, 0xf0, - 0x38, 0xa6, 0x3b, 0xab, 0xae, 0xf9, 0xf6, 0xbf, 0xd3, 0x68, 0x9c, 0xc7, 0xc0, 0x3a, 0x4a, 0x78, - 0x9f, 0x34, 0xf8, 0x61, 0xe4, 0x95, 0xe8, 0xfd, 0x66, 0x12, 0xc9, 0x20, 0x13, 0x8f, 0x80, 0x2c, - 0x3d, 0xff, 0xfd, 0xef, 0xef, 0x47, 0x17, 0xf0, 0x9c, 0x14, 0xf7, 0x09, 0x89, 0x7f, 0x14, 0x50, - 0x32, 0x30, 0x14, 0xf1, 0x5b, 0x71, 0x21, 0x63, 0x95, 0x5a, 0xcc, 0x5e, 0xc7, 0x14, 0x28, 0x76, - 0x39, 0xc5, 0x23, 0xbc, 0x2d, 0xf5, 0xff, 0x58, 0x95, 0x5a, 0xc1, 0xe9, 0xdf, 0x96, 0x5a, 0x5c, - 0xd6, 0xdb, 0xf8, 0x5b, 0x01, 0xcd, 0x04, 0xe7, 0x76, 0xa5, 0x12, 0x4f, 0x19, 0x2b, 0xca, 0xf1, - 0x94, 0xf1, 0xc2, 0x4a, 0x32, 0x9c, 0x72, 0x09, 0xdf, 0x1f, 0x40, 0x89, 0x5f, 0x0a, 0x28, 0x15, - 0xc6, 0xe9, 0x2a, 0x12, 0xde, 0x19, 0x9e, 0xad, 0x47, 0x0b, 0xc5, 0x47, 0x37, 0x73, 0x02, 0xd8, - 0x6d, 0x0e, 0xfb, 0x36, 0xce, 0x5e, 0xbf, 0xa5, 0xf8, 0x1b, 0x01, 0x4d, 0x05, 0x55, 0x0b, 0x6f, - 0xc4, 0xa5, 0x8e, 0xd1, 0x3c, 0x71, 0x73, 0xb8, 0x21, 0x70, 0xad, 0x72, 0xae, 0x34, 0x7e, 0x10, - 0xe1, 0xaa, 0x70, 0xe3, 0xa2, 0x27, 0x87, 0x2e, 0xc9, 0x84, 0x3f, 0xe4, 0xf1, 0x7a, 0x9f, 0x9b, - 0x14, 0x11, 0x27, 0x71, 0x63, 0xa8, 0x1d, 0x30, 0x64, 0x39, 0xc3, 0x2a, 0x26, 0x52, 0x9f, 0xbf, - 0x7c, 0xa4, 0x16, 0x48, 0x6c, 0x1b, 0x7f, 0x2d, 0xa0, 0xa4, 0x1f, 0xc0, 0xbd, 0x5b, 0xeb, 0x7d, - 0x4e, 0xe3, 0x5a, 0x30, 0x31, 0x6a, 0x47, 0x56, 0x38, 0x8c, 0x88, 0x53, 0xfd, 0x60, 0xb0, 0x81, - 0x12, 0x20, 0x0d, 0xf1, 0x2f, 0x7d, 0x50, 0xa2, 0xfa, 0xbc, 0xf4, 0x21, 0xb9, 0x22, 0x69, 0x9e, - 0x32, 0x85, 0xe7, 0xa3, 0x29, 0xeb, 0x25, 0x77, 0xe4, 0xe1, 0xe7, 0x02, 0x4a, 0x06, 0x06, 0x3d, - 0xce, 0xc4, 0xc5, 0x8c, 0xfc, 0xa9, 0x22, 0xae, 0x0e, 0x36, 0x82, 0xd4, 0x9b, 0x3c, 0x35, 0xc1, - 0x2b, 0x91, 0xd4, 0xfe, 0xa4, 0x95, 0x5a, 0x9e, 0x60, 0xb4, 0x5d, 0x88, 0x99, 0x40, 0x8e, 0x41, - 0xbd, 0x8f, 0xa2, 0x6c, 0x0c, 0xb5, 0x03, 0x9a, 0x65, 0x4e, 0xb3, 0x88, 0x17, 0xfa, 0xd0, 0xe0, - 0x5f, 0x05, 0x34, 0x1f, 0xaf, 0x7e, 0x78, 0x2b, 0x2e, 0xc9, 0x40, 0x99, 0x15, 0xb7, 0x6f, 0xe2, - 0x02, 0x88, 0x7b, 0x1c, 0xf1, 0x7d, 0xbc, 0x2b, 0x1d, 0x52, 0xcd, 0x2a, 0x55, 0x0c, 0xf9, 0x3c, - 0x02, 0x6b, 0x97, 0x8d, 0x67, 0x45, 0xd3, 0x8b, 0xd0, 0x51, 0xac, 0xa2, 0xc5, 0x6a, 0xbc, 0x97, - 0x8f, 0x95, 0x36, 0xfe, 0x45, 0x40, 0xc9, 0x80, 0xfc, 0xc4, 0xf7, 0xb1, 0x57, 0x1e, 0xe3, 0xfb, - 0x18, 0xa3, 0x63, 0xe4, 0x0b, 0x0e, 0x79, 0x8a, 0x9f, 0xf4, 0x85, 0x04, 0x41, 0xe3, 0x22, 0x27, - 0xb5, 0x3c, 0x99, 0x6d, 0x4b, 0xad, 0x90, 0xca, 0xb6, 0xa5, 0x56, 0x58, 0x50, 0xdb, 0x7b, 0xfb, - 0xaf, 0x2e, 0xd3, 0xc2, 0xeb, 0xcb, 0xb4, 0xf0, 0xd7, 0x65, 0x5a, 0xf8, 0xee, 0x2a, 0x3d, 0xf2, - 0xfa, 0x2a, 0x3d, 0xf2, 0xc7, 0x55, 0x7a, 0xe4, 0x69, 0x56, 0xd5, 0x9c, 0x72, 0xbd, 0xe4, 0x7e, - 0x0a, 0xc4, 0x26, 0x6d, 0xf0, 0xb4, 0xfc, 0x1f, 0x0f, 0xa5, 0x04, 0xff, 0xcf, 0xc2, 0xce, 0x7f, - 0x01, 0x00, 0x00, 0xff, 0xff, 0xe4, 0x33, 0xe3, 0x9f, 0xc4, 0x11, 0x00, 0x00, + // 1337 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcf, 0x6f, 0xe3, 0xc4, + 0x17, 0xaf, 0xfb, 0x23, 0xdb, 0x4e, 0x9a, 0xea, 0xfb, 0x9d, 0x6d, 0xb7, 0xa9, 0x77, 0x9b, 0x76, + 0x27, 0xed, 0x6e, 0x29, 0xda, 0x78, 0x77, 0x0b, 0x02, 0xb1, 0xe2, 0xd0, 0x6e, 0xb7, 0xb0, 0x0a, + 0xb0, 0x6d, 0xb6, 0x12, 0x12, 0x12, 0x8a, 0x26, 0xf1, 0xe0, 0x5a, 0x4d, 0x6c, 0xc7, 0x76, 0x4a, + 0xa3, 0x10, 0x09, 0xb8, 0xc0, 0x81, 0x03, 0x12, 0x47, 0x0e, 0x5c, 0x91, 0xb8, 0x20, 0x71, 0x00, + 0xc1, 0x85, 0xe3, 0x1e, 0x57, 0xe2, 0xc2, 0x09, 0xa1, 0x16, 0x89, 0x1b, 0x7f, 0x03, 0xf2, 0xf8, + 0xd9, 0xb1, 0x9d, 0x71, 0xd3, 0x8a, 0xdd, 0x4b, 0x55, 0xbf, 0x79, 0x3f, 0x3e, 0xef, 0xc7, 0xbc, + 0x8f, 0x1d, 0xb4, 0xf0, 0x01, 0xd5, 0xed, 0x8e, 0xad, 0x1b, 0x9a, 0x62, 0x31, 0x4b, 0x69, 0xb5, + 0x99, 0xdd, 0x29, 0x59, 0xb6, 0xe9, 0x9a, 0x38, 0x17, 0x1e, 0x95, 0x2c, 0x66, 0xc9, 0xff, 0xa7, + 0x4d, 0xdd, 0x30, 0x15, 0xfe, 0xd7, 0xd7, 0x90, 0x67, 0x35, 0x53, 0x33, 0xf9, 0xbf, 0x8a, 0xf7, + 0x1f, 0x48, 0xaf, 0x69, 0xa6, 0xa9, 0x35, 0x98, 0x42, 0x2d, 0x5d, 0xa1, 0x86, 0x61, 0xba, 0xd4, + 0xd5, 0x4d, 0xc3, 0x81, 0xd3, 0xf5, 0xba, 0xe9, 0x34, 0x4d, 0x47, 0xa9, 0x51, 0x87, 0xf9, 0xe1, + 0x94, 0xa3, 0x3b, 0x35, 0xe6, 0xd2, 0x3b, 0x8a, 0x45, 0x35, 0xdd, 0xe0, 0xca, 0xa0, 0x2b, 0xc7, + 0xc1, 0x59, 0xd4, 0xa6, 0xcd, 0xc0, 0xcf, 0x72, 0xfc, 0x8c, 0x19, 0x75, 0xbb, 0x63, 0xb9, 0x4c, + 0xad, 0xba, 0xc7, 0xa0, 0xb1, 0x98, 0xb0, 0x66, 0x56, 0xd5, 0x30, 0x8d, 0x3a, 0x83, 0xe3, 0x62, + 0xff, 0xb8, 0x6e, 0x36, 0x9b, 0xa6, 0xa1, 0x38, 0x07, 0xd4, 0xf6, 0x1c, 0x74, 0x2c, 0x06, 0x51, + 0xc8, 0x2c, 0xc2, 0x7b, 0x1e, 0xc6, 0x5d, 0x1e, 0xba, 0xc2, 0x5a, 0x6d, 0xe6, 0xb8, 0xe4, 0x11, + 0xba, 0x1c, 0x93, 0x3a, 0x96, 0x69, 0x38, 0x0c, 0xbf, 0x8a, 0x32, 0x3e, 0xc4, 0xbc, 0xb4, 0x2c, + 0xad, 0x65, 0xef, 0xce, 0x95, 0x62, 0x15, 0x2c, 0xf9, 0xea, 0x5b, 0x53, 0x4f, 0xfe, 0x58, 0x1a, + 0xf9, 0xf6, 0xef, 0xef, 0xd7, 0xa5, 0x0a, 0xe8, 0x93, 0xdb, 0x68, 0x9e, 0x3b, 0x2c, 0xb3, 0x0e, + 0x07, 0x51, 0x61, 0x2d, 0x88, 0x85, 0xe7, 0x50, 0xc6, 0x66, 0xad, 0xaa, 0xae, 0x72, 0xa7, 0x53, + 0x95, 0x09, 0x9b, 0xb5, 0x1e, 0xaa, 0xe4, 0x7d, 0x94, 0x1f, 0xb4, 0x00, 0x1c, 0x9b, 0x68, 0xf2, + 0x10, 0xc4, 0x80, 0x64, 0x35, 0x81, 0xe4, 0xa1, 0xca, 0x0c, 0x57, 0x77, 0x3b, 0x0f, 0x8e, 0x59, + 0xbd, 0xed, 0x15, 0x7c, 0xaf, 0xcd, 0xda, 0xac, 0x12, 0x9a, 0x11, 0x15, 0xc9, 0x49, 0xf7, 0x9b, + 0x8d, 0x46, 0x80, 0x69, 0x07, 0xa1, 0x7e, 0xaf, 0x20, 0xc4, 0x8d, 0x92, 0xdf, 0xd8, 0x92, 0xd7, + 0xd8, 0x92, 0x3f, 0x47, 0xd0, 0xd8, 0xd2, 0x2e, 0xd5, 0x18, 0xd8, 0x56, 0x22, 0x96, 0xe4, 0x3b, + 0x09, 0x5d, 0x15, 0x86, 0x81, 0x44, 0xee, 0xa3, 0xa9, 0x00, 0x91, 0x57, 0xd3, 0xb1, 0xf3, 0x67, + 0xd2, 0xb7, 0xc3, 0x6f, 0xc4, 0xc0, 0x8e, 0x72, 0xb0, 0x37, 0x87, 0x82, 0xf5, 0x11, 0xc4, 0xd0, + 0xee, 0x43, 0x93, 0x1e, 0x04, 0xa3, 0xb6, 0x7f, 0x1c, 0x14, 0xa4, 0x88, 0x72, 0x2e, 0xb5, 0x35, + 0xe6, 0x56, 0x0f, 0x98, 0xae, 0x1d, 0xb8, 0xbc, 0x26, 0xe3, 0x95, 0x69, 0x5f, 0xf8, 0x26, 0x97, + 0xe1, 0x59, 0x34, 0xa1, 0x1b, 0x2a, 0x3b, 0xe6, 0x18, 0xc6, 0x2b, 0xfe, 0x03, 0xa9, 0x42, 0x23, + 0x63, 0x5e, 0xc3, 0xfc, 0xa7, 0xa3, 0x73, 0x0d, 0x95, 0x96, 0x13, 0x25, 0x88, 0x58, 0x6e, 0x8d, + 0x7b, 0xb3, 0x55, 0xc9, 0xb2, 0xbe, 0x28, 0x6c, 0x65, 0x44, 0xed, 0x39, 0xb4, 0xf2, 0x97, 0xa0, + 0x95, 0xc9, 0x30, 0x90, 0xca, 0x63, 0x84, 0xa3, 0xa9, 0x54, 0xa9, 0x6d, 0xd3, 0x0e, 0xf4, 0x74, + 0x29, 0x3d, 0xa1, 0x4d, 0x4f, 0x0d, 0xb2, 0xfa, 0x1f, 0x4b, 0xc8, 0x9f, 0x5d, 0x6b, 0xcb, 0x68, + 0x45, 0x00, 0x7e, 0xc7, 0x36, 0x9b, 0x7e, 0xef, 0x2e, 0xd2, 0x67, 0xf2, 0x11, 0x5a, 0x1d, 0xe2, + 0x6c, 0x48, 0x4d, 0xa4, 0xff, 0x50, 0x13, 0x22, 0xc3, 0x3c, 0xbd, 0x45, 0x5d, 0xe6, 0xb8, 0x31, + 0xf8, 0x64, 0x03, 0x2d, 0x08, 0xce, 0x00, 0xcd, 0x15, 0x94, 0x89, 0x25, 0x05, 0x4f, 0xe4, 0x36, + 0x9a, 0xf5, 0x97, 0x1d, 0xb3, 0xde, 0xf1, 0xd6, 0x67, 0x50, 0x8b, 0x3c, 0xba, 0x44, 0x55, 0xd5, + 0x66, 0x8e, 0x03, 0x9b, 0x29, 0x78, 0x24, 0x8f, 0xd1, 0x5c, 0xc2, 0x02, 0x42, 0xbc, 0x86, 0xa6, + 0xc2, 0x2d, 0x0c, 0x79, 0xce, 0x27, 0x77, 0x24, 0xd8, 0x40, 0x7e, 0x93, 0x16, 0x3c, 0x13, 0x0a, + 0xb7, 0x2f, 0x50, 0x78, 0x0e, 0x33, 0xfc, 0x8d, 0x04, 0xb5, 0x8b, 0xc5, 0x10, 0x63, 0x1f, 0xbb, + 0x00, 0xf6, 0x67, 0x37, 0xa7, 0x21, 0x1d, 0xb5, 0x6b, 0x65, 0xd6, 0x09, 0xda, 0xfa, 0x83, 0x14, + 0xf0, 0x11, 0x88, 0x01, 0xf2, 0xdb, 0x68, 0x86, 0xd6, 0x5d, 0xfd, 0x88, 0x55, 0xad, 0x76, 0xad, + 0x7a, 0xc8, 0x82, 0xd9, 0xba, 0x1e, 0xc1, 0xed, 0x53, 0x5f, 0x69, 0x93, 0xeb, 0xed, 0xb6, 0x6b, + 0x0d, 0xbd, 0x5e, 0x66, 0xc1, 0x74, 0x4d, 0xd3, 0x40, 0x5c, 0x66, 0x1d, 0xcf, 0x5d, 0xcb, 0x5b, + 0xae, 0x6a, 0xe8, 0x6e, 0x34, 0xcd, 0x1d, 0x5f, 0xc2, 0xea, 0x80, 0xbb, 0x56, 0x20, 0x2e, 0xb3, + 0x0e, 0x79, 0x05, 0x15, 0x7c, 0xd0, 0xb6, 0x7e, 0x44, 0x5d, 0x76, 0x7e, 0xea, 0xfb, 0x55, 0x42, + 0x4b, 0xa9, 0x96, 0x90, 0x7a, 0x1e, 0x5d, 0xaa, 0xdb, 0x8c, 0xba, 0xa6, 0x1d, 0x0c, 0x27, 0x3c, + 0x46, 0x9c, 0x8e, 0x46, 0x9c, 0x7a, 0xd3, 0x6f, 0xb5, 0x6b, 0x5e, 0x52, 0x63, 0x5c, 0x0c, 0x4f, + 0x78, 0x1f, 0x5d, 0xee, 0xdf, 0xd1, 0x3e, 0x19, 0x4d, 0xf0, 0x01, 0x28, 0x0e, 0x66, 0x1e, 0xde, + 0xd3, 0x10, 0x55, 0xff, 0x8e, 0x07, 0x22, 0x87, 0xf4, 0x60, 0x98, 0xb7, 0x19, 0x3f, 0xda, 0xa6, + 0x2e, 0x0d, 0x92, 0xee, 0x03, 0x91, 0x62, 0x40, 0x8a, 0x28, 0x47, 0x35, 0xcd, 0x0e, 0x31, 0x00, + 0xfc, 0x69, 0x4f, 0x18, 0x38, 0xc6, 0xab, 0x68, 0xa6, 0x8f, 0x56, 0xa5, 0x2e, 0x85, 0x6c, 0x72, + 0xa1, 0xd4, 0x0b, 0x45, 0x36, 0x61, 0xce, 0x63, 0xe1, 0xa1, 0x72, 0xab, 0x68, 0x46, 0x65, 0x31, + 0x17, 0x3e, 0x8e, 0x5c, 0x28, 0xf5, 0xd4, 0xef, 0xfe, 0x93, 0x43, 0x13, 0xdc, 0x07, 0x36, 0x50, + 0xc6, 0x7f, 0xb1, 0xc1, 0xd7, 0x13, 0xf7, 0x61, 0xf0, 0xcd, 0x49, 0x26, 0x67, 0xa9, 0xf8, 0x08, + 0xc8, 0xe2, 0xa7, 0xbf, 0xfd, 0xf5, 0xd5, 0xe8, 0x3c, 0x9e, 0x53, 0x44, 0xaf, 0x7f, 0xf8, 0x6b, + 0x09, 0x65, 0x23, 0xdb, 0x10, 0xdf, 0x10, 0xb9, 0x1c, 0xe4, 0x68, 0xf9, 0xe6, 0x50, 0x3d, 0x88, + 0x7f, 0x8f, 0xc7, 0x7f, 0x19, 0x6f, 0x28, 0xe9, 0xaf, 0x98, 0x4a, 0x37, 0xc6, 0x03, 0x3d, 0xa5, + 0xcb, 0xd9, 0xbc, 0x87, 0xbf, 0x90, 0xd0, 0x4c, 0x7c, 0xf1, 0xe3, 0x17, 0x86, 0x04, 0xee, 0x6f, + 0x32, 0x79, 0xfd, 0x3c, 0xaa, 0x00, 0xb3, 0xc8, 0x61, 0x2e, 0xe2, 0xab, 0x67, 0xc0, 0xc4, 0x3f, + 0x4b, 0x28, 0x9f, 0xc6, 0x43, 0x78, 0x63, 0x78, 0xb4, 0x01, 0x0a, 0x94, 0x5f, 0xba, 0x98, 0x11, + 0x80, 0xdd, 0xe0, 0x60, 0x6f, 0xe1, 0x17, 0x2f, 0x50, 0x53, 0xfc, 0x99, 0x84, 0xa6, 0xa3, 0x54, + 0x85, 0x85, 0x2d, 0x14, 0x10, 0x9d, 0xbc, 0x36, 0x5c, 0x11, 0x80, 0xad, 0x70, 0x60, 0x05, 0x7c, + 0x2d, 0x01, 0xac, 0xc1, 0x95, 0x01, 0x0a, 0xfe, 0x44, 0x42, 0x93, 0xc1, 0x76, 0xc7, 0x45, 0xe1, + 0x0c, 0xc7, 0xd9, 0x51, 0x5e, 0x39, 0x5b, 0x09, 0xa2, 0xaf, 0xf3, 0xe8, 0x2b, 0x98, 0x28, 0x29, + 0xdf, 0x2a, 0x4a, 0x17, 0x48, 0xb5, 0x87, 0x3f, 0x96, 0x50, 0x36, 0x42, 0x4c, 0xe2, 0xb9, 0x1f, + 0x64, 0x47, 0xf1, 0xdc, 0x0b, 0x18, 0x8e, 0x2c, 0x73, 0x30, 0x32, 0xce, 0xa7, 0x81, 0xc1, 0x26, + 0xca, 0x00, 0x17, 0x88, 0xaf, 0x7a, 0x94, 0x95, 0x52, 0xae, 0x7a, 0x8c, 0xa1, 0x48, 0x81, 0x87, + 0xcc, 0xe3, 0x2b, 0xc9, 0x90, 0x3e, 0xc1, 0xe0, 0xcf, 0x25, 0x94, 0x8d, 0xac, 0x77, 0x71, 0xce, + 0x83, 0xcc, 0x21, 0xce, 0x59, 0xc0, 0x13, 0x64, 0x8d, 0x03, 0x20, 0x78, 0x39, 0x01, 0x20, 0xd8, + 0xb2, 0x4a, 0xd7, 0x27, 0x8b, 0x9e, 0x07, 0x65, 0x26, 0xfe, 0x99, 0x22, 0xbe, 0xd8, 0xc2, 0x2f, + 0x26, 0xf1, 0xc5, 0x16, 0x7f, 0xf5, 0x90, 0x25, 0x8e, 0x69, 0x01, 0xcf, 0xa7, 0x60, 0xc2, 0x3f, + 0x49, 0x08, 0x0f, 0x72, 0x1f, 0xbe, 0x25, 0x2c, 0x78, 0x1a, 0xbb, 0xca, 0xa5, 0xf3, 0xaa, 0x03, + 0xac, 0xfb, 0x1c, 0xd6, 0xeb, 0xf8, 0x9e, 0xb2, 0x43, 0x75, 0xbb, 0xd6, 0x30, 0xeb, 0x87, 0x09, + 0x80, 0xce, 0x81, 0xf9, 0x61, 0xd5, 0xf2, 0x3d, 0x84, 0x3c, 0x55, 0xb5, 0x59, 0xab, 0x5f, 0xc5, + 0x1f, 0x25, 0x94, 0x8d, 0xb0, 0x8e, 0xb8, 0xa1, 0x83, 0xac, 0x28, 0x6e, 0xa8, 0x80, 0xbe, 0xc8, + 0xbb, 0x1c, 0xe5, 0x1e, 0x7e, 0x94, 0x8a, 0x12, 0x78, 0x8c, 0x73, 0x9b, 0xd2, 0xf5, 0xd9, 0xb5, + 0xa7, 0x74, 0x63, 0xe4, 0xda, 0x53, 0xba, 0x71, 0x1e, 0xed, 0x6d, 0x6d, 0x3f, 0x39, 0x29, 0x48, + 0x4f, 0x4f, 0x0a, 0xd2, 0x9f, 0x27, 0x05, 0xe9, 0xcb, 0xd3, 0xc2, 0xc8, 0xd3, 0xd3, 0xc2, 0xc8, + 0xef, 0xa7, 0x85, 0x91, 0xf7, 0xd6, 0x35, 0xdd, 0x3d, 0x68, 0xd7, 0xbc, 0x37, 0x00, 0x61, 0xd0, + 0x63, 0x1e, 0x96, 0xff, 0xaa, 0x50, 0xcb, 0xf0, 0x9f, 0x15, 0x36, 0xfe, 0x0d, 0x00, 0x00, 0xff, + 0xff, 0x27, 0x9b, 0xe7, 0xea, 0x77, 0x11, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1281,23 +1301,25 @@ type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a EncryptedTx by index. - EncryptedTx(ctx context.Context, in *QueryGetEncryptedTxRequest, opts ...grpc.CallOption) (*QueryGetEncryptedTxResponse, error) + EncryptedTx(ctx context.Context, in *QueryEncryptedTxRequest, opts ...grpc.CallOption) (*QueryEncryptedTxResponse, error) // Queries a list of EncryptedTx items. - EncryptedTxAll(ctx context.Context, in *QueryAllEncryptedTxRequest, opts ...grpc.CallOption) (*QueryAllEncryptedTxResponse, error) + EncryptedTxAll(ctx context.Context, in *QueryEncryptedTxAllRequest, opts ...grpc.CallOption) (*QueryEncryptedTxAllResponse, error) // Queries a list of EncryptedTx items. - EncryptedTxAllFromHeight(ctx context.Context, in *QueryAllEncryptedTxFromHeightRequest, opts ...grpc.CallOption) (*QueryAllEncryptedTxFromHeightResponse, error) + EncryptedTxAllFromHeight(ctx context.Context, in *QueryEncryptedTxAllFromHeightRequest, opts ...grpc.CallOption) (*QueryEncryptedTxAllFromHeightResponse, error) // Queries a list of LatestHeight items. LatestHeight(ctx context.Context, in *QueryLatestHeightRequest, opts ...grpc.CallOption) (*QueryLatestHeightResponse, error) // Queries a PepNonce by index. - PepNonce(ctx context.Context, in *QueryGetPepNonceRequest, opts ...grpc.CallOption) (*QueryGetPepNonceResponse, error) + PepNonce(ctx context.Context, in *QueryPepNonceRequest, opts ...grpc.CallOption) (*QueryPepNonceResponse, error) // Queries a list of PepNonce items. - PepNonceAll(ctx context.Context, in *QueryAllPepNonceRequest, opts ...grpc.CallOption) (*QueryAllPepNonceResponse, error) + PepNonceAll(ctx context.Context, in *QueryPepNonceAllRequest, opts ...grpc.CallOption) (*QueryPepNonceAllResponse, error) // Queries the public keys PubKey(ctx context.Context, in *QueryPubKeyRequest, opts ...grpc.CallOption) (*QueryPubKeyResponse, error) - KeyshareReq(ctx context.Context, in *QueryKeyshareRequest, opts ...grpc.CallOption) (*QueryKeyshareResponse, error) - KeyshareReqAll(ctx context.Context, in *QueryAllKeyshareRequest, opts ...grpc.CallOption) (*QueryAllKeyshareResponse, error) + // Queries a Keyshare request by identity + KeyshareReq(ctx context.Context, in *QueryKeyshareReqRequest, opts ...grpc.CallOption) (*QueryKeyshareReqResponse, error) + // queries a list of keyshare requests + KeyshareReqAll(ctx context.Context, in *QueryKeyshareReqAllRequest, opts ...grpc.CallOption) (*QueryKeyshareReqAllResponse, error) // Queries a list of ShowPrivateKeyshareReq items. - ShowPrivateKeyshareReq(ctx context.Context, in *QueryShowPrivateKeyshareReqRequest, opts ...grpc.CallOption) (*QueryShowPrivateKeyshareReqResponse, error) + PrivateKeyshareReq(ctx context.Context, in *QueryPrivateKeyshareReqRequest, opts ...grpc.CallOption) (*QueryPrivateKeyshareReqResponse, error) // Queries a list of DecryptData items. DecryptData(ctx context.Context, in *QueryDecryptDataRequest, opts ...grpc.CallOption) (*QueryDecryptDataResponse, error) } @@ -1319,8 +1341,8 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . return out, nil } -func (c *queryClient) EncryptedTx(ctx context.Context, in *QueryGetEncryptedTxRequest, opts ...grpc.CallOption) (*QueryGetEncryptedTxResponse, error) { - out := new(QueryGetEncryptedTxResponse) +func (c *queryClient) EncryptedTx(ctx context.Context, in *QueryEncryptedTxRequest, opts ...grpc.CallOption) (*QueryEncryptedTxResponse, error) { + out := new(QueryEncryptedTxResponse) err := c.cc.Invoke(ctx, "/fairyring.pep.Query/EncryptedTx", in, out, opts...) if err != nil { return nil, err @@ -1328,8 +1350,8 @@ func (c *queryClient) EncryptedTx(ctx context.Context, in *QueryGetEncryptedTxRe return out, nil } -func (c *queryClient) EncryptedTxAll(ctx context.Context, in *QueryAllEncryptedTxRequest, opts ...grpc.CallOption) (*QueryAllEncryptedTxResponse, error) { - out := new(QueryAllEncryptedTxResponse) +func (c *queryClient) EncryptedTxAll(ctx context.Context, in *QueryEncryptedTxAllRequest, opts ...grpc.CallOption) (*QueryEncryptedTxAllResponse, error) { + out := new(QueryEncryptedTxAllResponse) err := c.cc.Invoke(ctx, "/fairyring.pep.Query/EncryptedTxAll", in, out, opts...) if err != nil { return nil, err @@ -1337,8 +1359,8 @@ func (c *queryClient) EncryptedTxAll(ctx context.Context, in *QueryAllEncryptedT return out, nil } -func (c *queryClient) EncryptedTxAllFromHeight(ctx context.Context, in *QueryAllEncryptedTxFromHeightRequest, opts ...grpc.CallOption) (*QueryAllEncryptedTxFromHeightResponse, error) { - out := new(QueryAllEncryptedTxFromHeightResponse) +func (c *queryClient) EncryptedTxAllFromHeight(ctx context.Context, in *QueryEncryptedTxAllFromHeightRequest, opts ...grpc.CallOption) (*QueryEncryptedTxAllFromHeightResponse, error) { + out := new(QueryEncryptedTxAllFromHeightResponse) err := c.cc.Invoke(ctx, "/fairyring.pep.Query/EncryptedTxAllFromHeight", in, out, opts...) if err != nil { return nil, err @@ -1355,8 +1377,8 @@ func (c *queryClient) LatestHeight(ctx context.Context, in *QueryLatestHeightReq return out, nil } -func (c *queryClient) PepNonce(ctx context.Context, in *QueryGetPepNonceRequest, opts ...grpc.CallOption) (*QueryGetPepNonceResponse, error) { - out := new(QueryGetPepNonceResponse) +func (c *queryClient) PepNonce(ctx context.Context, in *QueryPepNonceRequest, opts ...grpc.CallOption) (*QueryPepNonceResponse, error) { + out := new(QueryPepNonceResponse) err := c.cc.Invoke(ctx, "/fairyring.pep.Query/PepNonce", in, out, opts...) if err != nil { return nil, err @@ -1364,8 +1386,8 @@ func (c *queryClient) PepNonce(ctx context.Context, in *QueryGetPepNonceRequest, return out, nil } -func (c *queryClient) PepNonceAll(ctx context.Context, in *QueryAllPepNonceRequest, opts ...grpc.CallOption) (*QueryAllPepNonceResponse, error) { - out := new(QueryAllPepNonceResponse) +func (c *queryClient) PepNonceAll(ctx context.Context, in *QueryPepNonceAllRequest, opts ...grpc.CallOption) (*QueryPepNonceAllResponse, error) { + out := new(QueryPepNonceAllResponse) err := c.cc.Invoke(ctx, "/fairyring.pep.Query/PepNonceAll", in, out, opts...) if err != nil { return nil, err @@ -1382,8 +1404,8 @@ func (c *queryClient) PubKey(ctx context.Context, in *QueryPubKeyRequest, opts . return out, nil } -func (c *queryClient) KeyshareReq(ctx context.Context, in *QueryKeyshareRequest, opts ...grpc.CallOption) (*QueryKeyshareResponse, error) { - out := new(QueryKeyshareResponse) +func (c *queryClient) KeyshareReq(ctx context.Context, in *QueryKeyshareReqRequest, opts ...grpc.CallOption) (*QueryKeyshareReqResponse, error) { + out := new(QueryKeyshareReqResponse) err := c.cc.Invoke(ctx, "/fairyring.pep.Query/KeyshareReq", in, out, opts...) if err != nil { return nil, err @@ -1391,8 +1413,8 @@ func (c *queryClient) KeyshareReq(ctx context.Context, in *QueryKeyshareRequest, return out, nil } -func (c *queryClient) KeyshareReqAll(ctx context.Context, in *QueryAllKeyshareRequest, opts ...grpc.CallOption) (*QueryAllKeyshareResponse, error) { - out := new(QueryAllKeyshareResponse) +func (c *queryClient) KeyshareReqAll(ctx context.Context, in *QueryKeyshareReqAllRequest, opts ...grpc.CallOption) (*QueryKeyshareReqAllResponse, error) { + out := new(QueryKeyshareReqAllResponse) err := c.cc.Invoke(ctx, "/fairyring.pep.Query/KeyshareReqAll", in, out, opts...) if err != nil { return nil, err @@ -1400,9 +1422,9 @@ func (c *queryClient) KeyshareReqAll(ctx context.Context, in *QueryAllKeyshareRe return out, nil } -func (c *queryClient) ShowPrivateKeyshareReq(ctx context.Context, in *QueryShowPrivateKeyshareReqRequest, opts ...grpc.CallOption) (*QueryShowPrivateKeyshareReqResponse, error) { - out := new(QueryShowPrivateKeyshareReqResponse) - err := c.cc.Invoke(ctx, "/fairyring.pep.Query/ShowPrivateKeyshareReq", in, out, opts...) +func (c *queryClient) PrivateKeyshareReq(ctx context.Context, in *QueryPrivateKeyshareReqRequest, opts ...grpc.CallOption) (*QueryPrivateKeyshareReqResponse, error) { + out := new(QueryPrivateKeyshareReqResponse) + err := c.cc.Invoke(ctx, "/fairyring.pep.Query/PrivateKeyshareReq", in, out, opts...) if err != nil { return nil, err } @@ -1423,23 +1445,25 @@ type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a EncryptedTx by index. - EncryptedTx(context.Context, *QueryGetEncryptedTxRequest) (*QueryGetEncryptedTxResponse, error) + EncryptedTx(context.Context, *QueryEncryptedTxRequest) (*QueryEncryptedTxResponse, error) // Queries a list of EncryptedTx items. - EncryptedTxAll(context.Context, *QueryAllEncryptedTxRequest) (*QueryAllEncryptedTxResponse, error) + EncryptedTxAll(context.Context, *QueryEncryptedTxAllRequest) (*QueryEncryptedTxAllResponse, error) // Queries a list of EncryptedTx items. - EncryptedTxAllFromHeight(context.Context, *QueryAllEncryptedTxFromHeightRequest) (*QueryAllEncryptedTxFromHeightResponse, error) + EncryptedTxAllFromHeight(context.Context, *QueryEncryptedTxAllFromHeightRequest) (*QueryEncryptedTxAllFromHeightResponse, error) // Queries a list of LatestHeight items. LatestHeight(context.Context, *QueryLatestHeightRequest) (*QueryLatestHeightResponse, error) // Queries a PepNonce by index. - PepNonce(context.Context, *QueryGetPepNonceRequest) (*QueryGetPepNonceResponse, error) + PepNonce(context.Context, *QueryPepNonceRequest) (*QueryPepNonceResponse, error) // Queries a list of PepNonce items. - PepNonceAll(context.Context, *QueryAllPepNonceRequest) (*QueryAllPepNonceResponse, error) + PepNonceAll(context.Context, *QueryPepNonceAllRequest) (*QueryPepNonceAllResponse, error) // Queries the public keys PubKey(context.Context, *QueryPubKeyRequest) (*QueryPubKeyResponse, error) - KeyshareReq(context.Context, *QueryKeyshareRequest) (*QueryKeyshareResponse, error) - KeyshareReqAll(context.Context, *QueryAllKeyshareRequest) (*QueryAllKeyshareResponse, error) + // Queries a Keyshare request by identity + KeyshareReq(context.Context, *QueryKeyshareReqRequest) (*QueryKeyshareReqResponse, error) + // queries a list of keyshare requests + KeyshareReqAll(context.Context, *QueryKeyshareReqAllRequest) (*QueryKeyshareReqAllResponse, error) // Queries a list of ShowPrivateKeyshareReq items. - ShowPrivateKeyshareReq(context.Context, *QueryShowPrivateKeyshareReqRequest) (*QueryShowPrivateKeyshareReqResponse, error) + PrivateKeyshareReq(context.Context, *QueryPrivateKeyshareReqRequest) (*QueryPrivateKeyshareReqResponse, error) // Queries a list of DecryptData items. DecryptData(context.Context, *QueryDecryptDataRequest) (*QueryDecryptDataResponse, error) } @@ -1451,35 +1475,35 @@ type UnimplementedQueryServer struct { func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") } -func (*UnimplementedQueryServer) EncryptedTx(ctx context.Context, req *QueryGetEncryptedTxRequest) (*QueryGetEncryptedTxResponse, error) { +func (*UnimplementedQueryServer) EncryptedTx(ctx context.Context, req *QueryEncryptedTxRequest) (*QueryEncryptedTxResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method EncryptedTx not implemented") } -func (*UnimplementedQueryServer) EncryptedTxAll(ctx context.Context, req *QueryAllEncryptedTxRequest) (*QueryAllEncryptedTxResponse, error) { +func (*UnimplementedQueryServer) EncryptedTxAll(ctx context.Context, req *QueryEncryptedTxAllRequest) (*QueryEncryptedTxAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method EncryptedTxAll not implemented") } -func (*UnimplementedQueryServer) EncryptedTxAllFromHeight(ctx context.Context, req *QueryAllEncryptedTxFromHeightRequest) (*QueryAllEncryptedTxFromHeightResponse, error) { +func (*UnimplementedQueryServer) EncryptedTxAllFromHeight(ctx context.Context, req *QueryEncryptedTxAllFromHeightRequest) (*QueryEncryptedTxAllFromHeightResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method EncryptedTxAllFromHeight not implemented") } func (*UnimplementedQueryServer) LatestHeight(ctx context.Context, req *QueryLatestHeightRequest) (*QueryLatestHeightResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LatestHeight not implemented") } -func (*UnimplementedQueryServer) PepNonce(ctx context.Context, req *QueryGetPepNonceRequest) (*QueryGetPepNonceResponse, error) { +func (*UnimplementedQueryServer) PepNonce(ctx context.Context, req *QueryPepNonceRequest) (*QueryPepNonceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PepNonce not implemented") } -func (*UnimplementedQueryServer) PepNonceAll(ctx context.Context, req *QueryAllPepNonceRequest) (*QueryAllPepNonceResponse, error) { +func (*UnimplementedQueryServer) PepNonceAll(ctx context.Context, req *QueryPepNonceAllRequest) (*QueryPepNonceAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PepNonceAll not implemented") } func (*UnimplementedQueryServer) PubKey(ctx context.Context, req *QueryPubKeyRequest) (*QueryPubKeyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PubKey not implemented") } -func (*UnimplementedQueryServer) KeyshareReq(ctx context.Context, req *QueryKeyshareRequest) (*QueryKeyshareResponse, error) { +func (*UnimplementedQueryServer) KeyshareReq(ctx context.Context, req *QueryKeyshareReqRequest) (*QueryKeyshareReqResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KeyshareReq not implemented") } -func (*UnimplementedQueryServer) KeyshareReqAll(ctx context.Context, req *QueryAllKeyshareRequest) (*QueryAllKeyshareResponse, error) { +func (*UnimplementedQueryServer) KeyshareReqAll(ctx context.Context, req *QueryKeyshareReqAllRequest) (*QueryKeyshareReqAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KeyshareReqAll not implemented") } -func (*UnimplementedQueryServer) ShowPrivateKeyshareReq(ctx context.Context, req *QueryShowPrivateKeyshareReqRequest) (*QueryShowPrivateKeyshareReqResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ShowPrivateKeyshareReq not implemented") +func (*UnimplementedQueryServer) PrivateKeyshareReq(ctx context.Context, req *QueryPrivateKeyshareReqRequest) (*QueryPrivateKeyshareReqResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PrivateKeyshareReq not implemented") } func (*UnimplementedQueryServer) DecryptData(ctx context.Context, req *QueryDecryptDataRequest) (*QueryDecryptDataResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DecryptData not implemented") @@ -1508,7 +1532,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } func _Query_EncryptedTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetEncryptedTxRequest) + in := new(QueryEncryptedTxRequest) if err := dec(in); err != nil { return nil, err } @@ -1520,13 +1544,13 @@ func _Query_EncryptedTx_Handler(srv interface{}, ctx context.Context, dec func(i FullMethod: "/fairyring.pep.Query/EncryptedTx", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EncryptedTx(ctx, req.(*QueryGetEncryptedTxRequest)) + return srv.(QueryServer).EncryptedTx(ctx, req.(*QueryEncryptedTxRequest)) } return interceptor(ctx, in, info, handler) } func _Query_EncryptedTxAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllEncryptedTxRequest) + in := new(QueryEncryptedTxAllRequest) if err := dec(in); err != nil { return nil, err } @@ -1538,13 +1562,13 @@ func _Query_EncryptedTxAll_Handler(srv interface{}, ctx context.Context, dec fun FullMethod: "/fairyring.pep.Query/EncryptedTxAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EncryptedTxAll(ctx, req.(*QueryAllEncryptedTxRequest)) + return srv.(QueryServer).EncryptedTxAll(ctx, req.(*QueryEncryptedTxAllRequest)) } return interceptor(ctx, in, info, handler) } func _Query_EncryptedTxAllFromHeight_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllEncryptedTxFromHeightRequest) + in := new(QueryEncryptedTxAllFromHeightRequest) if err := dec(in); err != nil { return nil, err } @@ -1556,7 +1580,7 @@ func _Query_EncryptedTxAllFromHeight_Handler(srv interface{}, ctx context.Contex FullMethod: "/fairyring.pep.Query/EncryptedTxAllFromHeight", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EncryptedTxAllFromHeight(ctx, req.(*QueryAllEncryptedTxFromHeightRequest)) + return srv.(QueryServer).EncryptedTxAllFromHeight(ctx, req.(*QueryEncryptedTxAllFromHeightRequest)) } return interceptor(ctx, in, info, handler) } @@ -1580,7 +1604,7 @@ func _Query_LatestHeight_Handler(srv interface{}, ctx context.Context, dec func( } func _Query_PepNonce_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGetPepNonceRequest) + in := new(QueryPepNonceRequest) if err := dec(in); err != nil { return nil, err } @@ -1592,13 +1616,13 @@ func _Query_PepNonce_Handler(srv interface{}, ctx context.Context, dec func(inte FullMethod: "/fairyring.pep.Query/PepNonce", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PepNonce(ctx, req.(*QueryGetPepNonceRequest)) + return srv.(QueryServer).PepNonce(ctx, req.(*QueryPepNonceRequest)) } return interceptor(ctx, in, info, handler) } func _Query_PepNonceAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllPepNonceRequest) + in := new(QueryPepNonceAllRequest) if err := dec(in); err != nil { return nil, err } @@ -1610,7 +1634,7 @@ func _Query_PepNonceAll_Handler(srv interface{}, ctx context.Context, dec func(i FullMethod: "/fairyring.pep.Query/PepNonceAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PepNonceAll(ctx, req.(*QueryAllPepNonceRequest)) + return srv.(QueryServer).PepNonceAll(ctx, req.(*QueryPepNonceAllRequest)) } return interceptor(ctx, in, info, handler) } @@ -1634,7 +1658,7 @@ func _Query_PubKey_Handler(srv interface{}, ctx context.Context, dec func(interf } func _Query_KeyshareReq_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryKeyshareRequest) + in := new(QueryKeyshareReqRequest) if err := dec(in); err != nil { return nil, err } @@ -1646,13 +1670,13 @@ func _Query_KeyshareReq_Handler(srv interface{}, ctx context.Context, dec func(i FullMethod: "/fairyring.pep.Query/KeyshareReq", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).KeyshareReq(ctx, req.(*QueryKeyshareRequest)) + return srv.(QueryServer).KeyshareReq(ctx, req.(*QueryKeyshareReqRequest)) } return interceptor(ctx, in, info, handler) } func _Query_KeyshareReqAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAllKeyshareRequest) + in := new(QueryKeyshareReqAllRequest) if err := dec(in); err != nil { return nil, err } @@ -1664,25 +1688,25 @@ func _Query_KeyshareReqAll_Handler(srv interface{}, ctx context.Context, dec fun FullMethod: "/fairyring.pep.Query/KeyshareReqAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).KeyshareReqAll(ctx, req.(*QueryAllKeyshareRequest)) + return srv.(QueryServer).KeyshareReqAll(ctx, req.(*QueryKeyshareReqAllRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_ShowPrivateKeyshareReq_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryShowPrivateKeyshareReqRequest) +func _Query_PrivateKeyshareReq_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPrivateKeyshareReqRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).ShowPrivateKeyshareReq(ctx, in) + return srv.(QueryServer).PrivateKeyshareReq(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.pep.Query/ShowPrivateKeyshareReq", + FullMethod: "/fairyring.pep.Query/PrivateKeyshareReq", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).ShowPrivateKeyshareReq(ctx, req.(*QueryShowPrivateKeyshareReqRequest)) + return srv.(QueryServer).PrivateKeyshareReq(ctx, req.(*QueryPrivateKeyshareReqRequest)) } return interceptor(ctx, in, info, handler) } @@ -1750,8 +1774,8 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_KeyshareReqAll_Handler, }, { - MethodName: "ShowPrivateKeyshareReq", - Handler: _Query_ShowPrivateKeyshareReq_Handler, + MethodName: "PrivateKeyshareReq", + Handler: _Query_PrivateKeyshareReq_Handler, }, { MethodName: "DecryptData", @@ -1818,7 +1842,7 @@ func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryKeyshareRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryKeyshareReqRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1828,12 +1852,12 @@ func (m *QueryKeyshareRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryKeyshareRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryKeyshareReqRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryKeyshareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryKeyshareReqRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1848,7 +1872,7 @@ func (m *QueryKeyshareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryKeyshareResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryKeyshareReqResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1858,12 +1882,12 @@ func (m *QueryKeyshareResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryKeyshareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryKeyshareReqResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryKeyshareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryKeyshareReqResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1883,7 +1907,7 @@ func (m *QueryKeyshareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryAllKeyshareRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryKeyshareReqAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1893,12 +1917,12 @@ func (m *QueryAllKeyshareRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllKeyshareRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryKeyshareReqAllRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllKeyshareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryKeyshareReqAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1918,7 +1942,7 @@ func (m *QueryAllKeyshareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *QueryAllKeyshareResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryKeyshareReqAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1928,12 +1952,12 @@ func (m *QueryAllKeyshareResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllKeyshareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryKeyshareReqAllResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllKeyshareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryKeyshareReqAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1967,7 +1991,7 @@ func (m *QueryAllKeyshareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *QueryGetEncryptedTxRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryEncryptedTxRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1977,12 +2001,12 @@ func (m *QueryGetEncryptedTxRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetEncryptedTxRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryEncryptedTxRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetEncryptedTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryEncryptedTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2000,7 +2024,7 @@ func (m *QueryGetEncryptedTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *QueryGetEncryptedTxResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryEncryptedTxResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2010,12 +2034,12 @@ func (m *QueryGetEncryptedTxResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetEncryptedTxResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryEncryptedTxResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetEncryptedTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryEncryptedTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2033,7 +2057,7 @@ func (m *QueryGetEncryptedTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *QueryAllEncryptedTxRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryEncryptedTxAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2043,12 +2067,12 @@ func (m *QueryAllEncryptedTxRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllEncryptedTxRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryEncryptedTxAllRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllEncryptedTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryEncryptedTxAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2068,7 +2092,7 @@ func (m *QueryAllEncryptedTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *QueryAllEncryptedTxResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryEncryptedTxAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2078,12 +2102,12 @@ func (m *QueryAllEncryptedTxResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllEncryptedTxResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryEncryptedTxAllResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllEncryptedTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryEncryptedTxAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2117,7 +2141,7 @@ func (m *QueryAllEncryptedTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *QueryAllEncryptedTxFromHeightRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryEncryptedTxAllFromHeightRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2127,12 +2151,12 @@ func (m *QueryAllEncryptedTxFromHeightRequest) Marshal() (dAtA []byte, err error return dAtA[:n], nil } -func (m *QueryAllEncryptedTxFromHeightRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryEncryptedTxAllFromHeightRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllEncryptedTxFromHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryEncryptedTxAllFromHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2145,7 +2169,7 @@ func (m *QueryAllEncryptedTxFromHeightRequest) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *QueryAllEncryptedTxFromHeightResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryEncryptedTxAllFromHeightResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2155,12 +2179,12 @@ func (m *QueryAllEncryptedTxFromHeightResponse) Marshal() (dAtA []byte, err erro return dAtA[:n], nil } -func (m *QueryAllEncryptedTxFromHeightResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryEncryptedTxAllFromHeightResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllEncryptedTxFromHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryEncryptedTxAllFromHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2229,7 +2253,7 @@ func (m *QueryLatestHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *QueryGetPepNonceRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryPepNonceRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2239,12 +2263,12 @@ func (m *QueryGetPepNonceRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetPepNonceRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPepNonceRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetPepNonceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPepNonceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2259,7 +2283,7 @@ func (m *QueryGetPepNonceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *QueryGetPepNonceResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryPepNonceResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2269,12 +2293,12 @@ func (m *QueryGetPepNonceResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGetPepNonceResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPepNonceResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGetPepNonceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPepNonceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2292,7 +2316,7 @@ func (m *QueryGetPepNonceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *QueryAllPepNonceRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryPepNonceAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2302,12 +2326,12 @@ func (m *QueryAllPepNonceRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllPepNonceRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPepNonceAllRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllPepNonceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPepNonceAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2327,7 +2351,7 @@ func (m *QueryAllPepNonceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *QueryAllPepNonceResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryPepNonceAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2337,12 +2361,12 @@ func (m *QueryAllPepNonceResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAllPepNonceResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPepNonceAllResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAllPepNonceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPepNonceAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2442,7 +2466,7 @@ func (m *QueryPubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryShowPrivateKeyshareReqRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryPrivateKeyshareReqRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2452,12 +2476,12 @@ func (m *QueryShowPrivateKeyshareReqRequest) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryShowPrivateKeyshareReqRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPrivateKeyshareReqRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryShowPrivateKeyshareReqRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPrivateKeyshareReqRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2472,7 +2496,7 @@ func (m *QueryShowPrivateKeyshareReqRequest) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } -func (m *QueryShowPrivateKeyshareReqResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryPrivateKeyshareReqResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2482,12 +2506,12 @@ func (m *QueryShowPrivateKeyshareReqResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryShowPrivateKeyshareReqResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPrivateKeyshareReqResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryShowPrivateKeyshareReqResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPrivateKeyshareReqResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2635,7 +2659,7 @@ func (m *QueryParamsResponse) Size() (n int) { return n } -func (m *QueryKeyshareRequest) Size() (n int) { +func (m *QueryKeyshareReqRequest) Size() (n int) { if m == nil { return 0 } @@ -2648,7 +2672,7 @@ func (m *QueryKeyshareRequest) Size() (n int) { return n } -func (m *QueryKeyshareResponse) Size() (n int) { +func (m *QueryKeyshareReqResponse) Size() (n int) { if m == nil { return 0 } @@ -2661,7 +2685,7 @@ func (m *QueryKeyshareResponse) Size() (n int) { return n } -func (m *QueryAllKeyshareRequest) Size() (n int) { +func (m *QueryKeyshareReqAllRequest) Size() (n int) { if m == nil { return 0 } @@ -2674,7 +2698,7 @@ func (m *QueryAllKeyshareRequest) Size() (n int) { return n } -func (m *QueryAllKeyshareResponse) Size() (n int) { +func (m *QueryKeyshareReqAllResponse) Size() (n int) { if m == nil { return 0 } @@ -2693,7 +2717,7 @@ func (m *QueryAllKeyshareResponse) Size() (n int) { return n } -func (m *QueryGetEncryptedTxRequest) Size() (n int) { +func (m *QueryEncryptedTxRequest) Size() (n int) { if m == nil { return 0 } @@ -2708,7 +2732,7 @@ func (m *QueryGetEncryptedTxRequest) Size() (n int) { return n } -func (m *QueryGetEncryptedTxResponse) Size() (n int) { +func (m *QueryEncryptedTxResponse) Size() (n int) { if m == nil { return 0 } @@ -2719,7 +2743,7 @@ func (m *QueryGetEncryptedTxResponse) Size() (n int) { return n } -func (m *QueryAllEncryptedTxRequest) Size() (n int) { +func (m *QueryEncryptedTxAllRequest) Size() (n int) { if m == nil { return 0 } @@ -2732,7 +2756,7 @@ func (m *QueryAllEncryptedTxRequest) Size() (n int) { return n } -func (m *QueryAllEncryptedTxResponse) Size() (n int) { +func (m *QueryEncryptedTxAllResponse) Size() (n int) { if m == nil { return 0 } @@ -2751,7 +2775,7 @@ func (m *QueryAllEncryptedTxResponse) Size() (n int) { return n } -func (m *QueryAllEncryptedTxFromHeightRequest) Size() (n int) { +func (m *QueryEncryptedTxAllFromHeightRequest) Size() (n int) { if m == nil { return 0 } @@ -2763,7 +2787,7 @@ func (m *QueryAllEncryptedTxFromHeightRequest) Size() (n int) { return n } -func (m *QueryAllEncryptedTxFromHeightResponse) Size() (n int) { +func (m *QueryEncryptedTxAllFromHeightResponse) Size() (n int) { if m == nil { return 0 } @@ -2795,7 +2819,7 @@ func (m *QueryLatestHeightResponse) Size() (n int) { return n } -func (m *QueryGetPepNonceRequest) Size() (n int) { +func (m *QueryPepNonceRequest) Size() (n int) { if m == nil { return 0 } @@ -2808,7 +2832,7 @@ func (m *QueryGetPepNonceRequest) Size() (n int) { return n } -func (m *QueryGetPepNonceResponse) Size() (n int) { +func (m *QueryPepNonceResponse) Size() (n int) { if m == nil { return 0 } @@ -2819,7 +2843,7 @@ func (m *QueryGetPepNonceResponse) Size() (n int) { return n } -func (m *QueryAllPepNonceRequest) Size() (n int) { +func (m *QueryPepNonceAllRequest) Size() (n int) { if m == nil { return 0 } @@ -2832,7 +2856,7 @@ func (m *QueryAllPepNonceRequest) Size() (n int) { return n } -func (m *QueryAllPepNonceResponse) Size() (n int) { +func (m *QueryPepNonceAllResponse) Size() (n int) { if m == nil { return 0 } @@ -2873,7 +2897,7 @@ func (m *QueryPubKeyResponse) Size() (n int) { return n } -func (m *QueryShowPrivateKeyshareReqRequest) Size() (n int) { +func (m *QueryPrivateKeyshareReqRequest) Size() (n int) { if m == nil { return 0 } @@ -2886,7 +2910,7 @@ func (m *QueryShowPrivateKeyshareReqRequest) Size() (n int) { return n } -func (m *QueryShowPrivateKeyshareReqResponse) Size() (n int) { +func (m *QueryPrivateKeyshareReqResponse) Size() (n int) { if m == nil { return 0 } @@ -3086,7 +3110,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryKeyshareRequest) Unmarshal(dAtA []byte) error { +func (m *QueryKeyshareReqRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3109,10 +3133,10 @@ func (m *QueryKeyshareRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryKeyshareRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryKeyshareReqRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryKeyshareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryKeyshareReqRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3168,7 +3192,7 @@ func (m *QueryKeyshareRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryKeyshareResponse) Unmarshal(dAtA []byte) error { +func (m *QueryKeyshareReqResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3191,10 +3215,10 @@ func (m *QueryKeyshareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryKeyshareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryKeyshareReqResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryKeyshareReqResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3227,7 +3251,7 @@ func (m *QueryKeyshareResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Keyshare == nil { - m.Keyshare = &GenEncTxExecutionQueue{} + m.Keyshare = &IdentityExecutionQueue{} } if err := m.Keyshare.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -3254,7 +3278,7 @@ func (m *QueryKeyshareResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllKeyshareRequest) Unmarshal(dAtA []byte) error { +func (m *QueryKeyshareReqAllRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3277,10 +3301,10 @@ func (m *QueryAllKeyshareRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllKeyshareRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryKeyshareReqAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllKeyshareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryKeyshareReqAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3340,7 +3364,7 @@ func (m *QueryAllKeyshareRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllKeyshareResponse) Unmarshal(dAtA []byte) error { +func (m *QueryKeyshareReqAllResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3363,10 +3387,10 @@ func (m *QueryAllKeyshareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllKeyshareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryKeyshareReqAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryKeyshareReqAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3398,7 +3422,7 @@ func (m *QueryAllKeyshareResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyshares = append(m.Keyshares, &GenEncTxExecutionQueue{}) + m.Keyshares = append(m.Keyshares, &IdentityExecutionQueue{}) if err := m.Keyshares[len(m.Keyshares)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3460,7 +3484,7 @@ func (m *QueryAllKeyshareResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetEncryptedTxRequest) Unmarshal(dAtA []byte) error { +func (m *QueryEncryptedTxRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3483,10 +3507,10 @@ func (m *QueryGetEncryptedTxRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetEncryptedTxRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryEncryptedTxRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetEncryptedTxRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryEncryptedTxRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3548,7 +3572,7 @@ func (m *QueryGetEncryptedTxRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetEncryptedTxResponse) Unmarshal(dAtA []byte) error { +func (m *QueryEncryptedTxResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3571,10 +3595,10 @@ func (m *QueryGetEncryptedTxResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetEncryptedTxResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryEncryptedTxResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetEncryptedTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryEncryptedTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3631,7 +3655,7 @@ func (m *QueryGetEncryptedTxResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllEncryptedTxRequest) Unmarshal(dAtA []byte) error { +func (m *QueryEncryptedTxAllRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3654,10 +3678,10 @@ func (m *QueryAllEncryptedTxRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllEncryptedTxRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryEncryptedTxAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllEncryptedTxRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryEncryptedTxAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3717,7 +3741,7 @@ func (m *QueryAllEncryptedTxRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllEncryptedTxResponse) Unmarshal(dAtA []byte) error { +func (m *QueryEncryptedTxAllResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3740,10 +3764,10 @@ func (m *QueryAllEncryptedTxResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllEncryptedTxResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryEncryptedTxAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllEncryptedTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryEncryptedTxAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3837,7 +3861,7 @@ func (m *QueryAllEncryptedTxResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllEncryptedTxFromHeightRequest) Unmarshal(dAtA []byte) error { +func (m *QueryEncryptedTxAllFromHeightRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3860,10 +3884,10 @@ func (m *QueryAllEncryptedTxFromHeightRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllEncryptedTxFromHeightRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryEncryptedTxAllFromHeightRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllEncryptedTxFromHeightRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryEncryptedTxAllFromHeightRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3906,7 +3930,7 @@ func (m *QueryAllEncryptedTxFromHeightRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllEncryptedTxFromHeightResponse) Unmarshal(dAtA []byte) error { +func (m *QueryEncryptedTxAllFromHeightResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3929,10 +3953,10 @@ func (m *QueryAllEncryptedTxFromHeightResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllEncryptedTxFromHeightResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryEncryptedTxAllFromHeightResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllEncryptedTxFromHeightResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryEncryptedTxAllFromHeightResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4108,7 +4132,7 @@ func (m *QueryLatestHeightResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetPepNonceRequest) Unmarshal(dAtA []byte) error { +func (m *QueryPepNonceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4131,10 +4155,10 @@ func (m *QueryGetPepNonceRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetPepNonceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPepNonceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetPepNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPepNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4190,7 +4214,7 @@ func (m *QueryGetPepNonceRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGetPepNonceResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPepNonceResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4213,10 +4237,10 @@ func (m *QueryGetPepNonceResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGetPepNonceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPepNonceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGetPepNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPepNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4273,7 +4297,7 @@ func (m *QueryGetPepNonceResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllPepNonceRequest) Unmarshal(dAtA []byte) error { +func (m *QueryPepNonceAllRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4296,10 +4320,10 @@ func (m *QueryAllPepNonceRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllPepNonceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPepNonceAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllPepNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPepNonceAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4359,7 +4383,7 @@ func (m *QueryAllPepNonceRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAllPepNonceResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPepNonceAllResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4382,10 +4406,10 @@ func (m *QueryAllPepNonceResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAllPepNonceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPepNonceAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAllPepNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPepNonceAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4645,7 +4669,7 @@ func (m *QueryPubKeyResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryShowPrivateKeyshareReqRequest) Unmarshal(dAtA []byte) error { +func (m *QueryPrivateKeyshareReqRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4668,10 +4692,10 @@ func (m *QueryShowPrivateKeyshareReqRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryShowPrivateKeyshareReqRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPrivateKeyshareReqRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryShowPrivateKeyshareReqRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPrivateKeyshareReqRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4727,7 +4751,7 @@ func (m *QueryShowPrivateKeyshareReqRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryShowPrivateKeyshareReqResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPrivateKeyshareReqResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4750,10 +4774,10 @@ func (m *QueryShowPrivateKeyshareReqResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryShowPrivateKeyshareReqResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPrivateKeyshareReqResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryShowPrivateKeyshareReqResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPrivateKeyshareReqResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/pep/types/query.pb.gw.go b/x/pep/types/query.pb.gw.go index 2ee2d6db..a70cfce7 100644 --- a/x/pep/types/query.pb.gw.go +++ b/x/pep/types/query.pb.gw.go @@ -52,7 +52,7 @@ func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshal } func request_Query_EncryptedTx_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetEncryptedTxRequest + var protoReq QueryEncryptedTxRequest var metadata runtime.ServerMetadata var ( @@ -62,15 +62,15 @@ func request_Query_EncryptedTx_0(ctx context.Context, marshaler runtime.Marshale _ = err ) - val, ok = pathParams["targetHeight"] + val, ok = pathParams["target_height"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "targetHeight") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "target_height") } protoReq.TargetHeight, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "targetHeight", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "target_height", err) } val, ok = pathParams["index"] @@ -90,7 +90,7 @@ func request_Query_EncryptedTx_0(ctx context.Context, marshaler runtime.Marshale } func local_request_Query_EncryptedTx_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetEncryptedTxRequest + var protoReq QueryEncryptedTxRequest var metadata runtime.ServerMetadata var ( @@ -100,15 +100,15 @@ func local_request_Query_EncryptedTx_0(ctx context.Context, marshaler runtime.Ma _ = err ) - val, ok = pathParams["targetHeight"] + val, ok = pathParams["target_height"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "targetHeight") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "target_height") } protoReq.TargetHeight, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "targetHeight", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "target_height", err) } val, ok = pathParams["index"] @@ -132,7 +132,7 @@ var ( ) func request_Query_EncryptedTxAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllEncryptedTxRequest + var protoReq QueryEncryptedTxAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -148,7 +148,7 @@ func request_Query_EncryptedTxAll_0(ctx context.Context, marshaler runtime.Marsh } func local_request_Query_EncryptedTxAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllEncryptedTxRequest + var protoReq QueryEncryptedTxAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -164,7 +164,7 @@ func local_request_Query_EncryptedTxAll_0(ctx context.Context, marshaler runtime } func request_Query_EncryptedTxAllFromHeight_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllEncryptedTxFromHeightRequest + var protoReq QueryEncryptedTxAllFromHeightRequest var metadata runtime.ServerMetadata var ( @@ -174,15 +174,15 @@ func request_Query_EncryptedTxAllFromHeight_0(ctx context.Context, marshaler run _ = err ) - val, ok = pathParams["targetHeight"] + val, ok = pathParams["target_height"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "targetHeight") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "target_height") } protoReq.TargetHeight, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "targetHeight", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "target_height", err) } msg, err := client.EncryptedTxAllFromHeight(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -191,7 +191,7 @@ func request_Query_EncryptedTxAllFromHeight_0(ctx context.Context, marshaler run } func local_request_Query_EncryptedTxAllFromHeight_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllEncryptedTxFromHeightRequest + var protoReq QueryEncryptedTxAllFromHeightRequest var metadata runtime.ServerMetadata var ( @@ -201,15 +201,15 @@ func local_request_Query_EncryptedTxAllFromHeight_0(ctx context.Context, marshal _ = err ) - val, ok = pathParams["targetHeight"] + val, ok = pathParams["target_height"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "targetHeight") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "target_height") } protoReq.TargetHeight, err = runtime.Uint64(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "targetHeight", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "target_height", err) } msg, err := server.EncryptedTxAllFromHeight(ctx, &protoReq) @@ -236,7 +236,7 @@ func local_request_Query_LatestHeight_0(ctx context.Context, marshaler runtime.M } func request_Query_PepNonce_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetPepNonceRequest + var protoReq QueryPepNonceRequest var metadata runtime.ServerMetadata var ( @@ -263,7 +263,7 @@ func request_Query_PepNonce_0(ctx context.Context, marshaler runtime.Marshaler, } func local_request_Query_PepNonce_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGetPepNonceRequest + var protoReq QueryPepNonceRequest var metadata runtime.ServerMetadata var ( @@ -294,7 +294,7 @@ var ( ) func request_Query_PepNonceAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllPepNonceRequest + var protoReq QueryPepNonceAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -310,7 +310,7 @@ func request_Query_PepNonceAll_0(ctx context.Context, marshaler runtime.Marshale } func local_request_Query_PepNonceAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllPepNonceRequest + var protoReq QueryPepNonceAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -344,7 +344,7 @@ func local_request_Query_PubKey_0(ctx context.Context, marshaler runtime.Marshal } func request_Query_KeyshareReq_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryKeyshareRequest + var protoReq QueryKeyshareReqRequest var metadata runtime.ServerMetadata var ( @@ -371,7 +371,7 @@ func request_Query_KeyshareReq_0(ctx context.Context, marshaler runtime.Marshale } func local_request_Query_KeyshareReq_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryKeyshareRequest + var protoReq QueryKeyshareReqRequest var metadata runtime.ServerMetadata var ( @@ -402,7 +402,7 @@ var ( ) func request_Query_KeyshareReqAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllKeyshareRequest + var protoReq QueryKeyshareReqAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -418,7 +418,7 @@ func request_Query_KeyshareReqAll_0(ctx context.Context, marshaler runtime.Marsh } func local_request_Query_KeyshareReqAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAllKeyshareRequest + var protoReq QueryKeyshareReqAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { @@ -433,8 +433,8 @@ func local_request_Query_KeyshareReqAll_0(ctx context.Context, marshaler runtime } -func request_Query_ShowPrivateKeyshareReq_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryShowPrivateKeyshareReqRequest +func request_Query_PrivateKeyshareReq_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPrivateKeyshareReqRequest var metadata runtime.ServerMetadata var ( @@ -444,24 +444,24 @@ func request_Query_ShowPrivateKeyshareReq_0(ctx context.Context, marshaler runti _ = err ) - val, ok = pathParams["reqId"] + val, ok = pathParams["req_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "reqId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "req_id") } protoReq.ReqId, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "reqId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "req_id", err) } - msg, err := client.ShowPrivateKeyshareReq(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.PrivateKeyshareReq(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_ShowPrivateKeyshareReq_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryShowPrivateKeyshareReqRequest +func local_request_Query_PrivateKeyshareReq_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPrivateKeyshareReqRequest var metadata runtime.ServerMetadata var ( @@ -471,18 +471,18 @@ func local_request_Query_ShowPrivateKeyshareReq_0(ctx context.Context, marshaler _ = err ) - val, ok = pathParams["reqId"] + val, ok = pathParams["req_id"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "reqId") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "req_id") } protoReq.ReqId, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "reqId", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "req_id", err) } - msg, err := server.ShowPrivateKeyshareReq(ctx, &protoReq) + msg, err := server.PrivateKeyshareReq(ctx, &protoReq) return msg, metadata, err } @@ -821,7 +821,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_ShowPrivateKeyshareReq_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_PrivateKeyshareReq_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -832,7 +832,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_ShowPrivateKeyshareReq_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_PrivateKeyshareReq_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -840,7 +840,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_ShowPrivateKeyshareReq_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_PrivateKeyshareReq_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1108,7 +1108,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_ShowPrivateKeyshareReq_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_PrivateKeyshareReq_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -1117,14 +1117,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_ShowPrivateKeyshareReq_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_PrivateKeyshareReq_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_ShowPrivateKeyshareReq_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_PrivateKeyshareReq_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1154,11 +1154,11 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie var ( pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "pep", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_EncryptedTx_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"fairyring", "pep", "encrypted_tx", "targetHeight", "index"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_EncryptedTx_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"fairyring", "pep", "encrypted_tx", "target_height", "index"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_EncryptedTxAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "pep", "encrypted_tx"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_EncryptedTxAllFromHeight_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"fairyring", "pep", "encrypted_tx", "targetHeight"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_EncryptedTxAllFromHeight_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"fairyring", "pep", "encrypted_tx", "target_height"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_LatestHeight_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "pep", "latest_height"}, "", runtime.AssumeColonVerbOpt(false))) @@ -1172,7 +1172,7 @@ var ( pattern_Query_KeyshareReqAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "pep", "keyshare"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_ShowPrivateKeyshareReq_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"Fairblock", "fairyring", "pep", "show_private_keyshare_req", "reqId"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_PrivateKeyshareReq_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"Fairblock", "fairyring", "pep", "show_private_keyshare_req", "req_id"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_DecryptData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"Fairblock", "fairyring", "pep", "decrypt_data", "pubkey", "aggr_keyshare", "encrypted_data"}, "", runtime.AssumeColonVerbOpt(false))) ) @@ -1198,7 +1198,7 @@ var ( forward_Query_KeyshareReqAll_0 = runtime.ForwardResponseMessage - forward_Query_ShowPrivateKeyshareReq_0 = runtime.ForwardResponseMessage + forward_Query_PrivateKeyshareReq_0 = runtime.ForwardResponseMessage forward_Query_DecryptData_0 = runtime.ForwardResponseMessage ) diff --git a/x/pep/types/request_id.pb.go b/x/pep/types/request_id.pb.go index 33576192..f1bbf117 100644 --- a/x/pep/types/request_id.pb.go +++ b/x/pep/types/request_id.pb.go @@ -24,9 +24,11 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// RequestId defines the structure for storing request ids +// that have already been registered to prevent overlap type RequestId struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - ReqId string `protobuf:"bytes,2,opt,name=reqId,proto3" json:"reqId,omitempty"` + ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } func (m *RequestId) Reset() { *m = RequestId{} } @@ -76,6 +78,8 @@ func (m *RequestId) GetReqId() string { return "" } +// PrivateRequest defines the structure for storing private +// keyshare requests along with the unaggregated encrypted keyshares type PrivateRequest struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` @@ -144,6 +148,9 @@ func (m *PrivateRequest) GetEncryptedKeyshares() []*types.EncryptedKeyshare { return nil } +// ContractDetails defines the structure to store the details of a +// contract that has been registered to execute automatically when +// the identity associated with it has an aggregate keyshare available type ContractDetails struct { Registrar string `protobuf:"bytes,1,opt,name=registrar,proto3" json:"registrar,omitempty"` ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` @@ -196,6 +203,8 @@ func (m *ContractDetails) GetContractAddress() string { return "" } +// RegisteredContract defines the structure to store the list of +// contracts that have been registered with a particular identity type RegisteredContract struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Contracts []*ContractDetails `protobuf:"bytes,2,rep,name=contracts,proto3" json:"contracts,omitempty"` @@ -248,6 +257,7 @@ func (m *RegisteredContract) GetContracts() []*ContractDetails { return nil } +// ExecuteContractMsg defines the structure to callback registered contracts type ExecuteContractMsg struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` @@ -319,34 +329,34 @@ func init() { func init() { proto.RegisterFile("fairyring/pep/request_id.proto", fileDescriptor_3e457d2e8ff0411e) } var fileDescriptor_3e457d2e8ff0411e = []byte{ - // 422 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x52, 0xc1, 0x6e, 0xd4, 0x30, - 0x10, 0xdd, 0xb4, 0xea, 0xc2, 0x0e, 0x94, 0x22, 0x53, 0x50, 0xb4, 0x42, 0x51, 0x95, 0xbd, 0x14, - 0x0e, 0x89, 0x04, 0x47, 0xb8, 0x00, 0x2d, 0x52, 0x85, 0x90, 0x50, 0xc4, 0xa9, 0x97, 0xc8, 0x1b, - 0x0f, 0xa9, 0xb5, 0xdd, 0xd8, 0x3b, 0x76, 0x50, 0xf3, 0x17, 0xfc, 0x09, 0xbf, 0xc1, 0xb1, 0x47, - 0x8e, 0x68, 0xf7, 0x47, 0x50, 0x9c, 0x78, 0xa3, 0xed, 0xa1, 0x37, 0xcf, 0xf3, 0x9b, 0xe7, 0xf1, - 0x9b, 0x07, 0xd1, 0x0f, 0x2e, 0xa9, 0x21, 0x59, 0x95, 0xa9, 0x46, 0x9d, 0x12, 0xae, 0x6a, 0x34, - 0x36, 0x97, 0x22, 0xd1, 0xa4, 0xac, 0x62, 0x87, 0xdb, 0xfb, 0x44, 0xa3, 0x9e, 0x1e, 0x97, 0xaa, - 0x54, 0xee, 0x26, 0x6d, 0x4f, 0x1d, 0x69, 0x3a, 0x1b, 0x44, 0x0a, 0xb5, 0x5c, 0xaa, 0x2a, 0x35, - 0x57, 0x9c, 0x50, 0xe4, 0xb6, 0xd1, 0x68, 0x3a, 0x52, 0xfc, 0x0e, 0x26, 0x59, 0xa7, 0x7e, 0x21, - 0x58, 0x08, 0x0f, 0x0a, 0x42, 0x6e, 0x15, 0x85, 0xc1, 0x49, 0x70, 0x3a, 0xc9, 0x7c, 0xc9, 0x8e, - 0xe1, 0x80, 0x70, 0x75, 0x21, 0xc2, 0x3d, 0x87, 0x77, 0x45, 0xfc, 0x3b, 0x80, 0x27, 0xdf, 0x48, - 0xfe, 0xe4, 0x16, 0x7b, 0x91, 0x7b, 0x24, 0x9e, 0xc3, 0x98, 0x70, 0x95, 0xcb, 0x5d, 0x0d, 0xf6, - 0x02, 0xc6, 0xba, 0x9e, 0x2f, 0xb0, 0x09, 0xf7, 0x1d, 0xdc, 0x57, 0xec, 0x3b, 0x3c, 0xc3, 0xaa, - 0xa0, 0x46, 0x5b, 0x14, 0xf9, 0x02, 0x1b, 0x37, 0xbb, 0x09, 0x0f, 0x4e, 0xf6, 0x4f, 0x1f, 0xbd, - 0x99, 0x25, 0x83, 0x01, 0xdd, 0xdf, 0x92, 0x73, 0x4f, 0xfe, 0xd2, 0x73, 0x33, 0x86, 0x77, 0x21, - 0x13, 0x5f, 0xc2, 0xd1, 0x27, 0x55, 0x59, 0xe2, 0x85, 0x3d, 0x43, 0xcb, 0xe5, 0xb5, 0x61, 0x2f, - 0x61, 0x42, 0x58, 0x4a, 0x63, 0x89, 0xfb, 0x99, 0x07, 0x80, 0xbd, 0x82, 0xa7, 0x45, 0xdf, 0x90, - 0x73, 0x21, 0x08, 0x8d, 0xe9, 0xe7, 0x3f, 0xf2, 0xf8, 0x87, 0x0e, 0x8e, 0x2b, 0x60, 0x99, 0xeb, - 0x43, 0x42, 0xe1, 0x5f, 0x61, 0x53, 0x78, 0x28, 0x05, 0x56, 0x56, 0xda, 0xa6, 0x57, 0xdf, 0xd6, - 0xec, 0x3d, 0x4c, 0xbc, 0x48, 0xab, 0xda, 0xfe, 0x2c, 0x4a, 0x76, 0x56, 0x9b, 0xdc, 0x99, 0x36, - 0x1b, 0x1a, 0xe2, 0x25, 0xb0, 0xf3, 0x1b, 0x2c, 0x6a, 0x8b, 0x9e, 0xf4, 0xd5, 0x94, 0xf7, 0xbe, - 0x37, 0x78, 0xbd, 0xb7, 0xe3, 0xf5, 0x0c, 0x0e, 0x79, 0x59, 0xd2, 0xd6, 0xe6, 0x7e, 0x15, 0x8f, - 0x5b, 0xd0, 0x7b, 0xf7, 0xf1, 0xec, 0xcf, 0x3a, 0x0a, 0x6e, 0xd7, 0x51, 0xf0, 0x6f, 0x1d, 0x05, - 0xbf, 0x36, 0xd1, 0xe8, 0x76, 0x13, 0x8d, 0xfe, 0x6e, 0xa2, 0xd1, 0xe5, 0xeb, 0x52, 0xda, 0xab, - 0x7a, 0xde, 0x6e, 0x22, 0xfd, 0xcc, 0x25, 0xcd, 0xaf, 0x55, 0xb1, 0x48, 0x87, 0xf4, 0xdd, 0xb8, - 0x10, 0xbb, 0xd4, 0xcd, 0xc7, 0x2e, 0x76, 0x6f, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0xf3, 0x11, - 0xcf, 0x8f, 0xe2, 0x02, 0x00, 0x00, + // 419 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xcd, 0x6e, 0xd4, 0x30, + 0x10, 0xde, 0xb4, 0xea, 0xc2, 0x1a, 0x4a, 0x91, 0xf9, 0x51, 0xb4, 0x42, 0x56, 0x95, 0xbd, 0x14, + 0x0e, 0x89, 0x04, 0xd7, 0x5e, 0x80, 0x16, 0xa9, 0x42, 0x48, 0x28, 0xe2, 0xd4, 0x4b, 0xe4, 0x8d, + 0x07, 0xd7, 0xda, 0x6e, 0xec, 0x1d, 0x3b, 0xa8, 0x79, 0x0b, 0xde, 0x84, 0xd7, 0xe0, 0xd8, 0x23, + 0x47, 0xb4, 0xfb, 0x22, 0x28, 0x4e, 0xbc, 0x51, 0xf7, 0x80, 0xd4, 0x9b, 0xe7, 0x9b, 0x6f, 0x3e, + 0xcf, 0x7c, 0x33, 0x84, 0x7d, 0xe7, 0x0a, 0x1b, 0x54, 0x95, 0xcc, 0x0c, 0x98, 0x0c, 0x61, 0x55, + 0x83, 0x75, 0x85, 0x12, 0xa9, 0x41, 0xed, 0x34, 0x3d, 0xdc, 0xe6, 0x53, 0x03, 0x66, 0xfa, 0x5c, + 0x6a, 0xa9, 0x7d, 0x26, 0x6b, 0x5f, 0x1d, 0x69, 0x3a, 0x1b, 0x44, 0x4a, 0xbd, 0x5c, 0xea, 0x2a, + 0xb3, 0x57, 0x1c, 0x41, 0x14, 0xae, 0x31, 0x60, 0x3b, 0x52, 0x72, 0x4a, 0x26, 0x79, 0xa7, 0x7e, + 0x21, 0x68, 0x4c, 0x1e, 0x94, 0x08, 0xdc, 0x69, 0x8c, 0xa3, 0xe3, 0xe8, 0x64, 0x92, 0x87, 0x90, + 0xbe, 0x20, 0x63, 0x84, 0x55, 0xa1, 0x44, 0xbc, 0xe7, 0x13, 0x07, 0x08, 0xab, 0x0b, 0x91, 0xfc, + 0x8a, 0xc8, 0x93, 0xaf, 0xa8, 0x7e, 0x70, 0x07, 0xbd, 0xca, 0xbd, 0x35, 0xe8, 0x4b, 0x32, 0x36, + 0xf5, 0x7c, 0x01, 0x4d, 0xbc, 0xef, 0xe1, 0x3e, 0xa2, 0xdf, 0xc8, 0x33, 0xa8, 0x4a, 0x6c, 0x8c, + 0x03, 0x51, 0x2c, 0xa0, 0xf1, 0xcd, 0xdb, 0xf8, 0xe0, 0x78, 0xff, 0xe4, 0xd1, 0xdb, 0x59, 0x3a, + 0x38, 0xd0, 0x0d, 0x97, 0x9e, 0x07, 0xf2, 0xe7, 0x9e, 0x9b, 0x53, 0xd8, 0x85, 0x6c, 0x72, 0x49, + 0x8e, 0x3e, 0xea, 0xca, 0x21, 0x2f, 0xdd, 0x19, 0x38, 0xae, 0xae, 0x2d, 0x7d, 0x45, 0x26, 0x08, + 0x52, 0x59, 0x87, 0x3c, 0xf4, 0x3c, 0x00, 0xf4, 0x35, 0x79, 0x5a, 0xf6, 0x05, 0x05, 0x17, 0x02, + 0xc1, 0xda, 0xbe, 0xff, 0xa3, 0x80, 0xbf, 0xef, 0xe0, 0xa4, 0x22, 0x34, 0xf7, 0x75, 0x80, 0x20, + 0xc2, 0x2f, 0x74, 0x4a, 0x1e, 0x2a, 0x01, 0x95, 0x53, 0xae, 0xe9, 0xd5, 0xb7, 0x31, 0x3d, 0x25, + 0x93, 0x20, 0xd2, 0xaa, 0xb6, 0x93, 0xb1, 0xf4, 0xce, 0x6e, 0xd3, 0x9d, 0x6e, 0xf3, 0xa1, 0x20, + 0x59, 0x12, 0x7a, 0x7e, 0x03, 0x65, 0xed, 0x20, 0x90, 0xbe, 0x58, 0xf9, 0xdf, 0xff, 0x06, 0xaf, + 0xf7, 0xee, 0x78, 0x3d, 0x23, 0x87, 0x5c, 0x4a, 0xdc, 0xda, 0xdc, 0xaf, 0xe2, 0x71, 0x0b, 0x06, + 0xef, 0x3e, 0x9c, 0xfd, 0x5e, 0xb3, 0xe8, 0x76, 0xcd, 0xa2, 0xbf, 0x6b, 0x16, 0xfd, 0xdc, 0xb0, + 0xd1, 0xed, 0x86, 0x8d, 0xfe, 0x6c, 0xd8, 0xe8, 0xf2, 0x8d, 0x54, 0xee, 0xaa, 0x9e, 0xb7, 0x9b, + 0xc8, 0x3e, 0x71, 0x85, 0xf3, 0x6b, 0x5d, 0x2e, 0xb2, 0xe1, 0xfc, 0x6e, 0xfc, 0x15, 0xfb, 0xb3, + 0x9b, 0x8f, 0xfd, 0xdd, 0xbd, 0xfb, 0x17, 0x00, 0x00, 0xff, 0xff, 0xac, 0x86, 0xc2, 0x20, 0xe3, + 0x02, 0x00, 0x00, } func (m *RequestId) Marshal() (dAtA []byte, err error) { diff --git a/x/pep/types/tx.pb.go b/x/pep/types/tx.pb.go index 3ef57b7e..692ee326 100644 --- a/x/pep/types/tx.pb.go +++ b/x/pep/types/tx.pb.go @@ -7,7 +7,6 @@ import ( context "context" fmt "fmt" _ "github.com/cosmos/cosmos-proto" - _ "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/cosmos-sdk/types/msgservice" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" _ "github.com/cosmos/gogoproto/gogoproto" @@ -129,10 +128,11 @@ func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo +// MsgSubmitEncryptedTx is the Msg/SubmitEncryptedTx request type. type MsgSubmitEncryptedTx struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - TargetBlockHeight uint64 `protobuf:"varint,3,opt,name=targetBlockHeight,proto3" json:"targetBlockHeight,omitempty"` + TargetBlockHeight uint64 `protobuf:"varint,3,opt,name=target_block_height,json=targetBlockHeight,proto3" json:"target_block_height,omitempty"` } func (m *MsgSubmitEncryptedTx) Reset() { *m = MsgSubmitEncryptedTx{} } @@ -189,6 +189,45 @@ func (m *MsgSubmitEncryptedTx) GetTargetBlockHeight() uint64 { return 0 } +// MsgSubmitEncryptedTxResponse defines the response structure for executing a +// MsgSubmitEncryptedTx message. +type MsgSubmitEncryptedTxResponse struct { +} + +func (m *MsgSubmitEncryptedTxResponse) Reset() { *m = MsgSubmitEncryptedTxResponse{} } +func (m *MsgSubmitEncryptedTxResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSubmitEncryptedTxResponse) ProtoMessage() {} +func (*MsgSubmitEncryptedTxResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f6953e463911e1ec, []int{3} +} +func (m *MsgSubmitEncryptedTxResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgSubmitEncryptedTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgSubmitEncryptedTxResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgSubmitEncryptedTxResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSubmitEncryptedTxResponse.Merge(m, src) +} +func (m *MsgSubmitEncryptedTxResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgSubmitEncryptedTxResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSubmitEncryptedTxResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgSubmitEncryptedTxResponse proto.InternalMessageInfo + +// MsgSubmitGeneralEncryptedTx is the Msg/SubmitGeneralEncryptedTx request type. type MsgSubmitGeneralEncryptedTx struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` @@ -199,7 +238,7 @@ func (m *MsgSubmitGeneralEncryptedTx) Reset() { *m = MsgSubmitGeneralEnc func (m *MsgSubmitGeneralEncryptedTx) String() string { return proto.CompactTextString(m) } func (*MsgSubmitGeneralEncryptedTx) ProtoMessage() {} func (*MsgSubmitGeneralEncryptedTx) Descriptor() ([]byte, []int) { - return fileDescriptor_f6953e463911e1ec, []int{3} + return fileDescriptor_f6953e463911e1ec, []int{4} } func (m *MsgSubmitGeneralEncryptedTx) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -249,21 +288,23 @@ func (m *MsgSubmitGeneralEncryptedTx) GetReqId() string { return "" } -type MsgSubmitEncryptedTxResponse struct { +// MsgSubmitGeneralEncryptedTxResponse defines the response structure for executing a +// MsgSubmitGeneralEncryptedTx message. +type MsgSubmitGeneralEncryptedTxResponse struct { } -func (m *MsgSubmitEncryptedTxResponse) Reset() { *m = MsgSubmitEncryptedTxResponse{} } -func (m *MsgSubmitEncryptedTxResponse) String() string { return proto.CompactTextString(m) } -func (*MsgSubmitEncryptedTxResponse) ProtoMessage() {} -func (*MsgSubmitEncryptedTxResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f6953e463911e1ec, []int{4} +func (m *MsgSubmitGeneralEncryptedTxResponse) Reset() { *m = MsgSubmitGeneralEncryptedTxResponse{} } +func (m *MsgSubmitGeneralEncryptedTxResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSubmitGeneralEncryptedTxResponse) ProtoMessage() {} +func (*MsgSubmitGeneralEncryptedTxResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_f6953e463911e1ec, []int{5} } -func (m *MsgSubmitEncryptedTxResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgSubmitGeneralEncryptedTxResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgSubmitEncryptedTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgSubmitGeneralEncryptedTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgSubmitEncryptedTxResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgSubmitGeneralEncryptedTxResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -273,19 +314,19 @@ func (m *MsgSubmitEncryptedTxResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *MsgSubmitEncryptedTxResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSubmitEncryptedTxResponse.Merge(m, src) +func (m *MsgSubmitGeneralEncryptedTxResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSubmitGeneralEncryptedTxResponse.Merge(m, src) } -func (m *MsgSubmitEncryptedTxResponse) XXX_Size() int { +func (m *MsgSubmitGeneralEncryptedTxResponse) XXX_Size() int { return m.Size() } -func (m *MsgSubmitEncryptedTxResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSubmitEncryptedTxResponse.DiscardUnknown(m) +func (m *MsgSubmitGeneralEncryptedTxResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSubmitGeneralEncryptedTxResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgSubmitEncryptedTxResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgSubmitGeneralEncryptedTxResponse proto.InternalMessageInfo -// this line is used by starport scaffolding # proto/tx/message +// MsgCreateAggregatedKeyShare is the Msg/CreateAggregatedKeyShare request type. type MsgCreateAggregatedKeyShare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` @@ -296,7 +337,7 @@ func (m *MsgCreateAggregatedKeyShare) Reset() { *m = MsgCreateAggregated func (m *MsgCreateAggregatedKeyShare) String() string { return proto.CompactTextString(m) } func (*MsgCreateAggregatedKeyShare) ProtoMessage() {} func (*MsgCreateAggregatedKeyShare) Descriptor() ([]byte, []int) { - return fileDescriptor_f6953e463911e1ec, []int{5} + return fileDescriptor_f6953e463911e1ec, []int{6} } func (m *MsgCreateAggregatedKeyShare) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -346,6 +387,8 @@ func (m *MsgCreateAggregatedKeyShare) GetData() string { return "" } +// MsgCreateAggregatedKeyShareResponse defines the response structure for executing a +// MsgCreateAggregatedKeyShare message. type MsgCreateAggregatedKeyShareResponse struct { } @@ -353,7 +396,7 @@ func (m *MsgCreateAggregatedKeyShareResponse) Reset() { *m = MsgCreateAg func (m *MsgCreateAggregatedKeyShareResponse) String() string { return proto.CompactTextString(m) } func (*MsgCreateAggregatedKeyShareResponse) ProtoMessage() {} func (*MsgCreateAggregatedKeyShareResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f6953e463911e1ec, []int{6} + return fileDescriptor_f6953e463911e1ec, []int{7} } func (m *MsgCreateAggregatedKeyShareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -382,6 +425,7 @@ func (m *MsgCreateAggregatedKeyShareResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgCreateAggregatedKeyShareResponse proto.InternalMessageInfo +// MsgRequestGeneralKeyshare is the Msg/RequestGeneralKeyshare request type. type MsgRequestGeneralKeyshare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` EstimatedDelay *time.Duration `protobuf:"bytes,2,opt,name=estimated_delay,json=estimatedDelay,proto3,stdduration" json:"estimated_delay,omitempty"` @@ -392,7 +436,7 @@ func (m *MsgRequestGeneralKeyshare) Reset() { *m = MsgRequestGeneralKeys func (m *MsgRequestGeneralKeyshare) String() string { return proto.CompactTextString(m) } func (*MsgRequestGeneralKeyshare) ProtoMessage() {} func (*MsgRequestGeneralKeyshare) Descriptor() ([]byte, []int) { - return fileDescriptor_f6953e463911e1ec, []int{7} + return fileDescriptor_f6953e463911e1ec, []int{8} } func (m *MsgRequestGeneralKeyshare) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -442,6 +486,8 @@ func (m *MsgRequestGeneralKeyshare) GetReqId() string { return "" } +// MsgRequestGeneralKeyshareResponse defines the response structure for executing a +// MsgRequestGeneralKeyshare message. type MsgRequestGeneralKeyshareResponse struct { ReqId string `protobuf:"bytes,1,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } @@ -450,7 +496,7 @@ func (m *MsgRequestGeneralKeyshareResponse) Reset() { *m = MsgRequestGen func (m *MsgRequestGeneralKeyshareResponse) String() string { return proto.CompactTextString(m) } func (*MsgRequestGeneralKeyshareResponse) ProtoMessage() {} func (*MsgRequestGeneralKeyshareResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f6953e463911e1ec, []int{8} + return fileDescriptor_f6953e463911e1ec, []int{9} } func (m *MsgRequestGeneralKeyshareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -486,6 +532,7 @@ func (m *MsgRequestGeneralKeyshareResponse) GetReqId() string { return "" } +// MsgGetGeneralKeyshare is the Msg/GetGeneralKeyshare request type. type MsgGetGeneralKeyshare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` @@ -495,7 +542,7 @@ func (m *MsgGetGeneralKeyshare) Reset() { *m = MsgGetGeneralKeyshare{} } func (m *MsgGetGeneralKeyshare) String() string { return proto.CompactTextString(m) } func (*MsgGetGeneralKeyshare) ProtoMessage() {} func (*MsgGetGeneralKeyshare) Descriptor() ([]byte, []int) { - return fileDescriptor_f6953e463911e1ec, []int{9} + return fileDescriptor_f6953e463911e1ec, []int{10} } func (m *MsgGetGeneralKeyshare) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -538,6 +585,8 @@ func (m *MsgGetGeneralKeyshare) GetReqId() string { return "" } +// MsgGetGeneralKeyshareResponse defines the response structure for executing a +// MsgGetGeneralKeyshare message. type MsgGetGeneralKeyshareResponse struct { } @@ -545,7 +594,7 @@ func (m *MsgGetGeneralKeyshareResponse) Reset() { *m = MsgGetGeneralKeys func (m *MsgGetGeneralKeyshareResponse) String() string { return proto.CompactTextString(m) } func (*MsgGetGeneralKeyshareResponse) ProtoMessage() {} func (*MsgGetGeneralKeyshareResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f6953e463911e1ec, []int{10} + return fileDescriptor_f6953e463911e1ec, []int{11} } func (m *MsgGetGeneralKeyshareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -574,16 +623,17 @@ func (m *MsgGetGeneralKeyshareResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgGetGeneralKeyshareResponse proto.InternalMessageInfo +// MsgRequestPrivateIdentity is the Msg/RequestPrivateIdentity request type. type MsgRequestPrivateIdentity struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - ReqId string `protobuf:"bytes,2,opt,name=reqId,proto3" json:"reqId,omitempty"` + ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } func (m *MsgRequestPrivateIdentity) Reset() { *m = MsgRequestPrivateIdentity{} } func (m *MsgRequestPrivateIdentity) String() string { return proto.CompactTextString(m) } func (*MsgRequestPrivateIdentity) ProtoMessage() {} func (*MsgRequestPrivateIdentity) Descriptor() ([]byte, []int) { - return fileDescriptor_f6953e463911e1ec, []int{11} + return fileDescriptor_f6953e463911e1ec, []int{12} } func (m *MsgRequestPrivateIdentity) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -626,6 +676,8 @@ func (m *MsgRequestPrivateIdentity) GetReqId() string { return "" } +// MsgRequestPrivateIdentityResponse defines the response structure for executing a +// MsgRequestPrivateIdentity message. type MsgRequestPrivateIdentityResponse struct { ReqId string `protobuf:"bytes,1,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } @@ -634,7 +686,7 @@ func (m *MsgRequestPrivateIdentityResponse) Reset() { *m = MsgRequestPri func (m *MsgRequestPrivateIdentityResponse) String() string { return proto.CompactTextString(m) } func (*MsgRequestPrivateIdentityResponse) ProtoMessage() {} func (*MsgRequestPrivateIdentityResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f6953e463911e1ec, []int{12} + return fileDescriptor_f6953e463911e1ec, []int{13} } func (m *MsgRequestPrivateIdentityResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -670,9 +722,10 @@ func (m *MsgRequestPrivateIdentityResponse) GetReqId() string { return "" } +// MsgGetPrivateKeyshares is the Msg/GetPrivateKeyshares request type. type MsgGetPrivateKeyshares struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - ReqId string `protobuf:"bytes,2,opt,name=reqId,proto3" json:"reqId,omitempty"` + ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` SecpPubkey string `protobuf:"bytes,3,opt,name=secp_pubkey,json=secpPubkey,proto3" json:"secp_pubkey,omitempty"` } @@ -680,7 +733,7 @@ func (m *MsgGetPrivateKeyshares) Reset() { *m = MsgGetPrivateKeyshares{} func (m *MsgGetPrivateKeyshares) String() string { return proto.CompactTextString(m) } func (*MsgGetPrivateKeyshares) ProtoMessage() {} func (*MsgGetPrivateKeyshares) Descriptor() ([]byte, []int) { - return fileDescriptor_f6953e463911e1ec, []int{13} + return fileDescriptor_f6953e463911e1ec, []int{14} } func (m *MsgGetPrivateKeyshares) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -730,6 +783,8 @@ func (m *MsgGetPrivateKeyshares) GetSecpPubkey() string { return "" } +// MsgGetPrivateKeysharesResponse defines the response structure for executing a +// MsgGetPrivateKeyshares message. type MsgGetPrivateKeysharesResponse struct { } @@ -737,7 +792,7 @@ func (m *MsgGetPrivateKeysharesResponse) Reset() { *m = MsgGetPrivateKey func (m *MsgGetPrivateKeysharesResponse) String() string { return proto.CompactTextString(m) } func (*MsgGetPrivateKeysharesResponse) ProtoMessage() {} func (*MsgGetPrivateKeysharesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f6953e463911e1ec, []int{14} + return fileDescriptor_f6953e463911e1ec, []int{15} } func (m *MsgGetPrivateKeysharesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -766,6 +821,7 @@ func (m *MsgGetPrivateKeysharesResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgGetPrivateKeysharesResponse proto.InternalMessageInfo +// MsgRegisterContract is the Msg/RegisterContract request type. type MsgRegisterContract struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` @@ -776,7 +832,7 @@ func (m *MsgRegisterContract) Reset() { *m = MsgRegisterContract{} } func (m *MsgRegisterContract) String() string { return proto.CompactTextString(m) } func (*MsgRegisterContract) ProtoMessage() {} func (*MsgRegisterContract) Descriptor() ([]byte, []int) { - return fileDescriptor_f6953e463911e1ec, []int{15} + return fileDescriptor_f6953e463911e1ec, []int{16} } func (m *MsgRegisterContract) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -826,6 +882,8 @@ func (m *MsgRegisterContract) GetIdentity() string { return "" } +// MsgRegisterContractResponse defines the response structure for executing a +// MsgRegisterContract message. type MsgRegisterContractResponse struct { } @@ -833,7 +891,7 @@ func (m *MsgRegisterContractResponse) Reset() { *m = MsgRegisterContract func (m *MsgRegisterContractResponse) String() string { return proto.CompactTextString(m) } func (*MsgRegisterContractResponse) ProtoMessage() {} func (*MsgRegisterContractResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f6953e463911e1ec, []int{16} + return fileDescriptor_f6953e463911e1ec, []int{17} } func (m *MsgRegisterContractResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -862,6 +920,7 @@ func (m *MsgRegisterContractResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRegisterContractResponse proto.InternalMessageInfo +// MsgUnregisterContract is the Msg/UnregisterContract request type. type MsgUnregisterContract struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` @@ -872,7 +931,7 @@ func (m *MsgUnregisterContract) Reset() { *m = MsgUnregisterContract{} } func (m *MsgUnregisterContract) String() string { return proto.CompactTextString(m) } func (*MsgUnregisterContract) ProtoMessage() {} func (*MsgUnregisterContract) Descriptor() ([]byte, []int) { - return fileDescriptor_f6953e463911e1ec, []int{17} + return fileDescriptor_f6953e463911e1ec, []int{18} } func (m *MsgUnregisterContract) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -922,6 +981,8 @@ func (m *MsgUnregisterContract) GetIdentity() string { return "" } +// MsgUnregisterContractResponse defines the response structure for executing a +// MsgUnregisterContract message. type MsgUnregisterContractResponse struct { } @@ -929,7 +990,7 @@ func (m *MsgUnregisterContractResponse) Reset() { *m = MsgUnregisterCont func (m *MsgUnregisterContractResponse) String() string { return proto.CompactTextString(m) } func (*MsgUnregisterContractResponse) ProtoMessage() {} func (*MsgUnregisterContractResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f6953e463911e1ec, []int{18} + return fileDescriptor_f6953e463911e1ec, []int{19} } func (m *MsgUnregisterContractResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -962,8 +1023,9 @@ func init() { proto.RegisterType((*MsgUpdateParams)(nil), "fairyring.pep.MsgUpdateParams") proto.RegisterType((*MsgUpdateParamsResponse)(nil), "fairyring.pep.MsgUpdateParamsResponse") proto.RegisterType((*MsgSubmitEncryptedTx)(nil), "fairyring.pep.MsgSubmitEncryptedTx") - proto.RegisterType((*MsgSubmitGeneralEncryptedTx)(nil), "fairyring.pep.MsgSubmitGeneralEncryptedTx") proto.RegisterType((*MsgSubmitEncryptedTxResponse)(nil), "fairyring.pep.MsgSubmitEncryptedTxResponse") + proto.RegisterType((*MsgSubmitGeneralEncryptedTx)(nil), "fairyring.pep.MsgSubmitGeneralEncryptedTx") + proto.RegisterType((*MsgSubmitGeneralEncryptedTxResponse)(nil), "fairyring.pep.MsgSubmitGeneralEncryptedTxResponse") proto.RegisterType((*MsgCreateAggregatedKeyShare)(nil), "fairyring.pep.MsgCreateAggregatedKeyShare") proto.RegisterType((*MsgCreateAggregatedKeyShareResponse)(nil), "fairyring.pep.MsgCreateAggregatedKeyShareResponse") proto.RegisterType((*MsgRequestGeneralKeyshare)(nil), "fairyring.pep.MsgRequestGeneralKeyshare") @@ -983,67 +1045,65 @@ func init() { func init() { proto.RegisterFile("fairyring/pep/tx.proto", fileDescriptor_f6953e463911e1ec) } var fileDescriptor_f6953e463911e1ec = []byte{ - // 952 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x96, 0xcf, 0x6f, 0xdc, 0x44, - 0x14, 0xc7, 0xe3, 0x24, 0x0d, 0xdd, 0xd7, 0x42, 0x1a, 0x37, 0x49, 0x37, 0x86, 0x3a, 0x61, 0x4b, - 0xd1, 0xb2, 0xb4, 0x6b, 0x12, 0x10, 0x42, 0xb9, 0x75, 0x1b, 0x48, 0xab, 0x6a, 0xa5, 0x68, 0x43, - 0x2b, 0xc1, 0x65, 0x35, 0xb6, 0x5f, 0x67, 0xad, 0x64, 0x6d, 0x67, 0x66, 0x36, 0xc4, 0x9c, 0x2a, - 0x84, 0x38, 0x70, 0xe2, 0xc8, 0x1f, 0xc0, 0x81, 0x63, 0x0e, 0xfc, 0x11, 0x3d, 0x80, 0x54, 0x71, - 0xe2, 0x04, 0x28, 0x39, 0xe4, 0xdf, 0x40, 0xb6, 0xc7, 0xde, 0xac, 0x7f, 0x6c, 0x36, 0x5c, 0x7a, - 0x49, 0x76, 0x66, 0xbe, 0xf3, 0xbe, 0x9f, 0xf7, 0x3c, 0xf3, 0x6c, 0x58, 0x7e, 0x4e, 0x1c, 0x16, - 0x30, 0xc7, 0xa5, 0x86, 0x8f, 0xbe, 0x21, 0x8e, 0x9a, 0x3e, 0xf3, 0x84, 0xa7, 0xbe, 0x99, 0xce, - 0x37, 0x7d, 0xf4, 0xb5, 0x05, 0xd2, 0x77, 0x5c, 0xcf, 0x88, 0xfe, 0xc6, 0x0a, 0xed, 0x96, 0xe5, - 0xf1, 0xbe, 0xc7, 0x8d, 0x3e, 0xa7, 0xc6, 0xe1, 0x7a, 0xf8, 0x4f, 0x2e, 0xac, 0xc4, 0x0b, 0xdd, - 0x68, 0x64, 0xc4, 0x03, 0xb9, 0xa4, 0x53, 0xcf, 0xa3, 0xfb, 0x68, 0x44, 0x23, 0x73, 0xf0, 0xdc, - 0xb0, 0x07, 0x8c, 0x08, 0xc7, 0x73, 0xe5, 0xfa, 0x22, 0xf5, 0xa8, 0x17, 0xef, 0x0b, 0x7f, 0xc9, - 0x59, 0x6d, 0x94, 0xd1, 0x27, 0x8c, 0xf4, 0x93, 0x88, 0xf5, 0xd1, 0x35, 0x42, 0x29, 0x43, 0x4a, - 0x04, 0xda, 0xdd, 0x3d, 0x0c, 0xba, 0xbc, 0x47, 0x18, 0x26, 0xde, 0x92, 0xd7, 0x24, 0x1c, 0x8d, - 0xc3, 0x75, 0x13, 0x05, 0x59, 0x37, 0x2c, 0xcf, 0x91, 0xde, 0xb5, 0xdf, 0x15, 0x98, 0x6f, 0x73, - 0xfa, 0xd4, 0xb7, 0x89, 0xc0, 0x9d, 0xc8, 0x43, 0xfd, 0x14, 0x2a, 0x64, 0x20, 0x7a, 0x1e, 0x73, - 0x44, 0x50, 0x55, 0xd6, 0x94, 0x7a, 0xa5, 0x55, 0xfd, 0xf3, 0xb7, 0xfb, 0x8b, 0x32, 0xa9, 0x07, - 0xb6, 0xcd, 0x90, 0xf3, 0x5d, 0x11, 0xfa, 0x77, 0x86, 0x52, 0xf5, 0x33, 0x98, 0x8b, 0x29, 0xab, - 0xd3, 0x6b, 0x4a, 0xfd, 0xda, 0xc6, 0x52, 0x73, 0xa4, 0x9c, 0xcd, 0x38, 0x7c, 0xab, 0xf2, 0xf2, - 0xef, 0xd5, 0xa9, 0x5f, 0xcf, 0x8e, 0x1b, 0x4a, 0x47, 0xea, 0x37, 0xb7, 0xbf, 0x3b, 0x3b, 0x6e, - 0x0c, 0x23, 0xfd, 0x78, 0x76, 0xdc, 0xf8, 0x84, 0x3a, 0xa2, 0x37, 0x30, 0x9b, 0x96, 0xd7, 0x37, - 0xbe, 0x20, 0x0e, 0x33, 0xf7, 0x3d, 0x6b, 0xcf, 0x18, 0xe6, 0x7d, 0x14, 0x65, 0x9e, 0x41, 0xaf, - 0xad, 0xc0, 0xad, 0xcc, 0x54, 0x07, 0xb9, 0xef, 0xb9, 0x1c, 0x6b, 0x2f, 0x14, 0x58, 0x6c, 0x73, - 0xba, 0x3b, 0x30, 0xfb, 0x8e, 0xf8, 0xdc, 0xb5, 0x58, 0xe0, 0x0b, 0xb4, 0xbf, 0x3c, 0x52, 0xab, - 0xf0, 0x86, 0xc5, 0x90, 0x08, 0x8f, 0xc5, 0xc9, 0x76, 0x92, 0xa1, 0xaa, 0xc2, 0xac, 0x4d, 0x04, - 0x89, 0xd2, 0xa9, 0x74, 0xa2, 0xdf, 0xea, 0x3d, 0x58, 0x10, 0x84, 0x51, 0x14, 0xad, 0x10, 0xe8, - 0x11, 0x3a, 0xb4, 0x27, 0xaa, 0x33, 0x6b, 0x4a, 0x7d, 0xb6, 0x93, 0x5f, 0xd8, 0xbc, 0x1e, 0x26, - 0x96, 0xc4, 0xab, 0xf9, 0xf0, 0x76, 0x4a, 0xb0, 0x8d, 0x2e, 0x32, 0xb2, 0xff, 0xff, 0x41, 0x96, - 0x60, 0x8e, 0xe1, 0x41, 0xd7, 0xb1, 0x23, 0xf7, 0x4a, 0xe7, 0x0a, 0xc3, 0x83, 0xc7, 0x76, 0xc6, - 0x51, 0x87, 0x77, 0x8a, 0x72, 0x4e, 0x8b, 0x72, 0x10, 0x11, 0x3d, 0x0c, 0xd5, 0xf8, 0x20, 0x3d, - 0x45, 0x4f, 0x30, 0xd8, 0x0d, 0xcf, 0xd0, 0x18, 0xa2, 0x65, 0x98, 0xeb, 0xc5, 0xb9, 0x4f, 0x47, - 0xb9, 0xcb, 0x51, 0x4a, 0x3a, 0x33, 0x24, 0xcd, 0x20, 0xdd, 0x85, 0x3b, 0x63, 0x2c, 0x53, 0xb2, - 0x5f, 0x14, 0x58, 0x69, 0x73, 0xda, 0xc1, 0x83, 0x01, 0xf2, 0xa4, 0x5a, 0x4f, 0x30, 0xe0, 0x17, - 0x80, 0x3d, 0x82, 0x79, 0xe4, 0xc2, 0xe9, 0x47, 0xb7, 0xc1, 0xc6, 0x7d, 0x12, 0xc8, 0xd3, 0xb8, - 0xd2, 0x8c, 0xaf, 0x61, 0x33, 0xb9, 0x86, 0xcd, 0x2d, 0x79, 0x0d, 0x5b, 0xb3, 0x3f, 0xff, 0xb3, - 0xaa, 0x74, 0xde, 0x4a, 0xf7, 0x6d, 0x85, 0xdb, 0x26, 0x2b, 0xf0, 0x26, 0xbc, 0x5b, 0x4a, 0x99, - 0xe4, 0x72, 0x2e, 0x92, 0x72, 0x2e, 0x52, 0xed, 0x19, 0x2c, 0xb5, 0x39, 0xdd, 0xc6, 0x4b, 0x64, - 0x37, 0x8c, 0x34, 0x5d, 0xce, 0xb4, 0x0a, 0xb7, 0x0b, 0xe3, 0xa6, 0xb5, 0xfd, 0xea, 0x7c, 0x69, - 0x77, 0x98, 0x73, 0x48, 0x04, 0x3e, 0xb6, 0xd1, 0x15, 0xe1, 0x2d, 0x2e, 0x37, 0x5f, 0x84, 0xd8, - 0x6e, 0x9c, 0xf7, 0x48, 0x3d, 0x32, 0xa1, 0x2f, 0xaa, 0xc7, 0x37, 0xb0, 0x1c, 0x73, 0xcb, 0x7d, - 0x09, 0x37, 0xbf, 0x2c, 0x93, 0xba, 0x0a, 0xd7, 0x38, 0x5a, 0x7e, 0xd7, 0x1f, 0x98, 0x7b, 0x18, - 0xc8, 0xe7, 0x07, 0xe1, 0xd4, 0x4e, 0x34, 0x93, 0x81, 0x5e, 0x03, 0xbd, 0xd8, 0x38, 0xad, 0xd8, - 0xf7, 0x0a, 0xdc, 0x8c, 0xf2, 0xa2, 0x0e, 0x17, 0xc8, 0x1e, 0x7a, 0xae, 0x60, 0xc4, 0x12, 0x63, - 0xc0, 0x3e, 0x80, 0x1b, 0x96, 0x54, 0x75, 0x49, 0xdc, 0x31, 0x25, 0xe3, 0x7c, 0x32, 0x2f, 0x1b, - 0xa9, 0xaa, 0xc1, 0x55, 0x47, 0x96, 0x48, 0xa2, 0xa6, 0xe3, 0x0c, 0xe8, 0xed, 0xe8, 0xba, 0x66, - 0x29, 0x52, 0xca, 0x1f, 0x94, 0xe8, 0x44, 0x3d, 0x75, 0xd9, 0x6b, 0xe6, 0x8c, 0x4f, 0x60, 0x9e, - 0x23, 0x21, 0xdd, 0xf8, 0xe3, 0x2a, 0xcc, 0xb4, 0x39, 0x55, 0x9f, 0xc1, 0xf5, 0x91, 0x57, 0x8f, - 0x9e, 0x79, 0x65, 0x64, 0x9a, 0xb9, 0xf6, 0xfe, 0xf8, 0xf5, 0xf4, 0x84, 0x21, 0x2c, 0xe4, 0x1b, - 0xfd, 0x9d, 0xfc, 0xe6, 0x9c, 0x48, 0xfb, 0x70, 0x02, 0x51, 0x6a, 0xc3, 0xa1, 0x5a, 0xda, 0xcd, - 0x1b, 0x65, 0x81, 0xf2, 0xda, 0xcb, 0x99, 0x7e, 0x0b, 0xd5, 0xd2, 0x86, 0x5d, 0x60, 0x5a, 0xa6, - 0xd5, 0x36, 0x26, 0xd7, 0xa6, 0xde, 0x02, 0x96, 0x4b, 0x3a, 0x72, 0x3d, 0x1f, 0xad, 0x58, 0xa9, - 0x7d, 0x34, 0xa9, 0x32, 0x75, 0xed, 0x81, 0x5a, 0xd0, 0x25, 0xdf, 0xcb, 0xc7, 0xc9, 0xab, 0xb4, - 0x7b, 0x93, 0xa8, 0x0a, 0xf2, 0xcb, 0xb6, 0xc5, 0xf2, 0xfc, 0x32, 0xca, 0x31, 0xf9, 0x95, 0xf5, - 0xc3, 0x3d, 0xb8, 0x59, 0xd4, 0xf5, 0xee, 0x16, 0xa2, 0x67, 0x65, 0xda, 0xfd, 0x89, 0x64, 0xa9, - 0x99, 0x09, 0x37, 0x72, 0x6d, 0xac, 0x56, 0x84, 0x3c, 0xaa, 0xd1, 0x1a, 0x17, 0x6b, 0xce, 0x3f, - 0xb0, 0x82, 0x26, 0x54, 0xf0, 0xc0, 0xf2, 0xaa, 0xa2, 0x07, 0x56, 0xde, 0x48, 0xb4, 0x2b, 0x2f, - 0xc2, 0x0f, 0xc9, 0xd6, 0xd6, 0xcb, 0x13, 0x5d, 0x79, 0x75, 0xa2, 0x2b, 0xff, 0x9e, 0xe8, 0xca, - 0x4f, 0xa7, 0xfa, 0xd4, 0xab, 0x53, 0x7d, 0xea, 0xaf, 0x53, 0x7d, 0xea, 0xeb, 0xc6, 0x44, 0xdf, - 0x91, 0x22, 0xf0, 0x91, 0x9b, 0x73, 0xd1, 0xa7, 0xc1, 0xc7, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, - 0xa6, 0x87, 0x12, 0xeb, 0x1f, 0x0c, 0x00, 0x00, + // 928 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x96, 0xcf, 0x73, 0xdb, 0x44, + 0x14, 0xc7, 0xa3, 0x24, 0x0d, 0xf5, 0x6b, 0x21, 0x8d, 0xf2, 0xa3, 0x8e, 0xa0, 0x4a, 0x70, 0x29, + 0x13, 0x0c, 0x95, 0x20, 0x30, 0x0c, 0x93, 0x5b, 0xdd, 0x40, 0xda, 0xe9, 0x78, 0x26, 0xa3, 0xd0, + 0x1e, 0x7a, 0xf1, 0xac, 0xad, 0xd7, 0xb5, 0x26, 0xb1, 0xa4, 0xec, 0xae, 0x3b, 0x31, 0x27, 0xa6, + 0xc3, 0x70, 0xe0, 0xc4, 0x91, 0x3f, 0x80, 0x03, 0xc7, 0x1c, 0xf8, 0x23, 0x7a, 0xe0, 0xd0, 0x61, + 0x38, 0x70, 0x02, 0x26, 0x39, 0xe4, 0xdf, 0x60, 0xb4, 0x5a, 0xcb, 0xb6, 0x7e, 0xd8, 0x0e, 0x1c, + 0x7a, 0xb1, 0xb5, 0xfb, 0xbe, 0xfb, 0xde, 0xe7, 0xbd, 0xdd, 0x7d, 0x12, 0xac, 0x3d, 0x23, 0x1e, + 0xeb, 0x31, 0xcf, 0xa7, 0x76, 0x88, 0xa1, 0x2d, 0x4e, 0xac, 0x90, 0x05, 0x22, 0xd0, 0xdf, 0x4c, + 0xe6, 0xad, 0x10, 0x43, 0x63, 0x89, 0x74, 0x3c, 0x3f, 0xb0, 0xe5, 0x6f, 0xac, 0x30, 0x6e, 0xb6, + 0x02, 0xde, 0x09, 0xb8, 0xdd, 0xe1, 0xd4, 0x7e, 0xfe, 0x49, 0xf4, 0xa7, 0x0c, 0xeb, 0xb1, 0xa1, + 0x21, 0x47, 0x76, 0x3c, 0x50, 0x26, 0x93, 0x06, 0x01, 0x3d, 0x42, 0x5b, 0x8e, 0x9a, 0xdd, 0x67, + 0xb6, 0xdb, 0x65, 0x44, 0x78, 0x81, 0xaf, 0xec, 0x2b, 0x34, 0xa0, 0x41, 0xbc, 0x2e, 0x7a, 0x52, + 0xb3, 0xc6, 0x28, 0x63, 0x48, 0x18, 0xe9, 0x28, 0x8f, 0x95, 0xdf, 0x34, 0x58, 0xac, 0x73, 0xfa, + 0x38, 0x74, 0x89, 0xc0, 0x7d, 0x69, 0xd1, 0x3f, 0x87, 0x12, 0xe9, 0x8a, 0x76, 0xc0, 0x3c, 0xd1, + 0x2b, 0x6b, 0x9b, 0xda, 0x56, 0xa9, 0x56, 0xfe, 0xfd, 0xd7, 0xbb, 0x2b, 0x0a, 0xe5, 0x9e, 0xeb, + 0x32, 0xe4, 0xfc, 0x40, 0x44, 0x1e, 0x9d, 0x81, 0x54, 0xff, 0x02, 0x16, 0x62, 0xdf, 0xe5, 0xd9, + 0x4d, 0x6d, 0xeb, 0xda, 0xf6, 0xaa, 0x35, 0x52, 0x04, 0x2b, 0x76, 0x5f, 0x2b, 0xbd, 0xfc, 0x6b, + 0x63, 0xe6, 0x97, 0x8b, 0xd3, 0xaa, 0xe6, 0x28, 0xfd, 0xce, 0xde, 0x8b, 0x8b, 0xd3, 0xea, 0xc0, + 0xd3, 0x0f, 0x17, 0xa7, 0xd5, 0xcf, 0xa8, 0x27, 0xda, 0xdd, 0xa6, 0xd5, 0x0a, 0x3a, 0xf6, 0x57, + 0xc4, 0x63, 0xcd, 0xa3, 0xa0, 0x75, 0x68, 0x0f, 0x32, 0x39, 0x91, 0xb9, 0xa4, 0xd0, 0x2b, 0xeb, + 0x70, 0x33, 0x35, 0xe5, 0x20, 0x0f, 0x03, 0x9f, 0x63, 0xe5, 0x85, 0x06, 0x2b, 0x75, 0x4e, 0x0f, + 0xba, 0xcd, 0x8e, 0x27, 0xbe, 0xf4, 0x5b, 0xac, 0x17, 0x0a, 0x74, 0xbf, 0x3e, 0xd1, 0xcb, 0xf0, + 0x46, 0x8b, 0x21, 0x11, 0x01, 0x8b, 0x93, 0x75, 0xfa, 0x43, 0x5d, 0x87, 0x79, 0x97, 0x08, 0x22, + 0xd3, 0x29, 0x39, 0xf2, 0x59, 0xb7, 0x60, 0x59, 0x10, 0x46, 0x51, 0x34, 0x24, 0x51, 0xa3, 0x8d, + 0x1e, 0x6d, 0x8b, 0xf2, 0xdc, 0xa6, 0xb6, 0x35, 0xef, 0x2c, 0xc5, 0xa6, 0x5a, 0x64, 0x79, 0x20, + 0x0d, 0x3b, 0xd7, 0xa3, 0xd4, 0xfa, 0x1e, 0x2b, 0x26, 0xbc, 0x93, 0xc7, 0x90, 0x40, 0x86, 0xf0, + 0x76, 0x62, 0xdf, 0x43, 0x1f, 0x19, 0x39, 0xfa, 0xef, 0xa8, 0xab, 0xb0, 0xc0, 0xf0, 0xb8, 0xe1, + 0xb9, 0x92, 0xae, 0xe4, 0x5c, 0x61, 0x78, 0xfc, 0xd0, 0x4d, 0x11, 0xdd, 0x81, 0xdb, 0x63, 0x22, + 0x26, 0x60, 0xc7, 0x12, 0xec, 0x7e, 0xb4, 0x08, 0xef, 0x51, 0xca, 0x90, 0x12, 0x81, 0xee, 0x23, + 0xec, 0x1d, 0xb4, 0x09, 0xc3, 0x31, 0x60, 0x6b, 0xb0, 0xa0, 0x4a, 0x34, 0x2b, 0x4b, 0xa4, 0x46, + 0x09, 0xf0, 0xdc, 0x00, 0x38, 0x97, 0xac, 0x28, 0x64, 0x42, 0xf6, 0xb3, 0x06, 0xeb, 0x75, 0x4e, + 0x1d, 0x3c, 0xee, 0x22, 0xef, 0xa7, 0xf0, 0x08, 0x7b, 0x7c, 0x02, 0xd8, 0x03, 0x58, 0x44, 0x2e, + 0xbc, 0x4e, 0xe4, 0xb4, 0xe1, 0xe2, 0x11, 0xe9, 0xa9, 0x63, 0xbb, 0x6e, 0xc5, 0xb7, 0xcc, 0xea, + 0xdf, 0x32, 0x6b, 0x57, 0xdd, 0xb2, 0xda, 0xfc, 0x4f, 0x7f, 0x6f, 0x68, 0xce, 0x5b, 0xc9, 0xba, + 0xdd, 0x68, 0xd9, 0x74, 0x75, 0xde, 0x81, 0x77, 0x0b, 0x29, 0xfb, 0xb9, 0x0c, 0x79, 0xd2, 0x86, + 0x3c, 0x55, 0x9e, 0xc0, 0x6a, 0x9d, 0xd3, 0x3d, 0xbc, 0x44, 0x76, 0x03, 0x4f, 0xb3, 0xc5, 0x4c, + 0x1b, 0x70, 0x2b, 0xd7, 0x6f, 0x52, 0xdb, 0xa7, 0xc3, 0xa5, 0xdd, 0x67, 0xde, 0x73, 0x22, 0xf0, + 0xa1, 0x8b, 0xbe, 0x88, 0xae, 0xfb, 0xff, 0x0c, 0x3e, 0x52, 0x90, 0x94, 0xef, 0x49, 0x05, 0x39, + 0x81, 0xb5, 0x18, 0x5c, 0xad, 0xeb, 0x83, 0xf3, 0x4b, 0x43, 0xe9, 0x1b, 0x70, 0x8d, 0x63, 0x2b, + 0x6c, 0x84, 0xdd, 0xe6, 0x21, 0xf6, 0xd4, 0x0e, 0x42, 0x34, 0xb5, 0x2f, 0x67, 0x52, 0xd4, 0x9b, + 0x60, 0xe6, 0x47, 0x4e, 0x6a, 0xf6, 0x9d, 0x06, 0xcb, 0x32, 0x31, 0xea, 0x71, 0x81, 0xec, 0x7e, + 0xe0, 0x0b, 0x46, 0x5a, 0x62, 0x0c, 0xd9, 0x07, 0x70, 0xa3, 0xa5, 0x54, 0x0d, 0x12, 0x37, 0x57, + 0xc5, 0xb8, 0xd8, 0x9f, 0x57, 0x3d, 0x57, 0x37, 0xe0, 0xaa, 0xa7, 0x6a, 0xa4, 0x50, 0x93, 0x71, + 0x0a, 0xf4, 0x96, 0xbc, 0xb0, 0x69, 0x8a, 0x84, 0xf2, 0x7b, 0x4d, 0x9e, 0xa9, 0xc7, 0x3e, 0x7b, + 0xcd, 0x9c, 0xf1, 0x19, 0xcc, 0x72, 0xf4, 0x49, 0xb7, 0xff, 0xb8, 0x0a, 0x73, 0x75, 0x4e, 0xf5, + 0x27, 0x70, 0x7d, 0xe4, 0x2d, 0x65, 0xa6, 0xde, 0x2e, 0xa9, 0xbe, 0x6f, 0xbc, 0x3f, 0xde, 0x9e, + 0x1c, 0x31, 0x84, 0xa5, 0xec, 0x3b, 0xe1, 0x76, 0x76, 0x71, 0x46, 0x64, 0x7c, 0x38, 0x85, 0x28, + 0x09, 0xf3, 0x0d, 0x94, 0x0b, 0xdb, 0x7a, 0xb5, 0xc8, 0x51, 0x56, 0x6b, 0x6c, 0x4f, 0xaf, 0x1d, + 0x8e, 0x5d, 0xd8, 0xb9, 0x73, 0x62, 0x17, 0x69, 0xf3, 0x62, 0x4f, 0x6a, 0xcf, 0xba, 0x80, 0xb5, + 0x82, 0xd6, 0xbc, 0x95, 0xf5, 0x96, 0xaf, 0x34, 0x3e, 0x9e, 0x56, 0x99, 0x44, 0x6d, 0x83, 0x9e, + 0xd3, 0x2e, 0xdf, 0xcb, 0xfa, 0xc9, 0xaa, 0x8c, 0x8f, 0xa6, 0x51, 0xe5, 0xe4, 0x97, 0xee, 0x8f, + 0xc5, 0xf9, 0xa5, 0x94, 0x63, 0xf2, 0x2b, 0xea, 0x8b, 0x87, 0xb0, 0x9c, 0xd7, 0xfd, 0xee, 0xe4, + 0xa2, 0xa7, 0x65, 0xc6, 0xdd, 0xa9, 0x64, 0x49, 0xb0, 0x26, 0xdc, 0xc8, 0x74, 0xb3, 0x4a, 0x1e, + 0xf2, 0xa8, 0xc6, 0xa8, 0x4e, 0xd6, 0x0c, 0x6f, 0x58, 0x4e, 0x2f, 0xca, 0xd9, 0xb0, 0xac, 0x2a, + 0x6f, 0xc3, 0x8a, 0xfb, 0x89, 0x71, 0xe5, 0xdb, 0xe8, 0xd3, 0xb3, 0xb6, 0xfb, 0xf2, 0xcc, 0xd4, + 0x5e, 0x9d, 0x99, 0xda, 0x3f, 0x67, 0xa6, 0xf6, 0xe3, 0xb9, 0x39, 0xf3, 0xea, 0xdc, 0x9c, 0xf9, + 0xf3, 0xdc, 0x9c, 0x79, 0x5a, 0x9d, 0xea, 0xcb, 0x53, 0xf4, 0x42, 0xe4, 0xcd, 0x05, 0xf9, 0x8d, + 0xf0, 0xe9, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x9e, 0xc0, 0xd4, 0x5f, 0x07, 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1061,15 +1121,36 @@ type MsgClient interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) + // SubmitEncryptedTx defines an operation to submit an + // encrypted transaction for a particular target block height SubmitEncryptedTx(ctx context.Context, in *MsgSubmitEncryptedTx, opts ...grpc.CallOption) (*MsgSubmitEncryptedTxResponse, error) - SubmitGeneralEncryptedTx(ctx context.Context, in *MsgSubmitGeneralEncryptedTx, opts ...grpc.CallOption) (*MsgSubmitEncryptedTxResponse, error) - // this line is used by starport scaffolding # proto/tx/rpc + // SubmitGeneralEncryptedTx defines an operation to submit an + // encrypted transaction for a particular identity + SubmitGeneralEncryptedTx(ctx context.Context, in *MsgSubmitGeneralEncryptedTx, opts ...grpc.CallOption) (*MsgSubmitGeneralEncryptedTxResponse, error) + // CreateAggregatedKeyShare defines an operation to submit an + // aggregated keyshare to a destination chain CreateAggregatedKeyShare(ctx context.Context, in *MsgCreateAggregatedKeyShare, opts ...grpc.CallOption) (*MsgCreateAggregatedKeyShareResponse, error) + // RequestGeneralKeyshare defines an operation to request the + // creation of a new identity to which validators will be required + // to submit keyshares RequestGeneralKeyshare(ctx context.Context, in *MsgRequestGeneralKeyshare, opts ...grpc.CallOption) (*MsgRequestGeneralKeyshareResponse, error) + // GetGeneralKeyshare defines an operation to signal validators to start + // submitting keyshares for a particular identity GetGeneralKeyshare(ctx context.Context, in *MsgGetGeneralKeyshare, opts ...grpc.CallOption) (*MsgGetGeneralKeyshareResponse, error) + // RequestPrivateIdentity defines an operation to request the + // creation of a new identity to which validators will be required + // to submit encrypted keyshares RequestPrivateIdentity(ctx context.Context, in *MsgRequestPrivateIdentity, opts ...grpc.CallOption) (*MsgRequestPrivateIdentityResponse, error) + // GetPrivateKeyshares defines an operation to signal validators to start + // submitting encrypted keyshares for a particular identity GetPrivateKeyshares(ctx context.Context, in *MsgGetPrivateKeyshares, opts ...grpc.CallOption) (*MsgGetPrivateKeysharesResponse, error) + // RegisterContract defines an operation to make an instantiated + // contract eligible to be automatically executed when a particular + // identity has aggregated keyshares available for it RegisterContract(ctx context.Context, in *MsgRegisterContract, opts ...grpc.CallOption) (*MsgRegisterContractResponse, error) + // UnregisterContract defines an operation to remove a registered contract + // from the list of contracts set to be automatically executed when + // aggreagted keyshare is available for a particular identity UnregisterContract(ctx context.Context, in *MsgUnregisterContract, opts ...grpc.CallOption) (*MsgUnregisterContractResponse, error) } @@ -1099,8 +1180,8 @@ func (c *msgClient) SubmitEncryptedTx(ctx context.Context, in *MsgSubmitEncrypte return out, nil } -func (c *msgClient) SubmitGeneralEncryptedTx(ctx context.Context, in *MsgSubmitGeneralEncryptedTx, opts ...grpc.CallOption) (*MsgSubmitEncryptedTxResponse, error) { - out := new(MsgSubmitEncryptedTxResponse) +func (c *msgClient) SubmitGeneralEncryptedTx(ctx context.Context, in *MsgSubmitGeneralEncryptedTx, opts ...grpc.CallOption) (*MsgSubmitGeneralEncryptedTxResponse, error) { + out := new(MsgSubmitGeneralEncryptedTxResponse) err := c.cc.Invoke(ctx, "/fairyring.pep.Msg/SubmitGeneralEncryptedTx", in, out, opts...) if err != nil { return nil, err @@ -1176,15 +1257,36 @@ type MsgServer interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + // SubmitEncryptedTx defines an operation to submit an + // encrypted transaction for a particular target block height SubmitEncryptedTx(context.Context, *MsgSubmitEncryptedTx) (*MsgSubmitEncryptedTxResponse, error) - SubmitGeneralEncryptedTx(context.Context, *MsgSubmitGeneralEncryptedTx) (*MsgSubmitEncryptedTxResponse, error) - // this line is used by starport scaffolding # proto/tx/rpc + // SubmitGeneralEncryptedTx defines an operation to submit an + // encrypted transaction for a particular identity + SubmitGeneralEncryptedTx(context.Context, *MsgSubmitGeneralEncryptedTx) (*MsgSubmitGeneralEncryptedTxResponse, error) + // CreateAggregatedKeyShare defines an operation to submit an + // aggregated keyshare to a destination chain CreateAggregatedKeyShare(context.Context, *MsgCreateAggregatedKeyShare) (*MsgCreateAggregatedKeyShareResponse, error) + // RequestGeneralKeyshare defines an operation to request the + // creation of a new identity to which validators will be required + // to submit keyshares RequestGeneralKeyshare(context.Context, *MsgRequestGeneralKeyshare) (*MsgRequestGeneralKeyshareResponse, error) + // GetGeneralKeyshare defines an operation to signal validators to start + // submitting keyshares for a particular identity GetGeneralKeyshare(context.Context, *MsgGetGeneralKeyshare) (*MsgGetGeneralKeyshareResponse, error) + // RequestPrivateIdentity defines an operation to request the + // creation of a new identity to which validators will be required + // to submit encrypted keyshares RequestPrivateIdentity(context.Context, *MsgRequestPrivateIdentity) (*MsgRequestPrivateIdentityResponse, error) + // GetPrivateKeyshares defines an operation to signal validators to start + // submitting encrypted keyshares for a particular identity GetPrivateKeyshares(context.Context, *MsgGetPrivateKeyshares) (*MsgGetPrivateKeysharesResponse, error) + // RegisterContract defines an operation to make an instantiated + // contract eligible to be automatically executed when a particular + // identity has aggregated keyshares available for it RegisterContract(context.Context, *MsgRegisterContract) (*MsgRegisterContractResponse, error) + // UnregisterContract defines an operation to remove a registered contract + // from the list of contracts set to be automatically executed when + // aggreagted keyshare is available for a particular identity UnregisterContract(context.Context, *MsgUnregisterContract) (*MsgUnregisterContractResponse, error) } @@ -1198,7 +1300,7 @@ func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateP func (*UnimplementedMsgServer) SubmitEncryptedTx(ctx context.Context, req *MsgSubmitEncryptedTx) (*MsgSubmitEncryptedTxResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SubmitEncryptedTx not implemented") } -func (*UnimplementedMsgServer) SubmitGeneralEncryptedTx(ctx context.Context, req *MsgSubmitGeneralEncryptedTx) (*MsgSubmitEncryptedTxResponse, error) { +func (*UnimplementedMsgServer) SubmitGeneralEncryptedTx(ctx context.Context, req *MsgSubmitGeneralEncryptedTx) (*MsgSubmitGeneralEncryptedTxResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SubmitGeneralEncryptedTx not implemented") } func (*UnimplementedMsgServer) CreateAggregatedKeyShare(ctx context.Context, req *MsgCreateAggregatedKeyShare) (*MsgCreateAggregatedKeyShareResponse, error) { @@ -1561,6 +1663,29 @@ func (m *MsgSubmitEncryptedTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *MsgSubmitEncryptedTxResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgSubmitEncryptedTxResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgSubmitEncryptedTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + func (m *MsgSubmitGeneralEncryptedTx) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1605,7 +1730,7 @@ func (m *MsgSubmitGeneralEncryptedTx) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *MsgSubmitEncryptedTxResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgSubmitGeneralEncryptedTxResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1615,12 +1740,12 @@ func (m *MsgSubmitEncryptedTxResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgSubmitEncryptedTxResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgSubmitGeneralEncryptedTxResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgSubmitEncryptedTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgSubmitGeneralEncryptedTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2153,6 +2278,15 @@ func (m *MsgSubmitEncryptedTx) Size() (n int) { return n } +func (m *MsgSubmitEncryptedTxResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func (m *MsgSubmitGeneralEncryptedTx) Size() (n int) { if m == nil { return 0 @@ -2174,7 +2308,7 @@ func (m *MsgSubmitGeneralEncryptedTx) Size() (n int) { return n } -func (m *MsgSubmitEncryptedTxResponse) Size() (n int) { +func (m *MsgSubmitGeneralEncryptedTxResponse) Size() (n int) { if m == nil { return 0 } @@ -2696,6 +2830,56 @@ func (m *MsgSubmitEncryptedTx) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgSubmitEncryptedTxResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgSubmitEncryptedTxResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgSubmitEncryptedTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *MsgSubmitGeneralEncryptedTx) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -2842,7 +3026,7 @@ func (m *MsgSubmitGeneralEncryptedTx) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgSubmitEncryptedTxResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSubmitGeneralEncryptedTxResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2865,10 +3049,10 @@ func (m *MsgSubmitEncryptedTxResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgSubmitEncryptedTxResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSubmitGeneralEncryptedTxResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgSubmitEncryptedTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSubmitGeneralEncryptedTxResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: From 2487795b4dc99da46a2b22f1645c39484e775da9 Mon Sep 17 00:00:00 2001 From: ap0calypse644 Date: Tue, 15 Oct 2024 08:09:27 +0530 Subject: [PATCH 02/30] updting contract and autocli --- proto/fairyring/pep/query.proto | 2 +- scripts/tests/fairyring_contract/Cargo.lock | 51 +++++++++------------ scripts/tests/fairyring_contract/Cargo.toml | 2 +- x/keyshare/module/autocli.go | 4 +- x/pep/module/autocli.go | 8 ++-- 5 files changed, 29 insertions(+), 38 deletions(-) diff --git a/proto/fairyring/pep/query.proto b/proto/fairyring/pep/query.proto index 8fe2f7ad..e5ddb4e3 100644 --- a/proto/fairyring/pep/query.proto +++ b/proto/fairyring/pep/query.proto @@ -76,7 +76,7 @@ service Query { } - // Queries a list of ShowPrivateKeyshareReq items. + // Queries a PrivateKeyshareReq item by req id. rpc PrivateKeyshareReq (QueryPrivateKeyshareReqRequest) returns (QueryPrivateKeyshareReqResponse) { option (google.api.http).get = "/Fairblock/fairyring/pep/show_private_keyshare_req/{req_id}"; diff --git a/scripts/tests/fairyring_contract/Cargo.lock b/scripts/tests/fairyring_contract/Cargo.lock index d7aff698..caaf3a1a 100644 --- a/scripts/tests/fairyring_contract/Cargo.lock +++ b/scripts/tests/fairyring_contract/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "addr2line" -version = "0.24.1" +version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5fb1d8e4442bd405fdfd1dacb42792696b0cf9cb15882e5d097b742a676d375" +checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" dependencies = [ "gimli", ] @@ -612,7 +612,7 @@ dependencies = [ [[package]] name = "fairblock-proto" version = "0.1.0" -source = "git+https://github.com/Fairblock/fairblock-rust/?branch=contract-callback#7a24f0d3cf3e4315f90e99567c5e4e01923d6c84" +source = "git+https://github.com/Fairblock/fairblock-rust/?branch=audit-2.0#995b87e70328681f9d0009328fd0c575f8a2a1c7" dependencies = [ "cosmos-sdk-proto", "prost", @@ -669,21 +669,21 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "futures-core" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" [[package]] name = "futures-task" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" [[package]] name = "futures-util" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" dependencies = [ "futures-core", "futures-task", @@ -715,9 +715,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.31.0" +version = "0.31.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32085ea23f3234fc7846555e85283ba4de91e21016dc0455a16286d87a292d64" +checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" [[package]] name = "group" @@ -891,21 +891,18 @@ dependencies = [ [[package]] name = "object" -version = "0.36.4" +version = "0.36.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "084f1a5821ac4c651660a94a7153d27ac9d8a53736203f58b31945ded098070a" +checksum = "aedf0a2d09c573ed1d8d85b30c119153926a2b36dce0ab28322c09a117a4683e" dependencies = [ "memchr", ] [[package]] name = "once_cell" -version = "1.20.1" +version = "1.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82881c4be219ab5faaf2ad5e5e5ecdff8c66bd7402ca3160975c93b24961afd1" -dependencies = [ - "portable-atomic", -] +checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" [[package]] name = "p256" @@ -933,18 +930,18 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pin-project" -version = "1.1.5" +version = "1.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3" +checksum = "baf123a161dde1e524adf36f90bc5d8d3462824a9c43553ad07a8183161189ec" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.5" +version = "1.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" +checksum = "a4502d8515ca9f32f1fb543d987f63d95a14934883db45bdb48060b6b69257f8" dependencies = [ "proc-macro2", "quote", @@ -963,12 +960,6 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" -[[package]] -name = "portable-atomic" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2" - [[package]] name = "powerfmt" version = "0.2.0" @@ -995,9 +986,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.86" +version = "1.0.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" +checksum = "b3e4daa0dcf6feba26f985457cdf104d4b4256fc5a09547140f3631bb076b19a" dependencies = [ "unicode-ident", ] diff --git a/scripts/tests/fairyring_contract/Cargo.toml b/scripts/tests/fairyring_contract/Cargo.toml index ed0a8765..f4634740 100644 --- a/scripts/tests/fairyring_contract/Cargo.toml +++ b/scripts/tests/fairyring_contract/Cargo.toml @@ -42,7 +42,7 @@ thiserror = "1.0" prost = "0.13.3" # Protobuf support prost-types = "0.13" # tonic = { version = "0.12.3", features = ["prost", "tls"] } -fairblock-proto = { git = "https://github.com/Fairblock/fairblock-rust/", branch = "contract-callback" } +fairblock-proto = { git = "https://github.com/Fairblock/fairblock-rust/", branch = "audit-2.0" } # getrandom = { version = "0.2", features = ["js"] } # mio = "1.0.2" # tokio = "1.40.0" diff --git a/x/keyshare/module/autocli.go b/x/keyshare/module/autocli.go index fad3c1af..81a95502 100644 --- a/x/keyshare/module/autocli.go +++ b/x/keyshare/module/autocli.go @@ -37,7 +37,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { RpcMethod: "KeyShare", Use: "show-key-share [validator] [block-height]", Short: "Show the key share of a particular validator for a particular block height", - PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "validator"}, {ProtoField: "blockHeight"}}, + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "validator"}, {ProtoField: "block_height"}}, }, { RpcMethod: "AggregatedKeyShareAll", @@ -75,7 +75,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { RpcMethod: "GeneralKeyShare", Use: "show-general-key-share [validator] [id-type] [id-value]", Short: "Shows a General Key Share", - PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "validator"}, {ProtoField: "idType"}, {ProtoField: "idValue"}}, + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "validator"}, {ProtoField: "id_type"}, {ProtoField: "id_value"}}, }, { RpcMethod: "Commitments", diff --git a/x/pep/module/autocli.go b/x/pep/module/autocli.go index 3f96644c..bb2b3872 100644 --- a/x/pep/module/autocli.go +++ b/x/pep/module/autocli.go @@ -26,13 +26,13 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { RpcMethod: "EncryptedTxAllFromHeight", Use: "list-encrypted-tx-from-block [target-height]", Short: "list all encrypted transactions for a particular target height", - PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "targetHeight"}}, + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "target_height"}}, }, { RpcMethod: "EncryptedTx", Use: "show-encrypted-tx [target-height] [index]", Short: "shows a particular encrypted transaction at a given target height and index", - PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "targetHeight"}, {ProtoField: "index"}}, + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "target_height"}, {ProtoField: "index"}}, }, { RpcMethod: "LatestHeight", @@ -67,10 +67,10 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { Short: "list all pending keyshare requests", }, { - RpcMethod: "ShowPrivateKeyshareReq", + RpcMethod: "PrivateKeyshareReq", Use: "show-private-keyshare-req [req-id]", Short: "Query show-private-keyshare-req", - PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "reqId"}}, + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "req_id"}}, }, { From 5721979dee573f73c38caa256f65d2930a7905de Mon Sep 17 00:00:00 2001 From: ap0calypse644 Date: Thu, 17 Oct 2024 10:38:48 +0530 Subject: [PATCH 03/30] renaming aggr-keyshare to decryption-key --- api/fairyring/common/shared_types.pulsar.go | 1767 ++++----- api/fairyring/keyshare/packet.pulsar.go | 3196 +++++++++-------- api/fairyring/keyshare/query.pulsar.go | 1313 ++++--- api/fairyring/keyshare/query_grpc.pb.go | 92 +- ....go => requested_decryption_key.pulsar.go} | 986 ++--- api/fairyring/keyshare/tx.pulsar.go | 604 ++-- api/fairyring/keyshare/tx_grpc.pb.go | 34 +- ...are.pulsar.go => decryption_key.pulsar.go} | 277 +- api/fairyring/pep/encrypted_tx.pulsar.go | 528 +-- api/fairyring/pep/genesis.pulsar.go | 222 +- api/fairyring/pep/params.pulsar.go | 139 +- api/fairyring/pep/query.pulsar.go | 1719 ++++----- api/fairyring/pep/query_grpc.pb.go | 102 +- api/fairyring/pep/request_id.pulsar.go | 269 +- api/fairyring/pep/tx.pulsar.go | 1271 +++---- api/fairyring/pep/tx_grpc.pb.go | 116 +- go.mod | 1 + go.sum | 2 + proto/fairyring/common/shared_types.proto | 34 +- proto/fairyring/keyshare/packet.proto | 84 +- proto/fairyring/keyshare/query.proto | 34 +- ...e.proto => requested_decryption_key.proto} | 12 +- proto/fairyring/keyshare/tx.proto | 14 +- proto/fairyring/keyshare/validator_set.proto | 1 - ...d_key_share.proto => decryption_key.proto} | 6 +- proto/fairyring/pep/encrypted_tx.proto | 12 +- proto/fairyring/pep/genesis.proto | 4 +- proto/fairyring/pep/params.proto | 2 +- proto/fairyring/pep/query.proto | 50 +- proto/fairyring/pep/request_id.proto | 8 +- proto/fairyring/pep/tx.proto | 42 +- x/common/types/shared_types.pb.go | 582 +-- ...y_share_data.go => decryption_key_data.go} | 47 +- ...ggr_key_share.go => get_decryption_key.go} | 28 +- ...d_key_share.go => query_decryption_key.go} | 22 +- ...e_test.go => query_decryption_key_test.go} | 50 +- ...key_share.go => request_decryption_key.go} | 38 +- x/keyshare/module/module_ibc.go | 32 +- x/keyshare/types/codec.go | 2 +- x/keyshare/types/expected_keepers.go | 52 +- x/keyshare/types/msg_general_key_share.go | 10 +- x/keyshare/types/packet.pb.go | 1042 +++--- ..._data.go => packet_decryption_key_data.go} | 12 +- ..._share.go => packet_get_decryption_key.go} | 12 +- ...re.go => packet_request_decryption_key.go} | 14 +- x/keyshare/types/query.pb.go | 475 +-- x/keyshare/types/query.pb.gw.go | 62 +- ...e.pb.go => requested_decryption_key.pb.go} | 542 +-- x/keyshare/types/tx.pb.go | 299 +- ...d_key_share.pb.go => decryption_key.pb.go} | 152 +- x/pep/types/encrypted_tx.pb.go | 206 +- x/pep/types/genesis.pb.go | 102 +- x/pep/types/params.pb.go | 101 +- x/pep/types/query.pb.go | 636 ++-- x/pep/types/query.pb.gw.go | 90 +- x/pep/types/request_id.pb.go | 112 +- x/pep/types/tx.pb.go | 517 +-- 57 files changed, 9124 insertions(+), 9054 deletions(-) rename api/fairyring/keyshare/{requested_keyshare.pulsar.go => requested_decryption_key.pulsar.go} (72%) rename api/fairyring/pep/{aggregated_key_share.pulsar.go => decryption_key.pulsar.go} (63%) rename proto/fairyring/keyshare/{requested_keyshare.proto => requested_decryption_key.proto} (81%) rename proto/fairyring/pep/{aggregated_key_share.proto => decryption_key.proto} (56%) rename x/keyshare/keeper/{aggr_key_share_data.go => decryption_key_data.go} (74%) rename x/keyshare/keeper/{get_aggr_key_share.go => get_decryption_key.go} (74%) rename x/keyshare/keeper/{query_aggregated_key_share.go => query_decryption_key.go} (73%) rename x/keyshare/keeper/{query_aggregated_key_share_test.go => query_decryption_key_test.go} (69%) rename x/keyshare/keeper/{request_aggr_key_share.go => request_decryption_key.go} (75%) rename x/keyshare/types/{packet_aggr_key_share_data.go => packet_decryption_key_data.go} (65%) rename x/keyshare/types/{packet_get_aggr_key_share.go => packet_get_decryption_key.go} (61%) rename x/keyshare/types/{packet_request_aggr_key_share.go => packet_request_decryption_key.go} (56%) rename x/keyshare/types/{requested_keyshare.pb.go => requested_decryption_key.pb.go} (62%) rename x/pep/types/{aggregated_key_share.pb.go => decryption_key.pb.go} (54%) diff --git a/api/fairyring/common/shared_types.pulsar.go b/api/fairyring/common/shared_types.pulsar.go index 3c8c2203..0864020b 100644 --- a/api/fairyring/common/shared_types.pulsar.go +++ b/api/fairyring/common/shared_types.pulsar.go @@ -15,31 +15,31 @@ import ( ) var ( - md_RequestAggrKeyshare protoreflect.MessageDescriptor - fd_RequestAggrKeyshare_creator protoreflect.FieldDescriptor - fd_RequestAggrKeyshare_proposal_id protoreflect.FieldDescriptor - fd_RequestAggrKeyshare_request_id protoreflect.FieldDescriptor - fd_RequestAggrKeyshare_estimated_delay protoreflect.FieldDescriptor + md_RequestDecryptionKey protoreflect.MessageDescriptor + fd_RequestDecryptionKey_creator protoreflect.FieldDescriptor + fd_RequestDecryptionKey_proposal_id protoreflect.FieldDescriptor + fd_RequestDecryptionKey_request_id protoreflect.FieldDescriptor + fd_RequestDecryptionKey_estimated_delay protoreflect.FieldDescriptor ) func init() { file_fairyring_common_shared_types_proto_init() - md_RequestAggrKeyshare = File_fairyring_common_shared_types_proto.Messages().ByName("RequestAggrKeyshare") - fd_RequestAggrKeyshare_creator = md_RequestAggrKeyshare.Fields().ByName("creator") - fd_RequestAggrKeyshare_proposal_id = md_RequestAggrKeyshare.Fields().ByName("proposal_id") - fd_RequestAggrKeyshare_request_id = md_RequestAggrKeyshare.Fields().ByName("request_id") - fd_RequestAggrKeyshare_estimated_delay = md_RequestAggrKeyshare.Fields().ByName("estimated_delay") + md_RequestDecryptionKey = File_fairyring_common_shared_types_proto.Messages().ByName("RequestDecryptionKey") + fd_RequestDecryptionKey_creator = md_RequestDecryptionKey.Fields().ByName("creator") + fd_RequestDecryptionKey_proposal_id = md_RequestDecryptionKey.Fields().ByName("proposal_id") + fd_RequestDecryptionKey_request_id = md_RequestDecryptionKey.Fields().ByName("request_id") + fd_RequestDecryptionKey_estimated_delay = md_RequestDecryptionKey.Fields().ByName("estimated_delay") } -var _ protoreflect.Message = (*fastReflection_RequestAggrKeyshare)(nil) +var _ protoreflect.Message = (*fastReflection_RequestDecryptionKey)(nil) -type fastReflection_RequestAggrKeyshare RequestAggrKeyshare +type fastReflection_RequestDecryptionKey RequestDecryptionKey -func (x *RequestAggrKeyshare) ProtoReflect() protoreflect.Message { - return (*fastReflection_RequestAggrKeyshare)(x) +func (x *RequestDecryptionKey) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestDecryptionKey)(x) } -func (x *RequestAggrKeyshare) slowProtoReflect() protoreflect.Message { +func (x *RequestDecryptionKey) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_common_shared_types_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -51,43 +51,43 @@ func (x *RequestAggrKeyshare) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_RequestAggrKeyshare_messageType fastReflection_RequestAggrKeyshare_messageType -var _ protoreflect.MessageType = fastReflection_RequestAggrKeyshare_messageType{} +var _fastReflection_RequestDecryptionKey_messageType fastReflection_RequestDecryptionKey_messageType +var _ protoreflect.MessageType = fastReflection_RequestDecryptionKey_messageType{} -type fastReflection_RequestAggrKeyshare_messageType struct{} +type fastReflection_RequestDecryptionKey_messageType struct{} -func (x fastReflection_RequestAggrKeyshare_messageType) Zero() protoreflect.Message { - return (*fastReflection_RequestAggrKeyshare)(nil) +func (x fastReflection_RequestDecryptionKey_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestDecryptionKey)(nil) } -func (x fastReflection_RequestAggrKeyshare_messageType) New() protoreflect.Message { - return new(fastReflection_RequestAggrKeyshare) +func (x fastReflection_RequestDecryptionKey_messageType) New() protoreflect.Message { + return new(fastReflection_RequestDecryptionKey) } -func (x fastReflection_RequestAggrKeyshare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_RequestAggrKeyshare +func (x fastReflection_RequestDecryptionKey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestDecryptionKey } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_RequestAggrKeyshare) Descriptor() protoreflect.MessageDescriptor { - return md_RequestAggrKeyshare +func (x *fastReflection_RequestDecryptionKey) Descriptor() protoreflect.MessageDescriptor { + return md_RequestDecryptionKey } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_RequestAggrKeyshare) Type() protoreflect.MessageType { - return _fastReflection_RequestAggrKeyshare_messageType +func (x *fastReflection_RequestDecryptionKey) Type() protoreflect.MessageType { + return _fastReflection_RequestDecryptionKey_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_RequestAggrKeyshare) New() protoreflect.Message { - return new(fastReflection_RequestAggrKeyshare) +func (x *fastReflection_RequestDecryptionKey) New() protoreflect.Message { + return new(fastReflection_RequestDecryptionKey) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_RequestAggrKeyshare) Interface() protoreflect.ProtoMessage { - return (*RequestAggrKeyshare)(x) +func (x *fastReflection_RequestDecryptionKey) Interface() protoreflect.ProtoMessage { + return (*RequestDecryptionKey)(x) } // Range iterates over every populated field in an undefined order, @@ -95,32 +95,32 @@ func (x *fastReflection_RequestAggrKeyshare) Interface() protoreflect.ProtoMessa // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_RequestAggrKeyshare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestDecryptionKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_RequestAggrKeyshare_creator, value) { + if !f(fd_RequestDecryptionKey_creator, value) { return } } if x.Id != nil { switch o := x.Id.(type) { - case *RequestAggrKeyshare_ProposalId: + case *RequestDecryptionKey_ProposalId: v := o.ProposalId value := protoreflect.ValueOfString(v) - if !f(fd_RequestAggrKeyshare_proposal_id, value) { + if !f(fd_RequestDecryptionKey_proposal_id, value) { return } - case *RequestAggrKeyshare_RequestId: + case *RequestDecryptionKey_RequestId: v := o.RequestId value := protoreflect.ValueOfString(v) - if !f(fd_RequestAggrKeyshare_request_id, value) { + if !f(fd_RequestDecryptionKey_request_id, value) { return } } } if x.EstimatedDelay != nil { value := protoreflect.ValueOfMessage(x.EstimatedDelay.ProtoReflect()) - if !f(fd_RequestAggrKeyshare_estimated_delay, value) { + if !f(fd_RequestDecryptionKey_estimated_delay, value) { return } } @@ -137,33 +137,33 @@ func (x *fastReflection_RequestAggrKeyshare) Range(f func(protoreflect.FieldDesc // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_RequestAggrKeyshare) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestDecryptionKey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.common.RequestAggrKeyshare.creator": + case "fairyring.common.RequestDecryptionKey.creator": return x.Creator != "" - case "fairyring.common.RequestAggrKeyshare.proposal_id": + case "fairyring.common.RequestDecryptionKey.proposal_id": if x.Id == nil { return false - } else if _, ok := x.Id.(*RequestAggrKeyshare_ProposalId); ok { + } else if _, ok := x.Id.(*RequestDecryptionKey_ProposalId); ok { return true } else { return false } - case "fairyring.common.RequestAggrKeyshare.request_id": + case "fairyring.common.RequestDecryptionKey.request_id": if x.Id == nil { return false - } else if _, ok := x.Id.(*RequestAggrKeyshare_RequestId); ok { + } else if _, ok := x.Id.(*RequestDecryptionKey_RequestId); ok { return true } else { return false } - case "fairyring.common.RequestAggrKeyshare.estimated_delay": + case "fairyring.common.RequestDecryptionKey.estimated_delay": return x.EstimatedDelay != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestAggrKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.RequestAggrKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestDecryptionKey does not contain field %s", fd.FullName())) } } @@ -173,21 +173,21 @@ func (x *fastReflection_RequestAggrKeyshare) Has(fd protoreflect.FieldDescriptor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestAggrKeyshare) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestDecryptionKey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.common.RequestAggrKeyshare.creator": + case "fairyring.common.RequestDecryptionKey.creator": x.Creator = "" - case "fairyring.common.RequestAggrKeyshare.proposal_id": + case "fairyring.common.RequestDecryptionKey.proposal_id": x.Id = nil - case "fairyring.common.RequestAggrKeyshare.request_id": + case "fairyring.common.RequestDecryptionKey.request_id": x.Id = nil - case "fairyring.common.RequestAggrKeyshare.estimated_delay": + case "fairyring.common.RequestDecryptionKey.estimated_delay": x.EstimatedDelay = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestAggrKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.RequestAggrKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestDecryptionKey does not contain field %s", fd.FullName())) } } @@ -197,35 +197,35 @@ func (x *fastReflection_RequestAggrKeyshare) Clear(fd protoreflect.FieldDescript // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_RequestAggrKeyshare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestDecryptionKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.common.RequestAggrKeyshare.creator": + case "fairyring.common.RequestDecryptionKey.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.common.RequestAggrKeyshare.proposal_id": + case "fairyring.common.RequestDecryptionKey.proposal_id": if x.Id == nil { return protoreflect.ValueOfString("") - } else if v, ok := x.Id.(*RequestAggrKeyshare_ProposalId); ok { + } else if v, ok := x.Id.(*RequestDecryptionKey_ProposalId); ok { return protoreflect.ValueOfString(v.ProposalId) } else { return protoreflect.ValueOfString("") } - case "fairyring.common.RequestAggrKeyshare.request_id": + case "fairyring.common.RequestDecryptionKey.request_id": if x.Id == nil { return protoreflect.ValueOfString("") - } else if v, ok := x.Id.(*RequestAggrKeyshare_RequestId); ok { + } else if v, ok := x.Id.(*RequestDecryptionKey_RequestId); ok { return protoreflect.ValueOfString(v.RequestId) } else { return protoreflect.ValueOfString("") } - case "fairyring.common.RequestAggrKeyshare.estimated_delay": + case "fairyring.common.RequestDecryptionKey.estimated_delay": value := x.EstimatedDelay return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestAggrKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.RequestAggrKeyshare does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestDecryptionKey does not contain field %s", descriptor.FullName())) } } @@ -239,23 +239,23 @@ func (x *fastReflection_RequestAggrKeyshare) Get(descriptor protoreflect.FieldDe // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestAggrKeyshare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestDecryptionKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.common.RequestAggrKeyshare.creator": + case "fairyring.common.RequestDecryptionKey.creator": x.Creator = value.Interface().(string) - case "fairyring.common.RequestAggrKeyshare.proposal_id": + case "fairyring.common.RequestDecryptionKey.proposal_id": cv := value.Interface().(string) - x.Id = &RequestAggrKeyshare_ProposalId{ProposalId: cv} - case "fairyring.common.RequestAggrKeyshare.request_id": + x.Id = &RequestDecryptionKey_ProposalId{ProposalId: cv} + case "fairyring.common.RequestDecryptionKey.request_id": cv := value.Interface().(string) - x.Id = &RequestAggrKeyshare_RequestId{RequestId: cv} - case "fairyring.common.RequestAggrKeyshare.estimated_delay": + x.Id = &RequestDecryptionKey_RequestId{RequestId: cv} + case "fairyring.common.RequestDecryptionKey.estimated_delay": x.EstimatedDelay = value.Message().Interface().(*durationpb.Duration) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestAggrKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.RequestAggrKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestDecryptionKey does not contain field %s", fd.FullName())) } } @@ -269,66 +269,66 @@ func (x *fastReflection_RequestAggrKeyshare) Set(fd protoreflect.FieldDescriptor // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestAggrKeyshare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestDecryptionKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.RequestAggrKeyshare.estimated_delay": + case "fairyring.common.RequestDecryptionKey.estimated_delay": if x.EstimatedDelay == nil { x.EstimatedDelay = new(durationpb.Duration) } return protoreflect.ValueOfMessage(x.EstimatedDelay.ProtoReflect()) - case "fairyring.common.RequestAggrKeyshare.creator": - panic(fmt.Errorf("field creator of message fairyring.common.RequestAggrKeyshare is not mutable")) - case "fairyring.common.RequestAggrKeyshare.proposal_id": - panic(fmt.Errorf("field proposal_id of message fairyring.common.RequestAggrKeyshare is not mutable")) - case "fairyring.common.RequestAggrKeyshare.request_id": - panic(fmt.Errorf("field request_id of message fairyring.common.RequestAggrKeyshare is not mutable")) + case "fairyring.common.RequestDecryptionKey.creator": + panic(fmt.Errorf("field creator of message fairyring.common.RequestDecryptionKey is not mutable")) + case "fairyring.common.RequestDecryptionKey.proposal_id": + panic(fmt.Errorf("field proposal_id of message fairyring.common.RequestDecryptionKey is not mutable")) + case "fairyring.common.RequestDecryptionKey.request_id": + panic(fmt.Errorf("field request_id of message fairyring.common.RequestDecryptionKey is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestAggrKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.RequestAggrKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestDecryptionKey does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_RequestAggrKeyshare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestDecryptionKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.RequestAggrKeyshare.creator": + case "fairyring.common.RequestDecryptionKey.creator": return protoreflect.ValueOfString("") - case "fairyring.common.RequestAggrKeyshare.proposal_id": + case "fairyring.common.RequestDecryptionKey.proposal_id": return protoreflect.ValueOfString("") - case "fairyring.common.RequestAggrKeyshare.request_id": + case "fairyring.common.RequestDecryptionKey.request_id": return protoreflect.ValueOfString("") - case "fairyring.common.RequestAggrKeyshare.estimated_delay": + case "fairyring.common.RequestDecryptionKey.estimated_delay": m := new(durationpb.Duration) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestAggrKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.RequestAggrKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestDecryptionKey does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_RequestAggrKeyshare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestDecryptionKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { - case "fairyring.common.RequestAggrKeyshare.id": + case "fairyring.common.RequestDecryptionKey.id": if x.Id == nil { return nil } switch x.Id.(type) { - case *RequestAggrKeyshare_ProposalId: + case *RequestDecryptionKey_ProposalId: return x.Descriptor().Fields().ByName("proposal_id") - case *RequestAggrKeyshare_RequestId: + case *RequestDecryptionKey_RequestId: return x.Descriptor().Fields().ByName("request_id") } default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.common.RequestAggrKeyshare", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.common.RequestDecryptionKey", d.FullName())) } panic("unreachable") } @@ -336,7 +336,7 @@ func (x *fastReflection_RequestAggrKeyshare) WhichOneof(d protoreflect.OneofDesc // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_RequestAggrKeyshare) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestDecryptionKey) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -347,7 +347,7 @@ func (x *fastReflection_RequestAggrKeyshare) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestAggrKeyshare) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestDecryptionKey) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -359,7 +359,7 @@ func (x *fastReflection_RequestAggrKeyshare) SetUnknown(fields protoreflect.RawF // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_RequestAggrKeyshare) IsValid() bool { +func (x *fastReflection_RequestDecryptionKey) IsValid() bool { return x != nil } @@ -369,9 +369,9 @@ func (x *fastReflection_RequestAggrKeyshare) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_RequestAggrKeyshare) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestDecryptionKey) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*RequestAggrKeyshare) + x := input.Message.Interface().(*RequestDecryptionKey) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -388,13 +388,13 @@ func (x *fastReflection_RequestAggrKeyshare) ProtoMethods() *protoiface.Methods n += 1 + l + runtime.Sov(uint64(l)) } switch x := x.Id.(type) { - case *RequestAggrKeyshare_ProposalId: + case *RequestDecryptionKey_ProposalId: if x == nil { break } l = len(x.ProposalId) n += 1 + l + runtime.Sov(uint64(l)) - case *RequestAggrKeyshare_RequestId: + case *RequestDecryptionKey_RequestId: if x == nil { break } @@ -415,7 +415,7 @@ func (x *fastReflection_RequestAggrKeyshare) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*RequestAggrKeyshare) + x := input.Message.Interface().(*RequestDecryptionKey) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -435,13 +435,13 @@ func (x *fastReflection_RequestAggrKeyshare) ProtoMethods() *protoiface.Methods copy(dAtA[i:], x.unknownFields) } switch x := x.Id.(type) { - case *RequestAggrKeyshare_ProposalId: + case *RequestDecryptionKey_ProposalId: i -= len(x.ProposalId) copy(dAtA[i:], x.ProposalId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProposalId))) i-- dAtA[i] = 0x12 - case *RequestAggrKeyshare_RequestId: + case *RequestDecryptionKey_RequestId: i -= len(x.RequestId) copy(dAtA[i:], x.RequestId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RequestId))) @@ -480,7 +480,7 @@ func (x *fastReflection_RequestAggrKeyshare) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*RequestAggrKeyshare) + x := input.Message.Interface().(*RequestDecryptionKey) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -512,10 +512,10 @@ func (x *fastReflection_RequestAggrKeyshare) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestAggrKeyshare: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestDecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestAggrKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestDecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -580,7 +580,7 @@ func (x *fastReflection_RequestAggrKeyshare) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Id = &RequestAggrKeyshare_ProposalId{string(dAtA[iNdEx:postIndex])} + x.Id = &RequestDecryptionKey_ProposalId{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 3: if wireType != 2 { @@ -612,7 +612,7 @@ func (x *fastReflection_RequestAggrKeyshare) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Id = &RequestAggrKeyshare_RequestId{string(dAtA[iNdEx:postIndex])} + x.Id = &RequestDecryptionKey_RequestId{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 4: if wireType != 2 { @@ -686,27 +686,27 @@ func (x *fastReflection_RequestAggrKeyshare) ProtoMethods() *protoiface.Methods } var ( - md_RequestAggrKeyshareResponse protoreflect.MessageDescriptor - fd_RequestAggrKeyshareResponse_identity protoreflect.FieldDescriptor - fd_RequestAggrKeyshareResponse_pubkey protoreflect.FieldDescriptor + md_RequestDecryptionKeyResponse protoreflect.MessageDescriptor + fd_RequestDecryptionKeyResponse_identity protoreflect.FieldDescriptor + fd_RequestDecryptionKeyResponse_pubkey protoreflect.FieldDescriptor ) func init() { file_fairyring_common_shared_types_proto_init() - md_RequestAggrKeyshareResponse = File_fairyring_common_shared_types_proto.Messages().ByName("RequestAggrKeyshareResponse") - fd_RequestAggrKeyshareResponse_identity = md_RequestAggrKeyshareResponse.Fields().ByName("identity") - fd_RequestAggrKeyshareResponse_pubkey = md_RequestAggrKeyshareResponse.Fields().ByName("pubkey") + md_RequestDecryptionKeyResponse = File_fairyring_common_shared_types_proto.Messages().ByName("RequestDecryptionKeyResponse") + fd_RequestDecryptionKeyResponse_identity = md_RequestDecryptionKeyResponse.Fields().ByName("identity") + fd_RequestDecryptionKeyResponse_pubkey = md_RequestDecryptionKeyResponse.Fields().ByName("pubkey") } -var _ protoreflect.Message = (*fastReflection_RequestAggrKeyshareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_RequestDecryptionKeyResponse)(nil) -type fastReflection_RequestAggrKeyshareResponse RequestAggrKeyshareResponse +type fastReflection_RequestDecryptionKeyResponse RequestDecryptionKeyResponse -func (x *RequestAggrKeyshareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_RequestAggrKeyshareResponse)(x) +func (x *RequestDecryptionKeyResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestDecryptionKeyResponse)(x) } -func (x *RequestAggrKeyshareResponse) slowProtoReflect() protoreflect.Message { +func (x *RequestDecryptionKeyResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_common_shared_types_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -718,43 +718,43 @@ func (x *RequestAggrKeyshareResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_RequestAggrKeyshareResponse_messageType fastReflection_RequestAggrKeyshareResponse_messageType -var _ protoreflect.MessageType = fastReflection_RequestAggrKeyshareResponse_messageType{} +var _fastReflection_RequestDecryptionKeyResponse_messageType fastReflection_RequestDecryptionKeyResponse_messageType +var _ protoreflect.MessageType = fastReflection_RequestDecryptionKeyResponse_messageType{} -type fastReflection_RequestAggrKeyshareResponse_messageType struct{} +type fastReflection_RequestDecryptionKeyResponse_messageType struct{} -func (x fastReflection_RequestAggrKeyshareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_RequestAggrKeyshareResponse)(nil) +func (x fastReflection_RequestDecryptionKeyResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestDecryptionKeyResponse)(nil) } -func (x fastReflection_RequestAggrKeyshareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_RequestAggrKeyshareResponse) +func (x fastReflection_RequestDecryptionKeyResponse_messageType) New() protoreflect.Message { + return new(fastReflection_RequestDecryptionKeyResponse) } -func (x fastReflection_RequestAggrKeyshareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_RequestAggrKeyshareResponse +func (x fastReflection_RequestDecryptionKeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestDecryptionKeyResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_RequestAggrKeyshareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_RequestAggrKeyshareResponse +func (x *fastReflection_RequestDecryptionKeyResponse) Descriptor() protoreflect.MessageDescriptor { + return md_RequestDecryptionKeyResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_RequestAggrKeyshareResponse) Type() protoreflect.MessageType { - return _fastReflection_RequestAggrKeyshareResponse_messageType +func (x *fastReflection_RequestDecryptionKeyResponse) Type() protoreflect.MessageType { + return _fastReflection_RequestDecryptionKeyResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_RequestAggrKeyshareResponse) New() protoreflect.Message { - return new(fastReflection_RequestAggrKeyshareResponse) +func (x *fastReflection_RequestDecryptionKeyResponse) New() protoreflect.Message { + return new(fastReflection_RequestDecryptionKeyResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_RequestAggrKeyshareResponse) Interface() protoreflect.ProtoMessage { - return (*RequestAggrKeyshareResponse)(x) +func (x *fastReflection_RequestDecryptionKeyResponse) Interface() protoreflect.ProtoMessage { + return (*RequestDecryptionKeyResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -762,16 +762,16 @@ func (x *fastReflection_RequestAggrKeyshareResponse) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_RequestAggrKeyshareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestDecryptionKeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Identity != "" { value := protoreflect.ValueOfString(x.Identity) - if !f(fd_RequestAggrKeyshareResponse_identity, value) { + if !f(fd_RequestDecryptionKeyResponse_identity, value) { return } } if x.Pubkey != "" { value := protoreflect.ValueOfString(x.Pubkey) - if !f(fd_RequestAggrKeyshareResponse_pubkey, value) { + if !f(fd_RequestDecryptionKeyResponse_pubkey, value) { return } } @@ -788,17 +788,17 @@ func (x *fastReflection_RequestAggrKeyshareResponse) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_RequestAggrKeyshareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestDecryptionKeyResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.common.RequestAggrKeyshareResponse.identity": + case "fairyring.common.RequestDecryptionKeyResponse.identity": return x.Identity != "" - case "fairyring.common.RequestAggrKeyshareResponse.pubkey": + case "fairyring.common.RequestDecryptionKeyResponse.pubkey": return x.Pubkey != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestAggrKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.common.RequestAggrKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -808,17 +808,17 @@ func (x *fastReflection_RequestAggrKeyshareResponse) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestAggrKeyshareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestDecryptionKeyResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.common.RequestAggrKeyshareResponse.identity": + case "fairyring.common.RequestDecryptionKeyResponse.identity": x.Identity = "" - case "fairyring.common.RequestAggrKeyshareResponse.pubkey": + case "fairyring.common.RequestDecryptionKeyResponse.pubkey": x.Pubkey = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestAggrKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.common.RequestAggrKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -828,19 +828,19 @@ func (x *fastReflection_RequestAggrKeyshareResponse) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_RequestAggrKeyshareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestDecryptionKeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.common.RequestAggrKeyshareResponse.identity": + case "fairyring.common.RequestDecryptionKeyResponse.identity": value := x.Identity return protoreflect.ValueOfString(value) - case "fairyring.common.RequestAggrKeyshareResponse.pubkey": + case "fairyring.common.RequestDecryptionKeyResponse.pubkey": value := x.Pubkey return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestAggrKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.common.RequestAggrKeyshareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestDecryptionKeyResponse does not contain field %s", descriptor.FullName())) } } @@ -854,17 +854,17 @@ func (x *fastReflection_RequestAggrKeyshareResponse) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestAggrKeyshareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestDecryptionKeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.common.RequestAggrKeyshareResponse.identity": + case "fairyring.common.RequestDecryptionKeyResponse.identity": x.Identity = value.Interface().(string) - case "fairyring.common.RequestAggrKeyshareResponse.pubkey": + case "fairyring.common.RequestDecryptionKeyResponse.pubkey": x.Pubkey = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestAggrKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.common.RequestAggrKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -878,44 +878,44 @@ func (x *fastReflection_RequestAggrKeyshareResponse) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestAggrKeyshareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestDecryptionKeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.RequestAggrKeyshareResponse.identity": - panic(fmt.Errorf("field identity of message fairyring.common.RequestAggrKeyshareResponse is not mutable")) - case "fairyring.common.RequestAggrKeyshareResponse.pubkey": - panic(fmt.Errorf("field pubkey of message fairyring.common.RequestAggrKeyshareResponse is not mutable")) + case "fairyring.common.RequestDecryptionKeyResponse.identity": + panic(fmt.Errorf("field identity of message fairyring.common.RequestDecryptionKeyResponse is not mutable")) + case "fairyring.common.RequestDecryptionKeyResponse.pubkey": + panic(fmt.Errorf("field pubkey of message fairyring.common.RequestDecryptionKeyResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestAggrKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.common.RequestAggrKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestDecryptionKeyResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_RequestAggrKeyshareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestDecryptionKeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.RequestAggrKeyshareResponse.identity": + case "fairyring.common.RequestDecryptionKeyResponse.identity": return protoreflect.ValueOfString("") - case "fairyring.common.RequestAggrKeyshareResponse.pubkey": + case "fairyring.common.RequestDecryptionKeyResponse.pubkey": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestAggrKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.common.RequestAggrKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestDecryptionKeyResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_RequestAggrKeyshareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestDecryptionKeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.common.RequestAggrKeyshareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.common.RequestDecryptionKeyResponse", d.FullName())) } panic("unreachable") } @@ -923,7 +923,7 @@ func (x *fastReflection_RequestAggrKeyshareResponse) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_RequestAggrKeyshareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestDecryptionKeyResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -934,7 +934,7 @@ func (x *fastReflection_RequestAggrKeyshareResponse) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestAggrKeyshareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestDecryptionKeyResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -946,7 +946,7 @@ func (x *fastReflection_RequestAggrKeyshareResponse) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_RequestAggrKeyshareResponse) IsValid() bool { +func (x *fastReflection_RequestDecryptionKeyResponse) IsValid() bool { return x != nil } @@ -956,9 +956,9 @@ func (x *fastReflection_RequestAggrKeyshareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_RequestAggrKeyshareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestDecryptionKeyResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*RequestAggrKeyshareResponse) + x := input.Message.Interface().(*RequestDecryptionKeyResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -988,7 +988,7 @@ func (x *fastReflection_RequestAggrKeyshareResponse) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*RequestAggrKeyshareResponse) + x := input.Message.Interface().(*RequestDecryptionKeyResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1032,7 +1032,7 @@ func (x *fastReflection_RequestAggrKeyshareResponse) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*RequestAggrKeyshareResponse) + x := input.Message.Interface().(*RequestDecryptionKeyResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1064,10 +1064,10 @@ func (x *fastReflection_RequestAggrKeyshareResponse) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestAggrKeyshareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestDecryptionKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestAggrKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestDecryptionKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1170,29 +1170,29 @@ func (x *fastReflection_RequestAggrKeyshareResponse) ProtoMethods() *protoiface. } var ( - md_GetAggrKeyshare protoreflect.MessageDescriptor - fd_GetAggrKeyshare_proposal_id protoreflect.FieldDescriptor - fd_GetAggrKeyshare_request_id protoreflect.FieldDescriptor - fd_GetAggrKeyshare_identity protoreflect.FieldDescriptor + md_GetDecryptionKey protoreflect.MessageDescriptor + fd_GetDecryptionKey_proposal_id protoreflect.FieldDescriptor + fd_GetDecryptionKey_request_id protoreflect.FieldDescriptor + fd_GetDecryptionKey_identity protoreflect.FieldDescriptor ) func init() { file_fairyring_common_shared_types_proto_init() - md_GetAggrKeyshare = File_fairyring_common_shared_types_proto.Messages().ByName("GetAggrKeyshare") - fd_GetAggrKeyshare_proposal_id = md_GetAggrKeyshare.Fields().ByName("proposal_id") - fd_GetAggrKeyshare_request_id = md_GetAggrKeyshare.Fields().ByName("request_id") - fd_GetAggrKeyshare_identity = md_GetAggrKeyshare.Fields().ByName("identity") + md_GetDecryptionKey = File_fairyring_common_shared_types_proto.Messages().ByName("GetDecryptionKey") + fd_GetDecryptionKey_proposal_id = md_GetDecryptionKey.Fields().ByName("proposal_id") + fd_GetDecryptionKey_request_id = md_GetDecryptionKey.Fields().ByName("request_id") + fd_GetDecryptionKey_identity = md_GetDecryptionKey.Fields().ByName("identity") } -var _ protoreflect.Message = (*fastReflection_GetAggrKeyshare)(nil) +var _ protoreflect.Message = (*fastReflection_GetDecryptionKey)(nil) -type fastReflection_GetAggrKeyshare GetAggrKeyshare +type fastReflection_GetDecryptionKey GetDecryptionKey -func (x *GetAggrKeyshare) ProtoReflect() protoreflect.Message { - return (*fastReflection_GetAggrKeyshare)(x) +func (x *GetDecryptionKey) ProtoReflect() protoreflect.Message { + return (*fastReflection_GetDecryptionKey)(x) } -func (x *GetAggrKeyshare) slowProtoReflect() protoreflect.Message { +func (x *GetDecryptionKey) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_common_shared_types_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1204,43 +1204,43 @@ func (x *GetAggrKeyshare) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_GetAggrKeyshare_messageType fastReflection_GetAggrKeyshare_messageType -var _ protoreflect.MessageType = fastReflection_GetAggrKeyshare_messageType{} +var _fastReflection_GetDecryptionKey_messageType fastReflection_GetDecryptionKey_messageType +var _ protoreflect.MessageType = fastReflection_GetDecryptionKey_messageType{} -type fastReflection_GetAggrKeyshare_messageType struct{} +type fastReflection_GetDecryptionKey_messageType struct{} -func (x fastReflection_GetAggrKeyshare_messageType) Zero() protoreflect.Message { - return (*fastReflection_GetAggrKeyshare)(nil) +func (x fastReflection_GetDecryptionKey_messageType) Zero() protoreflect.Message { + return (*fastReflection_GetDecryptionKey)(nil) } -func (x fastReflection_GetAggrKeyshare_messageType) New() protoreflect.Message { - return new(fastReflection_GetAggrKeyshare) +func (x fastReflection_GetDecryptionKey_messageType) New() protoreflect.Message { + return new(fastReflection_GetDecryptionKey) } -func (x fastReflection_GetAggrKeyshare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GetAggrKeyshare +func (x fastReflection_GetDecryptionKey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GetDecryptionKey } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_GetAggrKeyshare) Descriptor() protoreflect.MessageDescriptor { - return md_GetAggrKeyshare +func (x *fastReflection_GetDecryptionKey) Descriptor() protoreflect.MessageDescriptor { + return md_GetDecryptionKey } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_GetAggrKeyshare) Type() protoreflect.MessageType { - return _fastReflection_GetAggrKeyshare_messageType +func (x *fastReflection_GetDecryptionKey) Type() protoreflect.MessageType { + return _fastReflection_GetDecryptionKey_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_GetAggrKeyshare) New() protoreflect.Message { - return new(fastReflection_GetAggrKeyshare) +func (x *fastReflection_GetDecryptionKey) New() protoreflect.Message { + return new(fastReflection_GetDecryptionKey) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_GetAggrKeyshare) Interface() protoreflect.ProtoMessage { - return (*GetAggrKeyshare)(x) +func (x *fastReflection_GetDecryptionKey) Interface() protoreflect.ProtoMessage { + return (*GetDecryptionKey)(x) } // Range iterates over every populated field in an undefined order, @@ -1248,26 +1248,26 @@ func (x *fastReflection_GetAggrKeyshare) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_GetAggrKeyshare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_GetDecryptionKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Id != nil { switch o := x.Id.(type) { - case *GetAggrKeyshare_ProposalId: + case *GetDecryptionKey_ProposalId: v := o.ProposalId value := protoreflect.ValueOfString(v) - if !f(fd_GetAggrKeyshare_proposal_id, value) { + if !f(fd_GetDecryptionKey_proposal_id, value) { return } - case *GetAggrKeyshare_RequestId: + case *GetDecryptionKey_RequestId: v := o.RequestId value := protoreflect.ValueOfString(v) - if !f(fd_GetAggrKeyshare_request_id, value) { + if !f(fd_GetDecryptionKey_request_id, value) { return } } } if x.Identity != "" { value := protoreflect.ValueOfString(x.Identity) - if !f(fd_GetAggrKeyshare_identity, value) { + if !f(fd_GetDecryptionKey_identity, value) { return } } @@ -1284,31 +1284,31 @@ func (x *fastReflection_GetAggrKeyshare) Range(f func(protoreflect.FieldDescript // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_GetAggrKeyshare) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_GetDecryptionKey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.common.GetAggrKeyshare.proposal_id": + case "fairyring.common.GetDecryptionKey.proposal_id": if x.Id == nil { return false - } else if _, ok := x.Id.(*GetAggrKeyshare_ProposalId); ok { + } else if _, ok := x.Id.(*GetDecryptionKey_ProposalId); ok { return true } else { return false } - case "fairyring.common.GetAggrKeyshare.request_id": + case "fairyring.common.GetDecryptionKey.request_id": if x.Id == nil { return false - } else if _, ok := x.Id.(*GetAggrKeyshare_RequestId); ok { + } else if _, ok := x.Id.(*GetDecryptionKey_RequestId); ok { return true } else { return false } - case "fairyring.common.GetAggrKeyshare.identity": + case "fairyring.common.GetDecryptionKey.identity": return x.Identity != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetAggrKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.GetAggrKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetDecryptionKey does not contain field %s", fd.FullName())) } } @@ -1318,19 +1318,19 @@ func (x *fastReflection_GetAggrKeyshare) Has(fd protoreflect.FieldDescriptor) bo // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetAggrKeyshare) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_GetDecryptionKey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.common.GetAggrKeyshare.proposal_id": + case "fairyring.common.GetDecryptionKey.proposal_id": x.Id = nil - case "fairyring.common.GetAggrKeyshare.request_id": + case "fairyring.common.GetDecryptionKey.request_id": x.Id = nil - case "fairyring.common.GetAggrKeyshare.identity": + case "fairyring.common.GetDecryptionKey.identity": x.Identity = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetAggrKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.GetAggrKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetDecryptionKey does not contain field %s", fd.FullName())) } } @@ -1340,32 +1340,32 @@ func (x *fastReflection_GetAggrKeyshare) Clear(fd protoreflect.FieldDescriptor) // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GetAggrKeyshare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetDecryptionKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.common.GetAggrKeyshare.proposal_id": + case "fairyring.common.GetDecryptionKey.proposal_id": if x.Id == nil { return protoreflect.ValueOfString("") - } else if v, ok := x.Id.(*GetAggrKeyshare_ProposalId); ok { + } else if v, ok := x.Id.(*GetDecryptionKey_ProposalId); ok { return protoreflect.ValueOfString(v.ProposalId) } else { return protoreflect.ValueOfString("") } - case "fairyring.common.GetAggrKeyshare.request_id": + case "fairyring.common.GetDecryptionKey.request_id": if x.Id == nil { return protoreflect.ValueOfString("") - } else if v, ok := x.Id.(*GetAggrKeyshare_RequestId); ok { + } else if v, ok := x.Id.(*GetDecryptionKey_RequestId); ok { return protoreflect.ValueOfString(v.RequestId) } else { return protoreflect.ValueOfString("") } - case "fairyring.common.GetAggrKeyshare.identity": + case "fairyring.common.GetDecryptionKey.identity": value := x.Identity return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetAggrKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.GetAggrKeyshare does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.common.GetDecryptionKey does not contain field %s", descriptor.FullName())) } } @@ -1379,21 +1379,21 @@ func (x *fastReflection_GetAggrKeyshare) Get(descriptor protoreflect.FieldDescri // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetAggrKeyshare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_GetDecryptionKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.common.GetAggrKeyshare.proposal_id": + case "fairyring.common.GetDecryptionKey.proposal_id": cv := value.Interface().(string) - x.Id = &GetAggrKeyshare_ProposalId{ProposalId: cv} - case "fairyring.common.GetAggrKeyshare.request_id": + x.Id = &GetDecryptionKey_ProposalId{ProposalId: cv} + case "fairyring.common.GetDecryptionKey.request_id": cv := value.Interface().(string) - x.Id = &GetAggrKeyshare_RequestId{RequestId: cv} - case "fairyring.common.GetAggrKeyshare.identity": + x.Id = &GetDecryptionKey_RequestId{RequestId: cv} + case "fairyring.common.GetDecryptionKey.identity": x.Identity = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetAggrKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.GetAggrKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetDecryptionKey does not contain field %s", fd.FullName())) } } @@ -1407,58 +1407,58 @@ func (x *fastReflection_GetAggrKeyshare) Set(fd protoreflect.FieldDescriptor, va // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetAggrKeyshare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetDecryptionKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.GetAggrKeyshare.proposal_id": - panic(fmt.Errorf("field proposal_id of message fairyring.common.GetAggrKeyshare is not mutable")) - case "fairyring.common.GetAggrKeyshare.request_id": - panic(fmt.Errorf("field request_id of message fairyring.common.GetAggrKeyshare is not mutable")) - case "fairyring.common.GetAggrKeyshare.identity": - panic(fmt.Errorf("field identity of message fairyring.common.GetAggrKeyshare is not mutable")) + case "fairyring.common.GetDecryptionKey.proposal_id": + panic(fmt.Errorf("field proposal_id of message fairyring.common.GetDecryptionKey is not mutable")) + case "fairyring.common.GetDecryptionKey.request_id": + panic(fmt.Errorf("field request_id of message fairyring.common.GetDecryptionKey is not mutable")) + case "fairyring.common.GetDecryptionKey.identity": + panic(fmt.Errorf("field identity of message fairyring.common.GetDecryptionKey is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetAggrKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.GetAggrKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetDecryptionKey does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GetAggrKeyshare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetDecryptionKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.GetAggrKeyshare.proposal_id": + case "fairyring.common.GetDecryptionKey.proposal_id": return protoreflect.ValueOfString("") - case "fairyring.common.GetAggrKeyshare.request_id": + case "fairyring.common.GetDecryptionKey.request_id": return protoreflect.ValueOfString("") - case "fairyring.common.GetAggrKeyshare.identity": + case "fairyring.common.GetDecryptionKey.identity": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetAggrKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.GetAggrKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetDecryptionKey does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GetAggrKeyshare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_GetDecryptionKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { - case "fairyring.common.GetAggrKeyshare.id": + case "fairyring.common.GetDecryptionKey.id": if x.Id == nil { return nil } switch x.Id.(type) { - case *GetAggrKeyshare_ProposalId: + case *GetDecryptionKey_ProposalId: return x.Descriptor().Fields().ByName("proposal_id") - case *GetAggrKeyshare_RequestId: + case *GetDecryptionKey_RequestId: return x.Descriptor().Fields().ByName("request_id") } default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.common.GetAggrKeyshare", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.common.GetDecryptionKey", d.FullName())) } panic("unreachable") } @@ -1466,7 +1466,7 @@ func (x *fastReflection_GetAggrKeyshare) WhichOneof(d protoreflect.OneofDescript // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GetAggrKeyshare) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_GetDecryptionKey) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1477,7 +1477,7 @@ func (x *fastReflection_GetAggrKeyshare) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetAggrKeyshare) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_GetDecryptionKey) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1489,7 +1489,7 @@ func (x *fastReflection_GetAggrKeyshare) SetUnknown(fields protoreflect.RawField // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_GetAggrKeyshare) IsValid() bool { +func (x *fastReflection_GetDecryptionKey) IsValid() bool { return x != nil } @@ -1499,9 +1499,9 @@ func (x *fastReflection_GetAggrKeyshare) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_GetAggrKeyshare) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_GetDecryptionKey) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GetAggrKeyshare) + x := input.Message.Interface().(*GetDecryptionKey) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1514,13 +1514,13 @@ func (x *fastReflection_GetAggrKeyshare) ProtoMethods() *protoiface.Methods { var l int _ = l switch x := x.Id.(type) { - case *GetAggrKeyshare_ProposalId: + case *GetDecryptionKey_ProposalId: if x == nil { break } l = len(x.ProposalId) n += 1 + l + runtime.Sov(uint64(l)) - case *GetAggrKeyshare_RequestId: + case *GetDecryptionKey_RequestId: if x == nil { break } @@ -1541,7 +1541,7 @@ func (x *fastReflection_GetAggrKeyshare) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GetAggrKeyshare) + x := input.Message.Interface().(*GetDecryptionKey) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1561,13 +1561,13 @@ func (x *fastReflection_GetAggrKeyshare) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], x.unknownFields) } switch x := x.Id.(type) { - case *GetAggrKeyshare_ProposalId: + case *GetDecryptionKey_ProposalId: i -= len(x.ProposalId) copy(dAtA[i:], x.ProposalId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProposalId))) i-- dAtA[i] = 0xa - case *GetAggrKeyshare_RequestId: + case *GetDecryptionKey_RequestId: i -= len(x.RequestId) copy(dAtA[i:], x.RequestId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RequestId))) @@ -1592,7 +1592,7 @@ func (x *fastReflection_GetAggrKeyshare) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GetAggrKeyshare) + x := input.Message.Interface().(*GetDecryptionKey) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1624,10 +1624,10 @@ func (x *fastReflection_GetAggrKeyshare) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetAggrKeyshare: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetDecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetAggrKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetDecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1660,7 +1660,7 @@ func (x *fastReflection_GetAggrKeyshare) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Id = &GetAggrKeyshare_ProposalId{string(dAtA[iNdEx:postIndex])} + x.Id = &GetDecryptionKey_ProposalId{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 2: if wireType != 2 { @@ -1692,7 +1692,7 @@ func (x *fastReflection_GetAggrKeyshare) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Id = &GetAggrKeyshare_RequestId{string(dAtA[iNdEx:postIndex])} + x.Id = &GetDecryptionKey_RequestId{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 3: if wireType != 2 { @@ -1762,23 +1762,23 @@ func (x *fastReflection_GetAggrKeyshare) ProtoMethods() *protoiface.Methods { } var ( - md_GetAggrKeyshareResponse protoreflect.MessageDescriptor + md_GetDecryptionKeyResponse protoreflect.MessageDescriptor ) func init() { file_fairyring_common_shared_types_proto_init() - md_GetAggrKeyshareResponse = File_fairyring_common_shared_types_proto.Messages().ByName("GetAggrKeyshareResponse") + md_GetDecryptionKeyResponse = File_fairyring_common_shared_types_proto.Messages().ByName("GetDecryptionKeyResponse") } -var _ protoreflect.Message = (*fastReflection_GetAggrKeyshareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_GetDecryptionKeyResponse)(nil) -type fastReflection_GetAggrKeyshareResponse GetAggrKeyshareResponse +type fastReflection_GetDecryptionKeyResponse GetDecryptionKeyResponse -func (x *GetAggrKeyshareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_GetAggrKeyshareResponse)(x) +func (x *GetDecryptionKeyResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_GetDecryptionKeyResponse)(x) } -func (x *GetAggrKeyshareResponse) slowProtoReflect() protoreflect.Message { +func (x *GetDecryptionKeyResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_common_shared_types_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1790,43 +1790,43 @@ func (x *GetAggrKeyshareResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_GetAggrKeyshareResponse_messageType fastReflection_GetAggrKeyshareResponse_messageType -var _ protoreflect.MessageType = fastReflection_GetAggrKeyshareResponse_messageType{} +var _fastReflection_GetDecryptionKeyResponse_messageType fastReflection_GetDecryptionKeyResponse_messageType +var _ protoreflect.MessageType = fastReflection_GetDecryptionKeyResponse_messageType{} -type fastReflection_GetAggrKeyshareResponse_messageType struct{} +type fastReflection_GetDecryptionKeyResponse_messageType struct{} -func (x fastReflection_GetAggrKeyshareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_GetAggrKeyshareResponse)(nil) +func (x fastReflection_GetDecryptionKeyResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_GetDecryptionKeyResponse)(nil) } -func (x fastReflection_GetAggrKeyshareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_GetAggrKeyshareResponse) +func (x fastReflection_GetDecryptionKeyResponse_messageType) New() protoreflect.Message { + return new(fastReflection_GetDecryptionKeyResponse) } -func (x fastReflection_GetAggrKeyshareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GetAggrKeyshareResponse +func (x fastReflection_GetDecryptionKeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GetDecryptionKeyResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_GetAggrKeyshareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_GetAggrKeyshareResponse +func (x *fastReflection_GetDecryptionKeyResponse) Descriptor() protoreflect.MessageDescriptor { + return md_GetDecryptionKeyResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_GetAggrKeyshareResponse) Type() protoreflect.MessageType { - return _fastReflection_GetAggrKeyshareResponse_messageType +func (x *fastReflection_GetDecryptionKeyResponse) Type() protoreflect.MessageType { + return _fastReflection_GetDecryptionKeyResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_GetAggrKeyshareResponse) New() protoreflect.Message { - return new(fastReflection_GetAggrKeyshareResponse) +func (x *fastReflection_GetDecryptionKeyResponse) New() protoreflect.Message { + return new(fastReflection_GetDecryptionKeyResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_GetAggrKeyshareResponse) Interface() protoreflect.ProtoMessage { - return (*GetAggrKeyshareResponse)(x) +func (x *fastReflection_GetDecryptionKeyResponse) Interface() protoreflect.ProtoMessage { + return (*GetDecryptionKeyResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -1834,7 +1834,7 @@ func (x *fastReflection_GetAggrKeyshareResponse) Interface() protoreflect.ProtoM // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_GetAggrKeyshareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_GetDecryptionKeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -1848,13 +1848,13 @@ func (x *fastReflection_GetAggrKeyshareResponse) Range(f func(protoreflect.Field // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_GetAggrKeyshareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_GetDecryptionKeyResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetAggrKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.common.GetAggrKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -1864,13 +1864,13 @@ func (x *fastReflection_GetAggrKeyshareResponse) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetAggrKeyshareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_GetDecryptionKeyResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetAggrKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.common.GetAggrKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -1880,13 +1880,13 @@ func (x *fastReflection_GetAggrKeyshareResponse) Clear(fd protoreflect.FieldDesc // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GetAggrKeyshareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetDecryptionKeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetAggrKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.common.GetAggrKeyshareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.common.GetDecryptionKeyResponse does not contain field %s", descriptor.FullName())) } } @@ -1900,13 +1900,13 @@ func (x *fastReflection_GetAggrKeyshareResponse) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetAggrKeyshareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_GetDecryptionKeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetAggrKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.common.GetAggrKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -1920,36 +1920,36 @@ func (x *fastReflection_GetAggrKeyshareResponse) Set(fd protoreflect.FieldDescri // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetAggrKeyshareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetDecryptionKeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetAggrKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.common.GetAggrKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetDecryptionKeyResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GetAggrKeyshareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetDecryptionKeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetAggrKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.common.GetAggrKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetDecryptionKeyResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GetAggrKeyshareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_GetDecryptionKeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.common.GetAggrKeyshareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.common.GetDecryptionKeyResponse", d.FullName())) } panic("unreachable") } @@ -1957,7 +1957,7 @@ func (x *fastReflection_GetAggrKeyshareResponse) WhichOneof(d protoreflect.Oneof // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GetAggrKeyshareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_GetDecryptionKeyResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1968,7 +1968,7 @@ func (x *fastReflection_GetAggrKeyshareResponse) GetUnknown() protoreflect.RawFi // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetAggrKeyshareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_GetDecryptionKeyResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1980,7 +1980,7 @@ func (x *fastReflection_GetAggrKeyshareResponse) SetUnknown(fields protoreflect. // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_GetAggrKeyshareResponse) IsValid() bool { +func (x *fastReflection_GetDecryptionKeyResponse) IsValid() bool { return x != nil } @@ -1990,9 +1990,9 @@ func (x *fastReflection_GetAggrKeyshareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_GetAggrKeyshareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_GetDecryptionKeyResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GetAggrKeyshareResponse) + x := input.Message.Interface().(*GetDecryptionKeyResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2014,7 +2014,7 @@ func (x *fastReflection_GetAggrKeyshareResponse) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GetAggrKeyshareResponse) + x := input.Message.Interface().(*GetDecryptionKeyResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2044,7 +2044,7 @@ func (x *fastReflection_GetAggrKeyshareResponse) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GetAggrKeyshareResponse) + x := input.Message.Interface().(*GetDecryptionKeyResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2076,10 +2076,10 @@ func (x *fastReflection_GetAggrKeyshareResponse) ProtoMethods() *protoiface.Meth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetAggrKeyshareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetDecryptionKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetAggrKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetDecryptionKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -2118,31 +2118,31 @@ func (x *fastReflection_GetAggrKeyshareResponse) ProtoMethods() *protoiface.Meth } var ( - md_GetPrivateKeyshare protoreflect.MessageDescriptor - fd_GetPrivateKeyshare_request_id protoreflect.FieldDescriptor - fd_GetPrivateKeyshare_identity protoreflect.FieldDescriptor - fd_GetPrivateKeyshare_requester protoreflect.FieldDescriptor - fd_GetPrivateKeyshare_secp_pubkey protoreflect.FieldDescriptor + md_GetPrivateDecryptionKey protoreflect.MessageDescriptor + fd_GetPrivateDecryptionKey_request_id protoreflect.FieldDescriptor + fd_GetPrivateDecryptionKey_identity protoreflect.FieldDescriptor + fd_GetPrivateDecryptionKey_requester protoreflect.FieldDescriptor + fd_GetPrivateDecryptionKey_secp_pubkey protoreflect.FieldDescriptor ) func init() { file_fairyring_common_shared_types_proto_init() - md_GetPrivateKeyshare = File_fairyring_common_shared_types_proto.Messages().ByName("GetPrivateKeyshare") - fd_GetPrivateKeyshare_request_id = md_GetPrivateKeyshare.Fields().ByName("request_id") - fd_GetPrivateKeyshare_identity = md_GetPrivateKeyshare.Fields().ByName("identity") - fd_GetPrivateKeyshare_requester = md_GetPrivateKeyshare.Fields().ByName("requester") - fd_GetPrivateKeyshare_secp_pubkey = md_GetPrivateKeyshare.Fields().ByName("secp_pubkey") + md_GetPrivateDecryptionKey = File_fairyring_common_shared_types_proto.Messages().ByName("GetPrivateDecryptionKey") + fd_GetPrivateDecryptionKey_request_id = md_GetPrivateDecryptionKey.Fields().ByName("request_id") + fd_GetPrivateDecryptionKey_identity = md_GetPrivateDecryptionKey.Fields().ByName("identity") + fd_GetPrivateDecryptionKey_requester = md_GetPrivateDecryptionKey.Fields().ByName("requester") + fd_GetPrivateDecryptionKey_secp_pubkey = md_GetPrivateDecryptionKey.Fields().ByName("secp_pubkey") } -var _ protoreflect.Message = (*fastReflection_GetPrivateKeyshare)(nil) +var _ protoreflect.Message = (*fastReflection_GetPrivateDecryptionKey)(nil) -type fastReflection_GetPrivateKeyshare GetPrivateKeyshare +type fastReflection_GetPrivateDecryptionKey GetPrivateDecryptionKey -func (x *GetPrivateKeyshare) ProtoReflect() protoreflect.Message { - return (*fastReflection_GetPrivateKeyshare)(x) +func (x *GetPrivateDecryptionKey) ProtoReflect() protoreflect.Message { + return (*fastReflection_GetPrivateDecryptionKey)(x) } -func (x *GetPrivateKeyshare) slowProtoReflect() protoreflect.Message { +func (x *GetPrivateDecryptionKey) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_common_shared_types_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2154,43 +2154,43 @@ func (x *GetPrivateKeyshare) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_GetPrivateKeyshare_messageType fastReflection_GetPrivateKeyshare_messageType -var _ protoreflect.MessageType = fastReflection_GetPrivateKeyshare_messageType{} +var _fastReflection_GetPrivateDecryptionKey_messageType fastReflection_GetPrivateDecryptionKey_messageType +var _ protoreflect.MessageType = fastReflection_GetPrivateDecryptionKey_messageType{} -type fastReflection_GetPrivateKeyshare_messageType struct{} +type fastReflection_GetPrivateDecryptionKey_messageType struct{} -func (x fastReflection_GetPrivateKeyshare_messageType) Zero() protoreflect.Message { - return (*fastReflection_GetPrivateKeyshare)(nil) +func (x fastReflection_GetPrivateDecryptionKey_messageType) Zero() protoreflect.Message { + return (*fastReflection_GetPrivateDecryptionKey)(nil) } -func (x fastReflection_GetPrivateKeyshare_messageType) New() protoreflect.Message { - return new(fastReflection_GetPrivateKeyshare) +func (x fastReflection_GetPrivateDecryptionKey_messageType) New() protoreflect.Message { + return new(fastReflection_GetPrivateDecryptionKey) } -func (x fastReflection_GetPrivateKeyshare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GetPrivateKeyshare +func (x fastReflection_GetPrivateDecryptionKey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GetPrivateDecryptionKey } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_GetPrivateKeyshare) Descriptor() protoreflect.MessageDescriptor { - return md_GetPrivateKeyshare +func (x *fastReflection_GetPrivateDecryptionKey) Descriptor() protoreflect.MessageDescriptor { + return md_GetPrivateDecryptionKey } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_GetPrivateKeyshare) Type() protoreflect.MessageType { - return _fastReflection_GetPrivateKeyshare_messageType +func (x *fastReflection_GetPrivateDecryptionKey) Type() protoreflect.MessageType { + return _fastReflection_GetPrivateDecryptionKey_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_GetPrivateKeyshare) New() protoreflect.Message { - return new(fastReflection_GetPrivateKeyshare) +func (x *fastReflection_GetPrivateDecryptionKey) New() protoreflect.Message { + return new(fastReflection_GetPrivateDecryptionKey) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_GetPrivateKeyshare) Interface() protoreflect.ProtoMessage { - return (*GetPrivateKeyshare)(x) +func (x *fastReflection_GetPrivateDecryptionKey) Interface() protoreflect.ProtoMessage { + return (*GetPrivateDecryptionKey)(x) } // Range iterates over every populated field in an undefined order, @@ -2198,28 +2198,28 @@ func (x *fastReflection_GetPrivateKeyshare) Interface() protoreflect.ProtoMessag // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_GetPrivateKeyshare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_GetPrivateDecryptionKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.RequestId != "" { value := protoreflect.ValueOfString(x.RequestId) - if !f(fd_GetPrivateKeyshare_request_id, value) { + if !f(fd_GetPrivateDecryptionKey_request_id, value) { return } } if x.Identity != "" { value := protoreflect.ValueOfString(x.Identity) - if !f(fd_GetPrivateKeyshare_identity, value) { + if !f(fd_GetPrivateDecryptionKey_identity, value) { return } } if x.Requester != "" { value := protoreflect.ValueOfString(x.Requester) - if !f(fd_GetPrivateKeyshare_requester, value) { + if !f(fd_GetPrivateDecryptionKey_requester, value) { return } } if x.SecpPubkey != "" { value := protoreflect.ValueOfString(x.SecpPubkey) - if !f(fd_GetPrivateKeyshare_secp_pubkey, value) { + if !f(fd_GetPrivateDecryptionKey_secp_pubkey, value) { return } } @@ -2236,21 +2236,21 @@ func (x *fastReflection_GetPrivateKeyshare) Range(f func(protoreflect.FieldDescr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_GetPrivateKeyshare) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_GetPrivateDecryptionKey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.common.GetPrivateKeyshare.request_id": + case "fairyring.common.GetPrivateDecryptionKey.request_id": return x.RequestId != "" - case "fairyring.common.GetPrivateKeyshare.identity": + case "fairyring.common.GetPrivateDecryptionKey.identity": return x.Identity != "" - case "fairyring.common.GetPrivateKeyshare.requester": + case "fairyring.common.GetPrivateDecryptionKey.requester": return x.Requester != "" - case "fairyring.common.GetPrivateKeyshare.secp_pubkey": + case "fairyring.common.GetPrivateDecryptionKey.secp_pubkey": return x.SecpPubkey != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.GetPrivateKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetPrivateDecryptionKey does not contain field %s", fd.FullName())) } } @@ -2260,21 +2260,21 @@ func (x *fastReflection_GetPrivateKeyshare) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetPrivateKeyshare) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_GetPrivateDecryptionKey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.common.GetPrivateKeyshare.request_id": + case "fairyring.common.GetPrivateDecryptionKey.request_id": x.RequestId = "" - case "fairyring.common.GetPrivateKeyshare.identity": + case "fairyring.common.GetPrivateDecryptionKey.identity": x.Identity = "" - case "fairyring.common.GetPrivateKeyshare.requester": + case "fairyring.common.GetPrivateDecryptionKey.requester": x.Requester = "" - case "fairyring.common.GetPrivateKeyshare.secp_pubkey": + case "fairyring.common.GetPrivateDecryptionKey.secp_pubkey": x.SecpPubkey = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.GetPrivateKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetPrivateDecryptionKey does not contain field %s", fd.FullName())) } } @@ -2284,25 +2284,25 @@ func (x *fastReflection_GetPrivateKeyshare) Clear(fd protoreflect.FieldDescripto // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GetPrivateKeyshare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetPrivateDecryptionKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.common.GetPrivateKeyshare.request_id": + case "fairyring.common.GetPrivateDecryptionKey.request_id": value := x.RequestId return protoreflect.ValueOfString(value) - case "fairyring.common.GetPrivateKeyshare.identity": + case "fairyring.common.GetPrivateDecryptionKey.identity": value := x.Identity return protoreflect.ValueOfString(value) - case "fairyring.common.GetPrivateKeyshare.requester": + case "fairyring.common.GetPrivateDecryptionKey.requester": value := x.Requester return protoreflect.ValueOfString(value) - case "fairyring.common.GetPrivateKeyshare.secp_pubkey": + case "fairyring.common.GetPrivateDecryptionKey.secp_pubkey": value := x.SecpPubkey return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.GetPrivateKeyshare does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.common.GetPrivateDecryptionKey does not contain field %s", descriptor.FullName())) } } @@ -2316,21 +2316,21 @@ func (x *fastReflection_GetPrivateKeyshare) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetPrivateKeyshare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_GetPrivateDecryptionKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.common.GetPrivateKeyshare.request_id": + case "fairyring.common.GetPrivateDecryptionKey.request_id": x.RequestId = value.Interface().(string) - case "fairyring.common.GetPrivateKeyshare.identity": + case "fairyring.common.GetPrivateDecryptionKey.identity": x.Identity = value.Interface().(string) - case "fairyring.common.GetPrivateKeyshare.requester": + case "fairyring.common.GetPrivateDecryptionKey.requester": x.Requester = value.Interface().(string) - case "fairyring.common.GetPrivateKeyshare.secp_pubkey": + case "fairyring.common.GetPrivateDecryptionKey.secp_pubkey": x.SecpPubkey = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.GetPrivateKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetPrivateDecryptionKey does not contain field %s", fd.FullName())) } } @@ -2344,52 +2344,52 @@ func (x *fastReflection_GetPrivateKeyshare) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetPrivateKeyshare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetPrivateDecryptionKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.GetPrivateKeyshare.request_id": - panic(fmt.Errorf("field request_id of message fairyring.common.GetPrivateKeyshare is not mutable")) - case "fairyring.common.GetPrivateKeyshare.identity": - panic(fmt.Errorf("field identity of message fairyring.common.GetPrivateKeyshare is not mutable")) - case "fairyring.common.GetPrivateKeyshare.requester": - panic(fmt.Errorf("field requester of message fairyring.common.GetPrivateKeyshare is not mutable")) - case "fairyring.common.GetPrivateKeyshare.secp_pubkey": - panic(fmt.Errorf("field secp_pubkey of message fairyring.common.GetPrivateKeyshare is not mutable")) + case "fairyring.common.GetPrivateDecryptionKey.request_id": + panic(fmt.Errorf("field request_id of message fairyring.common.GetPrivateDecryptionKey is not mutable")) + case "fairyring.common.GetPrivateDecryptionKey.identity": + panic(fmt.Errorf("field identity of message fairyring.common.GetPrivateDecryptionKey is not mutable")) + case "fairyring.common.GetPrivateDecryptionKey.requester": + panic(fmt.Errorf("field requester of message fairyring.common.GetPrivateDecryptionKey is not mutable")) + case "fairyring.common.GetPrivateDecryptionKey.secp_pubkey": + panic(fmt.Errorf("field secp_pubkey of message fairyring.common.GetPrivateDecryptionKey is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.GetPrivateKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetPrivateDecryptionKey does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GetPrivateKeyshare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetPrivateDecryptionKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.GetPrivateKeyshare.request_id": + case "fairyring.common.GetPrivateDecryptionKey.request_id": return protoreflect.ValueOfString("") - case "fairyring.common.GetPrivateKeyshare.identity": + case "fairyring.common.GetPrivateDecryptionKey.identity": return protoreflect.ValueOfString("") - case "fairyring.common.GetPrivateKeyshare.requester": + case "fairyring.common.GetPrivateDecryptionKey.requester": return protoreflect.ValueOfString("") - case "fairyring.common.GetPrivateKeyshare.secp_pubkey": + case "fairyring.common.GetPrivateDecryptionKey.secp_pubkey": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.GetPrivateKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetPrivateDecryptionKey does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GetPrivateKeyshare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_GetPrivateDecryptionKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.common.GetPrivateKeyshare", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.common.GetPrivateDecryptionKey", d.FullName())) } panic("unreachable") } @@ -2397,7 +2397,7 @@ func (x *fastReflection_GetPrivateKeyshare) WhichOneof(d protoreflect.OneofDescr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GetPrivateKeyshare) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_GetPrivateDecryptionKey) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2408,7 +2408,7 @@ func (x *fastReflection_GetPrivateKeyshare) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetPrivateKeyshare) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_GetPrivateDecryptionKey) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2420,7 +2420,7 @@ func (x *fastReflection_GetPrivateKeyshare) SetUnknown(fields protoreflect.RawFi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_GetPrivateKeyshare) IsValid() bool { +func (x *fastReflection_GetPrivateDecryptionKey) IsValid() bool { return x != nil } @@ -2430,9 +2430,9 @@ func (x *fastReflection_GetPrivateKeyshare) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_GetPrivateKeyshare) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_GetPrivateDecryptionKey) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GetPrivateKeyshare) + x := input.Message.Interface().(*GetPrivateDecryptionKey) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2470,7 +2470,7 @@ func (x *fastReflection_GetPrivateKeyshare) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GetPrivateKeyshare) + x := input.Message.Interface().(*GetPrivateDecryptionKey) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2528,7 +2528,7 @@ func (x *fastReflection_GetPrivateKeyshare) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GetPrivateKeyshare) + x := input.Message.Interface().(*GetPrivateDecryptionKey) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2560,10 +2560,10 @@ func (x *fastReflection_GetPrivateKeyshare) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPrivateKeyshare: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPrivateDecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPrivateKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPrivateDecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2730,25 +2730,25 @@ func (x *fastReflection_GetPrivateKeyshare) ProtoMethods() *protoiface.Methods { } var ( - md_GetPrivateKeyshareResponse protoreflect.MessageDescriptor - fd_GetPrivateKeyshareResponse_pubkey protoreflect.FieldDescriptor + md_GetPrivateDecryptionKeyResponse protoreflect.MessageDescriptor + fd_GetPrivateDecryptionKeyResponse_pubkey protoreflect.FieldDescriptor ) func init() { file_fairyring_common_shared_types_proto_init() - md_GetPrivateKeyshareResponse = File_fairyring_common_shared_types_proto.Messages().ByName("GetPrivateKeyshareResponse") - fd_GetPrivateKeyshareResponse_pubkey = md_GetPrivateKeyshareResponse.Fields().ByName("pubkey") + md_GetPrivateDecryptionKeyResponse = File_fairyring_common_shared_types_proto.Messages().ByName("GetPrivateDecryptionKeyResponse") + fd_GetPrivateDecryptionKeyResponse_pubkey = md_GetPrivateDecryptionKeyResponse.Fields().ByName("pubkey") } -var _ protoreflect.Message = (*fastReflection_GetPrivateKeyshareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_GetPrivateDecryptionKeyResponse)(nil) -type fastReflection_GetPrivateKeyshareResponse GetPrivateKeyshareResponse +type fastReflection_GetPrivateDecryptionKeyResponse GetPrivateDecryptionKeyResponse -func (x *GetPrivateKeyshareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_GetPrivateKeyshareResponse)(x) +func (x *GetPrivateDecryptionKeyResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_GetPrivateDecryptionKeyResponse)(x) } -func (x *GetPrivateKeyshareResponse) slowProtoReflect() protoreflect.Message { +func (x *GetPrivateDecryptionKeyResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_common_shared_types_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2760,43 +2760,43 @@ func (x *GetPrivateKeyshareResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_GetPrivateKeyshareResponse_messageType fastReflection_GetPrivateKeyshareResponse_messageType -var _ protoreflect.MessageType = fastReflection_GetPrivateKeyshareResponse_messageType{} +var _fastReflection_GetPrivateDecryptionKeyResponse_messageType fastReflection_GetPrivateDecryptionKeyResponse_messageType +var _ protoreflect.MessageType = fastReflection_GetPrivateDecryptionKeyResponse_messageType{} -type fastReflection_GetPrivateKeyshareResponse_messageType struct{} +type fastReflection_GetPrivateDecryptionKeyResponse_messageType struct{} -func (x fastReflection_GetPrivateKeyshareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_GetPrivateKeyshareResponse)(nil) +func (x fastReflection_GetPrivateDecryptionKeyResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_GetPrivateDecryptionKeyResponse)(nil) } -func (x fastReflection_GetPrivateKeyshareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_GetPrivateKeyshareResponse) +func (x fastReflection_GetPrivateDecryptionKeyResponse_messageType) New() protoreflect.Message { + return new(fastReflection_GetPrivateDecryptionKeyResponse) } -func (x fastReflection_GetPrivateKeyshareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GetPrivateKeyshareResponse +func (x fastReflection_GetPrivateDecryptionKeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GetPrivateDecryptionKeyResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_GetPrivateKeyshareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_GetPrivateKeyshareResponse +func (x *fastReflection_GetPrivateDecryptionKeyResponse) Descriptor() protoreflect.MessageDescriptor { + return md_GetPrivateDecryptionKeyResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_GetPrivateKeyshareResponse) Type() protoreflect.MessageType { - return _fastReflection_GetPrivateKeyshareResponse_messageType +func (x *fastReflection_GetPrivateDecryptionKeyResponse) Type() protoreflect.MessageType { + return _fastReflection_GetPrivateDecryptionKeyResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_GetPrivateKeyshareResponse) New() protoreflect.Message { - return new(fastReflection_GetPrivateKeyshareResponse) +func (x *fastReflection_GetPrivateDecryptionKeyResponse) New() protoreflect.Message { + return new(fastReflection_GetPrivateDecryptionKeyResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_GetPrivateKeyshareResponse) Interface() protoreflect.ProtoMessage { - return (*GetPrivateKeyshareResponse)(x) +func (x *fastReflection_GetPrivateDecryptionKeyResponse) Interface() protoreflect.ProtoMessage { + return (*GetPrivateDecryptionKeyResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -2804,10 +2804,10 @@ func (x *fastReflection_GetPrivateKeyshareResponse) Interface() protoreflect.Pro // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_GetPrivateKeyshareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_GetPrivateDecryptionKeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Pubkey != "" { value := protoreflect.ValueOfString(x.Pubkey) - if !f(fd_GetPrivateKeyshareResponse_pubkey, value) { + if !f(fd_GetPrivateDecryptionKeyResponse_pubkey, value) { return } } @@ -2824,15 +2824,15 @@ func (x *fastReflection_GetPrivateKeyshareResponse) Range(f func(protoreflect.Fi // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_GetPrivateKeyshareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_GetPrivateDecryptionKeyResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.common.GetPrivateKeyshareResponse.pubkey": + case "fairyring.common.GetPrivateDecryptionKeyResponse.pubkey": return x.Pubkey != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.common.GetPrivateKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetPrivateDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -2842,15 +2842,15 @@ func (x *fastReflection_GetPrivateKeyshareResponse) Has(fd protoreflect.FieldDes // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetPrivateKeyshareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_GetPrivateDecryptionKeyResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.common.GetPrivateKeyshareResponse.pubkey": + case "fairyring.common.GetPrivateDecryptionKeyResponse.pubkey": x.Pubkey = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.common.GetPrivateKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetPrivateDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -2860,16 +2860,16 @@ func (x *fastReflection_GetPrivateKeyshareResponse) Clear(fd protoreflect.FieldD // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GetPrivateKeyshareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetPrivateDecryptionKeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.common.GetPrivateKeyshareResponse.pubkey": + case "fairyring.common.GetPrivateDecryptionKeyResponse.pubkey": value := x.Pubkey return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.common.GetPrivateKeyshareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.common.GetPrivateDecryptionKeyResponse does not contain field %s", descriptor.FullName())) } } @@ -2883,15 +2883,15 @@ func (x *fastReflection_GetPrivateKeyshareResponse) Get(descriptor protoreflect. // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetPrivateKeyshareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_GetPrivateDecryptionKeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.common.GetPrivateKeyshareResponse.pubkey": + case "fairyring.common.GetPrivateDecryptionKeyResponse.pubkey": x.Pubkey = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.common.GetPrivateKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetPrivateDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -2905,40 +2905,40 @@ func (x *fastReflection_GetPrivateKeyshareResponse) Set(fd protoreflect.FieldDes // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetPrivateKeyshareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetPrivateDecryptionKeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.GetPrivateKeyshareResponse.pubkey": - panic(fmt.Errorf("field pubkey of message fairyring.common.GetPrivateKeyshareResponse is not mutable")) + case "fairyring.common.GetPrivateDecryptionKeyResponse.pubkey": + panic(fmt.Errorf("field pubkey of message fairyring.common.GetPrivateDecryptionKeyResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.common.GetPrivateKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetPrivateDecryptionKeyResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GetPrivateKeyshareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetPrivateDecryptionKeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.GetPrivateKeyshareResponse.pubkey": + case "fairyring.common.GetPrivateDecryptionKeyResponse.pubkey": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.GetPrivateDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.common.GetPrivateKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.GetPrivateDecryptionKeyResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GetPrivateKeyshareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_GetPrivateDecryptionKeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.common.GetPrivateKeyshareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.common.GetPrivateDecryptionKeyResponse", d.FullName())) } panic("unreachable") } @@ -2946,7 +2946,7 @@ func (x *fastReflection_GetPrivateKeyshareResponse) WhichOneof(d protoreflect.On // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GetPrivateKeyshareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_GetPrivateDecryptionKeyResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2957,7 +2957,7 @@ func (x *fastReflection_GetPrivateKeyshareResponse) GetUnknown() protoreflect.Ra // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetPrivateKeyshareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_GetPrivateDecryptionKeyResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2969,7 +2969,7 @@ func (x *fastReflection_GetPrivateKeyshareResponse) SetUnknown(fields protorefle // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_GetPrivateKeyshareResponse) IsValid() bool { +func (x *fastReflection_GetPrivateDecryptionKeyResponse) IsValid() bool { return x != nil } @@ -2979,9 +2979,9 @@ func (x *fastReflection_GetPrivateKeyshareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_GetPrivateKeyshareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_GetPrivateDecryptionKeyResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GetPrivateKeyshareResponse) + x := input.Message.Interface().(*GetPrivateDecryptionKeyResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3007,7 +3007,7 @@ func (x *fastReflection_GetPrivateKeyshareResponse) ProtoMethods() *protoiface.M } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GetPrivateKeyshareResponse) + x := input.Message.Interface().(*GetPrivateDecryptionKeyResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3044,7 +3044,7 @@ func (x *fastReflection_GetPrivateKeyshareResponse) ProtoMethods() *protoiface.M }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GetPrivateKeyshareResponse) + x := input.Message.Interface().(*GetPrivateDecryptionKeyResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3076,10 +3076,10 @@ func (x *fastReflection_GetPrivateKeyshareResponse) ProtoMethods() *protoiface.M fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPrivateKeyshareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPrivateDecryptionKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPrivateKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPrivateDecryptionKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4214,27 +4214,27 @@ func (x *fastReflection_QueuedPublicKey) ProtoMethods() *protoiface.Methods { } var ( - md_RequestEncryptedKeyshare protoreflect.MessageDescriptor - fd_RequestEncryptedKeyshare_creator protoreflect.FieldDescriptor - fd_RequestEncryptedKeyshare_request_id protoreflect.FieldDescriptor + md_RequestPrivateDecryptionKey protoreflect.MessageDescriptor + fd_RequestPrivateDecryptionKey_creator protoreflect.FieldDescriptor + fd_RequestPrivateDecryptionKey_request_id protoreflect.FieldDescriptor ) func init() { file_fairyring_common_shared_types_proto_init() - md_RequestEncryptedKeyshare = File_fairyring_common_shared_types_proto.Messages().ByName("RequestEncryptedKeyshare") - fd_RequestEncryptedKeyshare_creator = md_RequestEncryptedKeyshare.Fields().ByName("creator") - fd_RequestEncryptedKeyshare_request_id = md_RequestEncryptedKeyshare.Fields().ByName("request_id") + md_RequestPrivateDecryptionKey = File_fairyring_common_shared_types_proto.Messages().ByName("RequestPrivateDecryptionKey") + fd_RequestPrivateDecryptionKey_creator = md_RequestPrivateDecryptionKey.Fields().ByName("creator") + fd_RequestPrivateDecryptionKey_request_id = md_RequestPrivateDecryptionKey.Fields().ByName("request_id") } -var _ protoreflect.Message = (*fastReflection_RequestEncryptedKeyshare)(nil) +var _ protoreflect.Message = (*fastReflection_RequestPrivateDecryptionKey)(nil) -type fastReflection_RequestEncryptedKeyshare RequestEncryptedKeyshare +type fastReflection_RequestPrivateDecryptionKey RequestPrivateDecryptionKey -func (x *RequestEncryptedKeyshare) ProtoReflect() protoreflect.Message { - return (*fastReflection_RequestEncryptedKeyshare)(x) +func (x *RequestPrivateDecryptionKey) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestPrivateDecryptionKey)(x) } -func (x *RequestEncryptedKeyshare) slowProtoReflect() protoreflect.Message { +func (x *RequestPrivateDecryptionKey) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_common_shared_types_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4246,43 +4246,43 @@ func (x *RequestEncryptedKeyshare) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_RequestEncryptedKeyshare_messageType fastReflection_RequestEncryptedKeyshare_messageType -var _ protoreflect.MessageType = fastReflection_RequestEncryptedKeyshare_messageType{} +var _fastReflection_RequestPrivateDecryptionKey_messageType fastReflection_RequestPrivateDecryptionKey_messageType +var _ protoreflect.MessageType = fastReflection_RequestPrivateDecryptionKey_messageType{} -type fastReflection_RequestEncryptedKeyshare_messageType struct{} +type fastReflection_RequestPrivateDecryptionKey_messageType struct{} -func (x fastReflection_RequestEncryptedKeyshare_messageType) Zero() protoreflect.Message { - return (*fastReflection_RequestEncryptedKeyshare)(nil) +func (x fastReflection_RequestPrivateDecryptionKey_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestPrivateDecryptionKey)(nil) } -func (x fastReflection_RequestEncryptedKeyshare_messageType) New() protoreflect.Message { - return new(fastReflection_RequestEncryptedKeyshare) +func (x fastReflection_RequestPrivateDecryptionKey_messageType) New() protoreflect.Message { + return new(fastReflection_RequestPrivateDecryptionKey) } -func (x fastReflection_RequestEncryptedKeyshare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_RequestEncryptedKeyshare +func (x fastReflection_RequestPrivateDecryptionKey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestPrivateDecryptionKey } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_RequestEncryptedKeyshare) Descriptor() protoreflect.MessageDescriptor { - return md_RequestEncryptedKeyshare +func (x *fastReflection_RequestPrivateDecryptionKey) Descriptor() protoreflect.MessageDescriptor { + return md_RequestPrivateDecryptionKey } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_RequestEncryptedKeyshare) Type() protoreflect.MessageType { - return _fastReflection_RequestEncryptedKeyshare_messageType +func (x *fastReflection_RequestPrivateDecryptionKey) Type() protoreflect.MessageType { + return _fastReflection_RequestPrivateDecryptionKey_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_RequestEncryptedKeyshare) New() protoreflect.Message { - return new(fastReflection_RequestEncryptedKeyshare) +func (x *fastReflection_RequestPrivateDecryptionKey) New() protoreflect.Message { + return new(fastReflection_RequestPrivateDecryptionKey) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_RequestEncryptedKeyshare) Interface() protoreflect.ProtoMessage { - return (*RequestEncryptedKeyshare)(x) +func (x *fastReflection_RequestPrivateDecryptionKey) Interface() protoreflect.ProtoMessage { + return (*RequestPrivateDecryptionKey)(x) } // Range iterates over every populated field in an undefined order, @@ -4290,16 +4290,16 @@ func (x *fastReflection_RequestEncryptedKeyshare) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_RequestEncryptedKeyshare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestPrivateDecryptionKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_RequestEncryptedKeyshare_creator, value) { + if !f(fd_RequestPrivateDecryptionKey_creator, value) { return } } if x.RequestId != "" { value := protoreflect.ValueOfString(x.RequestId) - if !f(fd_RequestEncryptedKeyshare_request_id, value) { + if !f(fd_RequestPrivateDecryptionKey_request_id, value) { return } } @@ -4316,17 +4316,17 @@ func (x *fastReflection_RequestEncryptedKeyshare) Range(f func(protoreflect.Fiel // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_RequestEncryptedKeyshare) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestPrivateDecryptionKey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.common.RequestEncryptedKeyshare.creator": + case "fairyring.common.RequestPrivateDecryptionKey.creator": return x.Creator != "" - case "fairyring.common.RequestEncryptedKeyshare.request_id": + case "fairyring.common.RequestPrivateDecryptionKey.request_id": return x.RequestId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestEncryptedKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestPrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.RequestEncryptedKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestPrivateDecryptionKey does not contain field %s", fd.FullName())) } } @@ -4336,17 +4336,17 @@ func (x *fastReflection_RequestEncryptedKeyshare) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestEncryptedKeyshare) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestPrivateDecryptionKey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.common.RequestEncryptedKeyshare.creator": + case "fairyring.common.RequestPrivateDecryptionKey.creator": x.Creator = "" - case "fairyring.common.RequestEncryptedKeyshare.request_id": + case "fairyring.common.RequestPrivateDecryptionKey.request_id": x.RequestId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestEncryptedKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestPrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.RequestEncryptedKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestPrivateDecryptionKey does not contain field %s", fd.FullName())) } } @@ -4356,19 +4356,19 @@ func (x *fastReflection_RequestEncryptedKeyshare) Clear(fd protoreflect.FieldDes // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_RequestEncryptedKeyshare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestPrivateDecryptionKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.common.RequestEncryptedKeyshare.creator": + case "fairyring.common.RequestPrivateDecryptionKey.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.common.RequestEncryptedKeyshare.request_id": + case "fairyring.common.RequestPrivateDecryptionKey.request_id": value := x.RequestId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestEncryptedKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestPrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.RequestEncryptedKeyshare does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestPrivateDecryptionKey does not contain field %s", descriptor.FullName())) } } @@ -4382,17 +4382,17 @@ func (x *fastReflection_RequestEncryptedKeyshare) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestEncryptedKeyshare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestPrivateDecryptionKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.common.RequestEncryptedKeyshare.creator": + case "fairyring.common.RequestPrivateDecryptionKey.creator": x.Creator = value.Interface().(string) - case "fairyring.common.RequestEncryptedKeyshare.request_id": + case "fairyring.common.RequestPrivateDecryptionKey.request_id": x.RequestId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestEncryptedKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestPrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.RequestEncryptedKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestPrivateDecryptionKey does not contain field %s", fd.FullName())) } } @@ -4406,44 +4406,44 @@ func (x *fastReflection_RequestEncryptedKeyshare) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestEncryptedKeyshare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestPrivateDecryptionKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.RequestEncryptedKeyshare.creator": - panic(fmt.Errorf("field creator of message fairyring.common.RequestEncryptedKeyshare is not mutable")) - case "fairyring.common.RequestEncryptedKeyshare.request_id": - panic(fmt.Errorf("field request_id of message fairyring.common.RequestEncryptedKeyshare is not mutable")) + case "fairyring.common.RequestPrivateDecryptionKey.creator": + panic(fmt.Errorf("field creator of message fairyring.common.RequestPrivateDecryptionKey is not mutable")) + case "fairyring.common.RequestPrivateDecryptionKey.request_id": + panic(fmt.Errorf("field request_id of message fairyring.common.RequestPrivateDecryptionKey is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestEncryptedKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestPrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.RequestEncryptedKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestPrivateDecryptionKey does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_RequestEncryptedKeyshare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestPrivateDecryptionKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.RequestEncryptedKeyshare.creator": + case "fairyring.common.RequestPrivateDecryptionKey.creator": return protoreflect.ValueOfString("") - case "fairyring.common.RequestEncryptedKeyshare.request_id": + case "fairyring.common.RequestPrivateDecryptionKey.request_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestEncryptedKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.RequestPrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.RequestEncryptedKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.RequestPrivateDecryptionKey does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_RequestEncryptedKeyshare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestPrivateDecryptionKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.common.RequestEncryptedKeyshare", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.common.RequestPrivateDecryptionKey", d.FullName())) } panic("unreachable") } @@ -4451,7 +4451,7 @@ func (x *fastReflection_RequestEncryptedKeyshare) WhichOneof(d protoreflect.Oneo // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_RequestEncryptedKeyshare) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestPrivateDecryptionKey) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4462,7 +4462,7 @@ func (x *fastReflection_RequestEncryptedKeyshare) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestEncryptedKeyshare) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestPrivateDecryptionKey) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4474,7 +4474,7 @@ func (x *fastReflection_RequestEncryptedKeyshare) SetUnknown(fields protoreflect // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_RequestEncryptedKeyshare) IsValid() bool { +func (x *fastReflection_RequestPrivateDecryptionKey) IsValid() bool { return x != nil } @@ -4484,9 +4484,9 @@ func (x *fastReflection_RequestEncryptedKeyshare) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_RequestEncryptedKeyshare) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestPrivateDecryptionKey) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*RequestEncryptedKeyshare) + x := input.Message.Interface().(*RequestPrivateDecryptionKey) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4516,7 +4516,7 @@ func (x *fastReflection_RequestEncryptedKeyshare) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*RequestEncryptedKeyshare) + x := input.Message.Interface().(*RequestPrivateDecryptionKey) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4560,7 +4560,7 @@ func (x *fastReflection_RequestEncryptedKeyshare) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*RequestEncryptedKeyshare) + x := input.Message.Interface().(*RequestPrivateDecryptionKey) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4592,10 +4592,10 @@ func (x *fastReflection_RequestEncryptedKeyshare) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestEncryptedKeyshare: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestPrivateDecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestEncryptedKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestPrivateDecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4697,79 +4697,79 @@ func (x *fastReflection_RequestEncryptedKeyshare) ProtoMethods() *protoiface.Met } } -var _ protoreflect.List = (*_EncryptedKeyshare_2_list)(nil) +var _ protoreflect.List = (*_PrivateDecryptionKey_2_list)(nil) -type _EncryptedKeyshare_2_list struct { +type _PrivateDecryptionKey_2_list struct { list *[]*IndexedEncryptedKeyshare } -func (x *_EncryptedKeyshare_2_list) Len() int { +func (x *_PrivateDecryptionKey_2_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_EncryptedKeyshare_2_list) Get(i int) protoreflect.Value { +func (x *_PrivateDecryptionKey_2_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_EncryptedKeyshare_2_list) Set(i int, value protoreflect.Value) { +func (x *_PrivateDecryptionKey_2_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*IndexedEncryptedKeyshare) (*x.list)[i] = concreteValue } -func (x *_EncryptedKeyshare_2_list) Append(value protoreflect.Value) { +func (x *_PrivateDecryptionKey_2_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*IndexedEncryptedKeyshare) *x.list = append(*x.list, concreteValue) } -func (x *_EncryptedKeyshare_2_list) AppendMutable() protoreflect.Value { +func (x *_PrivateDecryptionKey_2_list) AppendMutable() protoreflect.Value { v := new(IndexedEncryptedKeyshare) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_EncryptedKeyshare_2_list) Truncate(n int) { +func (x *_PrivateDecryptionKey_2_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_EncryptedKeyshare_2_list) NewElement() protoreflect.Value { +func (x *_PrivateDecryptionKey_2_list) NewElement() protoreflect.Value { v := new(IndexedEncryptedKeyshare) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_EncryptedKeyshare_2_list) IsValid() bool { +func (x *_PrivateDecryptionKey_2_list) IsValid() bool { return x.list != nil } var ( - md_EncryptedKeyshare protoreflect.MessageDescriptor - fd_EncryptedKeyshare_requester protoreflect.FieldDescriptor - fd_EncryptedKeyshare_private_keyshares protoreflect.FieldDescriptor + md_PrivateDecryptionKey protoreflect.MessageDescriptor + fd_PrivateDecryptionKey_requester protoreflect.FieldDescriptor + fd_PrivateDecryptionKey_private_keyshares protoreflect.FieldDescriptor ) func init() { file_fairyring_common_shared_types_proto_init() - md_EncryptedKeyshare = File_fairyring_common_shared_types_proto.Messages().ByName("EncryptedKeyshare") - fd_EncryptedKeyshare_requester = md_EncryptedKeyshare.Fields().ByName("requester") - fd_EncryptedKeyshare_private_keyshares = md_EncryptedKeyshare.Fields().ByName("private_keyshares") + md_PrivateDecryptionKey = File_fairyring_common_shared_types_proto.Messages().ByName("PrivateDecryptionKey") + fd_PrivateDecryptionKey_requester = md_PrivateDecryptionKey.Fields().ByName("requester") + fd_PrivateDecryptionKey_private_keyshares = md_PrivateDecryptionKey.Fields().ByName("private_keyshares") } -var _ protoreflect.Message = (*fastReflection_EncryptedKeyshare)(nil) +var _ protoreflect.Message = (*fastReflection_PrivateDecryptionKey)(nil) -type fastReflection_EncryptedKeyshare EncryptedKeyshare +type fastReflection_PrivateDecryptionKey PrivateDecryptionKey -func (x *EncryptedKeyshare) ProtoReflect() protoreflect.Message { - return (*fastReflection_EncryptedKeyshare)(x) +func (x *PrivateDecryptionKey) ProtoReflect() protoreflect.Message { + return (*fastReflection_PrivateDecryptionKey)(x) } -func (x *EncryptedKeyshare) slowProtoReflect() protoreflect.Message { +func (x *PrivateDecryptionKey) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_common_shared_types_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4781,43 +4781,43 @@ func (x *EncryptedKeyshare) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_EncryptedKeyshare_messageType fastReflection_EncryptedKeyshare_messageType -var _ protoreflect.MessageType = fastReflection_EncryptedKeyshare_messageType{} +var _fastReflection_PrivateDecryptionKey_messageType fastReflection_PrivateDecryptionKey_messageType +var _ protoreflect.MessageType = fastReflection_PrivateDecryptionKey_messageType{} -type fastReflection_EncryptedKeyshare_messageType struct{} +type fastReflection_PrivateDecryptionKey_messageType struct{} -func (x fastReflection_EncryptedKeyshare_messageType) Zero() protoreflect.Message { - return (*fastReflection_EncryptedKeyshare)(nil) +func (x fastReflection_PrivateDecryptionKey_messageType) Zero() protoreflect.Message { + return (*fastReflection_PrivateDecryptionKey)(nil) } -func (x fastReflection_EncryptedKeyshare_messageType) New() protoreflect.Message { - return new(fastReflection_EncryptedKeyshare) +func (x fastReflection_PrivateDecryptionKey_messageType) New() protoreflect.Message { + return new(fastReflection_PrivateDecryptionKey) } -func (x fastReflection_EncryptedKeyshare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EncryptedKeyshare +func (x fastReflection_PrivateDecryptionKey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_PrivateDecryptionKey } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_EncryptedKeyshare) Descriptor() protoreflect.MessageDescriptor { - return md_EncryptedKeyshare +func (x *fastReflection_PrivateDecryptionKey) Descriptor() protoreflect.MessageDescriptor { + return md_PrivateDecryptionKey } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_EncryptedKeyshare) Type() protoreflect.MessageType { - return _fastReflection_EncryptedKeyshare_messageType +func (x *fastReflection_PrivateDecryptionKey) Type() protoreflect.MessageType { + return _fastReflection_PrivateDecryptionKey_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_EncryptedKeyshare) New() protoreflect.Message { - return new(fastReflection_EncryptedKeyshare) +func (x *fastReflection_PrivateDecryptionKey) New() protoreflect.Message { + return new(fastReflection_PrivateDecryptionKey) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_EncryptedKeyshare) Interface() protoreflect.ProtoMessage { - return (*EncryptedKeyshare)(x) +func (x *fastReflection_PrivateDecryptionKey) Interface() protoreflect.ProtoMessage { + return (*PrivateDecryptionKey)(x) } // Range iterates over every populated field in an undefined order, @@ -4825,16 +4825,16 @@ func (x *fastReflection_EncryptedKeyshare) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_EncryptedKeyshare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_PrivateDecryptionKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Requester != "" { value := protoreflect.ValueOfString(x.Requester) - if !f(fd_EncryptedKeyshare_requester, value) { + if !f(fd_PrivateDecryptionKey_requester, value) { return } } if len(x.PrivateKeyshares) != 0 { - value := protoreflect.ValueOfList(&_EncryptedKeyshare_2_list{list: &x.PrivateKeyshares}) - if !f(fd_EncryptedKeyshare_private_keyshares, value) { + value := protoreflect.ValueOfList(&_PrivateDecryptionKey_2_list{list: &x.PrivateKeyshares}) + if !f(fd_PrivateDecryptionKey_private_keyshares, value) { return } } @@ -4851,17 +4851,17 @@ func (x *fastReflection_EncryptedKeyshare) Range(f func(protoreflect.FieldDescri // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_EncryptedKeyshare) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_PrivateDecryptionKey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.common.EncryptedKeyshare.requester": + case "fairyring.common.PrivateDecryptionKey.requester": return x.Requester != "" - case "fairyring.common.EncryptedKeyshare.private_keyshares": + case "fairyring.common.PrivateDecryptionKey.private_keyshares": return len(x.PrivateKeyshares) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.EncryptedKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.PrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.EncryptedKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.PrivateDecryptionKey does not contain field %s", fd.FullName())) } } @@ -4871,17 +4871,17 @@ func (x *fastReflection_EncryptedKeyshare) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EncryptedKeyshare) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_PrivateDecryptionKey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.common.EncryptedKeyshare.requester": + case "fairyring.common.PrivateDecryptionKey.requester": x.Requester = "" - case "fairyring.common.EncryptedKeyshare.private_keyshares": + case "fairyring.common.PrivateDecryptionKey.private_keyshares": x.PrivateKeyshares = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.EncryptedKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.PrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.EncryptedKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.PrivateDecryptionKey does not contain field %s", fd.FullName())) } } @@ -4891,22 +4891,22 @@ func (x *fastReflection_EncryptedKeyshare) Clear(fd protoreflect.FieldDescriptor // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EncryptedKeyshare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PrivateDecryptionKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.common.EncryptedKeyshare.requester": + case "fairyring.common.PrivateDecryptionKey.requester": value := x.Requester return protoreflect.ValueOfString(value) - case "fairyring.common.EncryptedKeyshare.private_keyshares": + case "fairyring.common.PrivateDecryptionKey.private_keyshares": if len(x.PrivateKeyshares) == 0 { - return protoreflect.ValueOfList(&_EncryptedKeyshare_2_list{}) + return protoreflect.ValueOfList(&_PrivateDecryptionKey_2_list{}) } - listValue := &_EncryptedKeyshare_2_list{list: &x.PrivateKeyshares} + listValue := &_PrivateDecryptionKey_2_list{list: &x.PrivateKeyshares} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.EncryptedKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.PrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.EncryptedKeyshare does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.common.PrivateDecryptionKey does not contain field %s", descriptor.FullName())) } } @@ -4920,19 +4920,19 @@ func (x *fastReflection_EncryptedKeyshare) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EncryptedKeyshare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_PrivateDecryptionKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.common.EncryptedKeyshare.requester": + case "fairyring.common.PrivateDecryptionKey.requester": x.Requester = value.Interface().(string) - case "fairyring.common.EncryptedKeyshare.private_keyshares": + case "fairyring.common.PrivateDecryptionKey.private_keyshares": lv := value.List() - clv := lv.(*_EncryptedKeyshare_2_list) + clv := lv.(*_PrivateDecryptionKey_2_list) x.PrivateKeyshares = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.EncryptedKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.PrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.EncryptedKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.PrivateDecryptionKey does not contain field %s", fd.FullName())) } } @@ -4946,49 +4946,49 @@ func (x *fastReflection_EncryptedKeyshare) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EncryptedKeyshare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PrivateDecryptionKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.EncryptedKeyshare.private_keyshares": + case "fairyring.common.PrivateDecryptionKey.private_keyshares": if x.PrivateKeyshares == nil { x.PrivateKeyshares = []*IndexedEncryptedKeyshare{} } - value := &_EncryptedKeyshare_2_list{list: &x.PrivateKeyshares} + value := &_PrivateDecryptionKey_2_list{list: &x.PrivateKeyshares} return protoreflect.ValueOfList(value) - case "fairyring.common.EncryptedKeyshare.requester": - panic(fmt.Errorf("field requester of message fairyring.common.EncryptedKeyshare is not mutable")) + case "fairyring.common.PrivateDecryptionKey.requester": + panic(fmt.Errorf("field requester of message fairyring.common.PrivateDecryptionKey is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.EncryptedKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.PrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.EncryptedKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.PrivateDecryptionKey does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EncryptedKeyshare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PrivateDecryptionKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.common.EncryptedKeyshare.requester": + case "fairyring.common.PrivateDecryptionKey.requester": return protoreflect.ValueOfString("") - case "fairyring.common.EncryptedKeyshare.private_keyshares": + case "fairyring.common.PrivateDecryptionKey.private_keyshares": list := []*IndexedEncryptedKeyshare{} - return protoreflect.ValueOfList(&_EncryptedKeyshare_2_list{list: &list}) + return protoreflect.ValueOfList(&_PrivateDecryptionKey_2_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.EncryptedKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.common.PrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.common.EncryptedKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.common.PrivateDecryptionKey does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EncryptedKeyshare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_PrivateDecryptionKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.common.EncryptedKeyshare", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.common.PrivateDecryptionKey", d.FullName())) } panic("unreachable") } @@ -4996,7 +4996,7 @@ func (x *fastReflection_EncryptedKeyshare) WhichOneof(d protoreflect.OneofDescri // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EncryptedKeyshare) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_PrivateDecryptionKey) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5007,7 +5007,7 @@ func (x *fastReflection_EncryptedKeyshare) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EncryptedKeyshare) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_PrivateDecryptionKey) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5019,7 +5019,7 @@ func (x *fastReflection_EncryptedKeyshare) SetUnknown(fields protoreflect.RawFie // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_EncryptedKeyshare) IsValid() bool { +func (x *fastReflection_PrivateDecryptionKey) IsValid() bool { return x != nil } @@ -5029,9 +5029,9 @@ func (x *fastReflection_EncryptedKeyshare) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_EncryptedKeyshare) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_PrivateDecryptionKey) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EncryptedKeyshare) + x := input.Message.Interface().(*PrivateDecryptionKey) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5063,7 +5063,7 @@ func (x *fastReflection_EncryptedKeyshare) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EncryptedKeyshare) + x := input.Message.Interface().(*PrivateDecryptionKey) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5116,7 +5116,7 @@ func (x *fastReflection_EncryptedKeyshare) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EncryptedKeyshare) + x := input.Message.Interface().(*PrivateDecryptionKey) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5148,10 +5148,10 @@ func (x *fastReflection_EncryptedKeyshare) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EncryptedKeyshare: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PrivateDecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EncryptedKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PrivateDecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5736,25 +5736,25 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// RequestAggrKeyshare defines a struct for the data payload -type RequestAggrKeyshare struct { +// RequestDecryptionKey defines a struct for the data payload +type RequestDecryptionKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - // id can either be a rwquest id or a proposal id + // id can either be a request id or a proposal id // // Types that are assignable to Id: // - // *RequestAggrKeyshare_ProposalId - // *RequestAggrKeyshare_RequestId - Id isRequestAggrKeyshare_Id `protobuf_oneof:"id"` - EstimatedDelay *durationpb.Duration `protobuf:"bytes,4,opt,name=estimated_delay,json=estimatedDelay,proto3" json:"estimated_delay,omitempty"` + // *RequestDecryptionKey_ProposalId + // *RequestDecryptionKey_RequestId + Id isRequestDecryptionKey_Id `protobuf_oneof:"id"` + EstimatedDelay *durationpb.Duration `protobuf:"bytes,4,opt,name=estimated_delay,json=estimatedDelay,proto3" json:"estimated_delay,omitempty"` } -func (x *RequestAggrKeyshare) Reset() { - *x = RequestAggrKeyshare{} +func (x *RequestDecryptionKey) Reset() { + *x = RequestDecryptionKey{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_common_shared_types_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5762,70 +5762,70 @@ func (x *RequestAggrKeyshare) Reset() { } } -func (x *RequestAggrKeyshare) String() string { +func (x *RequestDecryptionKey) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RequestAggrKeyshare) ProtoMessage() {} +func (*RequestDecryptionKey) ProtoMessage() {} -// Deprecated: Use RequestAggrKeyshare.ProtoReflect.Descriptor instead. -func (*RequestAggrKeyshare) Descriptor() ([]byte, []int) { +// Deprecated: Use RequestDecryptionKey.ProtoReflect.Descriptor instead. +func (*RequestDecryptionKey) Descriptor() ([]byte, []int) { return file_fairyring_common_shared_types_proto_rawDescGZIP(), []int{0} } -func (x *RequestAggrKeyshare) GetCreator() string { +func (x *RequestDecryptionKey) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *RequestAggrKeyshare) GetId() isRequestAggrKeyshare_Id { +func (x *RequestDecryptionKey) GetId() isRequestDecryptionKey_Id { if x != nil { return x.Id } return nil } -func (x *RequestAggrKeyshare) GetProposalId() string { - if x, ok := x.GetId().(*RequestAggrKeyshare_ProposalId); ok { +func (x *RequestDecryptionKey) GetProposalId() string { + if x, ok := x.GetId().(*RequestDecryptionKey_ProposalId); ok { return x.ProposalId } return "" } -func (x *RequestAggrKeyshare) GetRequestId() string { - if x, ok := x.GetId().(*RequestAggrKeyshare_RequestId); ok { +func (x *RequestDecryptionKey) GetRequestId() string { + if x, ok := x.GetId().(*RequestDecryptionKey_RequestId); ok { return x.RequestId } return "" } -func (x *RequestAggrKeyshare) GetEstimatedDelay() *durationpb.Duration { +func (x *RequestDecryptionKey) GetEstimatedDelay() *durationpb.Duration { if x != nil { return x.EstimatedDelay } return nil } -type isRequestAggrKeyshare_Id interface { - isRequestAggrKeyshare_Id() +type isRequestDecryptionKey_Id interface { + isRequestDecryptionKey_Id() } -type RequestAggrKeyshare_ProposalId struct { +type RequestDecryptionKey_ProposalId struct { ProposalId string `protobuf:"bytes,2,opt,name=proposal_id,json=proposalId,proto3,oneof"` } -type RequestAggrKeyshare_RequestId struct { +type RequestDecryptionKey_RequestId struct { RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3,oneof"` } -func (*RequestAggrKeyshare_ProposalId) isRequestAggrKeyshare_Id() {} +func (*RequestDecryptionKey_ProposalId) isRequestDecryptionKey_Id() {} -func (*RequestAggrKeyshare_RequestId) isRequestAggrKeyshare_Id() {} +func (*RequestDecryptionKey_RequestId) isRequestDecryptionKey_Id() {} -// RequestAggrKeyshareResponse defines the response to the RequestAggrKeyshare message -type RequestAggrKeyshareResponse struct { +// RequestDecryptionKeyResponse defines the response to the RequestDecryptionKey message +type RequestDecryptionKeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -5834,8 +5834,8 @@ type RequestAggrKeyshareResponse struct { Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` } -func (x *RequestAggrKeyshareResponse) Reset() { - *x = RequestAggrKeyshareResponse{} +func (x *RequestDecryptionKeyResponse) Reset() { + *x = RequestDecryptionKeyResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_common_shared_types_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5843,33 +5843,33 @@ func (x *RequestAggrKeyshareResponse) Reset() { } } -func (x *RequestAggrKeyshareResponse) String() string { +func (x *RequestDecryptionKeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RequestAggrKeyshareResponse) ProtoMessage() {} +func (*RequestDecryptionKeyResponse) ProtoMessage() {} -// Deprecated: Use RequestAggrKeyshareResponse.ProtoReflect.Descriptor instead. -func (*RequestAggrKeyshareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use RequestDecryptionKeyResponse.ProtoReflect.Descriptor instead. +func (*RequestDecryptionKeyResponse) Descriptor() ([]byte, []int) { return file_fairyring_common_shared_types_proto_rawDescGZIP(), []int{1} } -func (x *RequestAggrKeyshareResponse) GetIdentity() string { +func (x *RequestDecryptionKeyResponse) GetIdentity() string { if x != nil { return x.Identity } return "" } -func (x *RequestAggrKeyshareResponse) GetPubkey() string { +func (x *RequestDecryptionKeyResponse) GetPubkey() string { if x != nil { return x.Pubkey } return "" } -// GetAggrKeyshare defines a struct for the data payload -type GetAggrKeyshare struct { +// GetDecryptionKey defines a struct for the data payload +type GetDecryptionKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -5878,14 +5878,14 @@ type GetAggrKeyshare struct { // // Types that are assignable to Id: // - // *GetAggrKeyshare_ProposalId - // *GetAggrKeyshare_RequestId - Id isGetAggrKeyshare_Id `protobuf_oneof:"id"` - Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` + // *GetDecryptionKey_ProposalId + // *GetDecryptionKey_RequestId + Id isGetDecryptionKey_Id `protobuf_oneof:"id"` + Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` } -func (x *GetAggrKeyshare) Reset() { - *x = GetAggrKeyshare{} +func (x *GetDecryptionKey) Reset() { + *x = GetDecryptionKey{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_common_shared_types_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5893,70 +5893,70 @@ func (x *GetAggrKeyshare) Reset() { } } -func (x *GetAggrKeyshare) String() string { +func (x *GetDecryptionKey) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetAggrKeyshare) ProtoMessage() {} +func (*GetDecryptionKey) ProtoMessage() {} -// Deprecated: Use GetAggrKeyshare.ProtoReflect.Descriptor instead. -func (*GetAggrKeyshare) Descriptor() ([]byte, []int) { +// Deprecated: Use GetDecryptionKey.ProtoReflect.Descriptor instead. +func (*GetDecryptionKey) Descriptor() ([]byte, []int) { return file_fairyring_common_shared_types_proto_rawDescGZIP(), []int{2} } -func (x *GetAggrKeyshare) GetId() isGetAggrKeyshare_Id { +func (x *GetDecryptionKey) GetId() isGetDecryptionKey_Id { if x != nil { return x.Id } return nil } -func (x *GetAggrKeyshare) GetProposalId() string { - if x, ok := x.GetId().(*GetAggrKeyshare_ProposalId); ok { +func (x *GetDecryptionKey) GetProposalId() string { + if x, ok := x.GetId().(*GetDecryptionKey_ProposalId); ok { return x.ProposalId } return "" } -func (x *GetAggrKeyshare) GetRequestId() string { - if x, ok := x.GetId().(*GetAggrKeyshare_RequestId); ok { +func (x *GetDecryptionKey) GetRequestId() string { + if x, ok := x.GetId().(*GetDecryptionKey_RequestId); ok { return x.RequestId } return "" } -func (x *GetAggrKeyshare) GetIdentity() string { +func (x *GetDecryptionKey) GetIdentity() string { if x != nil { return x.Identity } return "" } -type isGetAggrKeyshare_Id interface { - isGetAggrKeyshare_Id() +type isGetDecryptionKey_Id interface { + isGetDecryptionKey_Id() } -type GetAggrKeyshare_ProposalId struct { +type GetDecryptionKey_ProposalId struct { ProposalId string `protobuf:"bytes,1,opt,name=proposal_id,json=proposalId,proto3,oneof"` } -type GetAggrKeyshare_RequestId struct { +type GetDecryptionKey_RequestId struct { RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3,oneof"` } -func (*GetAggrKeyshare_ProposalId) isGetAggrKeyshare_Id() {} +func (*GetDecryptionKey_ProposalId) isGetDecryptionKey_Id() {} -func (*GetAggrKeyshare_RequestId) isGetAggrKeyshare_Id() {} +func (*GetDecryptionKey_RequestId) isGetDecryptionKey_Id() {} -// GetAggrKeyshareResponse defines the response to the GetAggrKeyshare message -type GetAggrKeyshareResponse struct { +// GetDecryptionKeyResponse defines the response to the GetDecryptionKey message +type GetDecryptionKeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *GetAggrKeyshareResponse) Reset() { - *x = GetAggrKeyshareResponse{} +func (x *GetDecryptionKeyResponse) Reset() { + *x = GetDecryptionKeyResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_common_shared_types_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5964,19 +5964,19 @@ func (x *GetAggrKeyshareResponse) Reset() { } } -func (x *GetAggrKeyshareResponse) String() string { +func (x *GetDecryptionKeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetAggrKeyshareResponse) ProtoMessage() {} +func (*GetDecryptionKeyResponse) ProtoMessage() {} -// Deprecated: Use GetAggrKeyshareResponse.ProtoReflect.Descriptor instead. -func (*GetAggrKeyshareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use GetDecryptionKeyResponse.ProtoReflect.Descriptor instead. +func (*GetDecryptionKeyResponse) Descriptor() ([]byte, []int) { return file_fairyring_common_shared_types_proto_rawDescGZIP(), []int{3} } -// GetPrivateKeyshare defines a struct for the data payload -type GetPrivateKeyshare struct { +// GetPrivateDecryptionKey defines a struct for the data payload +type GetPrivateDecryptionKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -5987,8 +5987,8 @@ type GetPrivateKeyshare struct { SecpPubkey string `protobuf:"bytes,4,opt,name=secp_pubkey,json=secpPubkey,proto3" json:"secp_pubkey,omitempty"` } -func (x *GetPrivateKeyshare) Reset() { - *x = GetPrivateKeyshare{} +func (x *GetPrivateDecryptionKey) Reset() { + *x = GetPrivateDecryptionKey{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_common_shared_types_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5996,47 +5996,47 @@ func (x *GetPrivateKeyshare) Reset() { } } -func (x *GetPrivateKeyshare) String() string { +func (x *GetPrivateDecryptionKey) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetPrivateKeyshare) ProtoMessage() {} +func (*GetPrivateDecryptionKey) ProtoMessage() {} -// Deprecated: Use GetPrivateKeyshare.ProtoReflect.Descriptor instead. -func (*GetPrivateKeyshare) Descriptor() ([]byte, []int) { +// Deprecated: Use GetPrivateDecryptionKey.ProtoReflect.Descriptor instead. +func (*GetPrivateDecryptionKey) Descriptor() ([]byte, []int) { return file_fairyring_common_shared_types_proto_rawDescGZIP(), []int{4} } -func (x *GetPrivateKeyshare) GetRequestId() string { +func (x *GetPrivateDecryptionKey) GetRequestId() string { if x != nil { return x.RequestId } return "" } -func (x *GetPrivateKeyshare) GetIdentity() string { +func (x *GetPrivateDecryptionKey) GetIdentity() string { if x != nil { return x.Identity } return "" } -func (x *GetPrivateKeyshare) GetRequester() string { +func (x *GetPrivateDecryptionKey) GetRequester() string { if x != nil { return x.Requester } return "" } -func (x *GetPrivateKeyshare) GetSecpPubkey() string { +func (x *GetPrivateDecryptionKey) GetSecpPubkey() string { if x != nil { return x.SecpPubkey } return "" } -// GetPrivateKeyshareResponse defines the response to the GetPrivateKeyshare message -type GetPrivateKeyshareResponse struct { +// GetPrivateDecryptionKeyResponse defines the response to the GetPrivateDecryptionKey message +type GetPrivateDecryptionKeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -6044,8 +6044,8 @@ type GetPrivateKeyshareResponse struct { Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"` } -func (x *GetPrivateKeyshareResponse) Reset() { - *x = GetPrivateKeyshareResponse{} +func (x *GetPrivateDecryptionKeyResponse) Reset() { + *x = GetPrivateDecryptionKeyResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_common_shared_types_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6053,18 +6053,18 @@ func (x *GetPrivateKeyshareResponse) Reset() { } } -func (x *GetPrivateKeyshareResponse) String() string { +func (x *GetPrivateDecryptionKeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetPrivateKeyshareResponse) ProtoMessage() {} +func (*GetPrivateDecryptionKeyResponse) ProtoMessage() {} -// Deprecated: Use GetPrivateKeyshareResponse.ProtoReflect.Descriptor instead. -func (*GetPrivateKeyshareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use GetPrivateDecryptionKeyResponse.ProtoReflect.Descriptor instead. +func (*GetPrivateDecryptionKeyResponse) Descriptor() ([]byte, []int) { return file_fairyring_common_shared_types_proto_rawDescGZIP(), []int{5} } -func (x *GetPrivateKeyshareResponse) GetPubkey() string { +func (x *GetPrivateDecryptionKeyResponse) GetPubkey() string { if x != nil { return x.Pubkey } @@ -6176,9 +6176,9 @@ func (x *QueuedPublicKey) GetExpiry() uint64 { return 0 } -// RequestEncryptedKeyshare defines the structure to request for +// RequestPrivateDecryptionKey defines the structure to request for // encrypted and unaggregated keyshares -type RequestEncryptedKeyshare struct { +type RequestPrivateDecryptionKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -6187,8 +6187,8 @@ type RequestEncryptedKeyshare struct { RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *RequestEncryptedKeyshare) Reset() { - *x = RequestEncryptedKeyshare{} +func (x *RequestPrivateDecryptionKey) Reset() { + *x = RequestPrivateDecryptionKey{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_common_shared_types_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6196,34 +6196,34 @@ func (x *RequestEncryptedKeyshare) Reset() { } } -func (x *RequestEncryptedKeyshare) String() string { +func (x *RequestPrivateDecryptionKey) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RequestEncryptedKeyshare) ProtoMessage() {} +func (*RequestPrivateDecryptionKey) ProtoMessage() {} -// Deprecated: Use RequestEncryptedKeyshare.ProtoReflect.Descriptor instead. -func (*RequestEncryptedKeyshare) Descriptor() ([]byte, []int) { +// Deprecated: Use RequestPrivateDecryptionKey.ProtoReflect.Descriptor instead. +func (*RequestPrivateDecryptionKey) Descriptor() ([]byte, []int) { return file_fairyring_common_shared_types_proto_rawDescGZIP(), []int{8} } -func (x *RequestEncryptedKeyshare) GetCreator() string { +func (x *RequestPrivateDecryptionKey) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *RequestEncryptedKeyshare) GetRequestId() string { +func (x *RequestPrivateDecryptionKey) GetRequestId() string { if x != nil { return x.RequestId } return "" } -// EncryptedKeyshare defines the storage structure for +// PrivateDecryptionKey defines the storage structure for // the list of encrypted keyshares (unaggregated) -type EncryptedKeyshare struct { +type PrivateDecryptionKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -6232,8 +6232,8 @@ type EncryptedKeyshare struct { PrivateKeyshares []*IndexedEncryptedKeyshare `protobuf:"bytes,2,rep,name=private_keyshares,json=privateKeyshares,proto3" json:"private_keyshares,omitempty"` } -func (x *EncryptedKeyshare) Reset() { - *x = EncryptedKeyshare{} +func (x *PrivateDecryptionKey) Reset() { + *x = PrivateDecryptionKey{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_common_shared_types_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6241,25 +6241,25 @@ func (x *EncryptedKeyshare) Reset() { } } -func (x *EncryptedKeyshare) String() string { +func (x *PrivateDecryptionKey) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EncryptedKeyshare) ProtoMessage() {} +func (*PrivateDecryptionKey) ProtoMessage() {} -// Deprecated: Use EncryptedKeyshare.ProtoReflect.Descriptor instead. -func (*EncryptedKeyshare) Descriptor() ([]byte, []int) { +// Deprecated: Use PrivateDecryptionKey.ProtoReflect.Descriptor instead. +func (*PrivateDecryptionKey) Descriptor() ([]byte, []int) { return file_fairyring_common_shared_types_proto_rawDescGZIP(), []int{9} } -func (x *EncryptedKeyshare) GetRequester() string { +func (x *PrivateDecryptionKey) GetRequester() string { if x != nil { return x.Requester } return "" } -func (x *EncryptedKeyshare) GetPrivateKeyshares() []*IndexedEncryptedKeyshare { +func (x *PrivateDecryptionKey) GetPrivateKeyshares() []*IndexedEncryptedKeyshare { if x != nil { return x.PrivateKeyshares } @@ -6320,94 +6320,95 @@ var file_fairyring_common_shared_types_proto_rawDesc = []byte{ 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc3, 0x01, - 0x0a, 0x13, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, - 0x21, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, - 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x0f, 0x65, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, - 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0x98, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x65, - 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x42, 0x04, 0x0a, - 0x02, 0x69, 0x64, 0x22, 0x51, 0x0a, 0x1b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x67, - 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, - 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x22, 0x77, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x67, 0x67, - 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x70, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, - 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0a, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, - 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x42, 0x04, 0x0a, 0x02, 0x69, 0x64, 0x22, - 0x19, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x41, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8e, 0x01, 0x0a, 0x12, 0x47, - 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, - 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1c, 0x0a, 0x09, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, - 0x63, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x73, 0x65, 0x63, 0x70, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x22, 0x34, 0x0a, 0x1a, 0x47, - 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, - 0x79, 0x22, 0x62, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, - 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, - 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x65, - 0x78, 0x70, 0x69, 0x72, 0x79, 0x22, 0x62, 0x0a, 0x0f, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, - 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, - 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x22, 0x53, 0x0a, 0x18, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, - 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x8a, - 0x01, 0x0a, 0x11, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x65, 0x72, 0x12, 0x57, 0x0a, 0x11, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, - 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x10, 0x70, 0x72, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0x8e, 0x01, 0x0a, 0x18, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, - 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x65, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x65, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x42, 0xac, 0x01, 0x0a, - 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x42, 0x10, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x54, 0x79, 0x70, - 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0xa2, 0x02, 0x03, 0x46, - 0x43, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x43, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0xca, 0x02, 0x10, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x5c, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0xe2, 0x02, 0x1c, 0x46, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc4, 0x01, + 0x0a, 0x14, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x12, 0x21, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x6c, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x0f, 0x65, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0x98, 0xdf, 0x1f, 0x01, 0x52, 0x0e, + 0x65, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x42, 0x04, + 0x0a, 0x02, 0x69, 0x64, 0x22, 0x52, 0x0a, 0x1c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, + 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x22, 0x78, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x44, + 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x0b, + 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x12, + 0x1f, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, + 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x42, 0x04, 0x0a, 0x02, + 0x69, 0x64, 0x22, 0x1a, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x93, + 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x6b, + 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x70, 0x50, 0x75, + 0x62, 0x6b, 0x65, 0x79, 0x22, 0x39, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x22, + 0x62, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, + 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, + 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x65, + 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x65, 0x78, 0x70, + 0x69, 0x72, 0x79, 0x22, 0x62, 0x0a, 0x0f, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, + 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x22, 0x56, 0x0a, 0x1b, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, + 0x8d, 0x01, 0x0a, 0x14, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x12, 0x57, 0x0a, 0x11, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x45, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x10, 0x70, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, + 0x8e, 0x01, 0x0a, 0x18, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x64, 0x45, 0x6e, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x38, 0x0a, 0x18, + 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, + 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x6e, 0x64, + 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x16, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, + 0x42, 0xac, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x42, 0x10, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x64, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x21, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0xca, 0x02, 0x10, 0x46, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0xe2, 0x02, 0x1c, 0x46, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -6424,22 +6425,22 @@ func file_fairyring_common_shared_types_proto_rawDescGZIP() []byte { var file_fairyring_common_shared_types_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_fairyring_common_shared_types_proto_goTypes = []interface{}{ - (*RequestAggrKeyshare)(nil), // 0: fairyring.common.RequestAggrKeyshare - (*RequestAggrKeyshareResponse)(nil), // 1: fairyring.common.RequestAggrKeyshareResponse - (*GetAggrKeyshare)(nil), // 2: fairyring.common.GetAggrKeyshare - (*GetAggrKeyshareResponse)(nil), // 3: fairyring.common.GetAggrKeyshareResponse - (*GetPrivateKeyshare)(nil), // 4: fairyring.common.GetPrivateKeyshare - (*GetPrivateKeyshareResponse)(nil), // 5: fairyring.common.GetPrivateKeyshareResponse - (*ActivePublicKey)(nil), // 6: fairyring.common.ActivePublicKey - (*QueuedPublicKey)(nil), // 7: fairyring.common.QueuedPublicKey - (*RequestEncryptedKeyshare)(nil), // 8: fairyring.common.RequestEncryptedKeyshare - (*EncryptedKeyshare)(nil), // 9: fairyring.common.EncryptedKeyshare - (*IndexedEncryptedKeyshare)(nil), // 10: fairyring.common.IndexedEncryptedKeyshare - (*durationpb.Duration)(nil), // 11: google.protobuf.Duration + (*RequestDecryptionKey)(nil), // 0: fairyring.common.RequestDecryptionKey + (*RequestDecryptionKeyResponse)(nil), // 1: fairyring.common.RequestDecryptionKeyResponse + (*GetDecryptionKey)(nil), // 2: fairyring.common.GetDecryptionKey + (*GetDecryptionKeyResponse)(nil), // 3: fairyring.common.GetDecryptionKeyResponse + (*GetPrivateDecryptionKey)(nil), // 4: fairyring.common.GetPrivateDecryptionKey + (*GetPrivateDecryptionKeyResponse)(nil), // 5: fairyring.common.GetPrivateDecryptionKeyResponse + (*ActivePublicKey)(nil), // 6: fairyring.common.ActivePublicKey + (*QueuedPublicKey)(nil), // 7: fairyring.common.QueuedPublicKey + (*RequestPrivateDecryptionKey)(nil), // 8: fairyring.common.RequestPrivateDecryptionKey + (*PrivateDecryptionKey)(nil), // 9: fairyring.common.PrivateDecryptionKey + (*IndexedEncryptedKeyshare)(nil), // 10: fairyring.common.IndexedEncryptedKeyshare + (*durationpb.Duration)(nil), // 11: google.protobuf.Duration } var file_fairyring_common_shared_types_proto_depIdxs = []int32{ - 11, // 0: fairyring.common.RequestAggrKeyshare.estimated_delay:type_name -> google.protobuf.Duration - 10, // 1: fairyring.common.EncryptedKeyshare.private_keyshares:type_name -> fairyring.common.IndexedEncryptedKeyshare + 11, // 0: fairyring.common.RequestDecryptionKey.estimated_delay:type_name -> google.protobuf.Duration + 10, // 1: fairyring.common.PrivateDecryptionKey.private_keyshares:type_name -> fairyring.common.IndexedEncryptedKeyshare 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name @@ -6454,7 +6455,7 @@ func file_fairyring_common_shared_types_proto_init() { } if !protoimpl.UnsafeEnabled { file_fairyring_common_shared_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestAggrKeyshare); i { + switch v := v.(*RequestDecryptionKey); i { case 0: return &v.state case 1: @@ -6466,7 +6467,7 @@ func file_fairyring_common_shared_types_proto_init() { } } file_fairyring_common_shared_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestAggrKeyshareResponse); i { + switch v := v.(*RequestDecryptionKeyResponse); i { case 0: return &v.state case 1: @@ -6478,7 +6479,7 @@ func file_fairyring_common_shared_types_proto_init() { } } file_fairyring_common_shared_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAggrKeyshare); i { + switch v := v.(*GetDecryptionKey); i { case 0: return &v.state case 1: @@ -6490,7 +6491,7 @@ func file_fairyring_common_shared_types_proto_init() { } } file_fairyring_common_shared_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAggrKeyshareResponse); i { + switch v := v.(*GetDecryptionKeyResponse); i { case 0: return &v.state case 1: @@ -6502,7 +6503,7 @@ func file_fairyring_common_shared_types_proto_init() { } } file_fairyring_common_shared_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPrivateKeyshare); i { + switch v := v.(*GetPrivateDecryptionKey); i { case 0: return &v.state case 1: @@ -6514,7 +6515,7 @@ func file_fairyring_common_shared_types_proto_init() { } } file_fairyring_common_shared_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPrivateKeyshareResponse); i { + switch v := v.(*GetPrivateDecryptionKeyResponse); i { case 0: return &v.state case 1: @@ -6550,7 +6551,7 @@ func file_fairyring_common_shared_types_proto_init() { } } file_fairyring_common_shared_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestEncryptedKeyshare); i { + switch v := v.(*RequestPrivateDecryptionKey); i { case 0: return &v.state case 1: @@ -6562,7 +6563,7 @@ func file_fairyring_common_shared_types_proto_init() { } } file_fairyring_common_shared_types_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncryptedKeyshare); i { + switch v := v.(*PrivateDecryptionKey); i { case 0: return &v.state case 1: @@ -6587,12 +6588,12 @@ func file_fairyring_common_shared_types_proto_init() { } } file_fairyring_common_shared_types_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*RequestAggrKeyshare_ProposalId)(nil), - (*RequestAggrKeyshare_RequestId)(nil), + (*RequestDecryptionKey_ProposalId)(nil), + (*RequestDecryptionKey_RequestId)(nil), } file_fairyring_common_shared_types_proto_msgTypes[2].OneofWrappers = []interface{}{ - (*GetAggrKeyshare_ProposalId)(nil), - (*GetAggrKeyshare_RequestId)(nil), + (*GetDecryptionKey_ProposalId)(nil), + (*GetDecryptionKey_RequestId)(nil), } type x struct{} out := protoimpl.TypeBuilder{ diff --git a/api/fairyring/keyshare/packet.pulsar.go b/api/fairyring/keyshare/packet.pulsar.go index addf3a63..84a50ff1 100644 --- a/api/fairyring/keyshare/packet.pulsar.go +++ b/api/fairyring/keyshare/packet.pulsar.go @@ -2,7 +2,7 @@ package keyshare import ( - common "github.com/Fairblock/fairyring/api/fairyring/common" + common "cosmossdk.io/api/fairyring/common" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -16,28 +16,28 @@ import ( ) var ( - md_KeysharePacketData protoreflect.MessageDescriptor - fd_KeysharePacketData_noData protoreflect.FieldDescriptor - fd_KeysharePacketData_requestAggrKeysharePacket protoreflect.FieldDescriptor - fd_KeysharePacketData_getAggrKeysharePacket protoreflect.FieldDescriptor - fd_KeysharePacketData_aggrKeyshareDataPacket protoreflect.FieldDescriptor - fd_KeysharePacketData_encryptedKeysharesPacketData protoreflect.FieldDescriptor - fd_KeysharePacketData_currentKeysPacket protoreflect.FieldDescriptor - fd_KeysharePacketData_request_priv_keyshare_packet protoreflect.FieldDescriptor - fd_KeysharePacketData_getPrivateKeysharePacket protoreflect.FieldDescriptor + md_KeysharePacketData protoreflect.MessageDescriptor + fd_KeysharePacketData_no_data protoreflect.FieldDescriptor + fd_KeysharePacketData_request_decryption_key_packet protoreflect.FieldDescriptor + fd_KeysharePacketData_get_decryption_key_packet protoreflect.FieldDescriptor + fd_KeysharePacketData_decryption_key_data_packet protoreflect.FieldDescriptor + fd_KeysharePacketData_private_decryption_key_data_packet protoreflect.FieldDescriptor + fd_KeysharePacketData_current_keys_packet protoreflect.FieldDescriptor + fd_KeysharePacketData_request_private_decryption_key_packet protoreflect.FieldDescriptor + fd_KeysharePacketData_get_private_decryption_key_packet protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_packet_proto_init() md_KeysharePacketData = File_fairyring_keyshare_packet_proto.Messages().ByName("KeysharePacketData") - fd_KeysharePacketData_noData = md_KeysharePacketData.Fields().ByName("noData") - fd_KeysharePacketData_requestAggrKeysharePacket = md_KeysharePacketData.Fields().ByName("requestAggrKeysharePacket") - fd_KeysharePacketData_getAggrKeysharePacket = md_KeysharePacketData.Fields().ByName("getAggrKeysharePacket") - fd_KeysharePacketData_aggrKeyshareDataPacket = md_KeysharePacketData.Fields().ByName("aggrKeyshareDataPacket") - fd_KeysharePacketData_encryptedKeysharesPacketData = md_KeysharePacketData.Fields().ByName("encryptedKeysharesPacketData") - fd_KeysharePacketData_currentKeysPacket = md_KeysharePacketData.Fields().ByName("currentKeysPacket") - fd_KeysharePacketData_request_priv_keyshare_packet = md_KeysharePacketData.Fields().ByName("request_priv_keyshare_packet") - fd_KeysharePacketData_getPrivateKeysharePacket = md_KeysharePacketData.Fields().ByName("getPrivateKeysharePacket") + fd_KeysharePacketData_no_data = md_KeysharePacketData.Fields().ByName("no_data") + fd_KeysharePacketData_request_decryption_key_packet = md_KeysharePacketData.Fields().ByName("request_decryption_key_packet") + fd_KeysharePacketData_get_decryption_key_packet = md_KeysharePacketData.Fields().ByName("get_decryption_key_packet") + fd_KeysharePacketData_decryption_key_data_packet = md_KeysharePacketData.Fields().ByName("decryption_key_data_packet") + fd_KeysharePacketData_private_decryption_key_data_packet = md_KeysharePacketData.Fields().ByName("private_decryption_key_data_packet") + fd_KeysharePacketData_current_keys_packet = md_KeysharePacketData.Fields().ByName("current_keys_packet") + fd_KeysharePacketData_request_private_decryption_key_packet = md_KeysharePacketData.Fields().ByName("request_private_decryption_key_packet") + fd_KeysharePacketData_get_private_decryption_key_packet = md_KeysharePacketData.Fields().ByName("get_private_decryption_key_packet") } var _ protoreflect.Message = (*fastReflection_KeysharePacketData)(nil) @@ -110,49 +110,49 @@ func (x *fastReflection_KeysharePacketData) Range(f func(protoreflect.FieldDescr case *KeysharePacketData_NoData: v := o.NoData value := protoreflect.ValueOfMessage(v.ProtoReflect()) - if !f(fd_KeysharePacketData_noData, value) { + if !f(fd_KeysharePacketData_no_data, value) { return } - case *KeysharePacketData_RequestAggrKeysharePacket: - v := o.RequestAggrKeysharePacket + case *KeysharePacketData_RequestDecryptionKeyPacket: + v := o.RequestDecryptionKeyPacket value := protoreflect.ValueOfMessage(v.ProtoReflect()) - if !f(fd_KeysharePacketData_requestAggrKeysharePacket, value) { + if !f(fd_KeysharePacketData_request_decryption_key_packet, value) { return } - case *KeysharePacketData_GetAggrKeysharePacket: - v := o.GetAggrKeysharePacket + case *KeysharePacketData_GetDecryptionKeyPacket: + v := o.GetDecryptionKeyPacket value := protoreflect.ValueOfMessage(v.ProtoReflect()) - if !f(fd_KeysharePacketData_getAggrKeysharePacket, value) { + if !f(fd_KeysharePacketData_get_decryption_key_packet, value) { return } - case *KeysharePacketData_AggrKeyshareDataPacket: - v := o.AggrKeyshareDataPacket + case *KeysharePacketData_DecryptionKeyDataPacket: + v := o.DecryptionKeyDataPacket value := protoreflect.ValueOfMessage(v.ProtoReflect()) - if !f(fd_KeysharePacketData_aggrKeyshareDataPacket, value) { + if !f(fd_KeysharePacketData_decryption_key_data_packet, value) { return } - case *KeysharePacketData_EncryptedKeysharesPacketData: - v := o.EncryptedKeysharesPacketData + case *KeysharePacketData_PrivateDecryptionKeyDataPacket: + v := o.PrivateDecryptionKeyDataPacket value := protoreflect.ValueOfMessage(v.ProtoReflect()) - if !f(fd_KeysharePacketData_encryptedKeysharesPacketData, value) { + if !f(fd_KeysharePacketData_private_decryption_key_data_packet, value) { return } case *KeysharePacketData_CurrentKeysPacket: v := o.CurrentKeysPacket value := protoreflect.ValueOfMessage(v.ProtoReflect()) - if !f(fd_KeysharePacketData_currentKeysPacket, value) { + if !f(fd_KeysharePacketData_current_keys_packet, value) { return } - case *KeysharePacketData_RequestPrivKeysharePacket: - v := o.RequestPrivKeysharePacket + case *KeysharePacketData_RequestPrivateDecryptionKeyPacket: + v := o.RequestPrivateDecryptionKeyPacket value := protoreflect.ValueOfMessage(v.ProtoReflect()) - if !f(fd_KeysharePacketData_request_priv_keyshare_packet, value) { + if !f(fd_KeysharePacketData_request_private_decryption_key_packet, value) { return } - case *KeysharePacketData_GetPrivateKeysharePacket: - v := o.GetPrivateKeysharePacket + case *KeysharePacketData_GetPrivateDecryptionKeyPacket: + v := o.GetPrivateDecryptionKeyPacket value := protoreflect.ValueOfMessage(v.ProtoReflect()) - if !f(fd_KeysharePacketData_getPrivateKeysharePacket, value) { + if !f(fd_KeysharePacketData_get_private_decryption_key_packet, value) { return } } @@ -172,7 +172,7 @@ func (x *fastReflection_KeysharePacketData) Range(f func(protoreflect.FieldDescr // a repeated field is populated if it is non-empty. func (x *fastReflection_KeysharePacketData) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.KeysharePacketData.noData": + case "fairyring.keyshare.KeysharePacketData.no_data": if x.Packet == nil { return false } else if _, ok := x.Packet.(*KeysharePacketData_NoData); ok { @@ -180,39 +180,39 @@ func (x *fastReflection_KeysharePacketData) Has(fd protoreflect.FieldDescriptor) } else { return false } - case "fairyring.keyshare.KeysharePacketData.requestAggrKeysharePacket": + case "fairyring.keyshare.KeysharePacketData.request_decryption_key_packet": if x.Packet == nil { return false - } else if _, ok := x.Packet.(*KeysharePacketData_RequestAggrKeysharePacket); ok { + } else if _, ok := x.Packet.(*KeysharePacketData_RequestDecryptionKeyPacket); ok { return true } else { return false } - case "fairyring.keyshare.KeysharePacketData.getAggrKeysharePacket": + case "fairyring.keyshare.KeysharePacketData.get_decryption_key_packet": if x.Packet == nil { return false - } else if _, ok := x.Packet.(*KeysharePacketData_GetAggrKeysharePacket); ok { + } else if _, ok := x.Packet.(*KeysharePacketData_GetDecryptionKeyPacket); ok { return true } else { return false } - case "fairyring.keyshare.KeysharePacketData.aggrKeyshareDataPacket": + case "fairyring.keyshare.KeysharePacketData.decryption_key_data_packet": if x.Packet == nil { return false - } else if _, ok := x.Packet.(*KeysharePacketData_AggrKeyshareDataPacket); ok { + } else if _, ok := x.Packet.(*KeysharePacketData_DecryptionKeyDataPacket); ok { return true } else { return false } - case "fairyring.keyshare.KeysharePacketData.encryptedKeysharesPacketData": + case "fairyring.keyshare.KeysharePacketData.private_decryption_key_data_packet": if x.Packet == nil { return false - } else if _, ok := x.Packet.(*KeysharePacketData_EncryptedKeysharesPacketData); ok { + } else if _, ok := x.Packet.(*KeysharePacketData_PrivateDecryptionKeyDataPacket); ok { return true } else { return false } - case "fairyring.keyshare.KeysharePacketData.currentKeysPacket": + case "fairyring.keyshare.KeysharePacketData.current_keys_packet": if x.Packet == nil { return false } else if _, ok := x.Packet.(*KeysharePacketData_CurrentKeysPacket); ok { @@ -220,18 +220,18 @@ func (x *fastReflection_KeysharePacketData) Has(fd protoreflect.FieldDescriptor) } else { return false } - case "fairyring.keyshare.KeysharePacketData.request_priv_keyshare_packet": + case "fairyring.keyshare.KeysharePacketData.request_private_decryption_key_packet": if x.Packet == nil { return false - } else if _, ok := x.Packet.(*KeysharePacketData_RequestPrivKeysharePacket); ok { + } else if _, ok := x.Packet.(*KeysharePacketData_RequestPrivateDecryptionKeyPacket); ok { return true } else { return false } - case "fairyring.keyshare.KeysharePacketData.getPrivateKeysharePacket": + case "fairyring.keyshare.KeysharePacketData.get_private_decryption_key_packet": if x.Packet == nil { return false - } else if _, ok := x.Packet.(*KeysharePacketData_GetPrivateKeysharePacket); ok { + } else if _, ok := x.Packet.(*KeysharePacketData_GetPrivateDecryptionKeyPacket); ok { return true } else { return false @@ -252,21 +252,21 @@ func (x *fastReflection_KeysharePacketData) Has(fd protoreflect.FieldDescriptor) // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_KeysharePacketData) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.KeysharePacketData.noData": + case "fairyring.keyshare.KeysharePacketData.no_data": x.Packet = nil - case "fairyring.keyshare.KeysharePacketData.requestAggrKeysharePacket": + case "fairyring.keyshare.KeysharePacketData.request_decryption_key_packet": x.Packet = nil - case "fairyring.keyshare.KeysharePacketData.getAggrKeysharePacket": + case "fairyring.keyshare.KeysharePacketData.get_decryption_key_packet": x.Packet = nil - case "fairyring.keyshare.KeysharePacketData.aggrKeyshareDataPacket": + case "fairyring.keyshare.KeysharePacketData.decryption_key_data_packet": x.Packet = nil - case "fairyring.keyshare.KeysharePacketData.encryptedKeysharesPacketData": + case "fairyring.keyshare.KeysharePacketData.private_decryption_key_data_packet": x.Packet = nil - case "fairyring.keyshare.KeysharePacketData.currentKeysPacket": + case "fairyring.keyshare.KeysharePacketData.current_keys_packet": x.Packet = nil - case "fairyring.keyshare.KeysharePacketData.request_priv_keyshare_packet": + case "fairyring.keyshare.KeysharePacketData.request_private_decryption_key_packet": x.Packet = nil - case "fairyring.keyshare.KeysharePacketData.getPrivateKeysharePacket": + case "fairyring.keyshare.KeysharePacketData.get_private_decryption_key_packet": x.Packet = nil default: if fd.IsExtension() { @@ -284,7 +284,7 @@ func (x *fastReflection_KeysharePacketData) Clear(fd protoreflect.FieldDescripto // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_KeysharePacketData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.KeysharePacketData.noData": + case "fairyring.keyshare.KeysharePacketData.no_data": if x.Packet == nil { return protoreflect.ValueOfMessage((*NoData)(nil).ProtoReflect()) } else if v, ok := x.Packet.(*KeysharePacketData_NoData); ok { @@ -292,39 +292,39 @@ func (x *fastReflection_KeysharePacketData) Get(descriptor protoreflect.FieldDes } else { return protoreflect.ValueOfMessage((*NoData)(nil).ProtoReflect()) } - case "fairyring.keyshare.KeysharePacketData.requestAggrKeysharePacket": + case "fairyring.keyshare.KeysharePacketData.request_decryption_key_packet": if x.Packet == nil { - return protoreflect.ValueOfMessage((*RequestAggrKeysharePacketData)(nil).ProtoReflect()) - } else if v, ok := x.Packet.(*KeysharePacketData_RequestAggrKeysharePacket); ok { - return protoreflect.ValueOfMessage(v.RequestAggrKeysharePacket.ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestDecryptionKeyPacketData)(nil).ProtoReflect()) + } else if v, ok := x.Packet.(*KeysharePacketData_RequestDecryptionKeyPacket); ok { + return protoreflect.ValueOfMessage(v.RequestDecryptionKeyPacket.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*RequestAggrKeysharePacketData)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestDecryptionKeyPacketData)(nil).ProtoReflect()) } - case "fairyring.keyshare.KeysharePacketData.getAggrKeysharePacket": + case "fairyring.keyshare.KeysharePacketData.get_decryption_key_packet": if x.Packet == nil { - return protoreflect.ValueOfMessage((*GetAggrKeysharePacketData)(nil).ProtoReflect()) - } else if v, ok := x.Packet.(*KeysharePacketData_GetAggrKeysharePacket); ok { - return protoreflect.ValueOfMessage(v.GetAggrKeysharePacket.ProtoReflect()) + return protoreflect.ValueOfMessage((*GetDecryptionKeyPacketData)(nil).ProtoReflect()) + } else if v, ok := x.Packet.(*KeysharePacketData_GetDecryptionKeyPacket); ok { + return protoreflect.ValueOfMessage(v.GetDecryptionKeyPacket.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*GetAggrKeysharePacketData)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*GetDecryptionKeyPacketData)(nil).ProtoReflect()) } - case "fairyring.keyshare.KeysharePacketData.aggrKeyshareDataPacket": + case "fairyring.keyshare.KeysharePacketData.decryption_key_data_packet": if x.Packet == nil { - return protoreflect.ValueOfMessage((*AggrKeyshareDataPacketData)(nil).ProtoReflect()) - } else if v, ok := x.Packet.(*KeysharePacketData_AggrKeyshareDataPacket); ok { - return protoreflect.ValueOfMessage(v.AggrKeyshareDataPacket.ProtoReflect()) + return protoreflect.ValueOfMessage((*DecryptionKeyDataPacketData)(nil).ProtoReflect()) + } else if v, ok := x.Packet.(*KeysharePacketData_DecryptionKeyDataPacket); ok { + return protoreflect.ValueOfMessage(v.DecryptionKeyDataPacket.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*AggrKeyshareDataPacketData)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*DecryptionKeyDataPacketData)(nil).ProtoReflect()) } - case "fairyring.keyshare.KeysharePacketData.encryptedKeysharesPacketData": + case "fairyring.keyshare.KeysharePacketData.private_decryption_key_data_packet": if x.Packet == nil { - return protoreflect.ValueOfMessage((*EncryptedKeysharesPacketData)(nil).ProtoReflect()) - } else if v, ok := x.Packet.(*KeysharePacketData_EncryptedKeysharesPacketData); ok { - return protoreflect.ValueOfMessage(v.EncryptedKeysharesPacketData.ProtoReflect()) + return protoreflect.ValueOfMessage((*PrivateDecryptionKeyDataPacketData)(nil).ProtoReflect()) + } else if v, ok := x.Packet.(*KeysharePacketData_PrivateDecryptionKeyDataPacket); ok { + return protoreflect.ValueOfMessage(v.PrivateDecryptionKeyDataPacket.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*EncryptedKeysharesPacketData)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*PrivateDecryptionKeyDataPacketData)(nil).ProtoReflect()) } - case "fairyring.keyshare.KeysharePacketData.currentKeysPacket": + case "fairyring.keyshare.KeysharePacketData.current_keys_packet": if x.Packet == nil { return protoreflect.ValueOfMessage((*CurrentKeysPacketData)(nil).ProtoReflect()) } else if v, ok := x.Packet.(*KeysharePacketData_CurrentKeysPacket); ok { @@ -332,21 +332,21 @@ func (x *fastReflection_KeysharePacketData) Get(descriptor protoreflect.FieldDes } else { return protoreflect.ValueOfMessage((*CurrentKeysPacketData)(nil).ProtoReflect()) } - case "fairyring.keyshare.KeysharePacketData.request_priv_keyshare_packet": + case "fairyring.keyshare.KeysharePacketData.request_private_decryption_key_packet": if x.Packet == nil { - return protoreflect.ValueOfMessage((*RequestPrivateKeysharePacketData)(nil).ProtoReflect()) - } else if v, ok := x.Packet.(*KeysharePacketData_RequestPrivKeysharePacket); ok { - return protoreflect.ValueOfMessage(v.RequestPrivKeysharePacket.ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestPrivateDecryptionKeyPacketData)(nil).ProtoReflect()) + } else if v, ok := x.Packet.(*KeysharePacketData_RequestPrivateDecryptionKeyPacket); ok { + return protoreflect.ValueOfMessage(v.RequestPrivateDecryptionKeyPacket.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*RequestPrivateKeysharePacketData)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*RequestPrivateDecryptionKeyPacketData)(nil).ProtoReflect()) } - case "fairyring.keyshare.KeysharePacketData.getPrivateKeysharePacket": + case "fairyring.keyshare.KeysharePacketData.get_private_decryption_key_packet": if x.Packet == nil { - return protoreflect.ValueOfMessage((*GetPrivateKeysharePacketData)(nil).ProtoReflect()) - } else if v, ok := x.Packet.(*KeysharePacketData_GetPrivateKeysharePacket); ok { - return protoreflect.ValueOfMessage(v.GetPrivateKeysharePacket.ProtoReflect()) + return protoreflect.ValueOfMessage((*GetPrivateDecryptionKeyPacketData)(nil).ProtoReflect()) + } else if v, ok := x.Packet.(*KeysharePacketData_GetPrivateDecryptionKeyPacket); ok { + return protoreflect.ValueOfMessage(v.GetPrivateDecryptionKeyPacket.ProtoReflect()) } else { - return protoreflect.ValueOfMessage((*GetPrivateKeysharePacketData)(nil).ProtoReflect()) + return protoreflect.ValueOfMessage((*GetPrivateDecryptionKeyPacketData)(nil).ProtoReflect()) } default: if descriptor.IsExtension() { @@ -368,30 +368,30 @@ func (x *fastReflection_KeysharePacketData) Get(descriptor protoreflect.FieldDes // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_KeysharePacketData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.KeysharePacketData.noData": + case "fairyring.keyshare.KeysharePacketData.no_data": cv := value.Message().Interface().(*NoData) x.Packet = &KeysharePacketData_NoData{NoData: cv} - case "fairyring.keyshare.KeysharePacketData.requestAggrKeysharePacket": - cv := value.Message().Interface().(*RequestAggrKeysharePacketData) - x.Packet = &KeysharePacketData_RequestAggrKeysharePacket{RequestAggrKeysharePacket: cv} - case "fairyring.keyshare.KeysharePacketData.getAggrKeysharePacket": - cv := value.Message().Interface().(*GetAggrKeysharePacketData) - x.Packet = &KeysharePacketData_GetAggrKeysharePacket{GetAggrKeysharePacket: cv} - case "fairyring.keyshare.KeysharePacketData.aggrKeyshareDataPacket": - cv := value.Message().Interface().(*AggrKeyshareDataPacketData) - x.Packet = &KeysharePacketData_AggrKeyshareDataPacket{AggrKeyshareDataPacket: cv} - case "fairyring.keyshare.KeysharePacketData.encryptedKeysharesPacketData": - cv := value.Message().Interface().(*EncryptedKeysharesPacketData) - x.Packet = &KeysharePacketData_EncryptedKeysharesPacketData{EncryptedKeysharesPacketData: cv} - case "fairyring.keyshare.KeysharePacketData.currentKeysPacket": + case "fairyring.keyshare.KeysharePacketData.request_decryption_key_packet": + cv := value.Message().Interface().(*RequestDecryptionKeyPacketData) + x.Packet = &KeysharePacketData_RequestDecryptionKeyPacket{RequestDecryptionKeyPacket: cv} + case "fairyring.keyshare.KeysharePacketData.get_decryption_key_packet": + cv := value.Message().Interface().(*GetDecryptionKeyPacketData) + x.Packet = &KeysharePacketData_GetDecryptionKeyPacket{GetDecryptionKeyPacket: cv} + case "fairyring.keyshare.KeysharePacketData.decryption_key_data_packet": + cv := value.Message().Interface().(*DecryptionKeyDataPacketData) + x.Packet = &KeysharePacketData_DecryptionKeyDataPacket{DecryptionKeyDataPacket: cv} + case "fairyring.keyshare.KeysharePacketData.private_decryption_key_data_packet": + cv := value.Message().Interface().(*PrivateDecryptionKeyDataPacketData) + x.Packet = &KeysharePacketData_PrivateDecryptionKeyDataPacket{PrivateDecryptionKeyDataPacket: cv} + case "fairyring.keyshare.KeysharePacketData.current_keys_packet": cv := value.Message().Interface().(*CurrentKeysPacketData) x.Packet = &KeysharePacketData_CurrentKeysPacket{CurrentKeysPacket: cv} - case "fairyring.keyshare.KeysharePacketData.request_priv_keyshare_packet": - cv := value.Message().Interface().(*RequestPrivateKeysharePacketData) - x.Packet = &KeysharePacketData_RequestPrivKeysharePacket{RequestPrivKeysharePacket: cv} - case "fairyring.keyshare.KeysharePacketData.getPrivateKeysharePacket": - cv := value.Message().Interface().(*GetPrivateKeysharePacketData) - x.Packet = &KeysharePacketData_GetPrivateKeysharePacket{GetPrivateKeysharePacket: cv} + case "fairyring.keyshare.KeysharePacketData.request_private_decryption_key_packet": + cv := value.Message().Interface().(*RequestPrivateDecryptionKeyPacketData) + x.Packet = &KeysharePacketData_RequestPrivateDecryptionKeyPacket{RequestPrivateDecryptionKeyPacket: cv} + case "fairyring.keyshare.KeysharePacketData.get_private_decryption_key_packet": + cv := value.Message().Interface().(*GetPrivateDecryptionKeyPacketData) + x.Packet = &KeysharePacketData_GetPrivateDecryptionKeyPacket{GetPrivateDecryptionKeyPacket: cv} default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.KeysharePacketData")) @@ -412,7 +412,7 @@ func (x *fastReflection_KeysharePacketData) Set(fd protoreflect.FieldDescriptor, // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_KeysharePacketData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.KeysharePacketData.noData": + case "fairyring.keyshare.KeysharePacketData.no_data": if x.Packet == nil { value := &NoData{} oneofValue := &KeysharePacketData_NoData{NoData: value} @@ -428,71 +428,71 @@ func (x *fastReflection_KeysharePacketData) Mutable(fd protoreflect.FieldDescrip x.Packet = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "fairyring.keyshare.KeysharePacketData.requestAggrKeysharePacket": + case "fairyring.keyshare.KeysharePacketData.request_decryption_key_packet": if x.Packet == nil { - value := &RequestAggrKeysharePacketData{} - oneofValue := &KeysharePacketData_RequestAggrKeysharePacket{RequestAggrKeysharePacket: value} + value := &RequestDecryptionKeyPacketData{} + oneofValue := &KeysharePacketData_RequestDecryptionKeyPacket{RequestDecryptionKeyPacket: value} x.Packet = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } switch m := x.Packet.(type) { - case *KeysharePacketData_RequestAggrKeysharePacket: - return protoreflect.ValueOfMessage(m.RequestAggrKeysharePacket.ProtoReflect()) + case *KeysharePacketData_RequestDecryptionKeyPacket: + return protoreflect.ValueOfMessage(m.RequestDecryptionKeyPacket.ProtoReflect()) default: - value := &RequestAggrKeysharePacketData{} - oneofValue := &KeysharePacketData_RequestAggrKeysharePacket{RequestAggrKeysharePacket: value} + value := &RequestDecryptionKeyPacketData{} + oneofValue := &KeysharePacketData_RequestDecryptionKeyPacket{RequestDecryptionKeyPacket: value} x.Packet = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "fairyring.keyshare.KeysharePacketData.getAggrKeysharePacket": + case "fairyring.keyshare.KeysharePacketData.get_decryption_key_packet": if x.Packet == nil { - value := &GetAggrKeysharePacketData{} - oneofValue := &KeysharePacketData_GetAggrKeysharePacket{GetAggrKeysharePacket: value} + value := &GetDecryptionKeyPacketData{} + oneofValue := &KeysharePacketData_GetDecryptionKeyPacket{GetDecryptionKeyPacket: value} x.Packet = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } switch m := x.Packet.(type) { - case *KeysharePacketData_GetAggrKeysharePacket: - return protoreflect.ValueOfMessage(m.GetAggrKeysharePacket.ProtoReflect()) + case *KeysharePacketData_GetDecryptionKeyPacket: + return protoreflect.ValueOfMessage(m.GetDecryptionKeyPacket.ProtoReflect()) default: - value := &GetAggrKeysharePacketData{} - oneofValue := &KeysharePacketData_GetAggrKeysharePacket{GetAggrKeysharePacket: value} + value := &GetDecryptionKeyPacketData{} + oneofValue := &KeysharePacketData_GetDecryptionKeyPacket{GetDecryptionKeyPacket: value} x.Packet = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "fairyring.keyshare.KeysharePacketData.aggrKeyshareDataPacket": + case "fairyring.keyshare.KeysharePacketData.decryption_key_data_packet": if x.Packet == nil { - value := &AggrKeyshareDataPacketData{} - oneofValue := &KeysharePacketData_AggrKeyshareDataPacket{AggrKeyshareDataPacket: value} + value := &DecryptionKeyDataPacketData{} + oneofValue := &KeysharePacketData_DecryptionKeyDataPacket{DecryptionKeyDataPacket: value} x.Packet = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } switch m := x.Packet.(type) { - case *KeysharePacketData_AggrKeyshareDataPacket: - return protoreflect.ValueOfMessage(m.AggrKeyshareDataPacket.ProtoReflect()) + case *KeysharePacketData_DecryptionKeyDataPacket: + return protoreflect.ValueOfMessage(m.DecryptionKeyDataPacket.ProtoReflect()) default: - value := &AggrKeyshareDataPacketData{} - oneofValue := &KeysharePacketData_AggrKeyshareDataPacket{AggrKeyshareDataPacket: value} + value := &DecryptionKeyDataPacketData{} + oneofValue := &KeysharePacketData_DecryptionKeyDataPacket{DecryptionKeyDataPacket: value} x.Packet = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "fairyring.keyshare.KeysharePacketData.encryptedKeysharesPacketData": + case "fairyring.keyshare.KeysharePacketData.private_decryption_key_data_packet": if x.Packet == nil { - value := &EncryptedKeysharesPacketData{} - oneofValue := &KeysharePacketData_EncryptedKeysharesPacketData{EncryptedKeysharesPacketData: value} + value := &PrivateDecryptionKeyDataPacketData{} + oneofValue := &KeysharePacketData_PrivateDecryptionKeyDataPacket{PrivateDecryptionKeyDataPacket: value} x.Packet = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } switch m := x.Packet.(type) { - case *KeysharePacketData_EncryptedKeysharesPacketData: - return protoreflect.ValueOfMessage(m.EncryptedKeysharesPacketData.ProtoReflect()) + case *KeysharePacketData_PrivateDecryptionKeyDataPacket: + return protoreflect.ValueOfMessage(m.PrivateDecryptionKeyDataPacket.ProtoReflect()) default: - value := &EncryptedKeysharesPacketData{} - oneofValue := &KeysharePacketData_EncryptedKeysharesPacketData{EncryptedKeysharesPacketData: value} + value := &PrivateDecryptionKeyDataPacketData{} + oneofValue := &KeysharePacketData_PrivateDecryptionKeyDataPacket{PrivateDecryptionKeyDataPacket: value} x.Packet = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "fairyring.keyshare.KeysharePacketData.currentKeysPacket": + case "fairyring.keyshare.KeysharePacketData.current_keys_packet": if x.Packet == nil { value := &CurrentKeysPacketData{} oneofValue := &KeysharePacketData_CurrentKeysPacket{CurrentKeysPacket: value} @@ -508,35 +508,35 @@ func (x *fastReflection_KeysharePacketData) Mutable(fd protoreflect.FieldDescrip x.Packet = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "fairyring.keyshare.KeysharePacketData.request_priv_keyshare_packet": + case "fairyring.keyshare.KeysharePacketData.request_private_decryption_key_packet": if x.Packet == nil { - value := &RequestPrivateKeysharePacketData{} - oneofValue := &KeysharePacketData_RequestPrivKeysharePacket{RequestPrivKeysharePacket: value} + value := &RequestPrivateDecryptionKeyPacketData{} + oneofValue := &KeysharePacketData_RequestPrivateDecryptionKeyPacket{RequestPrivateDecryptionKeyPacket: value} x.Packet = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } switch m := x.Packet.(type) { - case *KeysharePacketData_RequestPrivKeysharePacket: - return protoreflect.ValueOfMessage(m.RequestPrivKeysharePacket.ProtoReflect()) + case *KeysharePacketData_RequestPrivateDecryptionKeyPacket: + return protoreflect.ValueOfMessage(m.RequestPrivateDecryptionKeyPacket.ProtoReflect()) default: - value := &RequestPrivateKeysharePacketData{} - oneofValue := &KeysharePacketData_RequestPrivKeysharePacket{RequestPrivKeysharePacket: value} + value := &RequestPrivateDecryptionKeyPacketData{} + oneofValue := &KeysharePacketData_RequestPrivateDecryptionKeyPacket{RequestPrivateDecryptionKeyPacket: value} x.Packet = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } - case "fairyring.keyshare.KeysharePacketData.getPrivateKeysharePacket": + case "fairyring.keyshare.KeysharePacketData.get_private_decryption_key_packet": if x.Packet == nil { - value := &GetPrivateKeysharePacketData{} - oneofValue := &KeysharePacketData_GetPrivateKeysharePacket{GetPrivateKeysharePacket: value} + value := &GetPrivateDecryptionKeyPacketData{} + oneofValue := &KeysharePacketData_GetPrivateDecryptionKeyPacket{GetPrivateDecryptionKeyPacket: value} x.Packet = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } switch m := x.Packet.(type) { - case *KeysharePacketData_GetPrivateKeysharePacket: - return protoreflect.ValueOfMessage(m.GetPrivateKeysharePacket.ProtoReflect()) + case *KeysharePacketData_GetPrivateDecryptionKeyPacket: + return protoreflect.ValueOfMessage(m.GetPrivateDecryptionKeyPacket.ProtoReflect()) default: - value := &GetPrivateKeysharePacketData{} - oneofValue := &KeysharePacketData_GetPrivateKeysharePacket{GetPrivateKeysharePacket: value} + value := &GetPrivateDecryptionKeyPacketData{} + oneofValue := &KeysharePacketData_GetPrivateDecryptionKeyPacket{GetPrivateDecryptionKeyPacket: value} x.Packet = oneofValue return protoreflect.ValueOfMessage(value.ProtoReflect()) } @@ -553,29 +553,29 @@ func (x *fastReflection_KeysharePacketData) Mutable(fd protoreflect.FieldDescrip // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_KeysharePacketData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.KeysharePacketData.noData": + case "fairyring.keyshare.KeysharePacketData.no_data": value := &NoData{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.keyshare.KeysharePacketData.requestAggrKeysharePacket": - value := &RequestAggrKeysharePacketData{} + case "fairyring.keyshare.KeysharePacketData.request_decryption_key_packet": + value := &RequestDecryptionKeyPacketData{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.keyshare.KeysharePacketData.getAggrKeysharePacket": - value := &GetAggrKeysharePacketData{} + case "fairyring.keyshare.KeysharePacketData.get_decryption_key_packet": + value := &GetDecryptionKeyPacketData{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.keyshare.KeysharePacketData.aggrKeyshareDataPacket": - value := &AggrKeyshareDataPacketData{} + case "fairyring.keyshare.KeysharePacketData.decryption_key_data_packet": + value := &DecryptionKeyDataPacketData{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.keyshare.KeysharePacketData.encryptedKeysharesPacketData": - value := &EncryptedKeysharesPacketData{} + case "fairyring.keyshare.KeysharePacketData.private_decryption_key_data_packet": + value := &PrivateDecryptionKeyDataPacketData{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.keyshare.KeysharePacketData.currentKeysPacket": + case "fairyring.keyshare.KeysharePacketData.current_keys_packet": value := &CurrentKeysPacketData{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.keyshare.KeysharePacketData.request_priv_keyshare_packet": - value := &RequestPrivateKeysharePacketData{} + case "fairyring.keyshare.KeysharePacketData.request_private_decryption_key_packet": + value := &RequestPrivateDecryptionKeyPacketData{} return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.keyshare.KeysharePacketData.getPrivateKeysharePacket": - value := &GetPrivateKeysharePacketData{} + case "fairyring.keyshare.KeysharePacketData.get_private_decryption_key_packet": + value := &GetPrivateDecryptionKeyPacketData{} return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if fd.IsExtension() { @@ -596,21 +596,21 @@ func (x *fastReflection_KeysharePacketData) WhichOneof(d protoreflect.OneofDescr } switch x.Packet.(type) { case *KeysharePacketData_NoData: - return x.Descriptor().Fields().ByName("noData") - case *KeysharePacketData_RequestAggrKeysharePacket: - return x.Descriptor().Fields().ByName("requestAggrKeysharePacket") - case *KeysharePacketData_GetAggrKeysharePacket: - return x.Descriptor().Fields().ByName("getAggrKeysharePacket") - case *KeysharePacketData_AggrKeyshareDataPacket: - return x.Descriptor().Fields().ByName("aggrKeyshareDataPacket") - case *KeysharePacketData_EncryptedKeysharesPacketData: - return x.Descriptor().Fields().ByName("encryptedKeysharesPacketData") + return x.Descriptor().Fields().ByName("no_data") + case *KeysharePacketData_RequestDecryptionKeyPacket: + return x.Descriptor().Fields().ByName("request_decryption_key_packet") + case *KeysharePacketData_GetDecryptionKeyPacket: + return x.Descriptor().Fields().ByName("get_decryption_key_packet") + case *KeysharePacketData_DecryptionKeyDataPacket: + return x.Descriptor().Fields().ByName("decryption_key_data_packet") + case *KeysharePacketData_PrivateDecryptionKeyDataPacket: + return x.Descriptor().Fields().ByName("private_decryption_key_data_packet") case *KeysharePacketData_CurrentKeysPacket: - return x.Descriptor().Fields().ByName("currentKeysPacket") - case *KeysharePacketData_RequestPrivKeysharePacket: - return x.Descriptor().Fields().ByName("request_priv_keyshare_packet") - case *KeysharePacketData_GetPrivateKeysharePacket: - return x.Descriptor().Fields().ByName("getPrivateKeysharePacket") + return x.Descriptor().Fields().ByName("current_keys_packet") + case *KeysharePacketData_RequestPrivateDecryptionKeyPacket: + return x.Descriptor().Fields().ByName("request_private_decryption_key_packet") + case *KeysharePacketData_GetPrivateDecryptionKeyPacket: + return x.Descriptor().Fields().ByName("get_private_decryption_key_packet") } default: panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.KeysharePacketData", d.FullName())) @@ -675,29 +675,29 @@ func (x *fastReflection_KeysharePacketData) ProtoMethods() *protoiface.Methods { } l = options.Size(x.NoData) n += 1 + l + runtime.Sov(uint64(l)) - case *KeysharePacketData_RequestAggrKeysharePacket: + case *KeysharePacketData_RequestDecryptionKeyPacket: if x == nil { break } - l = options.Size(x.RequestAggrKeysharePacket) + l = options.Size(x.RequestDecryptionKeyPacket) n += 1 + l + runtime.Sov(uint64(l)) - case *KeysharePacketData_GetAggrKeysharePacket: + case *KeysharePacketData_GetDecryptionKeyPacket: if x == nil { break } - l = options.Size(x.GetAggrKeysharePacket) + l = options.Size(x.GetDecryptionKeyPacket) n += 1 + l + runtime.Sov(uint64(l)) - case *KeysharePacketData_AggrKeyshareDataPacket: + case *KeysharePacketData_DecryptionKeyDataPacket: if x == nil { break } - l = options.Size(x.AggrKeyshareDataPacket) + l = options.Size(x.DecryptionKeyDataPacket) n += 1 + l + runtime.Sov(uint64(l)) - case *KeysharePacketData_EncryptedKeysharesPacketData: + case *KeysharePacketData_PrivateDecryptionKeyDataPacket: if x == nil { break } - l = options.Size(x.EncryptedKeysharesPacketData) + l = options.Size(x.PrivateDecryptionKeyDataPacket) n += 1 + l + runtime.Sov(uint64(l)) case *KeysharePacketData_CurrentKeysPacket: if x == nil { @@ -705,17 +705,17 @@ func (x *fastReflection_KeysharePacketData) ProtoMethods() *protoiface.Methods { } l = options.Size(x.CurrentKeysPacket) n += 1 + l + runtime.Sov(uint64(l)) - case *KeysharePacketData_RequestPrivKeysharePacket: + case *KeysharePacketData_RequestPrivateDecryptionKeyPacket: if x == nil { break } - l = options.Size(x.RequestPrivKeysharePacket) + l = options.Size(x.RequestPrivateDecryptionKeyPacket) n += 1 + l + runtime.Sov(uint64(l)) - case *KeysharePacketData_GetPrivateKeysharePacket: + case *KeysharePacketData_GetPrivateDecryptionKeyPacket: if x == nil { break } - l = options.Size(x.GetPrivateKeysharePacket) + l = options.Size(x.GetPrivateDecryptionKeyPacket) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -761,8 +761,8 @@ func (x *fastReflection_KeysharePacketData) ProtoMethods() *protoiface.Methods { i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa - case *KeysharePacketData_RequestAggrKeysharePacket: - encoded, err := options.Marshal(x.RequestAggrKeysharePacket) + case *KeysharePacketData_RequestDecryptionKeyPacket: + encoded, err := options.Marshal(x.RequestDecryptionKeyPacket) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -774,8 +774,8 @@ func (x *fastReflection_KeysharePacketData) ProtoMethods() *protoiface.Methods { i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0x12 - case *KeysharePacketData_GetAggrKeysharePacket: - encoded, err := options.Marshal(x.GetAggrKeysharePacket) + case *KeysharePacketData_GetDecryptionKeyPacket: + encoded, err := options.Marshal(x.GetDecryptionKeyPacket) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -787,8 +787,8 @@ func (x *fastReflection_KeysharePacketData) ProtoMethods() *protoiface.Methods { i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0x1a - case *KeysharePacketData_AggrKeyshareDataPacket: - encoded, err := options.Marshal(x.AggrKeyshareDataPacket) + case *KeysharePacketData_DecryptionKeyDataPacket: + encoded, err := options.Marshal(x.DecryptionKeyDataPacket) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -800,8 +800,8 @@ func (x *fastReflection_KeysharePacketData) ProtoMethods() *protoiface.Methods { i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0x22 - case *KeysharePacketData_EncryptedKeysharesPacketData: - encoded, err := options.Marshal(x.EncryptedKeysharesPacketData) + case *KeysharePacketData_PrivateDecryptionKeyDataPacket: + encoded, err := options.Marshal(x.PrivateDecryptionKeyDataPacket) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -826,8 +826,8 @@ func (x *fastReflection_KeysharePacketData) ProtoMethods() *protoiface.Methods { i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0x32 - case *KeysharePacketData_RequestPrivKeysharePacket: - encoded, err := options.Marshal(x.RequestPrivKeysharePacket) + case *KeysharePacketData_RequestPrivateDecryptionKeyPacket: + encoded, err := options.Marshal(x.RequestPrivateDecryptionKeyPacket) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -839,8 +839,8 @@ func (x *fastReflection_KeysharePacketData) ProtoMethods() *protoiface.Methods { i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0x3a - case *KeysharePacketData_GetPrivateKeysharePacket: - encoded, err := options.Marshal(x.GetPrivateKeysharePacket) + case *KeysharePacketData_GetPrivateDecryptionKeyPacket: + encoded, err := options.Marshal(x.GetPrivateDecryptionKeyPacket) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -939,7 +939,7 @@ func (x *fastReflection_KeysharePacketData) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RequestAggrKeysharePacket", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RequestDecryptionKeyPacket", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -966,15 +966,15 @@ func (x *fastReflection_KeysharePacketData) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &RequestAggrKeysharePacketData{} + v := &RequestDecryptionKeyPacketData{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - x.Packet = &KeysharePacketData_RequestAggrKeysharePacket{v} + x.Packet = &KeysharePacketData_RequestDecryptionKeyPacket{v} iNdEx = postIndex case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GetAggrKeysharePacket", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GetDecryptionKeyPacket", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1001,15 +1001,15 @@ func (x *fastReflection_KeysharePacketData) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &GetAggrKeysharePacketData{} + v := &GetDecryptionKeyPacketData{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - x.Packet = &KeysharePacketData_GetAggrKeysharePacket{v} + x.Packet = &KeysharePacketData_GetDecryptionKeyPacket{v} iNdEx = postIndex case 4: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AggrKeyshareDataPacket", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DecryptionKeyDataPacket", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1036,15 +1036,15 @@ func (x *fastReflection_KeysharePacketData) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &AggrKeyshareDataPacketData{} + v := &DecryptionKeyDataPacketData{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - x.Packet = &KeysharePacketData_AggrKeyshareDataPacket{v} + x.Packet = &KeysharePacketData_DecryptionKeyDataPacket{v} iNdEx = postIndex case 5: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeysharesPacketData", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PrivateDecryptionKeyDataPacket", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1071,11 +1071,11 @@ func (x *fastReflection_KeysharePacketData) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &EncryptedKeysharesPacketData{} + v := &PrivateDecryptionKeyDataPacketData{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - x.Packet = &KeysharePacketData_EncryptedKeysharesPacketData{v} + x.Packet = &KeysharePacketData_PrivateDecryptionKeyDataPacket{v} iNdEx = postIndex case 6: if wireType != 2 { @@ -1114,7 +1114,7 @@ func (x *fastReflection_KeysharePacketData) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 7: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RequestPrivKeysharePacket", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RequestPrivateDecryptionKeyPacket", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1141,15 +1141,15 @@ func (x *fastReflection_KeysharePacketData) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &RequestPrivateKeysharePacketData{} + v := &RequestPrivateDecryptionKeyPacketData{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - x.Packet = &KeysharePacketData_RequestPrivKeysharePacket{v} + x.Packet = &KeysharePacketData_RequestPrivateDecryptionKeyPacket{v} iNdEx = postIndex case 8: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GetPrivateKeysharePacket", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GetPrivateDecryptionKeyPacket", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1176,11 +1176,11 @@ func (x *fastReflection_KeysharePacketData) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - v := &GetPrivateKeysharePacketData{} + v := &GetPrivateDecryptionKeyPacketData{} if err := options.Unmarshal(dAtA[iNdEx:postIndex], v); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - x.Packet = &KeysharePacketData_GetPrivateKeysharePacket{v} + x.Packet = &KeysharePacketData_GetPrivateDecryptionKeyPacket{v} iNdEx = postIndex default: iNdEx = preIndex @@ -1574,31 +1574,31 @@ func (x *fastReflection_NoData) ProtoMethods() *protoiface.Methods { } var ( - md_RequestAggrKeysharePacketData protoreflect.MessageDescriptor - fd_RequestAggrKeysharePacketData_requester protoreflect.FieldDescriptor - fd_RequestAggrKeysharePacketData_proposal_id protoreflect.FieldDescriptor - fd_RequestAggrKeysharePacketData_request_id protoreflect.FieldDescriptor - fd_RequestAggrKeysharePacketData_estimated_delay protoreflect.FieldDescriptor + md_RequestDecryptionKeyPacketData protoreflect.MessageDescriptor + fd_RequestDecryptionKeyPacketData_requester protoreflect.FieldDescriptor + fd_RequestDecryptionKeyPacketData_proposal_id protoreflect.FieldDescriptor + fd_RequestDecryptionKeyPacketData_request_id protoreflect.FieldDescriptor + fd_RequestDecryptionKeyPacketData_estimated_delay protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_packet_proto_init() - md_RequestAggrKeysharePacketData = File_fairyring_keyshare_packet_proto.Messages().ByName("RequestAggrKeysharePacketData") - fd_RequestAggrKeysharePacketData_requester = md_RequestAggrKeysharePacketData.Fields().ByName("requester") - fd_RequestAggrKeysharePacketData_proposal_id = md_RequestAggrKeysharePacketData.Fields().ByName("proposal_id") - fd_RequestAggrKeysharePacketData_request_id = md_RequestAggrKeysharePacketData.Fields().ByName("request_id") - fd_RequestAggrKeysharePacketData_estimated_delay = md_RequestAggrKeysharePacketData.Fields().ByName("estimated_delay") + md_RequestDecryptionKeyPacketData = File_fairyring_keyshare_packet_proto.Messages().ByName("RequestDecryptionKeyPacketData") + fd_RequestDecryptionKeyPacketData_requester = md_RequestDecryptionKeyPacketData.Fields().ByName("requester") + fd_RequestDecryptionKeyPacketData_proposal_id = md_RequestDecryptionKeyPacketData.Fields().ByName("proposal_id") + fd_RequestDecryptionKeyPacketData_request_id = md_RequestDecryptionKeyPacketData.Fields().ByName("request_id") + fd_RequestDecryptionKeyPacketData_estimated_delay = md_RequestDecryptionKeyPacketData.Fields().ByName("estimated_delay") } -var _ protoreflect.Message = (*fastReflection_RequestAggrKeysharePacketData)(nil) +var _ protoreflect.Message = (*fastReflection_RequestDecryptionKeyPacketData)(nil) -type fastReflection_RequestAggrKeysharePacketData RequestAggrKeysharePacketData +type fastReflection_RequestDecryptionKeyPacketData RequestDecryptionKeyPacketData -func (x *RequestAggrKeysharePacketData) ProtoReflect() protoreflect.Message { - return (*fastReflection_RequestAggrKeysharePacketData)(x) +func (x *RequestDecryptionKeyPacketData) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestDecryptionKeyPacketData)(x) } -func (x *RequestAggrKeysharePacketData) slowProtoReflect() protoreflect.Message { +func (x *RequestDecryptionKeyPacketData) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_packet_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1610,43 +1610,43 @@ func (x *RequestAggrKeysharePacketData) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_RequestAggrKeysharePacketData_messageType fastReflection_RequestAggrKeysharePacketData_messageType -var _ protoreflect.MessageType = fastReflection_RequestAggrKeysharePacketData_messageType{} +var _fastReflection_RequestDecryptionKeyPacketData_messageType fastReflection_RequestDecryptionKeyPacketData_messageType +var _ protoreflect.MessageType = fastReflection_RequestDecryptionKeyPacketData_messageType{} -type fastReflection_RequestAggrKeysharePacketData_messageType struct{} +type fastReflection_RequestDecryptionKeyPacketData_messageType struct{} -func (x fastReflection_RequestAggrKeysharePacketData_messageType) Zero() protoreflect.Message { - return (*fastReflection_RequestAggrKeysharePacketData)(nil) +func (x fastReflection_RequestDecryptionKeyPacketData_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestDecryptionKeyPacketData)(nil) } -func (x fastReflection_RequestAggrKeysharePacketData_messageType) New() protoreflect.Message { - return new(fastReflection_RequestAggrKeysharePacketData) +func (x fastReflection_RequestDecryptionKeyPacketData_messageType) New() protoreflect.Message { + return new(fastReflection_RequestDecryptionKeyPacketData) } -func (x fastReflection_RequestAggrKeysharePacketData_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_RequestAggrKeysharePacketData +func (x fastReflection_RequestDecryptionKeyPacketData_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestDecryptionKeyPacketData } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_RequestAggrKeysharePacketData) Descriptor() protoreflect.MessageDescriptor { - return md_RequestAggrKeysharePacketData +func (x *fastReflection_RequestDecryptionKeyPacketData) Descriptor() protoreflect.MessageDescriptor { + return md_RequestDecryptionKeyPacketData } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_RequestAggrKeysharePacketData) Type() protoreflect.MessageType { - return _fastReflection_RequestAggrKeysharePacketData_messageType +func (x *fastReflection_RequestDecryptionKeyPacketData) Type() protoreflect.MessageType { + return _fastReflection_RequestDecryptionKeyPacketData_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_RequestAggrKeysharePacketData) New() protoreflect.Message { - return new(fastReflection_RequestAggrKeysharePacketData) +func (x *fastReflection_RequestDecryptionKeyPacketData) New() protoreflect.Message { + return new(fastReflection_RequestDecryptionKeyPacketData) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_RequestAggrKeysharePacketData) Interface() protoreflect.ProtoMessage { - return (*RequestAggrKeysharePacketData)(x) +func (x *fastReflection_RequestDecryptionKeyPacketData) Interface() protoreflect.ProtoMessage { + return (*RequestDecryptionKeyPacketData)(x) } // Range iterates over every populated field in an undefined order, @@ -1654,32 +1654,32 @@ func (x *fastReflection_RequestAggrKeysharePacketData) Interface() protoreflect. // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_RequestAggrKeysharePacketData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestDecryptionKeyPacketData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Requester != "" { value := protoreflect.ValueOfString(x.Requester) - if !f(fd_RequestAggrKeysharePacketData_requester, value) { + if !f(fd_RequestDecryptionKeyPacketData_requester, value) { return } } if x.Id != nil { switch o := x.Id.(type) { - case *RequestAggrKeysharePacketData_ProposalId: + case *RequestDecryptionKeyPacketData_ProposalId: v := o.ProposalId value := protoreflect.ValueOfString(v) - if !f(fd_RequestAggrKeysharePacketData_proposal_id, value) { + if !f(fd_RequestDecryptionKeyPacketData_proposal_id, value) { return } - case *RequestAggrKeysharePacketData_RequestId: + case *RequestDecryptionKeyPacketData_RequestId: v := o.RequestId value := protoreflect.ValueOfString(v) - if !f(fd_RequestAggrKeysharePacketData_request_id, value) { + if !f(fd_RequestDecryptionKeyPacketData_request_id, value) { return } } } if x.EstimatedDelay != nil { value := protoreflect.ValueOfMessage(x.EstimatedDelay.ProtoReflect()) - if !f(fd_RequestAggrKeysharePacketData_estimated_delay, value) { + if !f(fd_RequestDecryptionKeyPacketData_estimated_delay, value) { return } } @@ -1696,33 +1696,33 @@ func (x *fastReflection_RequestAggrKeysharePacketData) Range(f func(protoreflect // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_RequestAggrKeysharePacketData) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestDecryptionKeyPacketData) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.RequestAggrKeysharePacketData.requester": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.requester": return x.Requester != "" - case "fairyring.keyshare.RequestAggrKeysharePacketData.proposal_id": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.proposal_id": if x.Id == nil { return false - } else if _, ok := x.Id.(*RequestAggrKeysharePacketData_ProposalId); ok { + } else if _, ok := x.Id.(*RequestDecryptionKeyPacketData_ProposalId); ok { return true } else { return false } - case "fairyring.keyshare.RequestAggrKeysharePacketData.request_id": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.request_id": if x.Id == nil { return false - } else if _, ok := x.Id.(*RequestAggrKeysharePacketData_RequestId); ok { + } else if _, ok := x.Id.(*RequestDecryptionKeyPacketData_RequestId); ok { return true } else { return false } - case "fairyring.keyshare.RequestAggrKeysharePacketData.estimated_delay": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.estimated_delay": return x.EstimatedDelay != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestAggrKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestAggrKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } @@ -1732,21 +1732,21 @@ func (x *fastReflection_RequestAggrKeysharePacketData) Has(fd protoreflect.Field // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestAggrKeysharePacketData) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestDecryptionKeyPacketData) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.RequestAggrKeysharePacketData.requester": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.requester": x.Requester = "" - case "fairyring.keyshare.RequestAggrKeysharePacketData.proposal_id": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.proposal_id": x.Id = nil - case "fairyring.keyshare.RequestAggrKeysharePacketData.request_id": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.request_id": x.Id = nil - case "fairyring.keyshare.RequestAggrKeysharePacketData.estimated_delay": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.estimated_delay": x.EstimatedDelay = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestAggrKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestAggrKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } @@ -1756,35 +1756,35 @@ func (x *fastReflection_RequestAggrKeysharePacketData) Clear(fd protoreflect.Fie // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_RequestAggrKeysharePacketData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestDecryptionKeyPacketData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.RequestAggrKeysharePacketData.requester": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.requester": value := x.Requester return protoreflect.ValueOfString(value) - case "fairyring.keyshare.RequestAggrKeysharePacketData.proposal_id": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.proposal_id": if x.Id == nil { return protoreflect.ValueOfString("") - } else if v, ok := x.Id.(*RequestAggrKeysharePacketData_ProposalId); ok { + } else if v, ok := x.Id.(*RequestDecryptionKeyPacketData_ProposalId); ok { return protoreflect.ValueOfString(v.ProposalId) } else { return protoreflect.ValueOfString("") } - case "fairyring.keyshare.RequestAggrKeysharePacketData.request_id": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.request_id": if x.Id == nil { return protoreflect.ValueOfString("") - } else if v, ok := x.Id.(*RequestAggrKeysharePacketData_RequestId); ok { + } else if v, ok := x.Id.(*RequestDecryptionKeyPacketData_RequestId); ok { return protoreflect.ValueOfString(v.RequestId) } else { return protoreflect.ValueOfString("") } - case "fairyring.keyshare.RequestAggrKeysharePacketData.estimated_delay": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.estimated_delay": value := x.EstimatedDelay return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestAggrKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestAggrKeysharePacketData does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestDecryptionKeyPacketData does not contain field %s", descriptor.FullName())) } } @@ -1798,23 +1798,23 @@ func (x *fastReflection_RequestAggrKeysharePacketData) Get(descriptor protorefle // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestAggrKeysharePacketData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestDecryptionKeyPacketData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.RequestAggrKeysharePacketData.requester": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.requester": x.Requester = value.Interface().(string) - case "fairyring.keyshare.RequestAggrKeysharePacketData.proposal_id": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.proposal_id": cv := value.Interface().(string) - x.Id = &RequestAggrKeysharePacketData_ProposalId{ProposalId: cv} - case "fairyring.keyshare.RequestAggrKeysharePacketData.request_id": + x.Id = &RequestDecryptionKeyPacketData_ProposalId{ProposalId: cv} + case "fairyring.keyshare.RequestDecryptionKeyPacketData.request_id": cv := value.Interface().(string) - x.Id = &RequestAggrKeysharePacketData_RequestId{RequestId: cv} - case "fairyring.keyshare.RequestAggrKeysharePacketData.estimated_delay": + x.Id = &RequestDecryptionKeyPacketData_RequestId{RequestId: cv} + case "fairyring.keyshare.RequestDecryptionKeyPacketData.estimated_delay": x.EstimatedDelay = value.Message().Interface().(*durationpb.Duration) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestAggrKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestAggrKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } @@ -1828,66 +1828,66 @@ func (x *fastReflection_RequestAggrKeysharePacketData) Set(fd protoreflect.Field // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestAggrKeysharePacketData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestDecryptionKeyPacketData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.RequestAggrKeysharePacketData.estimated_delay": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.estimated_delay": if x.EstimatedDelay == nil { x.EstimatedDelay = new(durationpb.Duration) } return protoreflect.ValueOfMessage(x.EstimatedDelay.ProtoReflect()) - case "fairyring.keyshare.RequestAggrKeysharePacketData.requester": - panic(fmt.Errorf("field requester of message fairyring.keyshare.RequestAggrKeysharePacketData is not mutable")) - case "fairyring.keyshare.RequestAggrKeysharePacketData.proposal_id": - panic(fmt.Errorf("field proposal_id of message fairyring.keyshare.RequestAggrKeysharePacketData is not mutable")) - case "fairyring.keyshare.RequestAggrKeysharePacketData.request_id": - panic(fmt.Errorf("field request_id of message fairyring.keyshare.RequestAggrKeysharePacketData is not mutable")) + case "fairyring.keyshare.RequestDecryptionKeyPacketData.requester": + panic(fmt.Errorf("field requester of message fairyring.keyshare.RequestDecryptionKeyPacketData is not mutable")) + case "fairyring.keyshare.RequestDecryptionKeyPacketData.proposal_id": + panic(fmt.Errorf("field proposal_id of message fairyring.keyshare.RequestDecryptionKeyPacketData is not mutable")) + case "fairyring.keyshare.RequestDecryptionKeyPacketData.request_id": + panic(fmt.Errorf("field request_id of message fairyring.keyshare.RequestDecryptionKeyPacketData is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestAggrKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestAggrKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_RequestAggrKeysharePacketData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestDecryptionKeyPacketData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.RequestAggrKeysharePacketData.requester": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.requester": return protoreflect.ValueOfString("") - case "fairyring.keyshare.RequestAggrKeysharePacketData.proposal_id": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.proposal_id": return protoreflect.ValueOfString("") - case "fairyring.keyshare.RequestAggrKeysharePacketData.request_id": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.request_id": return protoreflect.ValueOfString("") - case "fairyring.keyshare.RequestAggrKeysharePacketData.estimated_delay": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.estimated_delay": m := new(durationpb.Duration) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestAggrKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestAggrKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_RequestAggrKeysharePacketData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestDecryptionKeyPacketData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { - case "fairyring.keyshare.RequestAggrKeysharePacketData.id": + case "fairyring.keyshare.RequestDecryptionKeyPacketData.id": if x.Id == nil { return nil } switch x.Id.(type) { - case *RequestAggrKeysharePacketData_ProposalId: + case *RequestDecryptionKeyPacketData_ProposalId: return x.Descriptor().Fields().ByName("proposal_id") - case *RequestAggrKeysharePacketData_RequestId: + case *RequestDecryptionKeyPacketData_RequestId: return x.Descriptor().Fields().ByName("request_id") } default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.RequestAggrKeysharePacketData", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.RequestDecryptionKeyPacketData", d.FullName())) } panic("unreachable") } @@ -1895,7 +1895,7 @@ func (x *fastReflection_RequestAggrKeysharePacketData) WhichOneof(d protoreflect // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_RequestAggrKeysharePacketData) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestDecryptionKeyPacketData) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1906,7 +1906,7 @@ func (x *fastReflection_RequestAggrKeysharePacketData) GetUnknown() protoreflect // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestAggrKeysharePacketData) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestDecryptionKeyPacketData) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1918,7 +1918,7 @@ func (x *fastReflection_RequestAggrKeysharePacketData) SetUnknown(fields protore // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_RequestAggrKeysharePacketData) IsValid() bool { +func (x *fastReflection_RequestDecryptionKeyPacketData) IsValid() bool { return x != nil } @@ -1928,9 +1928,9 @@ func (x *fastReflection_RequestAggrKeysharePacketData) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_RequestAggrKeysharePacketData) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestDecryptionKeyPacketData) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*RequestAggrKeysharePacketData) + x := input.Message.Interface().(*RequestDecryptionKeyPacketData) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1947,13 +1947,13 @@ func (x *fastReflection_RequestAggrKeysharePacketData) ProtoMethods() *protoifac n += 1 + l + runtime.Sov(uint64(l)) } switch x := x.Id.(type) { - case *RequestAggrKeysharePacketData_ProposalId: + case *RequestDecryptionKeyPacketData_ProposalId: if x == nil { break } l = len(x.ProposalId) n += 1 + l + runtime.Sov(uint64(l)) - case *RequestAggrKeysharePacketData_RequestId: + case *RequestDecryptionKeyPacketData_RequestId: if x == nil { break } @@ -1974,7 +1974,7 @@ func (x *fastReflection_RequestAggrKeysharePacketData) ProtoMethods() *protoifac } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*RequestAggrKeysharePacketData) + x := input.Message.Interface().(*RequestDecryptionKeyPacketData) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1994,13 +1994,13 @@ func (x *fastReflection_RequestAggrKeysharePacketData) ProtoMethods() *protoifac copy(dAtA[i:], x.unknownFields) } switch x := x.Id.(type) { - case *RequestAggrKeysharePacketData_ProposalId: + case *RequestDecryptionKeyPacketData_ProposalId: i -= len(x.ProposalId) copy(dAtA[i:], x.ProposalId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ProposalId))) i-- dAtA[i] = 0x12 - case *RequestAggrKeysharePacketData_RequestId: + case *RequestDecryptionKeyPacketData_RequestId: i -= len(x.RequestId) copy(dAtA[i:], x.RequestId) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RequestId))) @@ -2039,7 +2039,7 @@ func (x *fastReflection_RequestAggrKeysharePacketData) ProtoMethods() *protoifac }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*RequestAggrKeysharePacketData) + x := input.Message.Interface().(*RequestDecryptionKeyPacketData) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2071,10 +2071,10 @@ func (x *fastReflection_RequestAggrKeysharePacketData) ProtoMethods() *protoifac fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestAggrKeysharePacketData: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestDecryptionKeyPacketData: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestAggrKeysharePacketData: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestDecryptionKeyPacketData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2139,7 +2139,7 @@ func (x *fastReflection_RequestAggrKeysharePacketData) ProtoMethods() *protoifac if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Id = &RequestAggrKeysharePacketData_ProposalId{string(dAtA[iNdEx:postIndex])} + x.Id = &RequestDecryptionKeyPacketData_ProposalId{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 3: if wireType != 2 { @@ -2171,7 +2171,7 @@ func (x *fastReflection_RequestAggrKeysharePacketData) ProtoMethods() *protoifac if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Id = &RequestAggrKeysharePacketData_RequestId{string(dAtA[iNdEx:postIndex])} + x.Id = &RequestDecryptionKeyPacketData_RequestId{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 4: if wireType != 2 { @@ -2245,27 +2245,27 @@ func (x *fastReflection_RequestAggrKeysharePacketData) ProtoMethods() *protoifac } var ( - md_RequestPrivateKeysharePacketData protoreflect.MessageDescriptor - fd_RequestPrivateKeysharePacketData_requester protoreflect.FieldDescriptor - fd_RequestPrivateKeysharePacketData_request_id protoreflect.FieldDescriptor + md_RequestPrivateDecryptionKeyPacketData protoreflect.MessageDescriptor + fd_RequestPrivateDecryptionKeyPacketData_requester protoreflect.FieldDescriptor + fd_RequestPrivateDecryptionKeyPacketData_request_id protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_packet_proto_init() - md_RequestPrivateKeysharePacketData = File_fairyring_keyshare_packet_proto.Messages().ByName("RequestPrivateKeysharePacketData") - fd_RequestPrivateKeysharePacketData_requester = md_RequestPrivateKeysharePacketData.Fields().ByName("requester") - fd_RequestPrivateKeysharePacketData_request_id = md_RequestPrivateKeysharePacketData.Fields().ByName("request_id") + md_RequestPrivateDecryptionKeyPacketData = File_fairyring_keyshare_packet_proto.Messages().ByName("RequestPrivateDecryptionKeyPacketData") + fd_RequestPrivateDecryptionKeyPacketData_requester = md_RequestPrivateDecryptionKeyPacketData.Fields().ByName("requester") + fd_RequestPrivateDecryptionKeyPacketData_request_id = md_RequestPrivateDecryptionKeyPacketData.Fields().ByName("request_id") } -var _ protoreflect.Message = (*fastReflection_RequestPrivateKeysharePacketData)(nil) +var _ protoreflect.Message = (*fastReflection_RequestPrivateDecryptionKeyPacketData)(nil) -type fastReflection_RequestPrivateKeysharePacketData RequestPrivateKeysharePacketData +type fastReflection_RequestPrivateDecryptionKeyPacketData RequestPrivateDecryptionKeyPacketData -func (x *RequestPrivateKeysharePacketData) ProtoReflect() protoreflect.Message { - return (*fastReflection_RequestPrivateKeysharePacketData)(x) +func (x *RequestPrivateDecryptionKeyPacketData) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestPrivateDecryptionKeyPacketData)(x) } -func (x *RequestPrivateKeysharePacketData) slowProtoReflect() protoreflect.Message { +func (x *RequestPrivateDecryptionKeyPacketData) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_packet_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2277,43 +2277,43 @@ func (x *RequestPrivateKeysharePacketData) slowProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -var _fastReflection_RequestPrivateKeysharePacketData_messageType fastReflection_RequestPrivateKeysharePacketData_messageType -var _ protoreflect.MessageType = fastReflection_RequestPrivateKeysharePacketData_messageType{} +var _fastReflection_RequestPrivateDecryptionKeyPacketData_messageType fastReflection_RequestPrivateDecryptionKeyPacketData_messageType +var _ protoreflect.MessageType = fastReflection_RequestPrivateDecryptionKeyPacketData_messageType{} -type fastReflection_RequestPrivateKeysharePacketData_messageType struct{} +type fastReflection_RequestPrivateDecryptionKeyPacketData_messageType struct{} -func (x fastReflection_RequestPrivateKeysharePacketData_messageType) Zero() protoreflect.Message { - return (*fastReflection_RequestPrivateKeysharePacketData)(nil) +func (x fastReflection_RequestPrivateDecryptionKeyPacketData_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestPrivateDecryptionKeyPacketData)(nil) } -func (x fastReflection_RequestPrivateKeysharePacketData_messageType) New() protoreflect.Message { - return new(fastReflection_RequestPrivateKeysharePacketData) +func (x fastReflection_RequestPrivateDecryptionKeyPacketData_messageType) New() protoreflect.Message { + return new(fastReflection_RequestPrivateDecryptionKeyPacketData) } -func (x fastReflection_RequestPrivateKeysharePacketData_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_RequestPrivateKeysharePacketData +func (x fastReflection_RequestPrivateDecryptionKeyPacketData_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestPrivateDecryptionKeyPacketData } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_RequestPrivateKeysharePacketData) Descriptor() protoreflect.MessageDescriptor { - return md_RequestPrivateKeysharePacketData +func (x *fastReflection_RequestPrivateDecryptionKeyPacketData) Descriptor() protoreflect.MessageDescriptor { + return md_RequestPrivateDecryptionKeyPacketData } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_RequestPrivateKeysharePacketData) Type() protoreflect.MessageType { - return _fastReflection_RequestPrivateKeysharePacketData_messageType +func (x *fastReflection_RequestPrivateDecryptionKeyPacketData) Type() protoreflect.MessageType { + return _fastReflection_RequestPrivateDecryptionKeyPacketData_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_RequestPrivateKeysharePacketData) New() protoreflect.Message { - return new(fastReflection_RequestPrivateKeysharePacketData) +func (x *fastReflection_RequestPrivateDecryptionKeyPacketData) New() protoreflect.Message { + return new(fastReflection_RequestPrivateDecryptionKeyPacketData) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_RequestPrivateKeysharePacketData) Interface() protoreflect.ProtoMessage { - return (*RequestPrivateKeysharePacketData)(x) +func (x *fastReflection_RequestPrivateDecryptionKeyPacketData) Interface() protoreflect.ProtoMessage { + return (*RequestPrivateDecryptionKeyPacketData)(x) } // Range iterates over every populated field in an undefined order, @@ -2321,16 +2321,16 @@ func (x *fastReflection_RequestPrivateKeysharePacketData) Interface() protorefle // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_RequestPrivateKeysharePacketData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Requester != "" { value := protoreflect.ValueOfString(x.Requester) - if !f(fd_RequestPrivateKeysharePacketData_requester, value) { + if !f(fd_RequestPrivateDecryptionKeyPacketData_requester, value) { return } } if x.RequestId != "" { value := protoreflect.ValueOfString(x.RequestId) - if !f(fd_RequestPrivateKeysharePacketData_request_id, value) { + if !f(fd_RequestPrivateDecryptionKeyPacketData_request_id, value) { return } } @@ -2347,17 +2347,17 @@ func (x *fastReflection_RequestPrivateKeysharePacketData) Range(f func(protorefl // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_RequestPrivateKeysharePacketData) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketData) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.RequestPrivateKeysharePacketData.requester": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketData.requester": return x.Requester != "" - case "fairyring.keyshare.RequestPrivateKeysharePacketData.request_id": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketData.request_id": return x.RequestId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } @@ -2367,17 +2367,17 @@ func (x *fastReflection_RequestPrivateKeysharePacketData) Has(fd protoreflect.Fi // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestPrivateKeysharePacketData) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketData) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.RequestPrivateKeysharePacketData.requester": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketData.requester": x.Requester = "" - case "fairyring.keyshare.RequestPrivateKeysharePacketData.request_id": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketData.request_id": x.RequestId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } @@ -2387,19 +2387,19 @@ func (x *fastReflection_RequestPrivateKeysharePacketData) Clear(fd protoreflect. // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_RequestPrivateKeysharePacketData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.RequestPrivateKeysharePacketData.requester": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketData.requester": value := x.Requester return protoreflect.ValueOfString(value) - case "fairyring.keyshare.RequestPrivateKeysharePacketData.request_id": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketData.request_id": value := x.RequestId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateKeysharePacketData does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateDecryptionKeyPacketData does not contain field %s", descriptor.FullName())) } } @@ -2413,17 +2413,17 @@ func (x *fastReflection_RequestPrivateKeysharePacketData) Get(descriptor protore // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestPrivateKeysharePacketData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.RequestPrivateKeysharePacketData.requester": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketData.requester": x.Requester = value.Interface().(string) - case "fairyring.keyshare.RequestPrivateKeysharePacketData.request_id": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketData.request_id": x.RequestId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } @@ -2437,44 +2437,44 @@ func (x *fastReflection_RequestPrivateKeysharePacketData) Set(fd protoreflect.Fi // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestPrivateKeysharePacketData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.RequestPrivateKeysharePacketData.requester": - panic(fmt.Errorf("field requester of message fairyring.keyshare.RequestPrivateKeysharePacketData is not mutable")) - case "fairyring.keyshare.RequestPrivateKeysharePacketData.request_id": - panic(fmt.Errorf("field request_id of message fairyring.keyshare.RequestPrivateKeysharePacketData is not mutable")) + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketData.requester": + panic(fmt.Errorf("field requester of message fairyring.keyshare.RequestPrivateDecryptionKeyPacketData is not mutable")) + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketData.request_id": + panic(fmt.Errorf("field request_id of message fairyring.keyshare.RequestPrivateDecryptionKeyPacketData is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_RequestPrivateKeysharePacketData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.RequestPrivateKeysharePacketData.requester": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketData.requester": return protoreflect.ValueOfString("") - case "fairyring.keyshare.RequestPrivateKeysharePacketData.request_id": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketData.request_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_RequestPrivateKeysharePacketData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.RequestPrivateKeysharePacketData", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.RequestPrivateDecryptionKeyPacketData", d.FullName())) } panic("unreachable") } @@ -2482,7 +2482,7 @@ func (x *fastReflection_RequestPrivateKeysharePacketData) WhichOneof(d protorefl // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_RequestPrivateKeysharePacketData) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketData) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2493,7 +2493,7 @@ func (x *fastReflection_RequestPrivateKeysharePacketData) GetUnknown() protorefl // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestPrivateKeysharePacketData) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketData) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2505,7 +2505,7 @@ func (x *fastReflection_RequestPrivateKeysharePacketData) SetUnknown(fields prot // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_RequestPrivateKeysharePacketData) IsValid() bool { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketData) IsValid() bool { return x != nil } @@ -2515,9 +2515,9 @@ func (x *fastReflection_RequestPrivateKeysharePacketData) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_RequestPrivateKeysharePacketData) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketData) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*RequestPrivateKeysharePacketData) + x := input.Message.Interface().(*RequestPrivateDecryptionKeyPacketData) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2547,7 +2547,7 @@ func (x *fastReflection_RequestPrivateKeysharePacketData) ProtoMethods() *protoi } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*RequestPrivateKeysharePacketData) + x := input.Message.Interface().(*RequestPrivateDecryptionKeyPacketData) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2591,7 +2591,7 @@ func (x *fastReflection_RequestPrivateKeysharePacketData) ProtoMethods() *protoi }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*RequestPrivateKeysharePacketData) + x := input.Message.Interface().(*RequestPrivateDecryptionKeyPacketData) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2623,10 +2623,10 @@ func (x *fastReflection_RequestPrivateKeysharePacketData) ProtoMethods() *protoi fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestPrivateKeysharePacketData: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestPrivateDecryptionKeyPacketData: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestPrivateKeysharePacketData: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestPrivateDecryptionKeyPacketData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2729,27 +2729,27 @@ func (x *fastReflection_RequestPrivateKeysharePacketData) ProtoMethods() *protoi } var ( - md_RequestPrivateKeysharePacketAck protoreflect.MessageDescriptor - fd_RequestPrivateKeysharePacketAck_identity protoreflect.FieldDescriptor - fd_RequestPrivateKeysharePacketAck_pubkey protoreflect.FieldDescriptor + md_RequestPrivateDecryptionKeyPacketAck protoreflect.MessageDescriptor + fd_RequestPrivateDecryptionKeyPacketAck_identity protoreflect.FieldDescriptor + fd_RequestPrivateDecryptionKeyPacketAck_pubkey protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_packet_proto_init() - md_RequestPrivateKeysharePacketAck = File_fairyring_keyshare_packet_proto.Messages().ByName("RequestPrivateKeysharePacketAck") - fd_RequestPrivateKeysharePacketAck_identity = md_RequestPrivateKeysharePacketAck.Fields().ByName("identity") - fd_RequestPrivateKeysharePacketAck_pubkey = md_RequestPrivateKeysharePacketAck.Fields().ByName("pubkey") + md_RequestPrivateDecryptionKeyPacketAck = File_fairyring_keyshare_packet_proto.Messages().ByName("RequestPrivateDecryptionKeyPacketAck") + fd_RequestPrivateDecryptionKeyPacketAck_identity = md_RequestPrivateDecryptionKeyPacketAck.Fields().ByName("identity") + fd_RequestPrivateDecryptionKeyPacketAck_pubkey = md_RequestPrivateDecryptionKeyPacketAck.Fields().ByName("pubkey") } -var _ protoreflect.Message = (*fastReflection_RequestPrivateKeysharePacketAck)(nil) +var _ protoreflect.Message = (*fastReflection_RequestPrivateDecryptionKeyPacketAck)(nil) -type fastReflection_RequestPrivateKeysharePacketAck RequestPrivateKeysharePacketAck +type fastReflection_RequestPrivateDecryptionKeyPacketAck RequestPrivateDecryptionKeyPacketAck -func (x *RequestPrivateKeysharePacketAck) ProtoReflect() protoreflect.Message { - return (*fastReflection_RequestPrivateKeysharePacketAck)(x) +func (x *RequestPrivateDecryptionKeyPacketAck) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestPrivateDecryptionKeyPacketAck)(x) } -func (x *RequestPrivateKeysharePacketAck) slowProtoReflect() protoreflect.Message { +func (x *RequestPrivateDecryptionKeyPacketAck) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_packet_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2761,43 +2761,43 @@ func (x *RequestPrivateKeysharePacketAck) slowProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -var _fastReflection_RequestPrivateKeysharePacketAck_messageType fastReflection_RequestPrivateKeysharePacketAck_messageType -var _ protoreflect.MessageType = fastReflection_RequestPrivateKeysharePacketAck_messageType{} +var _fastReflection_RequestPrivateDecryptionKeyPacketAck_messageType fastReflection_RequestPrivateDecryptionKeyPacketAck_messageType +var _ protoreflect.MessageType = fastReflection_RequestPrivateDecryptionKeyPacketAck_messageType{} -type fastReflection_RequestPrivateKeysharePacketAck_messageType struct{} +type fastReflection_RequestPrivateDecryptionKeyPacketAck_messageType struct{} -func (x fastReflection_RequestPrivateKeysharePacketAck_messageType) Zero() protoreflect.Message { - return (*fastReflection_RequestPrivateKeysharePacketAck)(nil) +func (x fastReflection_RequestPrivateDecryptionKeyPacketAck_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestPrivateDecryptionKeyPacketAck)(nil) } -func (x fastReflection_RequestPrivateKeysharePacketAck_messageType) New() protoreflect.Message { - return new(fastReflection_RequestPrivateKeysharePacketAck) +func (x fastReflection_RequestPrivateDecryptionKeyPacketAck_messageType) New() protoreflect.Message { + return new(fastReflection_RequestPrivateDecryptionKeyPacketAck) } -func (x fastReflection_RequestPrivateKeysharePacketAck_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_RequestPrivateKeysharePacketAck +func (x fastReflection_RequestPrivateDecryptionKeyPacketAck_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestPrivateDecryptionKeyPacketAck } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_RequestPrivateKeysharePacketAck) Descriptor() protoreflect.MessageDescriptor { - return md_RequestPrivateKeysharePacketAck +func (x *fastReflection_RequestPrivateDecryptionKeyPacketAck) Descriptor() protoreflect.MessageDescriptor { + return md_RequestPrivateDecryptionKeyPacketAck } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_RequestPrivateKeysharePacketAck) Type() protoreflect.MessageType { - return _fastReflection_RequestPrivateKeysharePacketAck_messageType +func (x *fastReflection_RequestPrivateDecryptionKeyPacketAck) Type() protoreflect.MessageType { + return _fastReflection_RequestPrivateDecryptionKeyPacketAck_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_RequestPrivateKeysharePacketAck) New() protoreflect.Message { - return new(fastReflection_RequestPrivateKeysharePacketAck) +func (x *fastReflection_RequestPrivateDecryptionKeyPacketAck) New() protoreflect.Message { + return new(fastReflection_RequestPrivateDecryptionKeyPacketAck) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_RequestPrivateKeysharePacketAck) Interface() protoreflect.ProtoMessage { - return (*RequestPrivateKeysharePacketAck)(x) +func (x *fastReflection_RequestPrivateDecryptionKeyPacketAck) Interface() protoreflect.ProtoMessage { + return (*RequestPrivateDecryptionKeyPacketAck)(x) } // Range iterates over every populated field in an undefined order, @@ -2805,16 +2805,16 @@ func (x *fastReflection_RequestPrivateKeysharePacketAck) Interface() protoreflec // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_RequestPrivateKeysharePacketAck) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketAck) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Identity != "" { value := protoreflect.ValueOfString(x.Identity) - if !f(fd_RequestPrivateKeysharePacketAck_identity, value) { + if !f(fd_RequestPrivateDecryptionKeyPacketAck_identity, value) { return } } if x.Pubkey != "" { value := protoreflect.ValueOfString(x.Pubkey) - if !f(fd_RequestPrivateKeysharePacketAck_pubkey, value) { + if !f(fd_RequestPrivateDecryptionKeyPacketAck_pubkey, value) { return } } @@ -2831,17 +2831,17 @@ func (x *fastReflection_RequestPrivateKeysharePacketAck) Range(f func(protorefle // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_RequestPrivateKeysharePacketAck) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketAck) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.RequestPrivateKeysharePacketAck.identity": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck.identity": return x.Identity != "" - case "fairyring.keyshare.RequestPrivateKeysharePacketAck.pubkey": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck.pubkey": return x.Pubkey != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } @@ -2851,17 +2851,17 @@ func (x *fastReflection_RequestPrivateKeysharePacketAck) Has(fd protoreflect.Fie // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestPrivateKeysharePacketAck) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketAck) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.RequestPrivateKeysharePacketAck.identity": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck.identity": x.Identity = "" - case "fairyring.keyshare.RequestPrivateKeysharePacketAck.pubkey": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck.pubkey": x.Pubkey = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } @@ -2871,19 +2871,19 @@ func (x *fastReflection_RequestPrivateKeysharePacketAck) Clear(fd protoreflect.F // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_RequestPrivateKeysharePacketAck) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketAck) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.RequestPrivateKeysharePacketAck.identity": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck.identity": value := x.Identity return protoreflect.ValueOfString(value) - case "fairyring.keyshare.RequestPrivateKeysharePacketAck.pubkey": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck.pubkey": value := x.Pubkey return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateKeysharePacketAck does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck does not contain field %s", descriptor.FullName())) } } @@ -2897,17 +2897,17 @@ func (x *fastReflection_RequestPrivateKeysharePacketAck) Get(descriptor protoref // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestPrivateKeysharePacketAck) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketAck) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.RequestPrivateKeysharePacketAck.identity": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck.identity": x.Identity = value.Interface().(string) - case "fairyring.keyshare.RequestPrivateKeysharePacketAck.pubkey": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck.pubkey": x.Pubkey = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } @@ -2921,44 +2921,44 @@ func (x *fastReflection_RequestPrivateKeysharePacketAck) Set(fd protoreflect.Fie // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestPrivateKeysharePacketAck) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketAck) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.RequestPrivateKeysharePacketAck.identity": - panic(fmt.Errorf("field identity of message fairyring.keyshare.RequestPrivateKeysharePacketAck is not mutable")) - case "fairyring.keyshare.RequestPrivateKeysharePacketAck.pubkey": - panic(fmt.Errorf("field pubkey of message fairyring.keyshare.RequestPrivateKeysharePacketAck is not mutable")) + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck.identity": + panic(fmt.Errorf("field identity of message fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck is not mutable")) + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck.pubkey": + panic(fmt.Errorf("field pubkey of message fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_RequestPrivateKeysharePacketAck) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketAck) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.RequestPrivateKeysharePacketAck.identity": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck.identity": return protoreflect.ValueOfString("") - case "fairyring.keyshare.RequestPrivateKeysharePacketAck.pubkey": + case "fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck.pubkey": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_RequestPrivateKeysharePacketAck) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketAck) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.RequestPrivateKeysharePacketAck", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck", d.FullName())) } panic("unreachable") } @@ -2966,7 +2966,7 @@ func (x *fastReflection_RequestPrivateKeysharePacketAck) WhichOneof(d protorefle // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_RequestPrivateKeysharePacketAck) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketAck) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2977,7 +2977,7 @@ func (x *fastReflection_RequestPrivateKeysharePacketAck) GetUnknown() protorefle // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestPrivateKeysharePacketAck) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketAck) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2989,7 +2989,7 @@ func (x *fastReflection_RequestPrivateKeysharePacketAck) SetUnknown(fields proto // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_RequestPrivateKeysharePacketAck) IsValid() bool { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketAck) IsValid() bool { return x != nil } @@ -2999,9 +2999,9 @@ func (x *fastReflection_RequestPrivateKeysharePacketAck) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_RequestPrivateKeysharePacketAck) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestPrivateDecryptionKeyPacketAck) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*RequestPrivateKeysharePacketAck) + x := input.Message.Interface().(*RequestPrivateDecryptionKeyPacketAck) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3031,7 +3031,7 @@ func (x *fastReflection_RequestPrivateKeysharePacketAck) ProtoMethods() *protoif } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*RequestPrivateKeysharePacketAck) + x := input.Message.Interface().(*RequestPrivateDecryptionKeyPacketAck) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3075,7 +3075,7 @@ func (x *fastReflection_RequestPrivateKeysharePacketAck) ProtoMethods() *protoif }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*RequestPrivateKeysharePacketAck) + x := input.Message.Interface().(*RequestPrivateDecryptionKeyPacketAck) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3107,10 +3107,10 @@ func (x *fastReflection_RequestPrivateKeysharePacketAck) ProtoMethods() *protoif fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestPrivateKeysharePacketAck: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestPrivateDecryptionKeyPacketAck: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestPrivateKeysharePacketAck: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestPrivateDecryptionKeyPacketAck: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3213,27 +3213,27 @@ func (x *fastReflection_RequestPrivateKeysharePacketAck) ProtoMethods() *protoif } var ( - md_RequestAggrKeysharePacketAck protoreflect.MessageDescriptor - fd_RequestAggrKeysharePacketAck_identity protoreflect.FieldDescriptor - fd_RequestAggrKeysharePacketAck_pubkey protoreflect.FieldDescriptor + md_RequestDecryptionKeyPacketAck protoreflect.MessageDescriptor + fd_RequestDecryptionKeyPacketAck_identity protoreflect.FieldDescriptor + fd_RequestDecryptionKeyPacketAck_pubkey protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_packet_proto_init() - md_RequestAggrKeysharePacketAck = File_fairyring_keyshare_packet_proto.Messages().ByName("RequestAggrKeysharePacketAck") - fd_RequestAggrKeysharePacketAck_identity = md_RequestAggrKeysharePacketAck.Fields().ByName("identity") - fd_RequestAggrKeysharePacketAck_pubkey = md_RequestAggrKeysharePacketAck.Fields().ByName("pubkey") + md_RequestDecryptionKeyPacketAck = File_fairyring_keyshare_packet_proto.Messages().ByName("RequestDecryptionKeyPacketAck") + fd_RequestDecryptionKeyPacketAck_identity = md_RequestDecryptionKeyPacketAck.Fields().ByName("identity") + fd_RequestDecryptionKeyPacketAck_pubkey = md_RequestDecryptionKeyPacketAck.Fields().ByName("pubkey") } -var _ protoreflect.Message = (*fastReflection_RequestAggrKeysharePacketAck)(nil) +var _ protoreflect.Message = (*fastReflection_RequestDecryptionKeyPacketAck)(nil) -type fastReflection_RequestAggrKeysharePacketAck RequestAggrKeysharePacketAck +type fastReflection_RequestDecryptionKeyPacketAck RequestDecryptionKeyPacketAck -func (x *RequestAggrKeysharePacketAck) ProtoReflect() protoreflect.Message { - return (*fastReflection_RequestAggrKeysharePacketAck)(x) +func (x *RequestDecryptionKeyPacketAck) ProtoReflect() protoreflect.Message { + return (*fastReflection_RequestDecryptionKeyPacketAck)(x) } -func (x *RequestAggrKeysharePacketAck) slowProtoReflect() protoreflect.Message { +func (x *RequestDecryptionKeyPacketAck) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_packet_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3245,43 +3245,43 @@ func (x *RequestAggrKeysharePacketAck) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_RequestAggrKeysharePacketAck_messageType fastReflection_RequestAggrKeysharePacketAck_messageType -var _ protoreflect.MessageType = fastReflection_RequestAggrKeysharePacketAck_messageType{} +var _fastReflection_RequestDecryptionKeyPacketAck_messageType fastReflection_RequestDecryptionKeyPacketAck_messageType +var _ protoreflect.MessageType = fastReflection_RequestDecryptionKeyPacketAck_messageType{} -type fastReflection_RequestAggrKeysharePacketAck_messageType struct{} +type fastReflection_RequestDecryptionKeyPacketAck_messageType struct{} -func (x fastReflection_RequestAggrKeysharePacketAck_messageType) Zero() protoreflect.Message { - return (*fastReflection_RequestAggrKeysharePacketAck)(nil) +func (x fastReflection_RequestDecryptionKeyPacketAck_messageType) Zero() protoreflect.Message { + return (*fastReflection_RequestDecryptionKeyPacketAck)(nil) } -func (x fastReflection_RequestAggrKeysharePacketAck_messageType) New() protoreflect.Message { - return new(fastReflection_RequestAggrKeysharePacketAck) +func (x fastReflection_RequestDecryptionKeyPacketAck_messageType) New() protoreflect.Message { + return new(fastReflection_RequestDecryptionKeyPacketAck) } -func (x fastReflection_RequestAggrKeysharePacketAck_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_RequestAggrKeysharePacketAck +func (x fastReflection_RequestDecryptionKeyPacketAck_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_RequestDecryptionKeyPacketAck } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_RequestAggrKeysharePacketAck) Descriptor() protoreflect.MessageDescriptor { - return md_RequestAggrKeysharePacketAck +func (x *fastReflection_RequestDecryptionKeyPacketAck) Descriptor() protoreflect.MessageDescriptor { + return md_RequestDecryptionKeyPacketAck } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_RequestAggrKeysharePacketAck) Type() protoreflect.MessageType { - return _fastReflection_RequestAggrKeysharePacketAck_messageType +func (x *fastReflection_RequestDecryptionKeyPacketAck) Type() protoreflect.MessageType { + return _fastReflection_RequestDecryptionKeyPacketAck_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_RequestAggrKeysharePacketAck) New() protoreflect.Message { - return new(fastReflection_RequestAggrKeysharePacketAck) +func (x *fastReflection_RequestDecryptionKeyPacketAck) New() protoreflect.Message { + return new(fastReflection_RequestDecryptionKeyPacketAck) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_RequestAggrKeysharePacketAck) Interface() protoreflect.ProtoMessage { - return (*RequestAggrKeysharePacketAck)(x) +func (x *fastReflection_RequestDecryptionKeyPacketAck) Interface() protoreflect.ProtoMessage { + return (*RequestDecryptionKeyPacketAck)(x) } // Range iterates over every populated field in an undefined order, @@ -3289,16 +3289,16 @@ func (x *fastReflection_RequestAggrKeysharePacketAck) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_RequestAggrKeysharePacketAck) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_RequestDecryptionKeyPacketAck) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Identity != "" { value := protoreflect.ValueOfString(x.Identity) - if !f(fd_RequestAggrKeysharePacketAck_identity, value) { + if !f(fd_RequestDecryptionKeyPacketAck_identity, value) { return } } if x.Pubkey != "" { value := protoreflect.ValueOfString(x.Pubkey) - if !f(fd_RequestAggrKeysharePacketAck_pubkey, value) { + if !f(fd_RequestDecryptionKeyPacketAck_pubkey, value) { return } } @@ -3315,17 +3315,17 @@ func (x *fastReflection_RequestAggrKeysharePacketAck) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_RequestAggrKeysharePacketAck) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_RequestDecryptionKeyPacketAck) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.RequestAggrKeysharePacketAck.identity": + case "fairyring.keyshare.RequestDecryptionKeyPacketAck.identity": return x.Identity != "" - case "fairyring.keyshare.RequestAggrKeysharePacketAck.pubkey": + case "fairyring.keyshare.RequestDecryptionKeyPacketAck.pubkey": return x.Pubkey != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestAggrKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestAggrKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } @@ -3335,17 +3335,17 @@ func (x *fastReflection_RequestAggrKeysharePacketAck) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestAggrKeysharePacketAck) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_RequestDecryptionKeyPacketAck) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.RequestAggrKeysharePacketAck.identity": + case "fairyring.keyshare.RequestDecryptionKeyPacketAck.identity": x.Identity = "" - case "fairyring.keyshare.RequestAggrKeysharePacketAck.pubkey": + case "fairyring.keyshare.RequestDecryptionKeyPacketAck.pubkey": x.Pubkey = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestAggrKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestAggrKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } @@ -3355,19 +3355,19 @@ func (x *fastReflection_RequestAggrKeysharePacketAck) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_RequestAggrKeysharePacketAck) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestDecryptionKeyPacketAck) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.RequestAggrKeysharePacketAck.identity": + case "fairyring.keyshare.RequestDecryptionKeyPacketAck.identity": value := x.Identity return protoreflect.ValueOfString(value) - case "fairyring.keyshare.RequestAggrKeysharePacketAck.pubkey": + case "fairyring.keyshare.RequestDecryptionKeyPacketAck.pubkey": value := x.Pubkey return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestAggrKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestAggrKeysharePacketAck does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestDecryptionKeyPacketAck does not contain field %s", descriptor.FullName())) } } @@ -3381,17 +3381,17 @@ func (x *fastReflection_RequestAggrKeysharePacketAck) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestAggrKeysharePacketAck) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_RequestDecryptionKeyPacketAck) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.RequestAggrKeysharePacketAck.identity": + case "fairyring.keyshare.RequestDecryptionKeyPacketAck.identity": x.Identity = value.Interface().(string) - case "fairyring.keyshare.RequestAggrKeysharePacketAck.pubkey": + case "fairyring.keyshare.RequestDecryptionKeyPacketAck.pubkey": x.Pubkey = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestAggrKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestAggrKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } @@ -3405,44 +3405,44 @@ func (x *fastReflection_RequestAggrKeysharePacketAck) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestAggrKeysharePacketAck) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestDecryptionKeyPacketAck) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.RequestAggrKeysharePacketAck.identity": - panic(fmt.Errorf("field identity of message fairyring.keyshare.RequestAggrKeysharePacketAck is not mutable")) - case "fairyring.keyshare.RequestAggrKeysharePacketAck.pubkey": - panic(fmt.Errorf("field pubkey of message fairyring.keyshare.RequestAggrKeysharePacketAck is not mutable")) + case "fairyring.keyshare.RequestDecryptionKeyPacketAck.identity": + panic(fmt.Errorf("field identity of message fairyring.keyshare.RequestDecryptionKeyPacketAck is not mutable")) + case "fairyring.keyshare.RequestDecryptionKeyPacketAck.pubkey": + panic(fmt.Errorf("field pubkey of message fairyring.keyshare.RequestDecryptionKeyPacketAck is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestAggrKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestAggrKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_RequestAggrKeysharePacketAck) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_RequestDecryptionKeyPacketAck) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.RequestAggrKeysharePacketAck.identity": + case "fairyring.keyshare.RequestDecryptionKeyPacketAck.identity": return protoreflect.ValueOfString("") - case "fairyring.keyshare.RequestAggrKeysharePacketAck.pubkey": + case "fairyring.keyshare.RequestDecryptionKeyPacketAck.pubkey": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestAggrKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.RequestDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.RequestAggrKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.RequestDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_RequestAggrKeysharePacketAck) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_RequestDecryptionKeyPacketAck) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.RequestAggrKeysharePacketAck", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.RequestDecryptionKeyPacketAck", d.FullName())) } panic("unreachable") } @@ -3450,7 +3450,7 @@ func (x *fastReflection_RequestAggrKeysharePacketAck) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_RequestAggrKeysharePacketAck) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_RequestDecryptionKeyPacketAck) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3461,7 +3461,7 @@ func (x *fastReflection_RequestAggrKeysharePacketAck) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_RequestAggrKeysharePacketAck) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_RequestDecryptionKeyPacketAck) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3473,7 +3473,7 @@ func (x *fastReflection_RequestAggrKeysharePacketAck) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_RequestAggrKeysharePacketAck) IsValid() bool { +func (x *fastReflection_RequestDecryptionKeyPacketAck) IsValid() bool { return x != nil } @@ -3483,9 +3483,9 @@ func (x *fastReflection_RequestAggrKeysharePacketAck) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_RequestAggrKeysharePacketAck) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_RequestDecryptionKeyPacketAck) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*RequestAggrKeysharePacketAck) + x := input.Message.Interface().(*RequestDecryptionKeyPacketAck) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3515,7 +3515,7 @@ func (x *fastReflection_RequestAggrKeysharePacketAck) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*RequestAggrKeysharePacketAck) + x := input.Message.Interface().(*RequestDecryptionKeyPacketAck) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3559,7 +3559,7 @@ func (x *fastReflection_RequestAggrKeysharePacketAck) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*RequestAggrKeysharePacketAck) + x := input.Message.Interface().(*RequestDecryptionKeyPacketAck) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3591,10 +3591,10 @@ func (x *fastReflection_RequestAggrKeysharePacketAck) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestAggrKeysharePacketAck: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestDecryptionKeyPacketAck: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestAggrKeysharePacketAck: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: RequestDecryptionKeyPacketAck: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3697,25 +3697,25 @@ func (x *fastReflection_RequestAggrKeysharePacketAck) ProtoMethods() *protoiface } var ( - md_GetAggrKeysharePacketData protoreflect.MessageDescriptor - fd_GetAggrKeysharePacketData_identity protoreflect.FieldDescriptor + md_GetDecryptionKeyPacketData protoreflect.MessageDescriptor + fd_GetDecryptionKeyPacketData_identity protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_packet_proto_init() - md_GetAggrKeysharePacketData = File_fairyring_keyshare_packet_proto.Messages().ByName("GetAggrKeysharePacketData") - fd_GetAggrKeysharePacketData_identity = md_GetAggrKeysharePacketData.Fields().ByName("identity") + md_GetDecryptionKeyPacketData = File_fairyring_keyshare_packet_proto.Messages().ByName("GetDecryptionKeyPacketData") + fd_GetDecryptionKeyPacketData_identity = md_GetDecryptionKeyPacketData.Fields().ByName("identity") } -var _ protoreflect.Message = (*fastReflection_GetAggrKeysharePacketData)(nil) +var _ protoreflect.Message = (*fastReflection_GetDecryptionKeyPacketData)(nil) -type fastReflection_GetAggrKeysharePacketData GetAggrKeysharePacketData +type fastReflection_GetDecryptionKeyPacketData GetDecryptionKeyPacketData -func (x *GetAggrKeysharePacketData) ProtoReflect() protoreflect.Message { - return (*fastReflection_GetAggrKeysharePacketData)(x) +func (x *GetDecryptionKeyPacketData) ProtoReflect() protoreflect.Message { + return (*fastReflection_GetDecryptionKeyPacketData)(x) } -func (x *GetAggrKeysharePacketData) slowProtoReflect() protoreflect.Message { +func (x *GetDecryptionKeyPacketData) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_packet_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3727,43 +3727,43 @@ func (x *GetAggrKeysharePacketData) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_GetAggrKeysharePacketData_messageType fastReflection_GetAggrKeysharePacketData_messageType -var _ protoreflect.MessageType = fastReflection_GetAggrKeysharePacketData_messageType{} +var _fastReflection_GetDecryptionKeyPacketData_messageType fastReflection_GetDecryptionKeyPacketData_messageType +var _ protoreflect.MessageType = fastReflection_GetDecryptionKeyPacketData_messageType{} -type fastReflection_GetAggrKeysharePacketData_messageType struct{} +type fastReflection_GetDecryptionKeyPacketData_messageType struct{} -func (x fastReflection_GetAggrKeysharePacketData_messageType) Zero() protoreflect.Message { - return (*fastReflection_GetAggrKeysharePacketData)(nil) +func (x fastReflection_GetDecryptionKeyPacketData_messageType) Zero() protoreflect.Message { + return (*fastReflection_GetDecryptionKeyPacketData)(nil) } -func (x fastReflection_GetAggrKeysharePacketData_messageType) New() protoreflect.Message { - return new(fastReflection_GetAggrKeysharePacketData) +func (x fastReflection_GetDecryptionKeyPacketData_messageType) New() protoreflect.Message { + return new(fastReflection_GetDecryptionKeyPacketData) } -func (x fastReflection_GetAggrKeysharePacketData_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GetAggrKeysharePacketData +func (x fastReflection_GetDecryptionKeyPacketData_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GetDecryptionKeyPacketData } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_GetAggrKeysharePacketData) Descriptor() protoreflect.MessageDescriptor { - return md_GetAggrKeysharePacketData +func (x *fastReflection_GetDecryptionKeyPacketData) Descriptor() protoreflect.MessageDescriptor { + return md_GetDecryptionKeyPacketData } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_GetAggrKeysharePacketData) Type() protoreflect.MessageType { - return _fastReflection_GetAggrKeysharePacketData_messageType +func (x *fastReflection_GetDecryptionKeyPacketData) Type() protoreflect.MessageType { + return _fastReflection_GetDecryptionKeyPacketData_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_GetAggrKeysharePacketData) New() protoreflect.Message { - return new(fastReflection_GetAggrKeysharePacketData) +func (x *fastReflection_GetDecryptionKeyPacketData) New() protoreflect.Message { + return new(fastReflection_GetDecryptionKeyPacketData) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_GetAggrKeysharePacketData) Interface() protoreflect.ProtoMessage { - return (*GetAggrKeysharePacketData)(x) +func (x *fastReflection_GetDecryptionKeyPacketData) Interface() protoreflect.ProtoMessage { + return (*GetDecryptionKeyPacketData)(x) } // Range iterates over every populated field in an undefined order, @@ -3771,10 +3771,10 @@ func (x *fastReflection_GetAggrKeysharePacketData) Interface() protoreflect.Prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_GetAggrKeysharePacketData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_GetDecryptionKeyPacketData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Identity != "" { value := protoreflect.ValueOfString(x.Identity) - if !f(fd_GetAggrKeysharePacketData_identity, value) { + if !f(fd_GetDecryptionKeyPacketData_identity, value) { return } } @@ -3791,15 +3791,15 @@ func (x *fastReflection_GetAggrKeysharePacketData) Range(f func(protoreflect.Fie // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_GetAggrKeysharePacketData) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_GetDecryptionKeyPacketData) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.GetAggrKeysharePacketData.identity": + case "fairyring.keyshare.GetDecryptionKeyPacketData.identity": return x.Identity != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetAggrKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.GetAggrKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } @@ -3809,15 +3809,15 @@ func (x *fastReflection_GetAggrKeysharePacketData) Has(fd protoreflect.FieldDesc // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetAggrKeysharePacketData) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_GetDecryptionKeyPacketData) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.GetAggrKeysharePacketData.identity": + case "fairyring.keyshare.GetDecryptionKeyPacketData.identity": x.Identity = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetAggrKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.GetAggrKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } @@ -3827,16 +3827,16 @@ func (x *fastReflection_GetAggrKeysharePacketData) Clear(fd protoreflect.FieldDe // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GetAggrKeysharePacketData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetDecryptionKeyPacketData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.GetAggrKeysharePacketData.identity": + case "fairyring.keyshare.GetDecryptionKeyPacketData.identity": value := x.Identity return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetAggrKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.GetAggrKeysharePacketData does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetDecryptionKeyPacketData does not contain field %s", descriptor.FullName())) } } @@ -3850,15 +3850,15 @@ func (x *fastReflection_GetAggrKeysharePacketData) Get(descriptor protoreflect.F // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetAggrKeysharePacketData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_GetDecryptionKeyPacketData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.GetAggrKeysharePacketData.identity": + case "fairyring.keyshare.GetDecryptionKeyPacketData.identity": x.Identity = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetAggrKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.GetAggrKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } @@ -3872,40 +3872,40 @@ func (x *fastReflection_GetAggrKeysharePacketData) Set(fd protoreflect.FieldDesc // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetAggrKeysharePacketData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetDecryptionKeyPacketData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.GetAggrKeysharePacketData.identity": - panic(fmt.Errorf("field identity of message fairyring.keyshare.GetAggrKeysharePacketData is not mutable")) + case "fairyring.keyshare.GetDecryptionKeyPacketData.identity": + panic(fmt.Errorf("field identity of message fairyring.keyshare.GetDecryptionKeyPacketData is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetAggrKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.GetAggrKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GetAggrKeysharePacketData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetDecryptionKeyPacketData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.GetAggrKeysharePacketData.identity": + case "fairyring.keyshare.GetDecryptionKeyPacketData.identity": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetAggrKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.GetAggrKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GetAggrKeysharePacketData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_GetDecryptionKeyPacketData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.GetAggrKeysharePacketData", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.GetDecryptionKeyPacketData", d.FullName())) } panic("unreachable") } @@ -3913,7 +3913,7 @@ func (x *fastReflection_GetAggrKeysharePacketData) WhichOneof(d protoreflect.One // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GetAggrKeysharePacketData) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_GetDecryptionKeyPacketData) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3924,7 +3924,7 @@ func (x *fastReflection_GetAggrKeysharePacketData) GetUnknown() protoreflect.Raw // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetAggrKeysharePacketData) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_GetDecryptionKeyPacketData) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3936,7 +3936,7 @@ func (x *fastReflection_GetAggrKeysharePacketData) SetUnknown(fields protoreflec // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_GetAggrKeysharePacketData) IsValid() bool { +func (x *fastReflection_GetDecryptionKeyPacketData) IsValid() bool { return x != nil } @@ -3946,9 +3946,9 @@ func (x *fastReflection_GetAggrKeysharePacketData) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_GetAggrKeysharePacketData) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_GetDecryptionKeyPacketData) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GetAggrKeysharePacketData) + x := input.Message.Interface().(*GetDecryptionKeyPacketData) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3974,7 +3974,7 @@ func (x *fastReflection_GetAggrKeysharePacketData) ProtoMethods() *protoiface.Me } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GetAggrKeysharePacketData) + x := input.Message.Interface().(*GetDecryptionKeyPacketData) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4011,7 +4011,7 @@ func (x *fastReflection_GetAggrKeysharePacketData) ProtoMethods() *protoiface.Me }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GetAggrKeysharePacketData) + x := input.Message.Interface().(*GetDecryptionKeyPacketData) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4043,10 +4043,10 @@ func (x *fastReflection_GetAggrKeysharePacketData) ProtoMethods() *protoiface.Me fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetAggrKeysharePacketData: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetDecryptionKeyPacketData: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetAggrKeysharePacketData: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetDecryptionKeyPacketData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4117,23 +4117,23 @@ func (x *fastReflection_GetAggrKeysharePacketData) ProtoMethods() *protoiface.Me } var ( - md_GetAggrKeysharePacketAck protoreflect.MessageDescriptor + md_GetDecryptionKeyPacketAck protoreflect.MessageDescriptor ) func init() { file_fairyring_keyshare_packet_proto_init() - md_GetAggrKeysharePacketAck = File_fairyring_keyshare_packet_proto.Messages().ByName("GetAggrKeysharePacketAck") + md_GetDecryptionKeyPacketAck = File_fairyring_keyshare_packet_proto.Messages().ByName("GetDecryptionKeyPacketAck") } -var _ protoreflect.Message = (*fastReflection_GetAggrKeysharePacketAck)(nil) +var _ protoreflect.Message = (*fastReflection_GetDecryptionKeyPacketAck)(nil) -type fastReflection_GetAggrKeysharePacketAck GetAggrKeysharePacketAck +type fastReflection_GetDecryptionKeyPacketAck GetDecryptionKeyPacketAck -func (x *GetAggrKeysharePacketAck) ProtoReflect() protoreflect.Message { - return (*fastReflection_GetAggrKeysharePacketAck)(x) +func (x *GetDecryptionKeyPacketAck) ProtoReflect() protoreflect.Message { + return (*fastReflection_GetDecryptionKeyPacketAck)(x) } -func (x *GetAggrKeysharePacketAck) slowProtoReflect() protoreflect.Message { +func (x *GetDecryptionKeyPacketAck) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_packet_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4145,43 +4145,43 @@ func (x *GetAggrKeysharePacketAck) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_GetAggrKeysharePacketAck_messageType fastReflection_GetAggrKeysharePacketAck_messageType -var _ protoreflect.MessageType = fastReflection_GetAggrKeysharePacketAck_messageType{} +var _fastReflection_GetDecryptionKeyPacketAck_messageType fastReflection_GetDecryptionKeyPacketAck_messageType +var _ protoreflect.MessageType = fastReflection_GetDecryptionKeyPacketAck_messageType{} -type fastReflection_GetAggrKeysharePacketAck_messageType struct{} +type fastReflection_GetDecryptionKeyPacketAck_messageType struct{} -func (x fastReflection_GetAggrKeysharePacketAck_messageType) Zero() protoreflect.Message { - return (*fastReflection_GetAggrKeysharePacketAck)(nil) +func (x fastReflection_GetDecryptionKeyPacketAck_messageType) Zero() protoreflect.Message { + return (*fastReflection_GetDecryptionKeyPacketAck)(nil) } -func (x fastReflection_GetAggrKeysharePacketAck_messageType) New() protoreflect.Message { - return new(fastReflection_GetAggrKeysharePacketAck) +func (x fastReflection_GetDecryptionKeyPacketAck_messageType) New() protoreflect.Message { + return new(fastReflection_GetDecryptionKeyPacketAck) } -func (x fastReflection_GetAggrKeysharePacketAck_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GetAggrKeysharePacketAck +func (x fastReflection_GetDecryptionKeyPacketAck_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GetDecryptionKeyPacketAck } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_GetAggrKeysharePacketAck) Descriptor() protoreflect.MessageDescriptor { - return md_GetAggrKeysharePacketAck +func (x *fastReflection_GetDecryptionKeyPacketAck) Descriptor() protoreflect.MessageDescriptor { + return md_GetDecryptionKeyPacketAck } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_GetAggrKeysharePacketAck) Type() protoreflect.MessageType { - return _fastReflection_GetAggrKeysharePacketAck_messageType +func (x *fastReflection_GetDecryptionKeyPacketAck) Type() protoreflect.MessageType { + return _fastReflection_GetDecryptionKeyPacketAck_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_GetAggrKeysharePacketAck) New() protoreflect.Message { - return new(fastReflection_GetAggrKeysharePacketAck) +func (x *fastReflection_GetDecryptionKeyPacketAck) New() protoreflect.Message { + return new(fastReflection_GetDecryptionKeyPacketAck) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_GetAggrKeysharePacketAck) Interface() protoreflect.ProtoMessage { - return (*GetAggrKeysharePacketAck)(x) +func (x *fastReflection_GetDecryptionKeyPacketAck) Interface() protoreflect.ProtoMessage { + return (*GetDecryptionKeyPacketAck)(x) } // Range iterates over every populated field in an undefined order, @@ -4189,7 +4189,7 @@ func (x *fastReflection_GetAggrKeysharePacketAck) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_GetAggrKeysharePacketAck) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_GetDecryptionKeyPacketAck) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -4203,13 +4203,13 @@ func (x *fastReflection_GetAggrKeysharePacketAck) Range(f func(protoreflect.Fiel // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_GetAggrKeysharePacketAck) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_GetDecryptionKeyPacketAck) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetAggrKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.GetAggrKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } @@ -4219,13 +4219,13 @@ func (x *fastReflection_GetAggrKeysharePacketAck) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetAggrKeysharePacketAck) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_GetDecryptionKeyPacketAck) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetAggrKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.GetAggrKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } @@ -4235,13 +4235,13 @@ func (x *fastReflection_GetAggrKeysharePacketAck) Clear(fd protoreflect.FieldDes // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GetAggrKeysharePacketAck) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetDecryptionKeyPacketAck) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetAggrKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.GetAggrKeysharePacketAck does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetDecryptionKeyPacketAck does not contain field %s", descriptor.FullName())) } } @@ -4255,13 +4255,13 @@ func (x *fastReflection_GetAggrKeysharePacketAck) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetAggrKeysharePacketAck) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_GetDecryptionKeyPacketAck) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetAggrKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.GetAggrKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } @@ -4275,36 +4275,36 @@ func (x *fastReflection_GetAggrKeysharePacketAck) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetAggrKeysharePacketAck) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetDecryptionKeyPacketAck) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetAggrKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.GetAggrKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GetAggrKeysharePacketAck) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetDecryptionKeyPacketAck) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetAggrKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.GetAggrKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GetAggrKeysharePacketAck) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_GetDecryptionKeyPacketAck) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.GetAggrKeysharePacketAck", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.GetDecryptionKeyPacketAck", d.FullName())) } panic("unreachable") } @@ -4312,7 +4312,7 @@ func (x *fastReflection_GetAggrKeysharePacketAck) WhichOneof(d protoreflect.Oneo // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GetAggrKeysharePacketAck) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_GetDecryptionKeyPacketAck) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4323,7 +4323,7 @@ func (x *fastReflection_GetAggrKeysharePacketAck) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetAggrKeysharePacketAck) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_GetDecryptionKeyPacketAck) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4335,7 +4335,7 @@ func (x *fastReflection_GetAggrKeysharePacketAck) SetUnknown(fields protoreflect // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_GetAggrKeysharePacketAck) IsValid() bool { +func (x *fastReflection_GetDecryptionKeyPacketAck) IsValid() bool { return x != nil } @@ -4345,9 +4345,9 @@ func (x *fastReflection_GetAggrKeysharePacketAck) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_GetAggrKeysharePacketAck) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_GetDecryptionKeyPacketAck) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GetAggrKeysharePacketAck) + x := input.Message.Interface().(*GetDecryptionKeyPacketAck) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4369,7 +4369,7 @@ func (x *fastReflection_GetAggrKeysharePacketAck) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GetAggrKeysharePacketAck) + x := input.Message.Interface().(*GetDecryptionKeyPacketAck) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4399,7 +4399,7 @@ func (x *fastReflection_GetAggrKeysharePacketAck) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GetAggrKeysharePacketAck) + x := input.Message.Interface().(*GetDecryptionKeyPacketAck) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4431,10 +4431,10 @@ func (x *fastReflection_GetAggrKeysharePacketAck) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetAggrKeysharePacketAck: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetDecryptionKeyPacketAck: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetAggrKeysharePacketAck: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetDecryptionKeyPacketAck: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -4473,29 +4473,29 @@ func (x *fastReflection_GetAggrKeysharePacketAck) ProtoMethods() *protoiface.Met } var ( - md_GetPrivateKeysharePacketData protoreflect.MessageDescriptor - fd_GetPrivateKeysharePacketData_identity protoreflect.FieldDescriptor - fd_GetPrivateKeysharePacketData_requester protoreflect.FieldDescriptor - fd_GetPrivateKeysharePacketData_secp_pubkey protoreflect.FieldDescriptor + md_GetPrivateDecryptionKeyPacketData protoreflect.MessageDescriptor + fd_GetPrivateDecryptionKeyPacketData_identity protoreflect.FieldDescriptor + fd_GetPrivateDecryptionKeyPacketData_requester protoreflect.FieldDescriptor + fd_GetPrivateDecryptionKeyPacketData_secp_pubkey protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_packet_proto_init() - md_GetPrivateKeysharePacketData = File_fairyring_keyshare_packet_proto.Messages().ByName("GetPrivateKeysharePacketData") - fd_GetPrivateKeysharePacketData_identity = md_GetPrivateKeysharePacketData.Fields().ByName("identity") - fd_GetPrivateKeysharePacketData_requester = md_GetPrivateKeysharePacketData.Fields().ByName("requester") - fd_GetPrivateKeysharePacketData_secp_pubkey = md_GetPrivateKeysharePacketData.Fields().ByName("secp_pubkey") + md_GetPrivateDecryptionKeyPacketData = File_fairyring_keyshare_packet_proto.Messages().ByName("GetPrivateDecryptionKeyPacketData") + fd_GetPrivateDecryptionKeyPacketData_identity = md_GetPrivateDecryptionKeyPacketData.Fields().ByName("identity") + fd_GetPrivateDecryptionKeyPacketData_requester = md_GetPrivateDecryptionKeyPacketData.Fields().ByName("requester") + fd_GetPrivateDecryptionKeyPacketData_secp_pubkey = md_GetPrivateDecryptionKeyPacketData.Fields().ByName("secp_pubkey") } -var _ protoreflect.Message = (*fastReflection_GetPrivateKeysharePacketData)(nil) +var _ protoreflect.Message = (*fastReflection_GetPrivateDecryptionKeyPacketData)(nil) -type fastReflection_GetPrivateKeysharePacketData GetPrivateKeysharePacketData +type fastReflection_GetPrivateDecryptionKeyPacketData GetPrivateDecryptionKeyPacketData -func (x *GetPrivateKeysharePacketData) ProtoReflect() protoreflect.Message { - return (*fastReflection_GetPrivateKeysharePacketData)(x) +func (x *GetPrivateDecryptionKeyPacketData) ProtoReflect() protoreflect.Message { + return (*fastReflection_GetPrivateDecryptionKeyPacketData)(x) } -func (x *GetPrivateKeysharePacketData) slowProtoReflect() protoreflect.Message { +func (x *GetPrivateDecryptionKeyPacketData) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_packet_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4507,43 +4507,43 @@ func (x *GetPrivateKeysharePacketData) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_GetPrivateKeysharePacketData_messageType fastReflection_GetPrivateKeysharePacketData_messageType -var _ protoreflect.MessageType = fastReflection_GetPrivateKeysharePacketData_messageType{} +var _fastReflection_GetPrivateDecryptionKeyPacketData_messageType fastReflection_GetPrivateDecryptionKeyPacketData_messageType +var _ protoreflect.MessageType = fastReflection_GetPrivateDecryptionKeyPacketData_messageType{} -type fastReflection_GetPrivateKeysharePacketData_messageType struct{} +type fastReflection_GetPrivateDecryptionKeyPacketData_messageType struct{} -func (x fastReflection_GetPrivateKeysharePacketData_messageType) Zero() protoreflect.Message { - return (*fastReflection_GetPrivateKeysharePacketData)(nil) +func (x fastReflection_GetPrivateDecryptionKeyPacketData_messageType) Zero() protoreflect.Message { + return (*fastReflection_GetPrivateDecryptionKeyPacketData)(nil) } -func (x fastReflection_GetPrivateKeysharePacketData_messageType) New() protoreflect.Message { - return new(fastReflection_GetPrivateKeysharePacketData) +func (x fastReflection_GetPrivateDecryptionKeyPacketData_messageType) New() protoreflect.Message { + return new(fastReflection_GetPrivateDecryptionKeyPacketData) } -func (x fastReflection_GetPrivateKeysharePacketData_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GetPrivateKeysharePacketData +func (x fastReflection_GetPrivateDecryptionKeyPacketData_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GetPrivateDecryptionKeyPacketData } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_GetPrivateKeysharePacketData) Descriptor() protoreflect.MessageDescriptor { - return md_GetPrivateKeysharePacketData +func (x *fastReflection_GetPrivateDecryptionKeyPacketData) Descriptor() protoreflect.MessageDescriptor { + return md_GetPrivateDecryptionKeyPacketData } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_GetPrivateKeysharePacketData) Type() protoreflect.MessageType { - return _fastReflection_GetPrivateKeysharePacketData_messageType +func (x *fastReflection_GetPrivateDecryptionKeyPacketData) Type() protoreflect.MessageType { + return _fastReflection_GetPrivateDecryptionKeyPacketData_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_GetPrivateKeysharePacketData) New() protoreflect.Message { - return new(fastReflection_GetPrivateKeysharePacketData) +func (x *fastReflection_GetPrivateDecryptionKeyPacketData) New() protoreflect.Message { + return new(fastReflection_GetPrivateDecryptionKeyPacketData) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_GetPrivateKeysharePacketData) Interface() protoreflect.ProtoMessage { - return (*GetPrivateKeysharePacketData)(x) +func (x *fastReflection_GetPrivateDecryptionKeyPacketData) Interface() protoreflect.ProtoMessage { + return (*GetPrivateDecryptionKeyPacketData)(x) } // Range iterates over every populated field in an undefined order, @@ -4551,22 +4551,22 @@ func (x *fastReflection_GetPrivateKeysharePacketData) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_GetPrivateKeysharePacketData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_GetPrivateDecryptionKeyPacketData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Identity != "" { value := protoreflect.ValueOfString(x.Identity) - if !f(fd_GetPrivateKeysharePacketData_identity, value) { + if !f(fd_GetPrivateDecryptionKeyPacketData_identity, value) { return } } if x.Requester != "" { value := protoreflect.ValueOfString(x.Requester) - if !f(fd_GetPrivateKeysharePacketData_requester, value) { + if !f(fd_GetPrivateDecryptionKeyPacketData_requester, value) { return } } if x.SecpPubkey != "" { value := protoreflect.ValueOfString(x.SecpPubkey) - if !f(fd_GetPrivateKeysharePacketData_secp_pubkey, value) { + if !f(fd_GetPrivateDecryptionKeyPacketData_secp_pubkey, value) { return } } @@ -4583,19 +4583,19 @@ func (x *fastReflection_GetPrivateKeysharePacketData) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_GetPrivateKeysharePacketData) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_GetPrivateDecryptionKeyPacketData) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.GetPrivateKeysharePacketData.identity": + case "fairyring.keyshare.GetPrivateDecryptionKeyPacketData.identity": return x.Identity != "" - case "fairyring.keyshare.GetPrivateKeysharePacketData.requester": + case "fairyring.keyshare.GetPrivateDecryptionKeyPacketData.requester": return x.Requester != "" - case "fairyring.keyshare.GetPrivateKeysharePacketData.secp_pubkey": + case "fairyring.keyshare.GetPrivateDecryptionKeyPacketData.secp_pubkey": return x.SecpPubkey != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.GetPrivateKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetPrivateDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } @@ -4605,19 +4605,19 @@ func (x *fastReflection_GetPrivateKeysharePacketData) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetPrivateKeysharePacketData) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_GetPrivateDecryptionKeyPacketData) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.GetPrivateKeysharePacketData.identity": + case "fairyring.keyshare.GetPrivateDecryptionKeyPacketData.identity": x.Identity = "" - case "fairyring.keyshare.GetPrivateKeysharePacketData.requester": + case "fairyring.keyshare.GetPrivateDecryptionKeyPacketData.requester": x.Requester = "" - case "fairyring.keyshare.GetPrivateKeysharePacketData.secp_pubkey": + case "fairyring.keyshare.GetPrivateDecryptionKeyPacketData.secp_pubkey": x.SecpPubkey = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.GetPrivateKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetPrivateDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } @@ -4627,22 +4627,22 @@ func (x *fastReflection_GetPrivateKeysharePacketData) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GetPrivateKeysharePacketData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetPrivateDecryptionKeyPacketData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.GetPrivateKeysharePacketData.identity": + case "fairyring.keyshare.GetPrivateDecryptionKeyPacketData.identity": value := x.Identity return protoreflect.ValueOfString(value) - case "fairyring.keyshare.GetPrivateKeysharePacketData.requester": + case "fairyring.keyshare.GetPrivateDecryptionKeyPacketData.requester": value := x.Requester return protoreflect.ValueOfString(value) - case "fairyring.keyshare.GetPrivateKeysharePacketData.secp_pubkey": + case "fairyring.keyshare.GetPrivateDecryptionKeyPacketData.secp_pubkey": value := x.SecpPubkey return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.GetPrivateKeysharePacketData does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetPrivateDecryptionKeyPacketData does not contain field %s", descriptor.FullName())) } } @@ -4656,19 +4656,19 @@ func (x *fastReflection_GetPrivateKeysharePacketData) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetPrivateKeysharePacketData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_GetPrivateDecryptionKeyPacketData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.GetPrivateKeysharePacketData.identity": + case "fairyring.keyshare.GetPrivateDecryptionKeyPacketData.identity": x.Identity = value.Interface().(string) - case "fairyring.keyshare.GetPrivateKeysharePacketData.requester": + case "fairyring.keyshare.GetPrivateDecryptionKeyPacketData.requester": x.Requester = value.Interface().(string) - case "fairyring.keyshare.GetPrivateKeysharePacketData.secp_pubkey": + case "fairyring.keyshare.GetPrivateDecryptionKeyPacketData.secp_pubkey": x.SecpPubkey = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.GetPrivateKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetPrivateDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } @@ -4682,48 +4682,48 @@ func (x *fastReflection_GetPrivateKeysharePacketData) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetPrivateKeysharePacketData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetPrivateDecryptionKeyPacketData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.GetPrivateKeysharePacketData.identity": - panic(fmt.Errorf("field identity of message fairyring.keyshare.GetPrivateKeysharePacketData is not mutable")) - case "fairyring.keyshare.GetPrivateKeysharePacketData.requester": - panic(fmt.Errorf("field requester of message fairyring.keyshare.GetPrivateKeysharePacketData is not mutable")) - case "fairyring.keyshare.GetPrivateKeysharePacketData.secp_pubkey": - panic(fmt.Errorf("field secp_pubkey of message fairyring.keyshare.GetPrivateKeysharePacketData is not mutable")) + case "fairyring.keyshare.GetPrivateDecryptionKeyPacketData.identity": + panic(fmt.Errorf("field identity of message fairyring.keyshare.GetPrivateDecryptionKeyPacketData is not mutable")) + case "fairyring.keyshare.GetPrivateDecryptionKeyPacketData.requester": + panic(fmt.Errorf("field requester of message fairyring.keyshare.GetPrivateDecryptionKeyPacketData is not mutable")) + case "fairyring.keyshare.GetPrivateDecryptionKeyPacketData.secp_pubkey": + panic(fmt.Errorf("field secp_pubkey of message fairyring.keyshare.GetPrivateDecryptionKeyPacketData is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.GetPrivateKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetPrivateDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GetPrivateKeysharePacketData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetPrivateDecryptionKeyPacketData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.GetPrivateKeysharePacketData.identity": + case "fairyring.keyshare.GetPrivateDecryptionKeyPacketData.identity": return protoreflect.ValueOfString("") - case "fairyring.keyshare.GetPrivateKeysharePacketData.requester": + case "fairyring.keyshare.GetPrivateDecryptionKeyPacketData.requester": return protoreflect.ValueOfString("") - case "fairyring.keyshare.GetPrivateKeysharePacketData.secp_pubkey": + case "fairyring.keyshare.GetPrivateDecryptionKeyPacketData.secp_pubkey": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateKeysharePacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateDecryptionKeyPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.GetPrivateKeysharePacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetPrivateDecryptionKeyPacketData does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GetPrivateKeysharePacketData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_GetPrivateDecryptionKeyPacketData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.GetPrivateKeysharePacketData", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.GetPrivateDecryptionKeyPacketData", d.FullName())) } panic("unreachable") } @@ -4731,7 +4731,7 @@ func (x *fastReflection_GetPrivateKeysharePacketData) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GetPrivateKeysharePacketData) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_GetPrivateDecryptionKeyPacketData) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4742,7 +4742,7 @@ func (x *fastReflection_GetPrivateKeysharePacketData) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetPrivateKeysharePacketData) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_GetPrivateDecryptionKeyPacketData) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4754,7 +4754,7 @@ func (x *fastReflection_GetPrivateKeysharePacketData) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_GetPrivateKeysharePacketData) IsValid() bool { +func (x *fastReflection_GetPrivateDecryptionKeyPacketData) IsValid() bool { return x != nil } @@ -4764,9 +4764,9 @@ func (x *fastReflection_GetPrivateKeysharePacketData) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_GetPrivateKeysharePacketData) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_GetPrivateDecryptionKeyPacketData) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GetPrivateKeysharePacketData) + x := input.Message.Interface().(*GetPrivateDecryptionKeyPacketData) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4800,7 +4800,7 @@ func (x *fastReflection_GetPrivateKeysharePacketData) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GetPrivateKeysharePacketData) + x := input.Message.Interface().(*GetPrivateDecryptionKeyPacketData) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4851,7 +4851,7 @@ func (x *fastReflection_GetPrivateKeysharePacketData) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GetPrivateKeysharePacketData) + x := input.Message.Interface().(*GetPrivateDecryptionKeyPacketData) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4883,10 +4883,10 @@ func (x *fastReflection_GetPrivateKeysharePacketData) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPrivateKeysharePacketData: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPrivateDecryptionKeyPacketData: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPrivateKeysharePacketData: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPrivateDecryptionKeyPacketData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5021,23 +5021,23 @@ func (x *fastReflection_GetPrivateKeysharePacketData) ProtoMethods() *protoiface } var ( - md_GetPrivateKeysharePacketAck protoreflect.MessageDescriptor + md_GetPrivateDecryptionKeyPacketAck protoreflect.MessageDescriptor ) func init() { file_fairyring_keyshare_packet_proto_init() - md_GetPrivateKeysharePacketAck = File_fairyring_keyshare_packet_proto.Messages().ByName("GetPrivateKeysharePacketAck") + md_GetPrivateDecryptionKeyPacketAck = File_fairyring_keyshare_packet_proto.Messages().ByName("GetPrivateDecryptionKeyPacketAck") } -var _ protoreflect.Message = (*fastReflection_GetPrivateKeysharePacketAck)(nil) +var _ protoreflect.Message = (*fastReflection_GetPrivateDecryptionKeyPacketAck)(nil) -type fastReflection_GetPrivateKeysharePacketAck GetPrivateKeysharePacketAck +type fastReflection_GetPrivateDecryptionKeyPacketAck GetPrivateDecryptionKeyPacketAck -func (x *GetPrivateKeysharePacketAck) ProtoReflect() protoreflect.Message { - return (*fastReflection_GetPrivateKeysharePacketAck)(x) +func (x *GetPrivateDecryptionKeyPacketAck) ProtoReflect() protoreflect.Message { + return (*fastReflection_GetPrivateDecryptionKeyPacketAck)(x) } -func (x *GetPrivateKeysharePacketAck) slowProtoReflect() protoreflect.Message { +func (x *GetPrivateDecryptionKeyPacketAck) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_packet_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5049,43 +5049,43 @@ func (x *GetPrivateKeysharePacketAck) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_GetPrivateKeysharePacketAck_messageType fastReflection_GetPrivateKeysharePacketAck_messageType -var _ protoreflect.MessageType = fastReflection_GetPrivateKeysharePacketAck_messageType{} +var _fastReflection_GetPrivateDecryptionKeyPacketAck_messageType fastReflection_GetPrivateDecryptionKeyPacketAck_messageType +var _ protoreflect.MessageType = fastReflection_GetPrivateDecryptionKeyPacketAck_messageType{} -type fastReflection_GetPrivateKeysharePacketAck_messageType struct{} +type fastReflection_GetPrivateDecryptionKeyPacketAck_messageType struct{} -func (x fastReflection_GetPrivateKeysharePacketAck_messageType) Zero() protoreflect.Message { - return (*fastReflection_GetPrivateKeysharePacketAck)(nil) +func (x fastReflection_GetPrivateDecryptionKeyPacketAck_messageType) Zero() protoreflect.Message { + return (*fastReflection_GetPrivateDecryptionKeyPacketAck)(nil) } -func (x fastReflection_GetPrivateKeysharePacketAck_messageType) New() protoreflect.Message { - return new(fastReflection_GetPrivateKeysharePacketAck) +func (x fastReflection_GetPrivateDecryptionKeyPacketAck_messageType) New() protoreflect.Message { + return new(fastReflection_GetPrivateDecryptionKeyPacketAck) } -func (x fastReflection_GetPrivateKeysharePacketAck_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GetPrivateKeysharePacketAck +func (x fastReflection_GetPrivateDecryptionKeyPacketAck_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GetPrivateDecryptionKeyPacketAck } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_GetPrivateKeysharePacketAck) Descriptor() protoreflect.MessageDescriptor { - return md_GetPrivateKeysharePacketAck +func (x *fastReflection_GetPrivateDecryptionKeyPacketAck) Descriptor() protoreflect.MessageDescriptor { + return md_GetPrivateDecryptionKeyPacketAck } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_GetPrivateKeysharePacketAck) Type() protoreflect.MessageType { - return _fastReflection_GetPrivateKeysharePacketAck_messageType +func (x *fastReflection_GetPrivateDecryptionKeyPacketAck) Type() protoreflect.MessageType { + return _fastReflection_GetPrivateDecryptionKeyPacketAck_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_GetPrivateKeysharePacketAck) New() protoreflect.Message { - return new(fastReflection_GetPrivateKeysharePacketAck) +func (x *fastReflection_GetPrivateDecryptionKeyPacketAck) New() protoreflect.Message { + return new(fastReflection_GetPrivateDecryptionKeyPacketAck) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_GetPrivateKeysharePacketAck) Interface() protoreflect.ProtoMessage { - return (*GetPrivateKeysharePacketAck)(x) +func (x *fastReflection_GetPrivateDecryptionKeyPacketAck) Interface() protoreflect.ProtoMessage { + return (*GetPrivateDecryptionKeyPacketAck)(x) } // Range iterates over every populated field in an undefined order, @@ -5093,7 +5093,7 @@ func (x *fastReflection_GetPrivateKeysharePacketAck) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_GetPrivateKeysharePacketAck) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_GetPrivateDecryptionKeyPacketAck) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -5107,13 +5107,13 @@ func (x *fastReflection_GetPrivateKeysharePacketAck) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_GetPrivateKeysharePacketAck) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_GetPrivateDecryptionKeyPacketAck) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.GetPrivateKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetPrivateDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } @@ -5123,13 +5123,13 @@ func (x *fastReflection_GetPrivateKeysharePacketAck) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetPrivateKeysharePacketAck) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_GetPrivateDecryptionKeyPacketAck) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.GetPrivateKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetPrivateDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } @@ -5139,13 +5139,13 @@ func (x *fastReflection_GetPrivateKeysharePacketAck) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GetPrivateKeysharePacketAck) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetPrivateDecryptionKeyPacketAck) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.GetPrivateKeysharePacketAck does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetPrivateDecryptionKeyPacketAck does not contain field %s", descriptor.FullName())) } } @@ -5159,13 +5159,13 @@ func (x *fastReflection_GetPrivateKeysharePacketAck) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetPrivateKeysharePacketAck) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_GetPrivateDecryptionKeyPacketAck) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.GetPrivateKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetPrivateDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } @@ -5179,36 +5179,36 @@ func (x *fastReflection_GetPrivateKeysharePacketAck) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetPrivateKeysharePacketAck) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetPrivateDecryptionKeyPacketAck) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.GetPrivateKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetPrivateDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GetPrivateKeysharePacketAck) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GetPrivateDecryptionKeyPacketAck) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateKeysharePacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GetPrivateDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.GetPrivateKeysharePacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GetPrivateDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GetPrivateKeysharePacketAck) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_GetPrivateDecryptionKeyPacketAck) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.GetPrivateKeysharePacketAck", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.GetPrivateDecryptionKeyPacketAck", d.FullName())) } panic("unreachable") } @@ -5216,7 +5216,7 @@ func (x *fastReflection_GetPrivateKeysharePacketAck) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GetPrivateKeysharePacketAck) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_GetPrivateDecryptionKeyPacketAck) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5227,7 +5227,7 @@ func (x *fastReflection_GetPrivateKeysharePacketAck) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GetPrivateKeysharePacketAck) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_GetPrivateDecryptionKeyPacketAck) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5239,7 +5239,7 @@ func (x *fastReflection_GetPrivateKeysharePacketAck) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_GetPrivateKeysharePacketAck) IsValid() bool { +func (x *fastReflection_GetPrivateDecryptionKeyPacketAck) IsValid() bool { return x != nil } @@ -5249,9 +5249,9 @@ func (x *fastReflection_GetPrivateKeysharePacketAck) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_GetPrivateKeysharePacketAck) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_GetPrivateDecryptionKeyPacketAck) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GetPrivateKeysharePacketAck) + x := input.Message.Interface().(*GetPrivateDecryptionKeyPacketAck) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5273,7 +5273,7 @@ func (x *fastReflection_GetPrivateKeysharePacketAck) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GetPrivateKeysharePacketAck) + x := input.Message.Interface().(*GetPrivateDecryptionKeyPacketAck) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5303,7 +5303,7 @@ func (x *fastReflection_GetPrivateKeysharePacketAck) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GetPrivateKeysharePacketAck) + x := input.Message.Interface().(*GetPrivateDecryptionKeyPacketAck) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5335,10 +5335,10 @@ func (x *fastReflection_GetPrivateKeysharePacketAck) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPrivateKeysharePacketAck: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPrivateDecryptionKeyPacketAck: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPrivateKeysharePacketAck: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GetPrivateDecryptionKeyPacketAck: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -5377,37 +5377,37 @@ func (x *fastReflection_GetPrivateKeysharePacketAck) ProtoMethods() *protoiface. } var ( - md_AggrKeyshareDataPacketData protoreflect.MessageDescriptor - fd_AggrKeyshareDataPacketData_identity protoreflect.FieldDescriptor - fd_AggrKeyshareDataPacketData_pubkey protoreflect.FieldDescriptor - fd_AggrKeyshareDataPacketData_aggr_keyshare protoreflect.FieldDescriptor - fd_AggrKeyshareDataPacketData_aggr_height protoreflect.FieldDescriptor - fd_AggrKeyshareDataPacketData_proposal_id protoreflect.FieldDescriptor - fd_AggrKeyshareDataPacketData_request_id protoreflect.FieldDescriptor - fd_AggrKeyshareDataPacketData_retries protoreflect.FieldDescriptor + md_DecryptionKeyDataPacketData protoreflect.MessageDescriptor + fd_DecryptionKeyDataPacketData_identity protoreflect.FieldDescriptor + fd_DecryptionKeyDataPacketData_pubkey protoreflect.FieldDescriptor + fd_DecryptionKeyDataPacketData_decryption_key protoreflect.FieldDescriptor + fd_DecryptionKeyDataPacketData_aggr_height protoreflect.FieldDescriptor + fd_DecryptionKeyDataPacketData_proposal_id protoreflect.FieldDescriptor + fd_DecryptionKeyDataPacketData_request_id protoreflect.FieldDescriptor + fd_DecryptionKeyDataPacketData_retries protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_packet_proto_init() - md_AggrKeyshareDataPacketData = File_fairyring_keyshare_packet_proto.Messages().ByName("AggrKeyshareDataPacketData") - fd_AggrKeyshareDataPacketData_identity = md_AggrKeyshareDataPacketData.Fields().ByName("identity") - fd_AggrKeyshareDataPacketData_pubkey = md_AggrKeyshareDataPacketData.Fields().ByName("pubkey") - fd_AggrKeyshareDataPacketData_aggr_keyshare = md_AggrKeyshareDataPacketData.Fields().ByName("aggr_keyshare") - fd_AggrKeyshareDataPacketData_aggr_height = md_AggrKeyshareDataPacketData.Fields().ByName("aggr_height") - fd_AggrKeyshareDataPacketData_proposal_id = md_AggrKeyshareDataPacketData.Fields().ByName("proposal_id") - fd_AggrKeyshareDataPacketData_request_id = md_AggrKeyshareDataPacketData.Fields().ByName("request_id") - fd_AggrKeyshareDataPacketData_retries = md_AggrKeyshareDataPacketData.Fields().ByName("retries") + md_DecryptionKeyDataPacketData = File_fairyring_keyshare_packet_proto.Messages().ByName("DecryptionKeyDataPacketData") + fd_DecryptionKeyDataPacketData_identity = md_DecryptionKeyDataPacketData.Fields().ByName("identity") + fd_DecryptionKeyDataPacketData_pubkey = md_DecryptionKeyDataPacketData.Fields().ByName("pubkey") + fd_DecryptionKeyDataPacketData_decryption_key = md_DecryptionKeyDataPacketData.Fields().ByName("decryption_key") + fd_DecryptionKeyDataPacketData_aggr_height = md_DecryptionKeyDataPacketData.Fields().ByName("aggr_height") + fd_DecryptionKeyDataPacketData_proposal_id = md_DecryptionKeyDataPacketData.Fields().ByName("proposal_id") + fd_DecryptionKeyDataPacketData_request_id = md_DecryptionKeyDataPacketData.Fields().ByName("request_id") + fd_DecryptionKeyDataPacketData_retries = md_DecryptionKeyDataPacketData.Fields().ByName("retries") } -var _ protoreflect.Message = (*fastReflection_AggrKeyshareDataPacketData)(nil) +var _ protoreflect.Message = (*fastReflection_DecryptionKeyDataPacketData)(nil) -type fastReflection_AggrKeyshareDataPacketData AggrKeyshareDataPacketData +type fastReflection_DecryptionKeyDataPacketData DecryptionKeyDataPacketData -func (x *AggrKeyshareDataPacketData) ProtoReflect() protoreflect.Message { - return (*fastReflection_AggrKeyshareDataPacketData)(x) +func (x *DecryptionKeyDataPacketData) ProtoReflect() protoreflect.Message { + return (*fastReflection_DecryptionKeyDataPacketData)(x) } -func (x *AggrKeyshareDataPacketData) slowProtoReflect() protoreflect.Message { +func (x *DecryptionKeyDataPacketData) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_packet_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5419,43 +5419,43 @@ func (x *AggrKeyshareDataPacketData) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_AggrKeyshareDataPacketData_messageType fastReflection_AggrKeyshareDataPacketData_messageType -var _ protoreflect.MessageType = fastReflection_AggrKeyshareDataPacketData_messageType{} +var _fastReflection_DecryptionKeyDataPacketData_messageType fastReflection_DecryptionKeyDataPacketData_messageType +var _ protoreflect.MessageType = fastReflection_DecryptionKeyDataPacketData_messageType{} -type fastReflection_AggrKeyshareDataPacketData_messageType struct{} +type fastReflection_DecryptionKeyDataPacketData_messageType struct{} -func (x fastReflection_AggrKeyshareDataPacketData_messageType) Zero() protoreflect.Message { - return (*fastReflection_AggrKeyshareDataPacketData)(nil) +func (x fastReflection_DecryptionKeyDataPacketData_messageType) Zero() protoreflect.Message { + return (*fastReflection_DecryptionKeyDataPacketData)(nil) } -func (x fastReflection_AggrKeyshareDataPacketData_messageType) New() protoreflect.Message { - return new(fastReflection_AggrKeyshareDataPacketData) +func (x fastReflection_DecryptionKeyDataPacketData_messageType) New() protoreflect.Message { + return new(fastReflection_DecryptionKeyDataPacketData) } -func (x fastReflection_AggrKeyshareDataPacketData_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_AggrKeyshareDataPacketData +func (x fastReflection_DecryptionKeyDataPacketData_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_DecryptionKeyDataPacketData } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_AggrKeyshareDataPacketData) Descriptor() protoreflect.MessageDescriptor { - return md_AggrKeyshareDataPacketData +func (x *fastReflection_DecryptionKeyDataPacketData) Descriptor() protoreflect.MessageDescriptor { + return md_DecryptionKeyDataPacketData } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_AggrKeyshareDataPacketData) Type() protoreflect.MessageType { - return _fastReflection_AggrKeyshareDataPacketData_messageType +func (x *fastReflection_DecryptionKeyDataPacketData) Type() protoreflect.MessageType { + return _fastReflection_DecryptionKeyDataPacketData_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_AggrKeyshareDataPacketData) New() protoreflect.Message { - return new(fastReflection_AggrKeyshareDataPacketData) +func (x *fastReflection_DecryptionKeyDataPacketData) New() protoreflect.Message { + return new(fastReflection_DecryptionKeyDataPacketData) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_AggrKeyshareDataPacketData) Interface() protoreflect.ProtoMessage { - return (*AggrKeyshareDataPacketData)(x) +func (x *fastReflection_DecryptionKeyDataPacketData) Interface() protoreflect.ProtoMessage { + return (*DecryptionKeyDataPacketData)(x) } // Range iterates over every populated field in an undefined order, @@ -5463,46 +5463,46 @@ func (x *fastReflection_AggrKeyshareDataPacketData) Interface() protoreflect.Pro // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_AggrKeyshareDataPacketData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_DecryptionKeyDataPacketData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Identity != "" { value := protoreflect.ValueOfString(x.Identity) - if !f(fd_AggrKeyshareDataPacketData_identity, value) { + if !f(fd_DecryptionKeyDataPacketData_identity, value) { return } } if x.Pubkey != "" { value := protoreflect.ValueOfString(x.Pubkey) - if !f(fd_AggrKeyshareDataPacketData_pubkey, value) { + if !f(fd_DecryptionKeyDataPacketData_pubkey, value) { return } } - if x.AggrKeyshare != "" { - value := protoreflect.ValueOfString(x.AggrKeyshare) - if !f(fd_AggrKeyshareDataPacketData_aggr_keyshare, value) { + if x.DecryptionKey != "" { + value := protoreflect.ValueOfString(x.DecryptionKey) + if !f(fd_DecryptionKeyDataPacketData_decryption_key, value) { return } } if x.AggrHeight != "" { value := protoreflect.ValueOfString(x.AggrHeight) - if !f(fd_AggrKeyshareDataPacketData_aggr_height, value) { + if !f(fd_DecryptionKeyDataPacketData_aggr_height, value) { return } } if x.ProposalId != "" { value := protoreflect.ValueOfString(x.ProposalId) - if !f(fd_AggrKeyshareDataPacketData_proposal_id, value) { + if !f(fd_DecryptionKeyDataPacketData_proposal_id, value) { return } } if x.RequestId != "" { value := protoreflect.ValueOfString(x.RequestId) - if !f(fd_AggrKeyshareDataPacketData_request_id, value) { + if !f(fd_DecryptionKeyDataPacketData_request_id, value) { return } } if x.Retries != uint64(0) { value := protoreflect.ValueOfUint64(x.Retries) - if !f(fd_AggrKeyshareDataPacketData_retries, value) { + if !f(fd_DecryptionKeyDataPacketData_retries, value) { return } } @@ -5519,27 +5519,27 @@ func (x *fastReflection_AggrKeyshareDataPacketData) Range(f func(protoreflect.Fi // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_AggrKeyshareDataPacketData) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_DecryptionKeyDataPacketData) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.AggrKeyshareDataPacketData.identity": + case "fairyring.keyshare.DecryptionKeyDataPacketData.identity": return x.Identity != "" - case "fairyring.keyshare.AggrKeyshareDataPacketData.pubkey": + case "fairyring.keyshare.DecryptionKeyDataPacketData.pubkey": return x.Pubkey != "" - case "fairyring.keyshare.AggrKeyshareDataPacketData.aggr_keyshare": - return x.AggrKeyshare != "" - case "fairyring.keyshare.AggrKeyshareDataPacketData.aggr_height": + case "fairyring.keyshare.DecryptionKeyDataPacketData.decryption_key": + return x.DecryptionKey != "" + case "fairyring.keyshare.DecryptionKeyDataPacketData.aggr_height": return x.AggrHeight != "" - case "fairyring.keyshare.AggrKeyshareDataPacketData.proposal_id": + case "fairyring.keyshare.DecryptionKeyDataPacketData.proposal_id": return x.ProposalId != "" - case "fairyring.keyshare.AggrKeyshareDataPacketData.request_id": + case "fairyring.keyshare.DecryptionKeyDataPacketData.request_id": return x.RequestId != "" - case "fairyring.keyshare.AggrKeyshareDataPacketData.retries": + case "fairyring.keyshare.DecryptionKeyDataPacketData.retries": return x.Retries != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AggrKeyshareDataPacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKeyDataPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.AggrKeyshareDataPacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKeyDataPacketData does not contain field %s", fd.FullName())) } } @@ -5549,27 +5549,27 @@ func (x *fastReflection_AggrKeyshareDataPacketData) Has(fd protoreflect.FieldDes // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AggrKeyshareDataPacketData) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_DecryptionKeyDataPacketData) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.AggrKeyshareDataPacketData.identity": + case "fairyring.keyshare.DecryptionKeyDataPacketData.identity": x.Identity = "" - case "fairyring.keyshare.AggrKeyshareDataPacketData.pubkey": + case "fairyring.keyshare.DecryptionKeyDataPacketData.pubkey": x.Pubkey = "" - case "fairyring.keyshare.AggrKeyshareDataPacketData.aggr_keyshare": - x.AggrKeyshare = "" - case "fairyring.keyshare.AggrKeyshareDataPacketData.aggr_height": + case "fairyring.keyshare.DecryptionKeyDataPacketData.decryption_key": + x.DecryptionKey = "" + case "fairyring.keyshare.DecryptionKeyDataPacketData.aggr_height": x.AggrHeight = "" - case "fairyring.keyshare.AggrKeyshareDataPacketData.proposal_id": + case "fairyring.keyshare.DecryptionKeyDataPacketData.proposal_id": x.ProposalId = "" - case "fairyring.keyshare.AggrKeyshareDataPacketData.request_id": + case "fairyring.keyshare.DecryptionKeyDataPacketData.request_id": x.RequestId = "" - case "fairyring.keyshare.AggrKeyshareDataPacketData.retries": + case "fairyring.keyshare.DecryptionKeyDataPacketData.retries": x.Retries = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AggrKeyshareDataPacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKeyDataPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.AggrKeyshareDataPacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKeyDataPacketData does not contain field %s", fd.FullName())) } } @@ -5579,34 +5579,34 @@ func (x *fastReflection_AggrKeyshareDataPacketData) Clear(fd protoreflect.FieldD // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_AggrKeyshareDataPacketData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_DecryptionKeyDataPacketData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.AggrKeyshareDataPacketData.identity": + case "fairyring.keyshare.DecryptionKeyDataPacketData.identity": value := x.Identity return protoreflect.ValueOfString(value) - case "fairyring.keyshare.AggrKeyshareDataPacketData.pubkey": + case "fairyring.keyshare.DecryptionKeyDataPacketData.pubkey": value := x.Pubkey return protoreflect.ValueOfString(value) - case "fairyring.keyshare.AggrKeyshareDataPacketData.aggr_keyshare": - value := x.AggrKeyshare + case "fairyring.keyshare.DecryptionKeyDataPacketData.decryption_key": + value := x.DecryptionKey return protoreflect.ValueOfString(value) - case "fairyring.keyshare.AggrKeyshareDataPacketData.aggr_height": + case "fairyring.keyshare.DecryptionKeyDataPacketData.aggr_height": value := x.AggrHeight return protoreflect.ValueOfString(value) - case "fairyring.keyshare.AggrKeyshareDataPacketData.proposal_id": + case "fairyring.keyshare.DecryptionKeyDataPacketData.proposal_id": value := x.ProposalId return protoreflect.ValueOfString(value) - case "fairyring.keyshare.AggrKeyshareDataPacketData.request_id": + case "fairyring.keyshare.DecryptionKeyDataPacketData.request_id": value := x.RequestId return protoreflect.ValueOfString(value) - case "fairyring.keyshare.AggrKeyshareDataPacketData.retries": + case "fairyring.keyshare.DecryptionKeyDataPacketData.retries": value := x.Retries return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AggrKeyshareDataPacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKeyDataPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.AggrKeyshareDataPacketData does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKeyDataPacketData does not contain field %s", descriptor.FullName())) } } @@ -5620,27 +5620,27 @@ func (x *fastReflection_AggrKeyshareDataPacketData) Get(descriptor protoreflect. // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AggrKeyshareDataPacketData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_DecryptionKeyDataPacketData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.AggrKeyshareDataPacketData.identity": + case "fairyring.keyshare.DecryptionKeyDataPacketData.identity": x.Identity = value.Interface().(string) - case "fairyring.keyshare.AggrKeyshareDataPacketData.pubkey": + case "fairyring.keyshare.DecryptionKeyDataPacketData.pubkey": x.Pubkey = value.Interface().(string) - case "fairyring.keyshare.AggrKeyshareDataPacketData.aggr_keyshare": - x.AggrKeyshare = value.Interface().(string) - case "fairyring.keyshare.AggrKeyshareDataPacketData.aggr_height": + case "fairyring.keyshare.DecryptionKeyDataPacketData.decryption_key": + x.DecryptionKey = value.Interface().(string) + case "fairyring.keyshare.DecryptionKeyDataPacketData.aggr_height": x.AggrHeight = value.Interface().(string) - case "fairyring.keyshare.AggrKeyshareDataPacketData.proposal_id": + case "fairyring.keyshare.DecryptionKeyDataPacketData.proposal_id": x.ProposalId = value.Interface().(string) - case "fairyring.keyshare.AggrKeyshareDataPacketData.request_id": + case "fairyring.keyshare.DecryptionKeyDataPacketData.request_id": x.RequestId = value.Interface().(string) - case "fairyring.keyshare.AggrKeyshareDataPacketData.retries": + case "fairyring.keyshare.DecryptionKeyDataPacketData.retries": x.Retries = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AggrKeyshareDataPacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKeyDataPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.AggrKeyshareDataPacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKeyDataPacketData does not contain field %s", fd.FullName())) } } @@ -5654,64 +5654,64 @@ func (x *fastReflection_AggrKeyshareDataPacketData) Set(fd protoreflect.FieldDes // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AggrKeyshareDataPacketData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_DecryptionKeyDataPacketData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.AggrKeyshareDataPacketData.identity": - panic(fmt.Errorf("field identity of message fairyring.keyshare.AggrKeyshareDataPacketData is not mutable")) - case "fairyring.keyshare.AggrKeyshareDataPacketData.pubkey": - panic(fmt.Errorf("field pubkey of message fairyring.keyshare.AggrKeyshareDataPacketData is not mutable")) - case "fairyring.keyshare.AggrKeyshareDataPacketData.aggr_keyshare": - panic(fmt.Errorf("field aggr_keyshare of message fairyring.keyshare.AggrKeyshareDataPacketData is not mutable")) - case "fairyring.keyshare.AggrKeyshareDataPacketData.aggr_height": - panic(fmt.Errorf("field aggr_height of message fairyring.keyshare.AggrKeyshareDataPacketData is not mutable")) - case "fairyring.keyshare.AggrKeyshareDataPacketData.proposal_id": - panic(fmt.Errorf("field proposal_id of message fairyring.keyshare.AggrKeyshareDataPacketData is not mutable")) - case "fairyring.keyshare.AggrKeyshareDataPacketData.request_id": - panic(fmt.Errorf("field request_id of message fairyring.keyshare.AggrKeyshareDataPacketData is not mutable")) - case "fairyring.keyshare.AggrKeyshareDataPacketData.retries": - panic(fmt.Errorf("field retries of message fairyring.keyshare.AggrKeyshareDataPacketData is not mutable")) + case "fairyring.keyshare.DecryptionKeyDataPacketData.identity": + panic(fmt.Errorf("field identity of message fairyring.keyshare.DecryptionKeyDataPacketData is not mutable")) + case "fairyring.keyshare.DecryptionKeyDataPacketData.pubkey": + panic(fmt.Errorf("field pubkey of message fairyring.keyshare.DecryptionKeyDataPacketData is not mutable")) + case "fairyring.keyshare.DecryptionKeyDataPacketData.decryption_key": + panic(fmt.Errorf("field decryption_key of message fairyring.keyshare.DecryptionKeyDataPacketData is not mutable")) + case "fairyring.keyshare.DecryptionKeyDataPacketData.aggr_height": + panic(fmt.Errorf("field aggr_height of message fairyring.keyshare.DecryptionKeyDataPacketData is not mutable")) + case "fairyring.keyshare.DecryptionKeyDataPacketData.proposal_id": + panic(fmt.Errorf("field proposal_id of message fairyring.keyshare.DecryptionKeyDataPacketData is not mutable")) + case "fairyring.keyshare.DecryptionKeyDataPacketData.request_id": + panic(fmt.Errorf("field request_id of message fairyring.keyshare.DecryptionKeyDataPacketData is not mutable")) + case "fairyring.keyshare.DecryptionKeyDataPacketData.retries": + panic(fmt.Errorf("field retries of message fairyring.keyshare.DecryptionKeyDataPacketData is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AggrKeyshareDataPacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKeyDataPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.AggrKeyshareDataPacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKeyDataPacketData does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_AggrKeyshareDataPacketData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_DecryptionKeyDataPacketData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.AggrKeyshareDataPacketData.identity": + case "fairyring.keyshare.DecryptionKeyDataPacketData.identity": return protoreflect.ValueOfString("") - case "fairyring.keyshare.AggrKeyshareDataPacketData.pubkey": + case "fairyring.keyshare.DecryptionKeyDataPacketData.pubkey": return protoreflect.ValueOfString("") - case "fairyring.keyshare.AggrKeyshareDataPacketData.aggr_keyshare": + case "fairyring.keyshare.DecryptionKeyDataPacketData.decryption_key": return protoreflect.ValueOfString("") - case "fairyring.keyshare.AggrKeyshareDataPacketData.aggr_height": + case "fairyring.keyshare.DecryptionKeyDataPacketData.aggr_height": return protoreflect.ValueOfString("") - case "fairyring.keyshare.AggrKeyshareDataPacketData.proposal_id": + case "fairyring.keyshare.DecryptionKeyDataPacketData.proposal_id": return protoreflect.ValueOfString("") - case "fairyring.keyshare.AggrKeyshareDataPacketData.request_id": + case "fairyring.keyshare.DecryptionKeyDataPacketData.request_id": return protoreflect.ValueOfString("") - case "fairyring.keyshare.AggrKeyshareDataPacketData.retries": + case "fairyring.keyshare.DecryptionKeyDataPacketData.retries": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AggrKeyshareDataPacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKeyDataPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.AggrKeyshareDataPacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKeyDataPacketData does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_AggrKeyshareDataPacketData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_DecryptionKeyDataPacketData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.AggrKeyshareDataPacketData", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.DecryptionKeyDataPacketData", d.FullName())) } panic("unreachable") } @@ -5719,7 +5719,7 @@ func (x *fastReflection_AggrKeyshareDataPacketData) WhichOneof(d protoreflect.On // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_AggrKeyshareDataPacketData) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_DecryptionKeyDataPacketData) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5730,7 +5730,7 @@ func (x *fastReflection_AggrKeyshareDataPacketData) GetUnknown() protoreflect.Ra // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AggrKeyshareDataPacketData) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_DecryptionKeyDataPacketData) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5742,7 +5742,7 @@ func (x *fastReflection_AggrKeyshareDataPacketData) SetUnknown(fields protorefle // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_AggrKeyshareDataPacketData) IsValid() bool { +func (x *fastReflection_DecryptionKeyDataPacketData) IsValid() bool { return x != nil } @@ -5752,9 +5752,9 @@ func (x *fastReflection_AggrKeyshareDataPacketData) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_AggrKeyshareDataPacketData) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_DecryptionKeyDataPacketData) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*AggrKeyshareDataPacketData) + x := input.Message.Interface().(*DecryptionKeyDataPacketData) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5774,7 +5774,7 @@ func (x *fastReflection_AggrKeyshareDataPacketData) ProtoMethods() *protoiface.M if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.AggrKeyshare) + l = len(x.DecryptionKey) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -5803,7 +5803,7 @@ func (x *fastReflection_AggrKeyshareDataPacketData) ProtoMethods() *protoiface.M } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*AggrKeyshareDataPacketData) + x := input.Message.Interface().(*DecryptionKeyDataPacketData) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5848,10 +5848,10 @@ func (x *fastReflection_AggrKeyshareDataPacketData) ProtoMethods() *protoiface.M i-- dAtA[i] = 0x22 } - if len(x.AggrKeyshare) > 0 { - i -= len(x.AggrKeyshare) - copy(dAtA[i:], x.AggrKeyshare) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AggrKeyshare))) + if len(x.DecryptionKey) > 0 { + i -= len(x.DecryptionKey) + copy(dAtA[i:], x.DecryptionKey) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DecryptionKey))) i-- dAtA[i] = 0x1a } @@ -5880,7 +5880,7 @@ func (x *fastReflection_AggrKeyshareDataPacketData) ProtoMethods() *protoiface.M }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*AggrKeyshareDataPacketData) + x := input.Message.Interface().(*DecryptionKeyDataPacketData) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5912,10 +5912,10 @@ func (x *fastReflection_AggrKeyshareDataPacketData) ProtoMethods() *protoiface.M fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AggrKeyshareDataPacketData: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DecryptionKeyDataPacketData: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AggrKeyshareDataPacketData: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DecryptionKeyDataPacketData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5984,7 +5984,7 @@ func (x *fastReflection_AggrKeyshareDataPacketData) ProtoMethods() *protoiface.M iNdEx = postIndex case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AggrKeyshare", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DecryptionKey", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6012,7 +6012,7 @@ func (x *fastReflection_AggrKeyshareDataPacketData) ProtoMethods() *protoiface.M if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.AggrKeyshare = string(dAtA[iNdEx:postIndex]) + x.DecryptionKey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { @@ -6165,23 +6165,23 @@ func (x *fastReflection_AggrKeyshareDataPacketData) ProtoMethods() *protoiface.M } var ( - md_AggrKeyshareDataPacketAck protoreflect.MessageDescriptor + md_DecryptionKeyPacketAck protoreflect.MessageDescriptor ) func init() { file_fairyring_keyshare_packet_proto_init() - md_AggrKeyshareDataPacketAck = File_fairyring_keyshare_packet_proto.Messages().ByName("AggrKeyshareDataPacketAck") + md_DecryptionKeyPacketAck = File_fairyring_keyshare_packet_proto.Messages().ByName("DecryptionKeyPacketAck") } -var _ protoreflect.Message = (*fastReflection_AggrKeyshareDataPacketAck)(nil) +var _ protoreflect.Message = (*fastReflection_DecryptionKeyPacketAck)(nil) -type fastReflection_AggrKeyshareDataPacketAck AggrKeyshareDataPacketAck +type fastReflection_DecryptionKeyPacketAck DecryptionKeyPacketAck -func (x *AggrKeyshareDataPacketAck) ProtoReflect() protoreflect.Message { - return (*fastReflection_AggrKeyshareDataPacketAck)(x) +func (x *DecryptionKeyPacketAck) ProtoReflect() protoreflect.Message { + return (*fastReflection_DecryptionKeyPacketAck)(x) } -func (x *AggrKeyshareDataPacketAck) slowProtoReflect() protoreflect.Message { +func (x *DecryptionKeyPacketAck) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_packet_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6193,43 +6193,43 @@ func (x *AggrKeyshareDataPacketAck) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_AggrKeyshareDataPacketAck_messageType fastReflection_AggrKeyshareDataPacketAck_messageType -var _ protoreflect.MessageType = fastReflection_AggrKeyshareDataPacketAck_messageType{} +var _fastReflection_DecryptionKeyPacketAck_messageType fastReflection_DecryptionKeyPacketAck_messageType +var _ protoreflect.MessageType = fastReflection_DecryptionKeyPacketAck_messageType{} -type fastReflection_AggrKeyshareDataPacketAck_messageType struct{} +type fastReflection_DecryptionKeyPacketAck_messageType struct{} -func (x fastReflection_AggrKeyshareDataPacketAck_messageType) Zero() protoreflect.Message { - return (*fastReflection_AggrKeyshareDataPacketAck)(nil) +func (x fastReflection_DecryptionKeyPacketAck_messageType) Zero() protoreflect.Message { + return (*fastReflection_DecryptionKeyPacketAck)(nil) } -func (x fastReflection_AggrKeyshareDataPacketAck_messageType) New() protoreflect.Message { - return new(fastReflection_AggrKeyshareDataPacketAck) +func (x fastReflection_DecryptionKeyPacketAck_messageType) New() protoreflect.Message { + return new(fastReflection_DecryptionKeyPacketAck) } -func (x fastReflection_AggrKeyshareDataPacketAck_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_AggrKeyshareDataPacketAck +func (x fastReflection_DecryptionKeyPacketAck_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_DecryptionKeyPacketAck } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_AggrKeyshareDataPacketAck) Descriptor() protoreflect.MessageDescriptor { - return md_AggrKeyshareDataPacketAck +func (x *fastReflection_DecryptionKeyPacketAck) Descriptor() protoreflect.MessageDescriptor { + return md_DecryptionKeyPacketAck } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_AggrKeyshareDataPacketAck) Type() protoreflect.MessageType { - return _fastReflection_AggrKeyshareDataPacketAck_messageType +func (x *fastReflection_DecryptionKeyPacketAck) Type() protoreflect.MessageType { + return _fastReflection_DecryptionKeyPacketAck_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_AggrKeyshareDataPacketAck) New() protoreflect.Message { - return new(fastReflection_AggrKeyshareDataPacketAck) +func (x *fastReflection_DecryptionKeyPacketAck) New() protoreflect.Message { + return new(fastReflection_DecryptionKeyPacketAck) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_AggrKeyshareDataPacketAck) Interface() protoreflect.ProtoMessage { - return (*AggrKeyshareDataPacketAck)(x) +func (x *fastReflection_DecryptionKeyPacketAck) Interface() protoreflect.ProtoMessage { + return (*DecryptionKeyPacketAck)(x) } // Range iterates over every populated field in an undefined order, @@ -6237,7 +6237,7 @@ func (x *fastReflection_AggrKeyshareDataPacketAck) Interface() protoreflect.Prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_AggrKeyshareDataPacketAck) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_DecryptionKeyPacketAck) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -6251,13 +6251,13 @@ func (x *fastReflection_AggrKeyshareDataPacketAck) Range(f func(protoreflect.Fie // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_AggrKeyshareDataPacketAck) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_DecryptionKeyPacketAck) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AggrKeyshareDataPacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.AggrKeyshareDataPacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } @@ -6267,13 +6267,13 @@ func (x *fastReflection_AggrKeyshareDataPacketAck) Has(fd protoreflect.FieldDesc // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AggrKeyshareDataPacketAck) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_DecryptionKeyPacketAck) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AggrKeyshareDataPacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.AggrKeyshareDataPacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } @@ -6283,13 +6283,13 @@ func (x *fastReflection_AggrKeyshareDataPacketAck) Clear(fd protoreflect.FieldDe // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_AggrKeyshareDataPacketAck) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_DecryptionKeyPacketAck) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AggrKeyshareDataPacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.AggrKeyshareDataPacketAck does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKeyPacketAck does not contain field %s", descriptor.FullName())) } } @@ -6303,13 +6303,13 @@ func (x *fastReflection_AggrKeyshareDataPacketAck) Get(descriptor protoreflect.F // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AggrKeyshareDataPacketAck) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_DecryptionKeyPacketAck) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AggrKeyshareDataPacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.AggrKeyshareDataPacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } @@ -6323,36 +6323,36 @@ func (x *fastReflection_AggrKeyshareDataPacketAck) Set(fd protoreflect.FieldDesc // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AggrKeyshareDataPacketAck) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_DecryptionKeyPacketAck) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AggrKeyshareDataPacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.AggrKeyshareDataPacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_AggrKeyshareDataPacketAck) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_DecryptionKeyPacketAck) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AggrKeyshareDataPacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.AggrKeyshareDataPacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_AggrKeyshareDataPacketAck) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_DecryptionKeyPacketAck) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.AggrKeyshareDataPacketAck", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.DecryptionKeyPacketAck", d.FullName())) } panic("unreachable") } @@ -6360,7 +6360,7 @@ func (x *fastReflection_AggrKeyshareDataPacketAck) WhichOneof(d protoreflect.One // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_AggrKeyshareDataPacketAck) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_DecryptionKeyPacketAck) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6371,7 +6371,7 @@ func (x *fastReflection_AggrKeyshareDataPacketAck) GetUnknown() protoreflect.Raw // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AggrKeyshareDataPacketAck) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_DecryptionKeyPacketAck) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6383,7 +6383,7 @@ func (x *fastReflection_AggrKeyshareDataPacketAck) SetUnknown(fields protoreflec // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_AggrKeyshareDataPacketAck) IsValid() bool { +func (x *fastReflection_DecryptionKeyPacketAck) IsValid() bool { return x != nil } @@ -6393,9 +6393,9 @@ func (x *fastReflection_AggrKeyshareDataPacketAck) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_AggrKeyshareDataPacketAck) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_DecryptionKeyPacketAck) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*AggrKeyshareDataPacketAck) + x := input.Message.Interface().(*DecryptionKeyPacketAck) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6417,7 +6417,7 @@ func (x *fastReflection_AggrKeyshareDataPacketAck) ProtoMethods() *protoiface.Me } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*AggrKeyshareDataPacketAck) + x := input.Message.Interface().(*DecryptionKeyPacketAck) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6447,7 +6447,7 @@ func (x *fastReflection_AggrKeyshareDataPacketAck) ProtoMethods() *protoiface.Me }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*AggrKeyshareDataPacketAck) + x := input.Message.Interface().(*DecryptionKeyPacketAck) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6479,10 +6479,10 @@ func (x *fastReflection_AggrKeyshareDataPacketAck) ProtoMethods() *protoiface.Me fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AggrKeyshareDataPacketAck: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DecryptionKeyPacketAck: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AggrKeyshareDataPacketAck: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DecryptionKeyPacketAck: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -6520,83 +6520,83 @@ func (x *fastReflection_AggrKeyshareDataPacketAck) ProtoMethods() *protoiface.Me } } -var _ protoreflect.List = (*_EncryptedKeysharesPacketData_4_list)(nil) +var _ protoreflect.List = (*_PrivateDecryptionKeyDataPacketData_4_list)(nil) -type _EncryptedKeysharesPacketData_4_list struct { - list *[]*common.EncryptedKeyshare +type _PrivateDecryptionKeyDataPacketData_4_list struct { + list *[]*common.PrivateDecryptionKey } -func (x *_EncryptedKeysharesPacketData_4_list) Len() int { +func (x *_PrivateDecryptionKeyDataPacketData_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_EncryptedKeysharesPacketData_4_list) Get(i int) protoreflect.Value { +func (x *_PrivateDecryptionKeyDataPacketData_4_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_EncryptedKeysharesPacketData_4_list) Set(i int, value protoreflect.Value) { +func (x *_PrivateDecryptionKeyDataPacketData_4_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*common.EncryptedKeyshare) + concreteValue := valueUnwrapped.Interface().(*common.PrivateDecryptionKey) (*x.list)[i] = concreteValue } -func (x *_EncryptedKeysharesPacketData_4_list) Append(value protoreflect.Value) { +func (x *_PrivateDecryptionKeyDataPacketData_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*common.EncryptedKeyshare) + concreteValue := valueUnwrapped.Interface().(*common.PrivateDecryptionKey) *x.list = append(*x.list, concreteValue) } -func (x *_EncryptedKeysharesPacketData_4_list) AppendMutable() protoreflect.Value { - v := new(common.EncryptedKeyshare) +func (x *_PrivateDecryptionKeyDataPacketData_4_list) AppendMutable() protoreflect.Value { + v := new(common.PrivateDecryptionKey) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_EncryptedKeysharesPacketData_4_list) Truncate(n int) { +func (x *_PrivateDecryptionKeyDataPacketData_4_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_EncryptedKeysharesPacketData_4_list) NewElement() protoreflect.Value { - v := new(common.EncryptedKeyshare) +func (x *_PrivateDecryptionKeyDataPacketData_4_list) NewElement() protoreflect.Value { + v := new(common.PrivateDecryptionKey) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_EncryptedKeysharesPacketData_4_list) IsValid() bool { +func (x *_PrivateDecryptionKeyDataPacketData_4_list) IsValid() bool { return x.list != nil } var ( - md_EncryptedKeysharesPacketData protoreflect.MessageDescriptor - fd_EncryptedKeysharesPacketData_identity protoreflect.FieldDescriptor - fd_EncryptedKeysharesPacketData_pubkey protoreflect.FieldDescriptor - fd_EncryptedKeysharesPacketData_request_id protoreflect.FieldDescriptor - fd_EncryptedKeysharesPacketData_encrypted_keyshares protoreflect.FieldDescriptor + md_PrivateDecryptionKeyDataPacketData protoreflect.MessageDescriptor + fd_PrivateDecryptionKeyDataPacketData_identity protoreflect.FieldDescriptor + fd_PrivateDecryptionKeyDataPacketData_pubkey protoreflect.FieldDescriptor + fd_PrivateDecryptionKeyDataPacketData_request_id protoreflect.FieldDescriptor + fd_PrivateDecryptionKeyDataPacketData_private_decryption_key protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_packet_proto_init() - md_EncryptedKeysharesPacketData = File_fairyring_keyshare_packet_proto.Messages().ByName("EncryptedKeysharesPacketData") - fd_EncryptedKeysharesPacketData_identity = md_EncryptedKeysharesPacketData.Fields().ByName("identity") - fd_EncryptedKeysharesPacketData_pubkey = md_EncryptedKeysharesPacketData.Fields().ByName("pubkey") - fd_EncryptedKeysharesPacketData_request_id = md_EncryptedKeysharesPacketData.Fields().ByName("request_id") - fd_EncryptedKeysharesPacketData_encrypted_keyshares = md_EncryptedKeysharesPacketData.Fields().ByName("encrypted_keyshares") + md_PrivateDecryptionKeyDataPacketData = File_fairyring_keyshare_packet_proto.Messages().ByName("PrivateDecryptionKeyDataPacketData") + fd_PrivateDecryptionKeyDataPacketData_identity = md_PrivateDecryptionKeyDataPacketData.Fields().ByName("identity") + fd_PrivateDecryptionKeyDataPacketData_pubkey = md_PrivateDecryptionKeyDataPacketData.Fields().ByName("pubkey") + fd_PrivateDecryptionKeyDataPacketData_request_id = md_PrivateDecryptionKeyDataPacketData.Fields().ByName("request_id") + fd_PrivateDecryptionKeyDataPacketData_private_decryption_key = md_PrivateDecryptionKeyDataPacketData.Fields().ByName("private_decryption_key") } -var _ protoreflect.Message = (*fastReflection_EncryptedKeysharesPacketData)(nil) +var _ protoreflect.Message = (*fastReflection_PrivateDecryptionKeyDataPacketData)(nil) -type fastReflection_EncryptedKeysharesPacketData EncryptedKeysharesPacketData +type fastReflection_PrivateDecryptionKeyDataPacketData PrivateDecryptionKeyDataPacketData -func (x *EncryptedKeysharesPacketData) ProtoReflect() protoreflect.Message { - return (*fastReflection_EncryptedKeysharesPacketData)(x) +func (x *PrivateDecryptionKeyDataPacketData) ProtoReflect() protoreflect.Message { + return (*fastReflection_PrivateDecryptionKeyDataPacketData)(x) } -func (x *EncryptedKeysharesPacketData) slowProtoReflect() protoreflect.Message { +func (x *PrivateDecryptionKeyDataPacketData) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_packet_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6608,43 +6608,43 @@ func (x *EncryptedKeysharesPacketData) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_EncryptedKeysharesPacketData_messageType fastReflection_EncryptedKeysharesPacketData_messageType -var _ protoreflect.MessageType = fastReflection_EncryptedKeysharesPacketData_messageType{} +var _fastReflection_PrivateDecryptionKeyDataPacketData_messageType fastReflection_PrivateDecryptionKeyDataPacketData_messageType +var _ protoreflect.MessageType = fastReflection_PrivateDecryptionKeyDataPacketData_messageType{} -type fastReflection_EncryptedKeysharesPacketData_messageType struct{} +type fastReflection_PrivateDecryptionKeyDataPacketData_messageType struct{} -func (x fastReflection_EncryptedKeysharesPacketData_messageType) Zero() protoreflect.Message { - return (*fastReflection_EncryptedKeysharesPacketData)(nil) +func (x fastReflection_PrivateDecryptionKeyDataPacketData_messageType) Zero() protoreflect.Message { + return (*fastReflection_PrivateDecryptionKeyDataPacketData)(nil) } -func (x fastReflection_EncryptedKeysharesPacketData_messageType) New() protoreflect.Message { - return new(fastReflection_EncryptedKeysharesPacketData) +func (x fastReflection_PrivateDecryptionKeyDataPacketData_messageType) New() protoreflect.Message { + return new(fastReflection_PrivateDecryptionKeyDataPacketData) } -func (x fastReflection_EncryptedKeysharesPacketData_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EncryptedKeysharesPacketData +func (x fastReflection_PrivateDecryptionKeyDataPacketData_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_PrivateDecryptionKeyDataPacketData } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_EncryptedKeysharesPacketData) Descriptor() protoreflect.MessageDescriptor { - return md_EncryptedKeysharesPacketData +func (x *fastReflection_PrivateDecryptionKeyDataPacketData) Descriptor() protoreflect.MessageDescriptor { + return md_PrivateDecryptionKeyDataPacketData } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_EncryptedKeysharesPacketData) Type() protoreflect.MessageType { - return _fastReflection_EncryptedKeysharesPacketData_messageType +func (x *fastReflection_PrivateDecryptionKeyDataPacketData) Type() protoreflect.MessageType { + return _fastReflection_PrivateDecryptionKeyDataPacketData_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_EncryptedKeysharesPacketData) New() protoreflect.Message { - return new(fastReflection_EncryptedKeysharesPacketData) +func (x *fastReflection_PrivateDecryptionKeyDataPacketData) New() protoreflect.Message { + return new(fastReflection_PrivateDecryptionKeyDataPacketData) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_EncryptedKeysharesPacketData) Interface() protoreflect.ProtoMessage { - return (*EncryptedKeysharesPacketData)(x) +func (x *fastReflection_PrivateDecryptionKeyDataPacketData) Interface() protoreflect.ProtoMessage { + return (*PrivateDecryptionKeyDataPacketData)(x) } // Range iterates over every populated field in an undefined order, @@ -6652,28 +6652,28 @@ func (x *fastReflection_EncryptedKeysharesPacketData) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_EncryptedKeysharesPacketData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_PrivateDecryptionKeyDataPacketData) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Identity != "" { value := protoreflect.ValueOfString(x.Identity) - if !f(fd_EncryptedKeysharesPacketData_identity, value) { + if !f(fd_PrivateDecryptionKeyDataPacketData_identity, value) { return } } if x.Pubkey != "" { value := protoreflect.ValueOfString(x.Pubkey) - if !f(fd_EncryptedKeysharesPacketData_pubkey, value) { + if !f(fd_PrivateDecryptionKeyDataPacketData_pubkey, value) { return } } if x.RequestId != "" { value := protoreflect.ValueOfString(x.RequestId) - if !f(fd_EncryptedKeysharesPacketData_request_id, value) { + if !f(fd_PrivateDecryptionKeyDataPacketData_request_id, value) { return } } - if len(x.EncryptedKeyshares) != 0 { - value := protoreflect.ValueOfList(&_EncryptedKeysharesPacketData_4_list{list: &x.EncryptedKeyshares}) - if !f(fd_EncryptedKeysharesPacketData_encrypted_keyshares, value) { + if len(x.PrivateDecryptionKey) != 0 { + value := protoreflect.ValueOfList(&_PrivateDecryptionKeyDataPacketData_4_list{list: &x.PrivateDecryptionKey}) + if !f(fd_PrivateDecryptionKeyDataPacketData_private_decryption_key, value) { return } } @@ -6690,21 +6690,21 @@ func (x *fastReflection_EncryptedKeysharesPacketData) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_EncryptedKeysharesPacketData) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_PrivateDecryptionKeyDataPacketData) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.EncryptedKeysharesPacketData.identity": + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.identity": return x.Identity != "" - case "fairyring.keyshare.EncryptedKeysharesPacketData.pubkey": + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.pubkey": return x.Pubkey != "" - case "fairyring.keyshare.EncryptedKeysharesPacketData.request_id": + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.request_id": return x.RequestId != "" - case "fairyring.keyshare.EncryptedKeysharesPacketData.encrypted_keyshares": - return len(x.EncryptedKeyshares) != 0 + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.private_decryption_key": + return len(x.PrivateDecryptionKey) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeysharesPacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateDecryptionKeyDataPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeysharesPacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.PrivateDecryptionKeyDataPacketData does not contain field %s", fd.FullName())) } } @@ -6714,21 +6714,21 @@ func (x *fastReflection_EncryptedKeysharesPacketData) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EncryptedKeysharesPacketData) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_PrivateDecryptionKeyDataPacketData) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.EncryptedKeysharesPacketData.identity": + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.identity": x.Identity = "" - case "fairyring.keyshare.EncryptedKeysharesPacketData.pubkey": + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.pubkey": x.Pubkey = "" - case "fairyring.keyshare.EncryptedKeysharesPacketData.request_id": + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.request_id": x.RequestId = "" - case "fairyring.keyshare.EncryptedKeysharesPacketData.encrypted_keyshares": - x.EncryptedKeyshares = nil + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.private_decryption_key": + x.PrivateDecryptionKey = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeysharesPacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateDecryptionKeyDataPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeysharesPacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.PrivateDecryptionKeyDataPacketData does not contain field %s", fd.FullName())) } } @@ -6738,28 +6738,28 @@ func (x *fastReflection_EncryptedKeysharesPacketData) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EncryptedKeysharesPacketData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PrivateDecryptionKeyDataPacketData) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.EncryptedKeysharesPacketData.identity": + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.identity": value := x.Identity return protoreflect.ValueOfString(value) - case "fairyring.keyshare.EncryptedKeysharesPacketData.pubkey": + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.pubkey": value := x.Pubkey return protoreflect.ValueOfString(value) - case "fairyring.keyshare.EncryptedKeysharesPacketData.request_id": + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.request_id": value := x.RequestId return protoreflect.ValueOfString(value) - case "fairyring.keyshare.EncryptedKeysharesPacketData.encrypted_keyshares": - if len(x.EncryptedKeyshares) == 0 { - return protoreflect.ValueOfList(&_EncryptedKeysharesPacketData_4_list{}) + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.private_decryption_key": + if len(x.PrivateDecryptionKey) == 0 { + return protoreflect.ValueOfList(&_PrivateDecryptionKeyDataPacketData_4_list{}) } - listValue := &_EncryptedKeysharesPacketData_4_list{list: &x.EncryptedKeyshares} + listValue := &_PrivateDecryptionKeyDataPacketData_4_list{list: &x.PrivateDecryptionKey} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeysharesPacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateDecryptionKeyDataPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeysharesPacketData does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.PrivateDecryptionKeyDataPacketData does not contain field %s", descriptor.FullName())) } } @@ -6773,23 +6773,23 @@ func (x *fastReflection_EncryptedKeysharesPacketData) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EncryptedKeysharesPacketData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_PrivateDecryptionKeyDataPacketData) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.EncryptedKeysharesPacketData.identity": + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.identity": x.Identity = value.Interface().(string) - case "fairyring.keyshare.EncryptedKeysharesPacketData.pubkey": + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.pubkey": x.Pubkey = value.Interface().(string) - case "fairyring.keyshare.EncryptedKeysharesPacketData.request_id": + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.request_id": x.RequestId = value.Interface().(string) - case "fairyring.keyshare.EncryptedKeysharesPacketData.encrypted_keyshares": + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.private_decryption_key": lv := value.List() - clv := lv.(*_EncryptedKeysharesPacketData_4_list) - x.EncryptedKeyshares = *clv.list + clv := lv.(*_PrivateDecryptionKeyDataPacketData_4_list) + x.PrivateDecryptionKey = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeysharesPacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateDecryptionKeyDataPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeysharesPacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.PrivateDecryptionKeyDataPacketData does not contain field %s", fd.FullName())) } } @@ -6803,57 +6803,57 @@ func (x *fastReflection_EncryptedKeysharesPacketData) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EncryptedKeysharesPacketData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PrivateDecryptionKeyDataPacketData) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.EncryptedKeysharesPacketData.encrypted_keyshares": - if x.EncryptedKeyshares == nil { - x.EncryptedKeyshares = []*common.EncryptedKeyshare{} + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.private_decryption_key": + if x.PrivateDecryptionKey == nil { + x.PrivateDecryptionKey = []*common.PrivateDecryptionKey{} } - value := &_EncryptedKeysharesPacketData_4_list{list: &x.EncryptedKeyshares} + value := &_PrivateDecryptionKeyDataPacketData_4_list{list: &x.PrivateDecryptionKey} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.EncryptedKeysharesPacketData.identity": - panic(fmt.Errorf("field identity of message fairyring.keyshare.EncryptedKeysharesPacketData is not mutable")) - case "fairyring.keyshare.EncryptedKeysharesPacketData.pubkey": - panic(fmt.Errorf("field pubkey of message fairyring.keyshare.EncryptedKeysharesPacketData is not mutable")) - case "fairyring.keyshare.EncryptedKeysharesPacketData.request_id": - panic(fmt.Errorf("field request_id of message fairyring.keyshare.EncryptedKeysharesPacketData is not mutable")) + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.identity": + panic(fmt.Errorf("field identity of message fairyring.keyshare.PrivateDecryptionKeyDataPacketData is not mutable")) + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.pubkey": + panic(fmt.Errorf("field pubkey of message fairyring.keyshare.PrivateDecryptionKeyDataPacketData is not mutable")) + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.request_id": + panic(fmt.Errorf("field request_id of message fairyring.keyshare.PrivateDecryptionKeyDataPacketData is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeysharesPacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateDecryptionKeyDataPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeysharesPacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.PrivateDecryptionKeyDataPacketData does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EncryptedKeysharesPacketData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PrivateDecryptionKeyDataPacketData) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.EncryptedKeysharesPacketData.identity": + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.identity": return protoreflect.ValueOfString("") - case "fairyring.keyshare.EncryptedKeysharesPacketData.pubkey": + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.pubkey": return protoreflect.ValueOfString("") - case "fairyring.keyshare.EncryptedKeysharesPacketData.request_id": + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.request_id": return protoreflect.ValueOfString("") - case "fairyring.keyshare.EncryptedKeysharesPacketData.encrypted_keyshares": - list := []*common.EncryptedKeyshare{} - return protoreflect.ValueOfList(&_EncryptedKeysharesPacketData_4_list{list: &list}) + case "fairyring.keyshare.PrivateDecryptionKeyDataPacketData.private_decryption_key": + list := []*common.PrivateDecryptionKey{} + return protoreflect.ValueOfList(&_PrivateDecryptionKeyDataPacketData_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeysharesPacketData")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateDecryptionKeyDataPacketData")) } - panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeysharesPacketData does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.PrivateDecryptionKeyDataPacketData does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EncryptedKeysharesPacketData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_PrivateDecryptionKeyDataPacketData) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.EncryptedKeysharesPacketData", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.PrivateDecryptionKeyDataPacketData", d.FullName())) } panic("unreachable") } @@ -6861,7 +6861,7 @@ func (x *fastReflection_EncryptedKeysharesPacketData) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EncryptedKeysharesPacketData) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_PrivateDecryptionKeyDataPacketData) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6872,7 +6872,7 @@ func (x *fastReflection_EncryptedKeysharesPacketData) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EncryptedKeysharesPacketData) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_PrivateDecryptionKeyDataPacketData) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6884,7 +6884,7 @@ func (x *fastReflection_EncryptedKeysharesPacketData) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_EncryptedKeysharesPacketData) IsValid() bool { +func (x *fastReflection_PrivateDecryptionKeyDataPacketData) IsValid() bool { return x != nil } @@ -6894,9 +6894,9 @@ func (x *fastReflection_EncryptedKeysharesPacketData) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_EncryptedKeysharesPacketData) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_PrivateDecryptionKeyDataPacketData) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EncryptedKeysharesPacketData) + x := input.Message.Interface().(*PrivateDecryptionKeyDataPacketData) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6920,8 +6920,8 @@ func (x *fastReflection_EncryptedKeysharesPacketData) ProtoMethods() *protoiface if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.EncryptedKeyshares) > 0 { - for _, e := range x.EncryptedKeyshares { + if len(x.PrivateDecryptionKey) > 0 { + for _, e := range x.PrivateDecryptionKey { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -6936,7 +6936,7 @@ func (x *fastReflection_EncryptedKeysharesPacketData) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EncryptedKeysharesPacketData) + x := input.Message.Interface().(*PrivateDecryptionKeyDataPacketData) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6955,9 +6955,9 @@ func (x *fastReflection_EncryptedKeysharesPacketData) ProtoMethods() *protoiface i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.EncryptedKeyshares) > 0 { - for iNdEx := len(x.EncryptedKeyshares) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.EncryptedKeyshares[iNdEx]) + if len(x.PrivateDecryptionKey) > 0 { + for iNdEx := len(x.PrivateDecryptionKey) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PrivateDecryptionKey[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7003,7 +7003,7 @@ func (x *fastReflection_EncryptedKeysharesPacketData) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EncryptedKeysharesPacketData) + x := input.Message.Interface().(*PrivateDecryptionKeyDataPacketData) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7035,10 +7035,10 @@ func (x *fastReflection_EncryptedKeysharesPacketData) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EncryptedKeysharesPacketData: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PrivateDecryptionKeyDataPacketData: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EncryptedKeysharesPacketData: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PrivateDecryptionKeyDataPacketData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7139,7 +7139,7 @@ func (x *fastReflection_EncryptedKeysharesPacketData) ProtoMethods() *protoiface iNdEx = postIndex case 4: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyshares", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PrivateDecryptionKey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7166,8 +7166,8 @@ func (x *fastReflection_EncryptedKeysharesPacketData) ProtoMethods() *protoiface if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.EncryptedKeyshares = append(x.EncryptedKeyshares, &common.EncryptedKeyshare{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EncryptedKeyshares[len(x.EncryptedKeyshares)-1]); err != nil { + x.PrivateDecryptionKey = append(x.PrivateDecryptionKey, &common.PrivateDecryptionKey{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PrivateDecryptionKey[len(x.PrivateDecryptionKey)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -7207,23 +7207,23 @@ func (x *fastReflection_EncryptedKeysharesPacketData) ProtoMethods() *protoiface } var ( - md_EncryptedKeysharesPacketAck protoreflect.MessageDescriptor + md_PrivateDecryptionKeyPacketAck protoreflect.MessageDescriptor ) func init() { file_fairyring_keyshare_packet_proto_init() - md_EncryptedKeysharesPacketAck = File_fairyring_keyshare_packet_proto.Messages().ByName("EncryptedKeysharesPacketAck") + md_PrivateDecryptionKeyPacketAck = File_fairyring_keyshare_packet_proto.Messages().ByName("PrivateDecryptionKeyPacketAck") } -var _ protoreflect.Message = (*fastReflection_EncryptedKeysharesPacketAck)(nil) +var _ protoreflect.Message = (*fastReflection_PrivateDecryptionKeyPacketAck)(nil) -type fastReflection_EncryptedKeysharesPacketAck EncryptedKeysharesPacketAck +type fastReflection_PrivateDecryptionKeyPacketAck PrivateDecryptionKeyPacketAck -func (x *EncryptedKeysharesPacketAck) ProtoReflect() protoreflect.Message { - return (*fastReflection_EncryptedKeysharesPacketAck)(x) +func (x *PrivateDecryptionKeyPacketAck) ProtoReflect() protoreflect.Message { + return (*fastReflection_PrivateDecryptionKeyPacketAck)(x) } -func (x *EncryptedKeysharesPacketAck) slowProtoReflect() protoreflect.Message { +func (x *PrivateDecryptionKeyPacketAck) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_packet_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7235,43 +7235,43 @@ func (x *EncryptedKeysharesPacketAck) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_EncryptedKeysharesPacketAck_messageType fastReflection_EncryptedKeysharesPacketAck_messageType -var _ protoreflect.MessageType = fastReflection_EncryptedKeysharesPacketAck_messageType{} +var _fastReflection_PrivateDecryptionKeyPacketAck_messageType fastReflection_PrivateDecryptionKeyPacketAck_messageType +var _ protoreflect.MessageType = fastReflection_PrivateDecryptionKeyPacketAck_messageType{} -type fastReflection_EncryptedKeysharesPacketAck_messageType struct{} +type fastReflection_PrivateDecryptionKeyPacketAck_messageType struct{} -func (x fastReflection_EncryptedKeysharesPacketAck_messageType) Zero() protoreflect.Message { - return (*fastReflection_EncryptedKeysharesPacketAck)(nil) +func (x fastReflection_PrivateDecryptionKeyPacketAck_messageType) Zero() protoreflect.Message { + return (*fastReflection_PrivateDecryptionKeyPacketAck)(nil) } -func (x fastReflection_EncryptedKeysharesPacketAck_messageType) New() protoreflect.Message { - return new(fastReflection_EncryptedKeysharesPacketAck) +func (x fastReflection_PrivateDecryptionKeyPacketAck_messageType) New() protoreflect.Message { + return new(fastReflection_PrivateDecryptionKeyPacketAck) } -func (x fastReflection_EncryptedKeysharesPacketAck_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EncryptedKeysharesPacketAck +func (x fastReflection_PrivateDecryptionKeyPacketAck_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_PrivateDecryptionKeyPacketAck } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_EncryptedKeysharesPacketAck) Descriptor() protoreflect.MessageDescriptor { - return md_EncryptedKeysharesPacketAck +func (x *fastReflection_PrivateDecryptionKeyPacketAck) Descriptor() protoreflect.MessageDescriptor { + return md_PrivateDecryptionKeyPacketAck } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_EncryptedKeysharesPacketAck) Type() protoreflect.MessageType { - return _fastReflection_EncryptedKeysharesPacketAck_messageType +func (x *fastReflection_PrivateDecryptionKeyPacketAck) Type() protoreflect.MessageType { + return _fastReflection_PrivateDecryptionKeyPacketAck_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_EncryptedKeysharesPacketAck) New() protoreflect.Message { - return new(fastReflection_EncryptedKeysharesPacketAck) +func (x *fastReflection_PrivateDecryptionKeyPacketAck) New() protoreflect.Message { + return new(fastReflection_PrivateDecryptionKeyPacketAck) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_EncryptedKeysharesPacketAck) Interface() protoreflect.ProtoMessage { - return (*EncryptedKeysharesPacketAck)(x) +func (x *fastReflection_PrivateDecryptionKeyPacketAck) Interface() protoreflect.ProtoMessage { + return (*PrivateDecryptionKeyPacketAck)(x) } // Range iterates over every populated field in an undefined order, @@ -7279,7 +7279,7 @@ func (x *fastReflection_EncryptedKeysharesPacketAck) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_EncryptedKeysharesPacketAck) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_PrivateDecryptionKeyPacketAck) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -7293,13 +7293,13 @@ func (x *fastReflection_EncryptedKeysharesPacketAck) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_EncryptedKeysharesPacketAck) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_PrivateDecryptionKeyPacketAck) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeysharesPacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeysharesPacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.PrivateDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } @@ -7309,13 +7309,13 @@ func (x *fastReflection_EncryptedKeysharesPacketAck) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EncryptedKeysharesPacketAck) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_PrivateDecryptionKeyPacketAck) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeysharesPacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeysharesPacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.PrivateDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } @@ -7325,13 +7325,13 @@ func (x *fastReflection_EncryptedKeysharesPacketAck) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EncryptedKeysharesPacketAck) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PrivateDecryptionKeyPacketAck) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeysharesPacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeysharesPacketAck does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.PrivateDecryptionKeyPacketAck does not contain field %s", descriptor.FullName())) } } @@ -7345,13 +7345,13 @@ func (x *fastReflection_EncryptedKeysharesPacketAck) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EncryptedKeysharesPacketAck) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_PrivateDecryptionKeyPacketAck) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeysharesPacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeysharesPacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.PrivateDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } @@ -7365,36 +7365,36 @@ func (x *fastReflection_EncryptedKeysharesPacketAck) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EncryptedKeysharesPacketAck) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PrivateDecryptionKeyPacketAck) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeysharesPacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeysharesPacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.PrivateDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EncryptedKeysharesPacketAck) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PrivateDecryptionKeyPacketAck) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeysharesPacketAck")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateDecryptionKeyPacketAck")) } - panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeysharesPacketAck does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.PrivateDecryptionKeyPacketAck does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EncryptedKeysharesPacketAck) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_PrivateDecryptionKeyPacketAck) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.EncryptedKeysharesPacketAck", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.PrivateDecryptionKeyPacketAck", d.FullName())) } panic("unreachable") } @@ -7402,7 +7402,7 @@ func (x *fastReflection_EncryptedKeysharesPacketAck) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EncryptedKeysharesPacketAck) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_PrivateDecryptionKeyPacketAck) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7413,7 +7413,7 @@ func (x *fastReflection_EncryptedKeysharesPacketAck) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EncryptedKeysharesPacketAck) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_PrivateDecryptionKeyPacketAck) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7425,7 +7425,7 @@ func (x *fastReflection_EncryptedKeysharesPacketAck) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_EncryptedKeysharesPacketAck) IsValid() bool { +func (x *fastReflection_PrivateDecryptionKeyPacketAck) IsValid() bool { return x != nil } @@ -7435,9 +7435,9 @@ func (x *fastReflection_EncryptedKeysharesPacketAck) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_EncryptedKeysharesPacketAck) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_PrivateDecryptionKeyPacketAck) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EncryptedKeysharesPacketAck) + x := input.Message.Interface().(*PrivateDecryptionKeyPacketAck) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7459,7 +7459,7 @@ func (x *fastReflection_EncryptedKeysharesPacketAck) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EncryptedKeysharesPacketAck) + x := input.Message.Interface().(*PrivateDecryptionKeyPacketAck) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7489,7 +7489,7 @@ func (x *fastReflection_EncryptedKeysharesPacketAck) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EncryptedKeysharesPacketAck) + x := input.Message.Interface().(*PrivateDecryptionKeyPacketAck) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7521,10 +7521,10 @@ func (x *fastReflection_EncryptedKeysharesPacketAck) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EncryptedKeysharesPacketAck: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PrivateDecryptionKeyPacketAck: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EncryptedKeysharesPacketAck: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PrivateDecryptionKeyPacketAck: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -7919,16 +7919,16 @@ func (x *fastReflection_CurrentKeysPacketData) ProtoMethods() *protoiface.Method } var ( - md_CurrentKeysPacketAck protoreflect.MessageDescriptor - fd_CurrentKeysPacketAck_activeKey protoreflect.FieldDescriptor - fd_CurrentKeysPacketAck_queuedKey protoreflect.FieldDescriptor + md_CurrentKeysPacketAck protoreflect.MessageDescriptor + fd_CurrentKeysPacketAck_active_key protoreflect.FieldDescriptor + fd_CurrentKeysPacketAck_queued_key protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_packet_proto_init() md_CurrentKeysPacketAck = File_fairyring_keyshare_packet_proto.Messages().ByName("CurrentKeysPacketAck") - fd_CurrentKeysPacketAck_activeKey = md_CurrentKeysPacketAck.Fields().ByName("activeKey") - fd_CurrentKeysPacketAck_queuedKey = md_CurrentKeysPacketAck.Fields().ByName("queuedKey") + fd_CurrentKeysPacketAck_active_key = md_CurrentKeysPacketAck.Fields().ByName("active_key") + fd_CurrentKeysPacketAck_queued_key = md_CurrentKeysPacketAck.Fields().ByName("queued_key") } var _ protoreflect.Message = (*fastReflection_CurrentKeysPacketAck)(nil) @@ -7998,13 +7998,13 @@ func (x *fastReflection_CurrentKeysPacketAck) Interface() protoreflect.ProtoMess func (x *fastReflection_CurrentKeysPacketAck) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ActiveKey != nil { value := protoreflect.ValueOfMessage(x.ActiveKey.ProtoReflect()) - if !f(fd_CurrentKeysPacketAck_activeKey, value) { + if !f(fd_CurrentKeysPacketAck_active_key, value) { return } } if x.QueuedKey != nil { value := protoreflect.ValueOfMessage(x.QueuedKey.ProtoReflect()) - if !f(fd_CurrentKeysPacketAck_queuedKey, value) { + if !f(fd_CurrentKeysPacketAck_queued_key, value) { return } } @@ -8023,9 +8023,9 @@ func (x *fastReflection_CurrentKeysPacketAck) Range(f func(protoreflect.FieldDes // a repeated field is populated if it is non-empty. func (x *fastReflection_CurrentKeysPacketAck) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.CurrentKeysPacketAck.activeKey": + case "fairyring.keyshare.CurrentKeysPacketAck.active_key": return x.ActiveKey != nil - case "fairyring.keyshare.CurrentKeysPacketAck.queuedKey": + case "fairyring.keyshare.CurrentKeysPacketAck.queued_key": return x.QueuedKey != nil default: if fd.IsExtension() { @@ -8043,9 +8043,9 @@ func (x *fastReflection_CurrentKeysPacketAck) Has(fd protoreflect.FieldDescripto // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_CurrentKeysPacketAck) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.CurrentKeysPacketAck.activeKey": + case "fairyring.keyshare.CurrentKeysPacketAck.active_key": x.ActiveKey = nil - case "fairyring.keyshare.CurrentKeysPacketAck.queuedKey": + case "fairyring.keyshare.CurrentKeysPacketAck.queued_key": x.QueuedKey = nil default: if fd.IsExtension() { @@ -8063,10 +8063,10 @@ func (x *fastReflection_CurrentKeysPacketAck) Clear(fd protoreflect.FieldDescrip // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_CurrentKeysPacketAck) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.CurrentKeysPacketAck.activeKey": + case "fairyring.keyshare.CurrentKeysPacketAck.active_key": value := x.ActiveKey return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.keyshare.CurrentKeysPacketAck.queuedKey": + case "fairyring.keyshare.CurrentKeysPacketAck.queued_key": value := x.QueuedKey return protoreflect.ValueOfMessage(value.ProtoReflect()) default: @@ -8089,9 +8089,9 @@ func (x *fastReflection_CurrentKeysPacketAck) Get(descriptor protoreflect.FieldD // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_CurrentKeysPacketAck) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.CurrentKeysPacketAck.activeKey": + case "fairyring.keyshare.CurrentKeysPacketAck.active_key": x.ActiveKey = value.Message().Interface().(*common.ActivePublicKey) - case "fairyring.keyshare.CurrentKeysPacketAck.queuedKey": + case "fairyring.keyshare.CurrentKeysPacketAck.queued_key": x.QueuedKey = value.Message().Interface().(*common.QueuedPublicKey) default: if fd.IsExtension() { @@ -8113,12 +8113,12 @@ func (x *fastReflection_CurrentKeysPacketAck) Set(fd protoreflect.FieldDescripto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_CurrentKeysPacketAck) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.CurrentKeysPacketAck.activeKey": + case "fairyring.keyshare.CurrentKeysPacketAck.active_key": if x.ActiveKey == nil { x.ActiveKey = new(common.ActivePublicKey) } return protoreflect.ValueOfMessage(x.ActiveKey.ProtoReflect()) - case "fairyring.keyshare.CurrentKeysPacketAck.queuedKey": + case "fairyring.keyshare.CurrentKeysPacketAck.queued_key": if x.QueuedKey == nil { x.QueuedKey = new(common.QueuedPublicKey) } @@ -8136,10 +8136,10 @@ func (x *fastReflection_CurrentKeysPacketAck) Mutable(fd protoreflect.FieldDescr // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_CurrentKeysPacketAck) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.CurrentKeysPacketAck.activeKey": + case "fairyring.keyshare.CurrentKeysPacketAck.active_key": m := new(common.ActivePublicKey) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.keyshare.CurrentKeysPacketAck.queuedKey": + case "fairyring.keyshare.CurrentKeysPacketAck.queued_key": m := new(common.QueuedPublicKey) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: @@ -8445,21 +8445,24 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +// KeysharePacketData defines all the packet types of the keyshare module type KeysharePacketData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + // packet can be one of the following types + // // Types that are assignable to Packet: // // *KeysharePacketData_NoData - // *KeysharePacketData_RequestAggrKeysharePacket - // *KeysharePacketData_GetAggrKeysharePacket - // *KeysharePacketData_AggrKeyshareDataPacket - // *KeysharePacketData_EncryptedKeysharesPacketData + // *KeysharePacketData_RequestDecryptionKeyPacket + // *KeysharePacketData_GetDecryptionKeyPacket + // *KeysharePacketData_DecryptionKeyDataPacket + // *KeysharePacketData_PrivateDecryptionKeyDataPacket // *KeysharePacketData_CurrentKeysPacket - // *KeysharePacketData_RequestPrivKeysharePacket - // *KeysharePacketData_GetPrivateKeysharePacket + // *KeysharePacketData_RequestPrivateDecryptionKeyPacket + // *KeysharePacketData_GetPrivateDecryptionKeyPacket Packet isKeysharePacketData_Packet `protobuf_oneof:"packet"` } @@ -8497,30 +8500,30 @@ func (x *KeysharePacketData) GetNoData() *NoData { return nil } -func (x *KeysharePacketData) GetRequestAggrKeysharePacket() *RequestAggrKeysharePacketData { - if x, ok := x.GetPacket().(*KeysharePacketData_RequestAggrKeysharePacket); ok { - return x.RequestAggrKeysharePacket +func (x *KeysharePacketData) GetRequestDecryptionKeyPacket() *RequestDecryptionKeyPacketData { + if x, ok := x.GetPacket().(*KeysharePacketData_RequestDecryptionKeyPacket); ok { + return x.RequestDecryptionKeyPacket } return nil } -func (x *KeysharePacketData) GetGetAggrKeysharePacket() *GetAggrKeysharePacketData { - if x, ok := x.GetPacket().(*KeysharePacketData_GetAggrKeysharePacket); ok { - return x.GetAggrKeysharePacket +func (x *KeysharePacketData) GetGetDecryptionKeyPacket() *GetDecryptionKeyPacketData { + if x, ok := x.GetPacket().(*KeysharePacketData_GetDecryptionKeyPacket); ok { + return x.GetDecryptionKeyPacket } return nil } -func (x *KeysharePacketData) GetAggrKeyshareDataPacket() *AggrKeyshareDataPacketData { - if x, ok := x.GetPacket().(*KeysharePacketData_AggrKeyshareDataPacket); ok { - return x.AggrKeyshareDataPacket +func (x *KeysharePacketData) GetDecryptionKeyDataPacket() *DecryptionKeyDataPacketData { + if x, ok := x.GetPacket().(*KeysharePacketData_DecryptionKeyDataPacket); ok { + return x.DecryptionKeyDataPacket } return nil } -func (x *KeysharePacketData) GetEncryptedKeysharesPacketData() *EncryptedKeysharesPacketData { - if x, ok := x.GetPacket().(*KeysharePacketData_EncryptedKeysharesPacketData); ok { - return x.EncryptedKeysharesPacketData +func (x *KeysharePacketData) GetPrivateDecryptionKeyDataPacket() *PrivateDecryptionKeyDataPacketData { + if x, ok := x.GetPacket().(*KeysharePacketData_PrivateDecryptionKeyDataPacket); ok { + return x.PrivateDecryptionKeyDataPacket } return nil } @@ -8532,16 +8535,16 @@ func (x *KeysharePacketData) GetCurrentKeysPacket() *CurrentKeysPacketData { return nil } -func (x *KeysharePacketData) GetRequestPrivKeysharePacket() *RequestPrivateKeysharePacketData { - if x, ok := x.GetPacket().(*KeysharePacketData_RequestPrivKeysharePacket); ok { - return x.RequestPrivKeysharePacket +func (x *KeysharePacketData) GetRequestPrivateDecryptionKeyPacket() *RequestPrivateDecryptionKeyPacketData { + if x, ok := x.GetPacket().(*KeysharePacketData_RequestPrivateDecryptionKeyPacket); ok { + return x.RequestPrivateDecryptionKeyPacket } return nil } -func (x *KeysharePacketData) GetGetPrivateKeysharePacket() *GetPrivateKeysharePacketData { - if x, ok := x.GetPacket().(*KeysharePacketData_GetPrivateKeysharePacket); ok { - return x.GetPrivateKeysharePacket +func (x *KeysharePacketData) GetGetPrivateDecryptionKeyPacket() *GetPrivateDecryptionKeyPacketData { + if x, ok := x.GetPacket().(*KeysharePacketData_GetPrivateDecryptionKeyPacket); ok { + return x.GetPrivateDecryptionKeyPacket } return nil } @@ -8551,53 +8554,54 @@ type isKeysharePacketData_Packet interface { } type KeysharePacketData_NoData struct { - NoData *NoData `protobuf:"bytes,1,opt,name=noData,proto3,oneof"` + NoData *NoData `protobuf:"bytes,1,opt,name=no_data,json=noData,proto3,oneof"` } -type KeysharePacketData_RequestAggrKeysharePacket struct { - RequestAggrKeysharePacket *RequestAggrKeysharePacketData `protobuf:"bytes,2,opt,name=requestAggrKeysharePacket,proto3,oneof"` +type KeysharePacketData_RequestDecryptionKeyPacket struct { + RequestDecryptionKeyPacket *RequestDecryptionKeyPacketData `protobuf:"bytes,2,opt,name=request_decryption_key_packet,json=requestDecryptionKeyPacket,proto3,oneof"` } -type KeysharePacketData_GetAggrKeysharePacket struct { - GetAggrKeysharePacket *GetAggrKeysharePacketData `protobuf:"bytes,3,opt,name=getAggrKeysharePacket,proto3,oneof"` +type KeysharePacketData_GetDecryptionKeyPacket struct { + GetDecryptionKeyPacket *GetDecryptionKeyPacketData `protobuf:"bytes,3,opt,name=get_decryption_key_packet,json=getDecryptionKeyPacket,proto3,oneof"` } -type KeysharePacketData_AggrKeyshareDataPacket struct { - AggrKeyshareDataPacket *AggrKeyshareDataPacketData `protobuf:"bytes,4,opt,name=aggrKeyshareDataPacket,proto3,oneof"` +type KeysharePacketData_DecryptionKeyDataPacket struct { + DecryptionKeyDataPacket *DecryptionKeyDataPacketData `protobuf:"bytes,4,opt,name=decryption_key_data_packet,json=decryptionKeyDataPacket,proto3,oneof"` } -type KeysharePacketData_EncryptedKeysharesPacketData struct { - EncryptedKeysharesPacketData *EncryptedKeysharesPacketData `protobuf:"bytes,5,opt,name=encryptedKeysharesPacketData,proto3,oneof"` +type KeysharePacketData_PrivateDecryptionKeyDataPacket struct { + PrivateDecryptionKeyDataPacket *PrivateDecryptionKeyDataPacketData `protobuf:"bytes,5,opt,name=private_decryption_key_data_packet,json=privateDecryptionKeyDataPacket,proto3,oneof"` } type KeysharePacketData_CurrentKeysPacket struct { - CurrentKeysPacket *CurrentKeysPacketData `protobuf:"bytes,6,opt,name=currentKeysPacket,proto3,oneof"` + CurrentKeysPacket *CurrentKeysPacketData `protobuf:"bytes,6,opt,name=current_keys_packet,json=currentKeysPacket,proto3,oneof"` } -type KeysharePacketData_RequestPrivKeysharePacket struct { - RequestPrivKeysharePacket *RequestPrivateKeysharePacketData `protobuf:"bytes,7,opt,name=request_priv_keyshare_packet,json=requestPrivKeysharePacket,proto3,oneof"` +type KeysharePacketData_RequestPrivateDecryptionKeyPacket struct { + RequestPrivateDecryptionKeyPacket *RequestPrivateDecryptionKeyPacketData `protobuf:"bytes,7,opt,name=request_private_decryption_key_packet,json=requestPrivateDecryptionKeyPacket,proto3,oneof"` } -type KeysharePacketData_GetPrivateKeysharePacket struct { - GetPrivateKeysharePacket *GetPrivateKeysharePacketData `protobuf:"bytes,8,opt,name=getPrivateKeysharePacket,proto3,oneof"` +type KeysharePacketData_GetPrivateDecryptionKeyPacket struct { + GetPrivateDecryptionKeyPacket *GetPrivateDecryptionKeyPacketData `protobuf:"bytes,8,opt,name=get_private_decryption_key_packet,json=getPrivateDecryptionKeyPacket,proto3,oneof"` } func (*KeysharePacketData_NoData) isKeysharePacketData_Packet() {} -func (*KeysharePacketData_RequestAggrKeysharePacket) isKeysharePacketData_Packet() {} +func (*KeysharePacketData_RequestDecryptionKeyPacket) isKeysharePacketData_Packet() {} -func (*KeysharePacketData_GetAggrKeysharePacket) isKeysharePacketData_Packet() {} +func (*KeysharePacketData_GetDecryptionKeyPacket) isKeysharePacketData_Packet() {} -func (*KeysharePacketData_AggrKeyshareDataPacket) isKeysharePacketData_Packet() {} +func (*KeysharePacketData_DecryptionKeyDataPacket) isKeysharePacketData_Packet() {} -func (*KeysharePacketData_EncryptedKeysharesPacketData) isKeysharePacketData_Packet() {} +func (*KeysharePacketData_PrivateDecryptionKeyDataPacket) isKeysharePacketData_Packet() {} func (*KeysharePacketData_CurrentKeysPacket) isKeysharePacketData_Packet() {} -func (*KeysharePacketData_RequestPrivKeysharePacket) isKeysharePacketData_Packet() {} +func (*KeysharePacketData_RequestPrivateDecryptionKeyPacket) isKeysharePacketData_Packet() {} -func (*KeysharePacketData_GetPrivateKeysharePacket) isKeysharePacketData_Packet() {} +func (*KeysharePacketData_GetPrivateDecryptionKeyPacket) isKeysharePacketData_Packet() {} +// NoData defines a blank packet type NoData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -8624,23 +8628,25 @@ func (*NoData) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_packet_proto_rawDescGZIP(), []int{1} } -// RequestAggrKeysharePacketData defines a struct for the packet payload -type RequestAggrKeysharePacketData struct { +// RequestDecryptionKeyPacketData defines a struct for the packet payload +type RequestDecryptionKeyPacketData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Requester string `protobuf:"bytes,1,opt,name=requester,proto3" json:"requester,omitempty"` + // id can either be a request id or a proposal id + // // Types that are assignable to Id: // - // *RequestAggrKeysharePacketData_ProposalId - // *RequestAggrKeysharePacketData_RequestId - Id isRequestAggrKeysharePacketData_Id `protobuf_oneof:"id"` - EstimatedDelay *durationpb.Duration `protobuf:"bytes,4,opt,name=estimated_delay,json=estimatedDelay,proto3" json:"estimated_delay,omitempty"` + // *RequestDecryptionKeyPacketData_ProposalId + // *RequestDecryptionKeyPacketData_RequestId + Id isRequestDecryptionKeyPacketData_Id `protobuf_oneof:"id"` + EstimatedDelay *durationpb.Duration `protobuf:"bytes,4,opt,name=estimated_delay,json=estimatedDelay,proto3" json:"estimated_delay,omitempty"` } -func (x *RequestAggrKeysharePacketData) Reset() { - *x = RequestAggrKeysharePacketData{} +func (x *RequestDecryptionKeyPacketData) Reset() { + *x = RequestDecryptionKeyPacketData{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_packet_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8648,69 +8654,70 @@ func (x *RequestAggrKeysharePacketData) Reset() { } } -func (x *RequestAggrKeysharePacketData) String() string { +func (x *RequestDecryptionKeyPacketData) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RequestAggrKeysharePacketData) ProtoMessage() {} +func (*RequestDecryptionKeyPacketData) ProtoMessage() {} -// Deprecated: Use RequestAggrKeysharePacketData.ProtoReflect.Descriptor instead. -func (*RequestAggrKeysharePacketData) Descriptor() ([]byte, []int) { +// Deprecated: Use RequestDecryptionKeyPacketData.ProtoReflect.Descriptor instead. +func (*RequestDecryptionKeyPacketData) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_packet_proto_rawDescGZIP(), []int{2} } -func (x *RequestAggrKeysharePacketData) GetRequester() string { +func (x *RequestDecryptionKeyPacketData) GetRequester() string { if x != nil { return x.Requester } return "" } -func (x *RequestAggrKeysharePacketData) GetId() isRequestAggrKeysharePacketData_Id { +func (x *RequestDecryptionKeyPacketData) GetId() isRequestDecryptionKeyPacketData_Id { if x != nil { return x.Id } return nil } -func (x *RequestAggrKeysharePacketData) GetProposalId() string { - if x, ok := x.GetId().(*RequestAggrKeysharePacketData_ProposalId); ok { +func (x *RequestDecryptionKeyPacketData) GetProposalId() string { + if x, ok := x.GetId().(*RequestDecryptionKeyPacketData_ProposalId); ok { return x.ProposalId } return "" } -func (x *RequestAggrKeysharePacketData) GetRequestId() string { - if x, ok := x.GetId().(*RequestAggrKeysharePacketData_RequestId); ok { +func (x *RequestDecryptionKeyPacketData) GetRequestId() string { + if x, ok := x.GetId().(*RequestDecryptionKeyPacketData_RequestId); ok { return x.RequestId } return "" } -func (x *RequestAggrKeysharePacketData) GetEstimatedDelay() *durationpb.Duration { +func (x *RequestDecryptionKeyPacketData) GetEstimatedDelay() *durationpb.Duration { if x != nil { return x.EstimatedDelay } return nil } -type isRequestAggrKeysharePacketData_Id interface { - isRequestAggrKeysharePacketData_Id() +type isRequestDecryptionKeyPacketData_Id interface { + isRequestDecryptionKeyPacketData_Id() } -type RequestAggrKeysharePacketData_ProposalId struct { +type RequestDecryptionKeyPacketData_ProposalId struct { ProposalId string `protobuf:"bytes,2,opt,name=proposal_id,json=proposalId,proto3,oneof"` } -type RequestAggrKeysharePacketData_RequestId struct { +type RequestDecryptionKeyPacketData_RequestId struct { RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3,oneof"` } -func (*RequestAggrKeysharePacketData_ProposalId) isRequestAggrKeysharePacketData_Id() {} +func (*RequestDecryptionKeyPacketData_ProposalId) isRequestDecryptionKeyPacketData_Id() {} -func (*RequestAggrKeysharePacketData_RequestId) isRequestAggrKeysharePacketData_Id() {} +func (*RequestDecryptionKeyPacketData_RequestId) isRequestDecryptionKeyPacketData_Id() {} -type RequestPrivateKeysharePacketData struct { +// RequestPrivateDecryptionKeyPacketData defines a struct for the packet payload +type RequestPrivateDecryptionKeyPacketData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -8719,8 +8726,8 @@ type RequestPrivateKeysharePacketData struct { RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (x *RequestPrivateKeysharePacketData) Reset() { - *x = RequestPrivateKeysharePacketData{} +func (x *RequestPrivateDecryptionKeyPacketData) Reset() { + *x = RequestPrivateDecryptionKeyPacketData{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_packet_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8728,32 +8735,33 @@ func (x *RequestPrivateKeysharePacketData) Reset() { } } -func (x *RequestPrivateKeysharePacketData) String() string { +func (x *RequestPrivateDecryptionKeyPacketData) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RequestPrivateKeysharePacketData) ProtoMessage() {} +func (*RequestPrivateDecryptionKeyPacketData) ProtoMessage() {} -// Deprecated: Use RequestPrivateKeysharePacketData.ProtoReflect.Descriptor instead. -func (*RequestPrivateKeysharePacketData) Descriptor() ([]byte, []int) { +// Deprecated: Use RequestPrivateDecryptionKeyPacketData.ProtoReflect.Descriptor instead. +func (*RequestPrivateDecryptionKeyPacketData) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_packet_proto_rawDescGZIP(), []int{3} } -func (x *RequestPrivateKeysharePacketData) GetRequester() string { +func (x *RequestPrivateDecryptionKeyPacketData) GetRequester() string { if x != nil { return x.Requester } return "" } -func (x *RequestPrivateKeysharePacketData) GetRequestId() string { +func (x *RequestPrivateDecryptionKeyPacketData) GetRequestId() string { if x != nil { return x.RequestId } return "" } -type RequestPrivateKeysharePacketAck struct { +// RequestPrivateDecryptionKeyPacketAck defines a struct for the packet acknowledgment +type RequestPrivateDecryptionKeyPacketAck struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -8762,8 +8770,8 @@ type RequestPrivateKeysharePacketAck struct { Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` } -func (x *RequestPrivateKeysharePacketAck) Reset() { - *x = RequestPrivateKeysharePacketAck{} +func (x *RequestPrivateDecryptionKeyPacketAck) Reset() { + *x = RequestPrivateDecryptionKeyPacketAck{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_packet_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8771,33 +8779,33 @@ func (x *RequestPrivateKeysharePacketAck) Reset() { } } -func (x *RequestPrivateKeysharePacketAck) String() string { +func (x *RequestPrivateDecryptionKeyPacketAck) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RequestPrivateKeysharePacketAck) ProtoMessage() {} +func (*RequestPrivateDecryptionKeyPacketAck) ProtoMessage() {} -// Deprecated: Use RequestPrivateKeysharePacketAck.ProtoReflect.Descriptor instead. -func (*RequestPrivateKeysharePacketAck) Descriptor() ([]byte, []int) { +// Deprecated: Use RequestPrivateDecryptionKeyPacketAck.ProtoReflect.Descriptor instead. +func (*RequestPrivateDecryptionKeyPacketAck) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_packet_proto_rawDescGZIP(), []int{4} } -func (x *RequestPrivateKeysharePacketAck) GetIdentity() string { +func (x *RequestPrivateDecryptionKeyPacketAck) GetIdentity() string { if x != nil { return x.Identity } return "" } -func (x *RequestPrivateKeysharePacketAck) GetPubkey() string { +func (x *RequestPrivateDecryptionKeyPacketAck) GetPubkey() string { if x != nil { return x.Pubkey } return "" } -// RequestAggrKeysharePacketAck defines a struct for the packet acknowledgment -type RequestAggrKeysharePacketAck struct { +// RequestDecryptionKeyPacketAck defines a struct for the packet acknowledgment +type RequestDecryptionKeyPacketAck struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -8806,8 +8814,8 @@ type RequestAggrKeysharePacketAck struct { Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` } -func (x *RequestAggrKeysharePacketAck) Reset() { - *x = RequestAggrKeysharePacketAck{} +func (x *RequestDecryptionKeyPacketAck) Reset() { + *x = RequestDecryptionKeyPacketAck{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_packet_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8815,33 +8823,33 @@ func (x *RequestAggrKeysharePacketAck) Reset() { } } -func (x *RequestAggrKeysharePacketAck) String() string { +func (x *RequestDecryptionKeyPacketAck) String() string { return protoimpl.X.MessageStringOf(x) } -func (*RequestAggrKeysharePacketAck) ProtoMessage() {} +func (*RequestDecryptionKeyPacketAck) ProtoMessage() {} -// Deprecated: Use RequestAggrKeysharePacketAck.ProtoReflect.Descriptor instead. -func (*RequestAggrKeysharePacketAck) Descriptor() ([]byte, []int) { +// Deprecated: Use RequestDecryptionKeyPacketAck.ProtoReflect.Descriptor instead. +func (*RequestDecryptionKeyPacketAck) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_packet_proto_rawDescGZIP(), []int{5} } -func (x *RequestAggrKeysharePacketAck) GetIdentity() string { +func (x *RequestDecryptionKeyPacketAck) GetIdentity() string { if x != nil { return x.Identity } return "" } -func (x *RequestAggrKeysharePacketAck) GetPubkey() string { +func (x *RequestDecryptionKeyPacketAck) GetPubkey() string { if x != nil { return x.Pubkey } return "" } -// GetAggrKeysharePacketData defines a struct for the packet payload -type GetAggrKeysharePacketData struct { +// GetDecryptionKeyPacketData defines a struct for the packet payload +type GetDecryptionKeyPacketData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -8849,8 +8857,8 @@ type GetAggrKeysharePacketData struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` } -func (x *GetAggrKeysharePacketData) Reset() { - *x = GetAggrKeysharePacketData{} +func (x *GetDecryptionKeyPacketData) Reset() { + *x = GetDecryptionKeyPacketData{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_packet_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8858,33 +8866,33 @@ func (x *GetAggrKeysharePacketData) Reset() { } } -func (x *GetAggrKeysharePacketData) String() string { +func (x *GetDecryptionKeyPacketData) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetAggrKeysharePacketData) ProtoMessage() {} +func (*GetDecryptionKeyPacketData) ProtoMessage() {} -// Deprecated: Use GetAggrKeysharePacketData.ProtoReflect.Descriptor instead. -func (*GetAggrKeysharePacketData) Descriptor() ([]byte, []int) { +// Deprecated: Use GetDecryptionKeyPacketData.ProtoReflect.Descriptor instead. +func (*GetDecryptionKeyPacketData) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_packet_proto_rawDescGZIP(), []int{6} } -func (x *GetAggrKeysharePacketData) GetIdentity() string { +func (x *GetDecryptionKeyPacketData) GetIdentity() string { if x != nil { return x.Identity } return "" } -// GetAggrKeysharePacketAck defines a struct for the packet acknowledgment -type GetAggrKeysharePacketAck struct { +// GetDecryptionKeyPacketAck defines a struct for the packet acknowledgment +type GetDecryptionKeyPacketAck struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *GetAggrKeysharePacketAck) Reset() { - *x = GetAggrKeysharePacketAck{} +func (x *GetDecryptionKeyPacketAck) Reset() { + *x = GetDecryptionKeyPacketAck{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_packet_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8892,19 +8900,19 @@ func (x *GetAggrKeysharePacketAck) Reset() { } } -func (x *GetAggrKeysharePacketAck) String() string { +func (x *GetDecryptionKeyPacketAck) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetAggrKeysharePacketAck) ProtoMessage() {} +func (*GetDecryptionKeyPacketAck) ProtoMessage() {} -// Deprecated: Use GetAggrKeysharePacketAck.ProtoReflect.Descriptor instead. -func (*GetAggrKeysharePacketAck) Descriptor() ([]byte, []int) { +// Deprecated: Use GetDecryptionKeyPacketAck.ProtoReflect.Descriptor instead. +func (*GetDecryptionKeyPacketAck) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_packet_proto_rawDescGZIP(), []int{7} } -// GetPrivateKeysharePacketData defines a struct for the packet payload -type GetPrivateKeysharePacketData struct { +// GetPrivateDecryptionKeyPacketData defines a struct for the packet payload +type GetPrivateDecryptionKeyPacketData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -8914,8 +8922,8 @@ type GetPrivateKeysharePacketData struct { SecpPubkey string `protobuf:"bytes,3,opt,name=secp_pubkey,json=secpPubkey,proto3" json:"secp_pubkey,omitempty"` } -func (x *GetPrivateKeysharePacketData) Reset() { - *x = GetPrivateKeysharePacketData{} +func (x *GetPrivateDecryptionKeyPacketData) Reset() { + *x = GetPrivateDecryptionKeyPacketData{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_packet_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8923,32 +8931,32 @@ func (x *GetPrivateKeysharePacketData) Reset() { } } -func (x *GetPrivateKeysharePacketData) String() string { +func (x *GetPrivateDecryptionKeyPacketData) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetPrivateKeysharePacketData) ProtoMessage() {} +func (*GetPrivateDecryptionKeyPacketData) ProtoMessage() {} -// Deprecated: Use GetPrivateKeysharePacketData.ProtoReflect.Descriptor instead. -func (*GetPrivateKeysharePacketData) Descriptor() ([]byte, []int) { +// Deprecated: Use GetPrivateDecryptionKeyPacketData.ProtoReflect.Descriptor instead. +func (*GetPrivateDecryptionKeyPacketData) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_packet_proto_rawDescGZIP(), []int{8} } -func (x *GetPrivateKeysharePacketData) GetIdentity() string { +func (x *GetPrivateDecryptionKeyPacketData) GetIdentity() string { if x != nil { return x.Identity } return "" } -func (x *GetPrivateKeysharePacketData) GetRequester() string { +func (x *GetPrivateDecryptionKeyPacketData) GetRequester() string { if x != nil { return x.Requester } return "" } -func (x *GetPrivateKeysharePacketData) GetSecpPubkey() string { +func (x *GetPrivateDecryptionKeyPacketData) GetSecpPubkey() string { if x != nil { return x.SecpPubkey } @@ -8956,14 +8964,14 @@ func (x *GetPrivateKeysharePacketData) GetSecpPubkey() string { } // GetPrivateKeysharePacketAck defines a struct for the packet acknowledgment -type GetPrivateKeysharePacketAck struct { +type GetPrivateDecryptionKeyPacketAck struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *GetPrivateKeysharePacketAck) Reset() { - *x = GetPrivateKeysharePacketAck{} +func (x *GetPrivateDecryptionKeyPacketAck) Reset() { + *x = GetPrivateDecryptionKeyPacketAck{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_packet_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8971,34 +8979,34 @@ func (x *GetPrivateKeysharePacketAck) Reset() { } } -func (x *GetPrivateKeysharePacketAck) String() string { +func (x *GetPrivateDecryptionKeyPacketAck) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetPrivateKeysharePacketAck) ProtoMessage() {} +func (*GetPrivateDecryptionKeyPacketAck) ProtoMessage() {} -// Deprecated: Use GetPrivateKeysharePacketAck.ProtoReflect.Descriptor instead. -func (*GetPrivateKeysharePacketAck) Descriptor() ([]byte, []int) { +// Deprecated: Use GetPrivateDecryptionKeyPacketAck.ProtoReflect.Descriptor instead. +func (*GetPrivateDecryptionKeyPacketAck) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_packet_proto_rawDescGZIP(), []int{9} } -// AggrKeyshareDataPacketData defines a struct for the packet payload -type AggrKeyshareDataPacketData struct { +// DecryptionKeyDataPacketData defines a struct for the packet payload +type DecryptionKeyDataPacketData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - AggrKeyshare string `protobuf:"bytes,3,opt,name=aggr_keyshare,json=aggrKeyshare,proto3" json:"aggr_keyshare,omitempty"` - AggrHeight string `protobuf:"bytes,4,opt,name=aggr_height,json=aggrHeight,proto3" json:"aggr_height,omitempty"` - ProposalId string `protobuf:"bytes,5,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` // used for private governance - RequestId string `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // might be useful to destination chains to sort out the response - Retries uint64 `protobuf:"varint,7,opt,name=retries,proto3" json:"retries,omitempty"` + Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` + Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + DecryptionKey string `protobuf:"bytes,3,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key,omitempty"` + AggrHeight string `protobuf:"bytes,4,opt,name=aggr_height,json=aggrHeight,proto3" json:"aggr_height,omitempty"` + ProposalId string `protobuf:"bytes,5,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` // used for private governance + RequestId string `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // might be useful to destination chains to sort out the response + Retries uint64 `protobuf:"varint,7,opt,name=retries,proto3" json:"retries,omitempty"` } -func (x *AggrKeyshareDataPacketData) Reset() { - *x = AggrKeyshareDataPacketData{} +func (x *DecryptionKeyDataPacketData) Reset() { + *x = DecryptionKeyDataPacketData{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_packet_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9006,75 +9014,75 @@ func (x *AggrKeyshareDataPacketData) Reset() { } } -func (x *AggrKeyshareDataPacketData) String() string { +func (x *DecryptionKeyDataPacketData) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AggrKeyshareDataPacketData) ProtoMessage() {} +func (*DecryptionKeyDataPacketData) ProtoMessage() {} -// Deprecated: Use AggrKeyshareDataPacketData.ProtoReflect.Descriptor instead. -func (*AggrKeyshareDataPacketData) Descriptor() ([]byte, []int) { +// Deprecated: Use DecryptionKeyDataPacketData.ProtoReflect.Descriptor instead. +func (*DecryptionKeyDataPacketData) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_packet_proto_rawDescGZIP(), []int{10} } -func (x *AggrKeyshareDataPacketData) GetIdentity() string { +func (x *DecryptionKeyDataPacketData) GetIdentity() string { if x != nil { return x.Identity } return "" } -func (x *AggrKeyshareDataPacketData) GetPubkey() string { +func (x *DecryptionKeyDataPacketData) GetPubkey() string { if x != nil { return x.Pubkey } return "" } -func (x *AggrKeyshareDataPacketData) GetAggrKeyshare() string { +func (x *DecryptionKeyDataPacketData) GetDecryptionKey() string { if x != nil { - return x.AggrKeyshare + return x.DecryptionKey } return "" } -func (x *AggrKeyshareDataPacketData) GetAggrHeight() string { +func (x *DecryptionKeyDataPacketData) GetAggrHeight() string { if x != nil { return x.AggrHeight } return "" } -func (x *AggrKeyshareDataPacketData) GetProposalId() string { +func (x *DecryptionKeyDataPacketData) GetProposalId() string { if x != nil { return x.ProposalId } return "" } -func (x *AggrKeyshareDataPacketData) GetRequestId() string { +func (x *DecryptionKeyDataPacketData) GetRequestId() string { if x != nil { return x.RequestId } return "" } -func (x *AggrKeyshareDataPacketData) GetRetries() uint64 { +func (x *DecryptionKeyDataPacketData) GetRetries() uint64 { if x != nil { return x.Retries } return 0 } -// AggrKeyshareDataPacketAck defines a struct for the packet acknowledgment -type AggrKeyshareDataPacketAck struct { +// DecryptionKeyPacketAck defines a struct for the packet acknowledgment +type DecryptionKeyPacketAck struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *AggrKeyshareDataPacketAck) Reset() { - *x = AggrKeyshareDataPacketAck{} +func (x *DecryptionKeyPacketAck) Reset() { + *x = DecryptionKeyPacketAck{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_packet_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9082,30 +9090,31 @@ func (x *AggrKeyshareDataPacketAck) Reset() { } } -func (x *AggrKeyshareDataPacketAck) String() string { +func (x *DecryptionKeyPacketAck) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AggrKeyshareDataPacketAck) ProtoMessage() {} +func (*DecryptionKeyPacketAck) ProtoMessage() {} -// Deprecated: Use AggrKeyshareDataPacketAck.ProtoReflect.Descriptor instead. -func (*AggrKeyshareDataPacketAck) Descriptor() ([]byte, []int) { +// Deprecated: Use DecryptionKeyPacketAck.ProtoReflect.Descriptor instead. +func (*DecryptionKeyPacketAck) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_packet_proto_rawDescGZIP(), []int{11} } -type EncryptedKeysharesPacketData struct { +// PrivateDecryptionKeyDataPacketData defines a struct for the packet payload +type PrivateDecryptionKeyDataPacketData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - EncryptedKeyshares []*common.EncryptedKeyshare `protobuf:"bytes,4,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` + Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` + Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + PrivateDecryptionKey []*common.PrivateDecryptionKey `protobuf:"bytes,4,rep,name=private_decryption_key,json=privateDecryptionKey,proto3" json:"private_decryption_key,omitempty"` } -func (x *EncryptedKeysharesPacketData) Reset() { - *x = EncryptedKeysharesPacketData{} +func (x *PrivateDecryptionKeyDataPacketData) Reset() { + *x = PrivateDecryptionKeyDataPacketData{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_packet_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9113,53 +9122,54 @@ func (x *EncryptedKeysharesPacketData) Reset() { } } -func (x *EncryptedKeysharesPacketData) String() string { +func (x *PrivateDecryptionKeyDataPacketData) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EncryptedKeysharesPacketData) ProtoMessage() {} +func (*PrivateDecryptionKeyDataPacketData) ProtoMessage() {} -// Deprecated: Use EncryptedKeysharesPacketData.ProtoReflect.Descriptor instead. -func (*EncryptedKeysharesPacketData) Descriptor() ([]byte, []int) { +// Deprecated: Use PrivateDecryptionKeyDataPacketData.ProtoReflect.Descriptor instead. +func (*PrivateDecryptionKeyDataPacketData) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_packet_proto_rawDescGZIP(), []int{12} } -func (x *EncryptedKeysharesPacketData) GetIdentity() string { +func (x *PrivateDecryptionKeyDataPacketData) GetIdentity() string { if x != nil { return x.Identity } return "" } -func (x *EncryptedKeysharesPacketData) GetPubkey() string { +func (x *PrivateDecryptionKeyDataPacketData) GetPubkey() string { if x != nil { return x.Pubkey } return "" } -func (x *EncryptedKeysharesPacketData) GetRequestId() string { +func (x *PrivateDecryptionKeyDataPacketData) GetRequestId() string { if x != nil { return x.RequestId } return "" } -func (x *EncryptedKeysharesPacketData) GetEncryptedKeyshares() []*common.EncryptedKeyshare { +func (x *PrivateDecryptionKeyDataPacketData) GetPrivateDecryptionKey() []*common.PrivateDecryptionKey { if x != nil { - return x.EncryptedKeyshares + return x.PrivateDecryptionKey } return nil } -type EncryptedKeysharesPacketAck struct { +// PrivateDecryptionKeyPacketAck defines a struct for the packet payload +type PrivateDecryptionKeyPacketAck struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *EncryptedKeysharesPacketAck) Reset() { - *x = EncryptedKeysharesPacketAck{} +func (x *PrivateDecryptionKeyPacketAck) Reset() { + *x = PrivateDecryptionKeyPacketAck{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_packet_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9167,14 +9177,14 @@ func (x *EncryptedKeysharesPacketAck) Reset() { } } -func (x *EncryptedKeysharesPacketAck) String() string { +func (x *PrivateDecryptionKeyPacketAck) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EncryptedKeysharesPacketAck) ProtoMessage() {} +func (*PrivateDecryptionKeyPacketAck) ProtoMessage() {} -// Deprecated: Use EncryptedKeysharesPacketAck.ProtoReflect.Descriptor instead. -func (*EncryptedKeysharesPacketAck) Descriptor() ([]byte, []int) { +// Deprecated: Use PrivateDecryptionKeyPacketAck.ProtoReflect.Descriptor instead. +func (*PrivateDecryptionKeyPacketAck) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_packet_proto_rawDescGZIP(), []int{13} } @@ -9211,8 +9221,8 @@ type CurrentKeysPacketAck struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ActiveKey *common.ActivePublicKey `protobuf:"bytes,1,opt,name=activeKey,proto3" json:"activeKey,omitempty"` - QueuedKey *common.QueuedPublicKey `protobuf:"bytes,2,opt,name=queuedKey,proto3" json:"queuedKey,omitempty"` + ActiveKey *common.ActivePublicKey `protobuf:"bytes,1,opt,name=active_key,json=activeKey,proto3" json:"active_key,omitempty"` + QueuedKey *common.QueuedPublicKey `protobuf:"bytes,2,opt,name=queued_key,json=queuedKey,proto3" json:"queued_key,omitempty"` } func (x *CurrentKeysPacketAck) Reset() { @@ -9261,62 +9271,67 @@ var file_fairyring_keyshare_packet_proto_rawDesc = []byte{ 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0xd4, 0x06, 0x0a, 0x12, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, 0x61, 0x63, - 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x34, 0x0a, 0x06, 0x6e, 0x6f, 0x44, 0x61, 0x74, - 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x44, - 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x06, 0x6e, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x12, 0x71, 0x0a, - 0x19, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x31, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x67, 0x67, - 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, - 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x19, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x67, - 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, - 0x12, 0x65, 0x0a, 0x15, 0x67, 0x65, 0x74, 0x41, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x2d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, - 0x52, 0x15, 0x67, 0x65, 0x74, 0x41, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x68, 0x0a, 0x16, 0x61, 0x67, 0x67, 0x72, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x61, 0x63, 0x6b, 0x65, - 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x67, 0x67, - 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x61, 0x63, - 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x16, 0x61, 0x67, 0x67, 0x72, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x61, 0x63, 0x6b, 0x65, - 0x74, 0x12, 0x76, 0x0a, 0x1c, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, - 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x50, - 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x1c, 0x65, 0x6e, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x50, - 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x59, 0x0a, 0x11, 0x63, 0x75, 0x72, - 0x72, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, - 0x74, 0x4b, 0x65, 0x79, 0x73, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x48, - 0x00, 0x52, 0x11, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x50, 0x61, - 0x63, 0x6b, 0x65, 0x74, 0x12, 0x77, 0x0a, 0x1c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, - 0x70, 0x72, 0x69, 0x76, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x70, 0x61, - 0x63, 0x6b, 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x66, 0x61, 0x69, + 0x22, 0xa3, 0x07, 0x0a, 0x12, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, 0x61, 0x63, + 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x35, 0x0a, 0x07, 0x6e, 0x6f, 0x5f, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4e, 0x6f, + 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x06, 0x6e, 0x6f, 0x44, 0x61, 0x74, 0x61, 0x12, 0x77, + 0x0a, 0x1d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x50, + 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x1a, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, + 0x79, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x6b, 0x0a, 0x19, 0x67, 0x65, 0x74, 0x5f, 0x64, + 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, + 0x63, 0x6b, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, - 0x48, 0x00, 0x52, 0x19, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x6e, 0x0a, - 0x18, 0x67, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, - 0x61, 0x48, 0x00, 0x52, 0x18, 0x67, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x42, 0x08, 0x0a, - 0x06, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x22, 0x08, 0x0a, 0x06, 0x4e, 0x6f, 0x44, 0x61, 0x74, - 0x61, 0x22, 0xd1, 0x01, 0x0a, 0x1d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x67, 0x67, - 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, + 0x47, 0x65, 0x74, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, + 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x16, 0x67, 0x65, + 0x74, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x50, 0x61, + 0x63, 0x6b, 0x65, 0x74, 0x12, 0x6e, 0x0a, 0x1a, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x61, 0x63, 0x6b, + 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x44, 0x65, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, + 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x17, 0x64, 0x65, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x61, + 0x63, 0x6b, 0x65, 0x74, 0x12, 0x84, 0x01, 0x0a, 0x22, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x5f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x5f, + 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x36, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, + 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x1e, 0x70, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, + 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x5b, 0x0a, 0x13, 0x63, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x5f, 0x70, 0x61, 0x63, 0x6b, + 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x43, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, + 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x11, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4b, 0x65, + 0x79, 0x73, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x8d, 0x01, 0x0a, 0x25, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x65, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, 0x63, 0x6b, + 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, + 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x21, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, + 0x65, 0x79, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x81, 0x01, 0x0a, 0x21, 0x67, 0x65, 0x74, + 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, + 0x79, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x1d, 0x67, + 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x42, 0x08, 0x0a, 0x06, + 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x22, 0x08, 0x0a, 0x06, 0x4e, 0x6f, 0x44, 0x61, 0x74, 0x61, + 0x22, 0xd2, 0x01, 0x0a, 0x1e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, 0x65, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, @@ -9328,93 +9343,96 @@ var file_fairyring_keyshare_packet_proto_rawDesc = []byte{ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0x98, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x65, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x42, - 0x04, 0x0a, 0x02, 0x69, 0x64, 0x22, 0x5f, 0x0a, 0x20, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, - 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x55, 0x0a, 0x1f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x63, 0x6b, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x22, 0x52, 0x0a, - 0x1c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x63, 0x6b, 0x12, 0x1a, 0x0a, - 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, - 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, - 0x79, 0x22, 0x37, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x41, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1a, + 0x04, 0x0a, 0x02, 0x69, 0x64, 0x22, 0x64, 0x0a, 0x25, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1c, + 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x5a, 0x0a, 0x24, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, + 0x41, 0x63, 0x6b, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, + 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x22, 0x53, 0x0a, 0x1d, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x50, + 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x63, 0x6b, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x22, 0x38, 0x0a, 0x1a, + 0x47, 0x65, 0x74, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, + 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x1b, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x44, 0x65, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, + 0x41, 0x63, 0x6b, 0x22, 0x7e, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x50, 0x61, + 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, + 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x70, 0x50, 0x75, 0x62, + 0x6b, 0x65, 0x79, 0x22, 0x22, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x50, 0x61, + 0x63, 0x6b, 0x65, 0x74, 0x41, 0x63, 0x6b, 0x22, 0xf3, 0x01, 0x0a, 0x1b, 0x44, 0x65, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x44, 0x61, 0x74, 0x61, 0x50, 0x61, 0x63, + 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x64, + 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, + 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x67, 0x67, 0x72, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x67, 0x67, 0x72, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, + 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, + 0x61, 0x6c, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x18, 0x0a, + 0x16, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x50, 0x61, + 0x63, 0x6b, 0x65, 0x74, 0x41, 0x63, 0x6b, 0x22, 0xd5, 0x01, 0x0a, 0x22, 0x50, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, + 0x44, 0x61, 0x74, 0x61, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x1a, 0x0a, 0x18, 0x47, 0x65, - 0x74, 0x41, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, 0x61, 0x63, - 0x6b, 0x65, 0x74, 0x41, 0x63, 0x6b, 0x22, 0x79, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, 0x61, 0x63, 0x6b, - 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, - 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x70, 0x50, 0x75, 0x62, 0x6b, 0x65, - 0x79, 0x22, 0x1d, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x63, 0x6b, - 0x22, 0xf0, 0x01, 0x0a, 0x1a, 0x41, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, - 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, - 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, - 0x6b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x67, 0x67, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x67, 0x67, 0x72, - 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x67, 0x67, 0x72, - 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, - 0x67, 0x67, 0x72, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, - 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x74, - 0x72, 0x69, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x72, 0x65, 0x74, 0x72, - 0x69, 0x65, 0x73, 0x22, 0x1b, 0x0a, 0x19, 0x41, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x63, 0x6b, - 0x22, 0xc7, 0x01, 0x0a, 0x1c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, - 0x61, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, - 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, - 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x49, 0x64, 0x12, 0x54, 0x0a, 0x13, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, - 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, - 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0x1d, 0x0a, 0x1b, 0x45, 0x6e, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, - 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x63, 0x6b, 0x22, 0x17, 0x0a, 0x15, 0x43, 0x75, 0x72, - 0x72, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, - 0x74, 0x61, 0x22, 0x98, 0x01, 0x0a, 0x14, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4b, 0x65, - 0x79, 0x73, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x63, 0x6b, 0x12, 0x3f, 0x0a, 0x09, 0x61, - 0x63, 0x74, 0x69, 0x76, 0x65, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, - 0x79, 0x52, 0x09, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x3f, 0x0a, 0x09, - 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, - 0x65, 0x79, 0x52, 0x09, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x42, 0xb3, 0x01, - 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x0b, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, - 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, - 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, - 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, + 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, + 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, + 0x64, 0x12, 0x5c, 0x0a, 0x16, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x65, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x14, 0x70, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x22, + 0x1f, 0x0a, 0x1d, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x63, 0x6b, + 0x22, 0x17, 0x0a, 0x15, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x50, + 0x61, 0x63, 0x6b, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x22, 0x9a, 0x01, 0x0a, 0x14, 0x43, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, + 0x63, 0x6b, 0x12, 0x40, 0x0a, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x09, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x65, 0x4b, 0x65, 0x79, 0x12, 0x40, 0x0a, 0x0a, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x6b, + 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x75, + 0x65, 0x64, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x09, 0x71, 0x75, 0x65, + 0x75, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x42, 0xb3, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x42, 0x0b, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -9431,40 +9449,40 @@ func file_fairyring_keyshare_packet_proto_rawDescGZIP() []byte { var file_fairyring_keyshare_packet_proto_msgTypes = make([]protoimpl.MessageInfo, 16) var file_fairyring_keyshare_packet_proto_goTypes = []interface{}{ - (*KeysharePacketData)(nil), // 0: fairyring.keyshare.KeysharePacketData - (*NoData)(nil), // 1: fairyring.keyshare.NoData - (*RequestAggrKeysharePacketData)(nil), // 2: fairyring.keyshare.RequestAggrKeysharePacketData - (*RequestPrivateKeysharePacketData)(nil), // 3: fairyring.keyshare.RequestPrivateKeysharePacketData - (*RequestPrivateKeysharePacketAck)(nil), // 4: fairyring.keyshare.RequestPrivateKeysharePacketAck - (*RequestAggrKeysharePacketAck)(nil), // 5: fairyring.keyshare.RequestAggrKeysharePacketAck - (*GetAggrKeysharePacketData)(nil), // 6: fairyring.keyshare.GetAggrKeysharePacketData - (*GetAggrKeysharePacketAck)(nil), // 7: fairyring.keyshare.GetAggrKeysharePacketAck - (*GetPrivateKeysharePacketData)(nil), // 8: fairyring.keyshare.GetPrivateKeysharePacketData - (*GetPrivateKeysharePacketAck)(nil), // 9: fairyring.keyshare.GetPrivateKeysharePacketAck - (*AggrKeyshareDataPacketData)(nil), // 10: fairyring.keyshare.AggrKeyshareDataPacketData - (*AggrKeyshareDataPacketAck)(nil), // 11: fairyring.keyshare.AggrKeyshareDataPacketAck - (*EncryptedKeysharesPacketData)(nil), // 12: fairyring.keyshare.EncryptedKeysharesPacketData - (*EncryptedKeysharesPacketAck)(nil), // 13: fairyring.keyshare.EncryptedKeysharesPacketAck - (*CurrentKeysPacketData)(nil), // 14: fairyring.keyshare.CurrentKeysPacketData - (*CurrentKeysPacketAck)(nil), // 15: fairyring.keyshare.CurrentKeysPacketAck - (*durationpb.Duration)(nil), // 16: google.protobuf.Duration - (*common.EncryptedKeyshare)(nil), // 17: fairyring.common.EncryptedKeyshare - (*common.ActivePublicKey)(nil), // 18: fairyring.common.ActivePublicKey - (*common.QueuedPublicKey)(nil), // 19: fairyring.common.QueuedPublicKey + (*KeysharePacketData)(nil), // 0: fairyring.keyshare.KeysharePacketData + (*NoData)(nil), // 1: fairyring.keyshare.NoData + (*RequestDecryptionKeyPacketData)(nil), // 2: fairyring.keyshare.RequestDecryptionKeyPacketData + (*RequestPrivateDecryptionKeyPacketData)(nil), // 3: fairyring.keyshare.RequestPrivateDecryptionKeyPacketData + (*RequestPrivateDecryptionKeyPacketAck)(nil), // 4: fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck + (*RequestDecryptionKeyPacketAck)(nil), // 5: fairyring.keyshare.RequestDecryptionKeyPacketAck + (*GetDecryptionKeyPacketData)(nil), // 6: fairyring.keyshare.GetDecryptionKeyPacketData + (*GetDecryptionKeyPacketAck)(nil), // 7: fairyring.keyshare.GetDecryptionKeyPacketAck + (*GetPrivateDecryptionKeyPacketData)(nil), // 8: fairyring.keyshare.GetPrivateDecryptionKeyPacketData + (*GetPrivateDecryptionKeyPacketAck)(nil), // 9: fairyring.keyshare.GetPrivateDecryptionKeyPacketAck + (*DecryptionKeyDataPacketData)(nil), // 10: fairyring.keyshare.DecryptionKeyDataPacketData + (*DecryptionKeyPacketAck)(nil), // 11: fairyring.keyshare.DecryptionKeyPacketAck + (*PrivateDecryptionKeyDataPacketData)(nil), // 12: fairyring.keyshare.PrivateDecryptionKeyDataPacketData + (*PrivateDecryptionKeyPacketAck)(nil), // 13: fairyring.keyshare.PrivateDecryptionKeyPacketAck + (*CurrentKeysPacketData)(nil), // 14: fairyring.keyshare.CurrentKeysPacketData + (*CurrentKeysPacketAck)(nil), // 15: fairyring.keyshare.CurrentKeysPacketAck + (*durationpb.Duration)(nil), // 16: google.protobuf.Duration + (*common.PrivateDecryptionKey)(nil), // 17: fairyring.common.PrivateDecryptionKey + (*common.ActivePublicKey)(nil), // 18: fairyring.common.ActivePublicKey + (*common.QueuedPublicKey)(nil), // 19: fairyring.common.QueuedPublicKey } var file_fairyring_keyshare_packet_proto_depIdxs = []int32{ - 1, // 0: fairyring.keyshare.KeysharePacketData.noData:type_name -> fairyring.keyshare.NoData - 2, // 1: fairyring.keyshare.KeysharePacketData.requestAggrKeysharePacket:type_name -> fairyring.keyshare.RequestAggrKeysharePacketData - 6, // 2: fairyring.keyshare.KeysharePacketData.getAggrKeysharePacket:type_name -> fairyring.keyshare.GetAggrKeysharePacketData - 10, // 3: fairyring.keyshare.KeysharePacketData.aggrKeyshareDataPacket:type_name -> fairyring.keyshare.AggrKeyshareDataPacketData - 12, // 4: fairyring.keyshare.KeysharePacketData.encryptedKeysharesPacketData:type_name -> fairyring.keyshare.EncryptedKeysharesPacketData - 14, // 5: fairyring.keyshare.KeysharePacketData.currentKeysPacket:type_name -> fairyring.keyshare.CurrentKeysPacketData - 3, // 6: fairyring.keyshare.KeysharePacketData.request_priv_keyshare_packet:type_name -> fairyring.keyshare.RequestPrivateKeysharePacketData - 8, // 7: fairyring.keyshare.KeysharePacketData.getPrivateKeysharePacket:type_name -> fairyring.keyshare.GetPrivateKeysharePacketData - 16, // 8: fairyring.keyshare.RequestAggrKeysharePacketData.estimated_delay:type_name -> google.protobuf.Duration - 17, // 9: fairyring.keyshare.EncryptedKeysharesPacketData.encrypted_keyshares:type_name -> fairyring.common.EncryptedKeyshare - 18, // 10: fairyring.keyshare.CurrentKeysPacketAck.activeKey:type_name -> fairyring.common.ActivePublicKey - 19, // 11: fairyring.keyshare.CurrentKeysPacketAck.queuedKey:type_name -> fairyring.common.QueuedPublicKey + 1, // 0: fairyring.keyshare.KeysharePacketData.no_data:type_name -> fairyring.keyshare.NoData + 2, // 1: fairyring.keyshare.KeysharePacketData.request_decryption_key_packet:type_name -> fairyring.keyshare.RequestDecryptionKeyPacketData + 6, // 2: fairyring.keyshare.KeysharePacketData.get_decryption_key_packet:type_name -> fairyring.keyshare.GetDecryptionKeyPacketData + 10, // 3: fairyring.keyshare.KeysharePacketData.decryption_key_data_packet:type_name -> fairyring.keyshare.DecryptionKeyDataPacketData + 12, // 4: fairyring.keyshare.KeysharePacketData.private_decryption_key_data_packet:type_name -> fairyring.keyshare.PrivateDecryptionKeyDataPacketData + 14, // 5: fairyring.keyshare.KeysharePacketData.current_keys_packet:type_name -> fairyring.keyshare.CurrentKeysPacketData + 3, // 6: fairyring.keyshare.KeysharePacketData.request_private_decryption_key_packet:type_name -> fairyring.keyshare.RequestPrivateDecryptionKeyPacketData + 8, // 7: fairyring.keyshare.KeysharePacketData.get_private_decryption_key_packet:type_name -> fairyring.keyshare.GetPrivateDecryptionKeyPacketData + 16, // 8: fairyring.keyshare.RequestDecryptionKeyPacketData.estimated_delay:type_name -> google.protobuf.Duration + 17, // 9: fairyring.keyshare.PrivateDecryptionKeyDataPacketData.private_decryption_key:type_name -> fairyring.common.PrivateDecryptionKey + 18, // 10: fairyring.keyshare.CurrentKeysPacketAck.active_key:type_name -> fairyring.common.ActivePublicKey + 19, // 11: fairyring.keyshare.CurrentKeysPacketAck.queued_key:type_name -> fairyring.common.QueuedPublicKey 12, // [12:12] is the sub-list for method output_type 12, // [12:12] is the sub-list for method input_type 12, // [12:12] is the sub-list for extension type_name @@ -9503,7 +9521,7 @@ func file_fairyring_keyshare_packet_proto_init() { } } file_fairyring_keyshare_packet_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestAggrKeysharePacketData); i { + switch v := v.(*RequestDecryptionKeyPacketData); i { case 0: return &v.state case 1: @@ -9515,7 +9533,7 @@ func file_fairyring_keyshare_packet_proto_init() { } } file_fairyring_keyshare_packet_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestPrivateKeysharePacketData); i { + switch v := v.(*RequestPrivateDecryptionKeyPacketData); i { case 0: return &v.state case 1: @@ -9527,7 +9545,7 @@ func file_fairyring_keyshare_packet_proto_init() { } } file_fairyring_keyshare_packet_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestPrivateKeysharePacketAck); i { + switch v := v.(*RequestPrivateDecryptionKeyPacketAck); i { case 0: return &v.state case 1: @@ -9539,7 +9557,7 @@ func file_fairyring_keyshare_packet_proto_init() { } } file_fairyring_keyshare_packet_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestAggrKeysharePacketAck); i { + switch v := v.(*RequestDecryptionKeyPacketAck); i { case 0: return &v.state case 1: @@ -9551,7 +9569,7 @@ func file_fairyring_keyshare_packet_proto_init() { } } file_fairyring_keyshare_packet_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAggrKeysharePacketData); i { + switch v := v.(*GetDecryptionKeyPacketData); i { case 0: return &v.state case 1: @@ -9563,7 +9581,7 @@ func file_fairyring_keyshare_packet_proto_init() { } } file_fairyring_keyshare_packet_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAggrKeysharePacketAck); i { + switch v := v.(*GetDecryptionKeyPacketAck); i { case 0: return &v.state case 1: @@ -9575,7 +9593,7 @@ func file_fairyring_keyshare_packet_proto_init() { } } file_fairyring_keyshare_packet_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPrivateKeysharePacketData); i { + switch v := v.(*GetPrivateDecryptionKeyPacketData); i { case 0: return &v.state case 1: @@ -9587,7 +9605,7 @@ func file_fairyring_keyshare_packet_proto_init() { } } file_fairyring_keyshare_packet_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPrivateKeysharePacketAck); i { + switch v := v.(*GetPrivateDecryptionKeyPacketAck); i { case 0: return &v.state case 1: @@ -9599,7 +9617,7 @@ func file_fairyring_keyshare_packet_proto_init() { } } file_fairyring_keyshare_packet_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AggrKeyshareDataPacketData); i { + switch v := v.(*DecryptionKeyDataPacketData); i { case 0: return &v.state case 1: @@ -9611,7 +9629,7 @@ func file_fairyring_keyshare_packet_proto_init() { } } file_fairyring_keyshare_packet_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AggrKeyshareDataPacketAck); i { + switch v := v.(*DecryptionKeyPacketAck); i { case 0: return &v.state case 1: @@ -9623,7 +9641,7 @@ func file_fairyring_keyshare_packet_proto_init() { } } file_fairyring_keyshare_packet_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncryptedKeysharesPacketData); i { + switch v := v.(*PrivateDecryptionKeyDataPacketData); i { case 0: return &v.state case 1: @@ -9635,7 +9653,7 @@ func file_fairyring_keyshare_packet_proto_init() { } } file_fairyring_keyshare_packet_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncryptedKeysharesPacketAck); i { + switch v := v.(*PrivateDecryptionKeyPacketAck); i { case 0: return &v.state case 1: @@ -9673,17 +9691,17 @@ func file_fairyring_keyshare_packet_proto_init() { } file_fairyring_keyshare_packet_proto_msgTypes[0].OneofWrappers = []interface{}{ (*KeysharePacketData_NoData)(nil), - (*KeysharePacketData_RequestAggrKeysharePacket)(nil), - (*KeysharePacketData_GetAggrKeysharePacket)(nil), - (*KeysharePacketData_AggrKeyshareDataPacket)(nil), - (*KeysharePacketData_EncryptedKeysharesPacketData)(nil), + (*KeysharePacketData_RequestDecryptionKeyPacket)(nil), + (*KeysharePacketData_GetDecryptionKeyPacket)(nil), + (*KeysharePacketData_DecryptionKeyDataPacket)(nil), + (*KeysharePacketData_PrivateDecryptionKeyDataPacket)(nil), (*KeysharePacketData_CurrentKeysPacket)(nil), - (*KeysharePacketData_RequestPrivKeysharePacket)(nil), - (*KeysharePacketData_GetPrivateKeysharePacket)(nil), + (*KeysharePacketData_RequestPrivateDecryptionKeyPacket)(nil), + (*KeysharePacketData_GetPrivateDecryptionKeyPacket)(nil), } file_fairyring_keyshare_packet_proto_msgTypes[2].OneofWrappers = []interface{}{ - (*RequestAggrKeysharePacketData_ProposalId)(nil), - (*RequestAggrKeysharePacketData_RequestId)(nil), + (*RequestDecryptionKeyPacketData_ProposalId)(nil), + (*RequestDecryptionKeyPacketData_RequestId)(nil), } type x struct{} out := protoimpl.TypeBuilder{ diff --git a/api/fairyring/keyshare/query.pulsar.go b/api/fairyring/keyshare/query.pulsar.go index 09071e70..c9c88153 100644 --- a/api/fairyring/keyshare/query.pulsar.go +++ b/api/fairyring/keyshare/query.pulsar.go @@ -6276,25 +6276,25 @@ func (x *fastReflection_QueryKeyShareAllResponse) ProtoMethods() *protoiface.Met } var ( - md_QueryAggregatedKeyShareRequest protoreflect.MessageDescriptor - fd_QueryAggregatedKeyShareRequest_height protoreflect.FieldDescriptor + md_QueryDecryptionKeyRequest protoreflect.MessageDescriptor + fd_QueryDecryptionKeyRequest_height protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryAggregatedKeyShareRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAggregatedKeyShareRequest") - fd_QueryAggregatedKeyShareRequest_height = md_QueryAggregatedKeyShareRequest.Fields().ByName("height") + md_QueryDecryptionKeyRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryDecryptionKeyRequest") + fd_QueryDecryptionKeyRequest_height = md_QueryDecryptionKeyRequest.Fields().ByName("height") } -var _ protoreflect.Message = (*fastReflection_QueryAggregatedKeyShareRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryDecryptionKeyRequest)(nil) -type fastReflection_QueryAggregatedKeyShareRequest QueryAggregatedKeyShareRequest +type fastReflection_QueryDecryptionKeyRequest QueryDecryptionKeyRequest -func (x *QueryAggregatedKeyShareRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAggregatedKeyShareRequest)(x) +func (x *QueryDecryptionKeyRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDecryptionKeyRequest)(x) } -func (x *QueryAggregatedKeyShareRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryDecryptionKeyRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6306,43 +6306,43 @@ func (x *QueryAggregatedKeyShareRequest) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_QueryAggregatedKeyShareRequest_messageType fastReflection_QueryAggregatedKeyShareRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryAggregatedKeyShareRequest_messageType{} +var _fastReflection_QueryDecryptionKeyRequest_messageType fastReflection_QueryDecryptionKeyRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryDecryptionKeyRequest_messageType{} -type fastReflection_QueryAggregatedKeyShareRequest_messageType struct{} +type fastReflection_QueryDecryptionKeyRequest_messageType struct{} -func (x fastReflection_QueryAggregatedKeyShareRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAggregatedKeyShareRequest)(nil) +func (x fastReflection_QueryDecryptionKeyRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDecryptionKeyRequest)(nil) } -func (x fastReflection_QueryAggregatedKeyShareRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAggregatedKeyShareRequest) +func (x fastReflection_QueryDecryptionKeyRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDecryptionKeyRequest) } -func (x fastReflection_QueryAggregatedKeyShareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAggregatedKeyShareRequest +func (x fastReflection_QueryDecryptionKeyRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDecryptionKeyRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAggregatedKeyShareRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAggregatedKeyShareRequest +func (x *fastReflection_QueryDecryptionKeyRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDecryptionKeyRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAggregatedKeyShareRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryAggregatedKeyShareRequest_messageType +func (x *fastReflection_QueryDecryptionKeyRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryDecryptionKeyRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAggregatedKeyShareRequest) New() protoreflect.Message { - return new(fastReflection_QueryAggregatedKeyShareRequest) +func (x *fastReflection_QueryDecryptionKeyRequest) New() protoreflect.Message { + return new(fastReflection_QueryDecryptionKeyRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAggregatedKeyShareRequest) Interface() protoreflect.ProtoMessage { - return (*QueryAggregatedKeyShareRequest)(x) +func (x *fastReflection_QueryDecryptionKeyRequest) Interface() protoreflect.ProtoMessage { + return (*QueryDecryptionKeyRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -6350,10 +6350,10 @@ func (x *fastReflection_QueryAggregatedKeyShareRequest) Interface() protoreflect // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAggregatedKeyShareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryDecryptionKeyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Height != uint64(0) { value := protoreflect.ValueOfUint64(x.Height) - if !f(fd_QueryAggregatedKeyShareRequest_height, value) { + if !f(fd_QueryDecryptionKeyRequest_height, value) { return } } @@ -6370,15 +6370,15 @@ func (x *fastReflection_QueryAggregatedKeyShareRequest) Range(f func(protoreflec // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAggregatedKeyShareRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryDecryptionKeyRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareRequest.height": + case "fairyring.keyshare.QueryDecryptionKeyRequest.height": return x.Height != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyRequest does not contain field %s", fd.FullName())) } } @@ -6388,15 +6388,15 @@ func (x *fastReflection_QueryAggregatedKeyShareRequest) Has(fd protoreflect.Fiel // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAggregatedKeyShareRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryDecryptionKeyRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareRequest.height": + case "fairyring.keyshare.QueryDecryptionKeyRequest.height": x.Height = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyRequest does not contain field %s", fd.FullName())) } } @@ -6406,16 +6406,16 @@ func (x *fastReflection_QueryAggregatedKeyShareRequest) Clear(fd protoreflect.Fi // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAggregatedKeyShareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDecryptionKeyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareRequest.height": + case "fairyring.keyshare.QueryDecryptionKeyRequest.height": value := x.Height return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyRequest does not contain field %s", descriptor.FullName())) } } @@ -6429,15 +6429,15 @@ func (x *fastReflection_QueryAggregatedKeyShareRequest) Get(descriptor protorefl // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAggregatedKeyShareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryDecryptionKeyRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareRequest.height": + case "fairyring.keyshare.QueryDecryptionKeyRequest.height": x.Height = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyRequest does not contain field %s", fd.FullName())) } } @@ -6451,40 +6451,40 @@ func (x *fastReflection_QueryAggregatedKeyShareRequest) Set(fd protoreflect.Fiel // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAggregatedKeyShareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDecryptionKeyRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareRequest.height": - panic(fmt.Errorf("field height of message fairyring.keyshare.QueryAggregatedKeyShareRequest is not mutable")) + case "fairyring.keyshare.QueryDecryptionKeyRequest.height": + panic(fmt.Errorf("field height of message fairyring.keyshare.QueryDecryptionKeyRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAggregatedKeyShareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDecryptionKeyRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareRequest.height": + case "fairyring.keyshare.QueryDecryptionKeyRequest.height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAggregatedKeyShareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryDecryptionKeyRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAggregatedKeyShareRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryDecryptionKeyRequest", d.FullName())) } panic("unreachable") } @@ -6492,7 +6492,7 @@ func (x *fastReflection_QueryAggregatedKeyShareRequest) WhichOneof(d protoreflec // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAggregatedKeyShareRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryDecryptionKeyRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6503,7 +6503,7 @@ func (x *fastReflection_QueryAggregatedKeyShareRequest) GetUnknown() protoreflec // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAggregatedKeyShareRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryDecryptionKeyRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6515,7 +6515,7 @@ func (x *fastReflection_QueryAggregatedKeyShareRequest) SetUnknown(fields protor // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAggregatedKeyShareRequest) IsValid() bool { +func (x *fastReflection_QueryDecryptionKeyRequest) IsValid() bool { return x != nil } @@ -6525,9 +6525,9 @@ func (x *fastReflection_QueryAggregatedKeyShareRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAggregatedKeyShareRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryDecryptionKeyRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAggregatedKeyShareRequest) + x := input.Message.Interface().(*QueryDecryptionKeyRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6552,7 +6552,7 @@ func (x *fastReflection_QueryAggregatedKeyShareRequest) ProtoMethods() *protoifa } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAggregatedKeyShareRequest) + x := input.Message.Interface().(*QueryDecryptionKeyRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6587,7 +6587,7 @@ func (x *fastReflection_QueryAggregatedKeyShareRequest) ProtoMethods() *protoifa }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAggregatedKeyShareRequest) + x := input.Message.Interface().(*QueryDecryptionKeyRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6619,10 +6619,10 @@ func (x *fastReflection_QueryAggregatedKeyShareRequest) ProtoMethods() *protoifa fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAggregatedKeyShareRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDecryptionKeyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAggregatedKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDecryptionKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6680,25 +6680,25 @@ func (x *fastReflection_QueryAggregatedKeyShareRequest) ProtoMethods() *protoifa } var ( - md_QueryAggregatedKeyShareResponse protoreflect.MessageDescriptor - fd_QueryAggregatedKeyShareResponse_aggregated_key_share protoreflect.FieldDescriptor + md_QueryDecryptionKeyResponse protoreflect.MessageDescriptor + fd_QueryDecryptionKeyResponse_decryption_key protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryAggregatedKeyShareResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAggregatedKeyShareResponse") - fd_QueryAggregatedKeyShareResponse_aggregated_key_share = md_QueryAggregatedKeyShareResponse.Fields().ByName("aggregated_key_share") + md_QueryDecryptionKeyResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryDecryptionKeyResponse") + fd_QueryDecryptionKeyResponse_decryption_key = md_QueryDecryptionKeyResponse.Fields().ByName("decryption_key") } -var _ protoreflect.Message = (*fastReflection_QueryAggregatedKeyShareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryDecryptionKeyResponse)(nil) -type fastReflection_QueryAggregatedKeyShareResponse QueryAggregatedKeyShareResponse +type fastReflection_QueryDecryptionKeyResponse QueryDecryptionKeyResponse -func (x *QueryAggregatedKeyShareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAggregatedKeyShareResponse)(x) +func (x *QueryDecryptionKeyResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDecryptionKeyResponse)(x) } -func (x *QueryAggregatedKeyShareResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryDecryptionKeyResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6710,43 +6710,43 @@ func (x *QueryAggregatedKeyShareResponse) slowProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -var _fastReflection_QueryAggregatedKeyShareResponse_messageType fastReflection_QueryAggregatedKeyShareResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryAggregatedKeyShareResponse_messageType{} +var _fastReflection_QueryDecryptionKeyResponse_messageType fastReflection_QueryDecryptionKeyResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryDecryptionKeyResponse_messageType{} -type fastReflection_QueryAggregatedKeyShareResponse_messageType struct{} +type fastReflection_QueryDecryptionKeyResponse_messageType struct{} -func (x fastReflection_QueryAggregatedKeyShareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAggregatedKeyShareResponse)(nil) +func (x fastReflection_QueryDecryptionKeyResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDecryptionKeyResponse)(nil) } -func (x fastReflection_QueryAggregatedKeyShareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAggregatedKeyShareResponse) +func (x fastReflection_QueryDecryptionKeyResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDecryptionKeyResponse) } -func (x fastReflection_QueryAggregatedKeyShareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAggregatedKeyShareResponse +func (x fastReflection_QueryDecryptionKeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDecryptionKeyResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAggregatedKeyShareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAggregatedKeyShareResponse +func (x *fastReflection_QueryDecryptionKeyResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDecryptionKeyResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAggregatedKeyShareResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryAggregatedKeyShareResponse_messageType +func (x *fastReflection_QueryDecryptionKeyResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryDecryptionKeyResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAggregatedKeyShareResponse) New() protoreflect.Message { - return new(fastReflection_QueryAggregatedKeyShareResponse) +func (x *fastReflection_QueryDecryptionKeyResponse) New() protoreflect.Message { + return new(fastReflection_QueryDecryptionKeyResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAggregatedKeyShareResponse) Interface() protoreflect.ProtoMessage { - return (*QueryAggregatedKeyShareResponse)(x) +func (x *fastReflection_QueryDecryptionKeyResponse) Interface() protoreflect.ProtoMessage { + return (*QueryDecryptionKeyResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -6754,10 +6754,10 @@ func (x *fastReflection_QueryAggregatedKeyShareResponse) Interface() protoreflec // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAggregatedKeyShareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.AggregatedKeyShare != nil { - value := protoreflect.ValueOfMessage(x.AggregatedKeyShare.ProtoReflect()) - if !f(fd_QueryAggregatedKeyShareResponse_aggregated_key_share, value) { +func (x *fastReflection_QueryDecryptionKeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DecryptionKey != nil { + value := protoreflect.ValueOfMessage(x.DecryptionKey.ProtoReflect()) + if !f(fd_QueryDecryptionKeyResponse_decryption_key, value) { return } } @@ -6774,15 +6774,15 @@ func (x *fastReflection_QueryAggregatedKeyShareResponse) Range(f func(protorefle // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAggregatedKeyShareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryDecryptionKeyResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareResponse.aggregated_key_share": - return x.AggregatedKeyShare != nil + case "fairyring.keyshare.QueryDecryptionKeyResponse.decryption_key": + return x.DecryptionKey != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -6792,15 +6792,15 @@ func (x *fastReflection_QueryAggregatedKeyShareResponse) Has(fd protoreflect.Fie // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAggregatedKeyShareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryDecryptionKeyResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareResponse.aggregated_key_share": - x.AggregatedKeyShare = nil + case "fairyring.keyshare.QueryDecryptionKeyResponse.decryption_key": + x.DecryptionKey = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -6810,16 +6810,16 @@ func (x *fastReflection_QueryAggregatedKeyShareResponse) Clear(fd protoreflect.F // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAggregatedKeyShareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDecryptionKeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareResponse.aggregated_key_share": - value := x.AggregatedKeyShare + case "fairyring.keyshare.QueryDecryptionKeyResponse.decryption_key": + value := x.DecryptionKey return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyResponse does not contain field %s", descriptor.FullName())) } } @@ -6833,15 +6833,15 @@ func (x *fastReflection_QueryAggregatedKeyShareResponse) Get(descriptor protoref // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAggregatedKeyShareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryDecryptionKeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareResponse.aggregated_key_share": - x.AggregatedKeyShare = value.Message().Interface().(*AggregatedKeyShare) + case "fairyring.keyshare.QueryDecryptionKeyResponse.decryption_key": + x.DecryptionKey = value.Message().Interface().(*AggregatedKeyShare) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -6855,44 +6855,44 @@ func (x *fastReflection_QueryAggregatedKeyShareResponse) Set(fd protoreflect.Fie // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAggregatedKeyShareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDecryptionKeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareResponse.aggregated_key_share": - if x.AggregatedKeyShare == nil { - x.AggregatedKeyShare = new(AggregatedKeyShare) + case "fairyring.keyshare.QueryDecryptionKeyResponse.decryption_key": + if x.DecryptionKey == nil { + x.DecryptionKey = new(AggregatedKeyShare) } - return protoreflect.ValueOfMessage(x.AggregatedKeyShare.ProtoReflect()) + return protoreflect.ValueOfMessage(x.DecryptionKey.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAggregatedKeyShareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDecryptionKeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareResponse.aggregated_key_share": + case "fairyring.keyshare.QueryDecryptionKeyResponse.decryption_key": m := new(AggregatedKeyShare) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAggregatedKeyShareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryDecryptionKeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAggregatedKeyShareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryDecryptionKeyResponse", d.FullName())) } panic("unreachable") } @@ -6900,7 +6900,7 @@ func (x *fastReflection_QueryAggregatedKeyShareResponse) WhichOneof(d protorefle // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAggregatedKeyShareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryDecryptionKeyResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6911,7 +6911,7 @@ func (x *fastReflection_QueryAggregatedKeyShareResponse) GetUnknown() protorefle // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAggregatedKeyShareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryDecryptionKeyResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6923,7 +6923,7 @@ func (x *fastReflection_QueryAggregatedKeyShareResponse) SetUnknown(fields proto // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAggregatedKeyShareResponse) IsValid() bool { +func (x *fastReflection_QueryDecryptionKeyResponse) IsValid() bool { return x != nil } @@ -6933,9 +6933,9 @@ func (x *fastReflection_QueryAggregatedKeyShareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAggregatedKeyShareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryDecryptionKeyResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAggregatedKeyShareResponse) + x := input.Message.Interface().(*QueryDecryptionKeyResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6947,8 +6947,8 @@ func (x *fastReflection_QueryAggregatedKeyShareResponse) ProtoMethods() *protoif var n int var l int _ = l - if x.AggregatedKeyShare != nil { - l = options.Size(x.AggregatedKeyShare) + if x.DecryptionKey != nil { + l = options.Size(x.DecryptionKey) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -6961,7 +6961,7 @@ func (x *fastReflection_QueryAggregatedKeyShareResponse) ProtoMethods() *protoif } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAggregatedKeyShareResponse) + x := input.Message.Interface().(*QueryDecryptionKeyResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6980,8 +6980,8 @@ func (x *fastReflection_QueryAggregatedKeyShareResponse) ProtoMethods() *protoif i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.AggregatedKeyShare != nil { - encoded, err := options.Marshal(x.AggregatedKeyShare) + if x.DecryptionKey != nil { + encoded, err := options.Marshal(x.DecryptionKey) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7005,7 +7005,7 @@ func (x *fastReflection_QueryAggregatedKeyShareResponse) ProtoMethods() *protoif }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAggregatedKeyShareResponse) + x := input.Message.Interface().(*QueryDecryptionKeyResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7037,15 +7037,15 @@ func (x *fastReflection_QueryAggregatedKeyShareResponse) ProtoMethods() *protoif fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAggregatedKeyShareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDecryptionKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAggregatedKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDecryptionKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AggregatedKeyShare", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DecryptionKey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -7072,10 +7072,10 @@ func (x *fastReflection_QueryAggregatedKeyShareResponse) ProtoMethods() *protoif if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.AggregatedKeyShare == nil { - x.AggregatedKeyShare = &AggregatedKeyShare{} + if x.DecryptionKey == nil { + x.DecryptionKey = &AggregatedKeyShare{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AggregatedKeyShare); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DecryptionKey); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -7115,25 +7115,25 @@ func (x *fastReflection_QueryAggregatedKeyShareResponse) ProtoMethods() *protoif } var ( - md_QueryAggregatedKeyShareAllRequest protoreflect.MessageDescriptor - fd_QueryAggregatedKeyShareAllRequest_pagination protoreflect.FieldDescriptor + md_QueryDecryptionKeyAllRequest protoreflect.MessageDescriptor + fd_QueryDecryptionKeyAllRequest_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryAggregatedKeyShareAllRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAggregatedKeyShareAllRequest") - fd_QueryAggregatedKeyShareAllRequest_pagination = md_QueryAggregatedKeyShareAllRequest.Fields().ByName("pagination") + md_QueryDecryptionKeyAllRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryDecryptionKeyAllRequest") + fd_QueryDecryptionKeyAllRequest_pagination = md_QueryDecryptionKeyAllRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAggregatedKeyShareAllRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryDecryptionKeyAllRequest)(nil) -type fastReflection_QueryAggregatedKeyShareAllRequest QueryAggregatedKeyShareAllRequest +type fastReflection_QueryDecryptionKeyAllRequest QueryDecryptionKeyAllRequest -func (x *QueryAggregatedKeyShareAllRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAggregatedKeyShareAllRequest)(x) +func (x *QueryDecryptionKeyAllRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDecryptionKeyAllRequest)(x) } -func (x *QueryAggregatedKeyShareAllRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryDecryptionKeyAllRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7145,43 +7145,43 @@ func (x *QueryAggregatedKeyShareAllRequest) slowProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -var _fastReflection_QueryAggregatedKeyShareAllRequest_messageType fastReflection_QueryAggregatedKeyShareAllRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryAggregatedKeyShareAllRequest_messageType{} +var _fastReflection_QueryDecryptionKeyAllRequest_messageType fastReflection_QueryDecryptionKeyAllRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryDecryptionKeyAllRequest_messageType{} -type fastReflection_QueryAggregatedKeyShareAllRequest_messageType struct{} +type fastReflection_QueryDecryptionKeyAllRequest_messageType struct{} -func (x fastReflection_QueryAggregatedKeyShareAllRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAggregatedKeyShareAllRequest)(nil) +func (x fastReflection_QueryDecryptionKeyAllRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDecryptionKeyAllRequest)(nil) } -func (x fastReflection_QueryAggregatedKeyShareAllRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAggregatedKeyShareAllRequest) +func (x fastReflection_QueryDecryptionKeyAllRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDecryptionKeyAllRequest) } -func (x fastReflection_QueryAggregatedKeyShareAllRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAggregatedKeyShareAllRequest +func (x fastReflection_QueryDecryptionKeyAllRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDecryptionKeyAllRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAggregatedKeyShareAllRequest +func (x *fastReflection_QueryDecryptionKeyAllRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDecryptionKeyAllRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryAggregatedKeyShareAllRequest_messageType +func (x *fastReflection_QueryDecryptionKeyAllRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryDecryptionKeyAllRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAggregatedKeyShareAllRequest) New() protoreflect.Message { - return new(fastReflection_QueryAggregatedKeyShareAllRequest) +func (x *fastReflection_QueryDecryptionKeyAllRequest) New() protoreflect.Message { + return new(fastReflection_QueryDecryptionKeyAllRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Interface() protoreflect.ProtoMessage { - return (*QueryAggregatedKeyShareAllRequest)(x) +func (x *fastReflection_QueryDecryptionKeyAllRequest) Interface() protoreflect.ProtoMessage { + return (*QueryDecryptionKeyAllRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -7189,10 +7189,10 @@ func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Interface() protorefl // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryDecryptionKeyAllRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAggregatedKeyShareAllRequest_pagination, value) { + if !f(fd_QueryDecryptionKeyAllRequest_pagination, value) { return } } @@ -7209,15 +7209,15 @@ func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Range(f func(protoref // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryDecryptionKeyAllRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareAllRequest.pagination": + case "fairyring.keyshare.QueryDecryptionKeyAllRequest.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyAllRequest does not contain field %s", fd.FullName())) } } @@ -7227,15 +7227,15 @@ func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Has(fd protoreflect.F // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryDecryptionKeyAllRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareAllRequest.pagination": + case "fairyring.keyshare.QueryDecryptionKeyAllRequest.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyAllRequest does not contain field %s", fd.FullName())) } } @@ -7245,16 +7245,16 @@ func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Clear(fd protoreflect // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDecryptionKeyAllRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareAllRequest.pagination": + case "fairyring.keyshare.QueryDecryptionKeyAllRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyAllRequest does not contain field %s", descriptor.FullName())) } } @@ -7268,15 +7268,15 @@ func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Get(descriptor protor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryDecryptionKeyAllRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareAllRequest.pagination": + case "fairyring.keyshare.QueryDecryptionKeyAllRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyAllRequest does not contain field %s", fd.FullName())) } } @@ -7290,44 +7290,44 @@ func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Set(fd protoreflect.F // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAggregatedKeyShareAllRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDecryptionKeyAllRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareAllRequest.pagination": + case "fairyring.keyshare.QueryDecryptionKeyAllRequest.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyAllRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAggregatedKeyShareAllRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDecryptionKeyAllRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareAllRequest.pagination": + case "fairyring.keyshare.QueryDecryptionKeyAllRequest.pagination": m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyAllRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAggregatedKeyShareAllRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryDecryptionKeyAllRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAggregatedKeyShareAllRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryDecryptionKeyAllRequest", d.FullName())) } panic("unreachable") } @@ -7335,7 +7335,7 @@ func (x *fastReflection_QueryAggregatedKeyShareAllRequest) WhichOneof(d protoref // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAggregatedKeyShareAllRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryDecryptionKeyAllRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7346,7 +7346,7 @@ func (x *fastReflection_QueryAggregatedKeyShareAllRequest) GetUnknown() protoref // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAggregatedKeyShareAllRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryDecryptionKeyAllRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7358,7 +7358,7 @@ func (x *fastReflection_QueryAggregatedKeyShareAllRequest) SetUnknown(fields pro // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAggregatedKeyShareAllRequest) IsValid() bool { +func (x *fastReflection_QueryDecryptionKeyAllRequest) IsValid() bool { return x != nil } @@ -7368,9 +7368,9 @@ func (x *fastReflection_QueryAggregatedKeyShareAllRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAggregatedKeyShareAllRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryDecryptionKeyAllRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAggregatedKeyShareAllRequest) + x := input.Message.Interface().(*QueryDecryptionKeyAllRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7396,7 +7396,7 @@ func (x *fastReflection_QueryAggregatedKeyShareAllRequest) ProtoMethods() *proto } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAggregatedKeyShareAllRequest) + x := input.Message.Interface().(*QueryDecryptionKeyAllRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7440,7 +7440,7 @@ func (x *fastReflection_QueryAggregatedKeyShareAllRequest) ProtoMethods() *proto }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAggregatedKeyShareAllRequest) + x := input.Message.Interface().(*QueryDecryptionKeyAllRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7472,10 +7472,10 @@ func (x *fastReflection_QueryAggregatedKeyShareAllRequest) ProtoMethods() *proto fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAggregatedKeyShareAllRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDecryptionKeyAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAggregatedKeyShareAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDecryptionKeyAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7549,79 +7549,79 @@ func (x *fastReflection_QueryAggregatedKeyShareAllRequest) ProtoMethods() *proto } } -var _ protoreflect.List = (*_QueryAggregatedKeyShareAllResponse_1_list)(nil) +var _ protoreflect.List = (*_QueryDecryptionKeyAllResponse_1_list)(nil) -type _QueryAggregatedKeyShareAllResponse_1_list struct { +type _QueryDecryptionKeyAllResponse_1_list struct { list *[]*AggregatedKeyShare } -func (x *_QueryAggregatedKeyShareAllResponse_1_list) Len() int { +func (x *_QueryDecryptionKeyAllResponse_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryAggregatedKeyShareAllResponse_1_list) Get(i int) protoreflect.Value { +func (x *_QueryDecryptionKeyAllResponse_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryAggregatedKeyShareAllResponse_1_list) Set(i int, value protoreflect.Value) { +func (x *_QueryDecryptionKeyAllResponse_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*AggregatedKeyShare) (*x.list)[i] = concreteValue } -func (x *_QueryAggregatedKeyShareAllResponse_1_list) Append(value protoreflect.Value) { +func (x *_QueryDecryptionKeyAllResponse_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*AggregatedKeyShare) *x.list = append(*x.list, concreteValue) } -func (x *_QueryAggregatedKeyShareAllResponse_1_list) AppendMutable() protoreflect.Value { +func (x *_QueryDecryptionKeyAllResponse_1_list) AppendMutable() protoreflect.Value { v := new(AggregatedKeyShare) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAggregatedKeyShareAllResponse_1_list) Truncate(n int) { +func (x *_QueryDecryptionKeyAllResponse_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryAggregatedKeyShareAllResponse_1_list) NewElement() protoreflect.Value { +func (x *_QueryDecryptionKeyAllResponse_1_list) NewElement() protoreflect.Value { v := new(AggregatedKeyShare) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryAggregatedKeyShareAllResponse_1_list) IsValid() bool { +func (x *_QueryDecryptionKeyAllResponse_1_list) IsValid() bool { return x.list != nil } var ( - md_QueryAggregatedKeyShareAllResponse protoreflect.MessageDescriptor - fd_QueryAggregatedKeyShareAllResponse_aggregated_key_share protoreflect.FieldDescriptor - fd_QueryAggregatedKeyShareAllResponse_pagination protoreflect.FieldDescriptor + md_QueryDecryptionKeyAllResponse protoreflect.MessageDescriptor + fd_QueryDecryptionKeyAllResponse_decryption_keys protoreflect.FieldDescriptor + fd_QueryDecryptionKeyAllResponse_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryAggregatedKeyShareAllResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryAggregatedKeyShareAllResponse") - fd_QueryAggregatedKeyShareAllResponse_aggregated_key_share = md_QueryAggregatedKeyShareAllResponse.Fields().ByName("aggregated_key_share") - fd_QueryAggregatedKeyShareAllResponse_pagination = md_QueryAggregatedKeyShareAllResponse.Fields().ByName("pagination") + md_QueryDecryptionKeyAllResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryDecryptionKeyAllResponse") + fd_QueryDecryptionKeyAllResponse_decryption_keys = md_QueryDecryptionKeyAllResponse.Fields().ByName("decryption_keys") + fd_QueryDecryptionKeyAllResponse_pagination = md_QueryDecryptionKeyAllResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryAggregatedKeyShareAllResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryDecryptionKeyAllResponse)(nil) -type fastReflection_QueryAggregatedKeyShareAllResponse QueryAggregatedKeyShareAllResponse +type fastReflection_QueryDecryptionKeyAllResponse QueryDecryptionKeyAllResponse -func (x *QueryAggregatedKeyShareAllResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryAggregatedKeyShareAllResponse)(x) +func (x *QueryDecryptionKeyAllResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDecryptionKeyAllResponse)(x) } -func (x *QueryAggregatedKeyShareAllResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryDecryptionKeyAllResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -7633,43 +7633,43 @@ func (x *QueryAggregatedKeyShareAllResponse) slowProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -var _fastReflection_QueryAggregatedKeyShareAllResponse_messageType fastReflection_QueryAggregatedKeyShareAllResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryAggregatedKeyShareAllResponse_messageType{} +var _fastReflection_QueryDecryptionKeyAllResponse_messageType fastReflection_QueryDecryptionKeyAllResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryDecryptionKeyAllResponse_messageType{} -type fastReflection_QueryAggregatedKeyShareAllResponse_messageType struct{} +type fastReflection_QueryDecryptionKeyAllResponse_messageType struct{} -func (x fastReflection_QueryAggregatedKeyShareAllResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryAggregatedKeyShareAllResponse)(nil) +func (x fastReflection_QueryDecryptionKeyAllResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDecryptionKeyAllResponse)(nil) } -func (x fastReflection_QueryAggregatedKeyShareAllResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryAggregatedKeyShareAllResponse) +func (x fastReflection_QueryDecryptionKeyAllResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDecryptionKeyAllResponse) } -func (x fastReflection_QueryAggregatedKeyShareAllResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAggregatedKeyShareAllResponse +func (x fastReflection_QueryDecryptionKeyAllResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDecryptionKeyAllResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryAggregatedKeyShareAllResponse +func (x *fastReflection_QueryDecryptionKeyAllResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDecryptionKeyAllResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryAggregatedKeyShareAllResponse_messageType +func (x *fastReflection_QueryDecryptionKeyAllResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryDecryptionKeyAllResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryAggregatedKeyShareAllResponse) New() protoreflect.Message { - return new(fastReflection_QueryAggregatedKeyShareAllResponse) +func (x *fastReflection_QueryDecryptionKeyAllResponse) New() protoreflect.Message { + return new(fastReflection_QueryDecryptionKeyAllResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Interface() protoreflect.ProtoMessage { - return (*QueryAggregatedKeyShareAllResponse)(x) +func (x *fastReflection_QueryDecryptionKeyAllResponse) Interface() protoreflect.ProtoMessage { + return (*QueryDecryptionKeyAllResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -7677,16 +7677,16 @@ func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Interface() protoref // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.AggregatedKeyShare) != 0 { - value := protoreflect.ValueOfList(&_QueryAggregatedKeyShareAllResponse_1_list{list: &x.AggregatedKeyShare}) - if !f(fd_QueryAggregatedKeyShareAllResponse_aggregated_key_share, value) { +func (x *fastReflection_QueryDecryptionKeyAllResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.DecryptionKeys) != 0 { + value := protoreflect.ValueOfList(&_QueryDecryptionKeyAllResponse_1_list{list: &x.DecryptionKeys}) + if !f(fd_QueryDecryptionKeyAllResponse_decryption_keys, value) { return } } if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryAggregatedKeyShareAllResponse_pagination, value) { + if !f(fd_QueryDecryptionKeyAllResponse_pagination, value) { return } } @@ -7703,17 +7703,17 @@ func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Range(f func(protore // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryDecryptionKeyAllResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.aggregated_key_share": - return len(x.AggregatedKeyShare) != 0 - case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.pagination": + case "fairyring.keyshare.QueryDecryptionKeyAllResponse.decryption_keys": + return len(x.DecryptionKeys) != 0 + case "fairyring.keyshare.QueryDecryptionKeyAllResponse.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyAllResponse does not contain field %s", fd.FullName())) } } @@ -7723,17 +7723,17 @@ func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Has(fd protoreflect. // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryDecryptionKeyAllResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.aggregated_key_share": - x.AggregatedKeyShare = nil - case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.pagination": + case "fairyring.keyshare.QueryDecryptionKeyAllResponse.decryption_keys": + x.DecryptionKeys = nil + case "fairyring.keyshare.QueryDecryptionKeyAllResponse.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyAllResponse does not contain field %s", fd.FullName())) } } @@ -7743,22 +7743,22 @@ func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Clear(fd protoreflec // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDecryptionKeyAllResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.aggregated_key_share": - if len(x.AggregatedKeyShare) == 0 { - return protoreflect.ValueOfList(&_QueryAggregatedKeyShareAllResponse_1_list{}) + case "fairyring.keyshare.QueryDecryptionKeyAllResponse.decryption_keys": + if len(x.DecryptionKeys) == 0 { + return protoreflect.ValueOfList(&_QueryDecryptionKeyAllResponse_1_list{}) } - listValue := &_QueryAggregatedKeyShareAllResponse_1_list{list: &x.AggregatedKeyShare} + listValue := &_QueryDecryptionKeyAllResponse_1_list{list: &x.DecryptionKeys} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.pagination": + case "fairyring.keyshare.QueryDecryptionKeyAllResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyAllResponse does not contain field %s", descriptor.FullName())) } } @@ -7772,19 +7772,19 @@ func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Get(descriptor proto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryDecryptionKeyAllResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.aggregated_key_share": + case "fairyring.keyshare.QueryDecryptionKeyAllResponse.decryption_keys": lv := value.List() - clv := lv.(*_QueryAggregatedKeyShareAllResponse_1_list) - x.AggregatedKeyShare = *clv.list - case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.pagination": + clv := lv.(*_QueryDecryptionKeyAllResponse_1_list) + x.DecryptionKeys = *clv.list + case "fairyring.keyshare.QueryDecryptionKeyAllResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyAllResponse does not contain field %s", fd.FullName())) } } @@ -7798,53 +7798,53 @@ func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Set(fd protoreflect. // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAggregatedKeyShareAllResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDecryptionKeyAllResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.aggregated_key_share": - if x.AggregatedKeyShare == nil { - x.AggregatedKeyShare = []*AggregatedKeyShare{} + case "fairyring.keyshare.QueryDecryptionKeyAllResponse.decryption_keys": + if x.DecryptionKeys == nil { + x.DecryptionKeys = []*AggregatedKeyShare{} } - value := &_QueryAggregatedKeyShareAllResponse_1_list{list: &x.AggregatedKeyShare} + value := &_QueryDecryptionKeyAllResponse_1_list{list: &x.DecryptionKeys} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.pagination": + case "fairyring.keyshare.QueryDecryptionKeyAllResponse.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageResponse) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyAllResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryAggregatedKeyShareAllResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDecryptionKeyAllResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.aggregated_key_share": + case "fairyring.keyshare.QueryDecryptionKeyAllResponse.decryption_keys": list := []*AggregatedKeyShare{} - return protoreflect.ValueOfList(&_QueryAggregatedKeyShareAllResponse_1_list{list: &list}) - case "fairyring.keyshare.QueryAggregatedKeyShareAllResponse.pagination": + return protoreflect.ValueOfList(&_QueryDecryptionKeyAllResponse_1_list{list: &list}) + case "fairyring.keyshare.QueryDecryptionKeyAllResponse.pagination": m := new(v1beta1.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryAggregatedKeyShareAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryAggregatedKeyShareAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryDecryptionKeyAllResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryAggregatedKeyShareAllResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryDecryptionKeyAllResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryAggregatedKeyShareAllResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryDecryptionKeyAllResponse", d.FullName())) } panic("unreachable") } @@ -7852,7 +7852,7 @@ func (x *fastReflection_QueryAggregatedKeyShareAllResponse) WhichOneof(d protore // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryAggregatedKeyShareAllResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryDecryptionKeyAllResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7863,7 +7863,7 @@ func (x *fastReflection_QueryAggregatedKeyShareAllResponse) GetUnknown() protore // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryAggregatedKeyShareAllResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryDecryptionKeyAllResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7875,7 +7875,7 @@ func (x *fastReflection_QueryAggregatedKeyShareAllResponse) SetUnknown(fields pr // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryAggregatedKeyShareAllResponse) IsValid() bool { +func (x *fastReflection_QueryDecryptionKeyAllResponse) IsValid() bool { return x != nil } @@ -7885,9 +7885,9 @@ func (x *fastReflection_QueryAggregatedKeyShareAllResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryAggregatedKeyShareAllResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryDecryptionKeyAllResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryAggregatedKeyShareAllResponse) + x := input.Message.Interface().(*QueryDecryptionKeyAllResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7899,8 +7899,8 @@ func (x *fastReflection_QueryAggregatedKeyShareAllResponse) ProtoMethods() *prot var n int var l int _ = l - if len(x.AggregatedKeyShare) > 0 { - for _, e := range x.AggregatedKeyShare { + if len(x.DecryptionKeys) > 0 { + for _, e := range x.DecryptionKeys { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -7919,7 +7919,7 @@ func (x *fastReflection_QueryAggregatedKeyShareAllResponse) ProtoMethods() *prot } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryAggregatedKeyShareAllResponse) + x := input.Message.Interface().(*QueryDecryptionKeyAllResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7952,9 +7952,9 @@ func (x *fastReflection_QueryAggregatedKeyShareAllResponse) ProtoMethods() *prot i-- dAtA[i] = 0x12 } - if len(x.AggregatedKeyShare) > 0 { - for iNdEx := len(x.AggregatedKeyShare) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.AggregatedKeyShare[iNdEx]) + if len(x.DecryptionKeys) > 0 { + for iNdEx := len(x.DecryptionKeys) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.DecryptionKeys[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7979,7 +7979,7 @@ func (x *fastReflection_QueryAggregatedKeyShareAllResponse) ProtoMethods() *prot }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryAggregatedKeyShareAllResponse) + x := input.Message.Interface().(*QueryDecryptionKeyAllResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8011,15 +8011,15 @@ func (x *fastReflection_QueryAggregatedKeyShareAllResponse) ProtoMethods() *prot fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAggregatedKeyShareAllResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDecryptionKeyAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryAggregatedKeyShareAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDecryptionKeyAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AggregatedKeyShare", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DecryptionKeys", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8046,8 +8046,8 @@ func (x *fastReflection_QueryAggregatedKeyShareAllResponse) ProtoMethods() *prot if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.AggregatedKeyShare = append(x.AggregatedKeyShare, &AggregatedKeyShare{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AggregatedKeyShare[len(x.AggregatedKeyShare)-1]); err != nil { + x.DecryptionKeys = append(x.DecryptionKeys, &AggregatedKeyShare{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DecryptionKeys[len(x.DecryptionKeys)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -13379,8 +13379,8 @@ func (x *QueryKeyShareAllResponse) GetPagination() *v1beta1.PageResponse { return nil } -// QueryAggregatedKeyShareRequest is request type for the Query/AggregatedKeyShare RPC method. -type QueryAggregatedKeyShareRequest struct { +// QueryDecryptionKeyRequest is request type for the Query/DecryptionKey RPC method. +type QueryDecryptionKeyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -13388,8 +13388,8 @@ type QueryAggregatedKeyShareRequest struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` } -func (x *QueryAggregatedKeyShareRequest) Reset() { - *x = QueryAggregatedKeyShareRequest{} +func (x *QueryDecryptionKeyRequest) Reset() { + *x = QueryDecryptionKeyRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13397,35 +13397,35 @@ func (x *QueryAggregatedKeyShareRequest) Reset() { } } -func (x *QueryAggregatedKeyShareRequest) String() string { +func (x *QueryDecryptionKeyRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAggregatedKeyShareRequest) ProtoMessage() {} +func (*QueryDecryptionKeyRequest) ProtoMessage() {} -// Deprecated: Use QueryAggregatedKeyShareRequest.ProtoReflect.Descriptor instead. -func (*QueryAggregatedKeyShareRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryDecryptionKeyRequest.ProtoReflect.Descriptor instead. +func (*QueryDecryptionKeyRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{14} } -func (x *QueryAggregatedKeyShareRequest) GetHeight() uint64 { +func (x *QueryDecryptionKeyRequest) GetHeight() uint64 { if x != nil { return x.Height } return 0 } -// QueryAggregatedKeyShareResponse is response type for the Query/AggregatedKeyShare RPC method. -type QueryAggregatedKeyShareResponse struct { +// QueryDecryptionKeyResponse is response type for the Query/DecryptionKey RPC method. +type QueryDecryptionKeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - AggregatedKeyShare *AggregatedKeyShare `protobuf:"bytes,1,opt,name=aggregated_key_share,json=aggregatedKeyShare,proto3" json:"aggregated_key_share,omitempty"` + DecryptionKey *AggregatedKeyShare `protobuf:"bytes,1,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key,omitempty"` } -func (x *QueryAggregatedKeyShareResponse) Reset() { - *x = QueryAggregatedKeyShareResponse{} +func (x *QueryDecryptionKeyResponse) Reset() { + *x = QueryDecryptionKeyResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13433,26 +13433,26 @@ func (x *QueryAggregatedKeyShareResponse) Reset() { } } -func (x *QueryAggregatedKeyShareResponse) String() string { +func (x *QueryDecryptionKeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAggregatedKeyShareResponse) ProtoMessage() {} +func (*QueryDecryptionKeyResponse) ProtoMessage() {} -// Deprecated: Use QueryAggregatedKeyShareResponse.ProtoReflect.Descriptor instead. -func (*QueryAggregatedKeyShareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryDecryptionKeyResponse.ProtoReflect.Descriptor instead. +func (*QueryDecryptionKeyResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{15} } -func (x *QueryAggregatedKeyShareResponse) GetAggregatedKeyShare() *AggregatedKeyShare { +func (x *QueryDecryptionKeyResponse) GetDecryptionKey() *AggregatedKeyShare { if x != nil { - return x.AggregatedKeyShare + return x.DecryptionKey } return nil } -// QueryAggregatedKeyShareAllRequest is request type for the Query/AggregatedKeyShareAll RPC method. -type QueryAggregatedKeyShareAllRequest struct { +// QueryDecryptionKeyAllRequest is request type for the Query/DecryptionKeyAll RPC method. +type QueryDecryptionKeyAllRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -13460,8 +13460,8 @@ type QueryAggregatedKeyShareAllRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAggregatedKeyShareAllRequest) Reset() { - *x = QueryAggregatedKeyShareAllRequest{} +func (x *QueryDecryptionKeyAllRequest) Reset() { + *x = QueryDecryptionKeyAllRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13469,36 +13469,36 @@ func (x *QueryAggregatedKeyShareAllRequest) Reset() { } } -func (x *QueryAggregatedKeyShareAllRequest) String() string { +func (x *QueryDecryptionKeyAllRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAggregatedKeyShareAllRequest) ProtoMessage() {} +func (*QueryDecryptionKeyAllRequest) ProtoMessage() {} -// Deprecated: Use QueryAggregatedKeyShareAllRequest.ProtoReflect.Descriptor instead. -func (*QueryAggregatedKeyShareAllRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryDecryptionKeyAllRequest.ProtoReflect.Descriptor instead. +func (*QueryDecryptionKeyAllRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{16} } -func (x *QueryAggregatedKeyShareAllRequest) GetPagination() *v1beta1.PageRequest { +func (x *QueryDecryptionKeyAllRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination } return nil } -// QueryAggregatedKeyShareAllResponse is response type for the Query/AggregatedKeyShareAll RPC method. -type QueryAggregatedKeyShareAllResponse struct { +// QueryAggregatedKeyShareAllResponse is response type for the Query/DecryptionKeyAll RPC method. +type QueryDecryptionKeyAllResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - AggregatedKeyShare []*AggregatedKeyShare `protobuf:"bytes,1,rep,name=aggregated_key_share,json=aggregatedKeyShare,proto3" json:"aggregated_key_share,omitempty"` - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + DecryptionKeys []*AggregatedKeyShare `protobuf:"bytes,1,rep,name=decryption_keys,json=decryptionKeys,proto3" json:"decryption_keys,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryAggregatedKeyShareAllResponse) Reset() { - *x = QueryAggregatedKeyShareAllResponse{} +func (x *QueryDecryptionKeyAllResponse) Reset() { + *x = QueryDecryptionKeyAllResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13506,25 +13506,25 @@ func (x *QueryAggregatedKeyShareAllResponse) Reset() { } } -func (x *QueryAggregatedKeyShareAllResponse) String() string { +func (x *QueryDecryptionKeyAllResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryAggregatedKeyShareAllResponse) ProtoMessage() {} +func (*QueryDecryptionKeyAllResponse) ProtoMessage() {} -// Deprecated: Use QueryAggregatedKeyShareAllResponse.ProtoReflect.Descriptor instead. -func (*QueryAggregatedKeyShareAllResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryDecryptionKeyAllResponse.ProtoReflect.Descriptor instead. +func (*QueryDecryptionKeyAllResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{17} } -func (x *QueryAggregatedKeyShareAllResponse) GetAggregatedKeyShare() []*AggregatedKeyShare { +func (x *QueryDecryptionKeyAllResponse) GetDecryptionKeys() []*AggregatedKeyShare { if x != nil { - return x.AggregatedKeyShare + return x.DecryptionKeys } return nil } -func (x *QueryAggregatedKeyShareAllResponse) GetPagination() *v1beta1.PageResponse { +func (x *QueryDecryptionKeyAllResponse) GetPagination() *v1beta1.PageResponse { if x != nil { return x.Pagination } @@ -14036,273 +14036,268 @@ var file_fairyring_keyshare_query_proto_rawDesc = []byte{ 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x38, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x67, 0x72, 0x65, - 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x81, 0x01, 0x0a, - 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, - 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x5e, 0x0a, 0x14, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6b, - 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, - 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x12, 0x61, 0x67, - 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x22, 0x6b, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, - 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xcd, 0x01, - 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, - 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x14, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, - 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, - 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, - 0x52, 0x12, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x14, 0x0a, - 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x22, 0xb1, 0x01, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, - 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0e, 0x61, - 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, - 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, - 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x4c, 0x0a, 0x0e, 0x71, 0x75, 0x65, - 0x75, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, - 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x75, 0x65, - 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x22, 0x37, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x6f, 0x6e, 0x22, 0x33, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x71, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0e, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0d, 0x64, 0x65, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x22, 0x66, 0x0a, 0x1c, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, + 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0xbf, 0x01, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x0f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0e, 0x64, 0x65, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, + 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xb1, 0x01, 0x0a, 0x13, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x75, 0x62, + 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, + 0x12, 0x4c, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, + 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, + 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, + 0x52, 0x0c, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x22, 0x37, + 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, + 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0x7c, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x22, 0x7c, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x12, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, - 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x12, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x11, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x6a, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, + 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x22, 0xc8, 0x01, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x12, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, + 0x52, 0x11, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6f, 0x0a, 0x1b, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x64, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x64, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x75, 0x0a, + 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, + 0x11, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, + 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x22, 0x68, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc1, + 0x01, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, + 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x55, 0x0a, 0x11, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, + 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x32, 0xfa, 0x11, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x7d, 0x0a, 0x06, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x61, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x6a, - 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, - 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc8, 0x01, 0x0a, 0x21, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x5a, 0x0a, 0x12, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6f, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, - 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, - 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x75, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x11, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, - 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x22, 0x68, 0x0a, - 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc1, 0x01, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x11, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, - 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xa4, 0x12, 0x0a, 0x05, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x7d, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, - 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x12, 0x91, 0x01, 0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, - 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x9e, 0x01, 0x0a, 0x0c, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, + 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, + 0x1a, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x91, 0x01, 0x0a, 0x0b, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x2e, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, - 0x74, 0x2f, 0x7b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x7d, 0x12, 0x9f, 0x01, 0x0a, 0x0f, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x12, 0x2f, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x53, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, + 0x61, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, + 0x9e, 0x01, 0x0a, 0x0c, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, + 0x12, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x53, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x12, 0xa1, 0x01, 0x0a, 0x08, - 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x28, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x12, 0x38, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x5f, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x7d, - 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, - 0x8f, 0x01, 0x0a, 0x0b, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x12, - 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, + 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x2f, 0x7b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x7d, + 0x12, 0x9f, 0x01, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, + 0x74, 0x41, 0x6c, 0x6c, 0x12, 0x2f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, + 0x21, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, + 0x65, 0x74, 0x12, 0xa1, 0x01, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, + 0x28, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, - 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x12, 0xb8, 0x01, 0x0a, 0x12, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, - 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, - 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, 0x2f, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x61, - 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2f, 0x7b, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xb8, 0x01, 0x0a, - 0x15, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x12, 0x38, 0x2f, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x7b, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x7d, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0x8f, 0x01, 0x0a, 0x0b, 0x4b, 0x65, 0x79, 0x53, 0x68, + 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, - 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x2f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, - 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x7e, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x4b, 0x65, - 0x79, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, - 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, + 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x6b, + 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0xa3, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x2d, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, + 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, - 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x12, 0xb3, 0x01, 0x0a, 0x11, 0x41, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x31, 0x2e, + 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x2d, 0x12, 0x2b, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x2f, 0x7b, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xa3, + 0x01, 0x0a, 0x10, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, + 0x41, 0x6c, 0x6c, 0x12, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x41, 0x6c, 0x6c, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x41, 0x6c, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, + 0x12, 0x22, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x6b, 0x65, 0x79, 0x12, 0x7e, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x26, + 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x75, 0x62, + 0x5f, 0x6b, 0x65, 0x79, 0x12, 0xb3, 0x01, 0x0a, 0x11, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x31, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, - 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x7d, 0x12, 0xb3, 0x01, - 0x0a, 0x14, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x12, 0x34, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, - 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x12, 0xc4, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, - 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x48, 0x12, 0x46, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, - 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, - 0x7b, 0x69, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x7d, 0x12, 0xac, 0x01, 0x0a, 0x12, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, - 0x6c, 0x12, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x61, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x7d, 0x12, 0xb3, 0x01, 0x0a, 0x14, 0x41, + 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x41, 0x6c, 0x6c, 0x12, 0x34, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, + 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x12, 0xc4, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x12, 0x2f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, - 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x27, 0x12, 0x25, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, - 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0xb6, 0x01, 0x0a, 0x14, 0x56, 0x65, - 0x72, 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, - 0x73, 0x73, 0x12, 0x34, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x65, 0x72, - 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, - 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x65, 0x72, - 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, - 0x73, 0x73, 0x42, 0xb2, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x0a, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x12, + 0x46, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, + 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x7d, 0x12, 0xac, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x32, + 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, + 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, + 0x25, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, + 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0xb6, 0x01, 0x0a, 0x14, 0x56, 0x65, 0x72, 0x69, 0x66, + 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x12, + 0x34, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, + 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, + 0x6e, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, + 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x42, + 0xb2, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, + 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, + 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -14319,45 +14314,45 @@ func file_fairyring_keyshare_query_proto_rawDescGZIP() []byte { var file_fairyring_keyshare_query_proto_msgTypes = make([]protoimpl.MessageInfo, 28) var file_fairyring_keyshare_query_proto_goTypes = []interface{}{ - (*QueryVerifiableRandomnessRequest)(nil), // 0: fairyring.keyshare.QueryVerifiableRandomnessRequest - (*QueryVerifiableRandomnessResponse)(nil), // 1: fairyring.keyshare.QueryVerifiableRandomnessResponse - (*QueryParamsRequest)(nil), // 2: fairyring.keyshare.QueryParamsRequest - (*QueryParamsResponse)(nil), // 3: fairyring.keyshare.QueryParamsResponse - (*QueryCommitmentsRequest)(nil), // 4: fairyring.keyshare.QueryCommitmentsRequest - (*QueryCommitmentsResponse)(nil), // 5: fairyring.keyshare.QueryCommitmentsResponse - (*QueryValidatorSetRequest)(nil), // 6: fairyring.keyshare.QueryValidatorSetRequest - (*QueryValidatorSetResponse)(nil), // 7: fairyring.keyshare.QueryValidatorSetResponse - (*QueryValidatorSetAllRequest)(nil), // 8: fairyring.keyshare.QueryValidatorSetAllRequest - (*QueryValidatorSetAllResponse)(nil), // 9: fairyring.keyshare.QueryValidatorSetAllResponse - (*QueryKeyShareRequest)(nil), // 10: fairyring.keyshare.QueryKeyShareRequest - (*QueryKeyShareResponse)(nil), // 11: fairyring.keyshare.QueryKeyShareResponse - (*QueryKeyShareAllRequest)(nil), // 12: fairyring.keyshare.QueryKeyShareAllRequest - (*QueryKeyShareAllResponse)(nil), // 13: fairyring.keyshare.QueryKeyShareAllResponse - (*QueryAggregatedKeyShareRequest)(nil), // 14: fairyring.keyshare.QueryAggregatedKeyShareRequest - (*QueryAggregatedKeyShareResponse)(nil), // 15: fairyring.keyshare.QueryAggregatedKeyShareResponse - (*QueryAggregatedKeyShareAllRequest)(nil), // 16: fairyring.keyshare.QueryAggregatedKeyShareAllRequest - (*QueryAggregatedKeyShareAllResponse)(nil), // 17: fairyring.keyshare.QueryAggregatedKeyShareAllResponse - (*QueryPubKeyRequest)(nil), // 18: fairyring.keyshare.QueryPubKeyRequest - (*QueryPubKeyResponse)(nil), // 19: fairyring.keyshare.QueryPubKeyResponse - (*QueryAuthorizedAddressRequest)(nil), // 20: fairyring.keyshare.QueryAuthorizedAddressRequest - (*QueryAuthorizedAddressResponse)(nil), // 21: fairyring.keyshare.QueryAuthorizedAddressResponse - (*QueryAuthorizedAddressAllRequest)(nil), // 22: fairyring.keyshare.QueryAuthorizedAddressAllRequest - (*QueryAuthorizedAddressAllResponse)(nil), // 23: fairyring.keyshare.QueryAuthorizedAddressAllResponse - (*QueryGeneralKeyShareRequest)(nil), // 24: fairyring.keyshare.QueryGeneralKeyShareRequest - (*QueryGeneralKeyShareResponse)(nil), // 25: fairyring.keyshare.QueryGeneralKeyShareResponse - (*QueryGeneralKeyShareAllRequest)(nil), // 26: fairyring.keyshare.QueryGeneralKeyShareAllRequest - (*QueryGeneralKeyShareAllResponse)(nil), // 27: fairyring.keyshare.QueryGeneralKeyShareAllResponse - (*Params)(nil), // 28: fairyring.keyshare.Params - (*Commitments)(nil), // 29: fairyring.keyshare.Commitments - (*ValidatorSet)(nil), // 30: fairyring.keyshare.ValidatorSet - (*v1beta1.PageRequest)(nil), // 31: cosmos.base.query.v1beta1.PageRequest - (*v1beta1.PageResponse)(nil), // 32: cosmos.base.query.v1beta1.PageResponse - (*KeyShare)(nil), // 33: fairyring.keyshare.KeyShare - (*AggregatedKeyShare)(nil), // 34: fairyring.keyshare.AggregatedKeyShare - (*ActivePubKey)(nil), // 35: fairyring.keyshare.ActivePubKey - (*QueuedPubKey)(nil), // 36: fairyring.keyshare.QueuedPubKey - (*AuthorizedAddress)(nil), // 37: fairyring.keyshare.AuthorizedAddress - (*GeneralKeyShare)(nil), // 38: fairyring.keyshare.GeneralKeyShare + (*QueryVerifiableRandomnessRequest)(nil), // 0: fairyring.keyshare.QueryVerifiableRandomnessRequest + (*QueryVerifiableRandomnessResponse)(nil), // 1: fairyring.keyshare.QueryVerifiableRandomnessResponse + (*QueryParamsRequest)(nil), // 2: fairyring.keyshare.QueryParamsRequest + (*QueryParamsResponse)(nil), // 3: fairyring.keyshare.QueryParamsResponse + (*QueryCommitmentsRequest)(nil), // 4: fairyring.keyshare.QueryCommitmentsRequest + (*QueryCommitmentsResponse)(nil), // 5: fairyring.keyshare.QueryCommitmentsResponse + (*QueryValidatorSetRequest)(nil), // 6: fairyring.keyshare.QueryValidatorSetRequest + (*QueryValidatorSetResponse)(nil), // 7: fairyring.keyshare.QueryValidatorSetResponse + (*QueryValidatorSetAllRequest)(nil), // 8: fairyring.keyshare.QueryValidatorSetAllRequest + (*QueryValidatorSetAllResponse)(nil), // 9: fairyring.keyshare.QueryValidatorSetAllResponse + (*QueryKeyShareRequest)(nil), // 10: fairyring.keyshare.QueryKeyShareRequest + (*QueryKeyShareResponse)(nil), // 11: fairyring.keyshare.QueryKeyShareResponse + (*QueryKeyShareAllRequest)(nil), // 12: fairyring.keyshare.QueryKeyShareAllRequest + (*QueryKeyShareAllResponse)(nil), // 13: fairyring.keyshare.QueryKeyShareAllResponse + (*QueryDecryptionKeyRequest)(nil), // 14: fairyring.keyshare.QueryDecryptionKeyRequest + (*QueryDecryptionKeyResponse)(nil), // 15: fairyring.keyshare.QueryDecryptionKeyResponse + (*QueryDecryptionKeyAllRequest)(nil), // 16: fairyring.keyshare.QueryDecryptionKeyAllRequest + (*QueryDecryptionKeyAllResponse)(nil), // 17: fairyring.keyshare.QueryDecryptionKeyAllResponse + (*QueryPubKeyRequest)(nil), // 18: fairyring.keyshare.QueryPubKeyRequest + (*QueryPubKeyResponse)(nil), // 19: fairyring.keyshare.QueryPubKeyResponse + (*QueryAuthorizedAddressRequest)(nil), // 20: fairyring.keyshare.QueryAuthorizedAddressRequest + (*QueryAuthorizedAddressResponse)(nil), // 21: fairyring.keyshare.QueryAuthorizedAddressResponse + (*QueryAuthorizedAddressAllRequest)(nil), // 22: fairyring.keyshare.QueryAuthorizedAddressAllRequest + (*QueryAuthorizedAddressAllResponse)(nil), // 23: fairyring.keyshare.QueryAuthorizedAddressAllResponse + (*QueryGeneralKeyShareRequest)(nil), // 24: fairyring.keyshare.QueryGeneralKeyShareRequest + (*QueryGeneralKeyShareResponse)(nil), // 25: fairyring.keyshare.QueryGeneralKeyShareResponse + (*QueryGeneralKeyShareAllRequest)(nil), // 26: fairyring.keyshare.QueryGeneralKeyShareAllRequest + (*QueryGeneralKeyShareAllResponse)(nil), // 27: fairyring.keyshare.QueryGeneralKeyShareAllResponse + (*Params)(nil), // 28: fairyring.keyshare.Params + (*Commitments)(nil), // 29: fairyring.keyshare.Commitments + (*ValidatorSet)(nil), // 30: fairyring.keyshare.ValidatorSet + (*v1beta1.PageRequest)(nil), // 31: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 32: cosmos.base.query.v1beta1.PageResponse + (*KeyShare)(nil), // 33: fairyring.keyshare.KeyShare + (*AggregatedKeyShare)(nil), // 34: fairyring.keyshare.AggregatedKeyShare + (*ActivePubKey)(nil), // 35: fairyring.keyshare.ActivePubKey + (*QueuedPubKey)(nil), // 36: fairyring.keyshare.QueuedPubKey + (*AuthorizedAddress)(nil), // 37: fairyring.keyshare.AuthorizedAddress + (*GeneralKeyShare)(nil), // 38: fairyring.keyshare.GeneralKeyShare } var file_fairyring_keyshare_query_proto_depIdxs = []int32{ 28, // 0: fairyring.keyshare.QueryParamsResponse.params:type_name -> fairyring.keyshare.Params @@ -14371,10 +14366,10 @@ var file_fairyring_keyshare_query_proto_depIdxs = []int32{ 31, // 8: fairyring.keyshare.QueryKeyShareAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 33, // 9: fairyring.keyshare.QueryKeyShareAllResponse.key_share:type_name -> fairyring.keyshare.KeyShare 32, // 10: fairyring.keyshare.QueryKeyShareAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 34, // 11: fairyring.keyshare.QueryAggregatedKeyShareResponse.aggregated_key_share:type_name -> fairyring.keyshare.AggregatedKeyShare - 31, // 12: fairyring.keyshare.QueryAggregatedKeyShareAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 34, // 13: fairyring.keyshare.QueryAggregatedKeyShareAllResponse.aggregated_key_share:type_name -> fairyring.keyshare.AggregatedKeyShare - 32, // 14: fairyring.keyshare.QueryAggregatedKeyShareAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 34, // 11: fairyring.keyshare.QueryDecryptionKeyResponse.decryption_key:type_name -> fairyring.keyshare.AggregatedKeyShare + 31, // 12: fairyring.keyshare.QueryDecryptionKeyAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 34, // 13: fairyring.keyshare.QueryDecryptionKeyAllResponse.decryption_keys:type_name -> fairyring.keyshare.AggregatedKeyShare + 32, // 14: fairyring.keyshare.QueryDecryptionKeyAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse 35, // 15: fairyring.keyshare.QueryPubKeyResponse.active_pub_key:type_name -> fairyring.keyshare.ActivePubKey 36, // 16: fairyring.keyshare.QueryPubKeyResponse.queued_pub_key:type_name -> fairyring.keyshare.QueuedPubKey 37, // 17: fairyring.keyshare.QueryAuthorizedAddressResponse.authorized_address:type_name -> fairyring.keyshare.AuthorizedAddress @@ -14391,8 +14386,8 @@ var file_fairyring_keyshare_query_proto_depIdxs = []int32{ 8, // 28: fairyring.keyshare.Query.ValidatorSetAll:input_type -> fairyring.keyshare.QueryValidatorSetAllRequest 10, // 29: fairyring.keyshare.Query.KeyShare:input_type -> fairyring.keyshare.QueryKeyShareRequest 12, // 30: fairyring.keyshare.Query.KeyShareAll:input_type -> fairyring.keyshare.QueryKeyShareAllRequest - 14, // 31: fairyring.keyshare.Query.AggregatedKeyShare:input_type -> fairyring.keyshare.QueryAggregatedKeyShareRequest - 16, // 32: fairyring.keyshare.Query.AggregatedKeyShareAll:input_type -> fairyring.keyshare.QueryAggregatedKeyShareAllRequest + 14, // 31: fairyring.keyshare.Query.DecryptionKey:input_type -> fairyring.keyshare.QueryDecryptionKeyRequest + 16, // 32: fairyring.keyshare.Query.DecryptionKeyAll:input_type -> fairyring.keyshare.QueryDecryptionKeyAllRequest 18, // 33: fairyring.keyshare.Query.PubKey:input_type -> fairyring.keyshare.QueryPubKeyRequest 20, // 34: fairyring.keyshare.Query.AuthorizedAddress:input_type -> fairyring.keyshare.QueryAuthorizedAddressRequest 22, // 35: fairyring.keyshare.Query.AuthorizedAddressAll:input_type -> fairyring.keyshare.QueryAuthorizedAddressAllRequest @@ -14405,8 +14400,8 @@ var file_fairyring_keyshare_query_proto_depIdxs = []int32{ 9, // 42: fairyring.keyshare.Query.ValidatorSetAll:output_type -> fairyring.keyshare.QueryValidatorSetAllResponse 11, // 43: fairyring.keyshare.Query.KeyShare:output_type -> fairyring.keyshare.QueryKeyShareResponse 13, // 44: fairyring.keyshare.Query.KeyShareAll:output_type -> fairyring.keyshare.QueryKeyShareAllResponse - 15, // 45: fairyring.keyshare.Query.AggregatedKeyShare:output_type -> fairyring.keyshare.QueryAggregatedKeyShareResponse - 17, // 46: fairyring.keyshare.Query.AggregatedKeyShareAll:output_type -> fairyring.keyshare.QueryAggregatedKeyShareAllResponse + 15, // 45: fairyring.keyshare.Query.DecryptionKey:output_type -> fairyring.keyshare.QueryDecryptionKeyResponse + 17, // 46: fairyring.keyshare.Query.DecryptionKeyAll:output_type -> fairyring.keyshare.QueryDecryptionKeyAllResponse 19, // 47: fairyring.keyshare.Query.PubKey:output_type -> fairyring.keyshare.QueryPubKeyResponse 21, // 48: fairyring.keyshare.Query.AuthorizedAddress:output_type -> fairyring.keyshare.QueryAuthorizedAddressResponse 23, // 49: fairyring.keyshare.Query.AuthorizedAddressAll:output_type -> fairyring.keyshare.QueryAuthorizedAddressAllResponse @@ -14602,7 +14597,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAggregatedKeyShareRequest); i { + switch v := v.(*QueryDecryptionKeyRequest); i { case 0: return &v.state case 1: @@ -14614,7 +14609,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAggregatedKeyShareResponse); i { + switch v := v.(*QueryDecryptionKeyResponse); i { case 0: return &v.state case 1: @@ -14626,7 +14621,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAggregatedKeyShareAllRequest); i { + switch v := v.(*QueryDecryptionKeyAllRequest); i { case 0: return &v.state case 1: @@ -14638,7 +14633,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryAggregatedKeyShareAllResponse); i { + switch v := v.(*QueryDecryptionKeyAllResponse); i { case 0: return &v.state case 1: diff --git a/api/fairyring/keyshare/query_grpc.pb.go b/api/fairyring/keyshare/query_grpc.pb.go index 868ebe1e..22f58680 100644 --- a/api/fairyring/keyshare/query_grpc.pb.go +++ b/api/fairyring/keyshare/query_grpc.pb.go @@ -19,20 +19,20 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Query_Params_FullMethodName = "/fairyring.keyshare.Query/Params" - Query_Commitments_FullMethodName = "/fairyring.keyshare.Query/Commitments" - Query_ValidatorSet_FullMethodName = "/fairyring.keyshare.Query/ValidatorSet" - Query_ValidatorSetAll_FullMethodName = "/fairyring.keyshare.Query/ValidatorSetAll" - Query_KeyShare_FullMethodName = "/fairyring.keyshare.Query/KeyShare" - Query_KeyShareAll_FullMethodName = "/fairyring.keyshare.Query/KeyShareAll" - Query_AggregatedKeyShare_FullMethodName = "/fairyring.keyshare.Query/AggregatedKeyShare" - Query_AggregatedKeyShareAll_FullMethodName = "/fairyring.keyshare.Query/AggregatedKeyShareAll" - Query_PubKey_FullMethodName = "/fairyring.keyshare.Query/PubKey" - Query_AuthorizedAddress_FullMethodName = "/fairyring.keyshare.Query/AuthorizedAddress" - Query_AuthorizedAddressAll_FullMethodName = "/fairyring.keyshare.Query/AuthorizedAddressAll" - Query_GeneralKeyShare_FullMethodName = "/fairyring.keyshare.Query/GeneralKeyShare" - Query_GeneralKeyShareAll_FullMethodName = "/fairyring.keyshare.Query/GeneralKeyShareAll" - Query_VerifiableRandomness_FullMethodName = "/fairyring.keyshare.Query/VerifiableRandomness" + Query_Params_FullMethodName = "/fairyring.keyshare.Query/Params" + Query_Commitments_FullMethodName = "/fairyring.keyshare.Query/Commitments" + Query_ValidatorSet_FullMethodName = "/fairyring.keyshare.Query/ValidatorSet" + Query_ValidatorSetAll_FullMethodName = "/fairyring.keyshare.Query/ValidatorSetAll" + Query_KeyShare_FullMethodName = "/fairyring.keyshare.Query/KeyShare" + Query_KeyShareAll_FullMethodName = "/fairyring.keyshare.Query/KeyShareAll" + Query_DecryptionKey_FullMethodName = "/fairyring.keyshare.Query/DecryptionKey" + Query_DecryptionKeyAll_FullMethodName = "/fairyring.keyshare.Query/DecryptionKeyAll" + Query_PubKey_FullMethodName = "/fairyring.keyshare.Query/PubKey" + Query_AuthorizedAddress_FullMethodName = "/fairyring.keyshare.Query/AuthorizedAddress" + Query_AuthorizedAddressAll_FullMethodName = "/fairyring.keyshare.Query/AuthorizedAddressAll" + Query_GeneralKeyShare_FullMethodName = "/fairyring.keyshare.Query/GeneralKeyShare" + Query_GeneralKeyShareAll_FullMethodName = "/fairyring.keyshare.Query/GeneralKeyShareAll" + Query_VerifiableRandomness_FullMethodName = "/fairyring.keyshare.Query/VerifiableRandomness" ) // QueryClient is the client API for Query service. @@ -51,10 +51,10 @@ type QueryClient interface { KeyShare(ctx context.Context, in *QueryKeyShareRequest, opts ...grpc.CallOption) (*QueryKeyShareResponse, error) // Queries a list of KeyShare items. KeyShareAll(ctx context.Context, in *QueryKeyShareAllRequest, opts ...grpc.CallOption) (*QueryKeyShareAllResponse, error) - // AggregatedKeyShare a AggregatedKeyShare item by height. - AggregatedKeyShare(ctx context.Context, in *QueryAggregatedKeyShareRequest, opts ...grpc.CallOption) (*QueryAggregatedKeyShareResponse, error) - // AggregatedKeyShareAll Queries a list of AggregatedKeyShare items. - AggregatedKeyShareAll(ctx context.Context, in *QueryAggregatedKeyShareAllRequest, opts ...grpc.CallOption) (*QueryAggregatedKeyShareAllResponse, error) + // DecryptionKey queries a DecryptionKey item by height. + DecryptionKey(ctx context.Context, in *QueryDecryptionKeyRequest, opts ...grpc.CallOption) (*QueryDecryptionKeyResponse, error) + // DecryptionKeyAll Queries a list of DecryptionKey items. + DecryptionKeyAll(ctx context.Context, in *QueryDecryptionKeyAllRequest, opts ...grpc.CallOption) (*QueryDecryptionKeyAllResponse, error) // Queries the public keys PubKey(ctx context.Context, in *QueryPubKeyRequest, opts ...grpc.CallOption) (*QueryPubKeyResponse, error) // Queries a AuthorizedAddress item by target. @@ -131,18 +131,18 @@ func (c *queryClient) KeyShareAll(ctx context.Context, in *QueryKeyShareAllReque return out, nil } -func (c *queryClient) AggregatedKeyShare(ctx context.Context, in *QueryAggregatedKeyShareRequest, opts ...grpc.CallOption) (*QueryAggregatedKeyShareResponse, error) { - out := new(QueryAggregatedKeyShareResponse) - err := c.cc.Invoke(ctx, Query_AggregatedKeyShare_FullMethodName, in, out, opts...) +func (c *queryClient) DecryptionKey(ctx context.Context, in *QueryDecryptionKeyRequest, opts ...grpc.CallOption) (*QueryDecryptionKeyResponse, error) { + out := new(QueryDecryptionKeyResponse) + err := c.cc.Invoke(ctx, Query_DecryptionKey_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) AggregatedKeyShareAll(ctx context.Context, in *QueryAggregatedKeyShareAllRequest, opts ...grpc.CallOption) (*QueryAggregatedKeyShareAllResponse, error) { - out := new(QueryAggregatedKeyShareAllResponse) - err := c.cc.Invoke(ctx, Query_AggregatedKeyShareAll_FullMethodName, in, out, opts...) +func (c *queryClient) DecryptionKeyAll(ctx context.Context, in *QueryDecryptionKeyAllRequest, opts ...grpc.CallOption) (*QueryDecryptionKeyAllResponse, error) { + out := new(QueryDecryptionKeyAllResponse) + err := c.cc.Invoke(ctx, Query_DecryptionKeyAll_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -219,10 +219,10 @@ type QueryServer interface { KeyShare(context.Context, *QueryKeyShareRequest) (*QueryKeyShareResponse, error) // Queries a list of KeyShare items. KeyShareAll(context.Context, *QueryKeyShareAllRequest) (*QueryKeyShareAllResponse, error) - // AggregatedKeyShare a AggregatedKeyShare item by height. - AggregatedKeyShare(context.Context, *QueryAggregatedKeyShareRequest) (*QueryAggregatedKeyShareResponse, error) - // AggregatedKeyShareAll Queries a list of AggregatedKeyShare items. - AggregatedKeyShareAll(context.Context, *QueryAggregatedKeyShareAllRequest) (*QueryAggregatedKeyShareAllResponse, error) + // DecryptionKey queries a DecryptionKey item by height. + DecryptionKey(context.Context, *QueryDecryptionKeyRequest) (*QueryDecryptionKeyResponse, error) + // DecryptionKeyAll Queries a list of DecryptionKey items. + DecryptionKeyAll(context.Context, *QueryDecryptionKeyAllRequest) (*QueryDecryptionKeyAllResponse, error) // Queries the public keys PubKey(context.Context, *QueryPubKeyRequest) (*QueryPubKeyResponse, error) // Queries a AuthorizedAddress item by target. @@ -260,11 +260,11 @@ func (UnimplementedQueryServer) KeyShare(context.Context, *QueryKeyShareRequest) func (UnimplementedQueryServer) KeyShareAll(context.Context, *QueryKeyShareAllRequest) (*QueryKeyShareAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KeyShareAll not implemented") } -func (UnimplementedQueryServer) AggregatedKeyShare(context.Context, *QueryAggregatedKeyShareRequest) (*QueryAggregatedKeyShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AggregatedKeyShare not implemented") +func (UnimplementedQueryServer) DecryptionKey(context.Context, *QueryDecryptionKeyRequest) (*QueryDecryptionKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DecryptionKey not implemented") } -func (UnimplementedQueryServer) AggregatedKeyShareAll(context.Context, *QueryAggregatedKeyShareAllRequest) (*QueryAggregatedKeyShareAllResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AggregatedKeyShareAll not implemented") +func (UnimplementedQueryServer) DecryptionKeyAll(context.Context, *QueryDecryptionKeyAllRequest) (*QueryDecryptionKeyAllResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DecryptionKeyAll not implemented") } func (UnimplementedQueryServer) PubKey(context.Context, *QueryPubKeyRequest) (*QueryPubKeyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PubKey not implemented") @@ -405,38 +405,38 @@ func _Query_KeyShareAll_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } -func _Query_AggregatedKeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAggregatedKeyShareRequest) +func _Query_DecryptionKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryDecryptionKeyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).AggregatedKeyShare(ctx, in) + return srv.(QueryServer).DecryptionKey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_AggregatedKeyShare_FullMethodName, + FullMethod: Query_DecryptionKey_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AggregatedKeyShare(ctx, req.(*QueryAggregatedKeyShareRequest)) + return srv.(QueryServer).DecryptionKey(ctx, req.(*QueryDecryptionKeyRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_AggregatedKeyShareAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAggregatedKeyShareAllRequest) +func _Query_DecryptionKeyAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryDecryptionKeyAllRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).AggregatedKeyShareAll(ctx, in) + return srv.(QueryServer).DecryptionKeyAll(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_AggregatedKeyShareAll_FullMethodName, + FullMethod: Query_DecryptionKeyAll_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AggregatedKeyShareAll(ctx, req.(*QueryAggregatedKeyShareAllRequest)) + return srv.(QueryServer).DecryptionKeyAll(ctx, req.(*QueryDecryptionKeyAllRequest)) } return interceptor(ctx, in, info, handler) } @@ -581,12 +581,12 @@ var Query_ServiceDesc = grpc.ServiceDesc{ Handler: _Query_KeyShareAll_Handler, }, { - MethodName: "AggregatedKeyShare", - Handler: _Query_AggregatedKeyShare_Handler, + MethodName: "DecryptionKey", + Handler: _Query_DecryptionKey_Handler, }, { - MethodName: "AggregatedKeyShareAll", - Handler: _Query_AggregatedKeyShareAll_Handler, + MethodName: "DecryptionKeyAll", + Handler: _Query_DecryptionKeyAll_Handler, }, { MethodName: "PubKey", diff --git a/api/fairyring/keyshare/requested_keyshare.pulsar.go b/api/fairyring/keyshare/requested_decryption_key.pulsar.go similarity index 72% rename from api/fairyring/keyshare/requested_keyshare.pulsar.go rename to api/fairyring/keyshare/requested_decryption_key.pulsar.go index 0e5de18a..d29ac919 100644 --- a/api/fairyring/keyshare/requested_keyshare.pulsar.go +++ b/api/fairyring/keyshare/requested_decryption_key.pulsar.go @@ -2,7 +2,7 @@ package keyshare import ( - common "github.com/Fairblock/fairyring/api/fairyring/common" + common "cosmossdk.io/api/fairyring/common" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -14,40 +14,40 @@ import ( ) var ( - md_KeyShareRequest protoreflect.MessageDescriptor - fd_KeyShareRequest_identity protoreflect.FieldDescriptor - fd_KeyShareRequest_pubkey protoreflect.FieldDescriptor - fd_KeyShareRequest_ibc_info protoreflect.FieldDescriptor - fd_KeyShareRequest_counterparty protoreflect.FieldDescriptor - fd_KeyShareRequest_aggr_keyshare protoreflect.FieldDescriptor - fd_KeyShareRequest_proposal_id protoreflect.FieldDescriptor - fd_KeyShareRequest_request_id protoreflect.FieldDescriptor - fd_KeyShareRequest_sent protoreflect.FieldDescriptor + md_DecryptionKeyRequest protoreflect.MessageDescriptor + fd_DecryptionKeyRequest_identity protoreflect.FieldDescriptor + fd_DecryptionKeyRequest_pubkey protoreflect.FieldDescriptor + fd_DecryptionKeyRequest_ibc_info protoreflect.FieldDescriptor + fd_DecryptionKeyRequest_counterparty protoreflect.FieldDescriptor + fd_DecryptionKeyRequest_decryption_key protoreflect.FieldDescriptor + fd_DecryptionKeyRequest_proposal_id protoreflect.FieldDescriptor + fd_DecryptionKeyRequest_request_id protoreflect.FieldDescriptor + fd_DecryptionKeyRequest_sent protoreflect.FieldDescriptor ) func init() { - file_fairyring_keyshare_requested_keyshare_proto_init() - md_KeyShareRequest = File_fairyring_keyshare_requested_keyshare_proto.Messages().ByName("KeyShareRequest") - fd_KeyShareRequest_identity = md_KeyShareRequest.Fields().ByName("identity") - fd_KeyShareRequest_pubkey = md_KeyShareRequest.Fields().ByName("pubkey") - fd_KeyShareRequest_ibc_info = md_KeyShareRequest.Fields().ByName("ibc_info") - fd_KeyShareRequest_counterparty = md_KeyShareRequest.Fields().ByName("counterparty") - fd_KeyShareRequest_aggr_keyshare = md_KeyShareRequest.Fields().ByName("aggr_keyshare") - fd_KeyShareRequest_proposal_id = md_KeyShareRequest.Fields().ByName("proposal_id") - fd_KeyShareRequest_request_id = md_KeyShareRequest.Fields().ByName("request_id") - fd_KeyShareRequest_sent = md_KeyShareRequest.Fields().ByName("sent") + file_fairyring_keyshare_requested_decryption_key_proto_init() + md_DecryptionKeyRequest = File_fairyring_keyshare_requested_decryption_key_proto.Messages().ByName("DecryptionKeyRequest") + fd_DecryptionKeyRequest_identity = md_DecryptionKeyRequest.Fields().ByName("identity") + fd_DecryptionKeyRequest_pubkey = md_DecryptionKeyRequest.Fields().ByName("pubkey") + fd_DecryptionKeyRequest_ibc_info = md_DecryptionKeyRequest.Fields().ByName("ibc_info") + fd_DecryptionKeyRequest_counterparty = md_DecryptionKeyRequest.Fields().ByName("counterparty") + fd_DecryptionKeyRequest_decryption_key = md_DecryptionKeyRequest.Fields().ByName("decryption_key") + fd_DecryptionKeyRequest_proposal_id = md_DecryptionKeyRequest.Fields().ByName("proposal_id") + fd_DecryptionKeyRequest_request_id = md_DecryptionKeyRequest.Fields().ByName("request_id") + fd_DecryptionKeyRequest_sent = md_DecryptionKeyRequest.Fields().ByName("sent") } -var _ protoreflect.Message = (*fastReflection_KeyShareRequest)(nil) +var _ protoreflect.Message = (*fastReflection_DecryptionKeyRequest)(nil) -type fastReflection_KeyShareRequest KeyShareRequest +type fastReflection_DecryptionKeyRequest DecryptionKeyRequest -func (x *KeyShareRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_KeyShareRequest)(x) +func (x *DecryptionKeyRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_DecryptionKeyRequest)(x) } -func (x *KeyShareRequest) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_keyshare_requested_keyshare_proto_msgTypes[0] +func (x *DecryptionKeyRequest) slowProtoReflect() protoreflect.Message { + mi := &file_fairyring_keyshare_requested_decryption_key_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -58,43 +58,43 @@ func (x *KeyShareRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_KeyShareRequest_messageType fastReflection_KeyShareRequest_messageType -var _ protoreflect.MessageType = fastReflection_KeyShareRequest_messageType{} +var _fastReflection_DecryptionKeyRequest_messageType fastReflection_DecryptionKeyRequest_messageType +var _ protoreflect.MessageType = fastReflection_DecryptionKeyRequest_messageType{} -type fastReflection_KeyShareRequest_messageType struct{} +type fastReflection_DecryptionKeyRequest_messageType struct{} -func (x fastReflection_KeyShareRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_KeyShareRequest)(nil) +func (x fastReflection_DecryptionKeyRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_DecryptionKeyRequest)(nil) } -func (x fastReflection_KeyShareRequest_messageType) New() protoreflect.Message { - return new(fastReflection_KeyShareRequest) +func (x fastReflection_DecryptionKeyRequest_messageType) New() protoreflect.Message { + return new(fastReflection_DecryptionKeyRequest) } -func (x fastReflection_KeyShareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_KeyShareRequest +func (x fastReflection_DecryptionKeyRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_DecryptionKeyRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_KeyShareRequest) Descriptor() protoreflect.MessageDescriptor { - return md_KeyShareRequest +func (x *fastReflection_DecryptionKeyRequest) Descriptor() protoreflect.MessageDescriptor { + return md_DecryptionKeyRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_KeyShareRequest) Type() protoreflect.MessageType { - return _fastReflection_KeyShareRequest_messageType +func (x *fastReflection_DecryptionKeyRequest) Type() protoreflect.MessageType { + return _fastReflection_DecryptionKeyRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_KeyShareRequest) New() protoreflect.Message { - return new(fastReflection_KeyShareRequest) +func (x *fastReflection_DecryptionKeyRequest) New() protoreflect.Message { + return new(fastReflection_DecryptionKeyRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_KeyShareRequest) Interface() protoreflect.ProtoMessage { - return (*KeyShareRequest)(x) +func (x *fastReflection_DecryptionKeyRequest) Interface() protoreflect.ProtoMessage { + return (*DecryptionKeyRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -102,52 +102,52 @@ func (x *fastReflection_KeyShareRequest) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_KeyShareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_DecryptionKeyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Identity != "" { value := protoreflect.ValueOfString(x.Identity) - if !f(fd_KeyShareRequest_identity, value) { + if !f(fd_DecryptionKeyRequest_identity, value) { return } } if x.Pubkey != "" { value := protoreflect.ValueOfString(x.Pubkey) - if !f(fd_KeyShareRequest_pubkey, value) { + if !f(fd_DecryptionKeyRequest_pubkey, value) { return } } if x.IbcInfo != nil { value := protoreflect.ValueOfMessage(x.IbcInfo.ProtoReflect()) - if !f(fd_KeyShareRequest_ibc_info, value) { + if !f(fd_DecryptionKeyRequest_ibc_info, value) { return } } if x.Counterparty != nil { value := protoreflect.ValueOfMessage(x.Counterparty.ProtoReflect()) - if !f(fd_KeyShareRequest_counterparty, value) { + if !f(fd_DecryptionKeyRequest_counterparty, value) { return } } - if x.AggrKeyshare != "" { - value := protoreflect.ValueOfString(x.AggrKeyshare) - if !f(fd_KeyShareRequest_aggr_keyshare, value) { + if x.DecryptionKey != "" { + value := protoreflect.ValueOfString(x.DecryptionKey) + if !f(fd_DecryptionKeyRequest_decryption_key, value) { return } } if x.ProposalId != "" { value := protoreflect.ValueOfString(x.ProposalId) - if !f(fd_KeyShareRequest_proposal_id, value) { + if !f(fd_DecryptionKeyRequest_proposal_id, value) { return } } if x.RequestId != "" { value := protoreflect.ValueOfString(x.RequestId) - if !f(fd_KeyShareRequest_request_id, value) { + if !f(fd_DecryptionKeyRequest_request_id, value) { return } } if x.Sent != false { value := protoreflect.ValueOfBool(x.Sent) - if !f(fd_KeyShareRequest_sent, value) { + if !f(fd_DecryptionKeyRequest_sent, value) { return } } @@ -164,29 +164,29 @@ func (x *fastReflection_KeyShareRequest) Range(f func(protoreflect.FieldDescript // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_KeyShareRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_DecryptionKeyRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.KeyShareRequest.identity": + case "fairyring.keyshare.DecryptionKeyRequest.identity": return x.Identity != "" - case "fairyring.keyshare.KeyShareRequest.pubkey": + case "fairyring.keyshare.DecryptionKeyRequest.pubkey": return x.Pubkey != "" - case "fairyring.keyshare.KeyShareRequest.ibc_info": + case "fairyring.keyshare.DecryptionKeyRequest.ibc_info": return x.IbcInfo != nil - case "fairyring.keyshare.KeyShareRequest.counterparty": + case "fairyring.keyshare.DecryptionKeyRequest.counterparty": return x.Counterparty != nil - case "fairyring.keyshare.KeyShareRequest.aggr_keyshare": - return x.AggrKeyshare != "" - case "fairyring.keyshare.KeyShareRequest.proposal_id": + case "fairyring.keyshare.DecryptionKeyRequest.decryption_key": + return x.DecryptionKey != "" + case "fairyring.keyshare.DecryptionKeyRequest.proposal_id": return x.ProposalId != "" - case "fairyring.keyshare.KeyShareRequest.request_id": + case "fairyring.keyshare.DecryptionKeyRequest.request_id": return x.RequestId != "" - case "fairyring.keyshare.KeyShareRequest.sent": + case "fairyring.keyshare.DecryptionKeyRequest.sent": return x.Sent != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.KeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.KeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKeyRequest does not contain field %s", fd.FullName())) } } @@ -196,29 +196,29 @@ func (x *fastReflection_KeyShareRequest) Has(fd protoreflect.FieldDescriptor) bo // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_KeyShareRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_DecryptionKeyRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.KeyShareRequest.identity": + case "fairyring.keyshare.DecryptionKeyRequest.identity": x.Identity = "" - case "fairyring.keyshare.KeyShareRequest.pubkey": + case "fairyring.keyshare.DecryptionKeyRequest.pubkey": x.Pubkey = "" - case "fairyring.keyshare.KeyShareRequest.ibc_info": + case "fairyring.keyshare.DecryptionKeyRequest.ibc_info": x.IbcInfo = nil - case "fairyring.keyshare.KeyShareRequest.counterparty": + case "fairyring.keyshare.DecryptionKeyRequest.counterparty": x.Counterparty = nil - case "fairyring.keyshare.KeyShareRequest.aggr_keyshare": - x.AggrKeyshare = "" - case "fairyring.keyshare.KeyShareRequest.proposal_id": + case "fairyring.keyshare.DecryptionKeyRequest.decryption_key": + x.DecryptionKey = "" + case "fairyring.keyshare.DecryptionKeyRequest.proposal_id": x.ProposalId = "" - case "fairyring.keyshare.KeyShareRequest.request_id": + case "fairyring.keyshare.DecryptionKeyRequest.request_id": x.RequestId = "" - case "fairyring.keyshare.KeyShareRequest.sent": + case "fairyring.keyshare.DecryptionKeyRequest.sent": x.Sent = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.KeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.KeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKeyRequest does not contain field %s", fd.FullName())) } } @@ -228,37 +228,37 @@ func (x *fastReflection_KeyShareRequest) Clear(fd protoreflect.FieldDescriptor) // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_KeyShareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_DecryptionKeyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.KeyShareRequest.identity": + case "fairyring.keyshare.DecryptionKeyRequest.identity": value := x.Identity return protoreflect.ValueOfString(value) - case "fairyring.keyshare.KeyShareRequest.pubkey": + case "fairyring.keyshare.DecryptionKeyRequest.pubkey": value := x.Pubkey return protoreflect.ValueOfString(value) - case "fairyring.keyshare.KeyShareRequest.ibc_info": + case "fairyring.keyshare.DecryptionKeyRequest.ibc_info": value := x.IbcInfo return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.keyshare.KeyShareRequest.counterparty": + case "fairyring.keyshare.DecryptionKeyRequest.counterparty": value := x.Counterparty return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.keyshare.KeyShareRequest.aggr_keyshare": - value := x.AggrKeyshare + case "fairyring.keyshare.DecryptionKeyRequest.decryption_key": + value := x.DecryptionKey return protoreflect.ValueOfString(value) - case "fairyring.keyshare.KeyShareRequest.proposal_id": + case "fairyring.keyshare.DecryptionKeyRequest.proposal_id": value := x.ProposalId return protoreflect.ValueOfString(value) - case "fairyring.keyshare.KeyShareRequest.request_id": + case "fairyring.keyshare.DecryptionKeyRequest.request_id": value := x.RequestId return protoreflect.ValueOfString(value) - case "fairyring.keyshare.KeyShareRequest.sent": + case "fairyring.keyshare.DecryptionKeyRequest.sent": value := x.Sent return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.KeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.KeyShareRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKeyRequest does not contain field %s", descriptor.FullName())) } } @@ -272,29 +272,29 @@ func (x *fastReflection_KeyShareRequest) Get(descriptor protoreflect.FieldDescri // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_KeyShareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_DecryptionKeyRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.KeyShareRequest.identity": + case "fairyring.keyshare.DecryptionKeyRequest.identity": x.Identity = value.Interface().(string) - case "fairyring.keyshare.KeyShareRequest.pubkey": + case "fairyring.keyshare.DecryptionKeyRequest.pubkey": x.Pubkey = value.Interface().(string) - case "fairyring.keyshare.KeyShareRequest.ibc_info": + case "fairyring.keyshare.DecryptionKeyRequest.ibc_info": x.IbcInfo = value.Message().Interface().(*IBCInfo) - case "fairyring.keyshare.KeyShareRequest.counterparty": + case "fairyring.keyshare.DecryptionKeyRequest.counterparty": x.Counterparty = value.Message().Interface().(*CounterPartyIBCInfo) - case "fairyring.keyshare.KeyShareRequest.aggr_keyshare": - x.AggrKeyshare = value.Interface().(string) - case "fairyring.keyshare.KeyShareRequest.proposal_id": + case "fairyring.keyshare.DecryptionKeyRequest.decryption_key": + x.DecryptionKey = value.Interface().(string) + case "fairyring.keyshare.DecryptionKeyRequest.proposal_id": x.ProposalId = value.Interface().(string) - case "fairyring.keyshare.KeyShareRequest.request_id": + case "fairyring.keyshare.DecryptionKeyRequest.request_id": x.RequestId = value.Interface().(string) - case "fairyring.keyshare.KeyShareRequest.sent": + case "fairyring.keyshare.DecryptionKeyRequest.sent": x.Sent = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.KeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.KeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKeyRequest does not contain field %s", fd.FullName())) } } @@ -308,76 +308,76 @@ func (x *fastReflection_KeyShareRequest) Set(fd protoreflect.FieldDescriptor, va // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_KeyShareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_DecryptionKeyRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.KeyShareRequest.ibc_info": + case "fairyring.keyshare.DecryptionKeyRequest.ibc_info": if x.IbcInfo == nil { x.IbcInfo = new(IBCInfo) } return protoreflect.ValueOfMessage(x.IbcInfo.ProtoReflect()) - case "fairyring.keyshare.KeyShareRequest.counterparty": + case "fairyring.keyshare.DecryptionKeyRequest.counterparty": if x.Counterparty == nil { x.Counterparty = new(CounterPartyIBCInfo) } return protoreflect.ValueOfMessage(x.Counterparty.ProtoReflect()) - case "fairyring.keyshare.KeyShareRequest.identity": - panic(fmt.Errorf("field identity of message fairyring.keyshare.KeyShareRequest is not mutable")) - case "fairyring.keyshare.KeyShareRequest.pubkey": - panic(fmt.Errorf("field pubkey of message fairyring.keyshare.KeyShareRequest is not mutable")) - case "fairyring.keyshare.KeyShareRequest.aggr_keyshare": - panic(fmt.Errorf("field aggr_keyshare of message fairyring.keyshare.KeyShareRequest is not mutable")) - case "fairyring.keyshare.KeyShareRequest.proposal_id": - panic(fmt.Errorf("field proposal_id of message fairyring.keyshare.KeyShareRequest is not mutable")) - case "fairyring.keyshare.KeyShareRequest.request_id": - panic(fmt.Errorf("field request_id of message fairyring.keyshare.KeyShareRequest is not mutable")) - case "fairyring.keyshare.KeyShareRequest.sent": - panic(fmt.Errorf("field sent of message fairyring.keyshare.KeyShareRequest is not mutable")) + case "fairyring.keyshare.DecryptionKeyRequest.identity": + panic(fmt.Errorf("field identity of message fairyring.keyshare.DecryptionKeyRequest is not mutable")) + case "fairyring.keyshare.DecryptionKeyRequest.pubkey": + panic(fmt.Errorf("field pubkey of message fairyring.keyshare.DecryptionKeyRequest is not mutable")) + case "fairyring.keyshare.DecryptionKeyRequest.decryption_key": + panic(fmt.Errorf("field decryption_key of message fairyring.keyshare.DecryptionKeyRequest is not mutable")) + case "fairyring.keyshare.DecryptionKeyRequest.proposal_id": + panic(fmt.Errorf("field proposal_id of message fairyring.keyshare.DecryptionKeyRequest is not mutable")) + case "fairyring.keyshare.DecryptionKeyRequest.request_id": + panic(fmt.Errorf("field request_id of message fairyring.keyshare.DecryptionKeyRequest is not mutable")) + case "fairyring.keyshare.DecryptionKeyRequest.sent": + panic(fmt.Errorf("field sent of message fairyring.keyshare.DecryptionKeyRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.KeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.KeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKeyRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_KeyShareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_DecryptionKeyRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.KeyShareRequest.identity": + case "fairyring.keyshare.DecryptionKeyRequest.identity": return protoreflect.ValueOfString("") - case "fairyring.keyshare.KeyShareRequest.pubkey": + case "fairyring.keyshare.DecryptionKeyRequest.pubkey": return protoreflect.ValueOfString("") - case "fairyring.keyshare.KeyShareRequest.ibc_info": + case "fairyring.keyshare.DecryptionKeyRequest.ibc_info": m := new(IBCInfo) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.keyshare.KeyShareRequest.counterparty": + case "fairyring.keyshare.DecryptionKeyRequest.counterparty": m := new(CounterPartyIBCInfo) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.keyshare.KeyShareRequest.aggr_keyshare": + case "fairyring.keyshare.DecryptionKeyRequest.decryption_key": return protoreflect.ValueOfString("") - case "fairyring.keyshare.KeyShareRequest.proposal_id": + case "fairyring.keyshare.DecryptionKeyRequest.proposal_id": return protoreflect.ValueOfString("") - case "fairyring.keyshare.KeyShareRequest.request_id": + case "fairyring.keyshare.DecryptionKeyRequest.request_id": return protoreflect.ValueOfString("") - case "fairyring.keyshare.KeyShareRequest.sent": + case "fairyring.keyshare.DecryptionKeyRequest.sent": return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.KeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.KeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKeyRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_KeyShareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_DecryptionKeyRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.KeyShareRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.DecryptionKeyRequest", d.FullName())) } panic("unreachable") } @@ -385,7 +385,7 @@ func (x *fastReflection_KeyShareRequest) WhichOneof(d protoreflect.OneofDescript // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_KeyShareRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_DecryptionKeyRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -396,7 +396,7 @@ func (x *fastReflection_KeyShareRequest) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_KeyShareRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_DecryptionKeyRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -408,7 +408,7 @@ func (x *fastReflection_KeyShareRequest) SetUnknown(fields protoreflect.RawField // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_KeyShareRequest) IsValid() bool { +func (x *fastReflection_DecryptionKeyRequest) IsValid() bool { return x != nil } @@ -418,9 +418,9 @@ func (x *fastReflection_KeyShareRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_KeyShareRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_DecryptionKeyRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*KeyShareRequest) + x := input.Message.Interface().(*DecryptionKeyRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -448,7 +448,7 @@ func (x *fastReflection_KeyShareRequest) ProtoMethods() *protoiface.Methods { l = options.Size(x.Counterparty) n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.AggrKeyshare) + l = len(x.DecryptionKey) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -473,7 +473,7 @@ func (x *fastReflection_KeyShareRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*KeyShareRequest) + x := input.Message.Interface().(*DecryptionKeyRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -516,10 +516,10 @@ func (x *fastReflection_KeyShareRequest) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x32 } - if len(x.AggrKeyshare) > 0 { - i -= len(x.AggrKeyshare) - copy(dAtA[i:], x.AggrKeyshare) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AggrKeyshare))) + if len(x.DecryptionKey) > 0 { + i -= len(x.DecryptionKey) + copy(dAtA[i:], x.DecryptionKey) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DecryptionKey))) i-- dAtA[i] = 0x2a } @@ -576,7 +576,7 @@ func (x *fastReflection_KeyShareRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*KeyShareRequest) + x := input.Message.Interface().(*DecryptionKeyRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -608,10 +608,10 @@ func (x *fastReflection_KeyShareRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: KeyShareRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DecryptionKeyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: KeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DecryptionKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -752,7 +752,7 @@ func (x *fastReflection_KeyShareRequest) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 5: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AggrKeyshare", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DecryptionKey", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -780,7 +780,7 @@ func (x *fastReflection_KeyShareRequest) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.AggrKeyshare = string(dAtA[iNdEx:postIndex]) + x.DecryptionKey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 2 { @@ -910,8 +910,8 @@ var ( ) func init() { - file_fairyring_keyshare_requested_keyshare_proto_init() - md_IBCInfo = File_fairyring_keyshare_requested_keyshare_proto.Messages().ByName("IBCInfo") + file_fairyring_keyshare_requested_decryption_key_proto_init() + md_IBCInfo = File_fairyring_keyshare_requested_decryption_key_proto.Messages().ByName("IBCInfo") fd_IBCInfo_client_id = md_IBCInfo.Fields().ByName("client_id") fd_IBCInfo_connection_id = md_IBCInfo.Fields().ByName("connection_id") fd_IBCInfo_channel_id = md_IBCInfo.Fields().ByName("channel_id") @@ -927,7 +927,7 @@ func (x *IBCInfo) ProtoReflect() protoreflect.Message { } func (x *IBCInfo) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_keyshare_requested_keyshare_proto_msgTypes[1] + mi := &file_fairyring_keyshare_requested_decryption_key_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1522,8 +1522,8 @@ var ( ) func init() { - file_fairyring_keyshare_requested_keyshare_proto_init() - md_CounterPartyIBCInfo = File_fairyring_keyshare_requested_keyshare_proto.Messages().ByName("CounterPartyIBCInfo") + file_fairyring_keyshare_requested_decryption_key_proto_init() + md_CounterPartyIBCInfo = File_fairyring_keyshare_requested_decryption_key_proto.Messages().ByName("CounterPartyIBCInfo") fd_CounterPartyIBCInfo_client_id = md_CounterPartyIBCInfo.Fields().ByName("client_id") fd_CounterPartyIBCInfo_connection_id = md_CounterPartyIBCInfo.Fields().ByName("connection_id") fd_CounterPartyIBCInfo_channel_id = md_CounterPartyIBCInfo.Fields().ByName("channel_id") @@ -1539,7 +1539,7 @@ func (x *CounterPartyIBCInfo) ProtoReflect() protoreflect.Message { } func (x *CounterPartyIBCInfo) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_keyshare_requested_keyshare_proto_msgTypes[2] + mi := &file_fairyring_keyshare_requested_decryption_key_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2125,90 +2125,90 @@ func (x *fastReflection_CounterPartyIBCInfo) ProtoMethods() *protoiface.Methods } } -var _ protoreflect.List = (*_PrivateKeyshareRequest_5_list)(nil) +var _ protoreflect.List = (*_PrivateDecryptionKeyRequest_5_list)(nil) -type _PrivateKeyshareRequest_5_list struct { - list *[]*common.EncryptedKeyshare +type _PrivateDecryptionKeyRequest_5_list struct { + list *[]*common.PrivateDecryptionKey } -func (x *_PrivateKeyshareRequest_5_list) Len() int { +func (x *_PrivateDecryptionKeyRequest_5_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_PrivateKeyshareRequest_5_list) Get(i int) protoreflect.Value { +func (x *_PrivateDecryptionKeyRequest_5_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_PrivateKeyshareRequest_5_list) Set(i int, value protoreflect.Value) { +func (x *_PrivateDecryptionKeyRequest_5_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*common.EncryptedKeyshare) + concreteValue := valueUnwrapped.Interface().(*common.PrivateDecryptionKey) (*x.list)[i] = concreteValue } -func (x *_PrivateKeyshareRequest_5_list) Append(value protoreflect.Value) { +func (x *_PrivateDecryptionKeyRequest_5_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*common.EncryptedKeyshare) + concreteValue := valueUnwrapped.Interface().(*common.PrivateDecryptionKey) *x.list = append(*x.list, concreteValue) } -func (x *_PrivateKeyshareRequest_5_list) AppendMutable() protoreflect.Value { - v := new(common.EncryptedKeyshare) +func (x *_PrivateDecryptionKeyRequest_5_list) AppendMutable() protoreflect.Value { + v := new(common.PrivateDecryptionKey) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_PrivateKeyshareRequest_5_list) Truncate(n int) { +func (x *_PrivateDecryptionKeyRequest_5_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_PrivateKeyshareRequest_5_list) NewElement() protoreflect.Value { - v := new(common.EncryptedKeyshare) +func (x *_PrivateDecryptionKeyRequest_5_list) NewElement() protoreflect.Value { + v := new(common.PrivateDecryptionKey) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_PrivateKeyshareRequest_5_list) IsValid() bool { +func (x *_PrivateDecryptionKeyRequest_5_list) IsValid() bool { return x.list != nil } var ( - md_PrivateKeyshareRequest protoreflect.MessageDescriptor - fd_PrivateKeyshareRequest_identity protoreflect.FieldDescriptor - fd_PrivateKeyshareRequest_pubkey protoreflect.FieldDescriptor - fd_PrivateKeyshareRequest_ibc_info protoreflect.FieldDescriptor - fd_PrivateKeyshareRequest_counterparty protoreflect.FieldDescriptor - fd_PrivateKeyshareRequest_encrypted_keyshares protoreflect.FieldDescriptor - fd_PrivateKeyshareRequest_request_id protoreflect.FieldDescriptor - fd_PrivateKeyshareRequest_sent protoreflect.FieldDescriptor + md_PrivateDecryptionKeyRequest protoreflect.MessageDescriptor + fd_PrivateDecryptionKeyRequest_identity protoreflect.FieldDescriptor + fd_PrivateDecryptionKeyRequest_pubkey protoreflect.FieldDescriptor + fd_PrivateDecryptionKeyRequest_ibc_info protoreflect.FieldDescriptor + fd_PrivateDecryptionKeyRequest_counterparty protoreflect.FieldDescriptor + fd_PrivateDecryptionKeyRequest_private_decryption_keys protoreflect.FieldDescriptor + fd_PrivateDecryptionKeyRequest_request_id protoreflect.FieldDescriptor + fd_PrivateDecryptionKeyRequest_sent protoreflect.FieldDescriptor ) func init() { - file_fairyring_keyshare_requested_keyshare_proto_init() - md_PrivateKeyshareRequest = File_fairyring_keyshare_requested_keyshare_proto.Messages().ByName("PrivateKeyshareRequest") - fd_PrivateKeyshareRequest_identity = md_PrivateKeyshareRequest.Fields().ByName("identity") - fd_PrivateKeyshareRequest_pubkey = md_PrivateKeyshareRequest.Fields().ByName("pubkey") - fd_PrivateKeyshareRequest_ibc_info = md_PrivateKeyshareRequest.Fields().ByName("ibc_info") - fd_PrivateKeyshareRequest_counterparty = md_PrivateKeyshareRequest.Fields().ByName("counterparty") - fd_PrivateKeyshareRequest_encrypted_keyshares = md_PrivateKeyshareRequest.Fields().ByName("encrypted_keyshares") - fd_PrivateKeyshareRequest_request_id = md_PrivateKeyshareRequest.Fields().ByName("request_id") - fd_PrivateKeyshareRequest_sent = md_PrivateKeyshareRequest.Fields().ByName("sent") + file_fairyring_keyshare_requested_decryption_key_proto_init() + md_PrivateDecryptionKeyRequest = File_fairyring_keyshare_requested_decryption_key_proto.Messages().ByName("PrivateDecryptionKeyRequest") + fd_PrivateDecryptionKeyRequest_identity = md_PrivateDecryptionKeyRequest.Fields().ByName("identity") + fd_PrivateDecryptionKeyRequest_pubkey = md_PrivateDecryptionKeyRequest.Fields().ByName("pubkey") + fd_PrivateDecryptionKeyRequest_ibc_info = md_PrivateDecryptionKeyRequest.Fields().ByName("ibc_info") + fd_PrivateDecryptionKeyRequest_counterparty = md_PrivateDecryptionKeyRequest.Fields().ByName("counterparty") + fd_PrivateDecryptionKeyRequest_private_decryption_keys = md_PrivateDecryptionKeyRequest.Fields().ByName("private_decryption_keys") + fd_PrivateDecryptionKeyRequest_request_id = md_PrivateDecryptionKeyRequest.Fields().ByName("request_id") + fd_PrivateDecryptionKeyRequest_sent = md_PrivateDecryptionKeyRequest.Fields().ByName("sent") } -var _ protoreflect.Message = (*fastReflection_PrivateKeyshareRequest)(nil) +var _ protoreflect.Message = (*fastReflection_PrivateDecryptionKeyRequest)(nil) -type fastReflection_PrivateKeyshareRequest PrivateKeyshareRequest +type fastReflection_PrivateDecryptionKeyRequest PrivateDecryptionKeyRequest -func (x *PrivateKeyshareRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_PrivateKeyshareRequest)(x) +func (x *PrivateDecryptionKeyRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_PrivateDecryptionKeyRequest)(x) } -func (x *PrivateKeyshareRequest) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_keyshare_requested_keyshare_proto_msgTypes[3] +func (x *PrivateDecryptionKeyRequest) slowProtoReflect() protoreflect.Message { + mi := &file_fairyring_keyshare_requested_decryption_key_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2219,43 +2219,43 @@ func (x *PrivateKeyshareRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_PrivateKeyshareRequest_messageType fastReflection_PrivateKeyshareRequest_messageType -var _ protoreflect.MessageType = fastReflection_PrivateKeyshareRequest_messageType{} +var _fastReflection_PrivateDecryptionKeyRequest_messageType fastReflection_PrivateDecryptionKeyRequest_messageType +var _ protoreflect.MessageType = fastReflection_PrivateDecryptionKeyRequest_messageType{} -type fastReflection_PrivateKeyshareRequest_messageType struct{} +type fastReflection_PrivateDecryptionKeyRequest_messageType struct{} -func (x fastReflection_PrivateKeyshareRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_PrivateKeyshareRequest)(nil) +func (x fastReflection_PrivateDecryptionKeyRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_PrivateDecryptionKeyRequest)(nil) } -func (x fastReflection_PrivateKeyshareRequest_messageType) New() protoreflect.Message { - return new(fastReflection_PrivateKeyshareRequest) +func (x fastReflection_PrivateDecryptionKeyRequest_messageType) New() protoreflect.Message { + return new(fastReflection_PrivateDecryptionKeyRequest) } -func (x fastReflection_PrivateKeyshareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_PrivateKeyshareRequest +func (x fastReflection_PrivateDecryptionKeyRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_PrivateDecryptionKeyRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_PrivateKeyshareRequest) Descriptor() protoreflect.MessageDescriptor { - return md_PrivateKeyshareRequest +func (x *fastReflection_PrivateDecryptionKeyRequest) Descriptor() protoreflect.MessageDescriptor { + return md_PrivateDecryptionKeyRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_PrivateKeyshareRequest) Type() protoreflect.MessageType { - return _fastReflection_PrivateKeyshareRequest_messageType +func (x *fastReflection_PrivateDecryptionKeyRequest) Type() protoreflect.MessageType { + return _fastReflection_PrivateDecryptionKeyRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_PrivateKeyshareRequest) New() protoreflect.Message { - return new(fastReflection_PrivateKeyshareRequest) +func (x *fastReflection_PrivateDecryptionKeyRequest) New() protoreflect.Message { + return new(fastReflection_PrivateDecryptionKeyRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_PrivateKeyshareRequest) Interface() protoreflect.ProtoMessage { - return (*PrivateKeyshareRequest)(x) +func (x *fastReflection_PrivateDecryptionKeyRequest) Interface() protoreflect.ProtoMessage { + return (*PrivateDecryptionKeyRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -2263,46 +2263,46 @@ func (x *fastReflection_PrivateKeyshareRequest) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_PrivateKeyshareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_PrivateDecryptionKeyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Identity != "" { value := protoreflect.ValueOfString(x.Identity) - if !f(fd_PrivateKeyshareRequest_identity, value) { + if !f(fd_PrivateDecryptionKeyRequest_identity, value) { return } } if x.Pubkey != "" { value := protoreflect.ValueOfString(x.Pubkey) - if !f(fd_PrivateKeyshareRequest_pubkey, value) { + if !f(fd_PrivateDecryptionKeyRequest_pubkey, value) { return } } if x.IbcInfo != nil { value := protoreflect.ValueOfMessage(x.IbcInfo.ProtoReflect()) - if !f(fd_PrivateKeyshareRequest_ibc_info, value) { + if !f(fd_PrivateDecryptionKeyRequest_ibc_info, value) { return } } if x.Counterparty != nil { value := protoreflect.ValueOfMessage(x.Counterparty.ProtoReflect()) - if !f(fd_PrivateKeyshareRequest_counterparty, value) { + if !f(fd_PrivateDecryptionKeyRequest_counterparty, value) { return } } - if len(x.EncryptedKeyshares) != 0 { - value := protoreflect.ValueOfList(&_PrivateKeyshareRequest_5_list{list: &x.EncryptedKeyshares}) - if !f(fd_PrivateKeyshareRequest_encrypted_keyshares, value) { + if len(x.PrivateDecryptionKeys) != 0 { + value := protoreflect.ValueOfList(&_PrivateDecryptionKeyRequest_5_list{list: &x.PrivateDecryptionKeys}) + if !f(fd_PrivateDecryptionKeyRequest_private_decryption_keys, value) { return } } if x.RequestId != "" { value := protoreflect.ValueOfString(x.RequestId) - if !f(fd_PrivateKeyshareRequest_request_id, value) { + if !f(fd_PrivateDecryptionKeyRequest_request_id, value) { return } } if x.Sent != false { value := protoreflect.ValueOfBool(x.Sent) - if !f(fd_PrivateKeyshareRequest_sent, value) { + if !f(fd_PrivateDecryptionKeyRequest_sent, value) { return } } @@ -2319,27 +2319,27 @@ func (x *fastReflection_PrivateKeyshareRequest) Range(f func(protoreflect.FieldD // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_PrivateKeyshareRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_PrivateDecryptionKeyRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.PrivateKeyshareRequest.identity": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.identity": return x.Identity != "" - case "fairyring.keyshare.PrivateKeyshareRequest.pubkey": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.pubkey": return x.Pubkey != "" - case "fairyring.keyshare.PrivateKeyshareRequest.ibc_info": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.ibc_info": return x.IbcInfo != nil - case "fairyring.keyshare.PrivateKeyshareRequest.counterparty": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.counterparty": return x.Counterparty != nil - case "fairyring.keyshare.PrivateKeyshareRequest.encrypted_keyshares": - return len(x.EncryptedKeyshares) != 0 - case "fairyring.keyshare.PrivateKeyshareRequest.request_id": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.private_decryption_keys": + return len(x.PrivateDecryptionKeys) != 0 + case "fairyring.keyshare.PrivateDecryptionKeyRequest.request_id": return x.RequestId != "" - case "fairyring.keyshare.PrivateKeyshareRequest.sent": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.sent": return x.Sent != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateKeyshareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateDecryptionKeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.PrivateKeyshareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.PrivateDecryptionKeyRequest does not contain field %s", fd.FullName())) } } @@ -2349,27 +2349,27 @@ func (x *fastReflection_PrivateKeyshareRequest) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PrivateKeyshareRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_PrivateDecryptionKeyRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.PrivateKeyshareRequest.identity": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.identity": x.Identity = "" - case "fairyring.keyshare.PrivateKeyshareRequest.pubkey": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.pubkey": x.Pubkey = "" - case "fairyring.keyshare.PrivateKeyshareRequest.ibc_info": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.ibc_info": x.IbcInfo = nil - case "fairyring.keyshare.PrivateKeyshareRequest.counterparty": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.counterparty": x.Counterparty = nil - case "fairyring.keyshare.PrivateKeyshareRequest.encrypted_keyshares": - x.EncryptedKeyshares = nil - case "fairyring.keyshare.PrivateKeyshareRequest.request_id": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.private_decryption_keys": + x.PrivateDecryptionKeys = nil + case "fairyring.keyshare.PrivateDecryptionKeyRequest.request_id": x.RequestId = "" - case "fairyring.keyshare.PrivateKeyshareRequest.sent": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.sent": x.Sent = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateKeyshareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateDecryptionKeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.PrivateKeyshareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.PrivateDecryptionKeyRequest does not contain field %s", fd.FullName())) } } @@ -2379,37 +2379,37 @@ func (x *fastReflection_PrivateKeyshareRequest) Clear(fd protoreflect.FieldDescr // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_PrivateKeyshareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PrivateDecryptionKeyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.PrivateKeyshareRequest.identity": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.identity": value := x.Identity return protoreflect.ValueOfString(value) - case "fairyring.keyshare.PrivateKeyshareRequest.pubkey": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.pubkey": value := x.Pubkey return protoreflect.ValueOfString(value) - case "fairyring.keyshare.PrivateKeyshareRequest.ibc_info": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.ibc_info": value := x.IbcInfo return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.keyshare.PrivateKeyshareRequest.counterparty": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.counterparty": value := x.Counterparty return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.keyshare.PrivateKeyshareRequest.encrypted_keyshares": - if len(x.EncryptedKeyshares) == 0 { - return protoreflect.ValueOfList(&_PrivateKeyshareRequest_5_list{}) + case "fairyring.keyshare.PrivateDecryptionKeyRequest.private_decryption_keys": + if len(x.PrivateDecryptionKeys) == 0 { + return protoreflect.ValueOfList(&_PrivateDecryptionKeyRequest_5_list{}) } - listValue := &_PrivateKeyshareRequest_5_list{list: &x.EncryptedKeyshares} + listValue := &_PrivateDecryptionKeyRequest_5_list{list: &x.PrivateDecryptionKeys} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.PrivateKeyshareRequest.request_id": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.request_id": value := x.RequestId return protoreflect.ValueOfString(value) - case "fairyring.keyshare.PrivateKeyshareRequest.sent": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.sent": value := x.Sent return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateKeyshareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateDecryptionKeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.PrivateKeyshareRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.PrivateDecryptionKeyRequest does not contain field %s", descriptor.FullName())) } } @@ -2423,29 +2423,29 @@ func (x *fastReflection_PrivateKeyshareRequest) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PrivateKeyshareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_PrivateDecryptionKeyRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.PrivateKeyshareRequest.identity": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.identity": x.Identity = value.Interface().(string) - case "fairyring.keyshare.PrivateKeyshareRequest.pubkey": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.pubkey": x.Pubkey = value.Interface().(string) - case "fairyring.keyshare.PrivateKeyshareRequest.ibc_info": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.ibc_info": x.IbcInfo = value.Message().Interface().(*IBCInfo) - case "fairyring.keyshare.PrivateKeyshareRequest.counterparty": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.counterparty": x.Counterparty = value.Message().Interface().(*CounterPartyIBCInfo) - case "fairyring.keyshare.PrivateKeyshareRequest.encrypted_keyshares": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.private_decryption_keys": lv := value.List() - clv := lv.(*_PrivateKeyshareRequest_5_list) - x.EncryptedKeyshares = *clv.list - case "fairyring.keyshare.PrivateKeyshareRequest.request_id": + clv := lv.(*_PrivateDecryptionKeyRequest_5_list) + x.PrivateDecryptionKeys = *clv.list + case "fairyring.keyshare.PrivateDecryptionKeyRequest.request_id": x.RequestId = value.Interface().(string) - case "fairyring.keyshare.PrivateKeyshareRequest.sent": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.sent": x.Sent = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateKeyshareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateDecryptionKeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.PrivateKeyshareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.PrivateDecryptionKeyRequest does not contain field %s", fd.FullName())) } } @@ -2459,77 +2459,77 @@ func (x *fastReflection_PrivateKeyshareRequest) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PrivateKeyshareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PrivateDecryptionKeyRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.PrivateKeyshareRequest.ibc_info": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.ibc_info": if x.IbcInfo == nil { x.IbcInfo = new(IBCInfo) } return protoreflect.ValueOfMessage(x.IbcInfo.ProtoReflect()) - case "fairyring.keyshare.PrivateKeyshareRequest.counterparty": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.counterparty": if x.Counterparty == nil { x.Counterparty = new(CounterPartyIBCInfo) } return protoreflect.ValueOfMessage(x.Counterparty.ProtoReflect()) - case "fairyring.keyshare.PrivateKeyshareRequest.encrypted_keyshares": - if x.EncryptedKeyshares == nil { - x.EncryptedKeyshares = []*common.EncryptedKeyshare{} + case "fairyring.keyshare.PrivateDecryptionKeyRequest.private_decryption_keys": + if x.PrivateDecryptionKeys == nil { + x.PrivateDecryptionKeys = []*common.PrivateDecryptionKey{} } - value := &_PrivateKeyshareRequest_5_list{list: &x.EncryptedKeyshares} + value := &_PrivateDecryptionKeyRequest_5_list{list: &x.PrivateDecryptionKeys} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.PrivateKeyshareRequest.identity": - panic(fmt.Errorf("field identity of message fairyring.keyshare.PrivateKeyshareRequest is not mutable")) - case "fairyring.keyshare.PrivateKeyshareRequest.pubkey": - panic(fmt.Errorf("field pubkey of message fairyring.keyshare.PrivateKeyshareRequest is not mutable")) - case "fairyring.keyshare.PrivateKeyshareRequest.request_id": - panic(fmt.Errorf("field request_id of message fairyring.keyshare.PrivateKeyshareRequest is not mutable")) - case "fairyring.keyshare.PrivateKeyshareRequest.sent": - panic(fmt.Errorf("field sent of message fairyring.keyshare.PrivateKeyshareRequest is not mutable")) + case "fairyring.keyshare.PrivateDecryptionKeyRequest.identity": + panic(fmt.Errorf("field identity of message fairyring.keyshare.PrivateDecryptionKeyRequest is not mutable")) + case "fairyring.keyshare.PrivateDecryptionKeyRequest.pubkey": + panic(fmt.Errorf("field pubkey of message fairyring.keyshare.PrivateDecryptionKeyRequest is not mutable")) + case "fairyring.keyshare.PrivateDecryptionKeyRequest.request_id": + panic(fmt.Errorf("field request_id of message fairyring.keyshare.PrivateDecryptionKeyRequest is not mutable")) + case "fairyring.keyshare.PrivateDecryptionKeyRequest.sent": + panic(fmt.Errorf("field sent of message fairyring.keyshare.PrivateDecryptionKeyRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateKeyshareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateDecryptionKeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.PrivateKeyshareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.PrivateDecryptionKeyRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_PrivateKeyshareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PrivateDecryptionKeyRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.PrivateKeyshareRequest.identity": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.identity": return protoreflect.ValueOfString("") - case "fairyring.keyshare.PrivateKeyshareRequest.pubkey": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.pubkey": return protoreflect.ValueOfString("") - case "fairyring.keyshare.PrivateKeyshareRequest.ibc_info": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.ibc_info": m := new(IBCInfo) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.keyshare.PrivateKeyshareRequest.counterparty": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.counterparty": m := new(CounterPartyIBCInfo) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.keyshare.PrivateKeyshareRequest.encrypted_keyshares": - list := []*common.EncryptedKeyshare{} - return protoreflect.ValueOfList(&_PrivateKeyshareRequest_5_list{list: &list}) - case "fairyring.keyshare.PrivateKeyshareRequest.request_id": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.private_decryption_keys": + list := []*common.PrivateDecryptionKey{} + return protoreflect.ValueOfList(&_PrivateDecryptionKeyRequest_5_list{list: &list}) + case "fairyring.keyshare.PrivateDecryptionKeyRequest.request_id": return protoreflect.ValueOfString("") - case "fairyring.keyshare.PrivateKeyshareRequest.sent": + case "fairyring.keyshare.PrivateDecryptionKeyRequest.sent": return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateKeyshareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.PrivateDecryptionKeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.PrivateKeyshareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.PrivateDecryptionKeyRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_PrivateKeyshareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_PrivateDecryptionKeyRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.PrivateKeyshareRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.PrivateDecryptionKeyRequest", d.FullName())) } panic("unreachable") } @@ -2537,7 +2537,7 @@ func (x *fastReflection_PrivateKeyshareRequest) WhichOneof(d protoreflect.OneofD // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_PrivateKeyshareRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_PrivateDecryptionKeyRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2548,7 +2548,7 @@ func (x *fastReflection_PrivateKeyshareRequest) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PrivateKeyshareRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_PrivateDecryptionKeyRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2560,7 +2560,7 @@ func (x *fastReflection_PrivateKeyshareRequest) SetUnknown(fields protoreflect.R // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_PrivateKeyshareRequest) IsValid() bool { +func (x *fastReflection_PrivateDecryptionKeyRequest) IsValid() bool { return x != nil } @@ -2570,9 +2570,9 @@ func (x *fastReflection_PrivateKeyshareRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_PrivateKeyshareRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_PrivateDecryptionKeyRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*PrivateKeyshareRequest) + x := input.Message.Interface().(*PrivateDecryptionKeyRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2600,8 +2600,8 @@ func (x *fastReflection_PrivateKeyshareRequest) ProtoMethods() *protoiface.Metho l = options.Size(x.Counterparty) n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.EncryptedKeyshares) > 0 { - for _, e := range x.EncryptedKeyshares { + if len(x.PrivateDecryptionKeys) > 0 { + for _, e := range x.PrivateDecryptionKeys { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -2623,7 +2623,7 @@ func (x *fastReflection_PrivateKeyshareRequest) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*PrivateKeyshareRequest) + x := input.Message.Interface().(*PrivateDecryptionKeyRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2659,9 +2659,9 @@ func (x *fastReflection_PrivateKeyshareRequest) ProtoMethods() *protoiface.Metho i-- dAtA[i] = 0x32 } - if len(x.EncryptedKeyshares) > 0 { - for iNdEx := len(x.EncryptedKeyshares) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.EncryptedKeyshares[iNdEx]) + if len(x.PrivateDecryptionKeys) > 0 { + for iNdEx := len(x.PrivateDecryptionKeys) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PrivateDecryptionKeys[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2728,7 +2728,7 @@ func (x *fastReflection_PrivateKeyshareRequest) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*PrivateKeyshareRequest) + x := input.Message.Interface().(*PrivateDecryptionKeyRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2760,10 +2760,10 @@ func (x *fastReflection_PrivateKeyshareRequest) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PrivateKeyshareRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PrivateDecryptionKeyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PrivateKeyshareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PrivateDecryptionKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2904,7 +2904,7 @@ func (x *fastReflection_PrivateKeyshareRequest) ProtoMethods() *protoiface.Metho iNdEx = postIndex case 5: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyshares", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PrivateDecryptionKeys", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2931,8 +2931,8 @@ func (x *fastReflection_PrivateKeyshareRequest) ProtoMethods() *protoiface.Metho if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.EncryptedKeyshares = append(x.EncryptedKeyshares, &common.EncryptedKeyshare{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EncryptedKeyshares[len(x.EncryptedKeyshares)-1]); err != nil { + x.PrivateDecryptionKeys = append(x.PrivateDecryptionKeys, &common.PrivateDecryptionKey{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PrivateDecryptionKeys[len(x.PrivateDecryptionKeys)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -3027,7 +3027,7 @@ func (x *fastReflection_PrivateKeyshareRequest) ProtoMethods() *protoiface.Metho // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: fairyring/keyshare/requested_keyshare.proto +// source: fairyring/keyshare/requested_decryption_key.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -3036,92 +3036,92 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// KeyShareRequest defines the storage structure for general keyshare requests -type KeyShareRequest struct { +// DecryptionKeyRequest defines the storage structure for general keyshare requests +type DecryptionKeyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - IbcInfo *IBCInfo `protobuf:"bytes,3,opt,name=ibc_info,json=ibcInfo,proto3" json:"ibc_info,omitempty"` // Used only when the request is made via IBC - Counterparty *CounterPartyIBCInfo `protobuf:"bytes,4,opt,name=counterparty,proto3" json:"counterparty,omitempty"` // Used only when the request is made via IBC - AggrKeyshare string `protobuf:"bytes,5,opt,name=aggr_keyshare,json=aggrKeyshare,proto3" json:"aggr_keyshare,omitempty"` - ProposalId string `protobuf:"bytes,6,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` // This is only used when the request is for private governance - RequestId string `protobuf:"bytes,7,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // might be useful to destination chains to sort out the response - Sent bool `protobuf:"varint,8,opt,name=sent,proto3" json:"sent,omitempty"` + Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` + Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + IbcInfo *IBCInfo `protobuf:"bytes,3,opt,name=ibc_info,json=ibcInfo,proto3" json:"ibc_info,omitempty"` // Used only when the request is made via IBC + Counterparty *CounterPartyIBCInfo `protobuf:"bytes,4,opt,name=counterparty,proto3" json:"counterparty,omitempty"` // Used only when the request is made via IBC + DecryptionKey string `protobuf:"bytes,5,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key,omitempty"` + ProposalId string `protobuf:"bytes,6,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` // This is only used when the request is for private governance + RequestId string `protobuf:"bytes,7,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // might be useful to destination chains to sort out the response + Sent bool `protobuf:"varint,8,opt,name=sent,proto3" json:"sent,omitempty"` } -func (x *KeyShareRequest) Reset() { - *x = KeyShareRequest{} +func (x *DecryptionKeyRequest) Reset() { + *x = DecryptionKeyRequest{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_keyshare_requested_keyshare_proto_msgTypes[0] + mi := &file_fairyring_keyshare_requested_decryption_key_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *KeyShareRequest) String() string { +func (x *DecryptionKeyRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*KeyShareRequest) ProtoMessage() {} +func (*DecryptionKeyRequest) ProtoMessage() {} -// Deprecated: Use KeyShareRequest.ProtoReflect.Descriptor instead. -func (*KeyShareRequest) Descriptor() ([]byte, []int) { - return file_fairyring_keyshare_requested_keyshare_proto_rawDescGZIP(), []int{0} +// Deprecated: Use DecryptionKeyRequest.ProtoReflect.Descriptor instead. +func (*DecryptionKeyRequest) Descriptor() ([]byte, []int) { + return file_fairyring_keyshare_requested_decryption_key_proto_rawDescGZIP(), []int{0} } -func (x *KeyShareRequest) GetIdentity() string { +func (x *DecryptionKeyRequest) GetIdentity() string { if x != nil { return x.Identity } return "" } -func (x *KeyShareRequest) GetPubkey() string { +func (x *DecryptionKeyRequest) GetPubkey() string { if x != nil { return x.Pubkey } return "" } -func (x *KeyShareRequest) GetIbcInfo() *IBCInfo { +func (x *DecryptionKeyRequest) GetIbcInfo() *IBCInfo { if x != nil { return x.IbcInfo } return nil } -func (x *KeyShareRequest) GetCounterparty() *CounterPartyIBCInfo { +func (x *DecryptionKeyRequest) GetCounterparty() *CounterPartyIBCInfo { if x != nil { return x.Counterparty } return nil } -func (x *KeyShareRequest) GetAggrKeyshare() string { +func (x *DecryptionKeyRequest) GetDecryptionKey() string { if x != nil { - return x.AggrKeyshare + return x.DecryptionKey } return "" } -func (x *KeyShareRequest) GetProposalId() string { +func (x *DecryptionKeyRequest) GetProposalId() string { if x != nil { return x.ProposalId } return "" } -func (x *KeyShareRequest) GetRequestId() string { +func (x *DecryptionKeyRequest) GetRequestId() string { if x != nil { return x.RequestId } return "" } -func (x *KeyShareRequest) GetSent() bool { +func (x *DecryptionKeyRequest) GetSent() bool { if x != nil { return x.Sent } @@ -3144,7 +3144,7 @@ type IBCInfo struct { func (x *IBCInfo) Reset() { *x = IBCInfo{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_keyshare_requested_keyshare_proto_msgTypes[1] + mi := &file_fairyring_keyshare_requested_decryption_key_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3158,7 +3158,7 @@ func (*IBCInfo) ProtoMessage() {} // Deprecated: Use IBCInfo.ProtoReflect.Descriptor instead. func (*IBCInfo) Descriptor() ([]byte, []int) { - return file_fairyring_keyshare_requested_keyshare_proto_rawDescGZIP(), []int{1} + return file_fairyring_keyshare_requested_decryption_key_proto_rawDescGZIP(), []int{1} } func (x *IBCInfo) GetClientId() string { @@ -3205,7 +3205,7 @@ type CounterPartyIBCInfo struct { func (x *CounterPartyIBCInfo) Reset() { *x = CounterPartyIBCInfo{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_keyshare_requested_keyshare_proto_msgTypes[2] + mi := &file_fairyring_keyshare_requested_decryption_key_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3219,7 +3219,7 @@ func (*CounterPartyIBCInfo) ProtoMessage() {} // Deprecated: Use CounterPartyIBCInfo.ProtoReflect.Descriptor instead. func (*CounterPartyIBCInfo) Descriptor() ([]byte, []int) { - return file_fairyring_keyshare_requested_keyshare_proto_rawDescGZIP(), []int{2} + return file_fairyring_keyshare_requested_decryption_key_proto_rawDescGZIP(), []int{2} } func (x *CounterPartyIBCInfo) GetClientId() string { @@ -3250,201 +3250,203 @@ func (x *CounterPartyIBCInfo) GetPortId() string { return "" } -// PrivateKeyshareRequest defines the stroage structure for private +// PrivateDecryptionKeyRequest defines the stroage structure for private // encrypted and unaggregated keyshare requests -type PrivateKeyshareRequest struct { +type PrivateDecryptionKeyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - IbcInfo *IBCInfo `protobuf:"bytes,3,opt,name=ibc_info,json=ibcInfo,proto3" json:"ibc_info,omitempty"` // Used only when the request is made via IBC - Counterparty *CounterPartyIBCInfo `protobuf:"bytes,4,opt,name=counterparty,proto3" json:"counterparty,omitempty"` // Used only when the request is made via IBC - EncryptedKeyshares []*common.EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` - RequestId string `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - Sent bool `protobuf:"varint,7,opt,name=sent,proto3" json:"sent,omitempty"` + Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` + Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + IbcInfo *IBCInfo `protobuf:"bytes,3,opt,name=ibc_info,json=ibcInfo,proto3" json:"ibc_info,omitempty"` // Used only when the request is made via IBC + Counterparty *CounterPartyIBCInfo `protobuf:"bytes,4,opt,name=counterparty,proto3" json:"counterparty,omitempty"` // Used only when the request is made via IBC + PrivateDecryptionKeys []*common.PrivateDecryptionKey `protobuf:"bytes,5,rep,name=private_decryption_keys,json=privateDecryptionKeys,proto3" json:"private_decryption_keys,omitempty"` + RequestId string `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + Sent bool `protobuf:"varint,7,opt,name=sent,proto3" json:"sent,omitempty"` } -func (x *PrivateKeyshareRequest) Reset() { - *x = PrivateKeyshareRequest{} +func (x *PrivateDecryptionKeyRequest) Reset() { + *x = PrivateDecryptionKeyRequest{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_keyshare_requested_keyshare_proto_msgTypes[3] + mi := &file_fairyring_keyshare_requested_decryption_key_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *PrivateKeyshareRequest) String() string { +func (x *PrivateDecryptionKeyRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PrivateKeyshareRequest) ProtoMessage() {} +func (*PrivateDecryptionKeyRequest) ProtoMessage() {} -// Deprecated: Use PrivateKeyshareRequest.ProtoReflect.Descriptor instead. -func (*PrivateKeyshareRequest) Descriptor() ([]byte, []int) { - return file_fairyring_keyshare_requested_keyshare_proto_rawDescGZIP(), []int{3} +// Deprecated: Use PrivateDecryptionKeyRequest.ProtoReflect.Descriptor instead. +func (*PrivateDecryptionKeyRequest) Descriptor() ([]byte, []int) { + return file_fairyring_keyshare_requested_decryption_key_proto_rawDescGZIP(), []int{3} } -func (x *PrivateKeyshareRequest) GetIdentity() string { +func (x *PrivateDecryptionKeyRequest) GetIdentity() string { if x != nil { return x.Identity } return "" } -func (x *PrivateKeyshareRequest) GetPubkey() string { +func (x *PrivateDecryptionKeyRequest) GetPubkey() string { if x != nil { return x.Pubkey } return "" } -func (x *PrivateKeyshareRequest) GetIbcInfo() *IBCInfo { +func (x *PrivateDecryptionKeyRequest) GetIbcInfo() *IBCInfo { if x != nil { return x.IbcInfo } return nil } -func (x *PrivateKeyshareRequest) GetCounterparty() *CounterPartyIBCInfo { +func (x *PrivateDecryptionKeyRequest) GetCounterparty() *CounterPartyIBCInfo { if x != nil { return x.Counterparty } return nil } -func (x *PrivateKeyshareRequest) GetEncryptedKeyshares() []*common.EncryptedKeyshare { +func (x *PrivateDecryptionKeyRequest) GetPrivateDecryptionKeys() []*common.PrivateDecryptionKey { if x != nil { - return x.EncryptedKeyshares + return x.PrivateDecryptionKeys } return nil } -func (x *PrivateKeyshareRequest) GetRequestId() string { +func (x *PrivateDecryptionKeyRequest) GetRequestId() string { if x != nil { return x.RequestId } return "" } -func (x *PrivateKeyshareRequest) GetSent() bool { +func (x *PrivateDecryptionKeyRequest) GetSent() bool { if x != nil { return x.Sent } return false } -var File_fairyring_keyshare_requested_keyshare_proto protoreflect.FileDescriptor - -var file_fairyring_keyshare_requested_keyshare_proto_rawDesc = []byte{ - 0x0a, 0x2b, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x1a, 0x23, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc3, 0x02, 0x0a, 0x0f, 0x4b, 0x65, 0x79, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x36, - 0x0a, 0x08, 0x69, 0x62, 0x63, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x49, 0x42, 0x43, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x69, - 0x62, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x4b, 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, - 0x72, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x79, 0x49, 0x42, - 0x43, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x61, - 0x72, 0x74, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x67, 0x67, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x67, 0x67, 0x72, - 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, - 0x6f, 0x73, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x6e, 0x74, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x73, 0x65, 0x6e, 0x74, 0x22, 0x83, 0x01, 0x0a, - 0x07, 0x49, 0x42, 0x43, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, - 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x6f, 0x72, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x72, 0x74, - 0x49, 0x64, 0x22, 0x8f, 0x01, 0x0a, 0x13, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x50, 0x61, - 0x72, 0x74, 0x79, 0x49, 0x42, 0x43, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, - 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, - 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, - 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x70, - 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, - 0x72, 0x74, 0x49, 0x64, 0x22, 0xda, 0x02, 0x0a, 0x16, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, - 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, - 0x6b, 0x65, 0x79, 0x12, 0x36, 0x0a, 0x08, 0x69, 0x62, 0x63, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x49, 0x42, 0x43, 0x49, 0x6e, - 0x66, 0x6f, 0x52, 0x07, 0x69, 0x62, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x4b, 0x0a, 0x0c, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x50, 0x61, - 0x72, 0x74, 0x79, 0x49, 0x42, 0x43, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x65, 0x72, 0x70, 0x61, 0x72, 0x74, 0x79, 0x12, 0x54, 0x0a, 0x13, 0x65, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, - 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x1d, - 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, - 0x04, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x73, 0x65, 0x6e, - 0x74, 0x42, 0xbe, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x16, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, - 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, - 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_fairyring_keyshare_requested_decryption_key_proto protoreflect.FileDescriptor + +var file_fairyring_keyshare_requested_decryption_key_proto_rawDesc = []byte{ + 0x0a, 0x31, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x64, + 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x23, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xca, 0x02, 0x0a, + 0x14, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x36, 0x0a, 0x08, 0x69, 0x62, 0x63, + 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x2e, 0x49, 0x42, 0x43, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x69, 0x62, 0x63, 0x49, 0x6e, 0x66, + 0x6f, 0x12, 0x4b, 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x61, 0x72, 0x74, + 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x79, 0x49, 0x42, 0x43, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x61, 0x72, 0x74, 0x79, 0x12, 0x25, + 0x0a, 0x0e, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, + 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, + 0x6f, 0x73, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x04, 0x73, 0x65, 0x6e, 0x74, 0x22, 0x83, 0x01, 0x0a, 0x07, 0x49, 0x42, + 0x43, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, + 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x6e, + 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, + 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x64, 0x22, + 0x8f, 0x01, 0x0a, 0x13, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x79, + 0x49, 0x42, 0x43, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, + 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, + 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, + 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x6f, 0x72, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x72, 0x74, 0x49, + 0x64, 0x22, 0xe9, 0x02, 0x0a, 0x1b, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, + 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, + 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x36, 0x0a, 0x08, 0x69, 0x62, 0x63, 0x5f, 0x69, 0x6e, 0x66, + 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x49, 0x42, 0x43, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x69, 0x62, 0x63, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x4b, 0x0a, + 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x61, 0x72, 0x74, 0x79, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, + 0x50, 0x61, 0x72, 0x74, 0x79, 0x49, 0x42, 0x43, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x61, 0x72, 0x74, 0x79, 0x12, 0x5e, 0x0a, 0x17, 0x70, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x4b, 0x65, 0x79, 0x52, 0x15, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x6e, + 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x73, 0x65, 0x6e, 0x74, 0x42, 0xc3, 0x01, + 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x1b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, + 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, + 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, + 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_fairyring_keyshare_requested_keyshare_proto_rawDescOnce sync.Once - file_fairyring_keyshare_requested_keyshare_proto_rawDescData = file_fairyring_keyshare_requested_keyshare_proto_rawDesc + file_fairyring_keyshare_requested_decryption_key_proto_rawDescOnce sync.Once + file_fairyring_keyshare_requested_decryption_key_proto_rawDescData = file_fairyring_keyshare_requested_decryption_key_proto_rawDesc ) -func file_fairyring_keyshare_requested_keyshare_proto_rawDescGZIP() []byte { - file_fairyring_keyshare_requested_keyshare_proto_rawDescOnce.Do(func() { - file_fairyring_keyshare_requested_keyshare_proto_rawDescData = protoimpl.X.CompressGZIP(file_fairyring_keyshare_requested_keyshare_proto_rawDescData) +func file_fairyring_keyshare_requested_decryption_key_proto_rawDescGZIP() []byte { + file_fairyring_keyshare_requested_decryption_key_proto_rawDescOnce.Do(func() { + file_fairyring_keyshare_requested_decryption_key_proto_rawDescData = protoimpl.X.CompressGZIP(file_fairyring_keyshare_requested_decryption_key_proto_rawDescData) }) - return file_fairyring_keyshare_requested_keyshare_proto_rawDescData -} - -var file_fairyring_keyshare_requested_keyshare_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_fairyring_keyshare_requested_keyshare_proto_goTypes = []interface{}{ - (*KeyShareRequest)(nil), // 0: fairyring.keyshare.KeyShareRequest - (*IBCInfo)(nil), // 1: fairyring.keyshare.IBCInfo - (*CounterPartyIBCInfo)(nil), // 2: fairyring.keyshare.CounterPartyIBCInfo - (*PrivateKeyshareRequest)(nil), // 3: fairyring.keyshare.PrivateKeyshareRequest - (*common.EncryptedKeyshare)(nil), // 4: fairyring.common.EncryptedKeyshare -} -var file_fairyring_keyshare_requested_keyshare_proto_depIdxs = []int32{ - 1, // 0: fairyring.keyshare.KeyShareRequest.ibc_info:type_name -> fairyring.keyshare.IBCInfo - 2, // 1: fairyring.keyshare.KeyShareRequest.counterparty:type_name -> fairyring.keyshare.CounterPartyIBCInfo - 1, // 2: fairyring.keyshare.PrivateKeyshareRequest.ibc_info:type_name -> fairyring.keyshare.IBCInfo - 2, // 3: fairyring.keyshare.PrivateKeyshareRequest.counterparty:type_name -> fairyring.keyshare.CounterPartyIBCInfo - 4, // 4: fairyring.keyshare.PrivateKeyshareRequest.encrypted_keyshares:type_name -> fairyring.common.EncryptedKeyshare + return file_fairyring_keyshare_requested_decryption_key_proto_rawDescData +} + +var file_fairyring_keyshare_requested_decryption_key_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_fairyring_keyshare_requested_decryption_key_proto_goTypes = []interface{}{ + (*DecryptionKeyRequest)(nil), // 0: fairyring.keyshare.DecryptionKeyRequest + (*IBCInfo)(nil), // 1: fairyring.keyshare.IBCInfo + (*CounterPartyIBCInfo)(nil), // 2: fairyring.keyshare.CounterPartyIBCInfo + (*PrivateDecryptionKeyRequest)(nil), // 3: fairyring.keyshare.PrivateDecryptionKeyRequest + (*common.PrivateDecryptionKey)(nil), // 4: fairyring.common.PrivateDecryptionKey +} +var file_fairyring_keyshare_requested_decryption_key_proto_depIdxs = []int32{ + 1, // 0: fairyring.keyshare.DecryptionKeyRequest.ibc_info:type_name -> fairyring.keyshare.IBCInfo + 2, // 1: fairyring.keyshare.DecryptionKeyRequest.counterparty:type_name -> fairyring.keyshare.CounterPartyIBCInfo + 1, // 2: fairyring.keyshare.PrivateDecryptionKeyRequest.ibc_info:type_name -> fairyring.keyshare.IBCInfo + 2, // 3: fairyring.keyshare.PrivateDecryptionKeyRequest.counterparty:type_name -> fairyring.keyshare.CounterPartyIBCInfo + 4, // 4: fairyring.keyshare.PrivateDecryptionKeyRequest.private_decryption_keys:type_name -> fairyring.common.PrivateDecryptionKey 5, // [5:5] is the sub-list for method output_type 5, // [5:5] is the sub-list for method input_type 5, // [5:5] is the sub-list for extension type_name @@ -3452,14 +3454,14 @@ var file_fairyring_keyshare_requested_keyshare_proto_depIdxs = []int32{ 0, // [0:5] is the sub-list for field type_name } -func init() { file_fairyring_keyshare_requested_keyshare_proto_init() } -func file_fairyring_keyshare_requested_keyshare_proto_init() { - if File_fairyring_keyshare_requested_keyshare_proto != nil { +func init() { file_fairyring_keyshare_requested_decryption_key_proto_init() } +func file_fairyring_keyshare_requested_decryption_key_proto_init() { + if File_fairyring_keyshare_requested_decryption_key_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_fairyring_keyshare_requested_keyshare_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KeyShareRequest); i { + file_fairyring_keyshare_requested_decryption_key_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DecryptionKeyRequest); i { case 0: return &v.state case 1: @@ -3470,7 +3472,7 @@ func file_fairyring_keyshare_requested_keyshare_proto_init() { return nil } } - file_fairyring_keyshare_requested_keyshare_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_fairyring_keyshare_requested_decryption_key_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*IBCInfo); i { case 0: return &v.state @@ -3482,7 +3484,7 @@ func file_fairyring_keyshare_requested_keyshare_proto_init() { return nil } } - file_fairyring_keyshare_requested_keyshare_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_fairyring_keyshare_requested_decryption_key_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CounterPartyIBCInfo); i { case 0: return &v.state @@ -3494,8 +3496,8 @@ func file_fairyring_keyshare_requested_keyshare_proto_init() { return nil } } - file_fairyring_keyshare_requested_keyshare_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrivateKeyshareRequest); i { + file_fairyring_keyshare_requested_decryption_key_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PrivateDecryptionKeyRequest); i { case 0: return &v.state case 1: @@ -3511,18 +3513,18 @@ func file_fairyring_keyshare_requested_keyshare_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fairyring_keyshare_requested_keyshare_proto_rawDesc, + RawDescriptor: file_fairyring_keyshare_requested_decryption_key_proto_rawDesc, NumEnums: 0, NumMessages: 4, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_fairyring_keyshare_requested_keyshare_proto_goTypes, - DependencyIndexes: file_fairyring_keyshare_requested_keyshare_proto_depIdxs, - MessageInfos: file_fairyring_keyshare_requested_keyshare_proto_msgTypes, + GoTypes: file_fairyring_keyshare_requested_decryption_key_proto_goTypes, + DependencyIndexes: file_fairyring_keyshare_requested_decryption_key_proto_depIdxs, + MessageInfos: file_fairyring_keyshare_requested_decryption_key_proto_msgTypes, }.Build() - File_fairyring_keyshare_requested_keyshare_proto = out.File - file_fairyring_keyshare_requested_keyshare_proto_rawDesc = nil - file_fairyring_keyshare_requested_keyshare_proto_goTypes = nil - file_fairyring_keyshare_requested_keyshare_proto_depIdxs = nil + File_fairyring_keyshare_requested_decryption_key_proto = out.File + file_fairyring_keyshare_requested_decryption_key_proto_rawDesc = nil + file_fairyring_keyshare_requested_decryption_key_proto_goTypes = nil + file_fairyring_keyshare_requested_decryption_key_proto_depIdxs = nil } diff --git a/api/fairyring/keyshare/tx.pulsar.go b/api/fairyring/keyshare/tx.pulsar.go index c861f41e..7586a297 100644 --- a/api/fairyring/keyshare/tx.pulsar.go +++ b/api/fairyring/keyshare/tx.pulsar.go @@ -8752,37 +8752,37 @@ func (x *fastReflection_MsgDeleteAuthorizedAddressResponse) ProtoMethods() *prot } var ( - md_MsgCreateGeneralKeyShare protoreflect.MessageDescriptor - fd_MsgCreateGeneralKeyShare_creator protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShare_id_type protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShare_id_value protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShare_key_share protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShare_key_share_index protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShare_received_timestamp protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShare_received_block_height protoreflect.FieldDescriptor + md_MsgSubmitGeneralKeyShare protoreflect.MessageDescriptor + fd_MsgSubmitGeneralKeyShare_creator protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyShare_id_type protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyShare_id_value protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyShare_key_share protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyShare_key_share_index protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyShare_received_timestamp protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyShare_received_block_height protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_tx_proto_init() - md_MsgCreateGeneralKeyShare = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgCreateGeneralKeyShare") - fd_MsgCreateGeneralKeyShare_creator = md_MsgCreateGeneralKeyShare.Fields().ByName("creator") - fd_MsgCreateGeneralKeyShare_id_type = md_MsgCreateGeneralKeyShare.Fields().ByName("id_type") - fd_MsgCreateGeneralKeyShare_id_value = md_MsgCreateGeneralKeyShare.Fields().ByName("id_value") - fd_MsgCreateGeneralKeyShare_key_share = md_MsgCreateGeneralKeyShare.Fields().ByName("key_share") - fd_MsgCreateGeneralKeyShare_key_share_index = md_MsgCreateGeneralKeyShare.Fields().ByName("key_share_index") - fd_MsgCreateGeneralKeyShare_received_timestamp = md_MsgCreateGeneralKeyShare.Fields().ByName("received_timestamp") - fd_MsgCreateGeneralKeyShare_received_block_height = md_MsgCreateGeneralKeyShare.Fields().ByName("received_block_height") + md_MsgSubmitGeneralKeyShare = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgSubmitGeneralKeyShare") + fd_MsgSubmitGeneralKeyShare_creator = md_MsgSubmitGeneralKeyShare.Fields().ByName("creator") + fd_MsgSubmitGeneralKeyShare_id_type = md_MsgSubmitGeneralKeyShare.Fields().ByName("id_type") + fd_MsgSubmitGeneralKeyShare_id_value = md_MsgSubmitGeneralKeyShare.Fields().ByName("id_value") + fd_MsgSubmitGeneralKeyShare_key_share = md_MsgSubmitGeneralKeyShare.Fields().ByName("key_share") + fd_MsgSubmitGeneralKeyShare_key_share_index = md_MsgSubmitGeneralKeyShare.Fields().ByName("key_share_index") + fd_MsgSubmitGeneralKeyShare_received_timestamp = md_MsgSubmitGeneralKeyShare.Fields().ByName("received_timestamp") + fd_MsgSubmitGeneralKeyShare_received_block_height = md_MsgSubmitGeneralKeyShare.Fields().ByName("received_block_height") } -var _ protoreflect.Message = (*fastReflection_MsgCreateGeneralKeyShare)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSubmitGeneralKeyShare)(nil) -type fastReflection_MsgCreateGeneralKeyShare MsgCreateGeneralKeyShare +type fastReflection_MsgSubmitGeneralKeyShare MsgSubmitGeneralKeyShare -func (x *MsgCreateGeneralKeyShare) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateGeneralKeyShare)(x) +func (x *MsgSubmitGeneralKeyShare) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSubmitGeneralKeyShare)(x) } -func (x *MsgCreateGeneralKeyShare) slowProtoReflect() protoreflect.Message { +func (x *MsgSubmitGeneralKeyShare) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_tx_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8794,43 +8794,43 @@ func (x *MsgCreateGeneralKeyShare) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgCreateGeneralKeyShare_messageType fastReflection_MsgCreateGeneralKeyShare_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateGeneralKeyShare_messageType{} +var _fastReflection_MsgSubmitGeneralKeyShare_messageType fastReflection_MsgSubmitGeneralKeyShare_messageType +var _ protoreflect.MessageType = fastReflection_MsgSubmitGeneralKeyShare_messageType{} -type fastReflection_MsgCreateGeneralKeyShare_messageType struct{} +type fastReflection_MsgSubmitGeneralKeyShare_messageType struct{} -func (x fastReflection_MsgCreateGeneralKeyShare_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateGeneralKeyShare)(nil) +func (x fastReflection_MsgSubmitGeneralKeyShare_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSubmitGeneralKeyShare)(nil) } -func (x fastReflection_MsgCreateGeneralKeyShare_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateGeneralKeyShare) +func (x fastReflection_MsgSubmitGeneralKeyShare_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSubmitGeneralKeyShare) } -func (x fastReflection_MsgCreateGeneralKeyShare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateGeneralKeyShare +func (x fastReflection_MsgSubmitGeneralKeyShare_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitGeneralKeyShare } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgCreateGeneralKeyShare) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateGeneralKeyShare +func (x *fastReflection_MsgSubmitGeneralKeyShare) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitGeneralKeyShare } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgCreateGeneralKeyShare) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateGeneralKeyShare_messageType +func (x *fastReflection_MsgSubmitGeneralKeyShare) Type() protoreflect.MessageType { + return _fastReflection_MsgSubmitGeneralKeyShare_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateGeneralKeyShare) New() protoreflect.Message { - return new(fastReflection_MsgCreateGeneralKeyShare) +func (x *fastReflection_MsgSubmitGeneralKeyShare) New() protoreflect.Message { + return new(fastReflection_MsgSubmitGeneralKeyShare) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCreateGeneralKeyShare) Interface() protoreflect.ProtoMessage { - return (*MsgCreateGeneralKeyShare)(x) +func (x *fastReflection_MsgSubmitGeneralKeyShare) Interface() protoreflect.ProtoMessage { + return (*MsgSubmitGeneralKeyShare)(x) } // Range iterates over every populated field in an undefined order, @@ -8838,46 +8838,46 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgCreateGeneralKeyShare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgSubmitGeneralKeyShare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCreateGeneralKeyShare_creator, value) { + if !f(fd_MsgSubmitGeneralKeyShare_creator, value) { return } } if x.IdType != "" { value := protoreflect.ValueOfString(x.IdType) - if !f(fd_MsgCreateGeneralKeyShare_id_type, value) { + if !f(fd_MsgSubmitGeneralKeyShare_id_type, value) { return } } if x.IdValue != "" { value := protoreflect.ValueOfString(x.IdValue) - if !f(fd_MsgCreateGeneralKeyShare_id_value, value) { + if !f(fd_MsgSubmitGeneralKeyShare_id_value, value) { return } } if x.KeyShare != "" { value := protoreflect.ValueOfString(x.KeyShare) - if !f(fd_MsgCreateGeneralKeyShare_key_share, value) { + if !f(fd_MsgSubmitGeneralKeyShare_key_share, value) { return } } if x.KeyShareIndex != uint64(0) { value := protoreflect.ValueOfUint64(x.KeyShareIndex) - if !f(fd_MsgCreateGeneralKeyShare_key_share_index, value) { + if !f(fd_MsgSubmitGeneralKeyShare_key_share_index, value) { return } } if x.ReceivedTimestamp != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedTimestamp) - if !f(fd_MsgCreateGeneralKeyShare_received_timestamp, value) { + if !f(fd_MsgSubmitGeneralKeyShare_received_timestamp, value) { return } } if x.ReceivedBlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedBlockHeight) - if !f(fd_MsgCreateGeneralKeyShare_received_block_height, value) { + if !f(fd_MsgSubmitGeneralKeyShare_received_block_height, value) { return } } @@ -8894,27 +8894,27 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) Range(f func(protoreflect.Fiel // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCreateGeneralKeyShare) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgSubmitGeneralKeyShare) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.MsgCreateGeneralKeyShare.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.creator": return x.Creator != "" - case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_type": return x.IdType != "" - case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_value": return x.IdValue != "" - case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share": return x.KeyShare != "" - case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share_index": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share_index": return x.KeyShareIndex != uint64(0) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_timestamp": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_timestamp": return x.ReceivedTimestamp != uint64(0) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_block_height": return x.ReceivedBlockHeight != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateGeneralKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShare")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateGeneralKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShare does not contain field %s", fd.FullName())) } } @@ -8924,27 +8924,27 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGeneralKeyShare) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgSubmitGeneralKeyShare) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.MsgCreateGeneralKeyShare.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.creator": x.Creator = "" - case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_type": x.IdType = "" - case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_value": x.IdValue = "" - case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share": x.KeyShare = "" - case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share_index": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share_index": x.KeyShareIndex = uint64(0) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_timestamp": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_timestamp": x.ReceivedTimestamp = uint64(0) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_block_height": x.ReceivedBlockHeight = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateGeneralKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShare")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateGeneralKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShare does not contain field %s", fd.FullName())) } } @@ -8954,34 +8954,34 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) Clear(fd protoreflect.FieldDes // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgCreateGeneralKeyShare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitGeneralKeyShare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.MsgCreateGeneralKeyShare.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_type": value := x.IdType return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_value": value := x.IdValue return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share": value := x.KeyShare return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share_index": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share_index": value := x.KeyShareIndex return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_timestamp": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_timestamp": value := x.ReceivedTimestamp return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_block_height": value := x.ReceivedBlockHeight return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateGeneralKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShare")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateGeneralKeyShare does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShare does not contain field %s", descriptor.FullName())) } } @@ -8995,27 +8995,27 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGeneralKeyShare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgSubmitGeneralKeyShare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.MsgCreateGeneralKeyShare.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.creator": x.Creator = value.Interface().(string) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_type": x.IdType = value.Interface().(string) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_value": x.IdValue = value.Interface().(string) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share": x.KeyShare = value.Interface().(string) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share_index": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share_index": x.KeyShareIndex = value.Uint() - case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_timestamp": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_timestamp": x.ReceivedTimestamp = value.Uint() - case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_block_height": x.ReceivedBlockHeight = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateGeneralKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShare")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateGeneralKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShare does not contain field %s", fd.FullName())) } } @@ -9029,64 +9029,64 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGeneralKeyShare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitGeneralKeyShare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.MsgCreateGeneralKeyShare.creator": - panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_type": - panic(fmt.Errorf("field id_type of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_value": - panic(fmt.Errorf("field id_value of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share": - panic(fmt.Errorf("field key_share of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share_index": - panic(fmt.Errorf("field key_share_index of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_timestamp": - panic(fmt.Errorf("field received_timestamp of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_block_height": - panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.MsgCreateGeneralKeyShare is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.creator": + panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgSubmitGeneralKeyShare is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_type": + panic(fmt.Errorf("field id_type of message fairyring.keyshare.MsgSubmitGeneralKeyShare is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_value": + panic(fmt.Errorf("field id_value of message fairyring.keyshare.MsgSubmitGeneralKeyShare is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share": + panic(fmt.Errorf("field key_share of message fairyring.keyshare.MsgSubmitGeneralKeyShare is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share_index": + panic(fmt.Errorf("field key_share_index of message fairyring.keyshare.MsgSubmitGeneralKeyShare is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_timestamp": + panic(fmt.Errorf("field received_timestamp of message fairyring.keyshare.MsgSubmitGeneralKeyShare is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_block_height": + panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.MsgSubmitGeneralKeyShare is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateGeneralKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShare")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateGeneralKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShare does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgCreateGeneralKeyShare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitGeneralKeyShare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.MsgCreateGeneralKeyShare.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.creator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_type": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateGeneralKeyShare.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_value": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateGeneralKeyShare.key_share_index": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share_index": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_timestamp": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_timestamp": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgCreateGeneralKeyShare.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateGeneralKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShare")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateGeneralKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShare does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgCreateGeneralKeyShare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgSubmitGeneralKeyShare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.MsgCreateGeneralKeyShare", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.MsgSubmitGeneralKeyShare", d.FullName())) } panic("unreachable") } @@ -9094,7 +9094,7 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) WhichOneof(d protoreflect.Oneo // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgCreateGeneralKeyShare) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgSubmitGeneralKeyShare) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9105,7 +9105,7 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGeneralKeyShare) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgSubmitGeneralKeyShare) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9117,7 +9117,7 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) SetUnknown(fields protoreflect // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgCreateGeneralKeyShare) IsValid() bool { +func (x *fastReflection_MsgSubmitGeneralKeyShare) IsValid() bool { return x != nil } @@ -9127,9 +9127,9 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCreateGeneralKeyShare) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgSubmitGeneralKeyShare) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateGeneralKeyShare) + x := input.Message.Interface().(*MsgSubmitGeneralKeyShare) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9176,7 +9176,7 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateGeneralKeyShare) + x := input.Message.Interface().(*MsgSubmitGeneralKeyShare) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9249,7 +9249,7 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateGeneralKeyShare) + x := input.Message.Interface().(*MsgSubmitGeneralKeyShare) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9281,10 +9281,10 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateGeneralKeyShare: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitGeneralKeyShare: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateGeneralKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitGeneralKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9508,39 +9508,39 @@ func (x *fastReflection_MsgCreateGeneralKeyShare) ProtoMethods() *protoiface.Met } var ( - md_MsgCreateGeneralKeyShareResponse protoreflect.MessageDescriptor - fd_MsgCreateGeneralKeyShareResponse_creator protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShareResponse_id_type protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShareResponse_id_value protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShareResponse_key_share protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShareResponse_key_share_index protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShareResponse_received_block_height protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShareResponse_success protoreflect.FieldDescriptor - fd_MsgCreateGeneralKeyShareResponse_error_message protoreflect.FieldDescriptor + md_MsgSubmitGeneralKeyShareResponse protoreflect.MessageDescriptor + fd_MsgSubmitGeneralKeyShareResponse_creator protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyShareResponse_id_type protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyShareResponse_id_value protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyShareResponse_key_share protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyShareResponse_key_share_index protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyShareResponse_received_block_height protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyShareResponse_success protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyShareResponse_error_message protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_tx_proto_init() - md_MsgCreateGeneralKeyShareResponse = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgCreateGeneralKeyShareResponse") - fd_MsgCreateGeneralKeyShareResponse_creator = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("creator") - fd_MsgCreateGeneralKeyShareResponse_id_type = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("id_type") - fd_MsgCreateGeneralKeyShareResponse_id_value = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("id_value") - fd_MsgCreateGeneralKeyShareResponse_key_share = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("key_share") - fd_MsgCreateGeneralKeyShareResponse_key_share_index = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("key_share_index") - fd_MsgCreateGeneralKeyShareResponse_received_block_height = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("received_block_height") - fd_MsgCreateGeneralKeyShareResponse_success = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("success") - fd_MsgCreateGeneralKeyShareResponse_error_message = md_MsgCreateGeneralKeyShareResponse.Fields().ByName("error_message") + md_MsgSubmitGeneralKeyShareResponse = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgSubmitGeneralKeyShareResponse") + fd_MsgSubmitGeneralKeyShareResponse_creator = md_MsgSubmitGeneralKeyShareResponse.Fields().ByName("creator") + fd_MsgSubmitGeneralKeyShareResponse_id_type = md_MsgSubmitGeneralKeyShareResponse.Fields().ByName("id_type") + fd_MsgSubmitGeneralKeyShareResponse_id_value = md_MsgSubmitGeneralKeyShareResponse.Fields().ByName("id_value") + fd_MsgSubmitGeneralKeyShareResponse_key_share = md_MsgSubmitGeneralKeyShareResponse.Fields().ByName("key_share") + fd_MsgSubmitGeneralKeyShareResponse_key_share_index = md_MsgSubmitGeneralKeyShareResponse.Fields().ByName("key_share_index") + fd_MsgSubmitGeneralKeyShareResponse_received_block_height = md_MsgSubmitGeneralKeyShareResponse.Fields().ByName("received_block_height") + fd_MsgSubmitGeneralKeyShareResponse_success = md_MsgSubmitGeneralKeyShareResponse.Fields().ByName("success") + fd_MsgSubmitGeneralKeyShareResponse_error_message = md_MsgSubmitGeneralKeyShareResponse.Fields().ByName("error_message") } -var _ protoreflect.Message = (*fastReflection_MsgCreateGeneralKeyShareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSubmitGeneralKeyShareResponse)(nil) -type fastReflection_MsgCreateGeneralKeyShareResponse MsgCreateGeneralKeyShareResponse +type fastReflection_MsgSubmitGeneralKeyShareResponse MsgSubmitGeneralKeyShareResponse -func (x *MsgCreateGeneralKeyShareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateGeneralKeyShareResponse)(x) +func (x *MsgSubmitGeneralKeyShareResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSubmitGeneralKeyShareResponse)(x) } -func (x *MsgCreateGeneralKeyShareResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgSubmitGeneralKeyShareResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_tx_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9552,43 +9552,43 @@ func (x *MsgCreateGeneralKeyShareResponse) slowProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -var _fastReflection_MsgCreateGeneralKeyShareResponse_messageType fastReflection_MsgCreateGeneralKeyShareResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateGeneralKeyShareResponse_messageType{} +var _fastReflection_MsgSubmitGeneralKeyShareResponse_messageType fastReflection_MsgSubmitGeneralKeyShareResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSubmitGeneralKeyShareResponse_messageType{} -type fastReflection_MsgCreateGeneralKeyShareResponse_messageType struct{} +type fastReflection_MsgSubmitGeneralKeyShareResponse_messageType struct{} -func (x fastReflection_MsgCreateGeneralKeyShareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateGeneralKeyShareResponse)(nil) +func (x fastReflection_MsgSubmitGeneralKeyShareResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSubmitGeneralKeyShareResponse)(nil) } -func (x fastReflection_MsgCreateGeneralKeyShareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateGeneralKeyShareResponse) +func (x fastReflection_MsgSubmitGeneralKeyShareResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSubmitGeneralKeyShareResponse) } -func (x fastReflection_MsgCreateGeneralKeyShareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateGeneralKeyShareResponse +func (x fastReflection_MsgSubmitGeneralKeyShareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitGeneralKeyShareResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateGeneralKeyShareResponse +func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitGeneralKeyShareResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateGeneralKeyShareResponse_messageType +func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSubmitGeneralKeyShareResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateGeneralKeyShareResponse) New() protoreflect.Message { - return new(fastReflection_MsgCreateGeneralKeyShareResponse) +func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) New() protoreflect.Message { + return new(fastReflection_MsgSubmitGeneralKeyShareResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCreateGeneralKeyShareResponse)(x) +func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSubmitGeneralKeyShareResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -9596,52 +9596,52 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Interface() protorefle // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCreateGeneralKeyShareResponse_creator, value) { + if !f(fd_MsgSubmitGeneralKeyShareResponse_creator, value) { return } } if x.IdType != "" { value := protoreflect.ValueOfString(x.IdType) - if !f(fd_MsgCreateGeneralKeyShareResponse_id_type, value) { + if !f(fd_MsgSubmitGeneralKeyShareResponse_id_type, value) { return } } if x.IdValue != "" { value := protoreflect.ValueOfString(x.IdValue) - if !f(fd_MsgCreateGeneralKeyShareResponse_id_value, value) { + if !f(fd_MsgSubmitGeneralKeyShareResponse_id_value, value) { return } } if x.KeyShare != "" { value := protoreflect.ValueOfString(x.KeyShare) - if !f(fd_MsgCreateGeneralKeyShareResponse_key_share, value) { + if !f(fd_MsgSubmitGeneralKeyShareResponse_key_share, value) { return } } if x.KeyShareIndex != uint64(0) { value := protoreflect.ValueOfUint64(x.KeyShareIndex) - if !f(fd_MsgCreateGeneralKeyShareResponse_key_share_index, value) { + if !f(fd_MsgSubmitGeneralKeyShareResponse_key_share_index, value) { return } } if x.ReceivedBlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedBlockHeight) - if !f(fd_MsgCreateGeneralKeyShareResponse_received_block_height, value) { + if !f(fd_MsgSubmitGeneralKeyShareResponse_received_block_height, value) { return } } if x.Success != false { value := protoreflect.ValueOfBool(x.Success) - if !f(fd_MsgCreateGeneralKeyShareResponse_success, value) { + if !f(fd_MsgSubmitGeneralKeyShareResponse_success, value) { return } } if x.ErrorMessage != "" { value := protoreflect.ValueOfString(x.ErrorMessage) - if !f(fd_MsgCreateGeneralKeyShareResponse_error_message, value) { + if !f(fd_MsgSubmitGeneralKeyShareResponse_error_message, value) { return } } @@ -9658,29 +9658,29 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Range(f func(protorefl // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.creator": return x.Creator != "" - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_type": return x.IdType != "" - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_value": return x.IdValue != "" - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share": return x.KeyShare != "" - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share_index": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share_index": return x.KeyShareIndex != uint64(0) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.received_block_height": return x.ReceivedBlockHeight != uint64(0) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.success": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.success": return x.Success != false - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.error_message": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.error_message": return x.ErrorMessage != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse does not contain field %s", fd.FullName())) } } @@ -9690,29 +9690,29 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Has(fd protoreflect.Fi // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.creator": x.Creator = "" - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_type": x.IdType = "" - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_value": x.IdValue = "" - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share": x.KeyShare = "" - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share_index": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share_index": x.KeyShareIndex = uint64(0) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.received_block_height": x.ReceivedBlockHeight = uint64(0) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.success": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.success": x.Success = false - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.error_message": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.error_message": x.ErrorMessage = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse does not contain field %s", fd.FullName())) } } @@ -9722,37 +9722,37 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Clear(fd protoreflect. // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_type": value := x.IdType return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_value": value := x.IdValue return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share": value := x.KeyShare return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share_index": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share_index": value := x.KeyShareIndex return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.received_block_height": value := x.ReceivedBlockHeight return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.success": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.success": value := x.Success return protoreflect.ValueOfBool(value) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.error_message": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.error_message": value := x.ErrorMessage return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateGeneralKeyShareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse does not contain field %s", descriptor.FullName())) } } @@ -9766,29 +9766,29 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Get(descriptor protore // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.creator": x.Creator = value.Interface().(string) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_type": x.IdType = value.Interface().(string) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_value": x.IdValue = value.Interface().(string) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share": x.KeyShare = value.Interface().(string) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share_index": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share_index": x.KeyShareIndex = value.Uint() - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.received_block_height": x.ReceivedBlockHeight = value.Uint() - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.success": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.success": x.Success = value.Bool() - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.error_message": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.error_message": x.ErrorMessage = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse does not contain field %s", fd.FullName())) } } @@ -9802,68 +9802,68 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Set(fd protoreflect.Fi // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGeneralKeyShareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.creator": - panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_type": - panic(fmt.Errorf("field id_type of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_value": - panic(fmt.Errorf("field id_value of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share": - panic(fmt.Errorf("field key_share of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share_index": - panic(fmt.Errorf("field key_share_index of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.received_block_height": - panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.success": - panic(fmt.Errorf("field success of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.error_message": - panic(fmt.Errorf("field error_message of message fairyring.keyshare.MsgCreateGeneralKeyShareResponse is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.creator": + panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_type": + panic(fmt.Errorf("field id_type of message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_value": + panic(fmt.Errorf("field id_value of message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share": + panic(fmt.Errorf("field key_share of message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share_index": + panic(fmt.Errorf("field key_share_index of message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.received_block_height": + panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.success": + panic(fmt.Errorf("field success of message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.error_message": + panic(fmt.Errorf("field error_message of message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgCreateGeneralKeyShareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.creator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_type": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_value": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.key_share_index": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share_index": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.received_block_height": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.success": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.success": return protoreflect.ValueOfBool(false) - case "fairyring.keyshare.MsgCreateGeneralKeyShareResponse.error_message": + case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.error_message": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgCreateGeneralKeyShareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.MsgCreateGeneralKeyShareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.MsgSubmitGeneralKeyShareResponse", d.FullName())) } panic("unreachable") } @@ -9871,7 +9871,7 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) WhichOneof(d protorefl // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgCreateGeneralKeyShareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9882,7 +9882,7 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) GetUnknown() protorefl // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateGeneralKeyShareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9894,7 +9894,7 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) SetUnknown(fields prot // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgCreateGeneralKeyShareResponse) IsValid() bool { +func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) IsValid() bool { return x != nil } @@ -9904,9 +9904,9 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCreateGeneralKeyShareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateGeneralKeyShareResponse) + x := input.Message.Interface().(*MsgSubmitGeneralKeyShareResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9957,7 +9957,7 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) ProtoMethods() *protoi } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateGeneralKeyShareResponse) + x := input.Message.Interface().(*MsgSubmitGeneralKeyShareResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10042,7 +10042,7 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) ProtoMethods() *protoi }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateGeneralKeyShareResponse) + x := input.Message.Interface().(*MsgSubmitGeneralKeyShareResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10074,10 +10074,10 @@ func (x *fastReflection_MsgCreateGeneralKeyShareResponse) ProtoMethods() *protoi fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateGeneralKeyShareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitGeneralKeyShareResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateGeneralKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitGeneralKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -12238,8 +12238,8 @@ func (*MsgDeleteAuthorizedAddressResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_tx_proto_rawDescGZIP(), []int{17} } -// MsgCreateGeneralKeyShare is the Msg/CreateGeneralKeyShare request type. -type MsgCreateGeneralKeyShare struct { +// MsgSubmitGeneralKeyShare is the Msg/CreateGeneralKeyShare request type. +type MsgSubmitGeneralKeyShare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -12253,8 +12253,8 @@ type MsgCreateGeneralKeyShare struct { ReceivedBlockHeight uint64 `protobuf:"varint,7,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` } -func (x *MsgCreateGeneralKeyShare) Reset() { - *x = MsgCreateGeneralKeyShare{} +func (x *MsgSubmitGeneralKeyShare) Reset() { + *x = MsgSubmitGeneralKeyShare{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_tx_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -12262,69 +12262,69 @@ func (x *MsgCreateGeneralKeyShare) Reset() { } } -func (x *MsgCreateGeneralKeyShare) String() string { +func (x *MsgSubmitGeneralKeyShare) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCreateGeneralKeyShare) ProtoMessage() {} +func (*MsgSubmitGeneralKeyShare) ProtoMessage() {} -// Deprecated: Use MsgCreateGeneralKeyShare.ProtoReflect.Descriptor instead. -func (*MsgCreateGeneralKeyShare) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgSubmitGeneralKeyShare.ProtoReflect.Descriptor instead. +func (*MsgSubmitGeneralKeyShare) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_tx_proto_rawDescGZIP(), []int{18} } -func (x *MsgCreateGeneralKeyShare) GetCreator() string { +func (x *MsgSubmitGeneralKeyShare) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgCreateGeneralKeyShare) GetIdType() string { +func (x *MsgSubmitGeneralKeyShare) GetIdType() string { if x != nil { return x.IdType } return "" } -func (x *MsgCreateGeneralKeyShare) GetIdValue() string { +func (x *MsgSubmitGeneralKeyShare) GetIdValue() string { if x != nil { return x.IdValue } return "" } -func (x *MsgCreateGeneralKeyShare) GetKeyShare() string { +func (x *MsgSubmitGeneralKeyShare) GetKeyShare() string { if x != nil { return x.KeyShare } return "" } -func (x *MsgCreateGeneralKeyShare) GetKeyShareIndex() uint64 { +func (x *MsgSubmitGeneralKeyShare) GetKeyShareIndex() uint64 { if x != nil { return x.KeyShareIndex } return 0 } -func (x *MsgCreateGeneralKeyShare) GetReceivedTimestamp() uint64 { +func (x *MsgSubmitGeneralKeyShare) GetReceivedTimestamp() uint64 { if x != nil { return x.ReceivedTimestamp } return 0 } -func (x *MsgCreateGeneralKeyShare) GetReceivedBlockHeight() uint64 { +func (x *MsgSubmitGeneralKeyShare) GetReceivedBlockHeight() uint64 { if x != nil { return x.ReceivedBlockHeight } return 0 } -// MsgCreateGeneralKeyShareResponse defines the response structure for -// executing a MsgCreateGeneralKeyShare message. -type MsgCreateGeneralKeyShareResponse struct { +// MsgSubmitGeneralKeyShareResponse defines the response structure for +// executing a MsgSubmitGeneralKeyShare message. +type MsgSubmitGeneralKeyShareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -12339,8 +12339,8 @@ type MsgCreateGeneralKeyShareResponse struct { ErrorMessage string `protobuf:"bytes,8,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` } -func (x *MsgCreateGeneralKeyShareResponse) Reset() { - *x = MsgCreateGeneralKeyShareResponse{} +func (x *MsgSubmitGeneralKeyShareResponse) Reset() { + *x = MsgSubmitGeneralKeyShareResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_tx_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -12348,67 +12348,67 @@ func (x *MsgCreateGeneralKeyShareResponse) Reset() { } } -func (x *MsgCreateGeneralKeyShareResponse) String() string { +func (x *MsgSubmitGeneralKeyShareResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCreateGeneralKeyShareResponse) ProtoMessage() {} +func (*MsgSubmitGeneralKeyShareResponse) ProtoMessage() {} -// Deprecated: Use MsgCreateGeneralKeyShareResponse.ProtoReflect.Descriptor instead. -func (*MsgCreateGeneralKeyShareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgSubmitGeneralKeyShareResponse.ProtoReflect.Descriptor instead. +func (*MsgSubmitGeneralKeyShareResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_tx_proto_rawDescGZIP(), []int{19} } -func (x *MsgCreateGeneralKeyShareResponse) GetCreator() string { +func (x *MsgSubmitGeneralKeyShareResponse) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgCreateGeneralKeyShareResponse) GetIdType() string { +func (x *MsgSubmitGeneralKeyShareResponse) GetIdType() string { if x != nil { return x.IdType } return "" } -func (x *MsgCreateGeneralKeyShareResponse) GetIdValue() string { +func (x *MsgSubmitGeneralKeyShareResponse) GetIdValue() string { if x != nil { return x.IdValue } return "" } -func (x *MsgCreateGeneralKeyShareResponse) GetKeyShare() string { +func (x *MsgSubmitGeneralKeyShareResponse) GetKeyShare() string { if x != nil { return x.KeyShare } return "" } -func (x *MsgCreateGeneralKeyShareResponse) GetKeyShareIndex() uint64 { +func (x *MsgSubmitGeneralKeyShareResponse) GetKeyShareIndex() uint64 { if x != nil { return x.KeyShareIndex } return 0 } -func (x *MsgCreateGeneralKeyShareResponse) GetReceivedBlockHeight() uint64 { +func (x *MsgSubmitGeneralKeyShareResponse) GetReceivedBlockHeight() uint64 { if x != nil { return x.ReceivedBlockHeight } return 0 } -func (x *MsgCreateGeneralKeyShareResponse) GetSuccess() bool { +func (x *MsgSubmitGeneralKeyShareResponse) GetSuccess() bool { if x != nil { return x.Success } return false } -func (x *MsgCreateGeneralKeyShareResponse) GetErrorMessage() string { +func (x *MsgSubmitGeneralKeyShareResponse) GetErrorMessage() string { if x != nil { return x.ErrorMessage } @@ -12665,7 +12665,7 @@ var file_fairyring_keyshare_tx_proto_rawDesc = []byte{ 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9e, 0x02, 0x0a, - 0x18, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x18, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, @@ -12683,7 +12683,7 @@ var file_fairyring_keyshare_tx_proto_rawDesc = []byte{ 0x69, 0x67, 0x68, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xa8, 0x02, - 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, + 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x07, @@ -12790,13 +12790,13 @@ var file_fairyring_keyshare_tx_proto_rawDesc = []byte{ 0x36, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x15, 0x53, 0x75, 0x62, 0x6d, 0x69, + 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x34, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x65, 0x6e, + 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x17, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, @@ -12853,8 +12853,8 @@ var file_fairyring_keyshare_tx_proto_goTypes = []interface{}{ (*MsgUpdateAuthorizedAddressResponse)(nil), // 15: fairyring.keyshare.MsgUpdateAuthorizedAddressResponse (*MsgDeleteAuthorizedAddress)(nil), // 16: fairyring.keyshare.MsgDeleteAuthorizedAddress (*MsgDeleteAuthorizedAddressResponse)(nil), // 17: fairyring.keyshare.MsgDeleteAuthorizedAddressResponse - (*MsgCreateGeneralKeyShare)(nil), // 18: fairyring.keyshare.MsgCreateGeneralKeyShare - (*MsgCreateGeneralKeyShareResponse)(nil), // 19: fairyring.keyshare.MsgCreateGeneralKeyShareResponse + (*MsgSubmitGeneralKeyShare)(nil), // 18: fairyring.keyshare.MsgSubmitGeneralKeyShare + (*MsgSubmitGeneralKeyShareResponse)(nil), // 19: fairyring.keyshare.MsgSubmitGeneralKeyShareResponse (*MsgSubmitEncryptedKeyshare)(nil), // 20: fairyring.keyshare.MsgSubmitEncryptedKeyshare (*MsgSubmitEncryptedKeyshareResponse)(nil), // 21: fairyring.keyshare.MsgSubmitEncryptedKeyshareResponse (*Params)(nil), // 22: fairyring.keyshare.Params @@ -12873,7 +12873,7 @@ var file_fairyring_keyshare_tx_proto_depIdxs = []int32{ 12, // 9: fairyring.keyshare.Msg.CreateAuthorizedAddress:input_type -> fairyring.keyshare.MsgCreateAuthorizedAddress 14, // 10: fairyring.keyshare.Msg.UpdateAuthorizedAddress:input_type -> fairyring.keyshare.MsgUpdateAuthorizedAddress 16, // 11: fairyring.keyshare.Msg.DeleteAuthorizedAddress:input_type -> fairyring.keyshare.MsgDeleteAuthorizedAddress - 18, // 12: fairyring.keyshare.Msg.CreateGeneralKeyShare:input_type -> fairyring.keyshare.MsgCreateGeneralKeyShare + 18, // 12: fairyring.keyshare.Msg.SubmitGeneralKeyShare:input_type -> fairyring.keyshare.MsgSubmitGeneralKeyShare 20, // 13: fairyring.keyshare.Msg.SubmitEncryptedKeyshare:input_type -> fairyring.keyshare.MsgSubmitEncryptedKeyshare 1, // 14: fairyring.keyshare.Msg.UpdateParams:output_type -> fairyring.keyshare.MsgUpdateParamsResponse 3, // 15: fairyring.keyshare.Msg.RegisterValidator:output_type -> fairyring.keyshare.MsgRegisterValidatorResponse @@ -12884,7 +12884,7 @@ var file_fairyring_keyshare_tx_proto_depIdxs = []int32{ 13, // 20: fairyring.keyshare.Msg.CreateAuthorizedAddress:output_type -> fairyring.keyshare.MsgCreateAuthorizedAddressResponse 15, // 21: fairyring.keyshare.Msg.UpdateAuthorizedAddress:output_type -> fairyring.keyshare.MsgUpdateAuthorizedAddressResponse 17, // 22: fairyring.keyshare.Msg.DeleteAuthorizedAddress:output_type -> fairyring.keyshare.MsgDeleteAuthorizedAddressResponse - 19, // 23: fairyring.keyshare.Msg.CreateGeneralKeyShare:output_type -> fairyring.keyshare.MsgCreateGeneralKeyShareResponse + 19, // 23: fairyring.keyshare.Msg.SubmitGeneralKeyShare:output_type -> fairyring.keyshare.MsgSubmitGeneralKeyShareResponse 21, // 24: fairyring.keyshare.Msg.SubmitEncryptedKeyshare:output_type -> fairyring.keyshare.MsgSubmitEncryptedKeyshareResponse 14, // [14:25] is the sub-list for method output_type 3, // [3:14] is the sub-list for method input_type @@ -13118,7 +13118,7 @@ func file_fairyring_keyshare_tx_proto_init() { } } file_fairyring_keyshare_tx_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCreateGeneralKeyShare); i { + switch v := v.(*MsgSubmitGeneralKeyShare); i { case 0: return &v.state case 1: @@ -13130,7 +13130,7 @@ func file_fairyring_keyshare_tx_proto_init() { } } file_fairyring_keyshare_tx_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCreateGeneralKeyShareResponse); i { + switch v := v.(*MsgSubmitGeneralKeyShareResponse); i { case 0: return &v.state case 1: diff --git a/api/fairyring/keyshare/tx_grpc.pb.go b/api/fairyring/keyshare/tx_grpc.pb.go index 853656b1..756565ed 100644 --- a/api/fairyring/keyshare/tx_grpc.pb.go +++ b/api/fairyring/keyshare/tx_grpc.pb.go @@ -28,7 +28,7 @@ const ( Msg_CreateAuthorizedAddress_FullMethodName = "/fairyring.keyshare.Msg/CreateAuthorizedAddress" Msg_UpdateAuthorizedAddress_FullMethodName = "/fairyring.keyshare.Msg/UpdateAuthorizedAddress" Msg_DeleteAuthorizedAddress_FullMethodName = "/fairyring.keyshare.Msg/DeleteAuthorizedAddress" - Msg_CreateGeneralKeyShare_FullMethodName = "/fairyring.keyshare.Msg/CreateGeneralKeyShare" + Msg_SubmitGeneralKeyShare_FullMethodName = "/fairyring.keyshare.Msg/SubmitGeneralKeyShare" Msg_SubmitEncryptedKeyshare_FullMethodName = "/fairyring.keyshare.Msg/SubmitEncryptedKeyshare" ) @@ -62,9 +62,9 @@ type MsgClient interface { // DeleteAuthorizedAddress defines an operation to revoke the // authorization of a previously authorized address DeleteAuthorizedAddress(ctx context.Context, in *MsgDeleteAuthorizedAddress, opts ...grpc.CallOption) (*MsgDeleteAuthorizedAddressResponse, error) - // CreateGeneralKeyShare defines an operation to submit a + // SubmitGeneralKeyShare defines an operation to submit a // general keyshare from a registered validator - CreateGeneralKeyShare(ctx context.Context, in *MsgCreateGeneralKeyShare, opts ...grpc.CallOption) (*MsgCreateGeneralKeyShareResponse, error) + SubmitGeneralKeyShare(ctx context.Context, in *MsgSubmitGeneralKeyShare, opts ...grpc.CallOption) (*MsgSubmitGeneralKeyShareResponse, error) // SubmitEncryptedKeyshare defines an operation to submit // an encrypted keyshare from a registered validator SubmitEncryptedKeyshare(ctx context.Context, in *MsgSubmitEncryptedKeyshare, opts ...grpc.CallOption) (*MsgSubmitEncryptedKeyshareResponse, error) @@ -159,9 +159,9 @@ func (c *msgClient) DeleteAuthorizedAddress(ctx context.Context, in *MsgDeleteAu return out, nil } -func (c *msgClient) CreateGeneralKeyShare(ctx context.Context, in *MsgCreateGeneralKeyShare, opts ...grpc.CallOption) (*MsgCreateGeneralKeyShareResponse, error) { - out := new(MsgCreateGeneralKeyShareResponse) - err := c.cc.Invoke(ctx, Msg_CreateGeneralKeyShare_FullMethodName, in, out, opts...) +func (c *msgClient) SubmitGeneralKeyShare(ctx context.Context, in *MsgSubmitGeneralKeyShare, opts ...grpc.CallOption) (*MsgSubmitGeneralKeyShareResponse, error) { + out := new(MsgSubmitGeneralKeyShareResponse) + err := c.cc.Invoke(ctx, Msg_SubmitGeneralKeyShare_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -207,9 +207,9 @@ type MsgServer interface { // DeleteAuthorizedAddress defines an operation to revoke the // authorization of a previously authorized address DeleteAuthorizedAddress(context.Context, *MsgDeleteAuthorizedAddress) (*MsgDeleteAuthorizedAddressResponse, error) - // CreateGeneralKeyShare defines an operation to submit a + // SubmitGeneralKeyShare defines an operation to submit a // general keyshare from a registered validator - CreateGeneralKeyShare(context.Context, *MsgCreateGeneralKeyShare) (*MsgCreateGeneralKeyShareResponse, error) + SubmitGeneralKeyShare(context.Context, *MsgSubmitGeneralKeyShare) (*MsgSubmitGeneralKeyShareResponse, error) // SubmitEncryptedKeyshare defines an operation to submit // an encrypted keyshare from a registered validator SubmitEncryptedKeyshare(context.Context, *MsgSubmitEncryptedKeyshare) (*MsgSubmitEncryptedKeyshareResponse, error) @@ -247,8 +247,8 @@ func (UnimplementedMsgServer) UpdateAuthorizedAddress(context.Context, *MsgUpdat func (UnimplementedMsgServer) DeleteAuthorizedAddress(context.Context, *MsgDeleteAuthorizedAddress) (*MsgDeleteAuthorizedAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteAuthorizedAddress not implemented") } -func (UnimplementedMsgServer) CreateGeneralKeyShare(context.Context, *MsgCreateGeneralKeyShare) (*MsgCreateGeneralKeyShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateGeneralKeyShare not implemented") +func (UnimplementedMsgServer) SubmitGeneralKeyShare(context.Context, *MsgSubmitGeneralKeyShare) (*MsgSubmitGeneralKeyShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SubmitGeneralKeyShare not implemented") } func (UnimplementedMsgServer) SubmitEncryptedKeyshare(context.Context, *MsgSubmitEncryptedKeyshare) (*MsgSubmitEncryptedKeyshareResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SubmitEncryptedKeyshare not implemented") @@ -428,20 +428,20 @@ func _Msg_DeleteAuthorizedAddress_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } -func _Msg_CreateGeneralKeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreateGeneralKeyShare) +func _Msg_SubmitGeneralKeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSubmitGeneralKeyShare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).CreateGeneralKeyShare(ctx, in) + return srv.(MsgServer).SubmitGeneralKeyShare(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Msg_CreateGeneralKeyShare_FullMethodName, + FullMethod: Msg_SubmitGeneralKeyShare_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateGeneralKeyShare(ctx, req.(*MsgCreateGeneralKeyShare)) + return srv.(MsgServer).SubmitGeneralKeyShare(ctx, req.(*MsgSubmitGeneralKeyShare)) } return interceptor(ctx, in, info, handler) } @@ -508,8 +508,8 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ Handler: _Msg_DeleteAuthorizedAddress_Handler, }, { - MethodName: "CreateGeneralKeyShare", - Handler: _Msg_CreateGeneralKeyShare_Handler, + MethodName: "SubmitGeneralKeyShare", + Handler: _Msg_SubmitGeneralKeyShare_Handler, }, { MethodName: "SubmitEncryptedKeyshare", diff --git a/api/fairyring/pep/aggregated_key_share.pulsar.go b/api/fairyring/pep/decryption_key.pulsar.go similarity index 63% rename from api/fairyring/pep/aggregated_key_share.pulsar.go rename to api/fairyring/pep/decryption_key.pulsar.go index efc420e3..ef7165b7 100644 --- a/api/fairyring/pep/aggregated_key_share.pulsar.go +++ b/api/fairyring/pep/decryption_key.pulsar.go @@ -13,30 +13,30 @@ import ( ) var ( - md_AggregatedKeyShare protoreflect.MessageDescriptor - fd_AggregatedKeyShare_height protoreflect.FieldDescriptor - fd_AggregatedKeyShare_data protoreflect.FieldDescriptor - fd_AggregatedKeyShare_creator protoreflect.FieldDescriptor + md_DecryptionKey protoreflect.MessageDescriptor + fd_DecryptionKey_height protoreflect.FieldDescriptor + fd_DecryptionKey_data protoreflect.FieldDescriptor + fd_DecryptionKey_creator protoreflect.FieldDescriptor ) func init() { - file_fairyring_pep_aggregated_key_share_proto_init() - md_AggregatedKeyShare = File_fairyring_pep_aggregated_key_share_proto.Messages().ByName("AggregatedKeyShare") - fd_AggregatedKeyShare_height = md_AggregatedKeyShare.Fields().ByName("height") - fd_AggregatedKeyShare_data = md_AggregatedKeyShare.Fields().ByName("data") - fd_AggregatedKeyShare_creator = md_AggregatedKeyShare.Fields().ByName("creator") + file_fairyring_pep_decryption_key_proto_init() + md_DecryptionKey = File_fairyring_pep_decryption_key_proto.Messages().ByName("DecryptionKey") + fd_DecryptionKey_height = md_DecryptionKey.Fields().ByName("height") + fd_DecryptionKey_data = md_DecryptionKey.Fields().ByName("data") + fd_DecryptionKey_creator = md_DecryptionKey.Fields().ByName("creator") } -var _ protoreflect.Message = (*fastReflection_AggregatedKeyShare)(nil) +var _ protoreflect.Message = (*fastReflection_DecryptionKey)(nil) -type fastReflection_AggregatedKeyShare AggregatedKeyShare +type fastReflection_DecryptionKey DecryptionKey -func (x *AggregatedKeyShare) ProtoReflect() protoreflect.Message { - return (*fastReflection_AggregatedKeyShare)(x) +func (x *DecryptionKey) ProtoReflect() protoreflect.Message { + return (*fastReflection_DecryptionKey)(x) } -func (x *AggregatedKeyShare) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_pep_aggregated_key_share_proto_msgTypes[0] +func (x *DecryptionKey) slowProtoReflect() protoreflect.Message { + mi := &file_fairyring_pep_decryption_key_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -47,43 +47,43 @@ func (x *AggregatedKeyShare) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_AggregatedKeyShare_messageType fastReflection_AggregatedKeyShare_messageType -var _ protoreflect.MessageType = fastReflection_AggregatedKeyShare_messageType{} +var _fastReflection_DecryptionKey_messageType fastReflection_DecryptionKey_messageType +var _ protoreflect.MessageType = fastReflection_DecryptionKey_messageType{} -type fastReflection_AggregatedKeyShare_messageType struct{} +type fastReflection_DecryptionKey_messageType struct{} -func (x fastReflection_AggregatedKeyShare_messageType) Zero() protoreflect.Message { - return (*fastReflection_AggregatedKeyShare)(nil) +func (x fastReflection_DecryptionKey_messageType) Zero() protoreflect.Message { + return (*fastReflection_DecryptionKey)(nil) } -func (x fastReflection_AggregatedKeyShare_messageType) New() protoreflect.Message { - return new(fastReflection_AggregatedKeyShare) +func (x fastReflection_DecryptionKey_messageType) New() protoreflect.Message { + return new(fastReflection_DecryptionKey) } -func (x fastReflection_AggregatedKeyShare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_AggregatedKeyShare +func (x fastReflection_DecryptionKey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_DecryptionKey } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_AggregatedKeyShare) Descriptor() protoreflect.MessageDescriptor { - return md_AggregatedKeyShare +func (x *fastReflection_DecryptionKey) Descriptor() protoreflect.MessageDescriptor { + return md_DecryptionKey } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_AggregatedKeyShare) Type() protoreflect.MessageType { - return _fastReflection_AggregatedKeyShare_messageType +func (x *fastReflection_DecryptionKey) Type() protoreflect.MessageType { + return _fastReflection_DecryptionKey_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_AggregatedKeyShare) New() protoreflect.Message { - return new(fastReflection_AggregatedKeyShare) +func (x *fastReflection_DecryptionKey) New() protoreflect.Message { + return new(fastReflection_DecryptionKey) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_AggregatedKeyShare) Interface() protoreflect.ProtoMessage { - return (*AggregatedKeyShare)(x) +func (x *fastReflection_DecryptionKey) Interface() protoreflect.ProtoMessage { + return (*DecryptionKey)(x) } // Range iterates over every populated field in an undefined order, @@ -91,22 +91,22 @@ func (x *fastReflection_AggregatedKeyShare) Interface() protoreflect.ProtoMessag // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_AggregatedKeyShare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_DecryptionKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Height != uint64(0) { value := protoreflect.ValueOfUint64(x.Height) - if !f(fd_AggregatedKeyShare_height, value) { + if !f(fd_DecryptionKey_height, value) { return } } if x.Data != "" { value := protoreflect.ValueOfString(x.Data) - if !f(fd_AggregatedKeyShare_data, value) { + if !f(fd_DecryptionKey_data, value) { return } } if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_AggregatedKeyShare_creator, value) { + if !f(fd_DecryptionKey_creator, value) { return } } @@ -123,19 +123,19 @@ func (x *fastReflection_AggregatedKeyShare) Range(f func(protoreflect.FieldDescr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_AggregatedKeyShare) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_DecryptionKey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.AggregatedKeyShare.height": + case "fairyring.pep.DecryptionKey.height": return x.Height != uint64(0) - case "fairyring.pep.AggregatedKeyShare.data": + case "fairyring.pep.DecryptionKey.data": return x.Data != "" - case "fairyring.pep.AggregatedKeyShare.creator": + case "fairyring.pep.DecryptionKey.creator": return x.Creator != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.AggregatedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.DecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.AggregatedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.DecryptionKey does not contain field %s", fd.FullName())) } } @@ -145,19 +145,19 @@ func (x *fastReflection_AggregatedKeyShare) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AggregatedKeyShare) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_DecryptionKey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.AggregatedKeyShare.height": + case "fairyring.pep.DecryptionKey.height": x.Height = uint64(0) - case "fairyring.pep.AggregatedKeyShare.data": + case "fairyring.pep.DecryptionKey.data": x.Data = "" - case "fairyring.pep.AggregatedKeyShare.creator": + case "fairyring.pep.DecryptionKey.creator": x.Creator = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.AggregatedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.DecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.AggregatedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.DecryptionKey does not contain field %s", fd.FullName())) } } @@ -167,22 +167,22 @@ func (x *fastReflection_AggregatedKeyShare) Clear(fd protoreflect.FieldDescripto // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_AggregatedKeyShare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_DecryptionKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.AggregatedKeyShare.height": + case "fairyring.pep.DecryptionKey.height": value := x.Height return protoreflect.ValueOfUint64(value) - case "fairyring.pep.AggregatedKeyShare.data": + case "fairyring.pep.DecryptionKey.data": value := x.Data return protoreflect.ValueOfString(value) - case "fairyring.pep.AggregatedKeyShare.creator": + case "fairyring.pep.DecryptionKey.creator": value := x.Creator return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.AggregatedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.DecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.AggregatedKeyShare does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.DecryptionKey does not contain field %s", descriptor.FullName())) } } @@ -196,19 +196,19 @@ func (x *fastReflection_AggregatedKeyShare) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AggregatedKeyShare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_DecryptionKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.AggregatedKeyShare.height": + case "fairyring.pep.DecryptionKey.height": x.Height = value.Uint() - case "fairyring.pep.AggregatedKeyShare.data": + case "fairyring.pep.DecryptionKey.data": x.Data = value.Interface().(string) - case "fairyring.pep.AggregatedKeyShare.creator": + case "fairyring.pep.DecryptionKey.creator": x.Creator = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.AggregatedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.DecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.AggregatedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.DecryptionKey does not contain field %s", fd.FullName())) } } @@ -222,48 +222,48 @@ func (x *fastReflection_AggregatedKeyShare) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AggregatedKeyShare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_DecryptionKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.AggregatedKeyShare.height": - panic(fmt.Errorf("field height of message fairyring.pep.AggregatedKeyShare is not mutable")) - case "fairyring.pep.AggregatedKeyShare.data": - panic(fmt.Errorf("field data of message fairyring.pep.AggregatedKeyShare is not mutable")) - case "fairyring.pep.AggregatedKeyShare.creator": - panic(fmt.Errorf("field creator of message fairyring.pep.AggregatedKeyShare is not mutable")) + case "fairyring.pep.DecryptionKey.height": + panic(fmt.Errorf("field height of message fairyring.pep.DecryptionKey is not mutable")) + case "fairyring.pep.DecryptionKey.data": + panic(fmt.Errorf("field data of message fairyring.pep.DecryptionKey is not mutable")) + case "fairyring.pep.DecryptionKey.creator": + panic(fmt.Errorf("field creator of message fairyring.pep.DecryptionKey is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.AggregatedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.DecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.AggregatedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.DecryptionKey does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_AggregatedKeyShare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_DecryptionKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.AggregatedKeyShare.height": + case "fairyring.pep.DecryptionKey.height": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.pep.AggregatedKeyShare.data": + case "fairyring.pep.DecryptionKey.data": return protoreflect.ValueOfString("") - case "fairyring.pep.AggregatedKeyShare.creator": + case "fairyring.pep.DecryptionKey.creator": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.AggregatedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.DecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.AggregatedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.DecryptionKey does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_AggregatedKeyShare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_DecryptionKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.AggregatedKeyShare", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.DecryptionKey", d.FullName())) } panic("unreachable") } @@ -271,7 +271,7 @@ func (x *fastReflection_AggregatedKeyShare) WhichOneof(d protoreflect.OneofDescr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_AggregatedKeyShare) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_DecryptionKey) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -282,7 +282,7 @@ func (x *fastReflection_AggregatedKeyShare) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AggregatedKeyShare) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_DecryptionKey) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -294,7 +294,7 @@ func (x *fastReflection_AggregatedKeyShare) SetUnknown(fields protoreflect.RawFi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_AggregatedKeyShare) IsValid() bool { +func (x *fastReflection_DecryptionKey) IsValid() bool { return x != nil } @@ -304,9 +304,9 @@ func (x *fastReflection_AggregatedKeyShare) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_AggregatedKeyShare) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_DecryptionKey) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*AggregatedKeyShare) + x := input.Message.Interface().(*DecryptionKey) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -339,7 +339,7 @@ func (x *fastReflection_AggregatedKeyShare) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*AggregatedKeyShare) + x := input.Message.Interface().(*DecryptionKey) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -388,7 +388,7 @@ func (x *fastReflection_AggregatedKeyShare) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*AggregatedKeyShare) + x := input.Message.Interface().(*DecryptionKey) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -420,10 +420,10 @@ func (x *fastReflection_AggregatedKeyShare) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AggregatedKeyShare: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AggregatedKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -548,7 +548,7 @@ func (x *fastReflection_AggregatedKeyShare) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: fairyring/pep/aggregated_key_share.proto +// source: fairyring/pep/decryption_key.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -557,9 +557,9 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// AggregatedKeyShare defines the structure to store -// the aggregated keyshare of a particular identity -type AggregatedKeyShare struct { +// DecryptionKey defines the structure to store +// the decryption key of a particular identity +type DecryptionKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -569,62 +569,61 @@ type AggregatedKeyShare struct { Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"` } -func (x *AggregatedKeyShare) Reset() { - *x = AggregatedKeyShare{} +func (x *DecryptionKey) Reset() { + *x = DecryptionKey{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_pep_aggregated_key_share_proto_msgTypes[0] + mi := &file_fairyring_pep_decryption_key_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AggregatedKeyShare) String() string { +func (x *DecryptionKey) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AggregatedKeyShare) ProtoMessage() {} +func (*DecryptionKey) ProtoMessage() {} -// Deprecated: Use AggregatedKeyShare.ProtoReflect.Descriptor instead. -func (*AggregatedKeyShare) Descriptor() ([]byte, []int) { - return file_fairyring_pep_aggregated_key_share_proto_rawDescGZIP(), []int{0} +// Deprecated: Use DecryptionKey.ProtoReflect.Descriptor instead. +func (*DecryptionKey) Descriptor() ([]byte, []int) { + return file_fairyring_pep_decryption_key_proto_rawDescGZIP(), []int{0} } -func (x *AggregatedKeyShare) GetHeight() uint64 { +func (x *DecryptionKey) GetHeight() uint64 { if x != nil { return x.Height } return 0 } -func (x *AggregatedKeyShare) GetData() string { +func (x *DecryptionKey) GetData() string { if x != nil { return x.Data } return "" } -func (x *AggregatedKeyShare) GetCreator() string { +func (x *DecryptionKey) GetCreator() string { if x != nil { return x.Creator } return "" } -var File_fairyring_pep_aggregated_key_share_proto protoreflect.FileDescriptor - -var file_fairyring_pep_aggregated_key_share_proto_rawDesc = []byte{ - 0x0a, 0x28, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, - 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x22, 0x5a, 0x0a, 0x12, 0x41, 0x67, 0x67, - 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 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, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x42, 0xa1, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x17, 0x41, 0x67, 0x67, - 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x50, +var File_fairyring_pep_decryption_key_proto protoreflect.FileDescriptor + +var file_fairyring_pep_decryption_key_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, + 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x70, 0x65, 0x70, 0x22, 0x55, 0x0a, 0x0d, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x4b, 0x65, 0x79, 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, + 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x9c, 0x01, 0x0a, 0x11, 0x63, + 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, + 0x42, 0x12, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, @@ -637,22 +636,22 @@ var file_fairyring_pep_aggregated_key_share_proto_rawDesc = []byte{ } var ( - file_fairyring_pep_aggregated_key_share_proto_rawDescOnce sync.Once - file_fairyring_pep_aggregated_key_share_proto_rawDescData = file_fairyring_pep_aggregated_key_share_proto_rawDesc + file_fairyring_pep_decryption_key_proto_rawDescOnce sync.Once + file_fairyring_pep_decryption_key_proto_rawDescData = file_fairyring_pep_decryption_key_proto_rawDesc ) -func file_fairyring_pep_aggregated_key_share_proto_rawDescGZIP() []byte { - file_fairyring_pep_aggregated_key_share_proto_rawDescOnce.Do(func() { - file_fairyring_pep_aggregated_key_share_proto_rawDescData = protoimpl.X.CompressGZIP(file_fairyring_pep_aggregated_key_share_proto_rawDescData) +func file_fairyring_pep_decryption_key_proto_rawDescGZIP() []byte { + file_fairyring_pep_decryption_key_proto_rawDescOnce.Do(func() { + file_fairyring_pep_decryption_key_proto_rawDescData = protoimpl.X.CompressGZIP(file_fairyring_pep_decryption_key_proto_rawDescData) }) - return file_fairyring_pep_aggregated_key_share_proto_rawDescData + return file_fairyring_pep_decryption_key_proto_rawDescData } -var file_fairyring_pep_aggregated_key_share_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_fairyring_pep_aggregated_key_share_proto_goTypes = []interface{}{ - (*AggregatedKeyShare)(nil), // 0: fairyring.pep.AggregatedKeyShare +var file_fairyring_pep_decryption_key_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_fairyring_pep_decryption_key_proto_goTypes = []interface{}{ + (*DecryptionKey)(nil), // 0: fairyring.pep.DecryptionKey } -var file_fairyring_pep_aggregated_key_share_proto_depIdxs = []int32{ +var file_fairyring_pep_decryption_key_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 @@ -660,14 +659,14 @@ var file_fairyring_pep_aggregated_key_share_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_fairyring_pep_aggregated_key_share_proto_init() } -func file_fairyring_pep_aggregated_key_share_proto_init() { - if File_fairyring_pep_aggregated_key_share_proto != nil { +func init() { file_fairyring_pep_decryption_key_proto_init() } +func file_fairyring_pep_decryption_key_proto_init() { + if File_fairyring_pep_decryption_key_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_fairyring_pep_aggregated_key_share_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AggregatedKeyShare); i { + file_fairyring_pep_decryption_key_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DecryptionKey); i { case 0: return &v.state case 1: @@ -683,18 +682,18 @@ func file_fairyring_pep_aggregated_key_share_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fairyring_pep_aggregated_key_share_proto_rawDesc, + RawDescriptor: file_fairyring_pep_decryption_key_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_fairyring_pep_aggregated_key_share_proto_goTypes, - DependencyIndexes: file_fairyring_pep_aggregated_key_share_proto_depIdxs, - MessageInfos: file_fairyring_pep_aggregated_key_share_proto_msgTypes, + GoTypes: file_fairyring_pep_decryption_key_proto_goTypes, + DependencyIndexes: file_fairyring_pep_decryption_key_proto_depIdxs, + MessageInfos: file_fairyring_pep_decryption_key_proto_msgTypes, }.Build() - File_fairyring_pep_aggregated_key_share_proto = out.File - file_fairyring_pep_aggregated_key_share_proto_rawDesc = nil - file_fairyring_pep_aggregated_key_share_proto_goTypes = nil - file_fairyring_pep_aggregated_key_share_proto_depIdxs = nil + File_fairyring_pep_decryption_key_proto = out.File + file_fairyring_pep_decryption_key_proto_rawDesc = nil + file_fairyring_pep_decryption_key_proto_goTypes = nil + file_fairyring_pep_decryption_key_proto_depIdxs = nil } diff --git a/api/fairyring/pep/encrypted_tx.pulsar.go b/api/fairyring/pep/encrypted_tx.pulsar.go index 9225bc4b..c0220f40 100644 --- a/api/fairyring/pep/encrypted_tx.pulsar.go +++ b/api/fairyring/pep/encrypted_tx.pulsar.go @@ -827,14 +827,14 @@ func (x *_EncryptedTxArray_1_list) IsValid() bool { } var ( - md_EncryptedTxArray protoreflect.MessageDescriptor - fd_EncryptedTxArray_encrypted_tx protoreflect.FieldDescriptor + md_EncryptedTxArray protoreflect.MessageDescriptor + fd_EncryptedTxArray_encrypted_txs protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_encrypted_tx_proto_init() md_EncryptedTxArray = File_fairyring_pep_encrypted_tx_proto.Messages().ByName("EncryptedTxArray") - fd_EncryptedTxArray_encrypted_tx = md_EncryptedTxArray.Fields().ByName("encrypted_tx") + fd_EncryptedTxArray_encrypted_txs = md_EncryptedTxArray.Fields().ByName("encrypted_txs") } var _ protoreflect.Message = (*fastReflection_EncryptedTxArray)(nil) @@ -902,9 +902,9 @@ func (x *fastReflection_EncryptedTxArray) Interface() protoreflect.ProtoMessage // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_EncryptedTxArray) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.EncryptedTx) != 0 { - value := protoreflect.ValueOfList(&_EncryptedTxArray_1_list{list: &x.EncryptedTx}) - if !f(fd_EncryptedTxArray_encrypted_tx, value) { + if len(x.EncryptedTxs) != 0 { + value := protoreflect.ValueOfList(&_EncryptedTxArray_1_list{list: &x.EncryptedTxs}) + if !f(fd_EncryptedTxArray_encrypted_txs, value) { return } } @@ -923,8 +923,8 @@ func (x *fastReflection_EncryptedTxArray) Range(f func(protoreflect.FieldDescrip // a repeated field is populated if it is non-empty. func (x *fastReflection_EncryptedTxArray) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.EncryptedTxArray.encrypted_tx": - return len(x.EncryptedTx) != 0 + case "fairyring.pep.EncryptedTxArray.encrypted_txs": + return len(x.EncryptedTxs) != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.EncryptedTxArray")) @@ -941,8 +941,8 @@ func (x *fastReflection_EncryptedTxArray) Has(fd protoreflect.FieldDescriptor) b // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EncryptedTxArray) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.EncryptedTxArray.encrypted_tx": - x.EncryptedTx = nil + case "fairyring.pep.EncryptedTxArray.encrypted_txs": + x.EncryptedTxs = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.EncryptedTxArray")) @@ -959,11 +959,11 @@ func (x *fastReflection_EncryptedTxArray) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_EncryptedTxArray) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.EncryptedTxArray.encrypted_tx": - if len(x.EncryptedTx) == 0 { + case "fairyring.pep.EncryptedTxArray.encrypted_txs": + if len(x.EncryptedTxs) == 0 { return protoreflect.ValueOfList(&_EncryptedTxArray_1_list{}) } - listValue := &_EncryptedTxArray_1_list{list: &x.EncryptedTx} + listValue := &_EncryptedTxArray_1_list{list: &x.EncryptedTxs} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { @@ -985,10 +985,10 @@ func (x *fastReflection_EncryptedTxArray) Get(descriptor protoreflect.FieldDescr // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EncryptedTxArray) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.EncryptedTxArray.encrypted_tx": + case "fairyring.pep.EncryptedTxArray.encrypted_txs": lv := value.List() clv := lv.(*_EncryptedTxArray_1_list) - x.EncryptedTx = *clv.list + x.EncryptedTxs = *clv.list default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.EncryptedTxArray")) @@ -1009,11 +1009,11 @@ func (x *fastReflection_EncryptedTxArray) Set(fd protoreflect.FieldDescriptor, v // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EncryptedTxArray) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.EncryptedTxArray.encrypted_tx": - if x.EncryptedTx == nil { - x.EncryptedTx = []*EncryptedTx{} + case "fairyring.pep.EncryptedTxArray.encrypted_txs": + if x.EncryptedTxs == nil { + x.EncryptedTxs = []*EncryptedTx{} } - value := &_EncryptedTxArray_1_list{list: &x.EncryptedTx} + value := &_EncryptedTxArray_1_list{list: &x.EncryptedTxs} return protoreflect.ValueOfList(value) default: if fd.IsExtension() { @@ -1028,7 +1028,7 @@ func (x *fastReflection_EncryptedTxArray) Mutable(fd protoreflect.FieldDescripto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_EncryptedTxArray) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.EncryptedTxArray.encrypted_tx": + case "fairyring.pep.EncryptedTxArray.encrypted_txs": list := []*EncryptedTx{} return protoreflect.ValueOfList(&_EncryptedTxArray_1_list{list: &list}) default: @@ -1100,8 +1100,8 @@ func (x *fastReflection_EncryptedTxArray) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if len(x.EncryptedTx) > 0 { - for _, e := range x.EncryptedTx { + if len(x.EncryptedTxs) > 0 { + for _, e := range x.EncryptedTxs { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -1135,9 +1135,9 @@ func (x *fastReflection_EncryptedTxArray) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.EncryptedTx) > 0 { - for iNdEx := len(x.EncryptedTx) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.EncryptedTx[iNdEx]) + if len(x.EncryptedTxs) > 0 { + for iNdEx := len(x.EncryptedTxs) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.EncryptedTxs[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1202,7 +1202,7 @@ func (x *fastReflection_EncryptedTxArray) ProtoMethods() *protoiface.Methods { switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncryptedTx", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncryptedTxs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1229,8 +1229,8 @@ func (x *fastReflection_EncryptedTxArray) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.EncryptedTx = append(x.EncryptedTx, &EncryptedTx{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EncryptedTx[len(x.EncryptedTx)-1]); err != nil { + x.EncryptedTxs = append(x.EncryptedTxs, &EncryptedTx{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EncryptedTxs[len(x.EncryptedTxs)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -1996,14 +1996,14 @@ func (x *_GeneralEncryptedTxArray_1_list) IsValid() bool { } var ( - md_GeneralEncryptedTxArray protoreflect.MessageDescriptor - fd_GeneralEncryptedTxArray_encrypted_tx protoreflect.FieldDescriptor + md_GeneralEncryptedTxArray protoreflect.MessageDescriptor + fd_GeneralEncryptedTxArray_encrypted_txs protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_encrypted_tx_proto_init() md_GeneralEncryptedTxArray = File_fairyring_pep_encrypted_tx_proto.Messages().ByName("GeneralEncryptedTxArray") - fd_GeneralEncryptedTxArray_encrypted_tx = md_GeneralEncryptedTxArray.Fields().ByName("encrypted_tx") + fd_GeneralEncryptedTxArray_encrypted_txs = md_GeneralEncryptedTxArray.Fields().ByName("encrypted_txs") } var _ protoreflect.Message = (*fastReflection_GeneralEncryptedTxArray)(nil) @@ -2071,9 +2071,9 @@ func (x *fastReflection_GeneralEncryptedTxArray) Interface() protoreflect.ProtoM // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_GeneralEncryptedTxArray) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.EncryptedTx) != 0 { - value := protoreflect.ValueOfList(&_GeneralEncryptedTxArray_1_list{list: &x.EncryptedTx}) - if !f(fd_GeneralEncryptedTxArray_encrypted_tx, value) { + if len(x.EncryptedTxs) != 0 { + value := protoreflect.ValueOfList(&_GeneralEncryptedTxArray_1_list{list: &x.EncryptedTxs}) + if !f(fd_GeneralEncryptedTxArray_encrypted_txs, value) { return } } @@ -2092,8 +2092,8 @@ func (x *fastReflection_GeneralEncryptedTxArray) Range(f func(protoreflect.Field // a repeated field is populated if it is non-empty. func (x *fastReflection_GeneralEncryptedTxArray) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.GeneralEncryptedTxArray.encrypted_tx": - return len(x.EncryptedTx) != 0 + case "fairyring.pep.GeneralEncryptedTxArray.encrypted_txs": + return len(x.EncryptedTxs) != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.GeneralEncryptedTxArray")) @@ -2110,8 +2110,8 @@ func (x *fastReflection_GeneralEncryptedTxArray) Has(fd protoreflect.FieldDescri // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GeneralEncryptedTxArray) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.GeneralEncryptedTxArray.encrypted_tx": - x.EncryptedTx = nil + case "fairyring.pep.GeneralEncryptedTxArray.encrypted_txs": + x.EncryptedTxs = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.GeneralEncryptedTxArray")) @@ -2128,11 +2128,11 @@ func (x *fastReflection_GeneralEncryptedTxArray) Clear(fd protoreflect.FieldDesc // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_GeneralEncryptedTxArray) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.GeneralEncryptedTxArray.encrypted_tx": - if len(x.EncryptedTx) == 0 { + case "fairyring.pep.GeneralEncryptedTxArray.encrypted_txs": + if len(x.EncryptedTxs) == 0 { return protoreflect.ValueOfList(&_GeneralEncryptedTxArray_1_list{}) } - listValue := &_GeneralEncryptedTxArray_1_list{list: &x.EncryptedTx} + listValue := &_GeneralEncryptedTxArray_1_list{list: &x.EncryptedTxs} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { @@ -2154,10 +2154,10 @@ func (x *fastReflection_GeneralEncryptedTxArray) Get(descriptor protoreflect.Fie // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GeneralEncryptedTxArray) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.GeneralEncryptedTxArray.encrypted_tx": + case "fairyring.pep.GeneralEncryptedTxArray.encrypted_txs": lv := value.List() clv := lv.(*_GeneralEncryptedTxArray_1_list) - x.EncryptedTx = *clv.list + x.EncryptedTxs = *clv.list default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.GeneralEncryptedTxArray")) @@ -2178,11 +2178,11 @@ func (x *fastReflection_GeneralEncryptedTxArray) Set(fd protoreflect.FieldDescri // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_GeneralEncryptedTxArray) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.GeneralEncryptedTxArray.encrypted_tx": - if x.EncryptedTx == nil { - x.EncryptedTx = []*GeneralEncryptedTx{} + case "fairyring.pep.GeneralEncryptedTxArray.encrypted_txs": + if x.EncryptedTxs == nil { + x.EncryptedTxs = []*GeneralEncryptedTx{} } - value := &_GeneralEncryptedTxArray_1_list{list: &x.EncryptedTx} + value := &_GeneralEncryptedTxArray_1_list{list: &x.EncryptedTxs} return protoreflect.ValueOfList(value) default: if fd.IsExtension() { @@ -2197,7 +2197,7 @@ func (x *fastReflection_GeneralEncryptedTxArray) Mutable(fd protoreflect.FieldDe // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_GeneralEncryptedTxArray) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.GeneralEncryptedTxArray.encrypted_tx": + case "fairyring.pep.GeneralEncryptedTxArray.encrypted_txs": list := []*GeneralEncryptedTx{} return protoreflect.ValueOfList(&_GeneralEncryptedTxArray_1_list{list: &list}) default: @@ -2269,8 +2269,8 @@ func (x *fastReflection_GeneralEncryptedTxArray) ProtoMethods() *protoiface.Meth var n int var l int _ = l - if len(x.EncryptedTx) > 0 { - for _, e := range x.EncryptedTx { + if len(x.EncryptedTxs) > 0 { + for _, e := range x.EncryptedTxs { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -2304,9 +2304,9 @@ func (x *fastReflection_GeneralEncryptedTxArray) ProtoMethods() *protoiface.Meth i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.EncryptedTx) > 0 { - for iNdEx := len(x.EncryptedTx) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.EncryptedTx[iNdEx]) + if len(x.EncryptedTxs) > 0 { + for iNdEx := len(x.EncryptedTxs) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.EncryptedTxs[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2371,7 +2371,7 @@ func (x *fastReflection_GeneralEncryptedTxArray) ProtoMethods() *protoiface.Meth switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncryptedTx", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncryptedTxs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2398,8 +2398,8 @@ func (x *fastReflection_GeneralEncryptedTxArray) ProtoMethods() *protoiface.Meth if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.EncryptedTx = append(x.EncryptedTx, &GeneralEncryptedTx{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EncryptedTx[len(x.EncryptedTx)-1]); err != nil { + x.EncryptedTxs = append(x.EncryptedTxs, &GeneralEncryptedTx{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EncryptedTxs[len(x.EncryptedTxs)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -2439,35 +2439,35 @@ func (x *fastReflection_GeneralEncryptedTxArray) ProtoMethods() *protoiface.Meth } var ( - md_IdentityExecutionQueue protoreflect.MessageDescriptor - fd_IdentityExecutionQueue_creator protoreflect.FieldDescriptor - fd_IdentityExecutionQueue_request_id protoreflect.FieldDescriptor - fd_IdentityExecutionQueue_identity protoreflect.FieldDescriptor - fd_IdentityExecutionQueue_pubkey protoreflect.FieldDescriptor - fd_IdentityExecutionQueue_tx_list protoreflect.FieldDescriptor - fd_IdentityExecutionQueue_aggr_keyshare protoreflect.FieldDescriptor + md_IdentityExecutionEntry protoreflect.MessageDescriptor + fd_IdentityExecutionEntry_creator protoreflect.FieldDescriptor + fd_IdentityExecutionEntry_request_id protoreflect.FieldDescriptor + fd_IdentityExecutionEntry_identity protoreflect.FieldDescriptor + fd_IdentityExecutionEntry_pubkey protoreflect.FieldDescriptor + fd_IdentityExecutionEntry_tx_list protoreflect.FieldDescriptor + fd_IdentityExecutionEntry_decryption_key protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_encrypted_tx_proto_init() - md_IdentityExecutionQueue = File_fairyring_pep_encrypted_tx_proto.Messages().ByName("IdentityExecutionQueue") - fd_IdentityExecutionQueue_creator = md_IdentityExecutionQueue.Fields().ByName("creator") - fd_IdentityExecutionQueue_request_id = md_IdentityExecutionQueue.Fields().ByName("request_id") - fd_IdentityExecutionQueue_identity = md_IdentityExecutionQueue.Fields().ByName("identity") - fd_IdentityExecutionQueue_pubkey = md_IdentityExecutionQueue.Fields().ByName("pubkey") - fd_IdentityExecutionQueue_tx_list = md_IdentityExecutionQueue.Fields().ByName("tx_list") - fd_IdentityExecutionQueue_aggr_keyshare = md_IdentityExecutionQueue.Fields().ByName("aggr_keyshare") + md_IdentityExecutionEntry = File_fairyring_pep_encrypted_tx_proto.Messages().ByName("IdentityExecutionEntry") + fd_IdentityExecutionEntry_creator = md_IdentityExecutionEntry.Fields().ByName("creator") + fd_IdentityExecutionEntry_request_id = md_IdentityExecutionEntry.Fields().ByName("request_id") + fd_IdentityExecutionEntry_identity = md_IdentityExecutionEntry.Fields().ByName("identity") + fd_IdentityExecutionEntry_pubkey = md_IdentityExecutionEntry.Fields().ByName("pubkey") + fd_IdentityExecutionEntry_tx_list = md_IdentityExecutionEntry.Fields().ByName("tx_list") + fd_IdentityExecutionEntry_decryption_key = md_IdentityExecutionEntry.Fields().ByName("decryption_key") } -var _ protoreflect.Message = (*fastReflection_IdentityExecutionQueue)(nil) +var _ protoreflect.Message = (*fastReflection_IdentityExecutionEntry)(nil) -type fastReflection_IdentityExecutionQueue IdentityExecutionQueue +type fastReflection_IdentityExecutionEntry IdentityExecutionEntry -func (x *IdentityExecutionQueue) ProtoReflect() protoreflect.Message { - return (*fastReflection_IdentityExecutionQueue)(x) +func (x *IdentityExecutionEntry) ProtoReflect() protoreflect.Message { + return (*fastReflection_IdentityExecutionEntry)(x) } -func (x *IdentityExecutionQueue) slowProtoReflect() protoreflect.Message { +func (x *IdentityExecutionEntry) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_encrypted_tx_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2479,43 +2479,43 @@ func (x *IdentityExecutionQueue) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_IdentityExecutionQueue_messageType fastReflection_IdentityExecutionQueue_messageType -var _ protoreflect.MessageType = fastReflection_IdentityExecutionQueue_messageType{} +var _fastReflection_IdentityExecutionEntry_messageType fastReflection_IdentityExecutionEntry_messageType +var _ protoreflect.MessageType = fastReflection_IdentityExecutionEntry_messageType{} -type fastReflection_IdentityExecutionQueue_messageType struct{} +type fastReflection_IdentityExecutionEntry_messageType struct{} -func (x fastReflection_IdentityExecutionQueue_messageType) Zero() protoreflect.Message { - return (*fastReflection_IdentityExecutionQueue)(nil) +func (x fastReflection_IdentityExecutionEntry_messageType) Zero() protoreflect.Message { + return (*fastReflection_IdentityExecutionEntry)(nil) } -func (x fastReflection_IdentityExecutionQueue_messageType) New() protoreflect.Message { - return new(fastReflection_IdentityExecutionQueue) +func (x fastReflection_IdentityExecutionEntry_messageType) New() protoreflect.Message { + return new(fastReflection_IdentityExecutionEntry) } -func (x fastReflection_IdentityExecutionQueue_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_IdentityExecutionQueue +func (x fastReflection_IdentityExecutionEntry_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_IdentityExecutionEntry } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_IdentityExecutionQueue) Descriptor() protoreflect.MessageDescriptor { - return md_IdentityExecutionQueue +func (x *fastReflection_IdentityExecutionEntry) Descriptor() protoreflect.MessageDescriptor { + return md_IdentityExecutionEntry } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_IdentityExecutionQueue) Type() protoreflect.MessageType { - return _fastReflection_IdentityExecutionQueue_messageType +func (x *fastReflection_IdentityExecutionEntry) Type() protoreflect.MessageType { + return _fastReflection_IdentityExecutionEntry_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_IdentityExecutionQueue) New() protoreflect.Message { - return new(fastReflection_IdentityExecutionQueue) +func (x *fastReflection_IdentityExecutionEntry) New() protoreflect.Message { + return new(fastReflection_IdentityExecutionEntry) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_IdentityExecutionQueue) Interface() protoreflect.ProtoMessage { - return (*IdentityExecutionQueue)(x) +func (x *fastReflection_IdentityExecutionEntry) Interface() protoreflect.ProtoMessage { + return (*IdentityExecutionEntry)(x) } // Range iterates over every populated field in an undefined order, @@ -2523,40 +2523,40 @@ func (x *fastReflection_IdentityExecutionQueue) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_IdentityExecutionQueue) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_IdentityExecutionEntry) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_IdentityExecutionQueue_creator, value) { + if !f(fd_IdentityExecutionEntry_creator, value) { return } } if x.RequestId != "" { value := protoreflect.ValueOfString(x.RequestId) - if !f(fd_IdentityExecutionQueue_request_id, value) { + if !f(fd_IdentityExecutionEntry_request_id, value) { return } } if x.Identity != "" { value := protoreflect.ValueOfString(x.Identity) - if !f(fd_IdentityExecutionQueue_identity, value) { + if !f(fd_IdentityExecutionEntry_identity, value) { return } } if x.Pubkey != "" { value := protoreflect.ValueOfString(x.Pubkey) - if !f(fd_IdentityExecutionQueue_pubkey, value) { + if !f(fd_IdentityExecutionEntry_pubkey, value) { return } } if x.TxList != nil { value := protoreflect.ValueOfMessage(x.TxList.ProtoReflect()) - if !f(fd_IdentityExecutionQueue_tx_list, value) { + if !f(fd_IdentityExecutionEntry_tx_list, value) { return } } - if x.AggrKeyshare != "" { - value := protoreflect.ValueOfString(x.AggrKeyshare) - if !f(fd_IdentityExecutionQueue_aggr_keyshare, value) { + if x.DecryptionKey != "" { + value := protoreflect.ValueOfString(x.DecryptionKey) + if !f(fd_IdentityExecutionEntry_decryption_key, value) { return } } @@ -2573,25 +2573,25 @@ func (x *fastReflection_IdentityExecutionQueue) Range(f func(protoreflect.FieldD // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_IdentityExecutionQueue) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_IdentityExecutionEntry) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.IdentityExecutionQueue.creator": + case "fairyring.pep.IdentityExecutionEntry.creator": return x.Creator != "" - case "fairyring.pep.IdentityExecutionQueue.request_id": + case "fairyring.pep.IdentityExecutionEntry.request_id": return x.RequestId != "" - case "fairyring.pep.IdentityExecutionQueue.identity": + case "fairyring.pep.IdentityExecutionEntry.identity": return x.Identity != "" - case "fairyring.pep.IdentityExecutionQueue.pubkey": + case "fairyring.pep.IdentityExecutionEntry.pubkey": return x.Pubkey != "" - case "fairyring.pep.IdentityExecutionQueue.tx_list": + case "fairyring.pep.IdentityExecutionEntry.tx_list": return x.TxList != nil - case "fairyring.pep.IdentityExecutionQueue.aggr_keyshare": - return x.AggrKeyshare != "" + case "fairyring.pep.IdentityExecutionEntry.decryption_key": + return x.DecryptionKey != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.IdentityExecutionQueue")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.IdentityExecutionEntry")) } - panic(fmt.Errorf("message fairyring.pep.IdentityExecutionQueue does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.IdentityExecutionEntry does not contain field %s", fd.FullName())) } } @@ -2601,25 +2601,25 @@ func (x *fastReflection_IdentityExecutionQueue) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_IdentityExecutionQueue) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_IdentityExecutionEntry) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.IdentityExecutionQueue.creator": + case "fairyring.pep.IdentityExecutionEntry.creator": x.Creator = "" - case "fairyring.pep.IdentityExecutionQueue.request_id": + case "fairyring.pep.IdentityExecutionEntry.request_id": x.RequestId = "" - case "fairyring.pep.IdentityExecutionQueue.identity": + case "fairyring.pep.IdentityExecutionEntry.identity": x.Identity = "" - case "fairyring.pep.IdentityExecutionQueue.pubkey": + case "fairyring.pep.IdentityExecutionEntry.pubkey": x.Pubkey = "" - case "fairyring.pep.IdentityExecutionQueue.tx_list": + case "fairyring.pep.IdentityExecutionEntry.tx_list": x.TxList = nil - case "fairyring.pep.IdentityExecutionQueue.aggr_keyshare": - x.AggrKeyshare = "" + case "fairyring.pep.IdentityExecutionEntry.decryption_key": + x.DecryptionKey = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.IdentityExecutionQueue")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.IdentityExecutionEntry")) } - panic(fmt.Errorf("message fairyring.pep.IdentityExecutionQueue does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.IdentityExecutionEntry does not contain field %s", fd.FullName())) } } @@ -2629,31 +2629,31 @@ func (x *fastReflection_IdentityExecutionQueue) Clear(fd protoreflect.FieldDescr // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_IdentityExecutionQueue) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_IdentityExecutionEntry) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.IdentityExecutionQueue.creator": + case "fairyring.pep.IdentityExecutionEntry.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.pep.IdentityExecutionQueue.request_id": + case "fairyring.pep.IdentityExecutionEntry.request_id": value := x.RequestId return protoreflect.ValueOfString(value) - case "fairyring.pep.IdentityExecutionQueue.identity": + case "fairyring.pep.IdentityExecutionEntry.identity": value := x.Identity return protoreflect.ValueOfString(value) - case "fairyring.pep.IdentityExecutionQueue.pubkey": + case "fairyring.pep.IdentityExecutionEntry.pubkey": value := x.Pubkey return protoreflect.ValueOfString(value) - case "fairyring.pep.IdentityExecutionQueue.tx_list": + case "fairyring.pep.IdentityExecutionEntry.tx_list": value := x.TxList return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.pep.IdentityExecutionQueue.aggr_keyshare": - value := x.AggrKeyshare + case "fairyring.pep.IdentityExecutionEntry.decryption_key": + value := x.DecryptionKey return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.IdentityExecutionQueue")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.IdentityExecutionEntry")) } - panic(fmt.Errorf("message fairyring.pep.IdentityExecutionQueue does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.IdentityExecutionEntry does not contain field %s", descriptor.FullName())) } } @@ -2667,25 +2667,25 @@ func (x *fastReflection_IdentityExecutionQueue) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_IdentityExecutionQueue) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_IdentityExecutionEntry) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.IdentityExecutionQueue.creator": + case "fairyring.pep.IdentityExecutionEntry.creator": x.Creator = value.Interface().(string) - case "fairyring.pep.IdentityExecutionQueue.request_id": + case "fairyring.pep.IdentityExecutionEntry.request_id": x.RequestId = value.Interface().(string) - case "fairyring.pep.IdentityExecutionQueue.identity": + case "fairyring.pep.IdentityExecutionEntry.identity": x.Identity = value.Interface().(string) - case "fairyring.pep.IdentityExecutionQueue.pubkey": + case "fairyring.pep.IdentityExecutionEntry.pubkey": x.Pubkey = value.Interface().(string) - case "fairyring.pep.IdentityExecutionQueue.tx_list": + case "fairyring.pep.IdentityExecutionEntry.tx_list": x.TxList = value.Message().Interface().(*GeneralEncryptedTxArray) - case "fairyring.pep.IdentityExecutionQueue.aggr_keyshare": - x.AggrKeyshare = value.Interface().(string) + case "fairyring.pep.IdentityExecutionEntry.decryption_key": + x.DecryptionKey = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.IdentityExecutionQueue")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.IdentityExecutionEntry")) } - panic(fmt.Errorf("message fairyring.pep.IdentityExecutionQueue does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.IdentityExecutionEntry does not contain field %s", fd.FullName())) } } @@ -2699,64 +2699,64 @@ func (x *fastReflection_IdentityExecutionQueue) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_IdentityExecutionQueue) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_IdentityExecutionEntry) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.IdentityExecutionQueue.tx_list": + case "fairyring.pep.IdentityExecutionEntry.tx_list": if x.TxList == nil { x.TxList = new(GeneralEncryptedTxArray) } return protoreflect.ValueOfMessage(x.TxList.ProtoReflect()) - case "fairyring.pep.IdentityExecutionQueue.creator": - panic(fmt.Errorf("field creator of message fairyring.pep.IdentityExecutionQueue is not mutable")) - case "fairyring.pep.IdentityExecutionQueue.request_id": - panic(fmt.Errorf("field request_id of message fairyring.pep.IdentityExecutionQueue is not mutable")) - case "fairyring.pep.IdentityExecutionQueue.identity": - panic(fmt.Errorf("field identity of message fairyring.pep.IdentityExecutionQueue is not mutable")) - case "fairyring.pep.IdentityExecutionQueue.pubkey": - panic(fmt.Errorf("field pubkey of message fairyring.pep.IdentityExecutionQueue is not mutable")) - case "fairyring.pep.IdentityExecutionQueue.aggr_keyshare": - panic(fmt.Errorf("field aggr_keyshare of message fairyring.pep.IdentityExecutionQueue is not mutable")) + case "fairyring.pep.IdentityExecutionEntry.creator": + panic(fmt.Errorf("field creator of message fairyring.pep.IdentityExecutionEntry is not mutable")) + case "fairyring.pep.IdentityExecutionEntry.request_id": + panic(fmt.Errorf("field request_id of message fairyring.pep.IdentityExecutionEntry is not mutable")) + case "fairyring.pep.IdentityExecutionEntry.identity": + panic(fmt.Errorf("field identity of message fairyring.pep.IdentityExecutionEntry is not mutable")) + case "fairyring.pep.IdentityExecutionEntry.pubkey": + panic(fmt.Errorf("field pubkey of message fairyring.pep.IdentityExecutionEntry is not mutable")) + case "fairyring.pep.IdentityExecutionEntry.decryption_key": + panic(fmt.Errorf("field decryption_key of message fairyring.pep.IdentityExecutionEntry is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.IdentityExecutionQueue")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.IdentityExecutionEntry")) } - panic(fmt.Errorf("message fairyring.pep.IdentityExecutionQueue does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.IdentityExecutionEntry does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_IdentityExecutionQueue) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_IdentityExecutionEntry) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.IdentityExecutionQueue.creator": + case "fairyring.pep.IdentityExecutionEntry.creator": return protoreflect.ValueOfString("") - case "fairyring.pep.IdentityExecutionQueue.request_id": + case "fairyring.pep.IdentityExecutionEntry.request_id": return protoreflect.ValueOfString("") - case "fairyring.pep.IdentityExecutionQueue.identity": + case "fairyring.pep.IdentityExecutionEntry.identity": return protoreflect.ValueOfString("") - case "fairyring.pep.IdentityExecutionQueue.pubkey": + case "fairyring.pep.IdentityExecutionEntry.pubkey": return protoreflect.ValueOfString("") - case "fairyring.pep.IdentityExecutionQueue.tx_list": + case "fairyring.pep.IdentityExecutionEntry.tx_list": m := new(GeneralEncryptedTxArray) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.pep.IdentityExecutionQueue.aggr_keyshare": + case "fairyring.pep.IdentityExecutionEntry.decryption_key": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.IdentityExecutionQueue")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.IdentityExecutionEntry")) } - panic(fmt.Errorf("message fairyring.pep.IdentityExecutionQueue does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.IdentityExecutionEntry does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_IdentityExecutionQueue) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_IdentityExecutionEntry) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.IdentityExecutionQueue", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.IdentityExecutionEntry", d.FullName())) } panic("unreachable") } @@ -2764,7 +2764,7 @@ func (x *fastReflection_IdentityExecutionQueue) WhichOneof(d protoreflect.OneofD // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_IdentityExecutionQueue) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_IdentityExecutionEntry) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2775,7 +2775,7 @@ func (x *fastReflection_IdentityExecutionQueue) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_IdentityExecutionQueue) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_IdentityExecutionEntry) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2787,7 +2787,7 @@ func (x *fastReflection_IdentityExecutionQueue) SetUnknown(fields protoreflect.R // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_IdentityExecutionQueue) IsValid() bool { +func (x *fastReflection_IdentityExecutionEntry) IsValid() bool { return x != nil } @@ -2797,9 +2797,9 @@ func (x *fastReflection_IdentityExecutionQueue) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_IdentityExecutionQueue) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_IdentityExecutionEntry) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*IdentityExecutionQueue) + x := input.Message.Interface().(*IdentityExecutionEntry) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2831,7 +2831,7 @@ func (x *fastReflection_IdentityExecutionQueue) ProtoMethods() *protoiface.Metho l = options.Size(x.TxList) n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.AggrKeyshare) + l = len(x.DecryptionKey) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -2845,7 +2845,7 @@ func (x *fastReflection_IdentityExecutionQueue) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*IdentityExecutionQueue) + x := input.Message.Interface().(*IdentityExecutionEntry) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2864,10 +2864,10 @@ func (x *fastReflection_IdentityExecutionQueue) ProtoMethods() *protoiface.Metho i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.AggrKeyshare) > 0 { - i -= len(x.AggrKeyshare) - copy(dAtA[i:], x.AggrKeyshare) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AggrKeyshare))) + if len(x.DecryptionKey) > 0 { + i -= len(x.DecryptionKey) + copy(dAtA[i:], x.DecryptionKey) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DecryptionKey))) i-- dAtA[i] = 0x32 } @@ -2924,7 +2924,7 @@ func (x *fastReflection_IdentityExecutionQueue) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*IdentityExecutionQueue) + x := input.Message.Interface().(*IdentityExecutionEntry) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2956,10 +2956,10 @@ func (x *fastReflection_IdentityExecutionQueue) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: IdentityExecutionQueue: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: IdentityExecutionEntry: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: IdentityExecutionQueue: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: IdentityExecutionEntry: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3128,7 +3128,7 @@ func (x *fastReflection_IdentityExecutionQueue) ProtoMethods() *protoiface.Metho iNdEx = postIndex case 6: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AggrKeyshare", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DecryptionKey", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3156,7 +3156,7 @@ func (x *fastReflection_IdentityExecutionQueue) ProtoMethods() *protoiface.Metho if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.AggrKeyshare = string(dAtA[iNdEx:postIndex]) + x.DecryptionKey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -3297,7 +3297,7 @@ type EncryptedTxArray struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - EncryptedTx []*EncryptedTx `protobuf:"bytes,1,rep,name=encrypted_tx,json=encryptedTx,proto3" json:"encrypted_tx,omitempty"` + EncryptedTxs []*EncryptedTx `protobuf:"bytes,1,rep,name=encrypted_txs,json=encryptedTxs,proto3" json:"encrypted_txs,omitempty"` } func (x *EncryptedTxArray) Reset() { @@ -3320,9 +3320,9 @@ func (*EncryptedTxArray) Descriptor() ([]byte, []int) { return file_fairyring_pep_encrypted_tx_proto_rawDescGZIP(), []int{1} } -func (x *EncryptedTxArray) GetEncryptedTx() []*EncryptedTx { +func (x *EncryptedTxArray) GetEncryptedTxs() []*EncryptedTx { if x != nil { - return x.EncryptedTx + return x.EncryptedTxs } return nil } @@ -3402,7 +3402,7 @@ type GeneralEncryptedTxArray struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - EncryptedTx []*GeneralEncryptedTx `protobuf:"bytes,1,rep,name=encrypted_tx,json=encryptedTx,proto3" json:"encrypted_tx,omitempty"` + EncryptedTxs []*GeneralEncryptedTx `protobuf:"bytes,1,rep,name=encrypted_txs,json=encryptedTxs,proto3" json:"encrypted_txs,omitempty"` } func (x *GeneralEncryptedTxArray) Reset() { @@ -3425,31 +3425,31 @@ func (*GeneralEncryptedTxArray) Descriptor() ([]byte, []int) { return file_fairyring_pep_encrypted_tx_proto_rawDescGZIP(), []int{3} } -func (x *GeneralEncryptedTxArray) GetEncryptedTx() []*GeneralEncryptedTx { +func (x *GeneralEncryptedTxArray) GetEncryptedTxs() []*GeneralEncryptedTx { if x != nil { - return x.EncryptedTx + return x.EncryptedTxs } return nil } -// IdentityExecutionQueue defines the structure to queue up -// identities that have aggregated keyshares available and +// IdentityExecutionEntry defines the structure to queue up +// identities that have decryption keys available and // are ready to execute any associated contracts or encrypted transactions -type IdentityExecutionQueue struct { +type IdentityExecutionEntry struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` - Pubkey string `protobuf:"bytes,4,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - TxList *GeneralEncryptedTxArray `protobuf:"bytes,5,opt,name=tx_list,json=txList,proto3" json:"tx_list,omitempty"` - AggrKeyshare string `protobuf:"bytes,6,opt,name=aggr_keyshare,json=aggrKeyshare,proto3" json:"aggr_keyshare,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` + Pubkey string `protobuf:"bytes,4,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + TxList *GeneralEncryptedTxArray `protobuf:"bytes,5,opt,name=tx_list,json=txList,proto3" json:"tx_list,omitempty"` + DecryptionKey string `protobuf:"bytes,6,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key,omitempty"` } -func (x *IdentityExecutionQueue) Reset() { - *x = IdentityExecutionQueue{} +func (x *IdentityExecutionEntry) Reset() { + *x = IdentityExecutionEntry{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_encrypted_tx_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3457,55 +3457,55 @@ func (x *IdentityExecutionQueue) Reset() { } } -func (x *IdentityExecutionQueue) String() string { +func (x *IdentityExecutionEntry) String() string { return protoimpl.X.MessageStringOf(x) } -func (*IdentityExecutionQueue) ProtoMessage() {} +func (*IdentityExecutionEntry) ProtoMessage() {} -// Deprecated: Use IdentityExecutionQueue.ProtoReflect.Descriptor instead. -func (*IdentityExecutionQueue) Descriptor() ([]byte, []int) { +// Deprecated: Use IdentityExecutionEntry.ProtoReflect.Descriptor instead. +func (*IdentityExecutionEntry) Descriptor() ([]byte, []int) { return file_fairyring_pep_encrypted_tx_proto_rawDescGZIP(), []int{4} } -func (x *IdentityExecutionQueue) GetCreator() string { +func (x *IdentityExecutionEntry) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *IdentityExecutionQueue) GetRequestId() string { +func (x *IdentityExecutionEntry) GetRequestId() string { if x != nil { return x.RequestId } return "" } -func (x *IdentityExecutionQueue) GetIdentity() string { +func (x *IdentityExecutionEntry) GetIdentity() string { if x != nil { return x.Identity } return "" } -func (x *IdentityExecutionQueue) GetPubkey() string { +func (x *IdentityExecutionEntry) GetPubkey() string { if x != nil { return x.Pubkey } return "" } -func (x *IdentityExecutionQueue) GetTxList() *GeneralEncryptedTxArray { +func (x *IdentityExecutionEntry) GetTxList() *GeneralEncryptedTxArray { if x != nil { return x.TxList } return nil } -func (x *IdentityExecutionQueue) GetAggrKeyshare() string { +func (x *IdentityExecutionEntry) GetDecryptionKey() string { if x != nil { - return x.AggrKeyshare + return x.DecryptionKey } return "" } @@ -3536,55 +3536,55 @@ var file_fairyring_pep_encrypted_tx_proto_rawDesc = []byte{ 0x16, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x41, 0x74, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, - 0x64, 0x22, 0x57, 0x0a, 0x10, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, - 0x41, 0x72, 0x72, 0x61, 0x79, 0x12, 0x43, 0x0a, 0x0c, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x5f, 0x74, 0x78, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x65, - 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x22, 0xb0, 0x01, 0x0a, 0x12, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, - 0x78, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, - 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, - 0x64, 0x65, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x12, 0x3a, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x5f, 0x67, 0x61, 0x73, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, - 0x6e, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x47, 0x61, 0x73, 0x22, 0x65, 0x0a, - 0x17, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, - 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x12, 0x4a, 0x0a, 0x0c, 0x65, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, - 0x78, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x54, 0x78, 0x22, 0xeb, 0x01, 0x0a, 0x16, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x3f, 0x0a, 0x07, - 0x74, 0x78, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, - 0x41, 0x72, 0x72, 0x61, 0x79, 0x52, 0x06, 0x74, 0x78, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x23, 0x0a, - 0x0d, 0x61, 0x67, 0x67, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x42, 0x9a, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x10, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x65, 0x64, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, - 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, - 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, - 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, - 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x64, 0x22, 0x59, 0x0a, 0x10, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, + 0x41, 0x72, 0x72, 0x61, 0x79, 0x12, 0x45, 0x0a, 0x0d, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x65, 0x64, 0x5f, 0x74, 0x78, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x45, 0x6e, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, + 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x73, 0x22, 0xb0, 0x01, 0x0a, + 0x12, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, + 0x64, 0x54, 0x78, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, + 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x6f, 0x72, 0x12, 0x3a, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x5f, 0x67, + 0x61, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, + 0x6f, 0x69, 0x6e, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x64, 0x47, 0x61, 0x73, 0x22, + 0x67, 0x0a, 0x17, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x12, 0x4c, 0x0a, 0x0d, 0x65, 0x6e, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, + 0x70, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x65, 0x64, 0x54, 0x78, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x65, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x73, 0x22, 0xed, 0x01, 0x0a, 0x16, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, + 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, + 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, + 0x12, 0x3f, 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, + 0x70, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x52, 0x06, 0x74, 0x78, 0x4c, 0x69, 0x73, + 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x42, 0x9a, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, + 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x10, + 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, + 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3605,15 +3605,15 @@ var file_fairyring_pep_encrypted_tx_proto_goTypes = []interface{}{ (*EncryptedTxArray)(nil), // 1: fairyring.pep.EncryptedTxArray (*GeneralEncryptedTx)(nil), // 2: fairyring.pep.GeneralEncryptedTx (*GeneralEncryptedTxArray)(nil), // 3: fairyring.pep.GeneralEncryptedTxArray - (*IdentityExecutionQueue)(nil), // 4: fairyring.pep.IdentityExecutionQueue + (*IdentityExecutionEntry)(nil), // 4: fairyring.pep.IdentityExecutionEntry (*v1beta1.Coin)(nil), // 5: cosmos.base.v1beta1.Coin } var file_fairyring_pep_encrypted_tx_proto_depIdxs = []int32{ 5, // 0: fairyring.pep.EncryptedTx.charged_gas:type_name -> cosmos.base.v1beta1.Coin - 0, // 1: fairyring.pep.EncryptedTxArray.encrypted_tx:type_name -> fairyring.pep.EncryptedTx + 0, // 1: fairyring.pep.EncryptedTxArray.encrypted_txs:type_name -> fairyring.pep.EncryptedTx 5, // 2: fairyring.pep.GeneralEncryptedTx.charged_gas:type_name -> cosmos.base.v1beta1.Coin - 2, // 3: fairyring.pep.GeneralEncryptedTxArray.encrypted_tx:type_name -> fairyring.pep.GeneralEncryptedTx - 3, // 4: fairyring.pep.IdentityExecutionQueue.tx_list:type_name -> fairyring.pep.GeneralEncryptedTxArray + 2, // 3: fairyring.pep.GeneralEncryptedTxArray.encrypted_txs:type_name -> fairyring.pep.GeneralEncryptedTx + 3, // 4: fairyring.pep.IdentityExecutionEntry.tx_list:type_name -> fairyring.pep.GeneralEncryptedTxArray 5, // [5:5] is the sub-list for method output_type 5, // [5:5] is the sub-list for method input_type 5, // [5:5] is the sub-list for extension type_name @@ -3676,7 +3676,7 @@ func file_fairyring_pep_encrypted_tx_proto_init() { } } file_fairyring_pep_encrypted_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IdentityExecutionQueue); i { + switch v := v.(*IdentityExecutionEntry); i { case 0: return &v.state case 1: diff --git a/api/fairyring/pep/genesis.pulsar.go b/api/fairyring/pep/genesis.pulsar.go index f09fb070..e142f7f1 100644 --- a/api/fairyring/pep/genesis.pulsar.go +++ b/api/fairyring/pep/genesis.pulsar.go @@ -3,7 +3,7 @@ package pep import ( _ "cosmossdk.io/api/amino" - common "github.com/Fairblock/fairyring/api/fairyring/common" + common "cosmossdk.io/api/fairyring/common" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -120,7 +120,7 @@ func (x *_GenesisState_4_list) IsValid() bool { var _ protoreflect.List = (*_GenesisState_6_list)(nil) type _GenesisState_6_list struct { - list *[]*AggregatedKeyShare + list *[]*DecryptionKey } func (x *_GenesisState_6_list) Len() int { @@ -136,18 +136,18 @@ func (x *_GenesisState_6_list) Get(i int) protoreflect.Value { func (x *_GenesisState_6_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*AggregatedKeyShare) + concreteValue := valueUnwrapped.Interface().(*DecryptionKey) (*x.list)[i] = concreteValue } func (x *_GenesisState_6_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*AggregatedKeyShare) + concreteValue := valueUnwrapped.Interface().(*DecryptionKey) *x.list = append(*x.list, concreteValue) } func (x *_GenesisState_6_list) AppendMutable() protoreflect.Value { - v := new(AggregatedKeyShare) + v := new(DecryptionKey) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -160,7 +160,7 @@ func (x *_GenesisState_6_list) Truncate(n int) { } func (x *_GenesisState_6_list) NewElement() protoreflect.Value { - v := new(AggregatedKeyShare) + v := new(DecryptionKey) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -220,16 +220,16 @@ func (x *_GenesisState_10_list) IsValid() bool { } var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_params protoreflect.FieldDescriptor - fd_GenesisState_port_id protoreflect.FieldDescriptor - fd_GenesisState_encryptedTxArray protoreflect.FieldDescriptor - fd_GenesisState_pepNonceList protoreflect.FieldDescriptor - fd_GenesisState_aggregatedKeyShareList protoreflect.FieldDescriptor - fd_GenesisState_activePubKey protoreflect.FieldDescriptor - fd_GenesisState_queuedPubKey protoreflect.FieldDescriptor - fd_GenesisState_request_count protoreflect.FieldDescriptor - fd_GenesisState_requestIdList protoreflect.FieldDescriptor + md_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_params protoreflect.FieldDescriptor + fd_GenesisState_port_id protoreflect.FieldDescriptor + fd_GenesisState_encryptedTxArray protoreflect.FieldDescriptor + fd_GenesisState_pepNonceList protoreflect.FieldDescriptor + fd_GenesisState_decryption_key_list protoreflect.FieldDescriptor + fd_GenesisState_activePubKey protoreflect.FieldDescriptor + fd_GenesisState_queuedPubKey protoreflect.FieldDescriptor + fd_GenesisState_request_count protoreflect.FieldDescriptor + fd_GenesisState_requestIdList protoreflect.FieldDescriptor ) func init() { @@ -239,7 +239,7 @@ func init() { fd_GenesisState_port_id = md_GenesisState.Fields().ByName("port_id") fd_GenesisState_encryptedTxArray = md_GenesisState.Fields().ByName("encryptedTxArray") fd_GenesisState_pepNonceList = md_GenesisState.Fields().ByName("pepNonceList") - fd_GenesisState_aggregatedKeyShareList = md_GenesisState.Fields().ByName("aggregatedKeyShareList") + fd_GenesisState_decryption_key_list = md_GenesisState.Fields().ByName("decryption_key_list") fd_GenesisState_activePubKey = md_GenesisState.Fields().ByName("activePubKey") fd_GenesisState_queuedPubKey = md_GenesisState.Fields().ByName("queuedPubKey") fd_GenesisState_request_count = md_GenesisState.Fields().ByName("request_count") @@ -335,9 +335,9 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } - if len(x.AggregatedKeyShareList) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_6_list{list: &x.AggregatedKeyShareList}) - if !f(fd_GenesisState_aggregatedKeyShareList, value) { + if len(x.DecryptionKeyList) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_6_list{list: &x.DecryptionKeyList}) + if !f(fd_GenesisState_decryption_key_list, value) { return } } @@ -388,8 +388,8 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return len(x.EncryptedTxArray) != 0 case "fairyring.pep.GenesisState.pepNonceList": return len(x.PepNonceList) != 0 - case "fairyring.pep.GenesisState.aggregatedKeyShareList": - return len(x.AggregatedKeyShareList) != 0 + case "fairyring.pep.GenesisState.decryption_key_list": + return len(x.DecryptionKeyList) != 0 case "fairyring.pep.GenesisState.activePubKey": return x.ActivePubKey != nil case "fairyring.pep.GenesisState.queuedPubKey": @@ -422,8 +422,8 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.EncryptedTxArray = nil case "fairyring.pep.GenesisState.pepNonceList": x.PepNonceList = nil - case "fairyring.pep.GenesisState.aggregatedKeyShareList": - x.AggregatedKeyShareList = nil + case "fairyring.pep.GenesisState.decryption_key_list": + x.DecryptionKeyList = nil case "fairyring.pep.GenesisState.activePubKey": x.ActivePubKey = nil case "fairyring.pep.GenesisState.queuedPubKey": @@ -466,11 +466,11 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto } listValue := &_GenesisState_4_list{list: &x.PepNonceList} return protoreflect.ValueOfList(listValue) - case "fairyring.pep.GenesisState.aggregatedKeyShareList": - if len(x.AggregatedKeyShareList) == 0 { + case "fairyring.pep.GenesisState.decryption_key_list": + if len(x.DecryptionKeyList) == 0 { return protoreflect.ValueOfList(&_GenesisState_6_list{}) } - listValue := &_GenesisState_6_list{list: &x.AggregatedKeyShareList} + listValue := &_GenesisState_6_list{list: &x.DecryptionKeyList} return protoreflect.ValueOfList(listValue) case "fairyring.pep.GenesisState.activePubKey": value := x.ActivePubKey @@ -519,10 +519,10 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value lv := value.List() clv := lv.(*_GenesisState_4_list) x.PepNonceList = *clv.list - case "fairyring.pep.GenesisState.aggregatedKeyShareList": + case "fairyring.pep.GenesisState.decryption_key_list": lv := value.List() clv := lv.(*_GenesisState_6_list) - x.AggregatedKeyShareList = *clv.list + x.DecryptionKeyList = *clv.list case "fairyring.pep.GenesisState.activePubKey": x.ActivePubKey = value.Message().Interface().(*common.ActivePublicKey) case "fairyring.pep.GenesisState.queuedPubKey": @@ -570,11 +570,11 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p } value := &_GenesisState_4_list{list: &x.PepNonceList} return protoreflect.ValueOfList(value) - case "fairyring.pep.GenesisState.aggregatedKeyShareList": - if x.AggregatedKeyShareList == nil { - x.AggregatedKeyShareList = []*AggregatedKeyShare{} + case "fairyring.pep.GenesisState.decryption_key_list": + if x.DecryptionKeyList == nil { + x.DecryptionKeyList = []*DecryptionKey{} } - value := &_GenesisState_6_list{list: &x.AggregatedKeyShareList} + value := &_GenesisState_6_list{list: &x.DecryptionKeyList} return protoreflect.ValueOfList(value) case "fairyring.pep.GenesisState.activePubKey": if x.ActivePubKey == nil { @@ -620,8 +620,8 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) case "fairyring.pep.GenesisState.pepNonceList": list := []*PepNonce{} return protoreflect.ValueOfList(&_GenesisState_4_list{list: &list}) - case "fairyring.pep.GenesisState.aggregatedKeyShareList": - list := []*AggregatedKeyShare{} + case "fairyring.pep.GenesisState.decryption_key_list": + list := []*DecryptionKey{} return protoreflect.ValueOfList(&_GenesisState_6_list{list: &list}) case "fairyring.pep.GenesisState.activePubKey": m := new(common.ActivePublicKey) @@ -723,8 +723,8 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } - if len(x.AggregatedKeyShareList) > 0 { - for _, e := range x.AggregatedKeyShareList { + if len(x.DecryptionKeyList) > 0 { + for _, e := range x.DecryptionKeyList { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -824,9 +824,9 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x3a } - if len(x.AggregatedKeyShareList) > 0 { - for iNdEx := len(x.AggregatedKeyShareList) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.AggregatedKeyShareList[iNdEx]) + if len(x.DecryptionKeyList) > 0 { + for iNdEx := len(x.DecryptionKeyList) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.DecryptionKeyList[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1080,7 +1080,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 6: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AggregatedKeyShareList", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DecryptionKeyList", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1107,8 +1107,8 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.AggregatedKeyShareList = append(x.AggregatedKeyShareList, &AggregatedKeyShare{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AggregatedKeyShareList[len(x.AggregatedKeyShareList)-1]); err != nil { + x.DecryptionKeyList = append(x.DecryptionKeyList, &DecryptionKey{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DecryptionKeyList[len(x.DecryptionKeyList)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -1292,15 +1292,15 @@ type GenesisState struct { unknownFields protoimpl.UnknownFields // params defines all the parameters of the module. - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` - PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - EncryptedTxArray []*EncryptedTxArray `protobuf:"bytes,3,rep,name=encryptedTxArray,proto3" json:"encryptedTxArray,omitempty"` - PepNonceList []*PepNonce `protobuf:"bytes,4,rep,name=pepNonceList,proto3" json:"pepNonceList,omitempty"` - AggregatedKeyShareList []*AggregatedKeyShare `protobuf:"bytes,6,rep,name=aggregatedKeyShareList,proto3" json:"aggregatedKeyShareList,omitempty"` - ActivePubKey *common.ActivePublicKey `protobuf:"bytes,7,opt,name=activePubKey,proto3" json:"activePubKey,omitempty"` - QueuedPubKey *common.QueuedPublicKey `protobuf:"bytes,8,opt,name=queuedPubKey,proto3" json:"queuedPubKey,omitempty"` - RequestCount uint64 `protobuf:"varint,9,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"` - RequestIdList []*RequestId `protobuf:"bytes,10,rep,name=requestIdList,proto3" json:"requestIdList,omitempty"` + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` + EncryptedTxArray []*EncryptedTxArray `protobuf:"bytes,3,rep,name=encryptedTxArray,proto3" json:"encryptedTxArray,omitempty"` + PepNonceList []*PepNonce `protobuf:"bytes,4,rep,name=pepNonceList,proto3" json:"pepNonceList,omitempty"` + DecryptionKeyList []*DecryptionKey `protobuf:"bytes,6,rep,name=decryption_key_list,json=decryptionKeyList,proto3" json:"decryption_key_list,omitempty"` + ActivePubKey *common.ActivePublicKey `protobuf:"bytes,7,opt,name=activePubKey,proto3" json:"activePubKey,omitempty"` + QueuedPubKey *common.QueuedPublicKey `protobuf:"bytes,8,opt,name=queuedPubKey,proto3" json:"queuedPubKey,omitempty"` + RequestCount uint64 `protobuf:"varint,9,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"` + RequestIdList []*RequestId `protobuf:"bytes,10,rep,name=requestIdList,proto3" json:"requestIdList,omitempty"` } func (x *GenesisState) Reset() { @@ -1351,9 +1351,9 @@ func (x *GenesisState) GetPepNonceList() []*PepNonce { return nil } -func (x *GenesisState) GetAggregatedKeyShareList() []*AggregatedKeyShare { +func (x *GenesisState) GetDecryptionKeyList() []*DecryptionKey { if x != nil { - return x.AggregatedKeyShareList + return x.DecryptionKeyList } return nil } @@ -1400,62 +1400,60 @@ var file_fairyring_pep_genesis_proto_rawDesc = []byte{ 0x2f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x65, 0x70, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x28, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, - 0x70, 0x2f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, - 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, - 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xdd, 0x04, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, - 0x65, 0x70, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, - 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x17, 0x0a, 0x07, - 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, - 0x6f, 0x72, 0x74, 0x49, 0x64, 0x12, 0x51, 0x0a, 0x10, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x1f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, - 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, - 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x10, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, - 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x12, 0x41, 0x0a, 0x0c, 0x70, 0x65, 0x70, 0x4e, - 0x6f, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x50, - 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x70, - 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x5f, 0x0a, 0x16, 0x61, - 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x41, 0x67, 0x67, 0x72, - 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, - 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x16, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, - 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x0c, - 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x6c, - 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, - 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x4b, 0x0a, 0x0c, 0x71, 0x75, 0x65, - 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x74, 0x6f, 0x1a, 0x22, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, + 0x70, 0x2f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd0, 0x04, 0x0a, 0x0c, + 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x38, 0x0a, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x64, 0x12, + 0x51, 0x0a, 0x10, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, + 0x72, 0x61, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, + 0x52, 0x10, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, + 0x61, 0x79, 0x12, 0x41, 0x0a, 0x0c, 0x70, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x4c, 0x69, + 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, + 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x70, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, + 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x13, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, + 0x65, 0x70, 0x2e, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x0c, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, - 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, - 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x44, 0x0a, 0x0d, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x0a, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, - 0x65, 0x70, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x42, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x4c, 0x69, 0x73, - 0x74, 0x42, 0x96, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, - 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, - 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, 0xca, 0x02, 0x0d, - 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0xe2, 0x02, 0x19, - 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x6f, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, + 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, + 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x4b, 0x0a, 0x0c, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, + 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, + 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, + 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, + 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x44, 0x0a, 0x0d, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x18, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x96, + 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x70, 0x65, 0x70, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, + 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1476,7 +1474,7 @@ var file_fairyring_pep_genesis_proto_goTypes = []interface{}{ (*Params)(nil), // 1: fairyring.pep.Params (*EncryptedTxArray)(nil), // 2: fairyring.pep.EncryptedTxArray (*PepNonce)(nil), // 3: fairyring.pep.PepNonce - (*AggregatedKeyShare)(nil), // 4: fairyring.pep.AggregatedKeyShare + (*DecryptionKey)(nil), // 4: fairyring.pep.DecryptionKey (*common.ActivePublicKey)(nil), // 5: fairyring.common.ActivePublicKey (*common.QueuedPublicKey)(nil), // 6: fairyring.common.QueuedPublicKey (*RequestId)(nil), // 7: fairyring.pep.RequestId @@ -1485,7 +1483,7 @@ var file_fairyring_pep_genesis_proto_depIdxs = []int32{ 1, // 0: fairyring.pep.GenesisState.params:type_name -> fairyring.pep.Params 2, // 1: fairyring.pep.GenesisState.encryptedTxArray:type_name -> fairyring.pep.EncryptedTxArray 3, // 2: fairyring.pep.GenesisState.pepNonceList:type_name -> fairyring.pep.PepNonce - 4, // 3: fairyring.pep.GenesisState.aggregatedKeyShareList:type_name -> fairyring.pep.AggregatedKeyShare + 4, // 3: fairyring.pep.GenesisState.decryption_key_list:type_name -> fairyring.pep.DecryptionKey 5, // 4: fairyring.pep.GenesisState.activePubKey:type_name -> fairyring.common.ActivePublicKey 6, // 5: fairyring.pep.GenesisState.queuedPubKey:type_name -> fairyring.common.QueuedPublicKey 7, // 6: fairyring.pep.GenesisState.requestIdList:type_name -> fairyring.pep.RequestId @@ -1504,7 +1502,7 @@ func file_fairyring_pep_genesis_proto_init() { file_fairyring_pep_params_proto_init() file_fairyring_pep_encrypted_tx_proto_init() file_fairyring_pep_pep_nonce_proto_init() - file_fairyring_pep_aggregated_key_share_proto_init() + file_fairyring_pep_decryption_key_proto_init() file_fairyring_pep_request_id_proto_init() if !protoimpl.UnsafeEnabled { file_fairyring_pep_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { diff --git a/api/fairyring/pep/params.pulsar.go b/api/fairyring/pep/params.pulsar.go index 7bfea733..59686c20 100644 --- a/api/fairyring/pep/params.pulsar.go +++ b/api/fairyring/pep/params.pulsar.go @@ -113,13 +113,13 @@ func (x *_Params_4_list) IsValid() bool { } var ( - md_Params protoreflect.MessageDescriptor - fd_Params_keyshare_channel_id protoreflect.FieldDescriptor - fd_Params_is_source_chain protoreflect.FieldDescriptor - fd_Params_trusted_counter_parties protoreflect.FieldDescriptor - fd_Params_trusted_addresses protoreflect.FieldDescriptor - fd_Params_min_gas_price protoreflect.FieldDescriptor - fd_Params_private_keyshare_price protoreflect.FieldDescriptor + md_Params protoreflect.MessageDescriptor + fd_Params_keyshare_channel_id protoreflect.FieldDescriptor + fd_Params_is_source_chain protoreflect.FieldDescriptor + fd_Params_trusted_counter_parties protoreflect.FieldDescriptor + fd_Params_trusted_addresses protoreflect.FieldDescriptor + fd_Params_min_gas_price protoreflect.FieldDescriptor + fd_Params_private_decryption_key_price protoreflect.FieldDescriptor ) func init() { @@ -130,7 +130,7 @@ func init() { fd_Params_trusted_counter_parties = md_Params.Fields().ByName("trusted_counter_parties") fd_Params_trusted_addresses = md_Params.Fields().ByName("trusted_addresses") fd_Params_min_gas_price = md_Params.Fields().ByName("min_gas_price") - fd_Params_private_keyshare_price = md_Params.Fields().ByName("private_keyshare_price") + fd_Params_private_decryption_key_price = md_Params.Fields().ByName("private_decryption_key_price") } var _ protoreflect.Message = (*fastReflection_Params)(nil) @@ -228,9 +228,9 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto return } } - if x.PrivateKeysharePrice != nil { - value := protoreflect.ValueOfMessage(x.PrivateKeysharePrice.ProtoReflect()) - if !f(fd_Params_private_keyshare_price, value) { + if x.PrivateDecryptionKeyPrice != nil { + value := protoreflect.ValueOfMessage(x.PrivateDecryptionKeyPrice.ProtoReflect()) + if !f(fd_Params_private_decryption_key_price, value) { return } } @@ -259,8 +259,8 @@ func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { return len(x.TrustedAddresses) != 0 case "fairyring.pep.Params.min_gas_price": return x.MinGasPrice != nil - case "fairyring.pep.Params.private_keyshare_price": - return x.PrivateKeysharePrice != nil + case "fairyring.pep.Params.private_decryption_key_price": + return x.PrivateDecryptionKeyPrice != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.Params")) @@ -287,8 +287,8 @@ func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { x.TrustedAddresses = nil case "fairyring.pep.Params.min_gas_price": x.MinGasPrice = nil - case "fairyring.pep.Params.private_keyshare_price": - x.PrivateKeysharePrice = nil + case "fairyring.pep.Params.private_decryption_key_price": + x.PrivateDecryptionKeyPrice = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.Params")) @@ -326,8 +326,8 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro case "fairyring.pep.Params.min_gas_price": value := x.MinGasPrice return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.pep.Params.private_keyshare_price": - value := x.PrivateKeysharePrice + case "fairyring.pep.Params.private_decryption_key_price": + value := x.PrivateDecryptionKeyPrice return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { @@ -363,8 +363,8 @@ func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value proto x.TrustedAddresses = *clv.list case "fairyring.pep.Params.min_gas_price": x.MinGasPrice = value.Message().Interface().(*v1beta1.Coin) - case "fairyring.pep.Params.private_keyshare_price": - x.PrivateKeysharePrice = value.Message().Interface().(*v1beta1.Coin) + case "fairyring.pep.Params.private_decryption_key_price": + x.PrivateDecryptionKeyPrice = value.Message().Interface().(*v1beta1.Coin) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.Params")) @@ -402,11 +402,11 @@ func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protore x.MinGasPrice = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.MinGasPrice.ProtoReflect()) - case "fairyring.pep.Params.private_keyshare_price": - if x.PrivateKeysharePrice == nil { - x.PrivateKeysharePrice = new(v1beta1.Coin) + case "fairyring.pep.Params.private_decryption_key_price": + if x.PrivateDecryptionKeyPrice == nil { + x.PrivateDecryptionKeyPrice = new(v1beta1.Coin) } - return protoreflect.ValueOfMessage(x.PrivateKeysharePrice.ProtoReflect()) + return protoreflect.ValueOfMessage(x.PrivateDecryptionKeyPrice.ProtoReflect()) case "fairyring.pep.Params.keyshare_channel_id": panic(fmt.Errorf("field keyshare_channel_id of message fairyring.pep.Params is not mutable")) case "fairyring.pep.Params.is_source_chain": @@ -437,7 +437,7 @@ func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protor case "fairyring.pep.Params.min_gas_price": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.pep.Params.private_keyshare_price": + case "fairyring.pep.Params.private_decryption_key_price": m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: @@ -532,8 +532,8 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { l = options.Size(x.MinGasPrice) n += 1 + l + runtime.Sov(uint64(l)) } - if x.PrivateKeysharePrice != nil { - l = options.Size(x.PrivateKeysharePrice) + if x.PrivateDecryptionKeyPrice != nil { + l = options.Size(x.PrivateDecryptionKeyPrice) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -565,8 +565,8 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.PrivateKeysharePrice != nil { - encoded, err := options.Marshal(x.PrivateKeysharePrice) + if x.PrivateDecryptionKeyPrice != nil { + encoded, err := options.Marshal(x.PrivateDecryptionKeyPrice) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -840,7 +840,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 6: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PrivateKeysharePrice", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PrivateDecryptionKeyPrice", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -867,10 +867,10 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.PrivateKeysharePrice == nil { - x.PrivateKeysharePrice = &v1beta1.Coin{} + if x.PrivateDecryptionKeyPrice == nil { + x.PrivateDecryptionKeyPrice = &v1beta1.Coin{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PrivateKeysharePrice); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PrivateDecryptionKeyPrice); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -1477,12 +1477,12 @@ type Params struct { unknownFields protoimpl.UnknownFields // option (gogoproto.equal) = true; - KeyshareChannelId string `protobuf:"bytes,1,opt,name=keyshare_channel_id,json=keyshareChannelId,proto3" json:"keyshare_channel_id,omitempty"` - IsSourceChain bool `protobuf:"varint,2,opt,name=is_source_chain,json=isSourceChain,proto3" json:"is_source_chain,omitempty"` - TrustedCounterParties []*TrustedCounterParty `protobuf:"bytes,3,rep,name=trusted_counter_parties,json=trustedCounterParties,proto3" json:"trusted_counter_parties,omitempty"` - TrustedAddresses []string `protobuf:"bytes,4,rep,name=trusted_addresses,json=trustedAddresses,proto3" json:"trusted_addresses,omitempty"` - MinGasPrice *v1beta1.Coin `protobuf:"bytes,5,opt,name=min_gas_price,json=minGasPrice,proto3" json:"min_gas_price,omitempty"` - PrivateKeysharePrice *v1beta1.Coin `protobuf:"bytes,6,opt,name=private_keyshare_price,json=privateKeysharePrice,proto3" json:"private_keyshare_price,omitempty"` + KeyshareChannelId string `protobuf:"bytes,1,opt,name=keyshare_channel_id,json=keyshareChannelId,proto3" json:"keyshare_channel_id,omitempty"` + IsSourceChain bool `protobuf:"varint,2,opt,name=is_source_chain,json=isSourceChain,proto3" json:"is_source_chain,omitempty"` + TrustedCounterParties []*TrustedCounterParty `protobuf:"bytes,3,rep,name=trusted_counter_parties,json=trustedCounterParties,proto3" json:"trusted_counter_parties,omitempty"` + TrustedAddresses []string `protobuf:"bytes,4,rep,name=trusted_addresses,json=trustedAddresses,proto3" json:"trusted_addresses,omitempty"` + MinGasPrice *v1beta1.Coin `protobuf:"bytes,5,opt,name=min_gas_price,json=minGasPrice,proto3" json:"min_gas_price,omitempty"` + PrivateDecryptionKeyPrice *v1beta1.Coin `protobuf:"bytes,6,opt,name=private_decryption_key_price,json=privateDecryptionKeyPrice,proto3" json:"private_decryption_key_price,omitempty"` } func (x *Params) Reset() { @@ -1540,9 +1540,9 @@ func (x *Params) GetMinGasPrice() *v1beta1.Coin { return nil } -func (x *Params) GetPrivateKeysharePrice() *v1beta1.Coin { +func (x *Params) GetPrivateDecryptionKeyPrice() *v1beta1.Coin { if x != nil { - return x.PrivateKeysharePrice + return x.PrivateDecryptionKeyPrice } return nil } @@ -1611,7 +1611,7 @@ var file_fairyring_pep_params_proto_rawDesc = []byte{ 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x69, 0x6e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xad, 0x04, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbf, 0x04, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x4e, 0x0a, 0x13, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1e, 0xf2, 0xde, 0x1f, 0x1a, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, @@ -1637,33 +1637,34 @@ var file_fairyring_pep_params_proto_rawDesc = []byte{ 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x18, 0xf2, 0xde, 0x1f, 0x14, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6d, 0x69, 0x6e, 0x5f, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x52, 0x0b, 0x6d, 0x69, 0x6e, 0x47, 0x61, 0x73, 0x50, 0x72, - 0x69, 0x63, 0x65, 0x12, 0x72, 0x0a, 0x16, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, - 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x21, - 0xf2, 0xde, 0x1f, 0x1d, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, - 0x22, 0x52, 0x14, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x3a, 0x1b, 0x8a, 0xe7, 0xb0, 0x2a, 0x16, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x78, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x22, 0x76, 0x0a, 0x13, 0x54, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x43, - 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x63, - 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, - 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x42, 0x95, 0x01, 0x0a, - 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, - 0x65, 0x70, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, - 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, - 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x63, 0x65, 0x12, 0x83, 0x01, 0x0a, 0x1c, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, + 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x70, + 0x72, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x27, 0xf2, 0xde, 0x1f, 0x23, 0x79, 0x61, 0x6d, 0x6c, 0x3a, + 0x22, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x52, 0x19, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x4b, 0x65, 0x79, 0x50, 0x72, 0x69, 0x63, 0x65, 0x3a, 0x1b, 0x8a, 0xe7, 0xb0, 0x2a, 0x16, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x78, 0x2f, 0x70, 0x65, 0x70, 0x2f, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x76, 0x0a, 0x13, 0x54, 0x72, 0x75, 0x73, 0x74, 0x65, + 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x79, 0x12, 0x1b, 0x0a, + 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, + 0x1d, 0x0a, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x42, 0x95, + 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x70, 0x65, 0x70, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, + 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1687,7 +1688,7 @@ var file_fairyring_pep_params_proto_goTypes = []interface{}{ var file_fairyring_pep_params_proto_depIdxs = []int32{ 1, // 0: fairyring.pep.Params.trusted_counter_parties:type_name -> fairyring.pep.TrustedCounterParty 2, // 1: fairyring.pep.Params.min_gas_price:type_name -> cosmos.base.v1beta1.Coin - 2, // 2: fairyring.pep.Params.private_keyshare_price:type_name -> cosmos.base.v1beta1.Coin + 2, // 2: fairyring.pep.Params.private_decryption_key_price:type_name -> cosmos.base.v1beta1.Coin 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 diff --git a/api/fairyring/pep/query.pulsar.go b/api/fairyring/pep/query.pulsar.go index fac7b0d9..3fae1dc4 100644 --- a/api/fairyring/pep/query.pulsar.go +++ b/api/fairyring/pep/query.pulsar.go @@ -4,7 +4,7 @@ package pep import ( _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" - common "github.com/Fairblock/fairyring/api/fairyring/common" + common "cosmossdk.io/api/fairyring/common" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -809,25 +809,25 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods } var ( - md_QueryKeyshareReqRequest protoreflect.MessageDescriptor - fd_QueryKeyshareReqRequest_req_id protoreflect.FieldDescriptor + md_QueryGeneralIdentityRequest protoreflect.MessageDescriptor + fd_QueryGeneralIdentityRequest_req_id protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryKeyshareReqRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryKeyshareReqRequest") - fd_QueryKeyshareReqRequest_req_id = md_QueryKeyshareReqRequest.Fields().ByName("req_id") + md_QueryGeneralIdentityRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryGeneralIdentityRequest") + fd_QueryGeneralIdentityRequest_req_id = md_QueryGeneralIdentityRequest.Fields().ByName("req_id") } -var _ protoreflect.Message = (*fastReflection_QueryKeyshareReqRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGeneralIdentityRequest)(nil) -type fastReflection_QueryKeyshareReqRequest QueryKeyshareReqRequest +type fastReflection_QueryGeneralIdentityRequest QueryGeneralIdentityRequest -func (x *QueryKeyshareReqRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryKeyshareReqRequest)(x) +func (x *QueryGeneralIdentityRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGeneralIdentityRequest)(x) } -func (x *QueryKeyshareReqRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryGeneralIdentityRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -839,43 +839,43 @@ func (x *QueryKeyshareReqRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryKeyshareReqRequest_messageType fastReflection_QueryKeyshareReqRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryKeyshareReqRequest_messageType{} +var _fastReflection_QueryGeneralIdentityRequest_messageType fastReflection_QueryGeneralIdentityRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGeneralIdentityRequest_messageType{} -type fastReflection_QueryKeyshareReqRequest_messageType struct{} +type fastReflection_QueryGeneralIdentityRequest_messageType struct{} -func (x fastReflection_QueryKeyshareReqRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryKeyshareReqRequest)(nil) +func (x fastReflection_QueryGeneralIdentityRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGeneralIdentityRequest)(nil) } -func (x fastReflection_QueryKeyshareReqRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryKeyshareReqRequest) +func (x fastReflection_QueryGeneralIdentityRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGeneralIdentityRequest) } -func (x fastReflection_QueryKeyshareReqRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyshareReqRequest +func (x fastReflection_QueryGeneralIdentityRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralIdentityRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryKeyshareReqRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyshareReqRequest +func (x *fastReflection_QueryGeneralIdentityRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralIdentityRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryKeyshareReqRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryKeyshareReqRequest_messageType +func (x *fastReflection_QueryGeneralIdentityRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGeneralIdentityRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryKeyshareReqRequest) New() protoreflect.Message { - return new(fastReflection_QueryKeyshareReqRequest) +func (x *fastReflection_QueryGeneralIdentityRequest) New() protoreflect.Message { + return new(fastReflection_QueryGeneralIdentityRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryKeyshareReqRequest) Interface() protoreflect.ProtoMessage { - return (*QueryKeyshareReqRequest)(x) +func (x *fastReflection_QueryGeneralIdentityRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGeneralIdentityRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -883,10 +883,10 @@ func (x *fastReflection_QueryKeyshareReqRequest) Interface() protoreflect.ProtoM // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryKeyshareReqRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryGeneralIdentityRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ReqId != "" { value := protoreflect.ValueOfString(x.ReqId) - if !f(fd_QueryKeyshareReqRequest_req_id, value) { + if !f(fd_QueryGeneralIdentityRequest_req_id, value) { return } } @@ -903,15 +903,15 @@ func (x *fastReflection_QueryKeyshareReqRequest) Range(f func(protoreflect.Field // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryKeyshareReqRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGeneralIdentityRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqRequest.req_id": + case "fairyring.pep.QueryGeneralIdentityRequest.req_id": return x.ReqId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityRequest does not contain field %s", fd.FullName())) } } @@ -921,15 +921,15 @@ func (x *fastReflection_QueryKeyshareReqRequest) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareReqRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGeneralIdentityRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqRequest.req_id": + case "fairyring.pep.QueryGeneralIdentityRequest.req_id": x.ReqId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityRequest does not contain field %s", fd.FullName())) } } @@ -939,16 +939,16 @@ func (x *fastReflection_QueryKeyshareReqRequest) Clear(fd protoreflect.FieldDesc // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryKeyshareReqRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralIdentityRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryKeyshareReqRequest.req_id": + case "fairyring.pep.QueryGeneralIdentityRequest.req_id": value := x.ReqId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityRequest does not contain field %s", descriptor.FullName())) } } @@ -962,15 +962,15 @@ func (x *fastReflection_QueryKeyshareReqRequest) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareReqRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGeneralIdentityRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqRequest.req_id": + case "fairyring.pep.QueryGeneralIdentityRequest.req_id": x.ReqId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityRequest does not contain field %s", fd.FullName())) } } @@ -984,40 +984,40 @@ func (x *fastReflection_QueryKeyshareReqRequest) Set(fd protoreflect.FieldDescri // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareReqRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralIdentityRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqRequest.req_id": - panic(fmt.Errorf("field req_id of message fairyring.pep.QueryKeyshareReqRequest is not mutable")) + case "fairyring.pep.QueryGeneralIdentityRequest.req_id": + panic(fmt.Errorf("field req_id of message fairyring.pep.QueryGeneralIdentityRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryKeyshareReqRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralIdentityRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqRequest.req_id": + case "fairyring.pep.QueryGeneralIdentityRequest.req_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryKeyshareReqRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGeneralIdentityRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryKeyshareReqRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryGeneralIdentityRequest", d.FullName())) } panic("unreachable") } @@ -1025,7 +1025,7 @@ func (x *fastReflection_QueryKeyshareReqRequest) WhichOneof(d protoreflect.Oneof // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryKeyshareReqRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGeneralIdentityRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1036,7 +1036,7 @@ func (x *fastReflection_QueryKeyshareReqRequest) GetUnknown() protoreflect.RawFi // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareReqRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGeneralIdentityRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1048,7 +1048,7 @@ func (x *fastReflection_QueryKeyshareReqRequest) SetUnknown(fields protoreflect. // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryKeyshareReqRequest) IsValid() bool { +func (x *fastReflection_QueryGeneralIdentityRequest) IsValid() bool { return x != nil } @@ -1058,9 +1058,9 @@ func (x *fastReflection_QueryKeyshareReqRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryKeyshareReqRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGeneralIdentityRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryKeyshareReqRequest) + x := input.Message.Interface().(*QueryGeneralIdentityRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1086,7 +1086,7 @@ func (x *fastReflection_QueryKeyshareReqRequest) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyshareReqRequest) + x := input.Message.Interface().(*QueryGeneralIdentityRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1123,7 +1123,7 @@ func (x *fastReflection_QueryKeyshareReqRequest) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyshareReqRequest) + x := input.Message.Interface().(*QueryGeneralIdentityRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1155,10 +1155,10 @@ func (x *fastReflection_QueryKeyshareReqRequest) ProtoMethods() *protoiface.Meth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareReqRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralIdentityRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareReqRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralIdentityRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1229,25 +1229,25 @@ func (x *fastReflection_QueryKeyshareReqRequest) ProtoMethods() *protoiface.Meth } var ( - md_QueryKeyshareReqResponse protoreflect.MessageDescriptor - fd_QueryKeyshareReqResponse_keyshare protoreflect.FieldDescriptor + md_QueryGeneralIdentityResponse protoreflect.MessageDescriptor + fd_QueryGeneralIdentityResponse_request_details protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryKeyshareReqResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryKeyshareReqResponse") - fd_QueryKeyshareReqResponse_keyshare = md_QueryKeyshareReqResponse.Fields().ByName("keyshare") + md_QueryGeneralIdentityResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryGeneralIdentityResponse") + fd_QueryGeneralIdentityResponse_request_details = md_QueryGeneralIdentityResponse.Fields().ByName("request_details") } -var _ protoreflect.Message = (*fastReflection_QueryKeyshareReqResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGeneralIdentityResponse)(nil) -type fastReflection_QueryKeyshareReqResponse QueryKeyshareReqResponse +type fastReflection_QueryGeneralIdentityResponse QueryGeneralIdentityResponse -func (x *QueryKeyshareReqResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryKeyshareReqResponse)(x) +func (x *QueryGeneralIdentityResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGeneralIdentityResponse)(x) } -func (x *QueryKeyshareReqResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryGeneralIdentityResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1259,43 +1259,43 @@ func (x *QueryKeyshareReqResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryKeyshareReqResponse_messageType fastReflection_QueryKeyshareReqResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryKeyshareReqResponse_messageType{} +var _fastReflection_QueryGeneralIdentityResponse_messageType fastReflection_QueryGeneralIdentityResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGeneralIdentityResponse_messageType{} -type fastReflection_QueryKeyshareReqResponse_messageType struct{} +type fastReflection_QueryGeneralIdentityResponse_messageType struct{} -func (x fastReflection_QueryKeyshareReqResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryKeyshareReqResponse)(nil) +func (x fastReflection_QueryGeneralIdentityResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGeneralIdentityResponse)(nil) } -func (x fastReflection_QueryKeyshareReqResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryKeyshareReqResponse) +func (x fastReflection_QueryGeneralIdentityResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGeneralIdentityResponse) } -func (x fastReflection_QueryKeyshareReqResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyshareReqResponse +func (x fastReflection_QueryGeneralIdentityResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralIdentityResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryKeyshareReqResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyshareReqResponse +func (x *fastReflection_QueryGeneralIdentityResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralIdentityResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryKeyshareReqResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryKeyshareReqResponse_messageType +func (x *fastReflection_QueryGeneralIdentityResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGeneralIdentityResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryKeyshareReqResponse) New() protoreflect.Message { - return new(fastReflection_QueryKeyshareReqResponse) +func (x *fastReflection_QueryGeneralIdentityResponse) New() protoreflect.Message { + return new(fastReflection_QueryGeneralIdentityResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryKeyshareReqResponse) Interface() protoreflect.ProtoMessage { - return (*QueryKeyshareReqResponse)(x) +func (x *fastReflection_QueryGeneralIdentityResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGeneralIdentityResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -1303,10 +1303,10 @@ func (x *fastReflection_QueryKeyshareReqResponse) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryKeyshareReqResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Keyshare != nil { - value := protoreflect.ValueOfMessage(x.Keyshare.ProtoReflect()) - if !f(fd_QueryKeyshareReqResponse_keyshare, value) { +func (x *fastReflection_QueryGeneralIdentityResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RequestDetails != nil { + value := protoreflect.ValueOfMessage(x.RequestDetails.ProtoReflect()) + if !f(fd_QueryGeneralIdentityResponse_request_details, value) { return } } @@ -1323,15 +1323,15 @@ func (x *fastReflection_QueryKeyshareReqResponse) Range(f func(protoreflect.Fiel // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryKeyshareReqResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGeneralIdentityResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqResponse.keyshare": - return x.Keyshare != nil + case "fairyring.pep.QueryGeneralIdentityResponse.request_details": + return x.RequestDetails != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityResponse does not contain field %s", fd.FullName())) } } @@ -1341,15 +1341,15 @@ func (x *fastReflection_QueryKeyshareReqResponse) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareReqResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGeneralIdentityResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqResponse.keyshare": - x.Keyshare = nil + case "fairyring.pep.QueryGeneralIdentityResponse.request_details": + x.RequestDetails = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityResponse does not contain field %s", fd.FullName())) } } @@ -1359,16 +1359,16 @@ func (x *fastReflection_QueryKeyshareReqResponse) Clear(fd protoreflect.FieldDes // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryKeyshareReqResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralIdentityResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryKeyshareReqResponse.keyshare": - value := x.Keyshare + case "fairyring.pep.QueryGeneralIdentityResponse.request_details": + value := x.RequestDetails return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityResponse does not contain field %s", descriptor.FullName())) } } @@ -1382,15 +1382,15 @@ func (x *fastReflection_QueryKeyshareReqResponse) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareReqResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGeneralIdentityResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqResponse.keyshare": - x.Keyshare = value.Message().Interface().(*IdentityExecutionQueue) + case "fairyring.pep.QueryGeneralIdentityResponse.request_details": + x.RequestDetails = value.Message().Interface().(*IdentityExecutionEntry) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityResponse does not contain field %s", fd.FullName())) } } @@ -1404,44 +1404,44 @@ func (x *fastReflection_QueryKeyshareReqResponse) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareReqResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralIdentityResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqResponse.keyshare": - if x.Keyshare == nil { - x.Keyshare = new(IdentityExecutionQueue) + case "fairyring.pep.QueryGeneralIdentityResponse.request_details": + if x.RequestDetails == nil { + x.RequestDetails = new(IdentityExecutionEntry) } - return protoreflect.ValueOfMessage(x.Keyshare.ProtoReflect()) + return protoreflect.ValueOfMessage(x.RequestDetails.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryKeyshareReqResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralIdentityResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqResponse.keyshare": - m := new(IdentityExecutionQueue) + case "fairyring.pep.QueryGeneralIdentityResponse.request_details": + m := new(IdentityExecutionEntry) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryKeyshareReqResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGeneralIdentityResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryKeyshareReqResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryGeneralIdentityResponse", d.FullName())) } panic("unreachable") } @@ -1449,7 +1449,7 @@ func (x *fastReflection_QueryKeyshareReqResponse) WhichOneof(d protoreflect.Oneo // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryKeyshareReqResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGeneralIdentityResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1460,7 +1460,7 @@ func (x *fastReflection_QueryKeyshareReqResponse) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareReqResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGeneralIdentityResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1472,7 +1472,7 @@ func (x *fastReflection_QueryKeyshareReqResponse) SetUnknown(fields protoreflect // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryKeyshareReqResponse) IsValid() bool { +func (x *fastReflection_QueryGeneralIdentityResponse) IsValid() bool { return x != nil } @@ -1482,9 +1482,9 @@ func (x *fastReflection_QueryKeyshareReqResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryKeyshareReqResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGeneralIdentityResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryKeyshareReqResponse) + x := input.Message.Interface().(*QueryGeneralIdentityResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1496,8 +1496,8 @@ func (x *fastReflection_QueryKeyshareReqResponse) ProtoMethods() *protoiface.Met var n int var l int _ = l - if x.Keyshare != nil { - l = options.Size(x.Keyshare) + if x.RequestDetails != nil { + l = options.Size(x.RequestDetails) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -1510,7 +1510,7 @@ func (x *fastReflection_QueryKeyshareReqResponse) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyshareReqResponse) + x := input.Message.Interface().(*QueryGeneralIdentityResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1529,8 +1529,8 @@ func (x *fastReflection_QueryKeyshareReqResponse) ProtoMethods() *protoiface.Met i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Keyshare != nil { - encoded, err := options.Marshal(x.Keyshare) + if x.RequestDetails != nil { + encoded, err := options.Marshal(x.RequestDetails) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1554,7 +1554,7 @@ func (x *fastReflection_QueryKeyshareReqResponse) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyshareReqResponse) + x := input.Message.Interface().(*QueryGeneralIdentityResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1586,15 +1586,15 @@ func (x *fastReflection_QueryKeyshareReqResponse) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareReqResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralIdentityResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareReqResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralIdentityResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Keyshare", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RequestDetails", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1621,10 +1621,10 @@ func (x *fastReflection_QueryKeyshareReqResponse) ProtoMethods() *protoiface.Met if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Keyshare == nil { - x.Keyshare = &IdentityExecutionQueue{} + if x.RequestDetails == nil { + x.RequestDetails = &IdentityExecutionEntry{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Keyshare); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RequestDetails); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -1664,25 +1664,25 @@ func (x *fastReflection_QueryKeyshareReqResponse) ProtoMethods() *protoiface.Met } var ( - md_QueryKeyshareReqAllRequest protoreflect.MessageDescriptor - fd_QueryKeyshareReqAllRequest_pagination protoreflect.FieldDescriptor + md_QueryGeneralIdentityAllRequest protoreflect.MessageDescriptor + fd_QueryGeneralIdentityAllRequest_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryKeyshareReqAllRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryKeyshareReqAllRequest") - fd_QueryKeyshareReqAllRequest_pagination = md_QueryKeyshareReqAllRequest.Fields().ByName("pagination") + md_QueryGeneralIdentityAllRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryGeneralIdentityAllRequest") + fd_QueryGeneralIdentityAllRequest_pagination = md_QueryGeneralIdentityAllRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryKeyshareReqAllRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGeneralIdentityAllRequest)(nil) -type fastReflection_QueryKeyshareReqAllRequest QueryKeyshareReqAllRequest +type fastReflection_QueryGeneralIdentityAllRequest QueryGeneralIdentityAllRequest -func (x *QueryKeyshareReqAllRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryKeyshareReqAllRequest)(x) +func (x *QueryGeneralIdentityAllRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGeneralIdentityAllRequest)(x) } -func (x *QueryKeyshareReqAllRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryGeneralIdentityAllRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1694,43 +1694,43 @@ func (x *QueryKeyshareReqAllRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryKeyshareReqAllRequest_messageType fastReflection_QueryKeyshareReqAllRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryKeyshareReqAllRequest_messageType{} +var _fastReflection_QueryGeneralIdentityAllRequest_messageType fastReflection_QueryGeneralIdentityAllRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGeneralIdentityAllRequest_messageType{} -type fastReflection_QueryKeyshareReqAllRequest_messageType struct{} +type fastReflection_QueryGeneralIdentityAllRequest_messageType struct{} -func (x fastReflection_QueryKeyshareReqAllRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryKeyshareReqAllRequest)(nil) +func (x fastReflection_QueryGeneralIdentityAllRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGeneralIdentityAllRequest)(nil) } -func (x fastReflection_QueryKeyshareReqAllRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryKeyshareReqAllRequest) +func (x fastReflection_QueryGeneralIdentityAllRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGeneralIdentityAllRequest) } -func (x fastReflection_QueryKeyshareReqAllRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyshareReqAllRequest +func (x fastReflection_QueryGeneralIdentityAllRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralIdentityAllRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryKeyshareReqAllRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyshareReqAllRequest +func (x *fastReflection_QueryGeneralIdentityAllRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralIdentityAllRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryKeyshareReqAllRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryKeyshareReqAllRequest_messageType +func (x *fastReflection_QueryGeneralIdentityAllRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGeneralIdentityAllRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryKeyshareReqAllRequest) New() protoreflect.Message { - return new(fastReflection_QueryKeyshareReqAllRequest) +func (x *fastReflection_QueryGeneralIdentityAllRequest) New() protoreflect.Message { + return new(fastReflection_QueryGeneralIdentityAllRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryKeyshareReqAllRequest) Interface() protoreflect.ProtoMessage { - return (*QueryKeyshareReqAllRequest)(x) +func (x *fastReflection_QueryGeneralIdentityAllRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGeneralIdentityAllRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -1738,10 +1738,10 @@ func (x *fastReflection_QueryKeyshareReqAllRequest) Interface() protoreflect.Pro // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryKeyshareReqAllRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryGeneralIdentityAllRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryKeyshareReqAllRequest_pagination, value) { + if !f(fd_QueryGeneralIdentityAllRequest_pagination, value) { return } } @@ -1758,15 +1758,15 @@ func (x *fastReflection_QueryKeyshareReqAllRequest) Range(f func(protoreflect.Fi // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryKeyshareReqAllRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGeneralIdentityAllRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqAllRequest.pagination": + case "fairyring.pep.QueryGeneralIdentityAllRequest.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityAllRequest does not contain field %s", fd.FullName())) } } @@ -1776,15 +1776,15 @@ func (x *fastReflection_QueryKeyshareReqAllRequest) Has(fd protoreflect.FieldDes // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareReqAllRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGeneralIdentityAllRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqAllRequest.pagination": + case "fairyring.pep.QueryGeneralIdentityAllRequest.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityAllRequest does not contain field %s", fd.FullName())) } } @@ -1794,16 +1794,16 @@ func (x *fastReflection_QueryKeyshareReqAllRequest) Clear(fd protoreflect.FieldD // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryKeyshareReqAllRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralIdentityAllRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryKeyshareReqAllRequest.pagination": + case "fairyring.pep.QueryGeneralIdentityAllRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityAllRequest does not contain field %s", descriptor.FullName())) } } @@ -1817,15 +1817,15 @@ func (x *fastReflection_QueryKeyshareReqAllRequest) Get(descriptor protoreflect. // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareReqAllRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGeneralIdentityAllRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqAllRequest.pagination": + case "fairyring.pep.QueryGeneralIdentityAllRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityAllRequest does not contain field %s", fd.FullName())) } } @@ -1839,44 +1839,44 @@ func (x *fastReflection_QueryKeyshareReqAllRequest) Set(fd protoreflect.FieldDes // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareReqAllRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralIdentityAllRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqAllRequest.pagination": + case "fairyring.pep.QueryGeneralIdentityAllRequest.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityAllRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryKeyshareReqAllRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralIdentityAllRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqAllRequest.pagination": + case "fairyring.pep.QueryGeneralIdentityAllRequest.pagination": m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityAllRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityAllRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryKeyshareReqAllRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGeneralIdentityAllRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryKeyshareReqAllRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryGeneralIdentityAllRequest", d.FullName())) } panic("unreachable") } @@ -1884,7 +1884,7 @@ func (x *fastReflection_QueryKeyshareReqAllRequest) WhichOneof(d protoreflect.On // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryKeyshareReqAllRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGeneralIdentityAllRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1895,7 +1895,7 @@ func (x *fastReflection_QueryKeyshareReqAllRequest) GetUnknown() protoreflect.Ra // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareReqAllRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGeneralIdentityAllRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1907,7 +1907,7 @@ func (x *fastReflection_QueryKeyshareReqAllRequest) SetUnknown(fields protorefle // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryKeyshareReqAllRequest) IsValid() bool { +func (x *fastReflection_QueryGeneralIdentityAllRequest) IsValid() bool { return x != nil } @@ -1917,9 +1917,9 @@ func (x *fastReflection_QueryKeyshareReqAllRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryKeyshareReqAllRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGeneralIdentityAllRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryKeyshareReqAllRequest) + x := input.Message.Interface().(*QueryGeneralIdentityAllRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1945,7 +1945,7 @@ func (x *fastReflection_QueryKeyshareReqAllRequest) ProtoMethods() *protoiface.M } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyshareReqAllRequest) + x := input.Message.Interface().(*QueryGeneralIdentityAllRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1989,7 +1989,7 @@ func (x *fastReflection_QueryKeyshareReqAllRequest) ProtoMethods() *protoiface.M }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyshareReqAllRequest) + x := input.Message.Interface().(*QueryGeneralIdentityAllRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2021,10 +2021,10 @@ func (x *fastReflection_QueryKeyshareReqAllRequest) ProtoMethods() *protoiface.M fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareReqAllRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralIdentityAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareReqAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralIdentityAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2098,79 +2098,79 @@ func (x *fastReflection_QueryKeyshareReqAllRequest) ProtoMethods() *protoiface.M } } -var _ protoreflect.List = (*_QueryKeyshareReqAllResponse_1_list)(nil) +var _ protoreflect.List = (*_QueryGeneralIdentityAllResponse_1_list)(nil) -type _QueryKeyshareReqAllResponse_1_list struct { - list *[]*IdentityExecutionQueue +type _QueryGeneralIdentityAllResponse_1_list struct { + list *[]*IdentityExecutionEntry } -func (x *_QueryKeyshareReqAllResponse_1_list) Len() int { +func (x *_QueryGeneralIdentityAllResponse_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryKeyshareReqAllResponse_1_list) Get(i int) protoreflect.Value { +func (x *_QueryGeneralIdentityAllResponse_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryKeyshareReqAllResponse_1_list) Set(i int, value protoreflect.Value) { +func (x *_QueryGeneralIdentityAllResponse_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*IdentityExecutionQueue) + concreteValue := valueUnwrapped.Interface().(*IdentityExecutionEntry) (*x.list)[i] = concreteValue } -func (x *_QueryKeyshareReqAllResponse_1_list) Append(value protoreflect.Value) { +func (x *_QueryGeneralIdentityAllResponse_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*IdentityExecutionQueue) + concreteValue := valueUnwrapped.Interface().(*IdentityExecutionEntry) *x.list = append(*x.list, concreteValue) } -func (x *_QueryKeyshareReqAllResponse_1_list) AppendMutable() protoreflect.Value { - v := new(IdentityExecutionQueue) +func (x *_QueryGeneralIdentityAllResponse_1_list) AppendMutable() protoreflect.Value { + v := new(IdentityExecutionEntry) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryKeyshareReqAllResponse_1_list) Truncate(n int) { +func (x *_QueryGeneralIdentityAllResponse_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryKeyshareReqAllResponse_1_list) NewElement() protoreflect.Value { - v := new(IdentityExecutionQueue) +func (x *_QueryGeneralIdentityAllResponse_1_list) NewElement() protoreflect.Value { + v := new(IdentityExecutionEntry) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryKeyshareReqAllResponse_1_list) IsValid() bool { +func (x *_QueryGeneralIdentityAllResponse_1_list) IsValid() bool { return x.list != nil } var ( - md_QueryKeyshareReqAllResponse protoreflect.MessageDescriptor - fd_QueryKeyshareReqAllResponse_keyshares protoreflect.FieldDescriptor - fd_QueryKeyshareReqAllResponse_pagination protoreflect.FieldDescriptor + md_QueryGeneralIdentityAllResponse protoreflect.MessageDescriptor + fd_QueryGeneralIdentityAllResponse_request_details_list protoreflect.FieldDescriptor + fd_QueryGeneralIdentityAllResponse_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryKeyshareReqAllResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryKeyshareReqAllResponse") - fd_QueryKeyshareReqAllResponse_keyshares = md_QueryKeyshareReqAllResponse.Fields().ByName("keyshares") - fd_QueryKeyshareReqAllResponse_pagination = md_QueryKeyshareReqAllResponse.Fields().ByName("pagination") + md_QueryGeneralIdentityAllResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryGeneralIdentityAllResponse") + fd_QueryGeneralIdentityAllResponse_request_details_list = md_QueryGeneralIdentityAllResponse.Fields().ByName("request_details_list") + fd_QueryGeneralIdentityAllResponse_pagination = md_QueryGeneralIdentityAllResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryKeyshareReqAllResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGeneralIdentityAllResponse)(nil) -type fastReflection_QueryKeyshareReqAllResponse QueryKeyshareReqAllResponse +type fastReflection_QueryGeneralIdentityAllResponse QueryGeneralIdentityAllResponse -func (x *QueryKeyshareReqAllResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryKeyshareReqAllResponse)(x) +func (x *QueryGeneralIdentityAllResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGeneralIdentityAllResponse)(x) } -func (x *QueryKeyshareReqAllResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryGeneralIdentityAllResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2182,43 +2182,43 @@ func (x *QueryKeyshareReqAllResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryKeyshareReqAllResponse_messageType fastReflection_QueryKeyshareReqAllResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryKeyshareReqAllResponse_messageType{} +var _fastReflection_QueryGeneralIdentityAllResponse_messageType fastReflection_QueryGeneralIdentityAllResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGeneralIdentityAllResponse_messageType{} -type fastReflection_QueryKeyshareReqAllResponse_messageType struct{} +type fastReflection_QueryGeneralIdentityAllResponse_messageType struct{} -func (x fastReflection_QueryKeyshareReqAllResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryKeyshareReqAllResponse)(nil) +func (x fastReflection_QueryGeneralIdentityAllResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGeneralIdentityAllResponse)(nil) } -func (x fastReflection_QueryKeyshareReqAllResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryKeyshareReqAllResponse) +func (x fastReflection_QueryGeneralIdentityAllResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGeneralIdentityAllResponse) } -func (x fastReflection_QueryKeyshareReqAllResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyshareReqAllResponse +func (x fastReflection_QueryGeneralIdentityAllResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralIdentityAllResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryKeyshareReqAllResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyshareReqAllResponse +func (x *fastReflection_QueryGeneralIdentityAllResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralIdentityAllResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryKeyshareReqAllResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryKeyshareReqAllResponse_messageType +func (x *fastReflection_QueryGeneralIdentityAllResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGeneralIdentityAllResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryKeyshareReqAllResponse) New() protoreflect.Message { - return new(fastReflection_QueryKeyshareReqAllResponse) +func (x *fastReflection_QueryGeneralIdentityAllResponse) New() protoreflect.Message { + return new(fastReflection_QueryGeneralIdentityAllResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryKeyshareReqAllResponse) Interface() protoreflect.ProtoMessage { - return (*QueryKeyshareReqAllResponse)(x) +func (x *fastReflection_QueryGeneralIdentityAllResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGeneralIdentityAllResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -2226,16 +2226,16 @@ func (x *fastReflection_QueryKeyshareReqAllResponse) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryKeyshareReqAllResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Keyshares) != 0 { - value := protoreflect.ValueOfList(&_QueryKeyshareReqAllResponse_1_list{list: &x.Keyshares}) - if !f(fd_QueryKeyshareReqAllResponse_keyshares, value) { +func (x *fastReflection_QueryGeneralIdentityAllResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.RequestDetailsList) != 0 { + value := protoreflect.ValueOfList(&_QueryGeneralIdentityAllResponse_1_list{list: &x.RequestDetailsList}) + if !f(fd_QueryGeneralIdentityAllResponse_request_details_list, value) { return } } if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryKeyshareReqAllResponse_pagination, value) { + if !f(fd_QueryGeneralIdentityAllResponse_pagination, value) { return } } @@ -2252,17 +2252,17 @@ func (x *fastReflection_QueryKeyshareReqAllResponse) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryKeyshareReqAllResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGeneralIdentityAllResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqAllResponse.keyshares": - return len(x.Keyshares) != 0 - case "fairyring.pep.QueryKeyshareReqAllResponse.pagination": + case "fairyring.pep.QueryGeneralIdentityAllResponse.request_details_list": + return len(x.RequestDetailsList) != 0 + case "fairyring.pep.QueryGeneralIdentityAllResponse.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityAllResponse does not contain field %s", fd.FullName())) } } @@ -2272,17 +2272,17 @@ func (x *fastReflection_QueryKeyshareReqAllResponse) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareReqAllResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGeneralIdentityAllResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqAllResponse.keyshares": - x.Keyshares = nil - case "fairyring.pep.QueryKeyshareReqAllResponse.pagination": + case "fairyring.pep.QueryGeneralIdentityAllResponse.request_details_list": + x.RequestDetailsList = nil + case "fairyring.pep.QueryGeneralIdentityAllResponse.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityAllResponse does not contain field %s", fd.FullName())) } } @@ -2292,22 +2292,22 @@ func (x *fastReflection_QueryKeyshareReqAllResponse) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryKeyshareReqAllResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralIdentityAllResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryKeyshareReqAllResponse.keyshares": - if len(x.Keyshares) == 0 { - return protoreflect.ValueOfList(&_QueryKeyshareReqAllResponse_1_list{}) + case "fairyring.pep.QueryGeneralIdentityAllResponse.request_details_list": + if len(x.RequestDetailsList) == 0 { + return protoreflect.ValueOfList(&_QueryGeneralIdentityAllResponse_1_list{}) } - listValue := &_QueryKeyshareReqAllResponse_1_list{list: &x.Keyshares} + listValue := &_QueryGeneralIdentityAllResponse_1_list{list: &x.RequestDetailsList} return protoreflect.ValueOfList(listValue) - case "fairyring.pep.QueryKeyshareReqAllResponse.pagination": + case "fairyring.pep.QueryGeneralIdentityAllResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityAllResponse does not contain field %s", descriptor.FullName())) } } @@ -2321,19 +2321,19 @@ func (x *fastReflection_QueryKeyshareReqAllResponse) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareReqAllResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGeneralIdentityAllResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqAllResponse.keyshares": + case "fairyring.pep.QueryGeneralIdentityAllResponse.request_details_list": lv := value.List() - clv := lv.(*_QueryKeyshareReqAllResponse_1_list) - x.Keyshares = *clv.list - case "fairyring.pep.QueryKeyshareReqAllResponse.pagination": + clv := lv.(*_QueryGeneralIdentityAllResponse_1_list) + x.RequestDetailsList = *clv.list + case "fairyring.pep.QueryGeneralIdentityAllResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityAllResponse does not contain field %s", fd.FullName())) } } @@ -2347,53 +2347,53 @@ func (x *fastReflection_QueryKeyshareReqAllResponse) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareReqAllResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralIdentityAllResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqAllResponse.keyshares": - if x.Keyshares == nil { - x.Keyshares = []*IdentityExecutionQueue{} + case "fairyring.pep.QueryGeneralIdentityAllResponse.request_details_list": + if x.RequestDetailsList == nil { + x.RequestDetailsList = []*IdentityExecutionEntry{} } - value := &_QueryKeyshareReqAllResponse_1_list{list: &x.Keyshares} + value := &_QueryGeneralIdentityAllResponse_1_list{list: &x.RequestDetailsList} return protoreflect.ValueOfList(value) - case "fairyring.pep.QueryKeyshareReqAllResponse.pagination": + case "fairyring.pep.QueryGeneralIdentityAllResponse.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageResponse) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityAllResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryKeyshareReqAllResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralIdentityAllResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryKeyshareReqAllResponse.keyshares": - list := []*IdentityExecutionQueue{} - return protoreflect.ValueOfList(&_QueryKeyshareReqAllResponse_1_list{list: &list}) - case "fairyring.pep.QueryKeyshareReqAllResponse.pagination": + case "fairyring.pep.QueryGeneralIdentityAllResponse.request_details_list": + list := []*IdentityExecutionEntry{} + return protoreflect.ValueOfList(&_QueryGeneralIdentityAllResponse_1_list{list: &list}) + case "fairyring.pep.QueryGeneralIdentityAllResponse.pagination": m := new(v1beta1.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryKeyshareReqAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryGeneralIdentityAllResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryKeyshareReqAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryGeneralIdentityAllResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryKeyshareReqAllResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGeneralIdentityAllResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryKeyshareReqAllResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryGeneralIdentityAllResponse", d.FullName())) } panic("unreachable") } @@ -2401,7 +2401,7 @@ func (x *fastReflection_QueryKeyshareReqAllResponse) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryKeyshareReqAllResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGeneralIdentityAllResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2412,7 +2412,7 @@ func (x *fastReflection_QueryKeyshareReqAllResponse) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyshareReqAllResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGeneralIdentityAllResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2424,7 +2424,7 @@ func (x *fastReflection_QueryKeyshareReqAllResponse) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryKeyshareReqAllResponse) IsValid() bool { +func (x *fastReflection_QueryGeneralIdentityAllResponse) IsValid() bool { return x != nil } @@ -2434,9 +2434,9 @@ func (x *fastReflection_QueryKeyshareReqAllResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryKeyshareReqAllResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGeneralIdentityAllResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryKeyshareReqAllResponse) + x := input.Message.Interface().(*QueryGeneralIdentityAllResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2448,8 +2448,8 @@ func (x *fastReflection_QueryKeyshareReqAllResponse) ProtoMethods() *protoiface. var n int var l int _ = l - if len(x.Keyshares) > 0 { - for _, e := range x.Keyshares { + if len(x.RequestDetailsList) > 0 { + for _, e := range x.RequestDetailsList { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -2468,7 +2468,7 @@ func (x *fastReflection_QueryKeyshareReqAllResponse) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyshareReqAllResponse) + x := input.Message.Interface().(*QueryGeneralIdentityAllResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2501,9 +2501,9 @@ func (x *fastReflection_QueryKeyshareReqAllResponse) ProtoMethods() *protoiface. i-- dAtA[i] = 0x12 } - if len(x.Keyshares) > 0 { - for iNdEx := len(x.Keyshares) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Keyshares[iNdEx]) + if len(x.RequestDetailsList) > 0 { + for iNdEx := len(x.RequestDetailsList) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.RequestDetailsList[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2528,7 +2528,7 @@ func (x *fastReflection_QueryKeyshareReqAllResponse) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyshareReqAllResponse) + x := input.Message.Interface().(*QueryGeneralIdentityAllResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2560,15 +2560,15 @@ func (x *fastReflection_QueryKeyshareReqAllResponse) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareReqAllResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralIdentityAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareReqAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralIdentityAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Keyshares", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RequestDetailsList", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2595,8 +2595,8 @@ func (x *fastReflection_QueryKeyshareReqAllResponse) ProtoMethods() *protoiface. if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Keyshares = append(x.Keyshares, &IdentityExecutionQueue{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Keyshares[len(x.Keyshares)-1]); err != nil { + x.RequestDetailsList = append(x.RequestDetailsList, &IdentityExecutionEntry{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.RequestDetailsList[len(x.RequestDetailsList)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -8899,25 +8899,25 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods } var ( - md_QueryPrivateKeyshareReqRequest protoreflect.MessageDescriptor - fd_QueryPrivateKeyshareReqRequest_req_id protoreflect.FieldDescriptor + md_QueryPrivateIdentityRequest protoreflect.MessageDescriptor + fd_QueryPrivateIdentityRequest_req_id protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryPrivateKeyshareReqRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryPrivateKeyshareReqRequest") - fd_QueryPrivateKeyshareReqRequest_req_id = md_QueryPrivateKeyshareReqRequest.Fields().ByName("req_id") + md_QueryPrivateIdentityRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryPrivateIdentityRequest") + fd_QueryPrivateIdentityRequest_req_id = md_QueryPrivateIdentityRequest.Fields().ByName("req_id") } -var _ protoreflect.Message = (*fastReflection_QueryPrivateKeyshareReqRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPrivateIdentityRequest)(nil) -type fastReflection_QueryPrivateKeyshareReqRequest QueryPrivateKeyshareReqRequest +type fastReflection_QueryPrivateIdentityRequest QueryPrivateIdentityRequest -func (x *QueryPrivateKeyshareReqRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryPrivateKeyshareReqRequest)(x) +func (x *QueryPrivateIdentityRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPrivateIdentityRequest)(x) } -func (x *QueryPrivateKeyshareReqRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryPrivateIdentityRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8929,43 +8929,43 @@ func (x *QueryPrivateKeyshareReqRequest) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_QueryPrivateKeyshareReqRequest_messageType fastReflection_QueryPrivateKeyshareReqRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryPrivateKeyshareReqRequest_messageType{} +var _fastReflection_QueryPrivateIdentityRequest_messageType fastReflection_QueryPrivateIdentityRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryPrivateIdentityRequest_messageType{} -type fastReflection_QueryPrivateKeyshareReqRequest_messageType struct{} +type fastReflection_QueryPrivateIdentityRequest_messageType struct{} -func (x fastReflection_QueryPrivateKeyshareReqRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryPrivateKeyshareReqRequest)(nil) +func (x fastReflection_QueryPrivateIdentityRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPrivateIdentityRequest)(nil) } -func (x fastReflection_QueryPrivateKeyshareReqRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryPrivateKeyshareReqRequest) +func (x fastReflection_QueryPrivateIdentityRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPrivateIdentityRequest) } -func (x fastReflection_QueryPrivateKeyshareReqRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPrivateKeyshareReqRequest +func (x fastReflection_QueryPrivateIdentityRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPrivateIdentityRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryPrivateKeyshareReqRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPrivateKeyshareReqRequest +func (x *fastReflection_QueryPrivateIdentityRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPrivateIdentityRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryPrivateKeyshareReqRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryPrivateKeyshareReqRequest_messageType +func (x *fastReflection_QueryPrivateIdentityRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryPrivateIdentityRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryPrivateKeyshareReqRequest) New() protoreflect.Message { - return new(fastReflection_QueryPrivateKeyshareReqRequest) +func (x *fastReflection_QueryPrivateIdentityRequest) New() protoreflect.Message { + return new(fastReflection_QueryPrivateIdentityRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryPrivateKeyshareReqRequest) Interface() protoreflect.ProtoMessage { - return (*QueryPrivateKeyshareReqRequest)(x) +func (x *fastReflection_QueryPrivateIdentityRequest) Interface() protoreflect.ProtoMessage { + return (*QueryPrivateIdentityRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -8973,10 +8973,10 @@ func (x *fastReflection_QueryPrivateKeyshareReqRequest) Interface() protoreflect // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryPrivateKeyshareReqRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryPrivateIdentityRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ReqId != "" { value := protoreflect.ValueOfString(x.ReqId) - if !f(fd_QueryPrivateKeyshareReqRequest_req_id, value) { + if !f(fd_QueryPrivateIdentityRequest_req_id, value) { return } } @@ -8993,15 +8993,15 @@ func (x *fastReflection_QueryPrivateKeyshareReqRequest) Range(f func(protoreflec // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryPrivateKeyshareReqRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPrivateIdentityRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryPrivateKeyshareReqRequest.req_id": + case "fairyring.pep.QueryPrivateIdentityRequest.req_id": return x.ReqId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateIdentityRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateIdentityRequest does not contain field %s", fd.FullName())) } } @@ -9011,15 +9011,15 @@ func (x *fastReflection_QueryPrivateKeyshareReqRequest) Has(fd protoreflect.Fiel // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPrivateKeyshareReqRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPrivateIdentityRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryPrivateKeyshareReqRequest.req_id": + case "fairyring.pep.QueryPrivateIdentityRequest.req_id": x.ReqId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateIdentityRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateIdentityRequest does not contain field %s", fd.FullName())) } } @@ -9029,16 +9029,16 @@ func (x *fastReflection_QueryPrivateKeyshareReqRequest) Clear(fd protoreflect.Fi // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryPrivateKeyshareReqRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPrivateIdentityRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryPrivateKeyshareReqRequest.req_id": + case "fairyring.pep.QueryPrivateIdentityRequest.req_id": value := x.ReqId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateIdentityRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateIdentityRequest does not contain field %s", descriptor.FullName())) } } @@ -9052,15 +9052,15 @@ func (x *fastReflection_QueryPrivateKeyshareReqRequest) Get(descriptor protorefl // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPrivateKeyshareReqRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPrivateIdentityRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryPrivateKeyshareReqRequest.req_id": + case "fairyring.pep.QueryPrivateIdentityRequest.req_id": x.ReqId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateIdentityRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateIdentityRequest does not contain field %s", fd.FullName())) } } @@ -9074,40 +9074,40 @@ func (x *fastReflection_QueryPrivateKeyshareReqRequest) Set(fd protoreflect.Fiel // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPrivateKeyshareReqRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPrivateIdentityRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryPrivateKeyshareReqRequest.req_id": - panic(fmt.Errorf("field req_id of message fairyring.pep.QueryPrivateKeyshareReqRequest is not mutable")) + case "fairyring.pep.QueryPrivateIdentityRequest.req_id": + panic(fmt.Errorf("field req_id of message fairyring.pep.QueryPrivateIdentityRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateIdentityRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateIdentityRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryPrivateKeyshareReqRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPrivateIdentityRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryPrivateKeyshareReqRequest.req_id": + case "fairyring.pep.QueryPrivateIdentityRequest.req_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateIdentityRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateIdentityRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryPrivateKeyshareReqRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPrivateIdentityRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryPrivateKeyshareReqRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryPrivateIdentityRequest", d.FullName())) } panic("unreachable") } @@ -9115,7 +9115,7 @@ func (x *fastReflection_QueryPrivateKeyshareReqRequest) WhichOneof(d protoreflec // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryPrivateKeyshareReqRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPrivateIdentityRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9126,7 +9126,7 @@ func (x *fastReflection_QueryPrivateKeyshareReqRequest) GetUnknown() protoreflec // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPrivateKeyshareReqRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPrivateIdentityRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9138,7 +9138,7 @@ func (x *fastReflection_QueryPrivateKeyshareReqRequest) SetUnknown(fields protor // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryPrivateKeyshareReqRequest) IsValid() bool { +func (x *fastReflection_QueryPrivateIdentityRequest) IsValid() bool { return x != nil } @@ -9148,9 +9148,9 @@ func (x *fastReflection_QueryPrivateKeyshareReqRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryPrivateKeyshareReqRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPrivateIdentityRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryPrivateKeyshareReqRequest) + x := input.Message.Interface().(*QueryPrivateIdentityRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9176,7 +9176,7 @@ func (x *fastReflection_QueryPrivateKeyshareReqRequest) ProtoMethods() *protoifa } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryPrivateKeyshareReqRequest) + x := input.Message.Interface().(*QueryPrivateIdentityRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9213,7 +9213,7 @@ func (x *fastReflection_QueryPrivateKeyshareReqRequest) ProtoMethods() *protoifa }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryPrivateKeyshareReqRequest) + x := input.Message.Interface().(*QueryPrivateIdentityRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9245,10 +9245,10 @@ func (x *fastReflection_QueryPrivateKeyshareReqRequest) ProtoMethods() *protoifa fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPrivateKeyshareReqRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPrivateIdentityRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPrivateKeyshareReqRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPrivateIdentityRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9318,83 +9318,83 @@ func (x *fastReflection_QueryPrivateKeyshareReqRequest) ProtoMethods() *protoifa } } -var _ protoreflect.List = (*_QueryPrivateKeyshareReqResponse_5_list)(nil) +var _ protoreflect.List = (*_QueryPrivateIdentityResponse_4_list)(nil) -type _QueryPrivateKeyshareReqResponse_5_list struct { - list *[]*common.EncryptedKeyshare +type _QueryPrivateIdentityResponse_4_list struct { + list *[]*common.PrivateDecryptionKey } -func (x *_QueryPrivateKeyshareReqResponse_5_list) Len() int { +func (x *_QueryPrivateIdentityResponse_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryPrivateKeyshareReqResponse_5_list) Get(i int) protoreflect.Value { +func (x *_QueryPrivateIdentityResponse_4_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryPrivateKeyshareReqResponse_5_list) Set(i int, value protoreflect.Value) { +func (x *_QueryPrivateIdentityResponse_4_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*common.EncryptedKeyshare) + concreteValue := valueUnwrapped.Interface().(*common.PrivateDecryptionKey) (*x.list)[i] = concreteValue } -func (x *_QueryPrivateKeyshareReqResponse_5_list) Append(value protoreflect.Value) { +func (x *_QueryPrivateIdentityResponse_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*common.EncryptedKeyshare) + concreteValue := valueUnwrapped.Interface().(*common.PrivateDecryptionKey) *x.list = append(*x.list, concreteValue) } -func (x *_QueryPrivateKeyshareReqResponse_5_list) AppendMutable() protoreflect.Value { - v := new(common.EncryptedKeyshare) +func (x *_QueryPrivateIdentityResponse_4_list) AppendMutable() protoreflect.Value { + v := new(common.PrivateDecryptionKey) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryPrivateKeyshareReqResponse_5_list) Truncate(n int) { +func (x *_QueryPrivateIdentityResponse_4_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryPrivateKeyshareReqResponse_5_list) NewElement() protoreflect.Value { - v := new(common.EncryptedKeyshare) +func (x *_QueryPrivateIdentityResponse_4_list) NewElement() protoreflect.Value { + v := new(common.PrivateDecryptionKey) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryPrivateKeyshareReqResponse_5_list) IsValid() bool { +func (x *_QueryPrivateIdentityResponse_4_list) IsValid() bool { return x.list != nil } var ( - md_QueryPrivateKeyshareReqResponse protoreflect.MessageDescriptor - fd_QueryPrivateKeyshareReqResponse_creator protoreflect.FieldDescriptor - fd_QueryPrivateKeyshareReqResponse_req_id protoreflect.FieldDescriptor - fd_QueryPrivateKeyshareReqResponse_pubkey protoreflect.FieldDescriptor - fd_QueryPrivateKeyshareReqResponse_encrypted_keyshares protoreflect.FieldDescriptor + md_QueryPrivateIdentityResponse protoreflect.MessageDescriptor + fd_QueryPrivateIdentityResponse_creator protoreflect.FieldDescriptor + fd_QueryPrivateIdentityResponse_req_id protoreflect.FieldDescriptor + fd_QueryPrivateIdentityResponse_pubkey protoreflect.FieldDescriptor + fd_QueryPrivateIdentityResponse_private_decryption_keys protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryPrivateKeyshareReqResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryPrivateKeyshareReqResponse") - fd_QueryPrivateKeyshareReqResponse_creator = md_QueryPrivateKeyshareReqResponse.Fields().ByName("creator") - fd_QueryPrivateKeyshareReqResponse_req_id = md_QueryPrivateKeyshareReqResponse.Fields().ByName("req_id") - fd_QueryPrivateKeyshareReqResponse_pubkey = md_QueryPrivateKeyshareReqResponse.Fields().ByName("pubkey") - fd_QueryPrivateKeyshareReqResponse_encrypted_keyshares = md_QueryPrivateKeyshareReqResponse.Fields().ByName("encrypted_keyshares") + md_QueryPrivateIdentityResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryPrivateIdentityResponse") + fd_QueryPrivateIdentityResponse_creator = md_QueryPrivateIdentityResponse.Fields().ByName("creator") + fd_QueryPrivateIdentityResponse_req_id = md_QueryPrivateIdentityResponse.Fields().ByName("req_id") + fd_QueryPrivateIdentityResponse_pubkey = md_QueryPrivateIdentityResponse.Fields().ByName("pubkey") + fd_QueryPrivateIdentityResponse_private_decryption_keys = md_QueryPrivateIdentityResponse.Fields().ByName("private_decryption_keys") } -var _ protoreflect.Message = (*fastReflection_QueryPrivateKeyshareReqResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPrivateIdentityResponse)(nil) -type fastReflection_QueryPrivateKeyshareReqResponse QueryPrivateKeyshareReqResponse +type fastReflection_QueryPrivateIdentityResponse QueryPrivateIdentityResponse -func (x *QueryPrivateKeyshareReqResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryPrivateKeyshareReqResponse)(x) +func (x *QueryPrivateIdentityResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPrivateIdentityResponse)(x) } -func (x *QueryPrivateKeyshareReqResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryPrivateIdentityResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9406,43 +9406,43 @@ func (x *QueryPrivateKeyshareReqResponse) slowProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -var _fastReflection_QueryPrivateKeyshareReqResponse_messageType fastReflection_QueryPrivateKeyshareReqResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryPrivateKeyshareReqResponse_messageType{} +var _fastReflection_QueryPrivateIdentityResponse_messageType fastReflection_QueryPrivateIdentityResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryPrivateIdentityResponse_messageType{} -type fastReflection_QueryPrivateKeyshareReqResponse_messageType struct{} +type fastReflection_QueryPrivateIdentityResponse_messageType struct{} -func (x fastReflection_QueryPrivateKeyshareReqResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryPrivateKeyshareReqResponse)(nil) +func (x fastReflection_QueryPrivateIdentityResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPrivateIdentityResponse)(nil) } -func (x fastReflection_QueryPrivateKeyshareReqResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryPrivateKeyshareReqResponse) +func (x fastReflection_QueryPrivateIdentityResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPrivateIdentityResponse) } -func (x fastReflection_QueryPrivateKeyshareReqResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPrivateKeyshareReqResponse +func (x fastReflection_QueryPrivateIdentityResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPrivateIdentityResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryPrivateKeyshareReqResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPrivateKeyshareReqResponse +func (x *fastReflection_QueryPrivateIdentityResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPrivateIdentityResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryPrivateKeyshareReqResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryPrivateKeyshareReqResponse_messageType +func (x *fastReflection_QueryPrivateIdentityResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryPrivateIdentityResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryPrivateKeyshareReqResponse) New() protoreflect.Message { - return new(fastReflection_QueryPrivateKeyshareReqResponse) +func (x *fastReflection_QueryPrivateIdentityResponse) New() protoreflect.Message { + return new(fastReflection_QueryPrivateIdentityResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryPrivateKeyshareReqResponse) Interface() protoreflect.ProtoMessage { - return (*QueryPrivateKeyshareReqResponse)(x) +func (x *fastReflection_QueryPrivateIdentityResponse) Interface() protoreflect.ProtoMessage { + return (*QueryPrivateIdentityResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -9450,28 +9450,28 @@ func (x *fastReflection_QueryPrivateKeyshareReqResponse) Interface() protoreflec // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryPrivateKeyshareReqResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryPrivateIdentityResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_QueryPrivateKeyshareReqResponse_creator, value) { + if !f(fd_QueryPrivateIdentityResponse_creator, value) { return } } if x.ReqId != "" { value := protoreflect.ValueOfString(x.ReqId) - if !f(fd_QueryPrivateKeyshareReqResponse_req_id, value) { + if !f(fd_QueryPrivateIdentityResponse_req_id, value) { return } } if x.Pubkey != "" { value := protoreflect.ValueOfString(x.Pubkey) - if !f(fd_QueryPrivateKeyshareReqResponse_pubkey, value) { + if !f(fd_QueryPrivateIdentityResponse_pubkey, value) { return } } - if len(x.EncryptedKeyshares) != 0 { - value := protoreflect.ValueOfList(&_QueryPrivateKeyshareReqResponse_5_list{list: &x.EncryptedKeyshares}) - if !f(fd_QueryPrivateKeyshareReqResponse_encrypted_keyshares, value) { + if len(x.PrivateDecryptionKeys) != 0 { + value := protoreflect.ValueOfList(&_QueryPrivateIdentityResponse_4_list{list: &x.PrivateDecryptionKeys}) + if !f(fd_QueryPrivateIdentityResponse_private_decryption_keys, value) { return } } @@ -9488,21 +9488,21 @@ func (x *fastReflection_QueryPrivateKeyshareReqResponse) Range(f func(protorefle // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryPrivateKeyshareReqResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPrivateIdentityResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryPrivateKeyshareReqResponse.creator": + case "fairyring.pep.QueryPrivateIdentityResponse.creator": return x.Creator != "" - case "fairyring.pep.QueryPrivateKeyshareReqResponse.req_id": + case "fairyring.pep.QueryPrivateIdentityResponse.req_id": return x.ReqId != "" - case "fairyring.pep.QueryPrivateKeyshareReqResponse.pubkey": + case "fairyring.pep.QueryPrivateIdentityResponse.pubkey": return x.Pubkey != "" - case "fairyring.pep.QueryPrivateKeyshareReqResponse.encrypted_keyshares": - return len(x.EncryptedKeyshares) != 0 + case "fairyring.pep.QueryPrivateIdentityResponse.private_decryption_keys": + return len(x.PrivateDecryptionKeys) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateIdentityResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateIdentityResponse does not contain field %s", fd.FullName())) } } @@ -9512,21 +9512,21 @@ func (x *fastReflection_QueryPrivateKeyshareReqResponse) Has(fd protoreflect.Fie // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPrivateKeyshareReqResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPrivateIdentityResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryPrivateKeyshareReqResponse.creator": + case "fairyring.pep.QueryPrivateIdentityResponse.creator": x.Creator = "" - case "fairyring.pep.QueryPrivateKeyshareReqResponse.req_id": + case "fairyring.pep.QueryPrivateIdentityResponse.req_id": x.ReqId = "" - case "fairyring.pep.QueryPrivateKeyshareReqResponse.pubkey": + case "fairyring.pep.QueryPrivateIdentityResponse.pubkey": x.Pubkey = "" - case "fairyring.pep.QueryPrivateKeyshareReqResponse.encrypted_keyshares": - x.EncryptedKeyshares = nil + case "fairyring.pep.QueryPrivateIdentityResponse.private_decryption_keys": + x.PrivateDecryptionKeys = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateIdentityResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateIdentityResponse does not contain field %s", fd.FullName())) } } @@ -9536,28 +9536,28 @@ func (x *fastReflection_QueryPrivateKeyshareReqResponse) Clear(fd protoreflect.F // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryPrivateKeyshareReqResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPrivateIdentityResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryPrivateKeyshareReqResponse.creator": + case "fairyring.pep.QueryPrivateIdentityResponse.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.pep.QueryPrivateKeyshareReqResponse.req_id": + case "fairyring.pep.QueryPrivateIdentityResponse.req_id": value := x.ReqId return protoreflect.ValueOfString(value) - case "fairyring.pep.QueryPrivateKeyshareReqResponse.pubkey": + case "fairyring.pep.QueryPrivateIdentityResponse.pubkey": value := x.Pubkey return protoreflect.ValueOfString(value) - case "fairyring.pep.QueryPrivateKeyshareReqResponse.encrypted_keyshares": - if len(x.EncryptedKeyshares) == 0 { - return protoreflect.ValueOfList(&_QueryPrivateKeyshareReqResponse_5_list{}) + case "fairyring.pep.QueryPrivateIdentityResponse.private_decryption_keys": + if len(x.PrivateDecryptionKeys) == 0 { + return protoreflect.ValueOfList(&_QueryPrivateIdentityResponse_4_list{}) } - listValue := &_QueryPrivateKeyshareReqResponse_5_list{list: &x.EncryptedKeyshares} + listValue := &_QueryPrivateIdentityResponse_4_list{list: &x.PrivateDecryptionKeys} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateIdentityResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateIdentityResponse does not contain field %s", descriptor.FullName())) } } @@ -9571,23 +9571,23 @@ func (x *fastReflection_QueryPrivateKeyshareReqResponse) Get(descriptor protoref // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPrivateKeyshareReqResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPrivateIdentityResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryPrivateKeyshareReqResponse.creator": + case "fairyring.pep.QueryPrivateIdentityResponse.creator": x.Creator = value.Interface().(string) - case "fairyring.pep.QueryPrivateKeyshareReqResponse.req_id": + case "fairyring.pep.QueryPrivateIdentityResponse.req_id": x.ReqId = value.Interface().(string) - case "fairyring.pep.QueryPrivateKeyshareReqResponse.pubkey": + case "fairyring.pep.QueryPrivateIdentityResponse.pubkey": x.Pubkey = value.Interface().(string) - case "fairyring.pep.QueryPrivateKeyshareReqResponse.encrypted_keyshares": + case "fairyring.pep.QueryPrivateIdentityResponse.private_decryption_keys": lv := value.List() - clv := lv.(*_QueryPrivateKeyshareReqResponse_5_list) - x.EncryptedKeyshares = *clv.list + clv := lv.(*_QueryPrivateIdentityResponse_4_list) + x.PrivateDecryptionKeys = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateIdentityResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateIdentityResponse does not contain field %s", fd.FullName())) } } @@ -9601,57 +9601,57 @@ func (x *fastReflection_QueryPrivateKeyshareReqResponse) Set(fd protoreflect.Fie // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPrivateKeyshareReqResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPrivateIdentityResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryPrivateKeyshareReqResponse.encrypted_keyshares": - if x.EncryptedKeyshares == nil { - x.EncryptedKeyshares = []*common.EncryptedKeyshare{} + case "fairyring.pep.QueryPrivateIdentityResponse.private_decryption_keys": + if x.PrivateDecryptionKeys == nil { + x.PrivateDecryptionKeys = []*common.PrivateDecryptionKey{} } - value := &_QueryPrivateKeyshareReqResponse_5_list{list: &x.EncryptedKeyshares} + value := &_QueryPrivateIdentityResponse_4_list{list: &x.PrivateDecryptionKeys} return protoreflect.ValueOfList(value) - case "fairyring.pep.QueryPrivateKeyshareReqResponse.creator": - panic(fmt.Errorf("field creator of message fairyring.pep.QueryPrivateKeyshareReqResponse is not mutable")) - case "fairyring.pep.QueryPrivateKeyshareReqResponse.req_id": - panic(fmt.Errorf("field req_id of message fairyring.pep.QueryPrivateKeyshareReqResponse is not mutable")) - case "fairyring.pep.QueryPrivateKeyshareReqResponse.pubkey": - panic(fmt.Errorf("field pubkey of message fairyring.pep.QueryPrivateKeyshareReqResponse is not mutable")) + case "fairyring.pep.QueryPrivateIdentityResponse.creator": + panic(fmt.Errorf("field creator of message fairyring.pep.QueryPrivateIdentityResponse is not mutable")) + case "fairyring.pep.QueryPrivateIdentityResponse.req_id": + panic(fmt.Errorf("field req_id of message fairyring.pep.QueryPrivateIdentityResponse is not mutable")) + case "fairyring.pep.QueryPrivateIdentityResponse.pubkey": + panic(fmt.Errorf("field pubkey of message fairyring.pep.QueryPrivateIdentityResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateIdentityResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateIdentityResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryPrivateKeyshareReqResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPrivateIdentityResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryPrivateKeyshareReqResponse.creator": + case "fairyring.pep.QueryPrivateIdentityResponse.creator": return protoreflect.ValueOfString("") - case "fairyring.pep.QueryPrivateKeyshareReqResponse.req_id": + case "fairyring.pep.QueryPrivateIdentityResponse.req_id": return protoreflect.ValueOfString("") - case "fairyring.pep.QueryPrivateKeyshareReqResponse.pubkey": + case "fairyring.pep.QueryPrivateIdentityResponse.pubkey": return protoreflect.ValueOfString("") - case "fairyring.pep.QueryPrivateKeyshareReqResponse.encrypted_keyshares": - list := []*common.EncryptedKeyshare{} - return protoreflect.ValueOfList(&_QueryPrivateKeyshareReqResponse_5_list{list: &list}) + case "fairyring.pep.QueryPrivateIdentityResponse.private_decryption_keys": + list := []*common.PrivateDecryptionKey{} + return protoreflect.ValueOfList(&_QueryPrivateIdentityResponse_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateKeyshareReqResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPrivateIdentityResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryPrivateKeyshareReqResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPrivateIdentityResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryPrivateKeyshareReqResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPrivateIdentityResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryPrivateKeyshareReqResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryPrivateIdentityResponse", d.FullName())) } panic("unreachable") } @@ -9659,7 +9659,7 @@ func (x *fastReflection_QueryPrivateKeyshareReqResponse) WhichOneof(d protorefle // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryPrivateKeyshareReqResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPrivateIdentityResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9670,7 +9670,7 @@ func (x *fastReflection_QueryPrivateKeyshareReqResponse) GetUnknown() protorefle // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPrivateKeyshareReqResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPrivateIdentityResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9682,7 +9682,7 @@ func (x *fastReflection_QueryPrivateKeyshareReqResponse) SetUnknown(fields proto // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryPrivateKeyshareReqResponse) IsValid() bool { +func (x *fastReflection_QueryPrivateIdentityResponse) IsValid() bool { return x != nil } @@ -9692,9 +9692,9 @@ func (x *fastReflection_QueryPrivateKeyshareReqResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryPrivateKeyshareReqResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPrivateIdentityResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryPrivateKeyshareReqResponse) + x := input.Message.Interface().(*QueryPrivateIdentityResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9718,8 +9718,8 @@ func (x *fastReflection_QueryPrivateKeyshareReqResponse) ProtoMethods() *protoif if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.EncryptedKeyshares) > 0 { - for _, e := range x.EncryptedKeyshares { + if len(x.PrivateDecryptionKeys) > 0 { + for _, e := range x.PrivateDecryptionKeys { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -9734,7 +9734,7 @@ func (x *fastReflection_QueryPrivateKeyshareReqResponse) ProtoMethods() *protoif } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryPrivateKeyshareReqResponse) + x := input.Message.Interface().(*QueryPrivateIdentityResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9753,9 +9753,9 @@ func (x *fastReflection_QueryPrivateKeyshareReqResponse) ProtoMethods() *protoif i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.EncryptedKeyshares) > 0 { - for iNdEx := len(x.EncryptedKeyshares) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.EncryptedKeyshares[iNdEx]) + if len(x.PrivateDecryptionKeys) > 0 { + for iNdEx := len(x.PrivateDecryptionKeys) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PrivateDecryptionKeys[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9766,7 +9766,7 @@ func (x *fastReflection_QueryPrivateKeyshareReqResponse) ProtoMethods() *protoif copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } } if len(x.Pubkey) > 0 { @@ -9801,7 +9801,7 @@ func (x *fastReflection_QueryPrivateKeyshareReqResponse) ProtoMethods() *protoif }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryPrivateKeyshareReqResponse) + x := input.Message.Interface().(*QueryPrivateIdentityResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9833,10 +9833,10 @@ func (x *fastReflection_QueryPrivateKeyshareReqResponse) ProtoMethods() *protoif fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPrivateKeyshareReqResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPrivateIdentityResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPrivateKeyshareReqResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPrivateIdentityResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9935,9 +9935,9 @@ func (x *fastReflection_QueryPrivateKeyshareReqResponse) ProtoMethods() *protoif } x.Pubkey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 4: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyshares", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PrivateDecryptionKeys", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9964,8 +9964,8 @@ func (x *fastReflection_QueryPrivateKeyshareReqResponse) ProtoMethods() *protoif if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.EncryptedKeyshares = append(x.EncryptedKeyshares, &common.EncryptedKeyshare{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EncryptedKeyshares[len(x.EncryptedKeyshares)-1]); err != nil { + x.PrivateDecryptionKeys = append(x.PrivateDecryptionKeys, &common.PrivateDecryptionKey{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PrivateDecryptionKeys[len(x.PrivateDecryptionKeys)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -11049,8 +11049,8 @@ func (x *QueryParamsResponse) GetParams() *Params { return nil } -// QueryKeyshareReqRequest is request type for the Query/KeyshareReq RPC method. -type QueryKeyshareReqRequest struct { +// QueryGeneralIdentityRequest is request type for the Query/GeneralIdentity RPC method. +type QueryGeneralIdentityRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -11058,8 +11058,8 @@ type QueryKeyshareReqRequest struct { ReqId string `protobuf:"bytes,1,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } -func (x *QueryKeyshareReqRequest) Reset() { - *x = QueryKeyshareReqRequest{} +func (x *QueryGeneralIdentityRequest) Reset() { + *x = QueryGeneralIdentityRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11067,35 +11067,35 @@ func (x *QueryKeyshareReqRequest) Reset() { } } -func (x *QueryKeyshareReqRequest) String() string { +func (x *QueryGeneralIdentityRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryKeyshareReqRequest) ProtoMessage() {} +func (*QueryGeneralIdentityRequest) ProtoMessage() {} -// Deprecated: Use QueryKeyshareReqRequest.ProtoReflect.Descriptor instead. -func (*QueryKeyshareReqRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryGeneralIdentityRequest.ProtoReflect.Descriptor instead. +func (*QueryGeneralIdentityRequest) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{2} } -func (x *QueryKeyshareReqRequest) GetReqId() string { +func (x *QueryGeneralIdentityRequest) GetReqId() string { if x != nil { return x.ReqId } return "" } -// QueryKeyshareReqResponse is response type for the Query/KeyshareReq RPC method. -type QueryKeyshareReqResponse struct { +// QueryGeneralIdentityResponse is response type for the Query/GeneralIdentity RPC method. +type QueryGeneralIdentityResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Keyshare *IdentityExecutionQueue `protobuf:"bytes,1,opt,name=keyshare,proto3" json:"keyshare,omitempty"` + RequestDetails *IdentityExecutionEntry `protobuf:"bytes,1,opt,name=request_details,json=requestDetails,proto3" json:"request_details,omitempty"` } -func (x *QueryKeyshareReqResponse) Reset() { - *x = QueryKeyshareReqResponse{} +func (x *QueryGeneralIdentityResponse) Reset() { + *x = QueryGeneralIdentityResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11103,26 +11103,26 @@ func (x *QueryKeyshareReqResponse) Reset() { } } -func (x *QueryKeyshareReqResponse) String() string { +func (x *QueryGeneralIdentityResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryKeyshareReqResponse) ProtoMessage() {} +func (*QueryGeneralIdentityResponse) ProtoMessage() {} -// Deprecated: Use QueryKeyshareReqResponse.ProtoReflect.Descriptor instead. -func (*QueryKeyshareReqResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryGeneralIdentityResponse.ProtoReflect.Descriptor instead. +func (*QueryGeneralIdentityResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{3} } -func (x *QueryKeyshareReqResponse) GetKeyshare() *IdentityExecutionQueue { +func (x *QueryGeneralIdentityResponse) GetRequestDetails() *IdentityExecutionEntry { if x != nil { - return x.Keyshare + return x.RequestDetails } return nil } -// QueryKeyshareReqAllRequest is request type for the Query/KeyshareReqAll RPC method. -type QueryKeyshareReqAllRequest struct { +// QueryGeneralIdentityAllRequest is request type for the Query/GeneralIdentityAll RPC method. +type QueryGeneralIdentityAllRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -11130,8 +11130,8 @@ type QueryKeyshareReqAllRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryKeyshareReqAllRequest) Reset() { - *x = QueryKeyshareReqAllRequest{} +func (x *QueryGeneralIdentityAllRequest) Reset() { + *x = QueryGeneralIdentityAllRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11139,36 +11139,36 @@ func (x *QueryKeyshareReqAllRequest) Reset() { } } -func (x *QueryKeyshareReqAllRequest) String() string { +func (x *QueryGeneralIdentityAllRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryKeyshareReqAllRequest) ProtoMessage() {} +func (*QueryGeneralIdentityAllRequest) ProtoMessage() {} -// Deprecated: Use QueryKeyshareReqAllRequest.ProtoReflect.Descriptor instead. -func (*QueryKeyshareReqAllRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryGeneralIdentityAllRequest.ProtoReflect.Descriptor instead. +func (*QueryGeneralIdentityAllRequest) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{4} } -func (x *QueryKeyshareReqAllRequest) GetPagination() *v1beta1.PageRequest { +func (x *QueryGeneralIdentityAllRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination } return nil } -// QueryKeyshareReqAllResponse is response type for the Query/KeyshareReqAll RPC method. -type QueryKeyshareReqAllResponse struct { +// QueryGeneralIdentityAllResponse is response type for the Query/GeneralIdentityAll RPC method. +type QueryGeneralIdentityAllResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Keyshares []*IdentityExecutionQueue `protobuf:"bytes,1,rep,name=keyshares,proto3" json:"keyshares,omitempty"` - Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + RequestDetailsList []*IdentityExecutionEntry `protobuf:"bytes,1,rep,name=request_details_list,json=requestDetailsList,proto3" json:"request_details_list,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryKeyshareReqAllResponse) Reset() { - *x = QueryKeyshareReqAllResponse{} +func (x *QueryGeneralIdentityAllResponse) Reset() { + *x = QueryGeneralIdentityAllResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11176,25 +11176,25 @@ func (x *QueryKeyshareReqAllResponse) Reset() { } } -func (x *QueryKeyshareReqAllResponse) String() string { +func (x *QueryGeneralIdentityAllResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryKeyshareReqAllResponse) ProtoMessage() {} +func (*QueryGeneralIdentityAllResponse) ProtoMessage() {} -// Deprecated: Use QueryKeyshareReqAllResponse.ProtoReflect.Descriptor instead. -func (*QueryKeyshareReqAllResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryGeneralIdentityAllResponse.ProtoReflect.Descriptor instead. +func (*QueryGeneralIdentityAllResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{5} } -func (x *QueryKeyshareReqAllResponse) GetKeyshares() []*IdentityExecutionQueue { +func (x *QueryGeneralIdentityAllResponse) GetRequestDetailsList() []*IdentityExecutionEntry { if x != nil { - return x.Keyshares + return x.RequestDetailsList } return nil } -func (x *QueryKeyshareReqAllResponse) GetPagination() *v1beta1.PageResponse { +func (x *QueryGeneralIdentityAllResponse) GetPagination() *v1beta1.PageResponse { if x != nil { return x.Pagination } @@ -11719,8 +11719,8 @@ func (x *QueryPubKeyResponse) GetQueuedPubKey() *common.QueuedPublicKey { return nil } -// QueryPrivateKeyshareReqRequest is request type for the Query/PrivateKeyshareReq RPC method. -type QueryPrivateKeyshareReqRequest struct { +// QueryPrivateIdentityRequest is request type for the Query/PrivateIdentity RPC method. +type QueryPrivateIdentityRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -11728,8 +11728,8 @@ type QueryPrivateKeyshareReqRequest struct { ReqId string `protobuf:"bytes,1,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } -func (x *QueryPrivateKeyshareReqRequest) Reset() { - *x = QueryPrivateKeyshareReqRequest{} +func (x *QueryPrivateIdentityRequest) Reset() { + *x = QueryPrivateIdentityRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11737,38 +11737,38 @@ func (x *QueryPrivateKeyshareReqRequest) Reset() { } } -func (x *QueryPrivateKeyshareReqRequest) String() string { +func (x *QueryPrivateIdentityRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryPrivateKeyshareReqRequest) ProtoMessage() {} +func (*QueryPrivateIdentityRequest) ProtoMessage() {} -// Deprecated: Use QueryPrivateKeyshareReqRequest.ProtoReflect.Descriptor instead. -func (*QueryPrivateKeyshareReqRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryPrivateIdentityRequest.ProtoReflect.Descriptor instead. +func (*QueryPrivateIdentityRequest) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{20} } -func (x *QueryPrivateKeyshareReqRequest) GetReqId() string { +func (x *QueryPrivateIdentityRequest) GetReqId() string { if x != nil { return x.ReqId } return "" } -// QueryPrivateKeyshareReqResponse is response type for the Query/PrivateKeyshareReq RPC method. -type QueryPrivateKeyshareReqResponse struct { +// QueryPrivateIdentityResponse is response type for the Query/PrivateIdentity RPC method. +type QueryPrivateIdentityResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` - Pubkey string `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - EncryptedKeyshares []*common.EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` + Pubkey string `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + PrivateDecryptionKeys []*common.PrivateDecryptionKey `protobuf:"bytes,4,rep,name=private_decryption_keys,json=privateDecryptionKeys,proto3" json:"private_decryption_keys,omitempty"` } -func (x *QueryPrivateKeyshareReqResponse) Reset() { - *x = QueryPrivateKeyshareReqResponse{} +func (x *QueryPrivateIdentityResponse) Reset() { + *x = QueryPrivateIdentityResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11776,41 +11776,41 @@ func (x *QueryPrivateKeyshareReqResponse) Reset() { } } -func (x *QueryPrivateKeyshareReqResponse) String() string { +func (x *QueryPrivateIdentityResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryPrivateKeyshareReqResponse) ProtoMessage() {} +func (*QueryPrivateIdentityResponse) ProtoMessage() {} -// Deprecated: Use QueryPrivateKeyshareReqResponse.ProtoReflect.Descriptor instead. -func (*QueryPrivateKeyshareReqResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryPrivateIdentityResponse.ProtoReflect.Descriptor instead. +func (*QueryPrivateIdentityResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{21} } -func (x *QueryPrivateKeyshareReqResponse) GetCreator() string { +func (x *QueryPrivateIdentityResponse) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *QueryPrivateKeyshareReqResponse) GetReqId() string { +func (x *QueryPrivateIdentityResponse) GetReqId() string { if x != nil { return x.ReqId } return "" } -func (x *QueryPrivateKeyshareReqResponse) GetPubkey() string { +func (x *QueryPrivateIdentityResponse) GetPubkey() string { if x != nil { return x.Pubkey } return "" } -func (x *QueryPrivateKeyshareReqResponse) GetEncryptedKeyshares() []*common.EncryptedKeyshare { +func (x *QueryPrivateIdentityResponse) GetPrivateDecryptionKeys() []*common.PrivateDecryptionKey { if x != nil { - return x.EncryptedKeyshares + return x.PrivateDecryptionKeys } return nil } @@ -11930,267 +11930,272 @@ var file_fairyring_pep_query_proto_rawDesc = []byte{ 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, - 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x30, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0x5d, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x08, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x64, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x41, 0x6c, 0x6c, 0x52, 0x65, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x34, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0x6e, 0x0a, 0x1c, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x0f, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x68, 0x0a, 0x1e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, + 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, + 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc3, 0x01, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x41, + 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x14, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x5f, 0x6c, 0x69, + 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x12, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x4c, + 0x69, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x54, 0x0a, 0x17, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, + 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, + 0x65, 0x78, 0x22, 0x5f, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, + 0x0a, 0x0c, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, + 0x64, 0x54, 0x78, 0x22, 0x64, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, + 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xbb, 0x01, 0x0a, 0x1b, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, + 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x65, 0x6e, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x5f, 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, + 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x10, 0x65, 0x6e, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x12, 0x47, + 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, + 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4b, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x46, 0x72, + 0x6f, 0x6d, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x23, 0x0a, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x22, 0x7c, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x46, 0x72, 0x6f, 0x6d, 0x48, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, + 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x5f, 0x61, 0x72, + 0x72, 0x61, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, + 0x52, 0x10, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, + 0x61, 0x79, 0x22, 0x1a, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, + 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x33, + 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 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, 0x22, 0x30, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, 0x70, 0x4e, + 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x53, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, + 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, + 0x0a, 0x09, 0x70, 0x65, 0x70, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, + 0x70, 0x2e, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, + 0x52, 0x08, 0x70, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x22, 0x61, 0x0a, 0x17, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xab, 0x01, - 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, - 0x65, 0x71, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, - 0x09, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, - 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x52, 0x09, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, - 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x54, 0x0a, 0x17, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x74, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x22, 0x5f, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, - 0x0c, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x70, 0x65, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x42, - 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, - 0x54, 0x78, 0x22, 0x64, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, - 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, - 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xbb, 0x01, 0x0a, 0x1b, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x65, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x5f, 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, - 0x41, 0x72, 0x72, 0x61, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x10, 0x65, 0x6e, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x12, 0x47, 0x0a, - 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, - 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, - 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4b, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, - 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x46, 0x72, 0x6f, - 0x6d, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, - 0x0a, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x22, 0x7c, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x46, 0x72, 0x6f, 0x6d, 0x48, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x12, - 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x5f, 0x61, 0x72, 0x72, - 0x61, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, - 0x10, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, - 0x79, 0x22, 0x1a, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, - 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x33, 0x0a, - 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x48, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 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, 0x22, 0x30, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, 0x70, 0x4e, 0x6f, - 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x22, 0x53, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, 0x70, - 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, - 0x09, 0x70, 0x65, 0x70, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, - 0x2e, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, - 0x08, 0x70, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x22, 0x61, 0x0a, 0x17, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9f, 0x01, 0x0a, - 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x41, 0x6c, - 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x09, 0x70, 0x65, 0x70, - 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x50, 0x65, 0x70, - 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x70, 0x65, 0x70, - 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x14, - 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x22, 0xb3, 0x01, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, - 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0e, - 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9f, 0x01, + 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x41, + 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x09, 0x70, 0x65, + 0x70, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x50, 0x65, + 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x70, 0x65, + 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xb3, 0x01, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, + 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, + 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x4d, 0x0a, 0x0e, + 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, - 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x4d, 0x0a, 0x0e, 0x71, - 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, - 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, 0x75, - 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x22, 0x37, 0x0a, 0x1e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x52, 0x65, 0x71, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, - 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, - 0x71, 0x49, 0x64, 0x22, 0xc0, 0x01, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x69, - 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, - 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, - 0x12, 0x54, 0x0a, 0x13, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0x7d, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, - 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x67, 0x67, - 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0c, 0x61, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x25, - 0x0a, 0x0e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, - 0x64, 0x44, 0x61, 0x74, 0x61, 0x22, 0x41, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x32, 0xee, 0x0d, 0x0a, 0x05, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x12, 0x6e, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x21, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x22, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x12, 0x9b, 0x01, 0x0a, 0x0b, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, - 0x54, 0x78, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, - 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, - 0x64, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x12, 0x33, 0x2f, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x65, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x2f, 0x7b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x7d, - 0x12, 0x8c, 0x01, 0x0a, 0x0e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, - 0x41, 0x6c, 0x6c, 0x12, 0x29, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, + 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x22, 0x34, 0x0a, 0x1b, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, + 0x71, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, + 0x64, 0x22, 0xc7, 0x01, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, + 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, + 0x71, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x5e, 0x0a, 0x17, 0x70, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, + 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x15, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x7d, 0x0a, 0x17, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x23, + 0x0a, 0x0d, 0x61, 0x67, 0x67, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, + 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x6e, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x22, 0x41, 0x0a, 0x18, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x32, 0x84, 0x0e, + 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x6e, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x12, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, + 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, + 0x12, 0x15, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, + 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x9b, 0x01, 0x0a, 0x0b, 0x45, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, + 0x12, 0x33, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, + 0x2f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x2f, 0x7b, 0x74, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x2f, 0x7b, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x7d, 0x12, 0x8c, 0x01, 0x0a, 0x0e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x12, 0x29, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, - 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, - 0x65, 0x70, 0x2f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x12, - 0xba, 0x01, 0x0a, 0x18, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, - 0x6c, 0x6c, 0x46, 0x72, 0x6f, 0x6d, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x33, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, - 0x46, 0x72, 0x6f, 0x6d, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x34, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, + 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, + 0x64, 0x5f, 0x74, 0x78, 0x12, 0xba, 0x01, 0x0a, 0x18, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x46, 0x72, 0x6f, 0x6d, 0x48, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x12, 0x33, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x46, 0x72, 0x6f, 0x6d, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, - 0x2b, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, - 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x2f, 0x7b, 0x74, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0x87, 0x01, 0x0a, - 0x0c, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x27, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, - 0x73, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, - 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x81, 0x01, 0x0a, 0x08, 0x50, 0x65, 0x70, 0x4e, 0x6f, - 0x6e, 0x63, 0x65, 0x12, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, - 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x65, 0x70, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, - 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x80, 0x01, 0x0a, 0x0b, 0x50, - 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, - 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, - 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, - 0x70, 0x65, 0x70, 0x2f, 0x70, 0x65, 0x70, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x6f, 0x0a, - 0x06, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, - 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x12, 0x88, - 0x01, 0x0a, 0x0b, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x12, 0x26, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2f, 0x7b, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x88, 0x01, 0x0a, 0x0e, 0x4b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x41, 0x6c, 0x6c, 0x12, 0x29, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x41, 0x6c, 0x6c, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x12, 0xb8, 0x01, 0x0a, 0x12, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x12, 0x2d, 0x2e, 0x66, 0x61, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x6c, 0x6c, 0x46, 0x72, 0x6f, 0x6d, 0x48, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, + 0x78, 0x2f, 0x7b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x7d, 0x12, 0x87, 0x01, 0x0a, 0x0c, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x48, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x12, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, + 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x48, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x52, 0x65, 0x71, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, - 0x65, 0x71, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x46, 0x61, 0x69, 0x72, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x73, 0x68, 0x6f, - 0x77, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x2f, 0x7b, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x7d, 0x12, - 0xb7, 0x01, 0x0a, 0x0b, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, + 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x6c, 0x61, + 0x74, 0x65, 0x73, 0x74, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x81, 0x01, 0x0a, 0x08, + 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, + 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x65, 0x70, 0x5f, + 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, + 0x80, 0x01, 0x0a, 0x0b, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x57, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x51, 0x12, 0x4f, 0x2f, 0x46, 0x61, 0x69, 0x72, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, - 0x65, 0x70, 0x2f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x2f, - 0x7b, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x7d, 0x2f, 0x7b, 0x61, 0x67, 0x67, 0x72, 0x5f, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x7d, 0x2f, 0x7b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x42, 0x94, 0x01, 0x0a, 0x11, 0x63, 0x6f, - 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, - 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, - 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x50, 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, - 0x50, 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, - 0x50, 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x65, 0x70, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x65, 0x70, 0x5f, 0x6e, 0x6f, 0x6e, + 0x63, 0x65, 0x12, 0x6f, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x22, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x75, 0x62, 0x5f, + 0x6b, 0x65, 0x79, 0x12, 0x9c, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, + 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x7b, 0x72, 0x65, 0x71, 0x5f, 0x69, + 0x64, 0x7d, 0x12, 0x9c, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x41, 0x6c, 0x6c, 0x12, 0x2d, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x41, 0x6c, + 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x41, 0x6c, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, + 0x12, 0x1f, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, + 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x12, 0xa6, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, + 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x46, 0x61, 0x69, 0x72, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, + 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x2f, 0x7b, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xb7, 0x01, 0x0a, 0x0b, 0x44, + 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, + 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, + 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x57, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x51, 0x12, 0x4f, 0x2f, 0x46, 0x61, 0x69, 0x72, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x64, 0x65, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x75, 0x62, 0x6b, + 0x65, 0x79, 0x7d, 0x2f, 0x7b, 0x61, 0x67, 0x67, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x7d, 0x2f, 0x7b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x64, + 0x61, 0x74, 0x61, 0x7d, 0x42, 0x94, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, + 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, 0xca, 0x02, + 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0xe2, 0x02, + 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -12209,10 +12214,10 @@ var file_fairyring_pep_query_proto_msgTypes = make([]protoimpl.MessageInfo, 24) var file_fairyring_pep_query_proto_goTypes = []interface{}{ (*QueryParamsRequest)(nil), // 0: fairyring.pep.QueryParamsRequest (*QueryParamsResponse)(nil), // 1: fairyring.pep.QueryParamsResponse - (*QueryKeyshareReqRequest)(nil), // 2: fairyring.pep.QueryKeyshareReqRequest - (*QueryKeyshareReqResponse)(nil), // 3: fairyring.pep.QueryKeyshareReqResponse - (*QueryKeyshareReqAllRequest)(nil), // 4: fairyring.pep.QueryKeyshareReqAllRequest - (*QueryKeyshareReqAllResponse)(nil), // 5: fairyring.pep.QueryKeyshareReqAllResponse + (*QueryGeneralIdentityRequest)(nil), // 2: fairyring.pep.QueryGeneralIdentityRequest + (*QueryGeneralIdentityResponse)(nil), // 3: fairyring.pep.QueryGeneralIdentityResponse + (*QueryGeneralIdentityAllRequest)(nil), // 4: fairyring.pep.QueryGeneralIdentityAllRequest + (*QueryGeneralIdentityAllResponse)(nil), // 5: fairyring.pep.QueryGeneralIdentityAllResponse (*QueryEncryptedTxRequest)(nil), // 6: fairyring.pep.QueryEncryptedTxRequest (*QueryEncryptedTxResponse)(nil), // 7: fairyring.pep.QueryEncryptedTxResponse (*QueryEncryptedTxAllRequest)(nil), // 8: fairyring.pep.QueryEncryptedTxAllRequest @@ -12227,12 +12232,12 @@ var file_fairyring_pep_query_proto_goTypes = []interface{}{ (*QueryPepNonceAllResponse)(nil), // 17: fairyring.pep.QueryPepNonceAllResponse (*QueryPubKeyRequest)(nil), // 18: fairyring.pep.QueryPubKeyRequest (*QueryPubKeyResponse)(nil), // 19: fairyring.pep.QueryPubKeyResponse - (*QueryPrivateKeyshareReqRequest)(nil), // 20: fairyring.pep.QueryPrivateKeyshareReqRequest - (*QueryPrivateKeyshareReqResponse)(nil), // 21: fairyring.pep.QueryPrivateKeyshareReqResponse + (*QueryPrivateIdentityRequest)(nil), // 20: fairyring.pep.QueryPrivateIdentityRequest + (*QueryPrivateIdentityResponse)(nil), // 21: fairyring.pep.QueryPrivateIdentityResponse (*QueryDecryptDataRequest)(nil), // 22: fairyring.pep.QueryDecryptDataRequest (*QueryDecryptDataResponse)(nil), // 23: fairyring.pep.QueryDecryptDataResponse (*Params)(nil), // 24: fairyring.pep.Params - (*IdentityExecutionQueue)(nil), // 25: fairyring.pep.IdentityExecutionQueue + (*IdentityExecutionEntry)(nil), // 25: fairyring.pep.IdentityExecutionEntry (*v1beta1.PageRequest)(nil), // 26: cosmos.base.query.v1beta1.PageRequest (*v1beta1.PageResponse)(nil), // 27: cosmos.base.query.v1beta1.PageResponse (*EncryptedTx)(nil), // 28: fairyring.pep.EncryptedTx @@ -12240,14 +12245,14 @@ var file_fairyring_pep_query_proto_goTypes = []interface{}{ (*PepNonce)(nil), // 30: fairyring.pep.PepNonce (*common.ActivePublicKey)(nil), // 31: fairyring.common.ActivePublicKey (*common.QueuedPublicKey)(nil), // 32: fairyring.common.QueuedPublicKey - (*common.EncryptedKeyshare)(nil), // 33: fairyring.common.EncryptedKeyshare + (*common.PrivateDecryptionKey)(nil), // 33: fairyring.common.PrivateDecryptionKey } var file_fairyring_pep_query_proto_depIdxs = []int32{ 24, // 0: fairyring.pep.QueryParamsResponse.params:type_name -> fairyring.pep.Params - 25, // 1: fairyring.pep.QueryKeyshareReqResponse.keyshare:type_name -> fairyring.pep.IdentityExecutionQueue - 26, // 2: fairyring.pep.QueryKeyshareReqAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 25, // 3: fairyring.pep.QueryKeyshareReqAllResponse.keyshares:type_name -> fairyring.pep.IdentityExecutionQueue - 27, // 4: fairyring.pep.QueryKeyshareReqAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 25, // 1: fairyring.pep.QueryGeneralIdentityResponse.request_details:type_name -> fairyring.pep.IdentityExecutionEntry + 26, // 2: fairyring.pep.QueryGeneralIdentityAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 25, // 3: fairyring.pep.QueryGeneralIdentityAllResponse.request_details_list:type_name -> fairyring.pep.IdentityExecutionEntry + 27, // 4: fairyring.pep.QueryGeneralIdentityAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse 28, // 5: fairyring.pep.QueryEncryptedTxResponse.encrypted_tx:type_name -> fairyring.pep.EncryptedTx 26, // 6: fairyring.pep.QueryEncryptedTxAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 29, // 7: fairyring.pep.QueryEncryptedTxAllResponse.encrypted_tx_array:type_name -> fairyring.pep.EncryptedTxArray @@ -12259,7 +12264,7 @@ var file_fairyring_pep_query_proto_depIdxs = []int32{ 27, // 13: fairyring.pep.QueryPepNonceAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse 31, // 14: fairyring.pep.QueryPubKeyResponse.active_pub_key:type_name -> fairyring.common.ActivePublicKey 32, // 15: fairyring.pep.QueryPubKeyResponse.queued_pub_key:type_name -> fairyring.common.QueuedPublicKey - 33, // 16: fairyring.pep.QueryPrivateKeyshareReqResponse.encrypted_keyshares:type_name -> fairyring.common.EncryptedKeyshare + 33, // 16: fairyring.pep.QueryPrivateIdentityResponse.private_decryption_keys:type_name -> fairyring.common.PrivateDecryptionKey 0, // 17: fairyring.pep.Query.Params:input_type -> fairyring.pep.QueryParamsRequest 6, // 18: fairyring.pep.Query.EncryptedTx:input_type -> fairyring.pep.QueryEncryptedTxRequest 8, // 19: fairyring.pep.Query.EncryptedTxAll:input_type -> fairyring.pep.QueryEncryptedTxAllRequest @@ -12268,9 +12273,9 @@ var file_fairyring_pep_query_proto_depIdxs = []int32{ 14, // 22: fairyring.pep.Query.PepNonce:input_type -> fairyring.pep.QueryPepNonceRequest 16, // 23: fairyring.pep.Query.PepNonceAll:input_type -> fairyring.pep.QueryPepNonceAllRequest 18, // 24: fairyring.pep.Query.PubKey:input_type -> fairyring.pep.QueryPubKeyRequest - 2, // 25: fairyring.pep.Query.KeyshareReq:input_type -> fairyring.pep.QueryKeyshareReqRequest - 4, // 26: fairyring.pep.Query.KeyshareReqAll:input_type -> fairyring.pep.QueryKeyshareReqAllRequest - 20, // 27: fairyring.pep.Query.PrivateKeyshareReq:input_type -> fairyring.pep.QueryPrivateKeyshareReqRequest + 2, // 25: fairyring.pep.Query.GeneralIdentity:input_type -> fairyring.pep.QueryGeneralIdentityRequest + 4, // 26: fairyring.pep.Query.GeneralIdentityAll:input_type -> fairyring.pep.QueryGeneralIdentityAllRequest + 20, // 27: fairyring.pep.Query.PrivateIdentity:input_type -> fairyring.pep.QueryPrivateIdentityRequest 22, // 28: fairyring.pep.Query.DecryptData:input_type -> fairyring.pep.QueryDecryptDataRequest 1, // 29: fairyring.pep.Query.Params:output_type -> fairyring.pep.QueryParamsResponse 7, // 30: fairyring.pep.Query.EncryptedTx:output_type -> fairyring.pep.QueryEncryptedTxResponse @@ -12280,9 +12285,9 @@ var file_fairyring_pep_query_proto_depIdxs = []int32{ 15, // 34: fairyring.pep.Query.PepNonce:output_type -> fairyring.pep.QueryPepNonceResponse 17, // 35: fairyring.pep.Query.PepNonceAll:output_type -> fairyring.pep.QueryPepNonceAllResponse 19, // 36: fairyring.pep.Query.PubKey:output_type -> fairyring.pep.QueryPubKeyResponse - 3, // 37: fairyring.pep.Query.KeyshareReq:output_type -> fairyring.pep.QueryKeyshareReqResponse - 5, // 38: fairyring.pep.Query.KeyshareReqAll:output_type -> fairyring.pep.QueryKeyshareReqAllResponse - 21, // 39: fairyring.pep.Query.PrivateKeyshareReq:output_type -> fairyring.pep.QueryPrivateKeyshareReqResponse + 3, // 37: fairyring.pep.Query.GeneralIdentity:output_type -> fairyring.pep.QueryGeneralIdentityResponse + 5, // 38: fairyring.pep.Query.GeneralIdentityAll:output_type -> fairyring.pep.QueryGeneralIdentityAllResponse + 21, // 39: fairyring.pep.Query.PrivateIdentity:output_type -> fairyring.pep.QueryPrivateIdentityResponse 23, // 40: fairyring.pep.Query.DecryptData:output_type -> fairyring.pep.QueryDecryptDataResponse 29, // [29:41] is the sub-list for method output_type 17, // [17:29] is the sub-list for method input_type @@ -12325,7 +12330,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryKeyshareReqRequest); i { + switch v := v.(*QueryGeneralIdentityRequest); i { case 0: return &v.state case 1: @@ -12337,7 +12342,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryKeyshareReqResponse); i { + switch v := v.(*QueryGeneralIdentityResponse); i { case 0: return &v.state case 1: @@ -12349,7 +12354,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryKeyshareReqAllRequest); i { + switch v := v.(*QueryGeneralIdentityAllRequest); i { case 0: return &v.state case 1: @@ -12361,7 +12366,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryKeyshareReqAllResponse); i { + switch v := v.(*QueryGeneralIdentityAllResponse); i { case 0: return &v.state case 1: @@ -12541,7 +12546,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryPrivateKeyshareReqRequest); i { + switch v := v.(*QueryPrivateIdentityRequest); i { case 0: return &v.state case 1: @@ -12553,7 +12558,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryPrivateKeyshareReqResponse); i { + switch v := v.(*QueryPrivateIdentityResponse); i { case 0: return &v.state case 1: diff --git a/api/fairyring/pep/query_grpc.pb.go b/api/fairyring/pep/query_grpc.pb.go index 2acd466b..e513ddc4 100644 --- a/api/fairyring/pep/query_grpc.pb.go +++ b/api/fairyring/pep/query_grpc.pb.go @@ -27,9 +27,9 @@ const ( Query_PepNonce_FullMethodName = "/fairyring.pep.Query/PepNonce" Query_PepNonceAll_FullMethodName = "/fairyring.pep.Query/PepNonceAll" Query_PubKey_FullMethodName = "/fairyring.pep.Query/PubKey" - Query_KeyshareReq_FullMethodName = "/fairyring.pep.Query/KeyshareReq" - Query_KeyshareReqAll_FullMethodName = "/fairyring.pep.Query/KeyshareReqAll" - Query_PrivateKeyshareReq_FullMethodName = "/fairyring.pep.Query/PrivateKeyshareReq" + Query_GeneralIdentity_FullMethodName = "/fairyring.pep.Query/GeneralIdentity" + Query_GeneralIdentityAll_FullMethodName = "/fairyring.pep.Query/GeneralIdentityAll" + Query_PrivateIdentity_FullMethodName = "/fairyring.pep.Query/PrivateIdentity" Query_DecryptData_FullMethodName = "/fairyring.pep.Query/DecryptData" ) @@ -53,12 +53,12 @@ type QueryClient interface { PepNonceAll(ctx context.Context, in *QueryPepNonceAllRequest, opts ...grpc.CallOption) (*QueryPepNonceAllResponse, error) // Queries the public keys PubKey(ctx context.Context, in *QueryPubKeyRequest, opts ...grpc.CallOption) (*QueryPubKeyResponse, error) - // Queries a Keyshare request by identity - KeyshareReq(ctx context.Context, in *QueryKeyshareReqRequest, opts ...grpc.CallOption) (*QueryKeyshareReqResponse, error) - // queries a list of keyshare requests - KeyshareReqAll(ctx context.Context, in *QueryKeyshareReqAllRequest, opts ...grpc.CallOption) (*QueryKeyshareReqAllResponse, error) - // Queries a list of ShowPrivateKeyshareReq items. - PrivateKeyshareReq(ctx context.Context, in *QueryPrivateKeyshareReqRequest, opts ...grpc.CallOption) (*QueryPrivateKeyshareReqResponse, error) + // Queries a General Identity request by request id + GeneralIdentity(ctx context.Context, in *QueryGeneralIdentityRequest, opts ...grpc.CallOption) (*QueryGeneralIdentityResponse, error) + // Queries a list of General Identity requests + GeneralIdentityAll(ctx context.Context, in *QueryGeneralIdentityAllRequest, opts ...grpc.CallOption) (*QueryGeneralIdentityAllResponse, error) + // Queries a Private Identity request item by req id. + PrivateIdentity(ctx context.Context, in *QueryPrivateIdentityRequest, opts ...grpc.CallOption) (*QueryPrivateIdentityResponse, error) // Queries a list of DecryptData items. DecryptData(ctx context.Context, in *QueryDecryptDataRequest, opts ...grpc.CallOption) (*QueryDecryptDataResponse, error) } @@ -143,27 +143,27 @@ func (c *queryClient) PubKey(ctx context.Context, in *QueryPubKeyRequest, opts . return out, nil } -func (c *queryClient) KeyshareReq(ctx context.Context, in *QueryKeyshareReqRequest, opts ...grpc.CallOption) (*QueryKeyshareReqResponse, error) { - out := new(QueryKeyshareReqResponse) - err := c.cc.Invoke(ctx, Query_KeyshareReq_FullMethodName, in, out, opts...) +func (c *queryClient) GeneralIdentity(ctx context.Context, in *QueryGeneralIdentityRequest, opts ...grpc.CallOption) (*QueryGeneralIdentityResponse, error) { + out := new(QueryGeneralIdentityResponse) + err := c.cc.Invoke(ctx, Query_GeneralIdentity_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) KeyshareReqAll(ctx context.Context, in *QueryKeyshareReqAllRequest, opts ...grpc.CallOption) (*QueryKeyshareReqAllResponse, error) { - out := new(QueryKeyshareReqAllResponse) - err := c.cc.Invoke(ctx, Query_KeyshareReqAll_FullMethodName, in, out, opts...) +func (c *queryClient) GeneralIdentityAll(ctx context.Context, in *QueryGeneralIdentityAllRequest, opts ...grpc.CallOption) (*QueryGeneralIdentityAllResponse, error) { + out := new(QueryGeneralIdentityAllResponse) + err := c.cc.Invoke(ctx, Query_GeneralIdentityAll_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) PrivateKeyshareReq(ctx context.Context, in *QueryPrivateKeyshareReqRequest, opts ...grpc.CallOption) (*QueryPrivateKeyshareReqResponse, error) { - out := new(QueryPrivateKeyshareReqResponse) - err := c.cc.Invoke(ctx, Query_PrivateKeyshareReq_FullMethodName, in, out, opts...) +func (c *queryClient) PrivateIdentity(ctx context.Context, in *QueryPrivateIdentityRequest, opts ...grpc.CallOption) (*QueryPrivateIdentityResponse, error) { + out := new(QueryPrivateIdentityResponse) + err := c.cc.Invoke(ctx, Query_PrivateIdentity_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -199,12 +199,12 @@ type QueryServer interface { PepNonceAll(context.Context, *QueryPepNonceAllRequest) (*QueryPepNonceAllResponse, error) // Queries the public keys PubKey(context.Context, *QueryPubKeyRequest) (*QueryPubKeyResponse, error) - // Queries a Keyshare request by identity - KeyshareReq(context.Context, *QueryKeyshareReqRequest) (*QueryKeyshareReqResponse, error) - // queries a list of keyshare requests - KeyshareReqAll(context.Context, *QueryKeyshareReqAllRequest) (*QueryKeyshareReqAllResponse, error) - // Queries a list of ShowPrivateKeyshareReq items. - PrivateKeyshareReq(context.Context, *QueryPrivateKeyshareReqRequest) (*QueryPrivateKeyshareReqResponse, error) + // Queries a General Identity request by request id + GeneralIdentity(context.Context, *QueryGeneralIdentityRequest) (*QueryGeneralIdentityResponse, error) + // Queries a list of General Identity requests + GeneralIdentityAll(context.Context, *QueryGeneralIdentityAllRequest) (*QueryGeneralIdentityAllResponse, error) + // Queries a Private Identity request item by req id. + PrivateIdentity(context.Context, *QueryPrivateIdentityRequest) (*QueryPrivateIdentityResponse, error) // Queries a list of DecryptData items. DecryptData(context.Context, *QueryDecryptDataRequest) (*QueryDecryptDataResponse, error) mustEmbedUnimplementedQueryServer() @@ -238,14 +238,14 @@ func (UnimplementedQueryServer) PepNonceAll(context.Context, *QueryPepNonceAllRe func (UnimplementedQueryServer) PubKey(context.Context, *QueryPubKeyRequest) (*QueryPubKeyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PubKey not implemented") } -func (UnimplementedQueryServer) KeyshareReq(context.Context, *QueryKeyshareReqRequest) (*QueryKeyshareReqResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KeyshareReq not implemented") +func (UnimplementedQueryServer) GeneralIdentity(context.Context, *QueryGeneralIdentityRequest) (*QueryGeneralIdentityResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GeneralIdentity not implemented") } -func (UnimplementedQueryServer) KeyshareReqAll(context.Context, *QueryKeyshareReqAllRequest) (*QueryKeyshareReqAllResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KeyshareReqAll not implemented") +func (UnimplementedQueryServer) GeneralIdentityAll(context.Context, *QueryGeneralIdentityAllRequest) (*QueryGeneralIdentityAllResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GeneralIdentityAll not implemented") } -func (UnimplementedQueryServer) PrivateKeyshareReq(context.Context, *QueryPrivateKeyshareReqRequest) (*QueryPrivateKeyshareReqResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PrivateKeyshareReq not implemented") +func (UnimplementedQueryServer) PrivateIdentity(context.Context, *QueryPrivateIdentityRequest) (*QueryPrivateIdentityResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PrivateIdentity not implemented") } func (UnimplementedQueryServer) DecryptData(context.Context, *QueryDecryptDataRequest) (*QueryDecryptDataResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DecryptData not implemented") @@ -407,56 +407,56 @@ func _Query_PubKey_Handler(srv interface{}, ctx context.Context, dec func(interf return interceptor(ctx, in, info, handler) } -func _Query_KeyshareReq_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryKeyshareReqRequest) +func _Query_GeneralIdentity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGeneralIdentityRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).KeyshareReq(ctx, in) + return srv.(QueryServer).GeneralIdentity(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_KeyshareReq_FullMethodName, + FullMethod: Query_GeneralIdentity_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).KeyshareReq(ctx, req.(*QueryKeyshareReqRequest)) + return srv.(QueryServer).GeneralIdentity(ctx, req.(*QueryGeneralIdentityRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_KeyshareReqAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryKeyshareReqAllRequest) +func _Query_GeneralIdentityAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGeneralIdentityAllRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).KeyshareReqAll(ctx, in) + return srv.(QueryServer).GeneralIdentityAll(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_KeyshareReqAll_FullMethodName, + FullMethod: Query_GeneralIdentityAll_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).KeyshareReqAll(ctx, req.(*QueryKeyshareReqAllRequest)) + return srv.(QueryServer).GeneralIdentityAll(ctx, req.(*QueryGeneralIdentityAllRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_PrivateKeyshareReq_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryPrivateKeyshareReqRequest) +func _Query_PrivateIdentity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPrivateIdentityRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).PrivateKeyshareReq(ctx, in) + return srv.(QueryServer).PrivateIdentity(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_PrivateKeyshareReq_FullMethodName, + FullMethod: Query_PrivateIdentity_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PrivateKeyshareReq(ctx, req.(*QueryPrivateKeyshareReqRequest)) + return srv.(QueryServer).PrivateIdentity(ctx, req.(*QueryPrivateIdentityRequest)) } return interceptor(ctx, in, info, handler) } @@ -519,16 +519,16 @@ var Query_ServiceDesc = grpc.ServiceDesc{ Handler: _Query_PubKey_Handler, }, { - MethodName: "KeyshareReq", - Handler: _Query_KeyshareReq_Handler, + MethodName: "GeneralIdentity", + Handler: _Query_GeneralIdentity_Handler, }, { - MethodName: "KeyshareReqAll", - Handler: _Query_KeyshareReqAll_Handler, + MethodName: "GeneralIdentityAll", + Handler: _Query_GeneralIdentityAll_Handler, }, { - MethodName: "PrivateKeyshareReq", - Handler: _Query_PrivateKeyshareReq_Handler, + MethodName: "PrivateIdentity", + Handler: _Query_PrivateIdentity_Handler, }, { MethodName: "DecryptData", diff --git a/api/fairyring/pep/request_id.pulsar.go b/api/fairyring/pep/request_id.pulsar.go index 077b3437..8312a39d 100644 --- a/api/fairyring/pep/request_id.pulsar.go +++ b/api/fairyring/pep/request_id.pulsar.go @@ -2,7 +2,7 @@ package pep import ( - common "github.com/Fairblock/fairyring/api/fairyring/common" + common "cosmossdk.io/api/fairyring/common" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -498,63 +498,63 @@ func (x *fastReflection_RequestId) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_PrivateRequest_5_list)(nil) +var _ protoreflect.List = (*_PrivateRequest_4_list)(nil) -type _PrivateRequest_5_list struct { - list *[]*common.EncryptedKeyshare +type _PrivateRequest_4_list struct { + list *[]*common.PrivateDecryptionKey } -func (x *_PrivateRequest_5_list) Len() int { +func (x *_PrivateRequest_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_PrivateRequest_5_list) Get(i int) protoreflect.Value { +func (x *_PrivateRequest_4_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_PrivateRequest_5_list) Set(i int, value protoreflect.Value) { +func (x *_PrivateRequest_4_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*common.EncryptedKeyshare) + concreteValue := valueUnwrapped.Interface().(*common.PrivateDecryptionKey) (*x.list)[i] = concreteValue } -func (x *_PrivateRequest_5_list) Append(value protoreflect.Value) { +func (x *_PrivateRequest_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*common.EncryptedKeyshare) + concreteValue := valueUnwrapped.Interface().(*common.PrivateDecryptionKey) *x.list = append(*x.list, concreteValue) } -func (x *_PrivateRequest_5_list) AppendMutable() protoreflect.Value { - v := new(common.EncryptedKeyshare) +func (x *_PrivateRequest_4_list) AppendMutable() protoreflect.Value { + v := new(common.PrivateDecryptionKey) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_PrivateRequest_5_list) Truncate(n int) { +func (x *_PrivateRequest_4_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_PrivateRequest_5_list) NewElement() protoreflect.Value { - v := new(common.EncryptedKeyshare) +func (x *_PrivateRequest_4_list) NewElement() protoreflect.Value { + v := new(common.PrivateDecryptionKey) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_PrivateRequest_5_list) IsValid() bool { +func (x *_PrivateRequest_4_list) IsValid() bool { return x.list != nil } var ( - md_PrivateRequest protoreflect.MessageDescriptor - fd_PrivateRequest_creator protoreflect.FieldDescriptor - fd_PrivateRequest_req_id protoreflect.FieldDescriptor - fd_PrivateRequest_pubkey protoreflect.FieldDescriptor - fd_PrivateRequest_encrypted_keyshares protoreflect.FieldDescriptor + md_PrivateRequest protoreflect.MessageDescriptor + fd_PrivateRequest_creator protoreflect.FieldDescriptor + fd_PrivateRequest_req_id protoreflect.FieldDescriptor + fd_PrivateRequest_pubkey protoreflect.FieldDescriptor + fd_PrivateRequest_private_decryption_keys protoreflect.FieldDescriptor ) func init() { @@ -563,7 +563,7 @@ func init() { fd_PrivateRequest_creator = md_PrivateRequest.Fields().ByName("creator") fd_PrivateRequest_req_id = md_PrivateRequest.Fields().ByName("req_id") fd_PrivateRequest_pubkey = md_PrivateRequest.Fields().ByName("pubkey") - fd_PrivateRequest_encrypted_keyshares = md_PrivateRequest.Fields().ByName("encrypted_keyshares") + fd_PrivateRequest_private_decryption_keys = md_PrivateRequest.Fields().ByName("private_decryption_keys") } var _ protoreflect.Message = (*fastReflection_PrivateRequest)(nil) @@ -649,9 +649,9 @@ func (x *fastReflection_PrivateRequest) Range(f func(protoreflect.FieldDescripto return } } - if len(x.EncryptedKeyshares) != 0 { - value := protoreflect.ValueOfList(&_PrivateRequest_5_list{list: &x.EncryptedKeyshares}) - if !f(fd_PrivateRequest_encrypted_keyshares, value) { + if len(x.PrivateDecryptionKeys) != 0 { + value := protoreflect.ValueOfList(&_PrivateRequest_4_list{list: &x.PrivateDecryptionKeys}) + if !f(fd_PrivateRequest_private_decryption_keys, value) { return } } @@ -676,8 +676,8 @@ func (x *fastReflection_PrivateRequest) Has(fd protoreflect.FieldDescriptor) boo return x.ReqId != "" case "fairyring.pep.PrivateRequest.pubkey": return x.Pubkey != "" - case "fairyring.pep.PrivateRequest.encrypted_keyshares": - return len(x.EncryptedKeyshares) != 0 + case "fairyring.pep.PrivateRequest.private_decryption_keys": + return len(x.PrivateDecryptionKeys) != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.PrivateRequest")) @@ -700,8 +700,8 @@ func (x *fastReflection_PrivateRequest) Clear(fd protoreflect.FieldDescriptor) { x.ReqId = "" case "fairyring.pep.PrivateRequest.pubkey": x.Pubkey = "" - case "fairyring.pep.PrivateRequest.encrypted_keyshares": - x.EncryptedKeyshares = nil + case "fairyring.pep.PrivateRequest.private_decryption_keys": + x.PrivateDecryptionKeys = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.PrivateRequest")) @@ -727,11 +727,11 @@ func (x *fastReflection_PrivateRequest) Get(descriptor protoreflect.FieldDescrip case "fairyring.pep.PrivateRequest.pubkey": value := x.Pubkey return protoreflect.ValueOfString(value) - case "fairyring.pep.PrivateRequest.encrypted_keyshares": - if len(x.EncryptedKeyshares) == 0 { - return protoreflect.ValueOfList(&_PrivateRequest_5_list{}) + case "fairyring.pep.PrivateRequest.private_decryption_keys": + if len(x.PrivateDecryptionKeys) == 0 { + return protoreflect.ValueOfList(&_PrivateRequest_4_list{}) } - listValue := &_PrivateRequest_5_list{list: &x.EncryptedKeyshares} + listValue := &_PrivateRequest_4_list{list: &x.PrivateDecryptionKeys} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { @@ -759,10 +759,10 @@ func (x *fastReflection_PrivateRequest) Set(fd protoreflect.FieldDescriptor, val x.ReqId = value.Interface().(string) case "fairyring.pep.PrivateRequest.pubkey": x.Pubkey = value.Interface().(string) - case "fairyring.pep.PrivateRequest.encrypted_keyshares": + case "fairyring.pep.PrivateRequest.private_decryption_keys": lv := value.List() - clv := lv.(*_PrivateRequest_5_list) - x.EncryptedKeyshares = *clv.list + clv := lv.(*_PrivateRequest_4_list) + x.PrivateDecryptionKeys = *clv.list default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.PrivateRequest")) @@ -783,11 +783,11 @@ func (x *fastReflection_PrivateRequest) Set(fd protoreflect.FieldDescriptor, val // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_PrivateRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.PrivateRequest.encrypted_keyshares": - if x.EncryptedKeyshares == nil { - x.EncryptedKeyshares = []*common.EncryptedKeyshare{} + case "fairyring.pep.PrivateRequest.private_decryption_keys": + if x.PrivateDecryptionKeys == nil { + x.PrivateDecryptionKeys = []*common.PrivateDecryptionKey{} } - value := &_PrivateRequest_5_list{list: &x.EncryptedKeyshares} + value := &_PrivateRequest_4_list{list: &x.PrivateDecryptionKeys} return protoreflect.ValueOfList(value) case "fairyring.pep.PrivateRequest.creator": panic(fmt.Errorf("field creator of message fairyring.pep.PrivateRequest is not mutable")) @@ -814,9 +814,9 @@ func (x *fastReflection_PrivateRequest) NewField(fd protoreflect.FieldDescriptor return protoreflect.ValueOfString("") case "fairyring.pep.PrivateRequest.pubkey": return protoreflect.ValueOfString("") - case "fairyring.pep.PrivateRequest.encrypted_keyshares": - list := []*common.EncryptedKeyshare{} - return protoreflect.ValueOfList(&_PrivateRequest_5_list{list: &list}) + case "fairyring.pep.PrivateRequest.private_decryption_keys": + list := []*common.PrivateDecryptionKey{} + return protoreflect.ValueOfList(&_PrivateRequest_4_list{list: &list}) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.PrivateRequest")) @@ -898,8 +898,8 @@ func (x *fastReflection_PrivateRequest) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.EncryptedKeyshares) > 0 { - for _, e := range x.EncryptedKeyshares { + if len(x.PrivateDecryptionKeys) > 0 { + for _, e := range x.PrivateDecryptionKeys { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -933,9 +933,9 @@ func (x *fastReflection_PrivateRequest) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.EncryptedKeyshares) > 0 { - for iNdEx := len(x.EncryptedKeyshares) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.EncryptedKeyshares[iNdEx]) + if len(x.PrivateDecryptionKeys) > 0 { + for iNdEx := len(x.PrivateDecryptionKeys) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PrivateDecryptionKeys[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -946,7 +946,7 @@ func (x *fastReflection_PrivateRequest) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } } if len(x.Pubkey) > 0 { @@ -1115,9 +1115,9 @@ func (x *fastReflection_PrivateRequest) ProtoMethods() *protoiface.Methods { } x.Pubkey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 4: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyshares", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PrivateDecryptionKeys", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1144,8 +1144,8 @@ func (x *fastReflection_PrivateRequest) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.EncryptedKeyshares = append(x.EncryptedKeyshares, &common.EncryptedKeyshare{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EncryptedKeyshares[len(x.EncryptedKeyshares)-1]); err != nil { + x.PrivateDecryptionKeys = append(x.PrivateDecryptionKeys, &common.PrivateDecryptionKey{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PrivateDecryptionKeys[len(x.PrivateDecryptionKeys)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -2227,10 +2227,10 @@ func (x *fastReflection_RegisteredContract) ProtoMethods() *protoiface.Methods { } var ( - md_ExecuteContractMsg protoreflect.MessageDescriptor - fd_ExecuteContractMsg_identity protoreflect.FieldDescriptor - fd_ExecuteContractMsg_pubkey protoreflect.FieldDescriptor - fd_ExecuteContractMsg_aggr_keyshare protoreflect.FieldDescriptor + md_ExecuteContractMsg protoreflect.MessageDescriptor + fd_ExecuteContractMsg_identity protoreflect.FieldDescriptor + fd_ExecuteContractMsg_pubkey protoreflect.FieldDescriptor + fd_ExecuteContractMsg_decryption_key protoreflect.FieldDescriptor ) func init() { @@ -2238,7 +2238,7 @@ func init() { md_ExecuteContractMsg = File_fairyring_pep_request_id_proto.Messages().ByName("ExecuteContractMsg") fd_ExecuteContractMsg_identity = md_ExecuteContractMsg.Fields().ByName("identity") fd_ExecuteContractMsg_pubkey = md_ExecuteContractMsg.Fields().ByName("pubkey") - fd_ExecuteContractMsg_aggr_keyshare = md_ExecuteContractMsg.Fields().ByName("aggr_keyshare") + fd_ExecuteContractMsg_decryption_key = md_ExecuteContractMsg.Fields().ByName("decryption_key") } var _ protoreflect.Message = (*fastReflection_ExecuteContractMsg)(nil) @@ -2318,9 +2318,9 @@ func (x *fastReflection_ExecuteContractMsg) Range(f func(protoreflect.FieldDescr return } } - if x.AggrKeyshare != "" { - value := protoreflect.ValueOfString(x.AggrKeyshare) - if !f(fd_ExecuteContractMsg_aggr_keyshare, value) { + if x.DecryptionKey != "" { + value := protoreflect.ValueOfString(x.DecryptionKey) + if !f(fd_ExecuteContractMsg_decryption_key, value) { return } } @@ -2343,8 +2343,8 @@ func (x *fastReflection_ExecuteContractMsg) Has(fd protoreflect.FieldDescriptor) return x.Identity != "" case "fairyring.pep.ExecuteContractMsg.pubkey": return x.Pubkey != "" - case "fairyring.pep.ExecuteContractMsg.aggr_keyshare": - return x.AggrKeyshare != "" + case "fairyring.pep.ExecuteContractMsg.decryption_key": + return x.DecryptionKey != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.ExecuteContractMsg")) @@ -2365,8 +2365,8 @@ func (x *fastReflection_ExecuteContractMsg) Clear(fd protoreflect.FieldDescripto x.Identity = "" case "fairyring.pep.ExecuteContractMsg.pubkey": x.Pubkey = "" - case "fairyring.pep.ExecuteContractMsg.aggr_keyshare": - x.AggrKeyshare = "" + case "fairyring.pep.ExecuteContractMsg.decryption_key": + x.DecryptionKey = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.ExecuteContractMsg")) @@ -2389,8 +2389,8 @@ func (x *fastReflection_ExecuteContractMsg) Get(descriptor protoreflect.FieldDes case "fairyring.pep.ExecuteContractMsg.pubkey": value := x.Pubkey return protoreflect.ValueOfString(value) - case "fairyring.pep.ExecuteContractMsg.aggr_keyshare": - value := x.AggrKeyshare + case "fairyring.pep.ExecuteContractMsg.decryption_key": + value := x.DecryptionKey return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { @@ -2416,8 +2416,8 @@ func (x *fastReflection_ExecuteContractMsg) Set(fd protoreflect.FieldDescriptor, x.Identity = value.Interface().(string) case "fairyring.pep.ExecuteContractMsg.pubkey": x.Pubkey = value.Interface().(string) - case "fairyring.pep.ExecuteContractMsg.aggr_keyshare": - x.AggrKeyshare = value.Interface().(string) + case "fairyring.pep.ExecuteContractMsg.decryption_key": + x.DecryptionKey = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.ExecuteContractMsg")) @@ -2442,8 +2442,8 @@ func (x *fastReflection_ExecuteContractMsg) Mutable(fd protoreflect.FieldDescrip panic(fmt.Errorf("field identity of message fairyring.pep.ExecuteContractMsg is not mutable")) case "fairyring.pep.ExecuteContractMsg.pubkey": panic(fmt.Errorf("field pubkey of message fairyring.pep.ExecuteContractMsg is not mutable")) - case "fairyring.pep.ExecuteContractMsg.aggr_keyshare": - panic(fmt.Errorf("field aggr_keyshare of message fairyring.pep.ExecuteContractMsg is not mutable")) + case "fairyring.pep.ExecuteContractMsg.decryption_key": + panic(fmt.Errorf("field decryption_key of message fairyring.pep.ExecuteContractMsg is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.ExecuteContractMsg")) @@ -2461,7 +2461,7 @@ func (x *fastReflection_ExecuteContractMsg) NewField(fd protoreflect.FieldDescri return protoreflect.ValueOfString("") case "fairyring.pep.ExecuteContractMsg.pubkey": return protoreflect.ValueOfString("") - case "fairyring.pep.ExecuteContractMsg.aggr_keyshare": + case "fairyring.pep.ExecuteContractMsg.decryption_key": return protoreflect.ValueOfString("") default: if fd.IsExtension() { @@ -2540,7 +2540,7 @@ func (x *fastReflection_ExecuteContractMsg) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.AggrKeyshare) + l = len(x.DecryptionKey) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -2573,10 +2573,10 @@ func (x *fastReflection_ExecuteContractMsg) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.AggrKeyshare) > 0 { - i -= len(x.AggrKeyshare) - copy(dAtA[i:], x.AggrKeyshare) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AggrKeyshare))) + if len(x.DecryptionKey) > 0 { + i -= len(x.DecryptionKey) + copy(dAtA[i:], x.DecryptionKey) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DecryptionKey))) i-- dAtA[i] = 0x1a } @@ -2709,7 +2709,7 @@ func (x *fastReflection_ExecuteContractMsg) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AggrKeyshare", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DecryptionKey", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2737,7 +2737,7 @@ func (x *fastReflection_ExecuteContractMsg) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.AggrKeyshare = string(dAtA[iNdEx:postIndex]) + x.DecryptionKey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -2839,10 +2839,10 @@ type PrivateRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` - Pubkey string `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - EncryptedKeyshares []*common.EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` + Pubkey string `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + PrivateDecryptionKeys []*common.PrivateDecryptionKey `protobuf:"bytes,4,rep,name=private_decryption_keys,json=privateDecryptionKeys,proto3" json:"private_decryption_keys,omitempty"` } func (x *PrivateRequest) Reset() { @@ -2886,9 +2886,9 @@ func (x *PrivateRequest) GetPubkey() string { return "" } -func (x *PrivateRequest) GetEncryptedKeyshares() []*common.EncryptedKeyshare { +func (x *PrivateRequest) GetPrivateDecryptionKeys() []*common.PrivateDecryptionKey { if x != nil { - return x.EncryptedKeyshares + return x.PrivateDecryptionKeys } return nil } @@ -2990,9 +2990,9 @@ type ExecuteContractMsg struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - AggrKeyshare string `protobuf:"bytes,3,opt,name=aggr_keyshare,json=aggrKeyshare,proto3" json:"aggr_keyshare,omitempty"` + Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` + Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + DecryptionKey string `protobuf:"bytes,3,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key,omitempty"` } func (x *ExecuteContractMsg) Reset() { @@ -3029,9 +3029,9 @@ func (x *ExecuteContractMsg) GetPubkey() string { return "" } -func (x *ExecuteContractMsg) GetAggrKeyshare() string { +func (x *ExecuteContractMsg) GetDecryptionKey() string { if x != nil { - return x.AggrKeyshare + return x.DecryptionKey } return "" } @@ -3049,48 +3049,49 @@ var file_fairyring_pep_request_id_proto_rawDesc = []byte{ 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0xaf, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x69, + 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0xb9, 0x01, 0x0a, 0x0e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, - 0x62, 0x6b, 0x65, 0x79, 0x12, 0x54, 0x0a, 0x13, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, - 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, - 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0x5a, 0x0a, 0x0f, 0x43, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x1c, 0x0a, - 0x09, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x63, - 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x6e, 0x0a, 0x12, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08, - 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x3c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x43, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x09, 0x63, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x22, 0x6d, 0x0a, 0x12, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x4d, 0x73, 0x67, 0x12, 0x1a, 0x0a, 0x08, - 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, - 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, - 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x67, 0x67, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x98, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x0e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, - 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x50, 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, - 0x50, 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, - 0x50, 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x62, 0x6b, 0x65, 0x79, 0x12, 0x5e, 0x0a, 0x17, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, + 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x15, 0x70, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x4b, 0x65, 0x79, 0x73, 0x22, 0x5a, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x61, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x22, 0x6e, 0x0a, 0x12, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x12, 0x3c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x73, + 0x22, 0x6f, 0x0a, 0x12, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x4d, 0x73, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, + 0x79, 0x42, 0x98, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x0e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x49, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, + 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, 0xca, + 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0xe2, + 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3107,15 +3108,15 @@ func file_fairyring_pep_request_id_proto_rawDescGZIP() []byte { var file_fairyring_pep_request_id_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_fairyring_pep_request_id_proto_goTypes = []interface{}{ - (*RequestId)(nil), // 0: fairyring.pep.RequestId - (*PrivateRequest)(nil), // 1: fairyring.pep.PrivateRequest - (*ContractDetails)(nil), // 2: fairyring.pep.ContractDetails - (*RegisteredContract)(nil), // 3: fairyring.pep.RegisteredContract - (*ExecuteContractMsg)(nil), // 4: fairyring.pep.ExecuteContractMsg - (*common.EncryptedKeyshare)(nil), // 5: fairyring.common.EncryptedKeyshare + (*RequestId)(nil), // 0: fairyring.pep.RequestId + (*PrivateRequest)(nil), // 1: fairyring.pep.PrivateRequest + (*ContractDetails)(nil), // 2: fairyring.pep.ContractDetails + (*RegisteredContract)(nil), // 3: fairyring.pep.RegisteredContract + (*ExecuteContractMsg)(nil), // 4: fairyring.pep.ExecuteContractMsg + (*common.PrivateDecryptionKey)(nil), // 5: fairyring.common.PrivateDecryptionKey } var file_fairyring_pep_request_id_proto_depIdxs = []int32{ - 5, // 0: fairyring.pep.PrivateRequest.encrypted_keyshares:type_name -> fairyring.common.EncryptedKeyshare + 5, // 0: fairyring.pep.PrivateRequest.private_decryption_keys:type_name -> fairyring.common.PrivateDecryptionKey 2, // 1: fairyring.pep.RegisteredContract.contracts:type_name -> fairyring.pep.ContractDetails 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type diff --git a/api/fairyring/pep/tx.pulsar.go b/api/fairyring/pep/tx.pulsar.go index 98c22f73..5466f5da 100644 --- a/api/fairyring/pep/tx.pulsar.go +++ b/api/fairyring/pep/tx.pulsar.go @@ -3553,29 +3553,29 @@ func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) ProtoMethods() *pro } var ( - md_MsgRequestGeneralKeyshare protoreflect.MessageDescriptor - fd_MsgRequestGeneralKeyshare_creator protoreflect.FieldDescriptor - fd_MsgRequestGeneralKeyshare_estimated_delay protoreflect.FieldDescriptor - fd_MsgRequestGeneralKeyshare_req_id protoreflect.FieldDescriptor + md_MsgRequestGeneralIdentity protoreflect.MessageDescriptor + fd_MsgRequestGeneralIdentity_creator protoreflect.FieldDescriptor + fd_MsgRequestGeneralIdentity_estimated_delay protoreflect.FieldDescriptor + fd_MsgRequestGeneralIdentity_req_id protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_tx_proto_init() - md_MsgRequestGeneralKeyshare = File_fairyring_pep_tx_proto.Messages().ByName("MsgRequestGeneralKeyshare") - fd_MsgRequestGeneralKeyshare_creator = md_MsgRequestGeneralKeyshare.Fields().ByName("creator") - fd_MsgRequestGeneralKeyshare_estimated_delay = md_MsgRequestGeneralKeyshare.Fields().ByName("estimated_delay") - fd_MsgRequestGeneralKeyshare_req_id = md_MsgRequestGeneralKeyshare.Fields().ByName("req_id") + md_MsgRequestGeneralIdentity = File_fairyring_pep_tx_proto.Messages().ByName("MsgRequestGeneralIdentity") + fd_MsgRequestGeneralIdentity_creator = md_MsgRequestGeneralIdentity.Fields().ByName("creator") + fd_MsgRequestGeneralIdentity_estimated_delay = md_MsgRequestGeneralIdentity.Fields().ByName("estimated_delay") + fd_MsgRequestGeneralIdentity_req_id = md_MsgRequestGeneralIdentity.Fields().ByName("req_id") } -var _ protoreflect.Message = (*fastReflection_MsgRequestGeneralKeyshare)(nil) +var _ protoreflect.Message = (*fastReflection_MsgRequestGeneralIdentity)(nil) -type fastReflection_MsgRequestGeneralKeyshare MsgRequestGeneralKeyshare +type fastReflection_MsgRequestGeneralIdentity MsgRequestGeneralIdentity -func (x *MsgRequestGeneralKeyshare) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgRequestGeneralKeyshare)(x) +func (x *MsgRequestGeneralIdentity) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRequestGeneralIdentity)(x) } -func (x *MsgRequestGeneralKeyshare) slowProtoReflect() protoreflect.Message { +func (x *MsgRequestGeneralIdentity) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_tx_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3587,43 +3587,43 @@ func (x *MsgRequestGeneralKeyshare) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgRequestGeneralKeyshare_messageType fastReflection_MsgRequestGeneralKeyshare_messageType -var _ protoreflect.MessageType = fastReflection_MsgRequestGeneralKeyshare_messageType{} +var _fastReflection_MsgRequestGeneralIdentity_messageType fastReflection_MsgRequestGeneralIdentity_messageType +var _ protoreflect.MessageType = fastReflection_MsgRequestGeneralIdentity_messageType{} -type fastReflection_MsgRequestGeneralKeyshare_messageType struct{} +type fastReflection_MsgRequestGeneralIdentity_messageType struct{} -func (x fastReflection_MsgRequestGeneralKeyshare_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgRequestGeneralKeyshare)(nil) +func (x fastReflection_MsgRequestGeneralIdentity_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRequestGeneralIdentity)(nil) } -func (x fastReflection_MsgRequestGeneralKeyshare_messageType) New() protoreflect.Message { - return new(fastReflection_MsgRequestGeneralKeyshare) +func (x fastReflection_MsgRequestGeneralIdentity_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRequestGeneralIdentity) } -func (x fastReflection_MsgRequestGeneralKeyshare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRequestGeneralKeyshare +func (x fastReflection_MsgRequestGeneralIdentity_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRequestGeneralIdentity } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgRequestGeneralKeyshare) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRequestGeneralKeyshare +func (x *fastReflection_MsgRequestGeneralIdentity) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRequestGeneralIdentity } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgRequestGeneralKeyshare) Type() protoreflect.MessageType { - return _fastReflection_MsgRequestGeneralKeyshare_messageType +func (x *fastReflection_MsgRequestGeneralIdentity) Type() protoreflect.MessageType { + return _fastReflection_MsgRequestGeneralIdentity_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgRequestGeneralKeyshare) New() protoreflect.Message { - return new(fastReflection_MsgRequestGeneralKeyshare) +func (x *fastReflection_MsgRequestGeneralIdentity) New() protoreflect.Message { + return new(fastReflection_MsgRequestGeneralIdentity) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgRequestGeneralKeyshare) Interface() protoreflect.ProtoMessage { - return (*MsgRequestGeneralKeyshare)(x) +func (x *fastReflection_MsgRequestGeneralIdentity) Interface() protoreflect.ProtoMessage { + return (*MsgRequestGeneralIdentity)(x) } // Range iterates over every populated field in an undefined order, @@ -3631,22 +3631,22 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) Interface() protoreflect.Prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgRequestGeneralKeyshare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgRequestGeneralIdentity) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgRequestGeneralKeyshare_creator, value) { + if !f(fd_MsgRequestGeneralIdentity_creator, value) { return } } if x.EstimatedDelay != nil { value := protoreflect.ValueOfMessage(x.EstimatedDelay.ProtoReflect()) - if !f(fd_MsgRequestGeneralKeyshare_estimated_delay, value) { + if !f(fd_MsgRequestGeneralIdentity_estimated_delay, value) { return } } if x.ReqId != "" { value := protoreflect.ValueOfString(x.ReqId) - if !f(fd_MsgRequestGeneralKeyshare_req_id, value) { + if !f(fd_MsgRequestGeneralIdentity_req_id, value) { return } } @@ -3663,19 +3663,19 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) Range(f func(protoreflect.Fie // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgRequestGeneralKeyshare) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgRequestGeneralIdentity) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.MsgRequestGeneralKeyshare.creator": + case "fairyring.pep.MsgRequestGeneralIdentity.creator": return x.Creator != "" - case "fairyring.pep.MsgRequestGeneralKeyshare.estimated_delay": + case "fairyring.pep.MsgRequestGeneralIdentity.estimated_delay": return x.EstimatedDelay != nil - case "fairyring.pep.MsgRequestGeneralKeyshare.req_id": + case "fairyring.pep.MsgRequestGeneralIdentity.req_id": return x.ReqId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralIdentity")) } - panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralIdentity does not contain field %s", fd.FullName())) } } @@ -3685,19 +3685,19 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) Has(fd protoreflect.FieldDesc // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRequestGeneralKeyshare) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgRequestGeneralIdentity) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.MsgRequestGeneralKeyshare.creator": + case "fairyring.pep.MsgRequestGeneralIdentity.creator": x.Creator = "" - case "fairyring.pep.MsgRequestGeneralKeyshare.estimated_delay": + case "fairyring.pep.MsgRequestGeneralIdentity.estimated_delay": x.EstimatedDelay = nil - case "fairyring.pep.MsgRequestGeneralKeyshare.req_id": + case "fairyring.pep.MsgRequestGeneralIdentity.req_id": x.ReqId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralIdentity")) } - panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralIdentity does not contain field %s", fd.FullName())) } } @@ -3707,22 +3707,22 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) Clear(fd protoreflect.FieldDe // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgRequestGeneralKeyshare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRequestGeneralIdentity) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.MsgRequestGeneralKeyshare.creator": + case "fairyring.pep.MsgRequestGeneralIdentity.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.pep.MsgRequestGeneralKeyshare.estimated_delay": + case "fairyring.pep.MsgRequestGeneralIdentity.estimated_delay": value := x.EstimatedDelay return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.pep.MsgRequestGeneralKeyshare.req_id": + case "fairyring.pep.MsgRequestGeneralIdentity.req_id": value := x.ReqId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralIdentity")) } - panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralKeyshare does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralIdentity does not contain field %s", descriptor.FullName())) } } @@ -3736,19 +3736,19 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) Get(descriptor protoreflect.F // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRequestGeneralKeyshare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgRequestGeneralIdentity) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.MsgRequestGeneralKeyshare.creator": + case "fairyring.pep.MsgRequestGeneralIdentity.creator": x.Creator = value.Interface().(string) - case "fairyring.pep.MsgRequestGeneralKeyshare.estimated_delay": + case "fairyring.pep.MsgRequestGeneralIdentity.estimated_delay": x.EstimatedDelay = value.Message().Interface().(*durationpb.Duration) - case "fairyring.pep.MsgRequestGeneralKeyshare.req_id": + case "fairyring.pep.MsgRequestGeneralIdentity.req_id": x.ReqId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralIdentity")) } - panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralIdentity does not contain field %s", fd.FullName())) } } @@ -3762,52 +3762,52 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) Set(fd protoreflect.FieldDesc // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRequestGeneralKeyshare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRequestGeneralIdentity) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.MsgRequestGeneralKeyshare.estimated_delay": + case "fairyring.pep.MsgRequestGeneralIdentity.estimated_delay": if x.EstimatedDelay == nil { x.EstimatedDelay = new(durationpb.Duration) } return protoreflect.ValueOfMessage(x.EstimatedDelay.ProtoReflect()) - case "fairyring.pep.MsgRequestGeneralKeyshare.creator": - panic(fmt.Errorf("field creator of message fairyring.pep.MsgRequestGeneralKeyshare is not mutable")) - case "fairyring.pep.MsgRequestGeneralKeyshare.req_id": - panic(fmt.Errorf("field req_id of message fairyring.pep.MsgRequestGeneralKeyshare is not mutable")) + case "fairyring.pep.MsgRequestGeneralIdentity.creator": + panic(fmt.Errorf("field creator of message fairyring.pep.MsgRequestGeneralIdentity is not mutable")) + case "fairyring.pep.MsgRequestGeneralIdentity.req_id": + panic(fmt.Errorf("field req_id of message fairyring.pep.MsgRequestGeneralIdentity is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralIdentity")) } - panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralIdentity does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgRequestGeneralKeyshare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRequestGeneralIdentity) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.MsgRequestGeneralKeyshare.creator": + case "fairyring.pep.MsgRequestGeneralIdentity.creator": return protoreflect.ValueOfString("") - case "fairyring.pep.MsgRequestGeneralKeyshare.estimated_delay": + case "fairyring.pep.MsgRequestGeneralIdentity.estimated_delay": m := new(durationpb.Duration) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.pep.MsgRequestGeneralKeyshare.req_id": + case "fairyring.pep.MsgRequestGeneralIdentity.req_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralIdentity")) } - panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralIdentity does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgRequestGeneralKeyshare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgRequestGeneralIdentity) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgRequestGeneralKeyshare", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgRequestGeneralIdentity", d.FullName())) } panic("unreachable") } @@ -3815,7 +3815,7 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) WhichOneof(d protoreflect.One // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgRequestGeneralKeyshare) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgRequestGeneralIdentity) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3826,7 +3826,7 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) GetUnknown() protoreflect.Raw // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRequestGeneralKeyshare) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgRequestGeneralIdentity) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3838,7 +3838,7 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) SetUnknown(fields protoreflec // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgRequestGeneralKeyshare) IsValid() bool { +func (x *fastReflection_MsgRequestGeneralIdentity) IsValid() bool { return x != nil } @@ -3848,9 +3848,9 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgRequestGeneralKeyshare) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgRequestGeneralIdentity) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgRequestGeneralKeyshare) + x := input.Message.Interface().(*MsgRequestGeneralIdentity) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3884,7 +3884,7 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) ProtoMethods() *protoiface.Me } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgRequestGeneralKeyshare) + x := input.Message.Interface().(*MsgRequestGeneralIdentity) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3942,7 +3942,7 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) ProtoMethods() *protoiface.Me }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgRequestGeneralKeyshare) + x := input.Message.Interface().(*MsgRequestGeneralIdentity) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3974,10 +3974,10 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) ProtoMethods() *protoiface.Me fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestGeneralKeyshare: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestGeneralIdentity: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestGeneralKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestGeneralIdentity: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4116,25 +4116,25 @@ func (x *fastReflection_MsgRequestGeneralKeyshare) ProtoMethods() *protoiface.Me } var ( - md_MsgRequestGeneralKeyshareResponse protoreflect.MessageDescriptor - fd_MsgRequestGeneralKeyshareResponse_req_id protoreflect.FieldDescriptor + md_MsgRequestGeneralIdentityResponse protoreflect.MessageDescriptor + fd_MsgRequestGeneralIdentityResponse_req_id protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_tx_proto_init() - md_MsgRequestGeneralKeyshareResponse = File_fairyring_pep_tx_proto.Messages().ByName("MsgRequestGeneralKeyshareResponse") - fd_MsgRequestGeneralKeyshareResponse_req_id = md_MsgRequestGeneralKeyshareResponse.Fields().ByName("req_id") + md_MsgRequestGeneralIdentityResponse = File_fairyring_pep_tx_proto.Messages().ByName("MsgRequestGeneralIdentityResponse") + fd_MsgRequestGeneralIdentityResponse_req_id = md_MsgRequestGeneralIdentityResponse.Fields().ByName("req_id") } -var _ protoreflect.Message = (*fastReflection_MsgRequestGeneralKeyshareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgRequestGeneralIdentityResponse)(nil) -type fastReflection_MsgRequestGeneralKeyshareResponse MsgRequestGeneralKeyshareResponse +type fastReflection_MsgRequestGeneralIdentityResponse MsgRequestGeneralIdentityResponse -func (x *MsgRequestGeneralKeyshareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgRequestGeneralKeyshareResponse)(x) +func (x *MsgRequestGeneralIdentityResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRequestGeneralIdentityResponse)(x) } -func (x *MsgRequestGeneralKeyshareResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgRequestGeneralIdentityResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_tx_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4146,43 +4146,43 @@ func (x *MsgRequestGeneralKeyshareResponse) slowProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -var _fastReflection_MsgRequestGeneralKeyshareResponse_messageType fastReflection_MsgRequestGeneralKeyshareResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgRequestGeneralKeyshareResponse_messageType{} +var _fastReflection_MsgRequestGeneralIdentityResponse_messageType fastReflection_MsgRequestGeneralIdentityResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRequestGeneralIdentityResponse_messageType{} -type fastReflection_MsgRequestGeneralKeyshareResponse_messageType struct{} +type fastReflection_MsgRequestGeneralIdentityResponse_messageType struct{} -func (x fastReflection_MsgRequestGeneralKeyshareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgRequestGeneralKeyshareResponse)(nil) +func (x fastReflection_MsgRequestGeneralIdentityResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRequestGeneralIdentityResponse)(nil) } -func (x fastReflection_MsgRequestGeneralKeyshareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgRequestGeneralKeyshareResponse) +func (x fastReflection_MsgRequestGeneralIdentityResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRequestGeneralIdentityResponse) } -func (x fastReflection_MsgRequestGeneralKeyshareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRequestGeneralKeyshareResponse +func (x fastReflection_MsgRequestGeneralIdentityResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRequestGeneralIdentityResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgRequestGeneralKeyshareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgRequestGeneralKeyshareResponse +func (x *fastReflection_MsgRequestGeneralIdentityResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRequestGeneralIdentityResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgRequestGeneralKeyshareResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgRequestGeneralKeyshareResponse_messageType +func (x *fastReflection_MsgRequestGeneralIdentityResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRequestGeneralIdentityResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgRequestGeneralKeyshareResponse) New() protoreflect.Message { - return new(fastReflection_MsgRequestGeneralKeyshareResponse) +func (x *fastReflection_MsgRequestGeneralIdentityResponse) New() protoreflect.Message { + return new(fastReflection_MsgRequestGeneralIdentityResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgRequestGeneralKeyshareResponse) Interface() protoreflect.ProtoMessage { - return (*MsgRequestGeneralKeyshareResponse)(x) +func (x *fastReflection_MsgRequestGeneralIdentityResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRequestGeneralIdentityResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -4190,10 +4190,10 @@ func (x *fastReflection_MsgRequestGeneralKeyshareResponse) Interface() protorefl // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgRequestGeneralKeyshareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgRequestGeneralIdentityResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.ReqId != "" { value := protoreflect.ValueOfString(x.ReqId) - if !f(fd_MsgRequestGeneralKeyshareResponse_req_id, value) { + if !f(fd_MsgRequestGeneralIdentityResponse_req_id, value) { return } } @@ -4210,15 +4210,15 @@ func (x *fastReflection_MsgRequestGeneralKeyshareResponse) Range(f func(protoref // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgRequestGeneralKeyshareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgRequestGeneralIdentityResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.MsgRequestGeneralKeyshareResponse.req_id": + case "fairyring.pep.MsgRequestGeneralIdentityResponse.req_id": return x.ReqId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralIdentityResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralIdentityResponse does not contain field %s", fd.FullName())) } } @@ -4228,15 +4228,15 @@ func (x *fastReflection_MsgRequestGeneralKeyshareResponse) Has(fd protoreflect.F // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRequestGeneralKeyshareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgRequestGeneralIdentityResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.MsgRequestGeneralKeyshareResponse.req_id": + case "fairyring.pep.MsgRequestGeneralIdentityResponse.req_id": x.ReqId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralIdentityResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralIdentityResponse does not contain field %s", fd.FullName())) } } @@ -4246,16 +4246,16 @@ func (x *fastReflection_MsgRequestGeneralKeyshareResponse) Clear(fd protoreflect // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgRequestGeneralKeyshareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRequestGeneralIdentityResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.MsgRequestGeneralKeyshareResponse.req_id": + case "fairyring.pep.MsgRequestGeneralIdentityResponse.req_id": value := x.ReqId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralIdentityResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralKeyshareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralIdentityResponse does not contain field %s", descriptor.FullName())) } } @@ -4269,15 +4269,15 @@ func (x *fastReflection_MsgRequestGeneralKeyshareResponse) Get(descriptor protor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRequestGeneralKeyshareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgRequestGeneralIdentityResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.MsgRequestGeneralKeyshareResponse.req_id": + case "fairyring.pep.MsgRequestGeneralIdentityResponse.req_id": x.ReqId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralIdentityResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralIdentityResponse does not contain field %s", fd.FullName())) } } @@ -4291,40 +4291,40 @@ func (x *fastReflection_MsgRequestGeneralKeyshareResponse) Set(fd protoreflect.F // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRequestGeneralKeyshareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRequestGeneralIdentityResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.MsgRequestGeneralKeyshareResponse.req_id": - panic(fmt.Errorf("field req_id of message fairyring.pep.MsgRequestGeneralKeyshareResponse is not mutable")) + case "fairyring.pep.MsgRequestGeneralIdentityResponse.req_id": + panic(fmt.Errorf("field req_id of message fairyring.pep.MsgRequestGeneralIdentityResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralIdentityResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralIdentityResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgRequestGeneralKeyshareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRequestGeneralIdentityResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.MsgRequestGeneralKeyshareResponse.req_id": + case "fairyring.pep.MsgRequestGeneralIdentityResponse.req_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralIdentityResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralIdentityResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgRequestGeneralKeyshareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgRequestGeneralIdentityResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgRequestGeneralKeyshareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgRequestGeneralIdentityResponse", d.FullName())) } panic("unreachable") } @@ -4332,7 +4332,7 @@ func (x *fastReflection_MsgRequestGeneralKeyshareResponse) WhichOneof(d protoref // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgRequestGeneralKeyshareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgRequestGeneralIdentityResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4343,7 +4343,7 @@ func (x *fastReflection_MsgRequestGeneralKeyshareResponse) GetUnknown() protoref // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgRequestGeneralKeyshareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgRequestGeneralIdentityResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4355,7 +4355,7 @@ func (x *fastReflection_MsgRequestGeneralKeyshareResponse) SetUnknown(fields pro // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgRequestGeneralKeyshareResponse) IsValid() bool { +func (x *fastReflection_MsgRequestGeneralIdentityResponse) IsValid() bool { return x != nil } @@ -4365,9 +4365,9 @@ func (x *fastReflection_MsgRequestGeneralKeyshareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgRequestGeneralKeyshareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgRequestGeneralIdentityResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgRequestGeneralKeyshareResponse) + x := input.Message.Interface().(*MsgRequestGeneralIdentityResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4393,7 +4393,7 @@ func (x *fastReflection_MsgRequestGeneralKeyshareResponse) ProtoMethods() *proto } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgRequestGeneralKeyshareResponse) + x := input.Message.Interface().(*MsgRequestGeneralIdentityResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4430,7 +4430,7 @@ func (x *fastReflection_MsgRequestGeneralKeyshareResponse) ProtoMethods() *proto }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgRequestGeneralKeyshareResponse) + x := input.Message.Interface().(*MsgRequestGeneralIdentityResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4462,10 +4462,10 @@ func (x *fastReflection_MsgRequestGeneralKeyshareResponse) ProtoMethods() *proto fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestGeneralKeyshareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestGeneralIdentityResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestGeneralKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestGeneralIdentityResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4536,27 +4536,27 @@ func (x *fastReflection_MsgRequestGeneralKeyshareResponse) ProtoMethods() *proto } var ( - md_MsgGetGeneralKeyshare protoreflect.MessageDescriptor - fd_MsgGetGeneralKeyshare_creator protoreflect.FieldDescriptor - fd_MsgGetGeneralKeyshare_req_id protoreflect.FieldDescriptor + md_MsgRequestGeneralDecryptionKey protoreflect.MessageDescriptor + fd_MsgRequestGeneralDecryptionKey_creator protoreflect.FieldDescriptor + fd_MsgRequestGeneralDecryptionKey_req_id protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_tx_proto_init() - md_MsgGetGeneralKeyshare = File_fairyring_pep_tx_proto.Messages().ByName("MsgGetGeneralKeyshare") - fd_MsgGetGeneralKeyshare_creator = md_MsgGetGeneralKeyshare.Fields().ByName("creator") - fd_MsgGetGeneralKeyshare_req_id = md_MsgGetGeneralKeyshare.Fields().ByName("req_id") + md_MsgRequestGeneralDecryptionKey = File_fairyring_pep_tx_proto.Messages().ByName("MsgRequestGeneralDecryptionKey") + fd_MsgRequestGeneralDecryptionKey_creator = md_MsgRequestGeneralDecryptionKey.Fields().ByName("creator") + fd_MsgRequestGeneralDecryptionKey_req_id = md_MsgRequestGeneralDecryptionKey.Fields().ByName("req_id") } -var _ protoreflect.Message = (*fastReflection_MsgGetGeneralKeyshare)(nil) +var _ protoreflect.Message = (*fastReflection_MsgRequestGeneralDecryptionKey)(nil) -type fastReflection_MsgGetGeneralKeyshare MsgGetGeneralKeyshare +type fastReflection_MsgRequestGeneralDecryptionKey MsgRequestGeneralDecryptionKey -func (x *MsgGetGeneralKeyshare) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgGetGeneralKeyshare)(x) +func (x *MsgRequestGeneralDecryptionKey) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRequestGeneralDecryptionKey)(x) } -func (x *MsgGetGeneralKeyshare) slowProtoReflect() protoreflect.Message { +func (x *MsgRequestGeneralDecryptionKey) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_tx_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4568,43 +4568,43 @@ func (x *MsgGetGeneralKeyshare) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgGetGeneralKeyshare_messageType fastReflection_MsgGetGeneralKeyshare_messageType -var _ protoreflect.MessageType = fastReflection_MsgGetGeneralKeyshare_messageType{} +var _fastReflection_MsgRequestGeneralDecryptionKey_messageType fastReflection_MsgRequestGeneralDecryptionKey_messageType +var _ protoreflect.MessageType = fastReflection_MsgRequestGeneralDecryptionKey_messageType{} -type fastReflection_MsgGetGeneralKeyshare_messageType struct{} +type fastReflection_MsgRequestGeneralDecryptionKey_messageType struct{} -func (x fastReflection_MsgGetGeneralKeyshare_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgGetGeneralKeyshare)(nil) +func (x fastReflection_MsgRequestGeneralDecryptionKey_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRequestGeneralDecryptionKey)(nil) } -func (x fastReflection_MsgGetGeneralKeyshare_messageType) New() protoreflect.Message { - return new(fastReflection_MsgGetGeneralKeyshare) +func (x fastReflection_MsgRequestGeneralDecryptionKey_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRequestGeneralDecryptionKey) } -func (x fastReflection_MsgGetGeneralKeyshare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgGetGeneralKeyshare +func (x fastReflection_MsgRequestGeneralDecryptionKey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRequestGeneralDecryptionKey } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgGetGeneralKeyshare) Descriptor() protoreflect.MessageDescriptor { - return md_MsgGetGeneralKeyshare +func (x *fastReflection_MsgRequestGeneralDecryptionKey) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRequestGeneralDecryptionKey } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgGetGeneralKeyshare) Type() protoreflect.MessageType { - return _fastReflection_MsgGetGeneralKeyshare_messageType +func (x *fastReflection_MsgRequestGeneralDecryptionKey) Type() protoreflect.MessageType { + return _fastReflection_MsgRequestGeneralDecryptionKey_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgGetGeneralKeyshare) New() protoreflect.Message { - return new(fastReflection_MsgGetGeneralKeyshare) +func (x *fastReflection_MsgRequestGeneralDecryptionKey) New() protoreflect.Message { + return new(fastReflection_MsgRequestGeneralDecryptionKey) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgGetGeneralKeyshare) Interface() protoreflect.ProtoMessage { - return (*MsgGetGeneralKeyshare)(x) +func (x *fastReflection_MsgRequestGeneralDecryptionKey) Interface() protoreflect.ProtoMessage { + return (*MsgRequestGeneralDecryptionKey)(x) } // Range iterates over every populated field in an undefined order, @@ -4612,16 +4612,16 @@ func (x *fastReflection_MsgGetGeneralKeyshare) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgGetGeneralKeyshare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgRequestGeneralDecryptionKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgGetGeneralKeyshare_creator, value) { + if !f(fd_MsgRequestGeneralDecryptionKey_creator, value) { return } } if x.ReqId != "" { value := protoreflect.ValueOfString(x.ReqId) - if !f(fd_MsgGetGeneralKeyshare_req_id, value) { + if !f(fd_MsgRequestGeneralDecryptionKey_req_id, value) { return } } @@ -4638,17 +4638,17 @@ func (x *fastReflection_MsgGetGeneralKeyshare) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgGetGeneralKeyshare) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgRequestGeneralDecryptionKey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.MsgGetGeneralKeyshare.creator": + case "fairyring.pep.MsgRequestGeneralDecryptionKey.creator": return x.Creator != "" - case "fairyring.pep.MsgGetGeneralKeyshare.req_id": + case "fairyring.pep.MsgRequestGeneralDecryptionKey.req_id": return x.ReqId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetGeneralKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralDecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetGeneralKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralDecryptionKey does not contain field %s", fd.FullName())) } } @@ -4658,17 +4658,17 @@ func (x *fastReflection_MsgGetGeneralKeyshare) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgGetGeneralKeyshare) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgRequestGeneralDecryptionKey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.MsgGetGeneralKeyshare.creator": + case "fairyring.pep.MsgRequestGeneralDecryptionKey.creator": x.Creator = "" - case "fairyring.pep.MsgGetGeneralKeyshare.req_id": + case "fairyring.pep.MsgRequestGeneralDecryptionKey.req_id": x.ReqId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetGeneralKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralDecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetGeneralKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralDecryptionKey does not contain field %s", fd.FullName())) } } @@ -4678,19 +4678,19 @@ func (x *fastReflection_MsgGetGeneralKeyshare) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgGetGeneralKeyshare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRequestGeneralDecryptionKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.MsgGetGeneralKeyshare.creator": + case "fairyring.pep.MsgRequestGeneralDecryptionKey.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.pep.MsgGetGeneralKeyshare.req_id": + case "fairyring.pep.MsgRequestGeneralDecryptionKey.req_id": value := x.ReqId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetGeneralKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralDecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetGeneralKeyshare does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralDecryptionKey does not contain field %s", descriptor.FullName())) } } @@ -4704,17 +4704,17 @@ func (x *fastReflection_MsgGetGeneralKeyshare) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgGetGeneralKeyshare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgRequestGeneralDecryptionKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.MsgGetGeneralKeyshare.creator": + case "fairyring.pep.MsgRequestGeneralDecryptionKey.creator": x.Creator = value.Interface().(string) - case "fairyring.pep.MsgGetGeneralKeyshare.req_id": + case "fairyring.pep.MsgRequestGeneralDecryptionKey.req_id": x.ReqId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetGeneralKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralDecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetGeneralKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralDecryptionKey does not contain field %s", fd.FullName())) } } @@ -4728,44 +4728,44 @@ func (x *fastReflection_MsgGetGeneralKeyshare) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgGetGeneralKeyshare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRequestGeneralDecryptionKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.MsgGetGeneralKeyshare.creator": - panic(fmt.Errorf("field creator of message fairyring.pep.MsgGetGeneralKeyshare is not mutable")) - case "fairyring.pep.MsgGetGeneralKeyshare.req_id": - panic(fmt.Errorf("field req_id of message fairyring.pep.MsgGetGeneralKeyshare is not mutable")) + case "fairyring.pep.MsgRequestGeneralDecryptionKey.creator": + panic(fmt.Errorf("field creator of message fairyring.pep.MsgRequestGeneralDecryptionKey is not mutable")) + case "fairyring.pep.MsgRequestGeneralDecryptionKey.req_id": + panic(fmt.Errorf("field req_id of message fairyring.pep.MsgRequestGeneralDecryptionKey is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetGeneralKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralDecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetGeneralKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralDecryptionKey does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgGetGeneralKeyshare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRequestGeneralDecryptionKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.MsgGetGeneralKeyshare.creator": + case "fairyring.pep.MsgRequestGeneralDecryptionKey.creator": return protoreflect.ValueOfString("") - case "fairyring.pep.MsgGetGeneralKeyshare.req_id": + case "fairyring.pep.MsgRequestGeneralDecryptionKey.req_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetGeneralKeyshare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralDecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetGeneralKeyshare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralDecryptionKey does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgGetGeneralKeyshare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgRequestGeneralDecryptionKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgGetGeneralKeyshare", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgRequestGeneralDecryptionKey", d.FullName())) } panic("unreachable") } @@ -4773,7 +4773,7 @@ func (x *fastReflection_MsgGetGeneralKeyshare) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgGetGeneralKeyshare) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgRequestGeneralDecryptionKey) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4784,7 +4784,7 @@ func (x *fastReflection_MsgGetGeneralKeyshare) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgGetGeneralKeyshare) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgRequestGeneralDecryptionKey) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4796,7 +4796,7 @@ func (x *fastReflection_MsgGetGeneralKeyshare) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgGetGeneralKeyshare) IsValid() bool { +func (x *fastReflection_MsgRequestGeneralDecryptionKey) IsValid() bool { return x != nil } @@ -4806,9 +4806,9 @@ func (x *fastReflection_MsgGetGeneralKeyshare) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgGetGeneralKeyshare) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgRequestGeneralDecryptionKey) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgGetGeneralKeyshare) + x := input.Message.Interface().(*MsgRequestGeneralDecryptionKey) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4838,7 +4838,7 @@ func (x *fastReflection_MsgGetGeneralKeyshare) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgGetGeneralKeyshare) + x := input.Message.Interface().(*MsgRequestGeneralDecryptionKey) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4882,7 +4882,7 @@ func (x *fastReflection_MsgGetGeneralKeyshare) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgGetGeneralKeyshare) + x := input.Message.Interface().(*MsgRequestGeneralDecryptionKey) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4914,10 +4914,10 @@ func (x *fastReflection_MsgGetGeneralKeyshare) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgGetGeneralKeyshare: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestGeneralDecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgGetGeneralKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestGeneralDecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5020,23 +5020,23 @@ func (x *fastReflection_MsgGetGeneralKeyshare) ProtoMethods() *protoiface.Method } var ( - md_MsgGetGeneralKeyshareResponse protoreflect.MessageDescriptor + md_MsgRequestGeneralDecryptionKeyResponse protoreflect.MessageDescriptor ) func init() { file_fairyring_pep_tx_proto_init() - md_MsgGetGeneralKeyshareResponse = File_fairyring_pep_tx_proto.Messages().ByName("MsgGetGeneralKeyshareResponse") + md_MsgRequestGeneralDecryptionKeyResponse = File_fairyring_pep_tx_proto.Messages().ByName("MsgRequestGeneralDecryptionKeyResponse") } -var _ protoreflect.Message = (*fastReflection_MsgGetGeneralKeyshareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgRequestGeneralDecryptionKeyResponse)(nil) -type fastReflection_MsgGetGeneralKeyshareResponse MsgGetGeneralKeyshareResponse +type fastReflection_MsgRequestGeneralDecryptionKeyResponse MsgRequestGeneralDecryptionKeyResponse -func (x *MsgGetGeneralKeyshareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgGetGeneralKeyshareResponse)(x) +func (x *MsgRequestGeneralDecryptionKeyResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRequestGeneralDecryptionKeyResponse)(x) } -func (x *MsgGetGeneralKeyshareResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgRequestGeneralDecryptionKeyResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_tx_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5048,43 +5048,43 @@ func (x *MsgGetGeneralKeyshareResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_MsgGetGeneralKeyshareResponse_messageType fastReflection_MsgGetGeneralKeyshareResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgGetGeneralKeyshareResponse_messageType{} +var _fastReflection_MsgRequestGeneralDecryptionKeyResponse_messageType fastReflection_MsgRequestGeneralDecryptionKeyResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRequestGeneralDecryptionKeyResponse_messageType{} -type fastReflection_MsgGetGeneralKeyshareResponse_messageType struct{} +type fastReflection_MsgRequestGeneralDecryptionKeyResponse_messageType struct{} -func (x fastReflection_MsgGetGeneralKeyshareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgGetGeneralKeyshareResponse)(nil) +func (x fastReflection_MsgRequestGeneralDecryptionKeyResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRequestGeneralDecryptionKeyResponse)(nil) } -func (x fastReflection_MsgGetGeneralKeyshareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgGetGeneralKeyshareResponse) +func (x fastReflection_MsgRequestGeneralDecryptionKeyResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRequestGeneralDecryptionKeyResponse) } -func (x fastReflection_MsgGetGeneralKeyshareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgGetGeneralKeyshareResponse +func (x fastReflection_MsgRequestGeneralDecryptionKeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRequestGeneralDecryptionKeyResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgGetGeneralKeyshareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgGetGeneralKeyshareResponse +func (x *fastReflection_MsgRequestGeneralDecryptionKeyResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRequestGeneralDecryptionKeyResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgGetGeneralKeyshareResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgGetGeneralKeyshareResponse_messageType +func (x *fastReflection_MsgRequestGeneralDecryptionKeyResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRequestGeneralDecryptionKeyResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgGetGeneralKeyshareResponse) New() protoreflect.Message { - return new(fastReflection_MsgGetGeneralKeyshareResponse) +func (x *fastReflection_MsgRequestGeneralDecryptionKeyResponse) New() protoreflect.Message { + return new(fastReflection_MsgRequestGeneralDecryptionKeyResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgGetGeneralKeyshareResponse) Interface() protoreflect.ProtoMessage { - return (*MsgGetGeneralKeyshareResponse)(x) +func (x *fastReflection_MsgRequestGeneralDecryptionKeyResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRequestGeneralDecryptionKeyResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -5092,7 +5092,7 @@ func (x *fastReflection_MsgGetGeneralKeyshareResponse) Interface() protoreflect. // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgGetGeneralKeyshareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgRequestGeneralDecryptionKeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -5106,13 +5106,13 @@ func (x *fastReflection_MsgGetGeneralKeyshareResponse) Range(f func(protoreflect // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgGetGeneralKeyshareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgRequestGeneralDecryptionKeyResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetGeneralKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetGeneralKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -5122,13 +5122,13 @@ func (x *fastReflection_MsgGetGeneralKeyshareResponse) Has(fd protoreflect.Field // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgGetGeneralKeyshareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgRequestGeneralDecryptionKeyResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetGeneralKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetGeneralKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -5138,13 +5138,13 @@ func (x *fastReflection_MsgGetGeneralKeyshareResponse) Clear(fd protoreflect.Fie // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgGetGeneralKeyshareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRequestGeneralDecryptionKeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetGeneralKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetGeneralKeyshareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralDecryptionKeyResponse does not contain field %s", descriptor.FullName())) } } @@ -5158,13 +5158,13 @@ func (x *fastReflection_MsgGetGeneralKeyshareResponse) Get(descriptor protorefle // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgGetGeneralKeyshareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgRequestGeneralDecryptionKeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetGeneralKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetGeneralKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -5178,36 +5178,36 @@ func (x *fastReflection_MsgGetGeneralKeyshareResponse) Set(fd protoreflect.Field // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgGetGeneralKeyshareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRequestGeneralDecryptionKeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetGeneralKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetGeneralKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralDecryptionKeyResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgGetGeneralKeyshareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRequestGeneralDecryptionKeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetGeneralKeyshareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestGeneralDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetGeneralKeyshareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestGeneralDecryptionKeyResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgGetGeneralKeyshareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgRequestGeneralDecryptionKeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgGetGeneralKeyshareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgRequestGeneralDecryptionKeyResponse", d.FullName())) } panic("unreachable") } @@ -5215,7 +5215,7 @@ func (x *fastReflection_MsgGetGeneralKeyshareResponse) WhichOneof(d protoreflect // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgGetGeneralKeyshareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgRequestGeneralDecryptionKeyResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5226,7 +5226,7 @@ func (x *fastReflection_MsgGetGeneralKeyshareResponse) GetUnknown() protoreflect // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgGetGeneralKeyshareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgRequestGeneralDecryptionKeyResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5238,7 +5238,7 @@ func (x *fastReflection_MsgGetGeneralKeyshareResponse) SetUnknown(fields protore // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgGetGeneralKeyshareResponse) IsValid() bool { +func (x *fastReflection_MsgRequestGeneralDecryptionKeyResponse) IsValid() bool { return x != nil } @@ -5248,9 +5248,9 @@ func (x *fastReflection_MsgGetGeneralKeyshareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgGetGeneralKeyshareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgRequestGeneralDecryptionKeyResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgGetGeneralKeyshareResponse) + x := input.Message.Interface().(*MsgRequestGeneralDecryptionKeyResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5272,7 +5272,7 @@ func (x *fastReflection_MsgGetGeneralKeyshareResponse) ProtoMethods() *protoifac } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgGetGeneralKeyshareResponse) + x := input.Message.Interface().(*MsgRequestGeneralDecryptionKeyResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5302,7 +5302,7 @@ func (x *fastReflection_MsgGetGeneralKeyshareResponse) ProtoMethods() *protoifac }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgGetGeneralKeyshareResponse) + x := input.Message.Interface().(*MsgRequestGeneralDecryptionKeyResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5334,10 +5334,10 @@ func (x *fastReflection_MsgGetGeneralKeyshareResponse) ProtoMethods() *protoifac fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgGetGeneralKeyshareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestGeneralDecryptionKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgGetGeneralKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestGeneralDecryptionKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -6280,29 +6280,29 @@ func (x *fastReflection_MsgRequestPrivateIdentityResponse) ProtoMethods() *proto } var ( - md_MsgGetPrivateKeyshares protoreflect.MessageDescriptor - fd_MsgGetPrivateKeyshares_creator protoreflect.FieldDescriptor - fd_MsgGetPrivateKeyshares_req_id protoreflect.FieldDescriptor - fd_MsgGetPrivateKeyshares_secp_pubkey protoreflect.FieldDescriptor + md_MsgRequestPrivateDecryptionKey protoreflect.MessageDescriptor + fd_MsgRequestPrivateDecryptionKey_creator protoreflect.FieldDescriptor + fd_MsgRequestPrivateDecryptionKey_req_id protoreflect.FieldDescriptor + fd_MsgRequestPrivateDecryptionKey_secp_pubkey protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_tx_proto_init() - md_MsgGetPrivateKeyshares = File_fairyring_pep_tx_proto.Messages().ByName("MsgGetPrivateKeyshares") - fd_MsgGetPrivateKeyshares_creator = md_MsgGetPrivateKeyshares.Fields().ByName("creator") - fd_MsgGetPrivateKeyshares_req_id = md_MsgGetPrivateKeyshares.Fields().ByName("req_id") - fd_MsgGetPrivateKeyshares_secp_pubkey = md_MsgGetPrivateKeyshares.Fields().ByName("secp_pubkey") + md_MsgRequestPrivateDecryptionKey = File_fairyring_pep_tx_proto.Messages().ByName("MsgRequestPrivateDecryptionKey") + fd_MsgRequestPrivateDecryptionKey_creator = md_MsgRequestPrivateDecryptionKey.Fields().ByName("creator") + fd_MsgRequestPrivateDecryptionKey_req_id = md_MsgRequestPrivateDecryptionKey.Fields().ByName("req_id") + fd_MsgRequestPrivateDecryptionKey_secp_pubkey = md_MsgRequestPrivateDecryptionKey.Fields().ByName("secp_pubkey") } -var _ protoreflect.Message = (*fastReflection_MsgGetPrivateKeyshares)(nil) +var _ protoreflect.Message = (*fastReflection_MsgRequestPrivateDecryptionKey)(nil) -type fastReflection_MsgGetPrivateKeyshares MsgGetPrivateKeyshares +type fastReflection_MsgRequestPrivateDecryptionKey MsgRequestPrivateDecryptionKey -func (x *MsgGetPrivateKeyshares) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgGetPrivateKeyshares)(x) +func (x *MsgRequestPrivateDecryptionKey) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRequestPrivateDecryptionKey)(x) } -func (x *MsgGetPrivateKeyshares) slowProtoReflect() protoreflect.Message { +func (x *MsgRequestPrivateDecryptionKey) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_tx_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6314,43 +6314,43 @@ func (x *MsgGetPrivateKeyshares) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgGetPrivateKeyshares_messageType fastReflection_MsgGetPrivateKeyshares_messageType -var _ protoreflect.MessageType = fastReflection_MsgGetPrivateKeyshares_messageType{} +var _fastReflection_MsgRequestPrivateDecryptionKey_messageType fastReflection_MsgRequestPrivateDecryptionKey_messageType +var _ protoreflect.MessageType = fastReflection_MsgRequestPrivateDecryptionKey_messageType{} -type fastReflection_MsgGetPrivateKeyshares_messageType struct{} +type fastReflection_MsgRequestPrivateDecryptionKey_messageType struct{} -func (x fastReflection_MsgGetPrivateKeyshares_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgGetPrivateKeyshares)(nil) +func (x fastReflection_MsgRequestPrivateDecryptionKey_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRequestPrivateDecryptionKey)(nil) } -func (x fastReflection_MsgGetPrivateKeyshares_messageType) New() protoreflect.Message { - return new(fastReflection_MsgGetPrivateKeyshares) +func (x fastReflection_MsgRequestPrivateDecryptionKey_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRequestPrivateDecryptionKey) } -func (x fastReflection_MsgGetPrivateKeyshares_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgGetPrivateKeyshares +func (x fastReflection_MsgRequestPrivateDecryptionKey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRequestPrivateDecryptionKey } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgGetPrivateKeyshares) Descriptor() protoreflect.MessageDescriptor { - return md_MsgGetPrivateKeyshares +func (x *fastReflection_MsgRequestPrivateDecryptionKey) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRequestPrivateDecryptionKey } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgGetPrivateKeyshares) Type() protoreflect.MessageType { - return _fastReflection_MsgGetPrivateKeyshares_messageType +func (x *fastReflection_MsgRequestPrivateDecryptionKey) Type() protoreflect.MessageType { + return _fastReflection_MsgRequestPrivateDecryptionKey_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgGetPrivateKeyshares) New() protoreflect.Message { - return new(fastReflection_MsgGetPrivateKeyshares) +func (x *fastReflection_MsgRequestPrivateDecryptionKey) New() protoreflect.Message { + return new(fastReflection_MsgRequestPrivateDecryptionKey) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgGetPrivateKeyshares) Interface() protoreflect.ProtoMessage { - return (*MsgGetPrivateKeyshares)(x) +func (x *fastReflection_MsgRequestPrivateDecryptionKey) Interface() protoreflect.ProtoMessage { + return (*MsgRequestPrivateDecryptionKey)(x) } // Range iterates over every populated field in an undefined order, @@ -6358,22 +6358,22 @@ func (x *fastReflection_MsgGetPrivateKeyshares) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgGetPrivateKeyshares) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgRequestPrivateDecryptionKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgGetPrivateKeyshares_creator, value) { + if !f(fd_MsgRequestPrivateDecryptionKey_creator, value) { return } } if x.ReqId != "" { value := protoreflect.ValueOfString(x.ReqId) - if !f(fd_MsgGetPrivateKeyshares_req_id, value) { + if !f(fd_MsgRequestPrivateDecryptionKey_req_id, value) { return } } if x.SecpPubkey != "" { value := protoreflect.ValueOfString(x.SecpPubkey) - if !f(fd_MsgGetPrivateKeyshares_secp_pubkey, value) { + if !f(fd_MsgRequestPrivateDecryptionKey_secp_pubkey, value) { return } } @@ -6390,19 +6390,19 @@ func (x *fastReflection_MsgGetPrivateKeyshares) Range(f func(protoreflect.FieldD // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgGetPrivateKeyshares) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgRequestPrivateDecryptionKey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.MsgGetPrivateKeyshares.creator": + case "fairyring.pep.MsgRequestPrivateDecryptionKey.creator": return x.Creator != "" - case "fairyring.pep.MsgGetPrivateKeyshares.req_id": + case "fairyring.pep.MsgRequestPrivateDecryptionKey.req_id": return x.ReqId != "" - case "fairyring.pep.MsgGetPrivateKeyshares.secp_pubkey": + case "fairyring.pep.MsgRequestPrivateDecryptionKey.secp_pubkey": return x.SecpPubkey != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetPrivateKeyshares")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestPrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetPrivateKeyshares does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestPrivateDecryptionKey does not contain field %s", fd.FullName())) } } @@ -6412,19 +6412,19 @@ func (x *fastReflection_MsgGetPrivateKeyshares) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgGetPrivateKeyshares) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgRequestPrivateDecryptionKey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.MsgGetPrivateKeyshares.creator": + case "fairyring.pep.MsgRequestPrivateDecryptionKey.creator": x.Creator = "" - case "fairyring.pep.MsgGetPrivateKeyshares.req_id": + case "fairyring.pep.MsgRequestPrivateDecryptionKey.req_id": x.ReqId = "" - case "fairyring.pep.MsgGetPrivateKeyshares.secp_pubkey": + case "fairyring.pep.MsgRequestPrivateDecryptionKey.secp_pubkey": x.SecpPubkey = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetPrivateKeyshares")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestPrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetPrivateKeyshares does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestPrivateDecryptionKey does not contain field %s", fd.FullName())) } } @@ -6434,22 +6434,22 @@ func (x *fastReflection_MsgGetPrivateKeyshares) Clear(fd protoreflect.FieldDescr // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgGetPrivateKeyshares) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRequestPrivateDecryptionKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.MsgGetPrivateKeyshares.creator": + case "fairyring.pep.MsgRequestPrivateDecryptionKey.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.pep.MsgGetPrivateKeyshares.req_id": + case "fairyring.pep.MsgRequestPrivateDecryptionKey.req_id": value := x.ReqId return protoreflect.ValueOfString(value) - case "fairyring.pep.MsgGetPrivateKeyshares.secp_pubkey": + case "fairyring.pep.MsgRequestPrivateDecryptionKey.secp_pubkey": value := x.SecpPubkey return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetPrivateKeyshares")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestPrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetPrivateKeyshares does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestPrivateDecryptionKey does not contain field %s", descriptor.FullName())) } } @@ -6463,19 +6463,19 @@ func (x *fastReflection_MsgGetPrivateKeyshares) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgGetPrivateKeyshares) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgRequestPrivateDecryptionKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.MsgGetPrivateKeyshares.creator": + case "fairyring.pep.MsgRequestPrivateDecryptionKey.creator": x.Creator = value.Interface().(string) - case "fairyring.pep.MsgGetPrivateKeyshares.req_id": + case "fairyring.pep.MsgRequestPrivateDecryptionKey.req_id": x.ReqId = value.Interface().(string) - case "fairyring.pep.MsgGetPrivateKeyshares.secp_pubkey": + case "fairyring.pep.MsgRequestPrivateDecryptionKey.secp_pubkey": x.SecpPubkey = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetPrivateKeyshares")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestPrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetPrivateKeyshares does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestPrivateDecryptionKey does not contain field %s", fd.FullName())) } } @@ -6489,48 +6489,48 @@ func (x *fastReflection_MsgGetPrivateKeyshares) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgGetPrivateKeyshares) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRequestPrivateDecryptionKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.MsgGetPrivateKeyshares.creator": - panic(fmt.Errorf("field creator of message fairyring.pep.MsgGetPrivateKeyshares is not mutable")) - case "fairyring.pep.MsgGetPrivateKeyshares.req_id": - panic(fmt.Errorf("field req_id of message fairyring.pep.MsgGetPrivateKeyshares is not mutable")) - case "fairyring.pep.MsgGetPrivateKeyshares.secp_pubkey": - panic(fmt.Errorf("field secp_pubkey of message fairyring.pep.MsgGetPrivateKeyshares is not mutable")) + case "fairyring.pep.MsgRequestPrivateDecryptionKey.creator": + panic(fmt.Errorf("field creator of message fairyring.pep.MsgRequestPrivateDecryptionKey is not mutable")) + case "fairyring.pep.MsgRequestPrivateDecryptionKey.req_id": + panic(fmt.Errorf("field req_id of message fairyring.pep.MsgRequestPrivateDecryptionKey is not mutable")) + case "fairyring.pep.MsgRequestPrivateDecryptionKey.secp_pubkey": + panic(fmt.Errorf("field secp_pubkey of message fairyring.pep.MsgRequestPrivateDecryptionKey is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetPrivateKeyshares")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestPrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetPrivateKeyshares does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestPrivateDecryptionKey does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgGetPrivateKeyshares) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRequestPrivateDecryptionKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.MsgGetPrivateKeyshares.creator": + case "fairyring.pep.MsgRequestPrivateDecryptionKey.creator": return protoreflect.ValueOfString("") - case "fairyring.pep.MsgGetPrivateKeyshares.req_id": + case "fairyring.pep.MsgRequestPrivateDecryptionKey.req_id": return protoreflect.ValueOfString("") - case "fairyring.pep.MsgGetPrivateKeyshares.secp_pubkey": + case "fairyring.pep.MsgRequestPrivateDecryptionKey.secp_pubkey": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetPrivateKeyshares")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestPrivateDecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetPrivateKeyshares does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestPrivateDecryptionKey does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgGetPrivateKeyshares) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgRequestPrivateDecryptionKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgGetPrivateKeyshares", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgRequestPrivateDecryptionKey", d.FullName())) } panic("unreachable") } @@ -6538,7 +6538,7 @@ func (x *fastReflection_MsgGetPrivateKeyshares) WhichOneof(d protoreflect.OneofD // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgGetPrivateKeyshares) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgRequestPrivateDecryptionKey) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6549,7 +6549,7 @@ func (x *fastReflection_MsgGetPrivateKeyshares) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgGetPrivateKeyshares) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgRequestPrivateDecryptionKey) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6561,7 +6561,7 @@ func (x *fastReflection_MsgGetPrivateKeyshares) SetUnknown(fields protoreflect.R // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgGetPrivateKeyshares) IsValid() bool { +func (x *fastReflection_MsgRequestPrivateDecryptionKey) IsValid() bool { return x != nil } @@ -6571,9 +6571,9 @@ func (x *fastReflection_MsgGetPrivateKeyshares) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgGetPrivateKeyshares) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgRequestPrivateDecryptionKey) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgGetPrivateKeyshares) + x := input.Message.Interface().(*MsgRequestPrivateDecryptionKey) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6607,7 +6607,7 @@ func (x *fastReflection_MsgGetPrivateKeyshares) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgGetPrivateKeyshares) + x := input.Message.Interface().(*MsgRequestPrivateDecryptionKey) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6658,7 +6658,7 @@ func (x *fastReflection_MsgGetPrivateKeyshares) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgGetPrivateKeyshares) + x := input.Message.Interface().(*MsgRequestPrivateDecryptionKey) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6690,10 +6690,10 @@ func (x *fastReflection_MsgGetPrivateKeyshares) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgGetPrivateKeyshares: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestPrivateDecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgGetPrivateKeyshares: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestPrivateDecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6828,23 +6828,23 @@ func (x *fastReflection_MsgGetPrivateKeyshares) ProtoMethods() *protoiface.Metho } var ( - md_MsgGetPrivateKeysharesResponse protoreflect.MessageDescriptor + md_MsgRequestPrivateDecryptionKeyResponse protoreflect.MessageDescriptor ) func init() { file_fairyring_pep_tx_proto_init() - md_MsgGetPrivateKeysharesResponse = File_fairyring_pep_tx_proto.Messages().ByName("MsgGetPrivateKeysharesResponse") + md_MsgRequestPrivateDecryptionKeyResponse = File_fairyring_pep_tx_proto.Messages().ByName("MsgRequestPrivateDecryptionKeyResponse") } -var _ protoreflect.Message = (*fastReflection_MsgGetPrivateKeysharesResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgRequestPrivateDecryptionKeyResponse)(nil) -type fastReflection_MsgGetPrivateKeysharesResponse MsgGetPrivateKeysharesResponse +type fastReflection_MsgRequestPrivateDecryptionKeyResponse MsgRequestPrivateDecryptionKeyResponse -func (x *MsgGetPrivateKeysharesResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgGetPrivateKeysharesResponse)(x) +func (x *MsgRequestPrivateDecryptionKeyResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgRequestPrivateDecryptionKeyResponse)(x) } -func (x *MsgGetPrivateKeysharesResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgRequestPrivateDecryptionKeyResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_tx_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -6856,43 +6856,43 @@ func (x *MsgGetPrivateKeysharesResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_MsgGetPrivateKeysharesResponse_messageType fastReflection_MsgGetPrivateKeysharesResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgGetPrivateKeysharesResponse_messageType{} +var _fastReflection_MsgRequestPrivateDecryptionKeyResponse_messageType fastReflection_MsgRequestPrivateDecryptionKeyResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgRequestPrivateDecryptionKeyResponse_messageType{} -type fastReflection_MsgGetPrivateKeysharesResponse_messageType struct{} +type fastReflection_MsgRequestPrivateDecryptionKeyResponse_messageType struct{} -func (x fastReflection_MsgGetPrivateKeysharesResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgGetPrivateKeysharesResponse)(nil) +func (x fastReflection_MsgRequestPrivateDecryptionKeyResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgRequestPrivateDecryptionKeyResponse)(nil) } -func (x fastReflection_MsgGetPrivateKeysharesResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgGetPrivateKeysharesResponse) +func (x fastReflection_MsgRequestPrivateDecryptionKeyResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgRequestPrivateDecryptionKeyResponse) } -func (x fastReflection_MsgGetPrivateKeysharesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgGetPrivateKeysharesResponse +func (x fastReflection_MsgRequestPrivateDecryptionKeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRequestPrivateDecryptionKeyResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgGetPrivateKeysharesResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgGetPrivateKeysharesResponse +func (x *fastReflection_MsgRequestPrivateDecryptionKeyResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgRequestPrivateDecryptionKeyResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgGetPrivateKeysharesResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgGetPrivateKeysharesResponse_messageType +func (x *fastReflection_MsgRequestPrivateDecryptionKeyResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgRequestPrivateDecryptionKeyResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgGetPrivateKeysharesResponse) New() protoreflect.Message { - return new(fastReflection_MsgGetPrivateKeysharesResponse) +func (x *fastReflection_MsgRequestPrivateDecryptionKeyResponse) New() protoreflect.Message { + return new(fastReflection_MsgRequestPrivateDecryptionKeyResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgGetPrivateKeysharesResponse) Interface() protoreflect.ProtoMessage { - return (*MsgGetPrivateKeysharesResponse)(x) +func (x *fastReflection_MsgRequestPrivateDecryptionKeyResponse) Interface() protoreflect.ProtoMessage { + return (*MsgRequestPrivateDecryptionKeyResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -6900,7 +6900,7 @@ func (x *fastReflection_MsgGetPrivateKeysharesResponse) Interface() protoreflect // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgGetPrivateKeysharesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgRequestPrivateDecryptionKeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -6914,13 +6914,13 @@ func (x *fastReflection_MsgGetPrivateKeysharesResponse) Range(f func(protoreflec // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgGetPrivateKeysharesResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgRequestPrivateDecryptionKeyResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetPrivateKeysharesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestPrivateDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetPrivateKeysharesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestPrivateDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -6930,13 +6930,13 @@ func (x *fastReflection_MsgGetPrivateKeysharesResponse) Has(fd protoreflect.Fiel // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgGetPrivateKeysharesResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgRequestPrivateDecryptionKeyResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetPrivateKeysharesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestPrivateDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetPrivateKeysharesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestPrivateDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -6946,13 +6946,13 @@ func (x *fastReflection_MsgGetPrivateKeysharesResponse) Clear(fd protoreflect.Fi // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgGetPrivateKeysharesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRequestPrivateDecryptionKeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetPrivateKeysharesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestPrivateDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetPrivateKeysharesResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestPrivateDecryptionKeyResponse does not contain field %s", descriptor.FullName())) } } @@ -6966,13 +6966,13 @@ func (x *fastReflection_MsgGetPrivateKeysharesResponse) Get(descriptor protorefl // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgGetPrivateKeysharesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgRequestPrivateDecryptionKeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetPrivateKeysharesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestPrivateDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetPrivateKeysharesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestPrivateDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -6986,36 +6986,36 @@ func (x *fastReflection_MsgGetPrivateKeysharesResponse) Set(fd protoreflect.Fiel // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgGetPrivateKeysharesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRequestPrivateDecryptionKeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetPrivateKeysharesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestPrivateDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetPrivateKeysharesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestPrivateDecryptionKeyResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgGetPrivateKeysharesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgRequestPrivateDecryptionKeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgGetPrivateKeysharesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgRequestPrivateDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgGetPrivateKeysharesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgRequestPrivateDecryptionKeyResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgGetPrivateKeysharesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgRequestPrivateDecryptionKeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgGetPrivateKeysharesResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgRequestPrivateDecryptionKeyResponse", d.FullName())) } panic("unreachable") } @@ -7023,7 +7023,7 @@ func (x *fastReflection_MsgGetPrivateKeysharesResponse) WhichOneof(d protoreflec // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgGetPrivateKeysharesResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgRequestPrivateDecryptionKeyResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7034,7 +7034,7 @@ func (x *fastReflection_MsgGetPrivateKeysharesResponse) GetUnknown() protoreflec // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgGetPrivateKeysharesResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgRequestPrivateDecryptionKeyResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7046,7 +7046,7 @@ func (x *fastReflection_MsgGetPrivateKeysharesResponse) SetUnknown(fields protor // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgGetPrivateKeysharesResponse) IsValid() bool { +func (x *fastReflection_MsgRequestPrivateDecryptionKeyResponse) IsValid() bool { return x != nil } @@ -7056,9 +7056,9 @@ func (x *fastReflection_MsgGetPrivateKeysharesResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgGetPrivateKeysharesResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgRequestPrivateDecryptionKeyResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgGetPrivateKeysharesResponse) + x := input.Message.Interface().(*MsgRequestPrivateDecryptionKeyResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7080,7 +7080,7 @@ func (x *fastReflection_MsgGetPrivateKeysharesResponse) ProtoMethods() *protoifa } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgGetPrivateKeysharesResponse) + x := input.Message.Interface().(*MsgRequestPrivateDecryptionKeyResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7110,7 +7110,7 @@ func (x *fastReflection_MsgGetPrivateKeysharesResponse) ProtoMethods() *protoifa }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgGetPrivateKeysharesResponse) + x := input.Message.Interface().(*MsgRequestPrivateDecryptionKeyResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7142,10 +7142,10 @@ func (x *fastReflection_MsgGetPrivateKeysharesResponse) ProtoMethods() *protoifa fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgGetPrivateKeysharesResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestPrivateDecryptionKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgGetPrivateKeysharesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgRequestPrivateDecryptionKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -9318,8 +9318,8 @@ func (*MsgCreateAggregatedKeyShareResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{7} } -// MsgRequestGeneralKeyshare is the Msg/RequestGeneralKeyshare request type. -type MsgRequestGeneralKeyshare struct { +// MsgRequestGeneralIdentity is the Msg/RequestGeneralIdentity request type. +type MsgRequestGeneralIdentity struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -9329,8 +9329,8 @@ type MsgRequestGeneralKeyshare struct { ReqId string `protobuf:"bytes,3,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } -func (x *MsgRequestGeneralKeyshare) Reset() { - *x = MsgRequestGeneralKeyshare{} +func (x *MsgRequestGeneralIdentity) Reset() { + *x = MsgRequestGeneralIdentity{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_tx_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9338,41 +9338,41 @@ func (x *MsgRequestGeneralKeyshare) Reset() { } } -func (x *MsgRequestGeneralKeyshare) String() string { +func (x *MsgRequestGeneralIdentity) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgRequestGeneralKeyshare) ProtoMessage() {} +func (*MsgRequestGeneralIdentity) ProtoMessage() {} -// Deprecated: Use MsgRequestGeneralKeyshare.ProtoReflect.Descriptor instead. -func (*MsgRequestGeneralKeyshare) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgRequestGeneralIdentity.ProtoReflect.Descriptor instead. +func (*MsgRequestGeneralIdentity) Descriptor() ([]byte, []int) { return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{8} } -func (x *MsgRequestGeneralKeyshare) GetCreator() string { +func (x *MsgRequestGeneralIdentity) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgRequestGeneralKeyshare) GetEstimatedDelay() *durationpb.Duration { +func (x *MsgRequestGeneralIdentity) GetEstimatedDelay() *durationpb.Duration { if x != nil { return x.EstimatedDelay } return nil } -func (x *MsgRequestGeneralKeyshare) GetReqId() string { +func (x *MsgRequestGeneralIdentity) GetReqId() string { if x != nil { return x.ReqId } return "" } -// MsgRequestGeneralKeyshareResponse defines the response structure for executing a -// MsgRequestGeneralKeyshare message. -type MsgRequestGeneralKeyshareResponse struct { +// MsgRequestGeneralIdentityResponse defines the response structure for executing a +// MsgRequestGeneralIdentity message. +type MsgRequestGeneralIdentityResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -9380,8 +9380,8 @@ type MsgRequestGeneralKeyshareResponse struct { ReqId string `protobuf:"bytes,1,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } -func (x *MsgRequestGeneralKeyshareResponse) Reset() { - *x = MsgRequestGeneralKeyshareResponse{} +func (x *MsgRequestGeneralIdentityResponse) Reset() { + *x = MsgRequestGeneralIdentityResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_tx_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9389,26 +9389,26 @@ func (x *MsgRequestGeneralKeyshareResponse) Reset() { } } -func (x *MsgRequestGeneralKeyshareResponse) String() string { +func (x *MsgRequestGeneralIdentityResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgRequestGeneralKeyshareResponse) ProtoMessage() {} +func (*MsgRequestGeneralIdentityResponse) ProtoMessage() {} -// Deprecated: Use MsgRequestGeneralKeyshareResponse.ProtoReflect.Descriptor instead. -func (*MsgRequestGeneralKeyshareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgRequestGeneralIdentityResponse.ProtoReflect.Descriptor instead. +func (*MsgRequestGeneralIdentityResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{9} } -func (x *MsgRequestGeneralKeyshareResponse) GetReqId() string { +func (x *MsgRequestGeneralIdentityResponse) GetReqId() string { if x != nil { return x.ReqId } return "" } -// MsgGetGeneralKeyshare is the Msg/GetGeneralKeyshare request type. -type MsgGetGeneralKeyshare struct { +// MsgRequestGeneralDecryptionKey is the Msg/RequestGeneralDecryptionKey request type. +type MsgRequestGeneralDecryptionKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -9417,8 +9417,8 @@ type MsgGetGeneralKeyshare struct { ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } -func (x *MsgGetGeneralKeyshare) Reset() { - *x = MsgGetGeneralKeyshare{} +func (x *MsgRequestGeneralDecryptionKey) Reset() { + *x = MsgRequestGeneralDecryptionKey{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_tx_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9426,41 +9426,41 @@ func (x *MsgGetGeneralKeyshare) Reset() { } } -func (x *MsgGetGeneralKeyshare) String() string { +func (x *MsgRequestGeneralDecryptionKey) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgGetGeneralKeyshare) ProtoMessage() {} +func (*MsgRequestGeneralDecryptionKey) ProtoMessage() {} -// Deprecated: Use MsgGetGeneralKeyshare.ProtoReflect.Descriptor instead. -func (*MsgGetGeneralKeyshare) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgRequestGeneralDecryptionKey.ProtoReflect.Descriptor instead. +func (*MsgRequestGeneralDecryptionKey) Descriptor() ([]byte, []int) { return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{10} } -func (x *MsgGetGeneralKeyshare) GetCreator() string { +func (x *MsgRequestGeneralDecryptionKey) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgGetGeneralKeyshare) GetReqId() string { +func (x *MsgRequestGeneralDecryptionKey) GetReqId() string { if x != nil { return x.ReqId } return "" } -// MsgGetGeneralKeyshareResponse defines the response structure for executing a -// MsgGetGeneralKeyshare message. -type MsgGetGeneralKeyshareResponse struct { +// MsgRequestGeneralDecryptionKeyResponse defines the response structure for executing a +// MsgRequestGeneralDecryptionKey message. +type MsgRequestGeneralDecryptionKeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgGetGeneralKeyshareResponse) Reset() { - *x = MsgGetGeneralKeyshareResponse{} +func (x *MsgRequestGeneralDecryptionKeyResponse) Reset() { + *x = MsgRequestGeneralDecryptionKeyResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_tx_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9468,14 +9468,14 @@ func (x *MsgGetGeneralKeyshareResponse) Reset() { } } -func (x *MsgGetGeneralKeyshareResponse) String() string { +func (x *MsgRequestGeneralDecryptionKeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgGetGeneralKeyshareResponse) ProtoMessage() {} +func (*MsgRequestGeneralDecryptionKeyResponse) ProtoMessage() {} -// Deprecated: Use MsgGetGeneralKeyshareResponse.ProtoReflect.Descriptor instead. -func (*MsgGetGeneralKeyshareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgRequestGeneralDecryptionKeyResponse.ProtoReflect.Descriptor instead. +func (*MsgRequestGeneralDecryptionKeyResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{11} } @@ -9560,8 +9560,8 @@ func (x *MsgRequestPrivateIdentityResponse) GetReqId() string { return "" } -// MsgGetPrivateKeyshares is the Msg/GetPrivateKeyshares request type. -type MsgGetPrivateKeyshares struct { +// MsgRequestPrivateDecryptionKey is the Msg/RequestPrivateDecryptionKey request type. +type MsgRequestPrivateDecryptionKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -9571,8 +9571,8 @@ type MsgGetPrivateKeyshares struct { SecpPubkey string `protobuf:"bytes,3,opt,name=secp_pubkey,json=secpPubkey,proto3" json:"secp_pubkey,omitempty"` } -func (x *MsgGetPrivateKeyshares) Reset() { - *x = MsgGetPrivateKeyshares{} +func (x *MsgRequestPrivateDecryptionKey) Reset() { + *x = MsgRequestPrivateDecryptionKey{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_tx_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9580,48 +9580,48 @@ func (x *MsgGetPrivateKeyshares) Reset() { } } -func (x *MsgGetPrivateKeyshares) String() string { +func (x *MsgRequestPrivateDecryptionKey) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgGetPrivateKeyshares) ProtoMessage() {} +func (*MsgRequestPrivateDecryptionKey) ProtoMessage() {} -// Deprecated: Use MsgGetPrivateKeyshares.ProtoReflect.Descriptor instead. -func (*MsgGetPrivateKeyshares) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgRequestPrivateDecryptionKey.ProtoReflect.Descriptor instead. +func (*MsgRequestPrivateDecryptionKey) Descriptor() ([]byte, []int) { return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{14} } -func (x *MsgGetPrivateKeyshares) GetCreator() string { +func (x *MsgRequestPrivateDecryptionKey) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgGetPrivateKeyshares) GetReqId() string { +func (x *MsgRequestPrivateDecryptionKey) GetReqId() string { if x != nil { return x.ReqId } return "" } -func (x *MsgGetPrivateKeyshares) GetSecpPubkey() string { +func (x *MsgRequestPrivateDecryptionKey) GetSecpPubkey() string { if x != nil { return x.SecpPubkey } return "" } -// MsgGetPrivateKeysharesResponse defines the response structure for executing a -// MsgGetPrivateKeyshares message. -type MsgGetPrivateKeysharesResponse struct { +// MsgRequestPrivateDecryptionKeyResponse defines the response structure for executing a +// MsgRequestPrivateDecryptionKey message. +type MsgRequestPrivateDecryptionKeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgGetPrivateKeysharesResponse) Reset() { - *x = MsgGetPrivateKeysharesResponse{} +func (x *MsgRequestPrivateDecryptionKeyResponse) Reset() { + *x = MsgRequestPrivateDecryptionKeyResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_tx_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9629,14 +9629,14 @@ func (x *MsgGetPrivateKeysharesResponse) Reset() { } } -func (x *MsgGetPrivateKeysharesResponse) String() string { +func (x *MsgRequestPrivateDecryptionKeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgGetPrivateKeysharesResponse) ProtoMessage() {} +func (*MsgRequestPrivateDecryptionKeyResponse) ProtoMessage() {} -// Deprecated: Use MsgGetPrivateKeysharesResponse.ProtoReflect.Descriptor instead. -func (*MsgGetPrivateKeysharesResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgRequestPrivateDecryptionKeyResponse.ProtoReflect.Descriptor instead. +func (*MsgRequestPrivateDecryptionKeyResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{15} } @@ -9860,7 +9860,7 @@ var file_fairyring_pep_tx_proto_rawDesc = []byte{ 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa4, 0x01, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x48, 0x0a, 0x0f, 0x65, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x02, 0x20, @@ -9870,137 +9870,142 @@ var file_fairyring_pep_tx_proto_rawDesc = []byte{ 0x65, 0x6c, 0x61, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x3a, 0x0a, 0x21, 0x4d, 0x73, 0x67, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0x56, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x3a, - 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1f, 0x0a, - 0x1d, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5a, - 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, - 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, + 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0x5f, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x28, 0x0a, 0x26, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x44, 0x65, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x5a, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x3a, 0x0c, + 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x3a, 0x0a, 0x21, + 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0x80, 0x01, 0x0a, 0x1e, 0x4d, 0x73, 0x67, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, - 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x3a, 0x0a, 0x21, 0x4d, 0x73, - 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0x78, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, - 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, - 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, - 0x71, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, - 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x70, 0x50, 0x75, 0x62, 0x6b, - 0x65, 0x79, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x84, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, - 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x86, 0x01, 0x0a, 0x15, 0x4d, 0x73, 0x67, - 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x29, 0x0a, 0x10, - 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x32, 0xd4, 0x08, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x56, 0x0a, 0x0c, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1e, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x26, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x65, 0x0a, 0x11, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, - 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x1a, 0x2b, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, - 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, - 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x18, 0x53, 0x75, 0x62, - 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, - 0x78, 0x1a, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, - 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, - 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, - 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, - 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x32, 0x2e, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, + 0x73, 0x65, 0x63, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x70, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x3a, 0x0c, 0x82, + 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x28, 0x0a, 0x26, 0x4d, + 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x84, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x18, 0x0a, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x3a, 0x0c, + 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1d, 0x0a, 0x1b, + 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x86, 0x01, 0x0a, 0x15, + 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, + 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x89, 0x09, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x56, 0x0a, + 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, - 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, - 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x74, 0x0a, 0x16, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x28, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x24, 0x2e, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, - 0x67, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x1a, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x74, 0x0a, 0x16, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, - 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x28, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x50, 0x72, - 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x12, 0x25, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x11, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, + 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x23, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, + 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x1a, + 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, + 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x18, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, + 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x65, 0x64, 0x54, 0x78, 0x1a, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, + 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x1a, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, + 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, + 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x16, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x28, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, - 0x73, 0x67, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x73, 0x1a, 0x2d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x76, - 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x22, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2a, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, + 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x83, 0x01, 0x0a, 0x1b, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x44, 0x65, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x2d, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x44, 0x65, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x1a, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x44, 0x65, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x74, 0x0a, 0x16, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x28, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x83, 0x01, 0x0a, 0x1b, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x2d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x1a, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x12, 0x55, 0x6e, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x24, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, - 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0x91, 0x01, 0x0a, 0x11, 0x63, 0x6f, - 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, - 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, - 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, - 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, - 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x12, 0x22, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, + 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x68, 0x0a, 0x12, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x24, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2c, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, + 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, + 0x01, 0x42, 0x91, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, + 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -10017,50 +10022,50 @@ func file_fairyring_pep_tx_proto_rawDescGZIP() []byte { var file_fairyring_pep_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 20) var file_fairyring_pep_tx_proto_goTypes = []interface{}{ - (*MsgUpdateParams)(nil), // 0: fairyring.pep.MsgUpdateParams - (*MsgUpdateParamsResponse)(nil), // 1: fairyring.pep.MsgUpdateParamsResponse - (*MsgSubmitEncryptedTx)(nil), // 2: fairyring.pep.MsgSubmitEncryptedTx - (*MsgSubmitEncryptedTxResponse)(nil), // 3: fairyring.pep.MsgSubmitEncryptedTxResponse - (*MsgSubmitGeneralEncryptedTx)(nil), // 4: fairyring.pep.MsgSubmitGeneralEncryptedTx - (*MsgSubmitGeneralEncryptedTxResponse)(nil), // 5: fairyring.pep.MsgSubmitGeneralEncryptedTxResponse - (*MsgCreateAggregatedKeyShare)(nil), // 6: fairyring.pep.MsgCreateAggregatedKeyShare - (*MsgCreateAggregatedKeyShareResponse)(nil), // 7: fairyring.pep.MsgCreateAggregatedKeyShareResponse - (*MsgRequestGeneralKeyshare)(nil), // 8: fairyring.pep.MsgRequestGeneralKeyshare - (*MsgRequestGeneralKeyshareResponse)(nil), // 9: fairyring.pep.MsgRequestGeneralKeyshareResponse - (*MsgGetGeneralKeyshare)(nil), // 10: fairyring.pep.MsgGetGeneralKeyshare - (*MsgGetGeneralKeyshareResponse)(nil), // 11: fairyring.pep.MsgGetGeneralKeyshareResponse - (*MsgRequestPrivateIdentity)(nil), // 12: fairyring.pep.MsgRequestPrivateIdentity - (*MsgRequestPrivateIdentityResponse)(nil), // 13: fairyring.pep.MsgRequestPrivateIdentityResponse - (*MsgGetPrivateKeyshares)(nil), // 14: fairyring.pep.MsgGetPrivateKeyshares - (*MsgGetPrivateKeysharesResponse)(nil), // 15: fairyring.pep.MsgGetPrivateKeysharesResponse - (*MsgRegisterContract)(nil), // 16: fairyring.pep.MsgRegisterContract - (*MsgRegisterContractResponse)(nil), // 17: fairyring.pep.MsgRegisterContractResponse - (*MsgUnregisterContract)(nil), // 18: fairyring.pep.MsgUnregisterContract - (*MsgUnregisterContractResponse)(nil), // 19: fairyring.pep.MsgUnregisterContractResponse - (*Params)(nil), // 20: fairyring.pep.Params - (*durationpb.Duration)(nil), // 21: google.protobuf.Duration + (*MsgUpdateParams)(nil), // 0: fairyring.pep.MsgUpdateParams + (*MsgUpdateParamsResponse)(nil), // 1: fairyring.pep.MsgUpdateParamsResponse + (*MsgSubmitEncryptedTx)(nil), // 2: fairyring.pep.MsgSubmitEncryptedTx + (*MsgSubmitEncryptedTxResponse)(nil), // 3: fairyring.pep.MsgSubmitEncryptedTxResponse + (*MsgSubmitGeneralEncryptedTx)(nil), // 4: fairyring.pep.MsgSubmitGeneralEncryptedTx + (*MsgSubmitGeneralEncryptedTxResponse)(nil), // 5: fairyring.pep.MsgSubmitGeneralEncryptedTxResponse + (*MsgCreateAggregatedKeyShare)(nil), // 6: fairyring.pep.MsgCreateAggregatedKeyShare + (*MsgCreateAggregatedKeyShareResponse)(nil), // 7: fairyring.pep.MsgCreateAggregatedKeyShareResponse + (*MsgRequestGeneralIdentity)(nil), // 8: fairyring.pep.MsgRequestGeneralIdentity + (*MsgRequestGeneralIdentityResponse)(nil), // 9: fairyring.pep.MsgRequestGeneralIdentityResponse + (*MsgRequestGeneralDecryptionKey)(nil), // 10: fairyring.pep.MsgRequestGeneralDecryptionKey + (*MsgRequestGeneralDecryptionKeyResponse)(nil), // 11: fairyring.pep.MsgRequestGeneralDecryptionKeyResponse + (*MsgRequestPrivateIdentity)(nil), // 12: fairyring.pep.MsgRequestPrivateIdentity + (*MsgRequestPrivateIdentityResponse)(nil), // 13: fairyring.pep.MsgRequestPrivateIdentityResponse + (*MsgRequestPrivateDecryptionKey)(nil), // 14: fairyring.pep.MsgRequestPrivateDecryptionKey + (*MsgRequestPrivateDecryptionKeyResponse)(nil), // 15: fairyring.pep.MsgRequestPrivateDecryptionKeyResponse + (*MsgRegisterContract)(nil), // 16: fairyring.pep.MsgRegisterContract + (*MsgRegisterContractResponse)(nil), // 17: fairyring.pep.MsgRegisterContractResponse + (*MsgUnregisterContract)(nil), // 18: fairyring.pep.MsgUnregisterContract + (*MsgUnregisterContractResponse)(nil), // 19: fairyring.pep.MsgUnregisterContractResponse + (*Params)(nil), // 20: fairyring.pep.Params + (*durationpb.Duration)(nil), // 21: google.protobuf.Duration } var file_fairyring_pep_tx_proto_depIdxs = []int32{ 20, // 0: fairyring.pep.MsgUpdateParams.params:type_name -> fairyring.pep.Params - 21, // 1: fairyring.pep.MsgRequestGeneralKeyshare.estimated_delay:type_name -> google.protobuf.Duration + 21, // 1: fairyring.pep.MsgRequestGeneralIdentity.estimated_delay:type_name -> google.protobuf.Duration 0, // 2: fairyring.pep.Msg.UpdateParams:input_type -> fairyring.pep.MsgUpdateParams 2, // 3: fairyring.pep.Msg.SubmitEncryptedTx:input_type -> fairyring.pep.MsgSubmitEncryptedTx 4, // 4: fairyring.pep.Msg.SubmitGeneralEncryptedTx:input_type -> fairyring.pep.MsgSubmitGeneralEncryptedTx 6, // 5: fairyring.pep.Msg.CreateAggregatedKeyShare:input_type -> fairyring.pep.MsgCreateAggregatedKeyShare - 8, // 6: fairyring.pep.Msg.RequestGeneralKeyshare:input_type -> fairyring.pep.MsgRequestGeneralKeyshare - 10, // 7: fairyring.pep.Msg.GetGeneralKeyshare:input_type -> fairyring.pep.MsgGetGeneralKeyshare + 8, // 6: fairyring.pep.Msg.RequestGeneralIdentity:input_type -> fairyring.pep.MsgRequestGeneralIdentity + 10, // 7: fairyring.pep.Msg.RequestGeneralDecryptionKey:input_type -> fairyring.pep.MsgRequestGeneralDecryptionKey 12, // 8: fairyring.pep.Msg.RequestPrivateIdentity:input_type -> fairyring.pep.MsgRequestPrivateIdentity - 14, // 9: fairyring.pep.Msg.GetPrivateKeyshares:input_type -> fairyring.pep.MsgGetPrivateKeyshares + 14, // 9: fairyring.pep.Msg.RequestPrivateDecryptionKey:input_type -> fairyring.pep.MsgRequestPrivateDecryptionKey 16, // 10: fairyring.pep.Msg.RegisterContract:input_type -> fairyring.pep.MsgRegisterContract 18, // 11: fairyring.pep.Msg.UnregisterContract:input_type -> fairyring.pep.MsgUnregisterContract 1, // 12: fairyring.pep.Msg.UpdateParams:output_type -> fairyring.pep.MsgUpdateParamsResponse 3, // 13: fairyring.pep.Msg.SubmitEncryptedTx:output_type -> fairyring.pep.MsgSubmitEncryptedTxResponse 5, // 14: fairyring.pep.Msg.SubmitGeneralEncryptedTx:output_type -> fairyring.pep.MsgSubmitGeneralEncryptedTxResponse 7, // 15: fairyring.pep.Msg.CreateAggregatedKeyShare:output_type -> fairyring.pep.MsgCreateAggregatedKeyShareResponse - 9, // 16: fairyring.pep.Msg.RequestGeneralKeyshare:output_type -> fairyring.pep.MsgRequestGeneralKeyshareResponse - 11, // 17: fairyring.pep.Msg.GetGeneralKeyshare:output_type -> fairyring.pep.MsgGetGeneralKeyshareResponse + 9, // 16: fairyring.pep.Msg.RequestGeneralIdentity:output_type -> fairyring.pep.MsgRequestGeneralIdentityResponse + 11, // 17: fairyring.pep.Msg.RequestGeneralDecryptionKey:output_type -> fairyring.pep.MsgRequestGeneralDecryptionKeyResponse 13, // 18: fairyring.pep.Msg.RequestPrivateIdentity:output_type -> fairyring.pep.MsgRequestPrivateIdentityResponse - 15, // 19: fairyring.pep.Msg.GetPrivateKeyshares:output_type -> fairyring.pep.MsgGetPrivateKeysharesResponse + 15, // 19: fairyring.pep.Msg.RequestPrivateDecryptionKey:output_type -> fairyring.pep.MsgRequestPrivateDecryptionKeyResponse 17, // 20: fairyring.pep.Msg.RegisterContract:output_type -> fairyring.pep.MsgRegisterContractResponse 19, // 21: fairyring.pep.Msg.UnregisterContract:output_type -> fairyring.pep.MsgUnregisterContractResponse 12, // [12:22] is the sub-list for method output_type @@ -10174,7 +10179,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRequestGeneralKeyshare); i { + switch v := v.(*MsgRequestGeneralIdentity); i { case 0: return &v.state case 1: @@ -10186,7 +10191,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgRequestGeneralKeyshareResponse); i { + switch v := v.(*MsgRequestGeneralIdentityResponse); i { case 0: return &v.state case 1: @@ -10198,7 +10203,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgGetGeneralKeyshare); i { + switch v := v.(*MsgRequestGeneralDecryptionKey); i { case 0: return &v.state case 1: @@ -10210,7 +10215,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgGetGeneralKeyshareResponse); i { + switch v := v.(*MsgRequestGeneralDecryptionKeyResponse); i { case 0: return &v.state case 1: @@ -10246,7 +10251,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgGetPrivateKeyshares); i { + switch v := v.(*MsgRequestPrivateDecryptionKey); i { case 0: return &v.state case 1: @@ -10258,7 +10263,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgGetPrivateKeysharesResponse); i { + switch v := v.(*MsgRequestPrivateDecryptionKeyResponse); i { case 0: return &v.state case 1: diff --git a/api/fairyring/pep/tx_grpc.pb.go b/api/fairyring/pep/tx_grpc.pb.go index 8fd724cc..91a5dc43 100644 --- a/api/fairyring/pep/tx_grpc.pb.go +++ b/api/fairyring/pep/tx_grpc.pb.go @@ -19,16 +19,16 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Msg_UpdateParams_FullMethodName = "/fairyring.pep.Msg/UpdateParams" - Msg_SubmitEncryptedTx_FullMethodName = "/fairyring.pep.Msg/SubmitEncryptedTx" - Msg_SubmitGeneralEncryptedTx_FullMethodName = "/fairyring.pep.Msg/SubmitGeneralEncryptedTx" - Msg_CreateAggregatedKeyShare_FullMethodName = "/fairyring.pep.Msg/CreateAggregatedKeyShare" - Msg_RequestGeneralKeyshare_FullMethodName = "/fairyring.pep.Msg/RequestGeneralKeyshare" - Msg_GetGeneralKeyshare_FullMethodName = "/fairyring.pep.Msg/GetGeneralKeyshare" - Msg_RequestPrivateIdentity_FullMethodName = "/fairyring.pep.Msg/RequestPrivateIdentity" - Msg_GetPrivateKeyshares_FullMethodName = "/fairyring.pep.Msg/GetPrivateKeyshares" - Msg_RegisterContract_FullMethodName = "/fairyring.pep.Msg/RegisterContract" - Msg_UnregisterContract_FullMethodName = "/fairyring.pep.Msg/UnregisterContract" + Msg_UpdateParams_FullMethodName = "/fairyring.pep.Msg/UpdateParams" + Msg_SubmitEncryptedTx_FullMethodName = "/fairyring.pep.Msg/SubmitEncryptedTx" + Msg_SubmitGeneralEncryptedTx_FullMethodName = "/fairyring.pep.Msg/SubmitGeneralEncryptedTx" + Msg_CreateAggregatedKeyShare_FullMethodName = "/fairyring.pep.Msg/CreateAggregatedKeyShare" + Msg_RequestGeneralIdentity_FullMethodName = "/fairyring.pep.Msg/RequestGeneralIdentity" + Msg_RequestGeneralDecryptionKey_FullMethodName = "/fairyring.pep.Msg/RequestGeneralDecryptionKey" + Msg_RequestPrivateIdentity_FullMethodName = "/fairyring.pep.Msg/RequestPrivateIdentity" + Msg_RequestPrivateDecryptionKey_FullMethodName = "/fairyring.pep.Msg/RequestPrivateDecryptionKey" + Msg_RegisterContract_FullMethodName = "/fairyring.pep.Msg/RegisterContract" + Msg_UnregisterContract_FullMethodName = "/fairyring.pep.Msg/UnregisterContract" ) // MsgClient is the client API for Msg service. @@ -47,20 +47,20 @@ type MsgClient interface { // CreateAggregatedKeyShare defines an operation to submit an // aggregated keyshare to a destination chain CreateAggregatedKeyShare(ctx context.Context, in *MsgCreateAggregatedKeyShare, opts ...grpc.CallOption) (*MsgCreateAggregatedKeyShareResponse, error) - // RequestGeneralKeyshare defines an operation to request the + // RequestGeneralIdentity defines an operation to request the // creation of a new identity to which validators will be required // to submit keyshares - RequestGeneralKeyshare(ctx context.Context, in *MsgRequestGeneralKeyshare, opts ...grpc.CallOption) (*MsgRequestGeneralKeyshareResponse, error) - // GetGeneralKeyshare defines an operation to signal validators to start + RequestGeneralIdentity(ctx context.Context, in *MsgRequestGeneralIdentity, opts ...grpc.CallOption) (*MsgRequestGeneralIdentityResponse, error) + // RequestGeneralDecryptionKey defines an operation to signal validators to start // submitting keyshares for a particular identity - GetGeneralKeyshare(ctx context.Context, in *MsgGetGeneralKeyshare, opts ...grpc.CallOption) (*MsgGetGeneralKeyshareResponse, error) + RequestGeneralDecryptionKey(ctx context.Context, in *MsgRequestGeneralDecryptionKey, opts ...grpc.CallOption) (*MsgRequestGeneralDecryptionKeyResponse, error) // RequestPrivateIdentity defines an operation to request the // creation of a new identity to which validators will be required // to submit encrypted keyshares RequestPrivateIdentity(ctx context.Context, in *MsgRequestPrivateIdentity, opts ...grpc.CallOption) (*MsgRequestPrivateIdentityResponse, error) - // GetPrivateKeyshares defines an operation to signal validators to start + // RequestPrivateDecryptionKey defines an operation to signal validators to start // submitting encrypted keyshares for a particular identity - GetPrivateKeyshares(ctx context.Context, in *MsgGetPrivateKeyshares, opts ...grpc.CallOption) (*MsgGetPrivateKeysharesResponse, error) + RequestPrivateDecryptionKey(ctx context.Context, in *MsgRequestPrivateDecryptionKey, opts ...grpc.CallOption) (*MsgRequestPrivateDecryptionKeyResponse, error) // RegisterContract defines an operation to make an instantiated // contract eligible to be automatically executed when a particular // identity has aggregated keyshares available for it @@ -115,18 +115,18 @@ func (c *msgClient) CreateAggregatedKeyShare(ctx context.Context, in *MsgCreateA return out, nil } -func (c *msgClient) RequestGeneralKeyshare(ctx context.Context, in *MsgRequestGeneralKeyshare, opts ...grpc.CallOption) (*MsgRequestGeneralKeyshareResponse, error) { - out := new(MsgRequestGeneralKeyshareResponse) - err := c.cc.Invoke(ctx, Msg_RequestGeneralKeyshare_FullMethodName, in, out, opts...) +func (c *msgClient) RequestGeneralIdentity(ctx context.Context, in *MsgRequestGeneralIdentity, opts ...grpc.CallOption) (*MsgRequestGeneralIdentityResponse, error) { + out := new(MsgRequestGeneralIdentityResponse) + err := c.cc.Invoke(ctx, Msg_RequestGeneralIdentity_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *msgClient) GetGeneralKeyshare(ctx context.Context, in *MsgGetGeneralKeyshare, opts ...grpc.CallOption) (*MsgGetGeneralKeyshareResponse, error) { - out := new(MsgGetGeneralKeyshareResponse) - err := c.cc.Invoke(ctx, Msg_GetGeneralKeyshare_FullMethodName, in, out, opts...) +func (c *msgClient) RequestGeneralDecryptionKey(ctx context.Context, in *MsgRequestGeneralDecryptionKey, opts ...grpc.CallOption) (*MsgRequestGeneralDecryptionKeyResponse, error) { + out := new(MsgRequestGeneralDecryptionKeyResponse) + err := c.cc.Invoke(ctx, Msg_RequestGeneralDecryptionKey_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -142,9 +142,9 @@ func (c *msgClient) RequestPrivateIdentity(ctx context.Context, in *MsgRequestPr return out, nil } -func (c *msgClient) GetPrivateKeyshares(ctx context.Context, in *MsgGetPrivateKeyshares, opts ...grpc.CallOption) (*MsgGetPrivateKeysharesResponse, error) { - out := new(MsgGetPrivateKeysharesResponse) - err := c.cc.Invoke(ctx, Msg_GetPrivateKeyshares_FullMethodName, in, out, opts...) +func (c *msgClient) RequestPrivateDecryptionKey(ctx context.Context, in *MsgRequestPrivateDecryptionKey, opts ...grpc.CallOption) (*MsgRequestPrivateDecryptionKeyResponse, error) { + out := new(MsgRequestPrivateDecryptionKeyResponse) + err := c.cc.Invoke(ctx, Msg_RequestPrivateDecryptionKey_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -185,20 +185,20 @@ type MsgServer interface { // CreateAggregatedKeyShare defines an operation to submit an // aggregated keyshare to a destination chain CreateAggregatedKeyShare(context.Context, *MsgCreateAggregatedKeyShare) (*MsgCreateAggregatedKeyShareResponse, error) - // RequestGeneralKeyshare defines an operation to request the + // RequestGeneralIdentity defines an operation to request the // creation of a new identity to which validators will be required // to submit keyshares - RequestGeneralKeyshare(context.Context, *MsgRequestGeneralKeyshare) (*MsgRequestGeneralKeyshareResponse, error) - // GetGeneralKeyshare defines an operation to signal validators to start + RequestGeneralIdentity(context.Context, *MsgRequestGeneralIdentity) (*MsgRequestGeneralIdentityResponse, error) + // RequestGeneralDecryptionKey defines an operation to signal validators to start // submitting keyshares for a particular identity - GetGeneralKeyshare(context.Context, *MsgGetGeneralKeyshare) (*MsgGetGeneralKeyshareResponse, error) + RequestGeneralDecryptionKey(context.Context, *MsgRequestGeneralDecryptionKey) (*MsgRequestGeneralDecryptionKeyResponse, error) // RequestPrivateIdentity defines an operation to request the // creation of a new identity to which validators will be required // to submit encrypted keyshares RequestPrivateIdentity(context.Context, *MsgRequestPrivateIdentity) (*MsgRequestPrivateIdentityResponse, error) - // GetPrivateKeyshares defines an operation to signal validators to start + // RequestPrivateDecryptionKey defines an operation to signal validators to start // submitting encrypted keyshares for a particular identity - GetPrivateKeyshares(context.Context, *MsgGetPrivateKeyshares) (*MsgGetPrivateKeysharesResponse, error) + RequestPrivateDecryptionKey(context.Context, *MsgRequestPrivateDecryptionKey) (*MsgRequestPrivateDecryptionKeyResponse, error) // RegisterContract defines an operation to make an instantiated // contract eligible to be automatically executed when a particular // identity has aggregated keyshares available for it @@ -226,17 +226,17 @@ func (UnimplementedMsgServer) SubmitGeneralEncryptedTx(context.Context, *MsgSubm func (UnimplementedMsgServer) CreateAggregatedKeyShare(context.Context, *MsgCreateAggregatedKeyShare) (*MsgCreateAggregatedKeyShareResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateAggregatedKeyShare not implemented") } -func (UnimplementedMsgServer) RequestGeneralKeyshare(context.Context, *MsgRequestGeneralKeyshare) (*MsgRequestGeneralKeyshareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RequestGeneralKeyshare not implemented") +func (UnimplementedMsgServer) RequestGeneralIdentity(context.Context, *MsgRequestGeneralIdentity) (*MsgRequestGeneralIdentityResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RequestGeneralIdentity not implemented") } -func (UnimplementedMsgServer) GetGeneralKeyshare(context.Context, *MsgGetGeneralKeyshare) (*MsgGetGeneralKeyshareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGeneralKeyshare not implemented") +func (UnimplementedMsgServer) RequestGeneralDecryptionKey(context.Context, *MsgRequestGeneralDecryptionKey) (*MsgRequestGeneralDecryptionKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RequestGeneralDecryptionKey not implemented") } func (UnimplementedMsgServer) RequestPrivateIdentity(context.Context, *MsgRequestPrivateIdentity) (*MsgRequestPrivateIdentityResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RequestPrivateIdentity not implemented") } -func (UnimplementedMsgServer) GetPrivateKeyshares(context.Context, *MsgGetPrivateKeyshares) (*MsgGetPrivateKeysharesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPrivateKeyshares not implemented") +func (UnimplementedMsgServer) RequestPrivateDecryptionKey(context.Context, *MsgRequestPrivateDecryptionKey) (*MsgRequestPrivateDecryptionKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RequestPrivateDecryptionKey not implemented") } func (UnimplementedMsgServer) RegisterContract(context.Context, *MsgRegisterContract) (*MsgRegisterContractResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RegisterContract not implemented") @@ -329,38 +329,38 @@ func _Msg_CreateAggregatedKeyShare_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } -func _Msg_RequestGeneralKeyshare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgRequestGeneralKeyshare) +func _Msg_RequestGeneralIdentity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRequestGeneralIdentity) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).RequestGeneralKeyshare(ctx, in) + return srv.(MsgServer).RequestGeneralIdentity(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Msg_RequestGeneralKeyshare_FullMethodName, + FullMethod: Msg_RequestGeneralIdentity_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).RequestGeneralKeyshare(ctx, req.(*MsgRequestGeneralKeyshare)) + return srv.(MsgServer).RequestGeneralIdentity(ctx, req.(*MsgRequestGeneralIdentity)) } return interceptor(ctx, in, info, handler) } -func _Msg_GetGeneralKeyshare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgGetGeneralKeyshare) +func _Msg_RequestGeneralDecryptionKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRequestGeneralDecryptionKey) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).GetGeneralKeyshare(ctx, in) + return srv.(MsgServer).RequestGeneralDecryptionKey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Msg_GetGeneralKeyshare_FullMethodName, + FullMethod: Msg_RequestGeneralDecryptionKey_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).GetGeneralKeyshare(ctx, req.(*MsgGetGeneralKeyshare)) + return srv.(MsgServer).RequestGeneralDecryptionKey(ctx, req.(*MsgRequestGeneralDecryptionKey)) } return interceptor(ctx, in, info, handler) } @@ -383,20 +383,20 @@ func _Msg_RequestPrivateIdentity_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } -func _Msg_GetPrivateKeyshares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgGetPrivateKeyshares) +func _Msg_RequestPrivateDecryptionKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRequestPrivateDecryptionKey) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).GetPrivateKeyshares(ctx, in) + return srv.(MsgServer).RequestPrivateDecryptionKey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Msg_GetPrivateKeyshares_FullMethodName, + FullMethod: Msg_RequestPrivateDecryptionKey_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).GetPrivateKeyshares(ctx, req.(*MsgGetPrivateKeyshares)) + return srv.(MsgServer).RequestPrivateDecryptionKey(ctx, req.(*MsgRequestPrivateDecryptionKey)) } return interceptor(ctx, in, info, handler) } @@ -461,20 +461,20 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ Handler: _Msg_CreateAggregatedKeyShare_Handler, }, { - MethodName: "RequestGeneralKeyshare", - Handler: _Msg_RequestGeneralKeyshare_Handler, + MethodName: "RequestGeneralIdentity", + Handler: _Msg_RequestGeneralIdentity_Handler, }, { - MethodName: "GetGeneralKeyshare", - Handler: _Msg_GetGeneralKeyshare_Handler, + MethodName: "RequestGeneralDecryptionKey", + Handler: _Msg_RequestGeneralDecryptionKey_Handler, }, { MethodName: "RequestPrivateIdentity", Handler: _Msg_RequestPrivateIdentity_Handler, }, { - MethodName: "GetPrivateKeyshares", - Handler: _Msg_GetPrivateKeyshares_Handler, + MethodName: "RequestPrivateDecryptionKey", + Handler: _Msg_RequestPrivateDecryptionKey_Handler, }, { MethodName: "RegisterContract", diff --git a/go.mod b/go.mod index ffb1cba7..9eefcaa8 100644 --- a/go.mod +++ b/go.mod @@ -65,6 +65,7 @@ require ( require ( github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect + github.com/regen-network/cosmos-proto v0.3.1 // indirect github.com/stretchr/objx v0.5.2 // indirect ) diff --git a/go.sum b/go.sum index ec1def1d..c91347ba 100644 --- a/go.sum +++ b/go.sum @@ -1020,6 +1020,8 @@ github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoG github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/regen-network/cosmos-proto v0.3.1 h1:rV7iM4SSFAagvy8RiyhiACbWEGotmqzywPxOvwMdxcg= +github.com/regen-network/cosmos-proto v0.3.1/go.mod h1:jO0sVX6a1B36nmE8C9xBFXpNwWejXC7QqCOnH3O0+YM= github.com/regen-network/protobuf v1.3.3-alpha.regen.1 h1:OHEc+q5iIAXpqiqFKeLpu5NwTIkVXUs48vFMwzqpqY4= github.com/regen-network/protobuf v1.3.3-alpha.regen.1/go.mod h1:2DjTFR1HhMQhiWC5sZ4OhQ3+NtdbZ6oBDKQwq5Ou+FI= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= diff --git a/proto/fairyring/common/shared_types.proto b/proto/fairyring/common/shared_types.proto index f19afa49..58283089 100644 --- a/proto/fairyring/common/shared_types.proto +++ b/proto/fairyring/common/shared_types.proto @@ -6,10 +6,10 @@ import "gogoproto/gogo.proto"; option go_package = "github.com/Fairblock/fairyring/x/common/types"; -// RequestAggrKeyshare defines a struct for the data payload -message RequestAggrKeyshare { +// RequestDecryptionKey defines a struct for the data payload +message RequestDecryptionKey { string creator = 1; - // id can either be a rwquest id or a proposal id + // id can either be a request id or a proposal id oneof id { string proposal_id = 2; string request_id = 3; @@ -17,14 +17,14 @@ message RequestAggrKeyshare { google.protobuf.Duration estimated_delay = 4 [(gogoproto.stdduration) = true]; } -// RequestAggrKeyshareResponse defines the response to the RequestAggrKeyshare message -message RequestAggrKeyshareResponse { +// RequestDecryptionKeyResponse defines the response to the RequestDecryptionKey message +message RequestDecryptionKeyResponse { string identity = 1; string pubkey = 2; } -// GetAggrKeyshare defines a struct for the data payload -message GetAggrKeyshare { +// GetDecryptionKey defines a struct for the data payload +message GetDecryptionKey { // id can either be a rwquest id or a proposal id oneof id { string proposal_id = 1; @@ -33,19 +33,19 @@ message GetAggrKeyshare { string identity = 3; } -// GetAggrKeyshareResponse defines the response to the GetAggrKeyshare message -message GetAggrKeyshareResponse {} +// GetDecryptionKeyResponse defines the response to the GetDecryptionKey message +message GetDecryptionKeyResponse {} -// GetPrivateKeyshare defines a struct for the data payload -message GetPrivateKeyshare { +// GetPrivateDecryptionKey defines a struct for the data payload +message GetPrivateDecryptionKey { string request_id = 1; string identity = 2; string requester = 3; string secp_pubkey = 4; } -// GetPrivateKeyshareResponse defines the response to the GetPrivateKeyshare message -message GetPrivateKeyshareResponse { +// GetPrivateDecryptionKeyResponse defines the response to the GetPrivateDecryptionKey message +message GetPrivateDecryptionKeyResponse { string pubkey = 1; } @@ -64,16 +64,16 @@ message QueuedPublicKey { uint64 expiry = 3; } -// RequestEncryptedKeyshare defines the structure to request for +// RequestPrivateDecryptionKey defines the structure to request for // encrypted and unaggregated keyshares -message RequestEncryptedKeyshare { +message RequestPrivateDecryptionKey { string creator = 1; string request_id = 2; } -// EncryptedKeyshare defines the storage structure for +// PrivateDecryptionKey defines the storage structure for // the list of encrypted keyshares (unaggregated) -message EncryptedKeyshare { +message PrivateDecryptionKey { string requester = 1; repeated IndexedEncryptedKeyshare private_keyshares = 2; } diff --git a/proto/fairyring/keyshare/packet.proto b/proto/fairyring/keyshare/packet.proto index fb235e00..c7553538 100644 --- a/proto/fairyring/keyshare/packet.proto +++ b/proto/fairyring/keyshare/packet.proto @@ -7,26 +7,30 @@ import "fairyring/common/shared_types.proto"; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; +// KeysharePacketData defines all the packet types of the keyshare module message KeysharePacketData { + // packet can be one of the following types oneof packet { - NoData noData = 1; - RequestAggrKeysharePacketData requestAggrKeysharePacket = 2; - GetAggrKeysharePacketData getAggrKeysharePacket = 3; - AggrKeyshareDataPacketData aggrKeyshareDataPacket = 4; - EncryptedKeysharesPacketData encryptedKeysharesPacketData = 5; - CurrentKeysPacketData currentKeysPacket = 6; - RequestPrivateKeysharePacketData request_priv_keyshare_packet = 7; - GetPrivateKeysharePacketData getPrivateKeysharePacket = 8; + NoData no_data = 1; + RequestDecryptionKeyPacketData request_decryption_key_packet = 2; + GetDecryptionKeyPacketData get_decryption_key_packet = 3; + DecryptionKeyDataPacketData decryption_key_data_packet = 4; + PrivateDecryptionKeyDataPacketData private_decryption_key_data_packet = 5; + CurrentKeysPacketData current_keys_packet = 6; + RequestPrivateDecryptionKeyPacketData request_private_decryption_key_packet = 7; + GetPrivateDecryptionKeyPacketData get_private_decryption_key_packet = 8; } } +// NoData defines a blank packet message NoData { } -// RequestAggrKeysharePacketData defines a struct for the packet payload -message RequestAggrKeysharePacketData { +// RequestDecryptionKeyPacketData defines a struct for the packet payload +message RequestDecryptionKeyPacketData { string requester = 1; + // id can either be a request id or a proposal id oneof id { string proposal_id = 2; string request_id = 3; @@ -34,63 +38,67 @@ message RequestAggrKeysharePacketData { google.protobuf.Duration estimated_delay = 4 [(gogoproto.stdduration) = true]; } -message RequestPrivateKeysharePacketData { +// RequestPrivateDecryptionKeyPacketData defines a struct for the packet payload +message RequestPrivateDecryptionKeyPacketData { string requester = 1; string request_id = 2; } -message RequestPrivateKeysharePacketAck { +// RequestPrivateDecryptionKeyPacketAck defines a struct for the packet acknowledgment +message RequestPrivateDecryptionKeyPacketAck { string identity = 1; string pubkey = 2; } -// RequestAggrKeysharePacketAck defines a struct for the packet acknowledgment -message RequestAggrKeysharePacketAck { +// RequestDecryptionKeyPacketAck defines a struct for the packet acknowledgment +message RequestDecryptionKeyPacketAck { string identity = 1; string pubkey = 2; } -// GetAggrKeysharePacketData defines a struct for the packet payload -message GetAggrKeysharePacketData { +// GetDecryptionKeyPacketData defines a struct for the packet payload +message GetDecryptionKeyPacketData { string identity = 1; } -// GetAggrKeysharePacketAck defines a struct for the packet acknowledgment -message GetAggrKeysharePacketAck {} +// GetDecryptionKeyPacketAck defines a struct for the packet acknowledgment +message GetDecryptionKeyPacketAck {} -// GetPrivateKeysharePacketData defines a struct for the packet payload -message GetPrivateKeysharePacketData { +// GetPrivateDecryptionKeyPacketData defines a struct for the packet payload +message GetPrivateDecryptionKeyPacketData { string identity = 1; string requester = 2; string secp_pubkey = 3; } // GetPrivateKeysharePacketAck defines a struct for the packet acknowledgment -message GetPrivateKeysharePacketAck {} - -// AggrKeyshareDataPacketData defines a struct for the packet payload -message AggrKeyshareDataPacketData { - string identity = 1; - string pubkey = 2; - string aggr_keyshare = 3; - string aggr_height = 4; - string proposal_id = 5; // used for private governance - string request_id = 6; // might be useful to destination chains to sort out the response - uint64 retries = 7; +message GetPrivateDecryptionKeyPacketAck {} + +// DecryptionKeyDataPacketData defines a struct for the packet payload +message DecryptionKeyDataPacketData { + string identity = 1; + string pubkey = 2; + string decryption_key = 3; + string aggr_height = 4; + string proposal_id = 5; // used for private governance + string request_id = 6; // might be useful to destination chains to sort out the response + uint64 retries = 7; } -// AggrKeyshareDataPacketAck defines a struct for the packet acknowledgment -message AggrKeyshareDataPacketAck {} +// DecryptionKeyPacketAck defines a struct for the packet acknowledgment +message DecryptionKeyPacketAck {} -message EncryptedKeysharesPacketData { +// PrivateDecryptionKeyDataPacketData defines a struct for the packet payload +message PrivateDecryptionKeyDataPacketData { string identity = 1; string pubkey = 2; string request_id = 3; - repeated fairyring.common.EncryptedKeyshare encrypted_keyshares = 4; + repeated fairyring.common.PrivateDecryptionKey private_decryption_key = 4; } -message EncryptedKeysharesPacketAck{} +// PrivateDecryptionKeyPacketAck defines a struct for the packet payload +message PrivateDecryptionKeyPacketAck{} // CurrentKeysPacketData defines a struct for the packet payload message CurrentKeysPacketData { @@ -98,6 +106,6 @@ message CurrentKeysPacketData { // CurrentKeysPacketAck defines a struct for the packet acknowledgment message CurrentKeysPacketAck { - fairyring.common.ActivePublicKey activeKey = 1; - fairyring.common.QueuedPublicKey queuedKey = 2; + fairyring.common.ActivePublicKey active_key = 1; + fairyring.common.QueuedPublicKey queued_key = 2; } \ No newline at end of file diff --git a/proto/fairyring/keyshare/query.proto b/proto/fairyring/keyshare/query.proto index baea5e07..33e3a674 100644 --- a/proto/fairyring/keyshare/query.proto +++ b/proto/fairyring/keyshare/query.proto @@ -54,17 +54,15 @@ service Query { } - // this line is used by starport scaffolding # 2 - - // AggregatedKeyShare a AggregatedKeyShare item by height. - rpc AggregatedKeyShare (QueryAggregatedKeyShareRequest) returns (QueryAggregatedKeyShareResponse) { - option (google.api.http).get = "/fairyring/keyshare/aggregated_key_share/{height}"; + // DecryptionKey queries a DecryptionKey item by height. + rpc DecryptionKey (QueryDecryptionKeyRequest) returns (QueryDecryptionKeyResponse) { + option (google.api.http).get = "/fairyring/keyshare/decryption_key/{height}"; } - // AggregatedKeyShareAll Queries a list of AggregatedKeyShare items. - rpc AggregatedKeyShareAll (QueryAggregatedKeyShareAllRequest) returns (QueryAggregatedKeyShareAllResponse) { - option (google.api.http).get = "/fairyring/keyshare/aggregated_key_share"; + // DecryptionKeyAll Queries a list of DecryptionKey items. + rpc DecryptionKeyAll (QueryDecryptionKeyAllRequest) returns (QueryDecryptionKeyAllResponse) { + option (google.api.http).get = "/fairyring/keyshare/decryption_key"; } @@ -177,24 +175,24 @@ message QueryKeyShareAllResponse { cosmos.base.query.v1beta1.PageResponse pagination = 2; } -// QueryAggregatedKeyShareRequest is request type for the Query/AggregatedKeyShare RPC method. -message QueryAggregatedKeyShareRequest { +// QueryDecryptionKeyRequest is request type for the Query/DecryptionKey RPC method. +message QueryDecryptionKeyRequest { uint64 height = 1; } -// QueryAggregatedKeyShareResponse is response type for the Query/AggregatedKeyShare RPC method. -message QueryAggregatedKeyShareResponse { - AggregatedKeyShare aggregated_key_share = 1 [(gogoproto.nullable) = false]; +// QueryDecryptionKeyResponse is response type for the Query/DecryptionKey RPC method. +message QueryDecryptionKeyResponse { + AggregatedKeyShare decryption_key = 1 [(gogoproto.nullable) = false]; } -// QueryAggregatedKeyShareAllRequest is request type for the Query/AggregatedKeyShareAll RPC method. -message QueryAggregatedKeyShareAllRequest { +// QueryDecryptionKeyAllRequest is request type for the Query/DecryptionKeyAll RPC method. +message QueryDecryptionKeyAllRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } -// QueryAggregatedKeyShareAllResponse is response type for the Query/AggregatedKeyShareAll RPC method. -message QueryAggregatedKeyShareAllResponse { - repeated AggregatedKeyShare aggregated_key_share = 1 [(gogoproto.nullable) = false]; +// QueryAggregatedKeyShareAllResponse is response type for the Query/DecryptionKeyAll RPC method. +message QueryDecryptionKeyAllResponse { + repeated AggregatedKeyShare decryption_keys = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } diff --git a/proto/fairyring/keyshare/requested_keyshare.proto b/proto/fairyring/keyshare/requested_decryption_key.proto similarity index 81% rename from proto/fairyring/keyshare/requested_keyshare.proto rename to proto/fairyring/keyshare/requested_decryption_key.proto index 59485907..292866e7 100644 --- a/proto/fairyring/keyshare/requested_keyshare.proto +++ b/proto/fairyring/keyshare/requested_decryption_key.proto @@ -5,13 +5,13 @@ import "fairyring/common/shared_types.proto"; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; -// KeyShareRequest defines the storage structure for general keyshare requests -message KeyShareRequest { +// DecryptionKeyRequest defines the storage structure for general keyshare requests +message DecryptionKeyRequest { string identity = 1; string pubkey = 2; IBCInfo ibc_info = 3; // Used only when the request is made via IBC CounterPartyIBCInfo counterparty = 4; // Used only when the request is made via IBC - string aggr_keyshare = 5; + string decryption_key = 5; string proposal_id = 6; // This is only used when the request is for private governance string request_id = 7; // might be useful to destination chains to sort out the response bool sent = 8; @@ -35,14 +35,14 @@ message CounterPartyIBCInfo { string port_id = 4; } -// PrivateKeyshareRequest defines the stroage structure for private +// PrivateDecryptionKeyRequest defines the stroage structure for private // encrypted and unaggregated keyshare requests -message PrivateKeyshareRequest { +message PrivateDecryptionKeyRequest { string identity = 1; string pubkey = 2; IBCInfo ibc_info = 3; // Used only when the request is made via IBC CounterPartyIBCInfo counterparty = 4; // Used only when the request is made via IBC - repeated fairyring.common.EncryptedKeyshare encrypted_keyshares = 5; + repeated fairyring.common.PrivateDecryptionKey private_decryption_keys = 5; string request_id = 6; bool sent = 7; } diff --git a/proto/fairyring/keyshare/tx.proto b/proto/fairyring/keyshare/tx.proto index 9f822fd6..591d2beb 100644 --- a/proto/fairyring/keyshare/tx.proto +++ b/proto/fairyring/keyshare/tx.proto @@ -50,9 +50,9 @@ service Msg { // authorization of a previously authorized address rpc DeleteAuthorizedAddress (MsgDeleteAuthorizedAddress) returns (MsgDeleteAuthorizedAddressResponse); - // CreateGeneralKeyShare defines an operation to submit a + // SubmitGeneralKeyShare defines an operation to submit a // general keyshare from a registered validator - rpc CreateGeneralKeyShare (MsgCreateGeneralKeyShare ) returns (MsgCreateGeneralKeyShareResponse ); + rpc SubmitGeneralKeyShare (MsgSubmitGeneralKeyShare ) returns (MsgSubmitGeneralKeyShareResponse ); // SubmitEncryptedKeyshare defines an operation to submit // an encrypted keyshare from a registered validator @@ -182,8 +182,8 @@ message MsgDeleteAuthorizedAddress { // executing a MsgDeleteAuthorizedAddress message. message MsgDeleteAuthorizedAddressResponse {} -// MsgCreateGeneralKeyShare is the Msg/CreateGeneralKeyShare request type. -message MsgCreateGeneralKeyShare { +// MsgSubmitGeneralKeyShare is the Msg/CreateGeneralKeyShare request type. +message MsgSubmitGeneralKeyShare { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string id_type = 2; @@ -194,9 +194,9 @@ message MsgCreateGeneralKeyShare { uint64 received_block_height = 7; } -// MsgCreateGeneralKeyShareResponse defines the response structure for -// executing a MsgCreateGeneralKeyShare message. -message MsgCreateGeneralKeyShareResponse { +// MsgSubmitGeneralKeyShareResponse defines the response structure for +// executing a MsgSubmitGeneralKeyShare message. +message MsgSubmitGeneralKeyShareResponse { string creator = 1; string id_type = 2; string id_value = 3; diff --git a/proto/fairyring/keyshare/validator_set.proto b/proto/fairyring/keyshare/validator_set.proto index 75817782..9fbe7c0e 100644 --- a/proto/fairyring/keyshare/validator_set.proto +++ b/proto/fairyring/keyshare/validator_set.proto @@ -11,4 +11,3 @@ message ValidatorSet { string cons_addr = 3; bool is_active = 4; } - diff --git a/proto/fairyring/pep/aggregated_key_share.proto b/proto/fairyring/pep/decryption_key.proto similarity index 56% rename from proto/fairyring/pep/aggregated_key_share.proto rename to proto/fairyring/pep/decryption_key.proto index f425f9f2..924d02ab 100644 --- a/proto/fairyring/pep/aggregated_key_share.proto +++ b/proto/fairyring/pep/decryption_key.proto @@ -3,9 +3,9 @@ package fairyring.pep; option go_package = "github.com/Fairblock/fairyring/x/pep/types"; -// AggregatedKeyShare defines the structure to store -// the aggregated keyshare of a particular identity -message AggregatedKeyShare { +// DecryptionKey defines the structure to store +// the decryption key of a particular identity +message DecryptionKey { uint64 height = 1; string data = 2; string creator = 3; diff --git a/proto/fairyring/pep/encrypted_tx.proto b/proto/fairyring/pep/encrypted_tx.proto index e1d4376d..603e1c6c 100644 --- a/proto/fairyring/pep/encrypted_tx.proto +++ b/proto/fairyring/pep/encrypted_tx.proto @@ -20,7 +20,7 @@ message EncryptedTx { // EncryptedTxArray defines a list of EncryptedTx message EncryptedTxArray { - repeated EncryptedTx encrypted_tx = 1 [(gogoproto.nullable) = false]; + repeated EncryptedTx encrypted_txs = 1 [(gogoproto.nullable) = false]; } // GeneralEncryptedTx defines the structure to store a @@ -35,17 +35,17 @@ message GeneralEncryptedTx { // GeneralEncryptedTxArray defines a list of GeneralEncryptedTx message GeneralEncryptedTxArray { - repeated GeneralEncryptedTx encrypted_tx = 1 [(gogoproto.nullable) = false]; + repeated GeneralEncryptedTx encrypted_txs = 1 [(gogoproto.nullable) = false]; } -// IdentityExecutionQueue defines the structure to queue up -// identities that have aggregated keyshares available and +// IdentityExecutionEntry defines the structure to queue up +// identities that have decryption keys available and // are ready to execute any associated contracts or encrypted transactions -message IdentityExecutionQueue { +message IdentityExecutionEntry { string creator = 1; string request_id = 2; string identity = 3; string pubkey = 4; GeneralEncryptedTxArray tx_list = 5; - string aggr_keyshare = 6; + string decryption_key = 6; } diff --git a/proto/fairyring/pep/genesis.proto b/proto/fairyring/pep/genesis.proto index afcf00bf..eec17de1 100644 --- a/proto/fairyring/pep/genesis.proto +++ b/proto/fairyring/pep/genesis.proto @@ -7,7 +7,7 @@ import "gogoproto/gogo.proto"; import "fairyring/pep/params.proto"; import "fairyring/pep/encrypted_tx.proto"; import "fairyring/pep/pep_nonce.proto"; -import "fairyring/pep/aggregated_key_share.proto"; +import "fairyring/pep/decryption_key.proto"; import "fairyring/common/shared_types.proto"; import "fairyring/pep/request_id.proto"; @@ -21,7 +21,7 @@ message GenesisState { string port_id = 2; repeated EncryptedTxArray encryptedTxArray = 3 [(gogoproto.nullable) = false] ; repeated PepNonce pepNonceList = 4 [(gogoproto.nullable) = false] ; - repeated AggregatedKeyShare aggregatedKeyShareList = 6 [(gogoproto.nullable) = false]; + repeated DecryptionKey decryption_key_list = 6 [(gogoproto.nullable) = false]; fairyring.common.ActivePublicKey activePubKey = 7 [(gogoproto.nullable) = false]; fairyring.common.QueuedPublicKey queuedPubKey = 8 [(gogoproto.nullable) = false]; uint64 request_count = 9; diff --git a/proto/fairyring/pep/params.proto b/proto/fairyring/pep/params.proto index 47378201..a42cb04b 100644 --- a/proto/fairyring/pep/params.proto +++ b/proto/fairyring/pep/params.proto @@ -16,7 +16,7 @@ message Params { repeated TrustedCounterParty trusted_counter_parties = 3; repeated string trusted_addresses = 4 [(gogoproto.moretags) = "yaml:\"trusted_addresses\""]; cosmos.base.v1beta1.Coin min_gas_price = 5 [(gogoproto.moretags) = "yaml:\"min_gas_price\""]; - cosmos.base.v1beta1.Coin private_keyshare_price = 6 [(gogoproto.moretags) = "yaml:\"private_keyshare_price\""]; + cosmos.base.v1beta1.Coin private_decryption_key_price = 6 [(gogoproto.moretags) = "yaml:\"private_decryption_key_price\""]; } // TrustedCounterParty defines the structure to store the ibc info diff --git a/proto/fairyring/pep/query.proto b/proto/fairyring/pep/query.proto index e5ddb4e3..e340a311 100644 --- a/proto/fairyring/pep/query.proto +++ b/proto/fairyring/pep/query.proto @@ -64,21 +64,21 @@ service Query { } - // Queries a Keyshare request by identity - rpc KeyshareReq (QueryKeyshareReqRequest) returns (QueryKeyshareReqResponse) { - option (google.api.http).get = "/fairyring/pep/keyshare/{req_id}"; + // Queries a General Identity request by request id + rpc GeneralIdentity (QueryGeneralIdentityRequest) returns (QueryGeneralIdentityResponse) { + option (google.api.http).get = "/fairyring/pep/general_identity/{req_id}"; } - // queries a list of keyshare requests - rpc KeyshareReqAll (QueryKeyshareReqAllRequest) returns (QueryKeyshareReqAllResponse) { - option (google.api.http).get = "/fairyring/pep/keyshare"; + // Queries a list of General Identity requests + rpc GeneralIdentityAll (QueryGeneralIdentityAllRequest) returns (QueryGeneralIdentityAllResponse) { + option (google.api.http).get = "/fairyring/pep/general_identity"; } - // Queries a PrivateKeyshareReq item by req id. - rpc PrivateKeyshareReq (QueryPrivateKeyshareReqRequest) returns (QueryPrivateKeyshareReqResponse) { - option (google.api.http).get = "/Fairblock/fairyring/pep/show_private_keyshare_req/{req_id}"; + // Queries a Private Identity request item by req id. + rpc PrivateIdentity (QueryPrivateIdentityRequest) returns (QueryPrivateIdentityResponse) { + option (google.api.http).get = "/Fairblock/fairyring/pep/private_identity/{req_id}"; } @@ -99,25 +99,25 @@ message QueryParamsResponse { Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } -// QueryKeyshareReqRequest is request type for the Query/KeyshareReq RPC method. -message QueryKeyshareReqRequest { +// QueryGeneralIdentityRequest is request type for the Query/GeneralIdentity RPC method. +message QueryGeneralIdentityRequest { string req_id = 1; } -// QueryKeyshareReqResponse is response type for the Query/KeyshareReq RPC method. -message QueryKeyshareReqResponse { - IdentityExecutionQueue keyshare = 1; +// QueryGeneralIdentityResponse is response type for the Query/GeneralIdentity RPC method. +message QueryGeneralIdentityResponse { + IdentityExecutionEntry request_details = 1; } -// QueryKeyshareReqAllRequest is request type for the Query/KeyshareReqAll RPC method. -message QueryKeyshareReqAllRequest { +// QueryGeneralIdentityAllRequest is request type for the Query/GeneralIdentityAll RPC method. +message QueryGeneralIdentityAllRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } -// QueryKeyshareReqAllResponse is response type for the Query/KeyshareReqAll RPC method. -message QueryKeyshareReqAllResponse { - repeated IdentityExecutionQueue keyshares = 1; - cosmos.base.query.v1beta1.PageResponse pagination = 2; +// QueryGeneralIdentityAllResponse is response type for the Query/GeneralIdentityAll RPC method. +message QueryGeneralIdentityAllResponse { + repeated IdentityExecutionEntry request_details_list = 1; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } // QueryEncryptedTxRequest is request type for the Query/EncryptedTx RPC method. @@ -190,17 +190,17 @@ message QueryPubKeyResponse { fairyring.common.QueuedPublicKey queued_pub_key = 2 [(gogoproto.nullable) = false]; } -// QueryPrivateKeyshareReqRequest is request type for the Query/PrivateKeyshareReq RPC method. -message QueryPrivateKeyshareReqRequest { +// QueryPrivateIdentityRequest is request type for the Query/PrivateIdentity RPC method. +message QueryPrivateIdentityRequest { string req_id = 1; } -// QueryPrivateKeyshareReqResponse is response type for the Query/PrivateKeyshareReq RPC method. -message QueryPrivateKeyshareReqResponse { +// QueryPrivateIdentityResponse is response type for the Query/PrivateIdentity RPC method. +message QueryPrivateIdentityResponse { string creator = 1; string req_id = 2; string pubkey = 3; - repeated fairyring.common.EncryptedKeyshare encrypted_keyshares = 5; + repeated fairyring.common.PrivateDecryptionKey private_decryption_keys = 4; } // QueryDecryptDataRequest is request type for the Query/DecryptData RPC method. diff --git a/proto/fairyring/pep/request_id.proto b/proto/fairyring/pep/request_id.proto index 4a72894c..67a57d1e 100644 --- a/proto/fairyring/pep/request_id.proto +++ b/proto/fairyring/pep/request_id.proto @@ -19,7 +19,7 @@ message PrivateRequest { string creator = 1; string req_id = 2; string pubkey = 3; - repeated fairyring.common.EncryptedKeyshare encrypted_keyshares = 5; + repeated fairyring.common.PrivateDecryptionKey private_decryption_keys = 4; } // ContractDetails defines the structure to store the details of a @@ -39,7 +39,7 @@ message RegisteredContract { // ExecuteContractMsg defines the structure to callback registered contracts message ExecuteContractMsg { - string identity = 1; - string pubkey = 2; - string aggr_keyshare = 3; + string identity = 1; + string pubkey = 2; + string decryption_key = 3; } diff --git a/proto/fairyring/pep/tx.proto b/proto/fairyring/pep/tx.proto index 0ac4f321..c1797495 100644 --- a/proto/fairyring/pep/tx.proto +++ b/proto/fairyring/pep/tx.proto @@ -33,23 +33,23 @@ service Msg { // aggregated keyshare to a destination chain rpc CreateAggregatedKeyShare (MsgCreateAggregatedKeyShare) returns (MsgCreateAggregatedKeyShareResponse); - // RequestGeneralKeyshare defines an operation to request the + // RequestGeneralIdentity defines an operation to request the // creation of a new identity to which validators will be required // to submit keyshares - rpc RequestGeneralKeyshare (MsgRequestGeneralKeyshare ) returns (MsgRequestGeneralKeyshareResponse ); + rpc RequestGeneralIdentity (MsgRequestGeneralIdentity ) returns (MsgRequestGeneralIdentityResponse ); - // GetGeneralKeyshare defines an operation to signal validators to start + // RequestGeneralDecryptionKey defines an operation to signal validators to start // submitting keyshares for a particular identity - rpc GetGeneralKeyshare (MsgGetGeneralKeyshare ) returns (MsgGetGeneralKeyshareResponse ); + rpc RequestGeneralDecryptionKey (MsgRequestGeneralDecryptionKey ) returns (MsgRequestGeneralDecryptionKeyResponse ); // RequestPrivateIdentity defines an operation to request the // creation of a new identity to which validators will be required // to submit encrypted keyshares rpc RequestPrivateIdentity (MsgRequestPrivateIdentity ) returns (MsgRequestPrivateIdentityResponse ); - // GetPrivateKeyshares defines an operation to signal validators to start + // RequestPrivateDecryptionKey defines an operation to signal validators to start // submitting encrypted keyshares for a particular identity - rpc GetPrivateKeyshares (MsgGetPrivateKeyshares ) returns (MsgGetPrivateKeysharesResponse ); + rpc RequestPrivateDecryptionKey (MsgRequestPrivateDecryptionKey ) returns (MsgRequestPrivateDecryptionKeyResponse ); // RegisterContract defines an operation to make an instantiated // contract eligible to be automatically executed when a particular @@ -115,30 +115,30 @@ message MsgCreateAggregatedKeyShare { // MsgCreateAggregatedKeyShare message. message MsgCreateAggregatedKeyShareResponse {} -// MsgRequestGeneralKeyshare is the Msg/RequestGeneralKeyshare request type. -message MsgRequestGeneralKeyshare { +// MsgRequestGeneralIdentity is the Msg/RequestGeneralIdentity request type. +message MsgRequestGeneralIdentity { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; google.protobuf.Duration estimated_delay = 2 [(gogoproto.stdduration) = true]; string req_id = 3; } -// MsgRequestGeneralKeyshareResponse defines the response structure for executing a -// MsgRequestGeneralKeyshare message. -message MsgRequestGeneralKeyshareResponse { +// MsgRequestGeneralIdentityResponse defines the response structure for executing a +// MsgRequestGeneralIdentity message. +message MsgRequestGeneralIdentityResponse { string req_id = 1; } -// MsgGetGeneralKeyshare is the Msg/GetGeneralKeyshare request type. -message MsgGetGeneralKeyshare { +// MsgRequestGeneralDecryptionKey is the Msg/RequestGeneralDecryptionKey request type. +message MsgRequestGeneralDecryptionKey { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string req_id = 2; } -// MsgGetGeneralKeyshareResponse defines the response structure for executing a -// MsgGetGeneralKeyshare message. -message MsgGetGeneralKeyshareResponse {} +// MsgRequestGeneralDecryptionKeyResponse defines the response structure for executing a +// MsgRequestGeneralDecryptionKey message. +message MsgRequestGeneralDecryptionKeyResponse {} // MsgRequestPrivateIdentity is the Msg/RequestPrivateIdentity request type. message MsgRequestPrivateIdentity { @@ -153,17 +153,17 @@ message MsgRequestPrivateIdentityResponse { string req_id = 1; } -// MsgGetPrivateKeyshares is the Msg/GetPrivateKeyshares request type. -message MsgGetPrivateKeyshares { +// MsgRequestPrivateDecryptionKey is the Msg/RequestPrivateDecryptionKey request type. +message MsgRequestPrivateDecryptionKey { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string req_id = 2; string secp_pubkey = 3; } -// MsgGetPrivateKeysharesResponse defines the response structure for executing a -// MsgGetPrivateKeyshares message. -message MsgGetPrivateKeysharesResponse {} +// MsgRequestPrivateDecryptionKeyResponse defines the response structure for executing a +// MsgRequestPrivateDecryptionKey message. +message MsgRequestPrivateDecryptionKeyResponse {} // MsgRegisterContract is the Msg/RegisterContract request type. message MsgRegisterContract { diff --git a/x/common/types/shared_types.pb.go b/x/common/types/shared_types.pb.go index 81f7cacd..164e4e8a 100644 --- a/x/common/types/shared_types.pb.go +++ b/x/common/types/shared_types.pb.go @@ -27,31 +27,31 @@ var _ = time.Kitchen // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// RequestAggrKeyshare defines a struct for the data payload -type RequestAggrKeyshare struct { +// RequestDecryptionKey defines a struct for the data payload +type RequestDecryptionKey struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - // id can either be a rwquest id or a proposal id + // id can either be a request id or a proposal id // // Types that are valid to be assigned to Id: // - // *RequestAggrKeyshare_ProposalId - // *RequestAggrKeyshare_RequestId - Id isRequestAggrKeyshare_Id `protobuf_oneof:"id"` - EstimatedDelay *time.Duration `protobuf:"bytes,4,opt,name=estimated_delay,json=estimatedDelay,proto3,stdduration" json:"estimated_delay,omitempty"` + // *RequestDecryptionKey_ProposalId + // *RequestDecryptionKey_RequestId + Id isRequestDecryptionKey_Id `protobuf_oneof:"id"` + EstimatedDelay *time.Duration `protobuf:"bytes,4,opt,name=estimated_delay,json=estimatedDelay,proto3,stdduration" json:"estimated_delay,omitempty"` } -func (m *RequestAggrKeyshare) Reset() { *m = RequestAggrKeyshare{} } -func (m *RequestAggrKeyshare) String() string { return proto.CompactTextString(m) } -func (*RequestAggrKeyshare) ProtoMessage() {} -func (*RequestAggrKeyshare) Descriptor() ([]byte, []int) { +func (m *RequestDecryptionKey) Reset() { *m = RequestDecryptionKey{} } +func (m *RequestDecryptionKey) String() string { return proto.CompactTextString(m) } +func (*RequestDecryptionKey) ProtoMessage() {} +func (*RequestDecryptionKey) Descriptor() ([]byte, []int) { return fileDescriptor_b708507d1b3951ff, []int{0} } -func (m *RequestAggrKeyshare) XXX_Unmarshal(b []byte) error { +func (m *RequestDecryptionKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RequestAggrKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RequestDecryptionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RequestAggrKeyshare.Marshal(b, m, deterministic) + return xxx_messageInfo_RequestDecryptionKey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -61,63 +61,63 @@ func (m *RequestAggrKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *RequestAggrKeyshare) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestAggrKeyshare.Merge(m, src) +func (m *RequestDecryptionKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestDecryptionKey.Merge(m, src) } -func (m *RequestAggrKeyshare) XXX_Size() int { +func (m *RequestDecryptionKey) XXX_Size() int { return m.Size() } -func (m *RequestAggrKeyshare) XXX_DiscardUnknown() { - xxx_messageInfo_RequestAggrKeyshare.DiscardUnknown(m) +func (m *RequestDecryptionKey) XXX_DiscardUnknown() { + xxx_messageInfo_RequestDecryptionKey.DiscardUnknown(m) } -var xxx_messageInfo_RequestAggrKeyshare proto.InternalMessageInfo +var xxx_messageInfo_RequestDecryptionKey proto.InternalMessageInfo -type isRequestAggrKeyshare_Id interface { - isRequestAggrKeyshare_Id() +type isRequestDecryptionKey_Id interface { + isRequestDecryptionKey_Id() MarshalTo([]byte) (int, error) Size() int } -type RequestAggrKeyshare_ProposalId struct { +type RequestDecryptionKey_ProposalId struct { ProposalId string `protobuf:"bytes,2,opt,name=proposal_id,json=proposalId,proto3,oneof" json:"proposal_id,omitempty"` } -type RequestAggrKeyshare_RequestId struct { +type RequestDecryptionKey_RequestId struct { RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3,oneof" json:"request_id,omitempty"` } -func (*RequestAggrKeyshare_ProposalId) isRequestAggrKeyshare_Id() {} -func (*RequestAggrKeyshare_RequestId) isRequestAggrKeyshare_Id() {} +func (*RequestDecryptionKey_ProposalId) isRequestDecryptionKey_Id() {} +func (*RequestDecryptionKey_RequestId) isRequestDecryptionKey_Id() {} -func (m *RequestAggrKeyshare) GetId() isRequestAggrKeyshare_Id { +func (m *RequestDecryptionKey) GetId() isRequestDecryptionKey_Id { if m != nil { return m.Id } return nil } -func (m *RequestAggrKeyshare) GetCreator() string { +func (m *RequestDecryptionKey) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *RequestAggrKeyshare) GetProposalId() string { - if x, ok := m.GetId().(*RequestAggrKeyshare_ProposalId); ok { +func (m *RequestDecryptionKey) GetProposalId() string { + if x, ok := m.GetId().(*RequestDecryptionKey_ProposalId); ok { return x.ProposalId } return "" } -func (m *RequestAggrKeyshare) GetRequestId() string { - if x, ok := m.GetId().(*RequestAggrKeyshare_RequestId); ok { +func (m *RequestDecryptionKey) GetRequestId() string { + if x, ok := m.GetId().(*RequestDecryptionKey_RequestId); ok { return x.RequestId } return "" } -func (m *RequestAggrKeyshare) GetEstimatedDelay() *time.Duration { +func (m *RequestDecryptionKey) GetEstimatedDelay() *time.Duration { if m != nil { return m.EstimatedDelay } @@ -125,31 +125,31 @@ func (m *RequestAggrKeyshare) GetEstimatedDelay() *time.Duration { } // XXX_OneofWrappers is for the internal use of the proto package. -func (*RequestAggrKeyshare) XXX_OneofWrappers() []interface{} { +func (*RequestDecryptionKey) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*RequestAggrKeyshare_ProposalId)(nil), - (*RequestAggrKeyshare_RequestId)(nil), + (*RequestDecryptionKey_ProposalId)(nil), + (*RequestDecryptionKey_RequestId)(nil), } } -// RequestAggrKeyshareResponse defines the response to the RequestAggrKeyshare message -type RequestAggrKeyshareResponse struct { +// RequestDecryptionKeyResponse defines the response to the RequestDecryptionKey message +type RequestDecryptionKeyResponse struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` } -func (m *RequestAggrKeyshareResponse) Reset() { *m = RequestAggrKeyshareResponse{} } -func (m *RequestAggrKeyshareResponse) String() string { return proto.CompactTextString(m) } -func (*RequestAggrKeyshareResponse) ProtoMessage() {} -func (*RequestAggrKeyshareResponse) Descriptor() ([]byte, []int) { +func (m *RequestDecryptionKeyResponse) Reset() { *m = RequestDecryptionKeyResponse{} } +func (m *RequestDecryptionKeyResponse) String() string { return proto.CompactTextString(m) } +func (*RequestDecryptionKeyResponse) ProtoMessage() {} +func (*RequestDecryptionKeyResponse) Descriptor() ([]byte, []int) { return fileDescriptor_b708507d1b3951ff, []int{1} } -func (m *RequestAggrKeyshareResponse) XXX_Unmarshal(b []byte) error { +func (m *RequestDecryptionKeyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RequestAggrKeyshareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RequestDecryptionKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RequestAggrKeyshareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_RequestDecryptionKeyResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -159,56 +159,56 @@ func (m *RequestAggrKeyshareResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *RequestAggrKeyshareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestAggrKeyshareResponse.Merge(m, src) +func (m *RequestDecryptionKeyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestDecryptionKeyResponse.Merge(m, src) } -func (m *RequestAggrKeyshareResponse) XXX_Size() int { +func (m *RequestDecryptionKeyResponse) XXX_Size() int { return m.Size() } -func (m *RequestAggrKeyshareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RequestAggrKeyshareResponse.DiscardUnknown(m) +func (m *RequestDecryptionKeyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RequestDecryptionKeyResponse.DiscardUnknown(m) } -var xxx_messageInfo_RequestAggrKeyshareResponse proto.InternalMessageInfo +var xxx_messageInfo_RequestDecryptionKeyResponse proto.InternalMessageInfo -func (m *RequestAggrKeyshareResponse) GetIdentity() string { +func (m *RequestDecryptionKeyResponse) GetIdentity() string { if m != nil { return m.Identity } return "" } -func (m *RequestAggrKeyshareResponse) GetPubkey() string { +func (m *RequestDecryptionKeyResponse) GetPubkey() string { if m != nil { return m.Pubkey } return "" } -// GetAggrKeyshare defines a struct for the data payload -type GetAggrKeyshare struct { +// GetDecryptionKey defines a struct for the data payload +type GetDecryptionKey struct { // id can either be a rwquest id or a proposal id // // Types that are valid to be assigned to Id: // - // *GetAggrKeyshare_ProposalId - // *GetAggrKeyshare_RequestId - Id isGetAggrKeyshare_Id `protobuf_oneof:"id"` - Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` + // *GetDecryptionKey_ProposalId + // *GetDecryptionKey_RequestId + Id isGetDecryptionKey_Id `protobuf_oneof:"id"` + Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` } -func (m *GetAggrKeyshare) Reset() { *m = GetAggrKeyshare{} } -func (m *GetAggrKeyshare) String() string { return proto.CompactTextString(m) } -func (*GetAggrKeyshare) ProtoMessage() {} -func (*GetAggrKeyshare) Descriptor() ([]byte, []int) { +func (m *GetDecryptionKey) Reset() { *m = GetDecryptionKey{} } +func (m *GetDecryptionKey) String() string { return proto.CompactTextString(m) } +func (*GetDecryptionKey) ProtoMessage() {} +func (*GetDecryptionKey) Descriptor() ([]byte, []int) { return fileDescriptor_b708507d1b3951ff, []int{2} } -func (m *GetAggrKeyshare) XXX_Unmarshal(b []byte) error { +func (m *GetDecryptionKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *GetAggrKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *GetDecryptionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_GetAggrKeyshare.Marshal(b, m, deterministic) + return xxx_messageInfo_GetDecryptionKey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -218,56 +218,56 @@ func (m *GetAggrKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } -func (m *GetAggrKeyshare) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAggrKeyshare.Merge(m, src) +func (m *GetDecryptionKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDecryptionKey.Merge(m, src) } -func (m *GetAggrKeyshare) XXX_Size() int { +func (m *GetDecryptionKey) XXX_Size() int { return m.Size() } -func (m *GetAggrKeyshare) XXX_DiscardUnknown() { - xxx_messageInfo_GetAggrKeyshare.DiscardUnknown(m) +func (m *GetDecryptionKey) XXX_DiscardUnknown() { + xxx_messageInfo_GetDecryptionKey.DiscardUnknown(m) } -var xxx_messageInfo_GetAggrKeyshare proto.InternalMessageInfo +var xxx_messageInfo_GetDecryptionKey proto.InternalMessageInfo -type isGetAggrKeyshare_Id interface { - isGetAggrKeyshare_Id() +type isGetDecryptionKey_Id interface { + isGetDecryptionKey_Id() MarshalTo([]byte) (int, error) Size() int } -type GetAggrKeyshare_ProposalId struct { +type GetDecryptionKey_ProposalId struct { ProposalId string `protobuf:"bytes,1,opt,name=proposal_id,json=proposalId,proto3,oneof" json:"proposal_id,omitempty"` } -type GetAggrKeyshare_RequestId struct { +type GetDecryptionKey_RequestId struct { RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3,oneof" json:"request_id,omitempty"` } -func (*GetAggrKeyshare_ProposalId) isGetAggrKeyshare_Id() {} -func (*GetAggrKeyshare_RequestId) isGetAggrKeyshare_Id() {} +func (*GetDecryptionKey_ProposalId) isGetDecryptionKey_Id() {} +func (*GetDecryptionKey_RequestId) isGetDecryptionKey_Id() {} -func (m *GetAggrKeyshare) GetId() isGetAggrKeyshare_Id { +func (m *GetDecryptionKey) GetId() isGetDecryptionKey_Id { if m != nil { return m.Id } return nil } -func (m *GetAggrKeyshare) GetProposalId() string { - if x, ok := m.GetId().(*GetAggrKeyshare_ProposalId); ok { +func (m *GetDecryptionKey) GetProposalId() string { + if x, ok := m.GetId().(*GetDecryptionKey_ProposalId); ok { return x.ProposalId } return "" } -func (m *GetAggrKeyshare) GetRequestId() string { - if x, ok := m.GetId().(*GetAggrKeyshare_RequestId); ok { +func (m *GetDecryptionKey) GetRequestId() string { + if x, ok := m.GetId().(*GetDecryptionKey_RequestId); ok { return x.RequestId } return "" } -func (m *GetAggrKeyshare) GetIdentity() string { +func (m *GetDecryptionKey) GetIdentity() string { if m != nil { return m.Identity } @@ -275,29 +275,29 @@ func (m *GetAggrKeyshare) GetIdentity() string { } // XXX_OneofWrappers is for the internal use of the proto package. -func (*GetAggrKeyshare) XXX_OneofWrappers() []interface{} { +func (*GetDecryptionKey) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*GetAggrKeyshare_ProposalId)(nil), - (*GetAggrKeyshare_RequestId)(nil), + (*GetDecryptionKey_ProposalId)(nil), + (*GetDecryptionKey_RequestId)(nil), } } -// GetAggrKeyshareResponse defines the response to the GetAggrKeyshare message -type GetAggrKeyshareResponse struct { +// GetDecryptionKeyResponse defines the response to the GetDecryptionKey message +type GetDecryptionKeyResponse struct { } -func (m *GetAggrKeyshareResponse) Reset() { *m = GetAggrKeyshareResponse{} } -func (m *GetAggrKeyshareResponse) String() string { return proto.CompactTextString(m) } -func (*GetAggrKeyshareResponse) ProtoMessage() {} -func (*GetAggrKeyshareResponse) Descriptor() ([]byte, []int) { +func (m *GetDecryptionKeyResponse) Reset() { *m = GetDecryptionKeyResponse{} } +func (m *GetDecryptionKeyResponse) String() string { return proto.CompactTextString(m) } +func (*GetDecryptionKeyResponse) ProtoMessage() {} +func (*GetDecryptionKeyResponse) Descriptor() ([]byte, []int) { return fileDescriptor_b708507d1b3951ff, []int{3} } -func (m *GetAggrKeyshareResponse) XXX_Unmarshal(b []byte) error { +func (m *GetDecryptionKeyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *GetAggrKeyshareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *GetDecryptionKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_GetAggrKeyshareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_GetDecryptionKeyResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -307,38 +307,38 @@ func (m *GetAggrKeyshareResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *GetAggrKeyshareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAggrKeyshareResponse.Merge(m, src) +func (m *GetDecryptionKeyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDecryptionKeyResponse.Merge(m, src) } -func (m *GetAggrKeyshareResponse) XXX_Size() int { +func (m *GetDecryptionKeyResponse) XXX_Size() int { return m.Size() } -func (m *GetAggrKeyshareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetAggrKeyshareResponse.DiscardUnknown(m) +func (m *GetDecryptionKeyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetDecryptionKeyResponse.DiscardUnknown(m) } -var xxx_messageInfo_GetAggrKeyshareResponse proto.InternalMessageInfo +var xxx_messageInfo_GetDecryptionKeyResponse proto.InternalMessageInfo -// GetPrivateKeyshare defines a struct for the data payload -type GetPrivateKeyshare struct { +// GetPrivateDecryptionKey defines a struct for the data payload +type GetPrivateDecryptionKey struct { RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` Requester string `protobuf:"bytes,3,opt,name=requester,proto3" json:"requester,omitempty"` SecpPubkey string `protobuf:"bytes,4,opt,name=secp_pubkey,json=secpPubkey,proto3" json:"secp_pubkey,omitempty"` } -func (m *GetPrivateKeyshare) Reset() { *m = GetPrivateKeyshare{} } -func (m *GetPrivateKeyshare) String() string { return proto.CompactTextString(m) } -func (*GetPrivateKeyshare) ProtoMessage() {} -func (*GetPrivateKeyshare) Descriptor() ([]byte, []int) { +func (m *GetPrivateDecryptionKey) Reset() { *m = GetPrivateDecryptionKey{} } +func (m *GetPrivateDecryptionKey) String() string { return proto.CompactTextString(m) } +func (*GetPrivateDecryptionKey) ProtoMessage() {} +func (*GetPrivateDecryptionKey) Descriptor() ([]byte, []int) { return fileDescriptor_b708507d1b3951ff, []int{4} } -func (m *GetPrivateKeyshare) XXX_Unmarshal(b []byte) error { +func (m *GetPrivateDecryptionKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *GetPrivateKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *GetPrivateDecryptionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_GetPrivateKeyshare.Marshal(b, m, deterministic) + return xxx_messageInfo_GetPrivateDecryptionKey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -348,63 +348,63 @@ func (m *GetPrivateKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *GetPrivateKeyshare) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetPrivateKeyshare.Merge(m, src) +func (m *GetPrivateDecryptionKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetPrivateDecryptionKey.Merge(m, src) } -func (m *GetPrivateKeyshare) XXX_Size() int { +func (m *GetPrivateDecryptionKey) XXX_Size() int { return m.Size() } -func (m *GetPrivateKeyshare) XXX_DiscardUnknown() { - xxx_messageInfo_GetPrivateKeyshare.DiscardUnknown(m) +func (m *GetPrivateDecryptionKey) XXX_DiscardUnknown() { + xxx_messageInfo_GetPrivateDecryptionKey.DiscardUnknown(m) } -var xxx_messageInfo_GetPrivateKeyshare proto.InternalMessageInfo +var xxx_messageInfo_GetPrivateDecryptionKey proto.InternalMessageInfo -func (m *GetPrivateKeyshare) GetRequestId() string { +func (m *GetPrivateDecryptionKey) GetRequestId() string { if m != nil { return m.RequestId } return "" } -func (m *GetPrivateKeyshare) GetIdentity() string { +func (m *GetPrivateDecryptionKey) GetIdentity() string { if m != nil { return m.Identity } return "" } -func (m *GetPrivateKeyshare) GetRequester() string { +func (m *GetPrivateDecryptionKey) GetRequester() string { if m != nil { return m.Requester } return "" } -func (m *GetPrivateKeyshare) GetSecpPubkey() string { +func (m *GetPrivateDecryptionKey) GetSecpPubkey() string { if m != nil { return m.SecpPubkey } return "" } -// GetPrivateKeyshareResponse defines the response to the GetPrivateKeyshare message -type GetPrivateKeyshareResponse struct { +// GetPrivateDecryptionKeyResponse defines the response to the GetPrivateDecryptionKey message +type GetPrivateDecryptionKeyResponse struct { Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"` } -func (m *GetPrivateKeyshareResponse) Reset() { *m = GetPrivateKeyshareResponse{} } -func (m *GetPrivateKeyshareResponse) String() string { return proto.CompactTextString(m) } -func (*GetPrivateKeyshareResponse) ProtoMessage() {} -func (*GetPrivateKeyshareResponse) Descriptor() ([]byte, []int) { +func (m *GetPrivateDecryptionKeyResponse) Reset() { *m = GetPrivateDecryptionKeyResponse{} } +func (m *GetPrivateDecryptionKeyResponse) String() string { return proto.CompactTextString(m) } +func (*GetPrivateDecryptionKeyResponse) ProtoMessage() {} +func (*GetPrivateDecryptionKeyResponse) Descriptor() ([]byte, []int) { return fileDescriptor_b708507d1b3951ff, []int{5} } -func (m *GetPrivateKeyshareResponse) XXX_Unmarshal(b []byte) error { +func (m *GetPrivateDecryptionKeyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *GetPrivateKeyshareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *GetPrivateDecryptionKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_GetPrivateKeyshareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_GetPrivateDecryptionKeyResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -414,19 +414,19 @@ func (m *GetPrivateKeyshareResponse) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *GetPrivateKeyshareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetPrivateKeyshareResponse.Merge(m, src) +func (m *GetPrivateDecryptionKeyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetPrivateDecryptionKeyResponse.Merge(m, src) } -func (m *GetPrivateKeyshareResponse) XXX_Size() int { +func (m *GetPrivateDecryptionKeyResponse) XXX_Size() int { return m.Size() } -func (m *GetPrivateKeyshareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetPrivateKeyshareResponse.DiscardUnknown(m) +func (m *GetPrivateDecryptionKeyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetPrivateDecryptionKeyResponse.DiscardUnknown(m) } -var xxx_messageInfo_GetPrivateKeyshareResponse proto.InternalMessageInfo +var xxx_messageInfo_GetPrivateDecryptionKeyResponse proto.InternalMessageInfo -func (m *GetPrivateKeyshareResponse) GetPubkey() string { +func (m *GetPrivateDecryptionKeyResponse) GetPubkey() string { if m != nil { return m.Pubkey } @@ -556,25 +556,25 @@ func (m *QueuedPublicKey) GetExpiry() uint64 { return 0 } -// RequestEncryptedKeyshare defines the structure to request for +// RequestPrivateDecryptionKey defines the structure to request for // encrypted and unaggregated keyshares -type RequestEncryptedKeyshare struct { +type RequestPrivateDecryptionKey struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (m *RequestEncryptedKeyshare) Reset() { *m = RequestEncryptedKeyshare{} } -func (m *RequestEncryptedKeyshare) String() string { return proto.CompactTextString(m) } -func (*RequestEncryptedKeyshare) ProtoMessage() {} -func (*RequestEncryptedKeyshare) Descriptor() ([]byte, []int) { +func (m *RequestPrivateDecryptionKey) Reset() { *m = RequestPrivateDecryptionKey{} } +func (m *RequestPrivateDecryptionKey) String() string { return proto.CompactTextString(m) } +func (*RequestPrivateDecryptionKey) ProtoMessage() {} +func (*RequestPrivateDecryptionKey) Descriptor() ([]byte, []int) { return fileDescriptor_b708507d1b3951ff, []int{8} } -func (m *RequestEncryptedKeyshare) XXX_Unmarshal(b []byte) error { +func (m *RequestPrivateDecryptionKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RequestEncryptedKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RequestPrivateDecryptionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RequestEncryptedKeyshare.Marshal(b, m, deterministic) + return xxx_messageInfo_RequestPrivateDecryptionKey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -584,51 +584,51 @@ func (m *RequestEncryptedKeyshare) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *RequestEncryptedKeyshare) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestEncryptedKeyshare.Merge(m, src) +func (m *RequestPrivateDecryptionKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestPrivateDecryptionKey.Merge(m, src) } -func (m *RequestEncryptedKeyshare) XXX_Size() int { +func (m *RequestPrivateDecryptionKey) XXX_Size() int { return m.Size() } -func (m *RequestEncryptedKeyshare) XXX_DiscardUnknown() { - xxx_messageInfo_RequestEncryptedKeyshare.DiscardUnknown(m) +func (m *RequestPrivateDecryptionKey) XXX_DiscardUnknown() { + xxx_messageInfo_RequestPrivateDecryptionKey.DiscardUnknown(m) } -var xxx_messageInfo_RequestEncryptedKeyshare proto.InternalMessageInfo +var xxx_messageInfo_RequestPrivateDecryptionKey proto.InternalMessageInfo -func (m *RequestEncryptedKeyshare) GetCreator() string { +func (m *RequestPrivateDecryptionKey) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *RequestEncryptedKeyshare) GetRequestId() string { +func (m *RequestPrivateDecryptionKey) GetRequestId() string { if m != nil { return m.RequestId } return "" } -// EncryptedKeyshare defines the storage structure for +// PrivateDecryptionKey defines the storage structure for // the list of encrypted keyshares (unaggregated) -type EncryptedKeyshare struct { +type PrivateDecryptionKey struct { Requester string `protobuf:"bytes,1,opt,name=requester,proto3" json:"requester,omitempty"` PrivateKeyshares []*IndexedEncryptedKeyshare `protobuf:"bytes,2,rep,name=private_keyshares,json=privateKeyshares,proto3" json:"private_keyshares,omitempty"` } -func (m *EncryptedKeyshare) Reset() { *m = EncryptedKeyshare{} } -func (m *EncryptedKeyshare) String() string { return proto.CompactTextString(m) } -func (*EncryptedKeyshare) ProtoMessage() {} -func (*EncryptedKeyshare) Descriptor() ([]byte, []int) { +func (m *PrivateDecryptionKey) Reset() { *m = PrivateDecryptionKey{} } +func (m *PrivateDecryptionKey) String() string { return proto.CompactTextString(m) } +func (*PrivateDecryptionKey) ProtoMessage() {} +func (*PrivateDecryptionKey) Descriptor() ([]byte, []int) { return fileDescriptor_b708507d1b3951ff, []int{9} } -func (m *EncryptedKeyshare) XXX_Unmarshal(b []byte) error { +func (m *PrivateDecryptionKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *EncryptedKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *PrivateDecryptionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_EncryptedKeyshare.Marshal(b, m, deterministic) + return xxx_messageInfo_PrivateDecryptionKey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -638,26 +638,26 @@ func (m *EncryptedKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *EncryptedKeyshare) XXX_Merge(src proto.Message) { - xxx_messageInfo_EncryptedKeyshare.Merge(m, src) +func (m *PrivateDecryptionKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrivateDecryptionKey.Merge(m, src) } -func (m *EncryptedKeyshare) XXX_Size() int { +func (m *PrivateDecryptionKey) XXX_Size() int { return m.Size() } -func (m *EncryptedKeyshare) XXX_DiscardUnknown() { - xxx_messageInfo_EncryptedKeyshare.DiscardUnknown(m) +func (m *PrivateDecryptionKey) XXX_DiscardUnknown() { + xxx_messageInfo_PrivateDecryptionKey.DiscardUnknown(m) } -var xxx_messageInfo_EncryptedKeyshare proto.InternalMessageInfo +var xxx_messageInfo_PrivateDecryptionKey proto.InternalMessageInfo -func (m *EncryptedKeyshare) GetRequester() string { +func (m *PrivateDecryptionKey) GetRequester() string { if m != nil { return m.Requester } return "" } -func (m *EncryptedKeyshare) GetPrivateKeyshares() []*IndexedEncryptedKeyshare { +func (m *PrivateDecryptionKey) GetPrivateKeyshares() []*IndexedEncryptedKeyshare { if m != nil { return m.PrivateKeyshares } @@ -719,16 +719,16 @@ func (m *IndexedEncryptedKeyshare) GetEncryptedKeyshareIndex() uint64 { } func init() { - proto.RegisterType((*RequestAggrKeyshare)(nil), "fairyring.common.RequestAggrKeyshare") - proto.RegisterType((*RequestAggrKeyshareResponse)(nil), "fairyring.common.RequestAggrKeyshareResponse") - proto.RegisterType((*GetAggrKeyshare)(nil), "fairyring.common.GetAggrKeyshare") - proto.RegisterType((*GetAggrKeyshareResponse)(nil), "fairyring.common.GetAggrKeyshareResponse") - proto.RegisterType((*GetPrivateKeyshare)(nil), "fairyring.common.GetPrivateKeyshare") - proto.RegisterType((*GetPrivateKeyshareResponse)(nil), "fairyring.common.GetPrivateKeyshareResponse") + proto.RegisterType((*RequestDecryptionKey)(nil), "fairyring.common.RequestDecryptionKey") + proto.RegisterType((*RequestDecryptionKeyResponse)(nil), "fairyring.common.RequestDecryptionKeyResponse") + proto.RegisterType((*GetDecryptionKey)(nil), "fairyring.common.GetDecryptionKey") + proto.RegisterType((*GetDecryptionKeyResponse)(nil), "fairyring.common.GetDecryptionKeyResponse") + proto.RegisterType((*GetPrivateDecryptionKey)(nil), "fairyring.common.GetPrivateDecryptionKey") + proto.RegisterType((*GetPrivateDecryptionKeyResponse)(nil), "fairyring.common.GetPrivateDecryptionKeyResponse") proto.RegisterType((*ActivePublicKey)(nil), "fairyring.common.ActivePublicKey") proto.RegisterType((*QueuedPublicKey)(nil), "fairyring.common.QueuedPublicKey") - proto.RegisterType((*RequestEncryptedKeyshare)(nil), "fairyring.common.RequestEncryptedKeyshare") - proto.RegisterType((*EncryptedKeyshare)(nil), "fairyring.common.EncryptedKeyshare") + proto.RegisterType((*RequestPrivateDecryptionKey)(nil), "fairyring.common.RequestPrivateDecryptionKey") + proto.RegisterType((*PrivateDecryptionKey)(nil), "fairyring.common.PrivateDecryptionKey") proto.RegisterType((*IndexedEncryptedKeyshare)(nil), "fairyring.common.IndexedEncryptedKeyshare") } @@ -737,48 +737,48 @@ func init() { } var fileDescriptor_b708507d1b3951ff = []byte{ - // 598 bytes of a gzipped FileDescriptorProto + // 601 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0x4f, 0x4f, 0xd4, 0x40, - 0x14, 0xdf, 0x59, 0x36, 0x28, 0x6f, 0x13, 0x81, 0x6a, 0xb0, 0xac, 0x52, 0x70, 0xbd, 0x10, 0x13, - 0xdb, 0x04, 0x3d, 0x78, 0x85, 0xa0, 0x40, 0xb8, 0x40, 0x4d, 0x34, 0xf1, 0xd2, 0xb4, 0x9d, 0x47, - 0x99, 0x50, 0x3a, 0xe3, 0x74, 0x8a, 0xf4, 0x2b, 0x78, 0x30, 0x1e, 0xfd, 0x3e, 0x5e, 0x3c, 0x72, - 0xf4, 0xa6, 0x81, 0x2f, 0x62, 0xa6, 0xff, 0x96, 0x76, 0x21, 0x7a, 0xf1, 0xd6, 0xf7, 0x6f, 0x7e, - 0xef, 0xf7, 0x7b, 0xaf, 0x0f, 0x9e, 0x1e, 0xf9, 0x4c, 0xe6, 0x92, 0x25, 0x91, 0x13, 0xf2, 0xd3, - 0x53, 0x9e, 0x38, 0xe9, 0xb1, 0x2f, 0x91, 0x7a, 0x2a, 0x17, 0x98, 0xda, 0x42, 0x72, 0xc5, 0x8d, - 0x85, 0x26, 0xc9, 0x2e, 0x93, 0x46, 0x56, 0xc4, 0x79, 0x14, 0xa3, 0x53, 0xc4, 0x83, 0xec, 0xc8, - 0xa1, 0x99, 0xf4, 0x15, 0xe3, 0x49, 0x59, 0x31, 0x7a, 0x10, 0xf1, 0x88, 0x17, 0x9f, 0x8e, 0xfe, - 0x2a, 0xbd, 0xe3, 0xef, 0x04, 0xee, 0xbb, 0xf8, 0x31, 0xc3, 0x54, 0x6d, 0x46, 0x91, 0xdc, 0xc7, - 0xbc, 0x00, 0x33, 0x4c, 0xb8, 0x13, 0x4a, 0xf4, 0x15, 0x97, 0x26, 0x59, 0x23, 0xeb, 0x73, 0x6e, - 0x6d, 0x1a, 0x4f, 0x60, 0x28, 0x24, 0x17, 0x3c, 0xf5, 0x63, 0x8f, 0x51, 0xb3, 0xaf, 0xa3, 0xbb, - 0x3d, 0x17, 0x6a, 0xe7, 0x1e, 0x35, 0x56, 0x01, 0x64, 0xf9, 0xa6, 0xce, 0x98, 0xa9, 0x32, 0xe6, - 0x2a, 0xdf, 0x1e, 0x35, 0x76, 0x61, 0x1e, 0x53, 0xc5, 0x4e, 0x7d, 0x85, 0xd4, 0xa3, 0x18, 0xfb, - 0xb9, 0x39, 0x58, 0x23, 0xeb, 0xc3, 0x8d, 0x65, 0xbb, 0x64, 0x61, 0xd7, 0x2c, 0xec, 0xed, 0x8a, - 0xc5, 0xd6, 0xe0, 0xdb, 0xaf, 0x55, 0xe2, 0xde, 0x6b, 0xea, 0xb6, 0x75, 0xd9, 0xd6, 0x00, 0xfa, - 0x8c, 0x8e, 0x0f, 0xe1, 0xd1, 0x0d, 0x24, 0x5c, 0x4c, 0x05, 0x4f, 0x52, 0x34, 0x46, 0x70, 0x97, - 0x51, 0x4c, 0x14, 0x53, 0x79, 0xc5, 0xa6, 0xb1, 0x8d, 0x25, 0x98, 0x15, 0x59, 0x70, 0x82, 0x79, - 0xc9, 0xc4, 0xad, 0xac, 0xf1, 0x27, 0x98, 0xdf, 0xc1, 0xb6, 0x26, 0x1d, 0xe6, 0xe4, 0xaf, 0xcc, - 0xfb, 0xd3, 0xcc, 0xaf, 0xb7, 0x32, 0xd3, 0x6e, 0xa5, 0xe2, 0xb2, 0x0c, 0x0f, 0x3b, 0xc0, 0x35, - 0x8f, 0xf1, 0x17, 0x02, 0xc6, 0x0e, 0xaa, 0x03, 0xc9, 0xce, 0x7c, 0x85, 0x4d, 0x5f, 0x2b, 0x2d, - 0xd0, 0x92, 0xe0, 0x2d, 0x90, 0xfd, 0x0e, 0xfb, 0xc7, 0x50, 0x27, 0xa2, 0xac, 0xfa, 0x99, 0x38, - 0x8c, 0x55, 0x18, 0xa6, 0x18, 0x0a, 0xaf, 0x12, 0x68, 0x50, 0xc4, 0x41, 0xbb, 0x0e, 0x4a, 0x91, - 0x5e, 0xc2, 0x68, 0xba, 0x9f, 0x46, 0xf6, 0x89, 0xb4, 0xa4, 0x25, 0x6d, 0x00, 0xf3, 0x9b, 0xa1, - 0x62, 0x67, 0x78, 0x90, 0x05, 0x31, 0x0b, 0xf7, 0x31, 0xd7, 0x14, 0x44, 0x61, 0x78, 0x93, 0xf4, - 0x39, 0xd1, 0x84, 0xaf, 0x6d, 0x63, 0xbf, 0xbd, 0x8d, 0x4b, 0x30, 0x8b, 0xe7, 0x82, 0xc9, 0x52, - 0xcd, 0x81, 0x5b, 0x59, 0x1a, 0xe3, 0x30, 0xc3, 0x0c, 0xe9, 0x7f, 0xc4, 0x78, 0x0b, 0x66, 0xb5, - 0x75, 0xaf, 0x93, 0x50, 0xe6, 0x42, 0x21, 0xfd, 0x87, 0xff, 0x67, 0x65, 0x7a, 0x45, 0xae, 0x4d, - 0x6b, 0xfc, 0x99, 0xc0, 0xe2, 0xf4, 0x73, 0xad, 0x39, 0x91, 0xee, 0x9c, 0xde, 0xc3, 0xa2, 0x28, - 0x67, 0xa0, 0xa9, 0x15, 0x15, 0xa9, 0xd9, 0x5f, 0x9b, 0x59, 0x1f, 0x6e, 0x3c, 0xb3, 0xbb, 0x87, - 0xc2, 0xde, 0x4b, 0x28, 0x9e, 0x23, 0x9d, 0x02, 0x71, 0x17, 0x44, 0x7b, 0x90, 0xa9, 0x5e, 0x38, - 0xf3, 0xb6, 0x74, 0xe3, 0x15, 0x98, 0x58, 0x3b, 0x1b, 0x5c, 0xef, 0xcc, 0x8f, 0x33, 0xac, 0x5a, - 0x5c, 0xc2, 0x6e, 0xd1, 0x3b, 0x1d, 0xbd, 0xa5, 0x92, 0x69, 0xa0, 0x42, 0x90, 0xc1, 0x0d, 0x95, - 0x45, 0x1b, 0x5b, 0x3b, 0x3f, 0x2e, 0x2d, 0x72, 0x71, 0x69, 0x91, 0xdf, 0x97, 0x16, 0xf9, 0x7a, - 0x65, 0xf5, 0x2e, 0xae, 0xac, 0xde, 0xcf, 0x2b, 0xab, 0xf7, 0xe1, 0x79, 0xc4, 0xd4, 0x71, 0x16, - 0x68, 0x92, 0xce, 0x1b, 0x9f, 0xc9, 0x20, 0xe6, 0xe1, 0x89, 0x33, 0x39, 0xa5, 0xe7, 0xf5, 0x31, - 0x2d, 0xae, 0x68, 0x30, 0x5b, 0x1c, 0x98, 0x17, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x5b, 0x10, - 0x56, 0xff, 0x6d, 0x05, 0x00, 0x00, -} - -func (m *RequestAggrKeyshare) Marshal() (dAtA []byte, err error) { + 0x14, 0xdf, 0x59, 0x36, 0x28, 0x6f, 0x13, 0xc1, 0x86, 0x60, 0x5d, 0xa1, 0x8b, 0xeb, 0x85, 0x98, + 0xd8, 0x26, 0x78, 0xd1, 0xa3, 0x04, 0x05, 0xc2, 0x05, 0x7b, 0xc0, 0xc4, 0xcb, 0xa6, 0xed, 0x3c, + 0xca, 0x84, 0xd2, 0x19, 0xa7, 0x53, 0xb2, 0xfd, 0x10, 0x1a, 0x13, 0x2f, 0x7e, 0x20, 0x0f, 0x1e, + 0x39, 0x7a, 0xd3, 0xc0, 0x17, 0x31, 0x6d, 0xa7, 0xdd, 0x6d, 0xd9, 0x8d, 0x27, 0x6f, 0x7d, 0x7f, + 0x7e, 0xf3, 0xde, 0xef, 0xf7, 0x5e, 0x1f, 0x3c, 0x3b, 0xf3, 0x98, 0xcc, 0x24, 0x8b, 0x43, 0x27, + 0xe0, 0x97, 0x97, 0x3c, 0x76, 0x92, 0x73, 0x4f, 0x22, 0x1d, 0xab, 0x4c, 0x60, 0x62, 0x0b, 0xc9, + 0x15, 0x37, 0xd6, 0xea, 0x24, 0xbb, 0x4c, 0x1a, 0x58, 0x21, 0xe7, 0x61, 0x84, 0x4e, 0x11, 0xf7, + 0xd3, 0x33, 0x87, 0xa6, 0xd2, 0x53, 0x8c, 0xc7, 0x25, 0x62, 0xb0, 0x1e, 0xf2, 0x90, 0x17, 0x9f, + 0x4e, 0xfe, 0x55, 0x7a, 0x47, 0x3f, 0x08, 0xac, 0xbb, 0xf8, 0x29, 0xc5, 0x44, 0xed, 0x63, 0x20, + 0x33, 0x91, 0x23, 0x8e, 0x31, 0x33, 0x4c, 0xb8, 0x17, 0x48, 0xf4, 0x14, 0x97, 0x26, 0xd9, 0x26, + 0x3b, 0x2b, 0x6e, 0x65, 0x1a, 0x4f, 0xa1, 0x2f, 0x24, 0x17, 0x3c, 0xf1, 0xa2, 0x31, 0xa3, 0x66, + 0x37, 0x8f, 0x1e, 0x76, 0x5c, 0xa8, 0x9c, 0x47, 0xd4, 0x18, 0x02, 0xc8, 0xf2, 0xd1, 0x3c, 0x63, + 0x49, 0x67, 0xac, 0x68, 0xdf, 0x11, 0x35, 0x0e, 0x61, 0x15, 0x13, 0xc5, 0x2e, 0x3d, 0x85, 0x74, + 0x4c, 0x31, 0xf2, 0x32, 0xb3, 0xb7, 0x4d, 0x76, 0xfa, 0xbb, 0x8f, 0xed, 0x92, 0x86, 0x5d, 0xd1, + 0xb0, 0xf7, 0x35, 0x8d, 0xbd, 0xde, 0xf7, 0xdf, 0x43, 0xe2, 0x3e, 0xa8, 0x71, 0xfb, 0x39, 0x6c, + 0xaf, 0x07, 0x5d, 0x46, 0x47, 0x2e, 0x6c, 0xce, 0x63, 0xe1, 0x62, 0x22, 0x78, 0x9c, 0xa0, 0x31, + 0x80, 0xfb, 0x8c, 0x62, 0xac, 0x98, 0xca, 0x34, 0x9d, 0xda, 0x36, 0x36, 0x60, 0x59, 0xa4, 0xfe, + 0x05, 0x66, 0x25, 0x15, 0x57, 0x5b, 0xa3, 0x09, 0xac, 0x1d, 0x60, 0x4b, 0x95, 0x16, 0x77, 0xf2, + 0x4f, 0xee, 0xdd, 0xbb, 0xdc, 0x67, 0x7b, 0x59, 0x6a, 0xf6, 0xa2, 0xd9, 0x0c, 0xc0, 0x6c, 0x57, + 0xae, 0x98, 0x8c, 0xbe, 0x11, 0x78, 0x74, 0x80, 0xea, 0x44, 0xb2, 0x2b, 0x4f, 0x61, 0xb3, 0xbb, + 0xad, 0x46, 0xe9, 0x92, 0xe7, 0x82, 0xc2, 0xdd, 0x96, 0x08, 0x9b, 0x50, 0x25, 0xa2, 0xd4, 0x5d, + 0x4d, 0x1d, 0xc6, 0x10, 0xfa, 0x09, 0x06, 0x62, 0xac, 0x75, 0xea, 0x15, 0x71, 0xc8, 0x5d, 0x27, + 0xa5, 0x56, 0xaf, 0x61, 0xb8, 0xa0, 0xa9, 0x7a, 0x04, 0x53, 0x99, 0x49, 0x43, 0x66, 0x1f, 0x56, + 0xdf, 0x04, 0x8a, 0x5d, 0xe1, 0x49, 0xea, 0x47, 0x2c, 0xd0, 0x3c, 0x44, 0x61, 0x8c, 0xa7, 0xe9, + 0x2b, 0xa2, 0x0e, 0xcf, 0xac, 0x66, 0xb7, 0xb9, 0x9a, 0x1b, 0xb0, 0x8c, 0x13, 0xc1, 0x64, 0x29, + 0x6c, 0xcf, 0xd5, 0x56, 0x5e, 0xe3, 0x7d, 0x8a, 0x29, 0xd2, 0xff, 0x58, 0xe3, 0x14, 0x9e, 0xe8, + 0x15, 0x9c, 0x3b, 0x9b, 0xc5, 0xff, 0xd3, 0xd6, 0xdd, 0x85, 0x99, 0x99, 0xda, 0xe8, 0x33, 0x81, + 0xf5, 0xb9, 0x2f, 0x36, 0x46, 0x46, 0xda, 0x23, 0xfb, 0x00, 0x0f, 0x45, 0x89, 0xca, 0x09, 0x16, + 0x17, 0x24, 0x31, 0xbb, 0xdb, 0x4b, 0x3b, 0xfd, 0xdd, 0xe7, 0x76, 0xfb, 0x78, 0xd8, 0x47, 0x31, + 0xc5, 0x09, 0xd2, 0xb7, 0x71, 0x51, 0x00, 0xe9, 0xb1, 0x86, 0xb8, 0x6b, 0xfa, 0x91, 0xca, 0x91, + 0x8c, 0xbe, 0x10, 0x30, 0x17, 0xa5, 0x1b, 0xaf, 0xc0, 0xc4, 0xca, 0x59, 0xd7, 0x1d, 0x5f, 0x79, + 0x51, 0x8a, 0xba, 0xc5, 0x0d, 0x6c, 0x83, 0x4e, 0xf3, 0xe8, 0x02, 0x24, 0xcb, 0x0b, 0x15, 0x9a, + 0xf4, 0xe6, 0x20, 0x8b, 0x36, 0xf6, 0x0e, 0x7e, 0xde, 0x58, 0xe4, 0xfa, 0xc6, 0x22, 0x7f, 0x6e, + 0x2c, 0xf2, 0xf5, 0xd6, 0xea, 0x5c, 0xdf, 0x5a, 0x9d, 0x5f, 0xb7, 0x56, 0xe7, 0xe3, 0x8b, 0x90, + 0xa9, 0xf3, 0xd4, 0xcf, 0x49, 0x3a, 0xef, 0x3c, 0x26, 0xfd, 0x88, 0x07, 0x17, 0xce, 0xf4, 0xbc, + 0x4e, 0xaa, 0x03, 0x5b, 0x5c, 0x56, 0x7f, 0xb9, 0xb8, 0x39, 0x2f, 0xff, 0x06, 0x00, 0x00, 0xff, + 0xff, 0x8e, 0x1d, 0x00, 0xe3, 0x81, 0x05, 0x00, 0x00, +} + +func (m *RequestDecryptionKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -788,12 +788,12 @@ func (m *RequestAggrKeyshare) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RequestAggrKeyshare) MarshalTo(dAtA []byte) (int, error) { +func (m *RequestDecryptionKey) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RequestAggrKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RequestDecryptionKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -827,12 +827,12 @@ func (m *RequestAggrKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RequestAggrKeyshare_ProposalId) MarshalTo(dAtA []byte) (int, error) { +func (m *RequestDecryptionKey_ProposalId) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RequestAggrKeyshare_ProposalId) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RequestDecryptionKey_ProposalId) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.ProposalId) copy(dAtA[i:], m.ProposalId) @@ -841,12 +841,12 @@ func (m *RequestAggrKeyshare_ProposalId) MarshalToSizedBuffer(dAtA []byte) (int, dAtA[i] = 0x12 return len(dAtA) - i, nil } -func (m *RequestAggrKeyshare_RequestId) MarshalTo(dAtA []byte) (int, error) { +func (m *RequestDecryptionKey_RequestId) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RequestAggrKeyshare_RequestId) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RequestDecryptionKey_RequestId) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.RequestId) copy(dAtA[i:], m.RequestId) @@ -855,7 +855,7 @@ func (m *RequestAggrKeyshare_RequestId) MarshalToSizedBuffer(dAtA []byte) (int, dAtA[i] = 0x1a return len(dAtA) - i, nil } -func (m *RequestAggrKeyshareResponse) Marshal() (dAtA []byte, err error) { +func (m *RequestDecryptionKeyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -865,12 +865,12 @@ func (m *RequestAggrKeyshareResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RequestAggrKeyshareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *RequestDecryptionKeyResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RequestAggrKeyshareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RequestDecryptionKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -892,7 +892,7 @@ func (m *RequestAggrKeyshareResponse) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *GetAggrKeyshare) Marshal() (dAtA []byte, err error) { +func (m *GetDecryptionKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -902,12 +902,12 @@ func (m *GetAggrKeyshare) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetAggrKeyshare) MarshalTo(dAtA []byte) (int, error) { +func (m *GetDecryptionKey) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetAggrKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetDecryptionKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -931,12 +931,12 @@ func (m *GetAggrKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *GetAggrKeyshare_ProposalId) MarshalTo(dAtA []byte) (int, error) { +func (m *GetDecryptionKey_ProposalId) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetAggrKeyshare_ProposalId) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetDecryptionKey_ProposalId) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.ProposalId) copy(dAtA[i:], m.ProposalId) @@ -945,12 +945,12 @@ func (m *GetAggrKeyshare_ProposalId) MarshalToSizedBuffer(dAtA []byte) (int, err dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *GetAggrKeyshare_RequestId) MarshalTo(dAtA []byte) (int, error) { +func (m *GetDecryptionKey_RequestId) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetAggrKeyshare_RequestId) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetDecryptionKey_RequestId) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.RequestId) copy(dAtA[i:], m.RequestId) @@ -959,7 +959,7 @@ func (m *GetAggrKeyshare_RequestId) MarshalToSizedBuffer(dAtA []byte) (int, erro dAtA[i] = 0x12 return len(dAtA) - i, nil } -func (m *GetAggrKeyshareResponse) Marshal() (dAtA []byte, err error) { +func (m *GetDecryptionKeyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -969,12 +969,12 @@ func (m *GetAggrKeyshareResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetAggrKeyshareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *GetDecryptionKeyResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetAggrKeyshareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetDecryptionKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -982,7 +982,7 @@ func (m *GetAggrKeyshareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *GetPrivateKeyshare) Marshal() (dAtA []byte, err error) { +func (m *GetPrivateDecryptionKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -992,12 +992,12 @@ func (m *GetPrivateKeyshare) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetPrivateKeyshare) MarshalTo(dAtA []byte) (int, error) { +func (m *GetPrivateDecryptionKey) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetPrivateKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetPrivateDecryptionKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1033,7 +1033,7 @@ func (m *GetPrivateKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *GetPrivateKeyshareResponse) Marshal() (dAtA []byte, err error) { +func (m *GetPrivateDecryptionKeyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1043,12 +1043,12 @@ func (m *GetPrivateKeyshareResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetPrivateKeyshareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *GetPrivateDecryptionKeyResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetPrivateKeyshareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetPrivateDecryptionKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1147,7 +1147,7 @@ func (m *QueuedPublicKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RequestEncryptedKeyshare) Marshal() (dAtA []byte, err error) { +func (m *RequestPrivateDecryptionKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1157,12 +1157,12 @@ func (m *RequestEncryptedKeyshare) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RequestEncryptedKeyshare) MarshalTo(dAtA []byte) (int, error) { +func (m *RequestPrivateDecryptionKey) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RequestEncryptedKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RequestPrivateDecryptionKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1184,7 +1184,7 @@ func (m *RequestEncryptedKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *EncryptedKeyshare) Marshal() (dAtA []byte, err error) { +func (m *PrivateDecryptionKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1194,12 +1194,12 @@ func (m *EncryptedKeyshare) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EncryptedKeyshare) MarshalTo(dAtA []byte) (int, error) { +func (m *PrivateDecryptionKey) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *EncryptedKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PrivateDecryptionKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1274,7 +1274,7 @@ func encodeVarintSharedTypes(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *RequestAggrKeyshare) Size() (n int) { +func (m *RequestDecryptionKey) Size() (n int) { if m == nil { return 0 } @@ -1294,7 +1294,7 @@ func (m *RequestAggrKeyshare) Size() (n int) { return n } -func (m *RequestAggrKeyshare_ProposalId) Size() (n int) { +func (m *RequestDecryptionKey_ProposalId) Size() (n int) { if m == nil { return 0 } @@ -1304,7 +1304,7 @@ func (m *RequestAggrKeyshare_ProposalId) Size() (n int) { n += 1 + l + sovSharedTypes(uint64(l)) return n } -func (m *RequestAggrKeyshare_RequestId) Size() (n int) { +func (m *RequestDecryptionKey_RequestId) Size() (n int) { if m == nil { return 0 } @@ -1314,7 +1314,7 @@ func (m *RequestAggrKeyshare_RequestId) Size() (n int) { n += 1 + l + sovSharedTypes(uint64(l)) return n } -func (m *RequestAggrKeyshareResponse) Size() (n int) { +func (m *RequestDecryptionKeyResponse) Size() (n int) { if m == nil { return 0 } @@ -1331,7 +1331,7 @@ func (m *RequestAggrKeyshareResponse) Size() (n int) { return n } -func (m *GetAggrKeyshare) Size() (n int) { +func (m *GetDecryptionKey) Size() (n int) { if m == nil { return 0 } @@ -1347,7 +1347,7 @@ func (m *GetAggrKeyshare) Size() (n int) { return n } -func (m *GetAggrKeyshare_ProposalId) Size() (n int) { +func (m *GetDecryptionKey_ProposalId) Size() (n int) { if m == nil { return 0 } @@ -1357,7 +1357,7 @@ func (m *GetAggrKeyshare_ProposalId) Size() (n int) { n += 1 + l + sovSharedTypes(uint64(l)) return n } -func (m *GetAggrKeyshare_RequestId) Size() (n int) { +func (m *GetDecryptionKey_RequestId) Size() (n int) { if m == nil { return 0 } @@ -1367,7 +1367,7 @@ func (m *GetAggrKeyshare_RequestId) Size() (n int) { n += 1 + l + sovSharedTypes(uint64(l)) return n } -func (m *GetAggrKeyshareResponse) Size() (n int) { +func (m *GetDecryptionKeyResponse) Size() (n int) { if m == nil { return 0 } @@ -1376,7 +1376,7 @@ func (m *GetAggrKeyshareResponse) Size() (n int) { return n } -func (m *GetPrivateKeyshare) Size() (n int) { +func (m *GetPrivateDecryptionKey) Size() (n int) { if m == nil { return 0 } @@ -1401,7 +1401,7 @@ func (m *GetPrivateKeyshare) Size() (n int) { return n } -func (m *GetPrivateKeyshareResponse) Size() (n int) { +func (m *GetPrivateDecryptionKeyResponse) Size() (n int) { if m == nil { return 0 } @@ -1454,7 +1454,7 @@ func (m *QueuedPublicKey) Size() (n int) { return n } -func (m *RequestEncryptedKeyshare) Size() (n int) { +func (m *RequestPrivateDecryptionKey) Size() (n int) { if m == nil { return 0 } @@ -1471,7 +1471,7 @@ func (m *RequestEncryptedKeyshare) Size() (n int) { return n } -func (m *EncryptedKeyshare) Size() (n int) { +func (m *PrivateDecryptionKey) Size() (n int) { if m == nil { return 0 } @@ -1512,7 +1512,7 @@ func sovSharedTypes(x uint64) (n int) { func sozSharedTypes(x uint64) (n int) { return sovSharedTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *RequestAggrKeyshare) Unmarshal(dAtA []byte) error { +func (m *RequestDecryptionKey) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1535,10 +1535,10 @@ func (m *RequestAggrKeyshare) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RequestAggrKeyshare: wiretype end group for non-group") + return fmt.Errorf("proto: RequestDecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RequestAggrKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RequestDecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1603,7 +1603,7 @@ func (m *RequestAggrKeyshare) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Id = &RequestAggrKeyshare_ProposalId{string(dAtA[iNdEx:postIndex])} + m.Id = &RequestDecryptionKey_ProposalId{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 3: if wireType != 2 { @@ -1635,7 +1635,7 @@ func (m *RequestAggrKeyshare) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Id = &RequestAggrKeyshare_RequestId{string(dAtA[iNdEx:postIndex])} + m.Id = &RequestDecryptionKey_RequestId{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 4: if wireType != 2 { @@ -1694,7 +1694,7 @@ func (m *RequestAggrKeyshare) Unmarshal(dAtA []byte) error { } return nil } -func (m *RequestAggrKeyshareResponse) Unmarshal(dAtA []byte) error { +func (m *RequestDecryptionKeyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1717,10 +1717,10 @@ func (m *RequestAggrKeyshareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RequestAggrKeyshareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: RequestDecryptionKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RequestAggrKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RequestDecryptionKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1808,7 +1808,7 @@ func (m *RequestAggrKeyshareResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetAggrKeyshare) Unmarshal(dAtA []byte) error { +func (m *GetDecryptionKey) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1831,10 +1831,10 @@ func (m *GetAggrKeyshare) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetAggrKeyshare: wiretype end group for non-group") + return fmt.Errorf("proto: GetDecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetAggrKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetDecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1867,7 +1867,7 @@ func (m *GetAggrKeyshare) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Id = &GetAggrKeyshare_ProposalId{string(dAtA[iNdEx:postIndex])} + m.Id = &GetDecryptionKey_ProposalId{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 2: if wireType != 2 { @@ -1899,7 +1899,7 @@ func (m *GetAggrKeyshare) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Id = &GetAggrKeyshare_RequestId{string(dAtA[iNdEx:postIndex])} + m.Id = &GetDecryptionKey_RequestId{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 3: if wireType != 2 { @@ -1954,7 +1954,7 @@ func (m *GetAggrKeyshare) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetAggrKeyshareResponse) Unmarshal(dAtA []byte) error { +func (m *GetDecryptionKeyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1977,10 +1977,10 @@ func (m *GetAggrKeyshareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetAggrKeyshareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetDecryptionKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetAggrKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetDecryptionKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -2004,7 +2004,7 @@ func (m *GetAggrKeyshareResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetPrivateKeyshare) Unmarshal(dAtA []byte) error { +func (m *GetPrivateDecryptionKey) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2027,10 +2027,10 @@ func (m *GetPrivateKeyshare) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetPrivateKeyshare: wiretype end group for non-group") + return fmt.Errorf("proto: GetPrivateDecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetPrivateKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetPrivateDecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2182,7 +2182,7 @@ func (m *GetPrivateKeyshare) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetPrivateKeyshareResponse) Unmarshal(dAtA []byte) error { +func (m *GetPrivateDecryptionKeyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2205,10 +2205,10 @@ func (m *GetPrivateKeyshareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetPrivateKeyshareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetPrivateDecryptionKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetPrivateKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetPrivateDecryptionKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2530,7 +2530,7 @@ func (m *QueuedPublicKey) Unmarshal(dAtA []byte) error { } return nil } -func (m *RequestEncryptedKeyshare) Unmarshal(dAtA []byte) error { +func (m *RequestPrivateDecryptionKey) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2553,10 +2553,10 @@ func (m *RequestEncryptedKeyshare) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RequestEncryptedKeyshare: wiretype end group for non-group") + return fmt.Errorf("proto: RequestPrivateDecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RequestEncryptedKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RequestPrivateDecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2644,7 +2644,7 @@ func (m *RequestEncryptedKeyshare) Unmarshal(dAtA []byte) error { } return nil } -func (m *EncryptedKeyshare) Unmarshal(dAtA []byte) error { +func (m *PrivateDecryptionKey) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2667,10 +2667,10 @@ func (m *EncryptedKeyshare) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EncryptedKeyshare: wiretype end group for non-group") + return fmt.Errorf("proto: PrivateDecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EncryptedKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PrivateDecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/keyshare/keeper/aggr_key_share_data.go b/x/keyshare/keeper/decryption_key_data.go similarity index 74% rename from x/keyshare/keeper/aggr_key_share_data.go rename to x/keyshare/keeper/decryption_key_data.go index 9d6bd2de..844a019f 100644 --- a/x/keyshare/keeper/aggr_key_share_data.go +++ b/x/keyshare/keeper/decryption_key_data.go @@ -15,10 +15,10 @@ import ( const MAX_RETRIES = 5 -// TransmitAggrKeyshareDataPacket transmits the packet over IBC with the specified source port and source channel -func (k Keeper) TransmitAggrKeyshareDataPacket( +// TransmitDecryptionKeyDataPacket transmits the packet over IBC with the specified source port and source channel +func (k Keeper) TransmitDecryptionKeyDataPacket( ctx sdk.Context, - packetData types.AggrKeyshareDataPacketData, + packetData types.DecryptionKeyDataPacketData, sourcePort, sourceChannel string, timeoutHeight clienttypes.Height, @@ -48,9 +48,14 @@ func (k Keeper) TransmitAggrKeyshareDataPacket( return k.ibcKeeperFn().ChannelKeeper.SendPacket(ctx, channelCap, sourcePort, sourceChannel, timeoutHeight, timeoutTimestamp, packetBytes) } -// OnAcknowledgementAggrKeyshareDataPacket responds to the the success or failure of a packet +// OnAcknowledgementDecryptionKeyDataPacket responds to the the success or failure of a packet // acknowledgement written on the receiving chain. -func (k Keeper) OnAcknowledgementAggrKeyshareDataPacket(ctx sdk.Context, packet channeltypes.Packet, data types.AggrKeyshareDataPacketData, ack channeltypes.Acknowledgement) error { +func (k Keeper) OnAcknowledgementDecryptionKeyDataPacket( + ctx sdk.Context, + packet channeltypes.Packet, + data types.DecryptionKeyDataPacketData, + ack channeltypes.Acknowledgement, +) error { switch dispatchedAck := ack.Response.(type) { case *channeltypes.Acknowledgement_Error: @@ -60,7 +65,7 @@ func (k Keeper) OnAcknowledgementAggrKeyshareDataPacket(ctx sdk.Context, packet data.Retries = data.Retries + 1 - _, err := k.TransmitAggrKeyshareDataPacket( + _, err := k.TransmitDecryptionKeyDataPacket( ctx, data, packet.SourcePort, @@ -75,7 +80,7 @@ func (k Keeper) OnAcknowledgementAggrKeyshareDataPacket(ctx sdk.Context, packet return nil case *channeltypes.Acknowledgement_Result: // Decode the packet acknowledgment - var packetAck types.AggrKeyshareDataPacketAck + var packetAck types.DecryptionKeyPacketAck if err := types.ModuleCdc.UnmarshalJSON(dispatchedAck.Result, &packetAck); err != nil { // The counter-party module doesn't implement the correct acknowledgment format @@ -97,8 +102,12 @@ func (k Keeper) OnAcknowledgementAggrKeyshareDataPacket(ctx sdk.Context, packet } } -// OnTimeoutAggrKeyshareDataPacket responds to the case where a packet has not been transmitted because of a timeout -func (k Keeper) OnTimeoutAggrKeyshareDataPacket(ctx sdk.Context, packet channeltypes.Packet, data types.AggrKeyshareDataPacketData) error { +// OnTimeoutDecryptionKeyDataPacket responds to the case where a packet has not been transmitted because of a timeout +func (k Keeper) OnTimeoutDecryptionKeyDataPacket( + ctx sdk.Context, + packet channeltypes.Packet, + data types.DecryptionKeyDataPacketData, +) error { // retry sending the packet if data.Retries < MAX_RETRIES { @@ -106,7 +115,7 @@ func (k Keeper) OnTimeoutAggrKeyshareDataPacket(ctx sdk.Context, packet channelt data.Retries = data.Retries + 1 - _, err := k.TransmitAggrKeyshareDataPacket( + _, err := k.TransmitDecryptionKeyDataPacket( ctx, data, packet.SourcePort, @@ -122,10 +131,10 @@ func (k Keeper) OnTimeoutAggrKeyshareDataPacket(ctx sdk.Context, packet channelt return nil } -// TransmitEncryptedKeyshareDataPacket transmits the packet over IBC with the specified source port and source channel -func (k Keeper) TransmitEncryptedKeyshareDataPacket( +// TransmitPrivateDecryptionKeyDataPacket transmits the packet over IBC with the specified source port and source channel +func (k Keeper) TransmitPrivateDecryptionKeyDataPacket( ctx sdk.Context, - packetData types.EncryptedKeysharesPacketData, + packetData types.PrivateDecryptionKeyDataPacketData, sourcePort, sourceChannel string, timeoutHeight clienttypes.Height, @@ -155,12 +164,12 @@ func (k Keeper) TransmitEncryptedKeyshareDataPacket( return k.ibcKeeperFn().ChannelKeeper.SendPacket(ctx, channelCap, sourcePort, sourceChannel, timeoutHeight, timeoutTimestamp, packetBytes) } -// OnAcknowledgementEncryptedKeyshareDataPacket responds to the the success or failure of a packet +// OnAcknowledgementPrivateDecryptionKeyDataPacket responds to the the success or failure of a packet // acknowledgement written on the receiving chain. -func (k Keeper) OnAcknowledgementEncryptedKeyshareDataPacket( +func (k Keeper) OnAcknowledgementPrivateDecryptionKeyDataPacket( ctx sdk.Context, packet channeltypes.Packet, - data types.EncryptedKeysharesPacketData, + data types.PrivateDecryptionKeyDataPacketData, ack channeltypes.Acknowledgement, ) error { switch ack.Response.(type) { @@ -174,11 +183,11 @@ func (k Keeper) OnAcknowledgementEncryptedKeyshareDataPacket( } } -// OnTimeoutEncryptedKeyshareDataPacket responds to the case where a packet has not been transmitted because of a timeout -func (k Keeper) OnTimeoutEncryptedKeyshareDataPacket( +// OnTimeoutPrivateDecryptionKeyDataPacket responds to the case where a packet has not been transmitted because of a timeout +func (k Keeper) OnTimeoutPrivateDecryptionKeyDataPacket( ctx sdk.Context, packet channeltypes.Packet, - data types.EncryptedKeysharesPacketData, + data types.PrivateDecryptionKeyDataPacketData, ) error { return nil } diff --git a/x/keyshare/keeper/get_aggr_key_share.go b/x/keyshare/keeper/get_decryption_key.go similarity index 74% rename from x/keyshare/keeper/get_aggr_key_share.go rename to x/keyshare/keeper/get_decryption_key.go index 27fc9712..000881ef 100644 --- a/x/keyshare/keeper/get_aggr_key_share.go +++ b/x/keyshare/keeper/get_decryption_key.go @@ -10,8 +10,12 @@ import ( channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" ) -// OnRecvGetAggrKeysharePacket processes packet reception -func (k Keeper) OnRecvGetAggrKeysharePacket(ctx sdk.Context, packet channeltypes.Packet, data types.GetAggrKeysharePacketData) (packetAck types.GetAggrKeysharePacketAck, err error) { +// OnRecvGetDecryptionKeyPacket processes packet reception +func (k Keeper) OnRecvGetDecryptionKeyPacket( + ctx sdk.Context, + packet channeltypes.Packet, + data types.GetDecryptionKeyPacketData, +) (packetAck types.GetDecryptionKeyPacketAck, err error) { // validate packet data upon receiving if err := data.ValidateBasic(); err != nil { return packetAck, err @@ -52,8 +56,8 @@ func (k Keeper) OnRecvGetAggrKeysharePacket(ctx sdk.Context, packet channeltypes return packetAck, nil } -// OnTimeoutGetAggrKeysharePacket responds to the case where a packet has not been transmitted because of a timeout -func (k Keeper) OnTimeoutGetAggrKeysharePacket(ctx sdk.Context, packet channeltypes.Packet, data types.GetAggrKeysharePacketData) error { +// OnTimeoutGetDecryptionKeyPacket responds to the case where a packet has not been transmitted because of a timeout +func (k Keeper) OnTimeoutGetDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, data types.GetDecryptionKeyPacketData) error { // Implement custom packet timeout logic // (Not required for fairyring since this packet is never sent from fairyring) @@ -61,12 +65,12 @@ func (k Keeper) OnTimeoutGetAggrKeysharePacket(ctx sdk.Context, packet channelty return nil } -// OnRecvGetPrivateKeysharePacket processes packet reception -func (k Keeper) OnRecvGetPrivateKeysharePacket( +// OnRecvGetPrivateDecryptionKeyPacket processes packet reception +func (k Keeper) OnRecvGetPrivateDecryptionKeyPacket( ctx sdk.Context, packet channeltypes.Packet, - data types.GetPrivateKeysharePacketData, -) (packetAck types.GetPrivateKeysharePacketAck, err error) { + data types.GetPrivateDecryptionKeyPacketData, +) (packetAck types.GetPrivateDecryptionKeyPacketAck, err error) { // validate packet data upon receiving if err := data.ValidateBasic(); err != nil { return packetAck, err @@ -91,7 +95,7 @@ func (k Keeper) OnRecvGetPrivateKeysharePacket( PortId: packet.SourcePort, } - keyshareReq.EncryptedKeyshares = make([]*commontypes.EncryptedKeyshare, 0) + keyshareReq.EncryptedKeyshares = make([]*commontypes.GetDecryptionKey, 0) keyshareReq.RequestId = data.Identity keyshareReq.Sent = false @@ -113,8 +117,8 @@ func (k Keeper) OnRecvGetPrivateKeysharePacket( return packetAck, nil } -// OnTimeoutGetPrivateKeysharePacket responds to the case where a packet has not been transmitted because of a timeout -func (k Keeper) OnTimeoutGetPrivateKeysharePacket(ctx sdk.Context, packet channeltypes.Packet, data types.GetPrivateKeysharePacketData) error { +// OnTimeoutGetPrivateDecryptionKeyPacket responds to the case where a packet has not been transmitted because of a timeout +func (k Keeper) OnTimeoutGetPrivateDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, data types.GetPrivateDecryptionKeyPacketData) error { // Implement custom packet timeout logic // (Not required for fairyring since this packet is never sent from fairyring) @@ -122,7 +126,7 @@ func (k Keeper) OnTimeoutGetPrivateKeysharePacket(ctx sdk.Context, packet channe return nil } -func verifyIBCInfo(packet channeltypes.Packet, keyshareReq types.KeyShareRequest) error { +func verifyIBCInfo(packet channeltypes.Packet, keyshareReq types.DecryptionKeyRequest) error { if keyshareReq.Counterparty.ChannelId != packet.SourceChannel || keyshareReq.Counterparty.PortId != packet.SourcePort || keyshareReq.IbcInfo.ChannelId != packet.DestinationChannel || diff --git a/x/keyshare/keeper/query_aggregated_key_share.go b/x/keyshare/keeper/query_decryption_key.go similarity index 73% rename from x/keyshare/keeper/query_aggregated_key_share.go rename to x/keyshare/keeper/query_decryption_key.go index 0e7f5d73..e882b745 100644 --- a/x/keyshare/keeper/query_aggregated_key_share.go +++ b/x/keyshare/keeper/query_decryption_key.go @@ -14,11 +14,11 @@ import ( "google.golang.org/grpc/status" ) -// AggregatedKeyShareAll returns the paginated list of all aggregated keyshares -func (k Keeper) AggregatedKeyShareAll( +// DecryptionKeyAll returns the paginated list of all aggregated keyshares +func (k Keeper) DecryptionKeyAll( goCtx context.Context, - req *types.QueryAggregatedKeyShareAllRequest, -) (*types.QueryAggregatedKeyShareAllResponse, error) { + req *types.QueryDecryptionKeyAllRequest, +) (*types.QueryDecryptionKeyAllResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -44,17 +44,17 @@ func (k Keeper) AggregatedKeyShareAll( return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryAggregatedKeyShareAllResponse{ - AggregatedKeyShare: aggregatedKeyShares, - Pagination: pageRes, + return &types.QueryDecryptionKeyAllResponse{ + DecryptionKeys: aggregatedKeyShares, + Pagination: pageRes, }, nil } // AggregatedKeyShare returns the aggregated key share for a particular height -func (k Keeper) AggregatedKeyShare( +func (k Keeper) DecryptionKey( goCtx context.Context, - req *types.QueryAggregatedKeyShareRequest, -) (*types.QueryAggregatedKeyShareResponse, error) { + req *types.QueryDecryptionKeyRequest, +) (*types.QueryDecryptionKeyResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -68,5 +68,5 @@ func (k Keeper) AggregatedKeyShare( return nil, status.Error(codes.NotFound, "not found") } - return &types.QueryAggregatedKeyShareResponse{AggregatedKeyShare: val}, nil + return &types.QueryDecryptionKeyResponse{DecryptionKey: val}, nil } diff --git a/x/keyshare/keeper/query_aggregated_key_share_test.go b/x/keyshare/keeper/query_decryption_key_test.go similarity index 69% rename from x/keyshare/keeper/query_aggregated_key_share_test.go rename to x/keyshare/keeper/query_decryption_key_test.go index 638c29d6..4fcaea9d 100644 --- a/x/keyshare/keeper/query_aggregated_key_share_test.go +++ b/x/keyshare/keeper/query_decryption_key_test.go @@ -24,27 +24,27 @@ func TestAggregatedKeyShareQuerySingle(t *testing.T) { msgs := createNAggregatedKeyShare(&keeper, ctx, 2) for _, tc := range []struct { desc string - request *types.QueryAggregatedKeyShareRequest - response *types.QueryAggregatedKeyShareResponse + request *types.QueryDecryptionKeyRequest + response *types.QueryDecryptionKeyResponse err error }{ { desc: "First", - request: &types.QueryAggregatedKeyShareRequest{ + request: &types.QueryDecryptionKeyRequest{ Height: msgs[0].Height, }, - response: &types.QueryAggregatedKeyShareResponse{AggregatedKeyShare: msgs[0]}, + response: &types.QueryDecryptionKeyResponse{DecryptionKey: msgs[0]}, }, { desc: "Second", - request: &types.QueryAggregatedKeyShareRequest{ + request: &types.QueryDecryptionKeyRequest{ Height: msgs[1].Height, }, - response: &types.QueryAggregatedKeyShareResponse{AggregatedKeyShare: msgs[1]}, + response: &types.QueryDecryptionKeyResponse{DecryptionKey: msgs[1]}, }, { desc: "KeyNotFound", - request: &types.QueryAggregatedKeyShareRequest{ + request: &types.QueryDecryptionKeyRequest{ Height: msgs[1].Height * 2, }, err: status.Error(codes.NotFound, "not found"), @@ -55,7 +55,7 @@ func TestAggregatedKeyShareQuerySingle(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.AggregatedKeyShare(wctx, tc.request) + response, err := keeper.DecryptionKey(wctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) } else { @@ -75,13 +75,13 @@ func TestAggregatedKeyShareQueryAllNoPagination(t *testing.T) { msgs := createNAggregatedKeyShare(&keeper, ctx, 10) for _, tc := range []struct { desc string - request *types.QueryAggregatedKeyShareAllRequest - response *types.QueryAggregatedKeyShareAllResponse + request *types.QueryDecryptionKeyAllRequest + response *types.QueryDecryptionKeyAllResponse err error }{ { desc: "QueryAll", - request: &types.QueryAggregatedKeyShareAllRequest{ + request: &types.QueryDecryptionKeyAllRequest{ Pagination: &query.PageRequest{ Key: nil, Offset: 0, @@ -90,8 +90,8 @@ func TestAggregatedKeyShareQueryAllNoPagination(t *testing.T) { Reverse: false, }, }, - response: &types.QueryAggregatedKeyShareAllResponse{ - AggregatedKeyShare: msgs, + response: &types.QueryDecryptionKeyAllResponse{ + DecryptionKeys: msgs, Pagination: &query.PageResponse{ NextKey: nil, Total: 10, @@ -100,7 +100,7 @@ func TestAggregatedKeyShareQueryAllNoPagination(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.AggregatedKeyShareAll(wctx, tc.request) + response, err := keeper.DecryptionKeyAll(wctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) } else { @@ -124,8 +124,8 @@ func TestAggregatedKeyShareQueryPaginated(t *testing.T) { offset, limit uint64, total bool, - ) *types.QueryAggregatedKeyShareAllRequest { - return &types.QueryAggregatedKeyShareAllRequest{ + ) *types.QueryDecryptionKeyAllRequest { + return &types.QueryDecryptionKeyAllRequest{ Pagination: &query.PageRequest{ Key: next, Offset: offset, @@ -137,12 +137,12 @@ func TestAggregatedKeyShareQueryPaginated(t *testing.T) { t.Run("ByOffset", func(t *testing.T) { step := 2 for i := 0; i < len(msgs); i += step { - resp, err := keeper.AggregatedKeyShareAll(wctx, request(nil, uint64(i), uint64(step), false)) + resp, err := keeper.DecryptionKeyAll(wctx, request(nil, uint64(i), uint64(step), false)) require.NoError(t, err) - require.LessOrEqual(t, len(resp.AggregatedKeyShare), step) + require.LessOrEqual(t, len(resp.DecryptionKeys), step) require.Subset(t, nullify.Fill(msgs), - nullify.Fill(resp.AggregatedKeyShare), + nullify.Fill(resp.DecryptionKeys), ) } }) @@ -150,27 +150,27 @@ func TestAggregatedKeyShareQueryPaginated(t *testing.T) { step := 2 var next []byte for i := 0; i < len(msgs); i += step { - resp, err := keeper.AggregatedKeyShareAll(wctx, request(next, 0, uint64(step), false)) + resp, err := keeper.DecryptionKeyAll(wctx, request(next, 0, uint64(step), false)) require.NoError(t, err) - require.LessOrEqual(t, len(resp.AggregatedKeyShare), step) + require.LessOrEqual(t, len(resp.DecryptionKeys), step) require.Subset(t, nullify.Fill(msgs), - nullify.Fill(resp.AggregatedKeyShare), + nullify.Fill(resp.DecryptionKeys), ) next = resp.Pagination.NextKey } }) t.Run("Total", func(t *testing.T) { - resp, err := keeper.AggregatedKeyShareAll(wctx, request(nil, 0, 0, true)) + resp, err := keeper.DecryptionKeyAll(wctx, request(nil, 0, 0, true)) require.NoError(t, err) require.Equal(t, len(msgs), int(resp.Pagination.Total)) require.ElementsMatch(t, nullify.Fill(msgs), - nullify.Fill(resp.AggregatedKeyShare), + nullify.Fill(resp.DecryptionKeys), ) }) t.Run("InvalidRequest", func(t *testing.T) { - _, err := keeper.AggregatedKeyShareAll(wctx, nil) + _, err := keeper.DecryptionKeyAll(wctx, nil) require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) }) } diff --git a/x/keyshare/keeper/request_aggr_key_share.go b/x/keyshare/keeper/request_decryption_key.go similarity index 75% rename from x/keyshare/keeper/request_aggr_key_share.go rename to x/keyshare/keeper/request_decryption_key.go index 31a9e58f..1a2dd3b3 100644 --- a/x/keyshare/keeper/request_aggr_key_share.go +++ b/x/keyshare/keeper/request_decryption_key.go @@ -14,10 +14,11 @@ import ( host "github.com/cosmos/ibc-go/v8/modules/core/24-host" ) -// TransmitRequestAggrKeysharePacket transmits the packet over IBC with the specified source port and source channel -func (k Keeper) TransmitRequestAggrKeysharePacket( +// TransmitRequestDecryptionKeyPacket transmits the packet over IBC +// with the specified source port and source channel +func (k Keeper) TransmitRequestDecryptionKeyPacket( ctx sdk.Context, - packetData types.RequestAggrKeysharePacketData, + packetData types.RequestDecryptionKeyPacketData, sourcePort, sourceChannel string, timeoutHeight clienttypes.Height, @@ -33,12 +34,12 @@ func (k Keeper) TransmitRequestAggrKeysharePacket( return k.ibcKeeperFn().ChannelKeeper.SendPacket(ctx, channelCap, sourcePort, sourceChannel, timeoutHeight, timeoutTimestamp, packetBytes) } -// OnRecvRequestAggrKeysharePacket processes packet reception -func (k Keeper) OnRecvRequestAggrKeysharePacket( +// OnRecvRequestDecryptionKeyPacket processes packet reception +func (k Keeper) OnRecvRequestDecryptionKeyPacket( ctx sdk.Context, packet channeltypes.Packet, - data types.RequestAggrKeysharePacketData, -) (packetAck types.RequestAggrKeysharePacketAck, err error) { + data types.RequestDecryptionKeyPacketData, +) (packetAck types.RequestDecryptionKeyPacketAck, err error) { // validate packet data upon receiving if err := data.ValidateBasic(); err != nil { return packetAck, err @@ -66,7 +67,7 @@ func (k Keeper) OnRecvRequestAggrKeysharePacket( var isProposalID bool switch data.Id.(type) { - case *types.RequestAggrKeysharePacketData_ProposalId: + case *types.RequestDecryptionKeyPacketData_ProposalId: isProposalID = true default: isProposalID = false @@ -74,7 +75,7 @@ func (k Keeper) OnRecvRequestAggrKeysharePacket( id := data.GetRequestId() - var keyshareRequest types.KeyShareRequest + var keyshareRequest types.DecryptionKeyRequest keyshareRequest.Identity = id keyshareRequest.Pubkey = activePubKey.PublicKey @@ -88,7 +89,7 @@ func (k Keeper) OnRecvRequestAggrKeysharePacket( PortId: packet.SourcePort, } - keyshareRequest.AggrKeyshare = "" + keyshareRequest.DecryptionKey = "" if isProposalID { keyshareRequest.ProposalId = data.GetProposalId() @@ -105,8 +106,9 @@ func (k Keeper) OnRecvRequestAggrKeysharePacket( return packetAck, nil } -// OnTimeoutRequestAggrKeysharePacket responds to the case where a packet has not been transmitted because of a timeout -func (k Keeper) OnTimeoutRequestAggrKeysharePacket(ctx sdk.Context, packet channeltypes.Packet, data types.RequestAggrKeysharePacketData) error { +// OnTimeoutRequestDecryptionKeyPacket responds to the case where a +// packet has not been transmitted because of a timeout +func (k Keeper) OnTimeoutRequestDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, data types.RequestDecryptionKeyPacketData) error { // Implement custom packet timeout logic // (Not required for fairyring since this packet is never sent from fairyring) @@ -115,11 +117,11 @@ func (k Keeper) OnTimeoutRequestAggrKeysharePacket(ctx sdk.Context, packet chann } // OnRecvRequestPrivateKeysharePacket processes packet reception -func (k Keeper) OnRecvRequestPrivateKeysharePacket( +func (k Keeper) OnRecvRequestPrivateDecryptionKeyPacket( ctx sdk.Context, packet channeltypes.Packet, - data types.RequestPrivateKeysharePacketData, -) (packetAck types.RequestPrivateKeysharePacketAck, err error) { + data types.RequestPrivateDecryptionKeyPacketData, +) (packetAck types.RequestPrivateDecryptionKeyPacketAck, err error) { // validate packet data upon receiving if err := data.ValidateBasic(); err != nil { return packetAck, err @@ -132,7 +134,7 @@ func (k Keeper) OnRecvRequestPrivateKeysharePacket( id := data.GetRequestId() - var keyshareRequest types.PrivateKeyshareRequest + var keyshareRequest types.PrivateDecryptionKeyRequest keyshareRequest.Identity = id keyshareRequest.Pubkey = activePubKey.PublicKey @@ -146,7 +148,7 @@ func (k Keeper) OnRecvRequestPrivateKeysharePacket( PortId: packet.SourcePort, } - keyshareRequest.EncryptedKeyshares = make([]*commontypes.EncryptedKeyshare, 0) + keyshareRequest.PrivateDecryptionKeys = make([]*commontypes.PrivateDecryptionKey, 0) keyshareRequest.RequestId = data.GetRequestId() keyshareRequest.Sent = false @@ -159,7 +161,7 @@ func (k Keeper) OnRecvRequestPrivateKeysharePacket( } // OnTimeoutRequestAggrKeysharePacket responds to the case where a packet has not been transmitted because of a timeout -func (k Keeper) OnTimeoutRequestPrivateKeysharePacket(ctx sdk.Context, packet channeltypes.Packet, data types.RequestPrivateKeysharePacketData) error { +func (k Keeper) OnTimeoutRequestPrivateKeysharePacket(ctx sdk.Context, packet channeltypes.Packet, data types.RequestPrivateDecryptionKeyPacketData) error { // Implement custom packet timeout logic // (Not required for fairyring since this packet is never sent from fairyring) diff --git a/x/keyshare/module/module_ibc.go b/x/keyshare/module/module_ibc.go index 912874dc..4bad5be8 100644 --- a/x/keyshare/module/module_ibc.go +++ b/x/keyshare/module/module_ibc.go @@ -151,8 +151,8 @@ func (im IBCModule) OnRecvPacket( // Dispatch packet switch packet := modulePacketData.Packet.(type) { - case *types.KeysharePacketData_RequestAggrKeysharePacket: - packetAck, err := im.keeper.OnRecvRequestAggrKeysharePacket(ctx, modulePacket, *packet.RequestAggrKeysharePacket) + case *types.KeysharePacketData_RequestDecryptionKeyPacket: + packetAck, err := im.keeper.OnRecvRequestAggrKeysharePacket(ctx, modulePacket, *packet.RequestDecryptionKeyPacket) if err != nil { ack = channeltypes.NewErrorAcknowledgement(err) } else { @@ -170,8 +170,8 @@ func (im IBCModule) OnRecvPacket( ), ) - case *types.KeysharePacketData_RequestPrivKeysharePacket: - packetAck, err := im.keeper.OnRecvRequestPrivateKeysharePacket(ctx, modulePacket, *packet.RequestPrivKeysharePacket) + case *types.KeysharePacketData_RequestPrivateDecryptionKeyPacket: + packetAck, err := im.keeper.OnRecvRequestPrivateKeysharePacket(ctx, modulePacket, *packet.RequestPrivateDecryptionKeyPacket) if err != nil { ack = channeltypes.NewErrorAcknowledgement(err) } else { @@ -189,8 +189,8 @@ func (im IBCModule) OnRecvPacket( ), ) - case *types.KeysharePacketData_GetPrivateKeysharePacket: - packetAck, err := im.keeper.OnRecvGetPrivateKeysharePacket(ctx, modulePacket, *packet.GetPrivateKeysharePacket) + case *types.KeysharePacketData_GetPrivateDecryptionKeyPacket: + packetAck, err := im.keeper.OnRecvGetPrivateKeysharePacket(ctx, modulePacket, *packet.GetPrivateDecryptionKeyPacket) if err != nil { ack = channeltypes.NewErrorAcknowledgement(err) } else { @@ -205,8 +205,8 @@ func (im IBCModule) OnRecvPacket( sdk.NewAttribute(types.AttributeKeyAckSuccess, fmt.Sprintf("%t", err != nil)), ), ) - case *types.KeysharePacketData_GetAggrKeysharePacket: - packetAck, err := im.keeper.OnRecvGetAggrKeysharePacket(ctx, modulePacket, *packet.GetAggrKeysharePacket) + case *types.KeysharePacketData_GetDecryptionKeyPacket: + packetAck, err := im.keeper.OnRecvGetAggrKeysharePacket(ctx, modulePacket, *packet.GetDecryptionKeyPacket) if err != nil { ack = channeltypes.NewErrorAcknowledgement(err) } else { @@ -273,8 +273,8 @@ func (im IBCModule) OnAcknowledgementPacket( // Dispatch packet switch packet := modulePacketData.Packet.(type) { - case *types.KeysharePacketData_AggrKeyshareDataPacket: - err := im.keeper.OnAcknowledgementAggrKeyshareDataPacket(ctx, modulePacket, *packet.AggrKeyshareDataPacket, ack) + case *types.KeysharePacketData_DecryptionKeyDataPacket: + err := im.keeper.OnAcknowledgementAggrKeyshareDataPacket(ctx, modulePacket, *packet.DecryptionKeyDataPacket, ack) if err != nil { return err } @@ -327,20 +327,20 @@ func (im IBCModule) OnTimeoutPacket( // Dispatch packet switch packet := modulePacketData.Packet.(type) { - case *types.KeysharePacketData_RequestAggrKeysharePacket: - err := im.keeper.OnTimeoutRequestAggrKeysharePacket(ctx, modulePacket, *packet.RequestAggrKeysharePacket) + case *types.KeysharePacketData_RequestDecryptionKeyPacket: + err := im.keeper.OnTimeoutRequestAggrKeysharePacket(ctx, modulePacket, *packet.RequestDecryptionKeyPacket) if err != nil { return err } - case *types.KeysharePacketData_GetAggrKeysharePacket: - err := im.keeper.OnTimeoutGetAggrKeysharePacket(ctx, modulePacket, *packet.GetAggrKeysharePacket) + case *types.KeysharePacketData_GetDecryptionKeyPacket: + err := im.keeper.OnTimeoutGetAggrKeysharePacket(ctx, modulePacket, *packet.GetDecryptionKeyPacket) if err != nil { return err } - case *types.KeysharePacketData_AggrKeyshareDataPacket: - err := im.keeper.OnTimeoutAggrKeyshareDataPacket(ctx, modulePacket, *packet.AggrKeyshareDataPacket) + case *types.KeysharePacketData_DecryptionKeyDataPacket: + err := im.keeper.OnTimeoutAggrKeyshareDataPacket(ctx, modulePacket, *packet.DecryptionKeyDataPacket) if err != nil { return err } diff --git a/x/keyshare/types/codec.go b/x/keyshare/types/codec.go index dd6f3e3d..7e1191b0 100644 --- a/x/keyshare/types/codec.go +++ b/x/keyshare/types/codec.go @@ -28,7 +28,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgDeleteAuthorizedAddress{}, ) registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgCreateGeneralKeyShare{}, + &MsgSubmitGeneralKeyShare{}, ) registry.RegisterImplementations((*sdk.Msg)(nil), &MsgOverrideLatestPubKey{}, diff --git a/x/keyshare/types/expected_keepers.go b/x/keyshare/types/expected_keepers.go index 6176f2ad..46fbd2a8 100644 --- a/x/keyshare/types/expected_keepers.go +++ b/x/keyshare/types/expected_keepers.go @@ -44,14 +44,14 @@ type ParamSubspace interface { } type GovKeeper interface { - GetRequestQueueEntry(ctx sdk.Context, reqID string) (val commontypes.RequestAggrKeyshare, found bool) - SetReqQueueEntry(ctx sdk.Context, val commontypes.RequestAggrKeyshare) + GetRequestQueueEntry(ctx sdk.Context, reqID string) (val commontypes.RequestDecryptionKey, found bool) + SetReqQueueEntry(ctx sdk.Context, val commontypes.RequestDecryptionKey) RemoveReqQueueEntry(ctx sdk.Context, reqID string) - GetAllReqQueueEntry(ctx sdk.Context) (list []commontypes.RequestAggrKeyshare) - GetSignalQueueEntry(ctx sdk.Context, reqID string) (val commontypes.GetAggrKeyshare, found bool) - SetSignalQueueEntry(ctx sdk.Context, val commontypes.GetAggrKeyshare) + GetAllReqQueueEntry(ctx sdk.Context) (list []commontypes.RequestDecryptionKey) + GetSignalQueueEntry(ctx sdk.Context, reqID string) (val commontypes.GetDecryptionKey, found bool) + SetSignalQueueEntry(ctx sdk.Context, val commontypes.GetDecryptionKey) RemoveSignalQueueEntry(ctx sdk.Context, reqID string) - GetAllSignalQueueEntry(ctx sdk.Context) (list []commontypes.GetAggrKeyshare) + GetAllSignalQueueEntry(ctx sdk.Context) (list []commontypes.GetDecryptionKey) GetProposal(ctx context.Context, proposalID uint64) (v1.Proposal, bool) SetProposal(ctx context.Context, proposal v1.Proposal) error } @@ -64,35 +64,35 @@ type PepKeeper interface { GetQueuedPubKey(ctx context.Context) (val commontypes.QueuedPublicKey, found bool) DeleteActivePubKey(ctx context.Context) DeleteQueuedPubKey(ctx context.Context) - SetEntry(ctx context.Context, val peptypes.IdentityExecutionQueue) - GetEntry(ctx context.Context, reqID string) (val peptypes.IdentityExecutionQueue, found bool) + SetEntry(ctx context.Context, val peptypes.IdentityExecutionEntry) + GetEntry(ctx context.Context, reqID string) (val peptypes.IdentityExecutionEntry, found bool) RemoveEntry(ctx context.Context, reqID string) - GetAllGenEncTxEntry(ctx context.Context) (list []peptypes.IdentityExecutionQueue) - GetSignalQueueEntry(ctx context.Context, reqID string) (val commontypes.GetAggrKeyshare, found bool) - SetSignalQueueEntry(ctx context.Context, val commontypes.GetAggrKeyshare) + GetAllGenEncTxEntry(ctx context.Context) (list []peptypes.IdentityExecutionEntry) + GetSignalQueueEntry(ctx context.Context, reqID string) (val commontypes.GetDecryptionKey, found bool) + SetSignalQueueEntry(ctx context.Context, val commontypes.GetDecryptionKey) RemoveSignalQueueEntry(ctx context.Context, reqID string) - GetAllGenEncTxSignalQueueEntry(ctx context.Context) (list []commontypes.GetAggrKeyshare) - GetExecutionQueueEntry(ctx context.Context, reqID string) (val peptypes.IdentityExecutionQueue, found bool) - SetExecutionQueueEntry(ctx context.Context, val peptypes.IdentityExecutionQueue) + GetAllGenEncTxSignalQueueEntry(ctx context.Context) (list []commontypes.GetDecryptionKey) + GetExecutionQueueEntry(ctx context.Context, reqID string) (val peptypes.IdentityExecutionEntry, found bool) + SetExecutionQueueEntry(ctx context.Context, val peptypes.IdentityExecutionEntry) RemoveExecutionQueueEntry(ctx context.Context, reqID string) - GetAllGenEncTxExecutionQueueEntry(ctx context.Context) (list []peptypes.IdentityExecutionQueue) - GetRequestQueueEntry(ctx context.Context, reqID string) (val commontypes.RequestAggrKeyshare, found bool) - SetReqQueueEntry(ctx context.Context, val commontypes.RequestAggrKeyshare) + GetAllGenEncTxExecutionQueueEntry(ctx context.Context) (list []peptypes.IdentityExecutionEntry) + GetRequestQueueEntry(ctx context.Context, reqID string) (val commontypes.RequestDecryptionKey, found bool) + SetReqQueueEntry(ctx context.Context, val commontypes.RequestDecryptionKey) RemoveReqQueueEntry(ctx context.Context, reqID string) - GetAllGenEncTxReqQueueEntry(ctx context.Context) (list []commontypes.RequestAggrKeyshare) - GetPrivateRequestQueueEntry(ctx context.Context, reqID string) (val commontypes.RequestEncryptedKeyshare, found bool) - SetPrivateReqQueueEntry(ctx context.Context, val commontypes.RequestEncryptedKeyshare) + GetAllGenEncTxReqQueueEntry(ctx context.Context) (list []commontypes.RequestDecryptionKey) + GetPrivateRequestQueueEntry(ctx context.Context, reqID string) (val commontypes.RequestPrivateDecryptionKey, found bool) + SetPrivateReqQueueEntry(ctx context.Context, val commontypes.RequestPrivateDecryptionKey) RemovePrivateReqQueueEntry(ctx context.Context, reqID string) - GetAllPrivateReqQueueEntry(ctx context.Context) (list []commontypes.RequestEncryptedKeyshare) - GetPrivateSignalQueueEntry(ctx context.Context, reqID string) (val commontypes.GetPrivateKeyshare, found bool) - SetPrivateSignalQueueEntry(ctx context.Context, val commontypes.GetPrivateKeyshare) + GetAllPrivateReqQueueEntry(ctx context.Context) (list []commontypes.RequestPrivateDecryptionKey) + GetPrivateSignalQueueEntry(ctx context.Context, reqID string) (val commontypes.GetPrivateDecryptionKey, found bool) + SetPrivateSignalQueueEntry(ctx context.Context, val commontypes.GetPrivateDecryptionKey) RemovePrivateSignalQueueEntry(ctx context.Context, reqID string) - GetAllPrivateSignalQueueEntry(ctx context.Context) (list []commontypes.GetPrivateKeyshare) + GetAllPrivateSignalQueueEntry(ctx context.Context) (list []commontypes.GetPrivateDecryptionKey) SetPrivateRequest(ctx context.Context, request peptypes.PrivateRequest) GetPrivateRequest(ctx context.Context, reqID string) (val peptypes.PrivateRequest, found bool) GetAllPrivateRequest(ctx context.Context) (list []peptypes.PrivateRequest) - GetAggregatedKeyShare(ctx context.Context, height uint64) (val peptypes.AggregatedKeyShare, found bool) - SetAggregatedKeyShare(ctx context.Context, aggregatedKeyShare peptypes.AggregatedKeyShare) + GetAggregatedKeyShare(ctx context.Context, height uint64) (val peptypes.DecryptionKey, found bool) + SetAggregatedKeyShare(ctx context.Context, aggregatedKeyShare peptypes.DecryptionKey) GetLatestHeight(ctx context.Context) string SetLatestHeight(ctx context.Context, height string) } diff --git a/x/keyshare/types/msg_general_key_share.go b/x/keyshare/types/msg_general_key_share.go index b45db2d9..a9eac008 100644 --- a/x/keyshare/types/msg_general_key_share.go +++ b/x/keyshare/types/msg_general_key_share.go @@ -6,16 +6,16 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -var _ sdk.Msg = &MsgCreateGeneralKeyShare{} +var _ sdk.Msg = &MsgSubmitGeneralKeyShare{} -func NewMsgCreateGeneralKeyShare( +func NewMsgSubmitGeneralKeyShare( creator string, idType string, idValue string, keyShare string, keyShareIndex uint64, -) *MsgCreateGeneralKeyShare { - return &MsgCreateGeneralKeyShare{ +) *MsgSubmitGeneralKeyShare { + return &MsgSubmitGeneralKeyShare{ Creator: creator, IdType: idType, IdValue: idValue, @@ -24,7 +24,7 @@ func NewMsgCreateGeneralKeyShare( } } -func (msg *MsgCreateGeneralKeyShare) ValidateBasic() error { +func (msg *MsgSubmitGeneralKeyShare) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { return sdkioerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) diff --git a/x/keyshare/types/packet.pb.go b/x/keyshare/types/packet.pb.go index d6e96bec..96391fc4 100644 --- a/x/keyshare/types/packet.pb.go +++ b/x/keyshare/types/packet.pb.go @@ -28,16 +28,19 @@ var _ = time.Kitchen // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// KeysharePacketData defines all the packet types of the keyshare module type KeysharePacketData struct { + // packet can be one of the following types + // // Types that are valid to be assigned to Packet: // *KeysharePacketData_NoData - // *KeysharePacketData_RequestAggrKeysharePacket - // *KeysharePacketData_GetAggrKeysharePacket - // *KeysharePacketData_AggrKeyshareDataPacket - // *KeysharePacketData_EncryptedKeysharesPacketData + // *KeysharePacketData_RequestDecryptionKeyPacket + // *KeysharePacketData_GetDecryptionKeyPacket + // *KeysharePacketData_DecryptionKeyDataPacket + // *KeysharePacketData_PrivateDecryptionKeyDataPacket // *KeysharePacketData_CurrentKeysPacket - // *KeysharePacketData_RequestPrivKeysharePacket - // *KeysharePacketData_GetPrivateKeysharePacket + // *KeysharePacketData_RequestPrivateDecryptionKeyPacket + // *KeysharePacketData_GetPrivateDecryptionKeyPacket Packet isKeysharePacketData_Packet `protobuf_oneof:"packet"` } @@ -81,38 +84,38 @@ type isKeysharePacketData_Packet interface { } type KeysharePacketData_NoData struct { - NoData *NoData `protobuf:"bytes,1,opt,name=noData,proto3,oneof" json:"noData,omitempty"` + NoData *NoData `protobuf:"bytes,1,opt,name=no_data,json=noData,proto3,oneof" json:"no_data,omitempty"` } -type KeysharePacketData_RequestAggrKeysharePacket struct { - RequestAggrKeysharePacket *RequestAggrKeysharePacketData `protobuf:"bytes,2,opt,name=requestAggrKeysharePacket,proto3,oneof" json:"requestAggrKeysharePacket,omitempty"` +type KeysharePacketData_RequestDecryptionKeyPacket struct { + RequestDecryptionKeyPacket *RequestDecryptionKeyPacketData `protobuf:"bytes,2,opt,name=request_decryption_key_packet,json=requestDecryptionKeyPacket,proto3,oneof" json:"request_decryption_key_packet,omitempty"` } -type KeysharePacketData_GetAggrKeysharePacket struct { - GetAggrKeysharePacket *GetAggrKeysharePacketData `protobuf:"bytes,3,opt,name=getAggrKeysharePacket,proto3,oneof" json:"getAggrKeysharePacket,omitempty"` +type KeysharePacketData_GetDecryptionKeyPacket struct { + GetDecryptionKeyPacket *GetDecryptionKeyPacketData `protobuf:"bytes,3,opt,name=get_decryption_key_packet,json=getDecryptionKeyPacket,proto3,oneof" json:"get_decryption_key_packet,omitempty"` } -type KeysharePacketData_AggrKeyshareDataPacket struct { - AggrKeyshareDataPacket *AggrKeyshareDataPacketData `protobuf:"bytes,4,opt,name=aggrKeyshareDataPacket,proto3,oneof" json:"aggrKeyshareDataPacket,omitempty"` +type KeysharePacketData_DecryptionKeyDataPacket struct { + DecryptionKeyDataPacket *DecryptionKeyDataPacketData `protobuf:"bytes,4,opt,name=decryption_key_data_packet,json=decryptionKeyDataPacket,proto3,oneof" json:"decryption_key_data_packet,omitempty"` } -type KeysharePacketData_EncryptedKeysharesPacketData struct { - EncryptedKeysharesPacketData *EncryptedKeysharesPacketData `protobuf:"bytes,5,opt,name=encryptedKeysharesPacketData,proto3,oneof" json:"encryptedKeysharesPacketData,omitempty"` +type KeysharePacketData_PrivateDecryptionKeyDataPacket struct { + PrivateDecryptionKeyDataPacket *PrivateDecryptionKeyDataPacketData `protobuf:"bytes,5,opt,name=private_decryption_key_data_packet,json=privateDecryptionKeyDataPacket,proto3,oneof" json:"private_decryption_key_data_packet,omitempty"` } type KeysharePacketData_CurrentKeysPacket struct { - CurrentKeysPacket *CurrentKeysPacketData `protobuf:"bytes,6,opt,name=currentKeysPacket,proto3,oneof" json:"currentKeysPacket,omitempty"` + CurrentKeysPacket *CurrentKeysPacketData `protobuf:"bytes,6,opt,name=current_keys_packet,json=currentKeysPacket,proto3,oneof" json:"current_keys_packet,omitempty"` } -type KeysharePacketData_RequestPrivKeysharePacket struct { - RequestPrivKeysharePacket *RequestPrivateKeysharePacketData `protobuf:"bytes,7,opt,name=request_priv_keyshare_packet,json=requestPrivKeysharePacket,proto3,oneof" json:"request_priv_keyshare_packet,omitempty"` +type KeysharePacketData_RequestPrivateDecryptionKeyPacket struct { + RequestPrivateDecryptionKeyPacket *RequestPrivateDecryptionKeyPacketData `protobuf:"bytes,7,opt,name=request_private_decryption_key_packet,json=requestPrivateDecryptionKeyPacket,proto3,oneof" json:"request_private_decryption_key_packet,omitempty"` } -type KeysharePacketData_GetPrivateKeysharePacket struct { - GetPrivateKeysharePacket *GetPrivateKeysharePacketData `protobuf:"bytes,8,opt,name=getPrivateKeysharePacket,proto3,oneof" json:"getPrivateKeysharePacket,omitempty"` +type KeysharePacketData_GetPrivateDecryptionKeyPacket struct { + GetPrivateDecryptionKeyPacket *GetPrivateDecryptionKeyPacketData `protobuf:"bytes,8,opt,name=get_private_decryption_key_packet,json=getPrivateDecryptionKeyPacket,proto3,oneof" json:"get_private_decryption_key_packet,omitempty"` } -func (*KeysharePacketData_NoData) isKeysharePacketData_Packet() {} -func (*KeysharePacketData_RequestAggrKeysharePacket) isKeysharePacketData_Packet() {} -func (*KeysharePacketData_GetAggrKeysharePacket) isKeysharePacketData_Packet() {} -func (*KeysharePacketData_AggrKeyshareDataPacket) isKeysharePacketData_Packet() {} -func (*KeysharePacketData_EncryptedKeysharesPacketData) isKeysharePacketData_Packet() {} -func (*KeysharePacketData_CurrentKeysPacket) isKeysharePacketData_Packet() {} -func (*KeysharePacketData_RequestPrivKeysharePacket) isKeysharePacketData_Packet() {} -func (*KeysharePacketData_GetPrivateKeysharePacket) isKeysharePacketData_Packet() {} +func (*KeysharePacketData_NoData) isKeysharePacketData_Packet() {} +func (*KeysharePacketData_RequestDecryptionKeyPacket) isKeysharePacketData_Packet() {} +func (*KeysharePacketData_GetDecryptionKeyPacket) isKeysharePacketData_Packet() {} +func (*KeysharePacketData_DecryptionKeyDataPacket) isKeysharePacketData_Packet() {} +func (*KeysharePacketData_PrivateDecryptionKeyDataPacket) isKeysharePacketData_Packet() {} +func (*KeysharePacketData_CurrentKeysPacket) isKeysharePacketData_Packet() {} +func (*KeysharePacketData_RequestPrivateDecryptionKeyPacket) isKeysharePacketData_Packet() {} +func (*KeysharePacketData_GetPrivateDecryptionKeyPacket) isKeysharePacketData_Packet() {} func (m *KeysharePacketData) GetPacket() isKeysharePacketData_Packet { if m != nil { @@ -128,30 +131,30 @@ func (m *KeysharePacketData) GetNoData() *NoData { return nil } -func (m *KeysharePacketData) GetRequestAggrKeysharePacket() *RequestAggrKeysharePacketData { - if x, ok := m.GetPacket().(*KeysharePacketData_RequestAggrKeysharePacket); ok { - return x.RequestAggrKeysharePacket +func (m *KeysharePacketData) GetRequestDecryptionKeyPacket() *RequestDecryptionKeyPacketData { + if x, ok := m.GetPacket().(*KeysharePacketData_RequestDecryptionKeyPacket); ok { + return x.RequestDecryptionKeyPacket } return nil } -func (m *KeysharePacketData) GetGetAggrKeysharePacket() *GetAggrKeysharePacketData { - if x, ok := m.GetPacket().(*KeysharePacketData_GetAggrKeysharePacket); ok { - return x.GetAggrKeysharePacket +func (m *KeysharePacketData) GetGetDecryptionKeyPacket() *GetDecryptionKeyPacketData { + if x, ok := m.GetPacket().(*KeysharePacketData_GetDecryptionKeyPacket); ok { + return x.GetDecryptionKeyPacket } return nil } -func (m *KeysharePacketData) GetAggrKeyshareDataPacket() *AggrKeyshareDataPacketData { - if x, ok := m.GetPacket().(*KeysharePacketData_AggrKeyshareDataPacket); ok { - return x.AggrKeyshareDataPacket +func (m *KeysharePacketData) GetDecryptionKeyDataPacket() *DecryptionKeyDataPacketData { + if x, ok := m.GetPacket().(*KeysharePacketData_DecryptionKeyDataPacket); ok { + return x.DecryptionKeyDataPacket } return nil } -func (m *KeysharePacketData) GetEncryptedKeysharesPacketData() *EncryptedKeysharesPacketData { - if x, ok := m.GetPacket().(*KeysharePacketData_EncryptedKeysharesPacketData); ok { - return x.EncryptedKeysharesPacketData +func (m *KeysharePacketData) GetPrivateDecryptionKeyDataPacket() *PrivateDecryptionKeyDataPacketData { + if x, ok := m.GetPacket().(*KeysharePacketData_PrivateDecryptionKeyDataPacket); ok { + return x.PrivateDecryptionKeyDataPacket } return nil } @@ -163,16 +166,16 @@ func (m *KeysharePacketData) GetCurrentKeysPacket() *CurrentKeysPacketData { return nil } -func (m *KeysharePacketData) GetRequestPrivKeysharePacket() *RequestPrivateKeysharePacketData { - if x, ok := m.GetPacket().(*KeysharePacketData_RequestPrivKeysharePacket); ok { - return x.RequestPrivKeysharePacket +func (m *KeysharePacketData) GetRequestPrivateDecryptionKeyPacket() *RequestPrivateDecryptionKeyPacketData { + if x, ok := m.GetPacket().(*KeysharePacketData_RequestPrivateDecryptionKeyPacket); ok { + return x.RequestPrivateDecryptionKeyPacket } return nil } -func (m *KeysharePacketData) GetGetPrivateKeysharePacket() *GetPrivateKeysharePacketData { - if x, ok := m.GetPacket().(*KeysharePacketData_GetPrivateKeysharePacket); ok { - return x.GetPrivateKeysharePacket +func (m *KeysharePacketData) GetGetPrivateDecryptionKeyPacket() *GetPrivateDecryptionKeyPacketData { + if x, ok := m.GetPacket().(*KeysharePacketData_GetPrivateDecryptionKeyPacket); ok { + return x.GetPrivateDecryptionKeyPacket } return nil } @@ -181,16 +184,17 @@ func (m *KeysharePacketData) GetGetPrivateKeysharePacket() *GetPrivateKeysharePa func (*KeysharePacketData) XXX_OneofWrappers() []interface{} { return []interface{}{ (*KeysharePacketData_NoData)(nil), - (*KeysharePacketData_RequestAggrKeysharePacket)(nil), - (*KeysharePacketData_GetAggrKeysharePacket)(nil), - (*KeysharePacketData_AggrKeyshareDataPacket)(nil), - (*KeysharePacketData_EncryptedKeysharesPacketData)(nil), + (*KeysharePacketData_RequestDecryptionKeyPacket)(nil), + (*KeysharePacketData_GetDecryptionKeyPacket)(nil), + (*KeysharePacketData_DecryptionKeyDataPacket)(nil), + (*KeysharePacketData_PrivateDecryptionKeyDataPacket)(nil), (*KeysharePacketData_CurrentKeysPacket)(nil), - (*KeysharePacketData_RequestPrivKeysharePacket)(nil), - (*KeysharePacketData_GetPrivateKeysharePacket)(nil), + (*KeysharePacketData_RequestPrivateDecryptionKeyPacket)(nil), + (*KeysharePacketData_GetPrivateDecryptionKeyPacket)(nil), } } +// NoData defines a blank packet type NoData struct { } @@ -227,28 +231,30 @@ func (m *NoData) XXX_DiscardUnknown() { var xxx_messageInfo_NoData proto.InternalMessageInfo -// RequestAggrKeysharePacketData defines a struct for the packet payload -type RequestAggrKeysharePacketData struct { +// RequestDecryptionKeyPacketData defines a struct for the packet payload +type RequestDecryptionKeyPacketData struct { Requester string `protobuf:"bytes,1,opt,name=requester,proto3" json:"requester,omitempty"` + // id can either be a request id or a proposal id + // // Types that are valid to be assigned to Id: - // *RequestAggrKeysharePacketData_ProposalId - // *RequestAggrKeysharePacketData_RequestId - Id isRequestAggrKeysharePacketData_Id `protobuf_oneof:"id"` - EstimatedDelay *time.Duration `protobuf:"bytes,4,opt,name=estimated_delay,json=estimatedDelay,proto3,stdduration" json:"estimated_delay,omitempty"` + // *RequestDecryptionKeyPacketData_ProposalId + // *RequestDecryptionKeyPacketData_RequestId + Id isRequestDecryptionKeyPacketData_Id `protobuf_oneof:"id"` + EstimatedDelay *time.Duration `protobuf:"bytes,4,opt,name=estimated_delay,json=estimatedDelay,proto3,stdduration" json:"estimated_delay,omitempty"` } -func (m *RequestAggrKeysharePacketData) Reset() { *m = RequestAggrKeysharePacketData{} } -func (m *RequestAggrKeysharePacketData) String() string { return proto.CompactTextString(m) } -func (*RequestAggrKeysharePacketData) ProtoMessage() {} -func (*RequestAggrKeysharePacketData) Descriptor() ([]byte, []int) { +func (m *RequestDecryptionKeyPacketData) Reset() { *m = RequestDecryptionKeyPacketData{} } +func (m *RequestDecryptionKeyPacketData) String() string { return proto.CompactTextString(m) } +func (*RequestDecryptionKeyPacketData) ProtoMessage() {} +func (*RequestDecryptionKeyPacketData) Descriptor() ([]byte, []int) { return fileDescriptor_220841e1bebf3b1b, []int{2} } -func (m *RequestAggrKeysharePacketData) XXX_Unmarshal(b []byte) error { +func (m *RequestDecryptionKeyPacketData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RequestAggrKeysharePacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RequestDecryptionKeyPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RequestAggrKeysharePacketData.Marshal(b, m, deterministic) + return xxx_messageInfo_RequestDecryptionKeyPacketData.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -258,63 +264,63 @@ func (m *RequestAggrKeysharePacketData) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *RequestAggrKeysharePacketData) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestAggrKeysharePacketData.Merge(m, src) +func (m *RequestDecryptionKeyPacketData) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestDecryptionKeyPacketData.Merge(m, src) } -func (m *RequestAggrKeysharePacketData) XXX_Size() int { +func (m *RequestDecryptionKeyPacketData) XXX_Size() int { return m.Size() } -func (m *RequestAggrKeysharePacketData) XXX_DiscardUnknown() { - xxx_messageInfo_RequestAggrKeysharePacketData.DiscardUnknown(m) +func (m *RequestDecryptionKeyPacketData) XXX_DiscardUnknown() { + xxx_messageInfo_RequestDecryptionKeyPacketData.DiscardUnknown(m) } -var xxx_messageInfo_RequestAggrKeysharePacketData proto.InternalMessageInfo +var xxx_messageInfo_RequestDecryptionKeyPacketData proto.InternalMessageInfo -type isRequestAggrKeysharePacketData_Id interface { - isRequestAggrKeysharePacketData_Id() +type isRequestDecryptionKeyPacketData_Id interface { + isRequestDecryptionKeyPacketData_Id() MarshalTo([]byte) (int, error) Size() int } -type RequestAggrKeysharePacketData_ProposalId struct { +type RequestDecryptionKeyPacketData_ProposalId struct { ProposalId string `protobuf:"bytes,2,opt,name=proposal_id,json=proposalId,proto3,oneof" json:"proposal_id,omitempty"` } -type RequestAggrKeysharePacketData_RequestId struct { +type RequestDecryptionKeyPacketData_RequestId struct { RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3,oneof" json:"request_id,omitempty"` } -func (*RequestAggrKeysharePacketData_ProposalId) isRequestAggrKeysharePacketData_Id() {} -func (*RequestAggrKeysharePacketData_RequestId) isRequestAggrKeysharePacketData_Id() {} +func (*RequestDecryptionKeyPacketData_ProposalId) isRequestDecryptionKeyPacketData_Id() {} +func (*RequestDecryptionKeyPacketData_RequestId) isRequestDecryptionKeyPacketData_Id() {} -func (m *RequestAggrKeysharePacketData) GetId() isRequestAggrKeysharePacketData_Id { +func (m *RequestDecryptionKeyPacketData) GetId() isRequestDecryptionKeyPacketData_Id { if m != nil { return m.Id } return nil } -func (m *RequestAggrKeysharePacketData) GetRequester() string { +func (m *RequestDecryptionKeyPacketData) GetRequester() string { if m != nil { return m.Requester } return "" } -func (m *RequestAggrKeysharePacketData) GetProposalId() string { - if x, ok := m.GetId().(*RequestAggrKeysharePacketData_ProposalId); ok { +func (m *RequestDecryptionKeyPacketData) GetProposalId() string { + if x, ok := m.GetId().(*RequestDecryptionKeyPacketData_ProposalId); ok { return x.ProposalId } return "" } -func (m *RequestAggrKeysharePacketData) GetRequestId() string { - if x, ok := m.GetId().(*RequestAggrKeysharePacketData_RequestId); ok { +func (m *RequestDecryptionKeyPacketData) GetRequestId() string { + if x, ok := m.GetId().(*RequestDecryptionKeyPacketData_RequestId); ok { return x.RequestId } return "" } -func (m *RequestAggrKeysharePacketData) GetEstimatedDelay() *time.Duration { +func (m *RequestDecryptionKeyPacketData) GetEstimatedDelay() *time.Duration { if m != nil { return m.EstimatedDelay } @@ -322,30 +328,31 @@ func (m *RequestAggrKeysharePacketData) GetEstimatedDelay() *time.Duration { } // XXX_OneofWrappers is for the internal use of the proto package. -func (*RequestAggrKeysharePacketData) XXX_OneofWrappers() []interface{} { +func (*RequestDecryptionKeyPacketData) XXX_OneofWrappers() []interface{} { return []interface{}{ - (*RequestAggrKeysharePacketData_ProposalId)(nil), - (*RequestAggrKeysharePacketData_RequestId)(nil), + (*RequestDecryptionKeyPacketData_ProposalId)(nil), + (*RequestDecryptionKeyPacketData_RequestId)(nil), } } -type RequestPrivateKeysharePacketData struct { +// RequestPrivateDecryptionKeyPacketData defines a struct for the packet payload +type RequestPrivateDecryptionKeyPacketData struct { Requester string `protobuf:"bytes,1,opt,name=requester,proto3" json:"requester,omitempty"` RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` } -func (m *RequestPrivateKeysharePacketData) Reset() { *m = RequestPrivateKeysharePacketData{} } -func (m *RequestPrivateKeysharePacketData) String() string { return proto.CompactTextString(m) } -func (*RequestPrivateKeysharePacketData) ProtoMessage() {} -func (*RequestPrivateKeysharePacketData) Descriptor() ([]byte, []int) { +func (m *RequestPrivateDecryptionKeyPacketData) Reset() { *m = RequestPrivateDecryptionKeyPacketData{} } +func (m *RequestPrivateDecryptionKeyPacketData) String() string { return proto.CompactTextString(m) } +func (*RequestPrivateDecryptionKeyPacketData) ProtoMessage() {} +func (*RequestPrivateDecryptionKeyPacketData) Descriptor() ([]byte, []int) { return fileDescriptor_220841e1bebf3b1b, []int{3} } -func (m *RequestPrivateKeysharePacketData) XXX_Unmarshal(b []byte) error { +func (m *RequestPrivateDecryptionKeyPacketData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RequestPrivateKeysharePacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RequestPrivateDecryptionKeyPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RequestPrivateKeysharePacketData.Marshal(b, m, deterministic) + return xxx_messageInfo_RequestPrivateDecryptionKeyPacketData.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -355,49 +362,50 @@ func (m *RequestPrivateKeysharePacketData) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } -func (m *RequestPrivateKeysharePacketData) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestPrivateKeysharePacketData.Merge(m, src) +func (m *RequestPrivateDecryptionKeyPacketData) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestPrivateDecryptionKeyPacketData.Merge(m, src) } -func (m *RequestPrivateKeysharePacketData) XXX_Size() int { +func (m *RequestPrivateDecryptionKeyPacketData) XXX_Size() int { return m.Size() } -func (m *RequestPrivateKeysharePacketData) XXX_DiscardUnknown() { - xxx_messageInfo_RequestPrivateKeysharePacketData.DiscardUnknown(m) +func (m *RequestPrivateDecryptionKeyPacketData) XXX_DiscardUnknown() { + xxx_messageInfo_RequestPrivateDecryptionKeyPacketData.DiscardUnknown(m) } -var xxx_messageInfo_RequestPrivateKeysharePacketData proto.InternalMessageInfo +var xxx_messageInfo_RequestPrivateDecryptionKeyPacketData proto.InternalMessageInfo -func (m *RequestPrivateKeysharePacketData) GetRequester() string { +func (m *RequestPrivateDecryptionKeyPacketData) GetRequester() string { if m != nil { return m.Requester } return "" } -func (m *RequestPrivateKeysharePacketData) GetRequestId() string { +func (m *RequestPrivateDecryptionKeyPacketData) GetRequestId() string { if m != nil { return m.RequestId } return "" } -type RequestPrivateKeysharePacketAck struct { +// RequestPrivateDecryptionKeyPacketAck defines a struct for the packet acknowledgment +type RequestPrivateDecryptionKeyPacketAck struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` } -func (m *RequestPrivateKeysharePacketAck) Reset() { *m = RequestPrivateKeysharePacketAck{} } -func (m *RequestPrivateKeysharePacketAck) String() string { return proto.CompactTextString(m) } -func (*RequestPrivateKeysharePacketAck) ProtoMessage() {} -func (*RequestPrivateKeysharePacketAck) Descriptor() ([]byte, []int) { +func (m *RequestPrivateDecryptionKeyPacketAck) Reset() { *m = RequestPrivateDecryptionKeyPacketAck{} } +func (m *RequestPrivateDecryptionKeyPacketAck) String() string { return proto.CompactTextString(m) } +func (*RequestPrivateDecryptionKeyPacketAck) ProtoMessage() {} +func (*RequestPrivateDecryptionKeyPacketAck) Descriptor() ([]byte, []int) { return fileDescriptor_220841e1bebf3b1b, []int{4} } -func (m *RequestPrivateKeysharePacketAck) XXX_Unmarshal(b []byte) error { +func (m *RequestPrivateDecryptionKeyPacketAck) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RequestPrivateKeysharePacketAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RequestPrivateDecryptionKeyPacketAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RequestPrivateKeysharePacketAck.Marshal(b, m, deterministic) + return xxx_messageInfo_RequestPrivateDecryptionKeyPacketAck.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -407,50 +415,50 @@ func (m *RequestPrivateKeysharePacketAck) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (m *RequestPrivateKeysharePacketAck) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestPrivateKeysharePacketAck.Merge(m, src) +func (m *RequestPrivateDecryptionKeyPacketAck) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestPrivateDecryptionKeyPacketAck.Merge(m, src) } -func (m *RequestPrivateKeysharePacketAck) XXX_Size() int { +func (m *RequestPrivateDecryptionKeyPacketAck) XXX_Size() int { return m.Size() } -func (m *RequestPrivateKeysharePacketAck) XXX_DiscardUnknown() { - xxx_messageInfo_RequestPrivateKeysharePacketAck.DiscardUnknown(m) +func (m *RequestPrivateDecryptionKeyPacketAck) XXX_DiscardUnknown() { + xxx_messageInfo_RequestPrivateDecryptionKeyPacketAck.DiscardUnknown(m) } -var xxx_messageInfo_RequestPrivateKeysharePacketAck proto.InternalMessageInfo +var xxx_messageInfo_RequestPrivateDecryptionKeyPacketAck proto.InternalMessageInfo -func (m *RequestPrivateKeysharePacketAck) GetIdentity() string { +func (m *RequestPrivateDecryptionKeyPacketAck) GetIdentity() string { if m != nil { return m.Identity } return "" } -func (m *RequestPrivateKeysharePacketAck) GetPubkey() string { +func (m *RequestPrivateDecryptionKeyPacketAck) GetPubkey() string { if m != nil { return m.Pubkey } return "" } -// RequestAggrKeysharePacketAck defines a struct for the packet acknowledgment -type RequestAggrKeysharePacketAck struct { +// RequestDecryptionKeyPacketAck defines a struct for the packet acknowledgment +type RequestDecryptionKeyPacketAck struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` } -func (m *RequestAggrKeysharePacketAck) Reset() { *m = RequestAggrKeysharePacketAck{} } -func (m *RequestAggrKeysharePacketAck) String() string { return proto.CompactTextString(m) } -func (*RequestAggrKeysharePacketAck) ProtoMessage() {} -func (*RequestAggrKeysharePacketAck) Descriptor() ([]byte, []int) { +func (m *RequestDecryptionKeyPacketAck) Reset() { *m = RequestDecryptionKeyPacketAck{} } +func (m *RequestDecryptionKeyPacketAck) String() string { return proto.CompactTextString(m) } +func (*RequestDecryptionKeyPacketAck) ProtoMessage() {} +func (*RequestDecryptionKeyPacketAck) Descriptor() ([]byte, []int) { return fileDescriptor_220841e1bebf3b1b, []int{5} } -func (m *RequestAggrKeysharePacketAck) XXX_Unmarshal(b []byte) error { +func (m *RequestDecryptionKeyPacketAck) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RequestAggrKeysharePacketAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RequestDecryptionKeyPacketAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RequestAggrKeysharePacketAck.Marshal(b, m, deterministic) + return xxx_messageInfo_RequestDecryptionKeyPacketAck.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -460,49 +468,49 @@ func (m *RequestAggrKeysharePacketAck) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *RequestAggrKeysharePacketAck) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestAggrKeysharePacketAck.Merge(m, src) +func (m *RequestDecryptionKeyPacketAck) XXX_Merge(src proto.Message) { + xxx_messageInfo_RequestDecryptionKeyPacketAck.Merge(m, src) } -func (m *RequestAggrKeysharePacketAck) XXX_Size() int { +func (m *RequestDecryptionKeyPacketAck) XXX_Size() int { return m.Size() } -func (m *RequestAggrKeysharePacketAck) XXX_DiscardUnknown() { - xxx_messageInfo_RequestAggrKeysharePacketAck.DiscardUnknown(m) +func (m *RequestDecryptionKeyPacketAck) XXX_DiscardUnknown() { + xxx_messageInfo_RequestDecryptionKeyPacketAck.DiscardUnknown(m) } -var xxx_messageInfo_RequestAggrKeysharePacketAck proto.InternalMessageInfo +var xxx_messageInfo_RequestDecryptionKeyPacketAck proto.InternalMessageInfo -func (m *RequestAggrKeysharePacketAck) GetIdentity() string { +func (m *RequestDecryptionKeyPacketAck) GetIdentity() string { if m != nil { return m.Identity } return "" } -func (m *RequestAggrKeysharePacketAck) GetPubkey() string { +func (m *RequestDecryptionKeyPacketAck) GetPubkey() string { if m != nil { return m.Pubkey } return "" } -// GetAggrKeysharePacketData defines a struct for the packet payload -type GetAggrKeysharePacketData struct { +// GetDecryptionKeyPacketData defines a struct for the packet payload +type GetDecryptionKeyPacketData struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` } -func (m *GetAggrKeysharePacketData) Reset() { *m = GetAggrKeysharePacketData{} } -func (m *GetAggrKeysharePacketData) String() string { return proto.CompactTextString(m) } -func (*GetAggrKeysharePacketData) ProtoMessage() {} -func (*GetAggrKeysharePacketData) Descriptor() ([]byte, []int) { +func (m *GetDecryptionKeyPacketData) Reset() { *m = GetDecryptionKeyPacketData{} } +func (m *GetDecryptionKeyPacketData) String() string { return proto.CompactTextString(m) } +func (*GetDecryptionKeyPacketData) ProtoMessage() {} +func (*GetDecryptionKeyPacketData) Descriptor() ([]byte, []int) { return fileDescriptor_220841e1bebf3b1b, []int{6} } -func (m *GetAggrKeysharePacketData) XXX_Unmarshal(b []byte) error { +func (m *GetDecryptionKeyPacketData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *GetAggrKeysharePacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *GetDecryptionKeyPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_GetAggrKeysharePacketData.Marshal(b, m, deterministic) + return xxx_messageInfo_GetDecryptionKeyPacketData.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -512,41 +520,41 @@ func (m *GetAggrKeysharePacketData) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *GetAggrKeysharePacketData) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAggrKeysharePacketData.Merge(m, src) +func (m *GetDecryptionKeyPacketData) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDecryptionKeyPacketData.Merge(m, src) } -func (m *GetAggrKeysharePacketData) XXX_Size() int { +func (m *GetDecryptionKeyPacketData) XXX_Size() int { return m.Size() } -func (m *GetAggrKeysharePacketData) XXX_DiscardUnknown() { - xxx_messageInfo_GetAggrKeysharePacketData.DiscardUnknown(m) +func (m *GetDecryptionKeyPacketData) XXX_DiscardUnknown() { + xxx_messageInfo_GetDecryptionKeyPacketData.DiscardUnknown(m) } -var xxx_messageInfo_GetAggrKeysharePacketData proto.InternalMessageInfo +var xxx_messageInfo_GetDecryptionKeyPacketData proto.InternalMessageInfo -func (m *GetAggrKeysharePacketData) GetIdentity() string { +func (m *GetDecryptionKeyPacketData) GetIdentity() string { if m != nil { return m.Identity } return "" } -// GetAggrKeysharePacketAck defines a struct for the packet acknowledgment -type GetAggrKeysharePacketAck struct { +// GetDecryptionKeyPacketAck defines a struct for the packet acknowledgment +type GetDecryptionKeyPacketAck struct { } -func (m *GetAggrKeysharePacketAck) Reset() { *m = GetAggrKeysharePacketAck{} } -func (m *GetAggrKeysharePacketAck) String() string { return proto.CompactTextString(m) } -func (*GetAggrKeysharePacketAck) ProtoMessage() {} -func (*GetAggrKeysharePacketAck) Descriptor() ([]byte, []int) { +func (m *GetDecryptionKeyPacketAck) Reset() { *m = GetDecryptionKeyPacketAck{} } +func (m *GetDecryptionKeyPacketAck) String() string { return proto.CompactTextString(m) } +func (*GetDecryptionKeyPacketAck) ProtoMessage() {} +func (*GetDecryptionKeyPacketAck) Descriptor() ([]byte, []int) { return fileDescriptor_220841e1bebf3b1b, []int{7} } -func (m *GetAggrKeysharePacketAck) XXX_Unmarshal(b []byte) error { +func (m *GetDecryptionKeyPacketAck) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *GetAggrKeysharePacketAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *GetDecryptionKeyPacketAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_GetAggrKeysharePacketAck.Marshal(b, m, deterministic) + return xxx_messageInfo_GetDecryptionKeyPacketAck.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -556,37 +564,37 @@ func (m *GetAggrKeysharePacketAck) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *GetAggrKeysharePacketAck) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAggrKeysharePacketAck.Merge(m, src) +func (m *GetDecryptionKeyPacketAck) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetDecryptionKeyPacketAck.Merge(m, src) } -func (m *GetAggrKeysharePacketAck) XXX_Size() int { +func (m *GetDecryptionKeyPacketAck) XXX_Size() int { return m.Size() } -func (m *GetAggrKeysharePacketAck) XXX_DiscardUnknown() { - xxx_messageInfo_GetAggrKeysharePacketAck.DiscardUnknown(m) +func (m *GetDecryptionKeyPacketAck) XXX_DiscardUnknown() { + xxx_messageInfo_GetDecryptionKeyPacketAck.DiscardUnknown(m) } -var xxx_messageInfo_GetAggrKeysharePacketAck proto.InternalMessageInfo +var xxx_messageInfo_GetDecryptionKeyPacketAck proto.InternalMessageInfo -// GetPrivateKeysharePacketData defines a struct for the packet payload -type GetPrivateKeysharePacketData struct { +// GetPrivateDecryptionKeyPacketData defines a struct for the packet payload +type GetPrivateDecryptionKeyPacketData struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Requester string `protobuf:"bytes,2,opt,name=requester,proto3" json:"requester,omitempty"` SecpPubkey string `protobuf:"bytes,3,opt,name=secp_pubkey,json=secpPubkey,proto3" json:"secp_pubkey,omitempty"` } -func (m *GetPrivateKeysharePacketData) Reset() { *m = GetPrivateKeysharePacketData{} } -func (m *GetPrivateKeysharePacketData) String() string { return proto.CompactTextString(m) } -func (*GetPrivateKeysharePacketData) ProtoMessage() {} -func (*GetPrivateKeysharePacketData) Descriptor() ([]byte, []int) { +func (m *GetPrivateDecryptionKeyPacketData) Reset() { *m = GetPrivateDecryptionKeyPacketData{} } +func (m *GetPrivateDecryptionKeyPacketData) String() string { return proto.CompactTextString(m) } +func (*GetPrivateDecryptionKeyPacketData) ProtoMessage() {} +func (*GetPrivateDecryptionKeyPacketData) Descriptor() ([]byte, []int) { return fileDescriptor_220841e1bebf3b1b, []int{8} } -func (m *GetPrivateKeysharePacketData) XXX_Unmarshal(b []byte) error { +func (m *GetPrivateDecryptionKeyPacketData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *GetPrivateKeysharePacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *GetPrivateDecryptionKeyPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_GetPrivateKeysharePacketData.Marshal(b, m, deterministic) + return xxx_messageInfo_GetPrivateDecryptionKeyPacketData.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -596,33 +604,33 @@ func (m *GetPrivateKeysharePacketData) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *GetPrivateKeysharePacketData) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetPrivateKeysharePacketData.Merge(m, src) +func (m *GetPrivateDecryptionKeyPacketData) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetPrivateDecryptionKeyPacketData.Merge(m, src) } -func (m *GetPrivateKeysharePacketData) XXX_Size() int { +func (m *GetPrivateDecryptionKeyPacketData) XXX_Size() int { return m.Size() } -func (m *GetPrivateKeysharePacketData) XXX_DiscardUnknown() { - xxx_messageInfo_GetPrivateKeysharePacketData.DiscardUnknown(m) +func (m *GetPrivateDecryptionKeyPacketData) XXX_DiscardUnknown() { + xxx_messageInfo_GetPrivateDecryptionKeyPacketData.DiscardUnknown(m) } -var xxx_messageInfo_GetPrivateKeysharePacketData proto.InternalMessageInfo +var xxx_messageInfo_GetPrivateDecryptionKeyPacketData proto.InternalMessageInfo -func (m *GetPrivateKeysharePacketData) GetIdentity() string { +func (m *GetPrivateDecryptionKeyPacketData) GetIdentity() string { if m != nil { return m.Identity } return "" } -func (m *GetPrivateKeysharePacketData) GetRequester() string { +func (m *GetPrivateDecryptionKeyPacketData) GetRequester() string { if m != nil { return m.Requester } return "" } -func (m *GetPrivateKeysharePacketData) GetSecpPubkey() string { +func (m *GetPrivateDecryptionKeyPacketData) GetSecpPubkey() string { if m != nil { return m.SecpPubkey } @@ -630,21 +638,21 @@ func (m *GetPrivateKeysharePacketData) GetSecpPubkey() string { } // GetPrivateKeysharePacketAck defines a struct for the packet acknowledgment -type GetPrivateKeysharePacketAck struct { +type GetPrivateDecryptionKeyPacketAck struct { } -func (m *GetPrivateKeysharePacketAck) Reset() { *m = GetPrivateKeysharePacketAck{} } -func (m *GetPrivateKeysharePacketAck) String() string { return proto.CompactTextString(m) } -func (*GetPrivateKeysharePacketAck) ProtoMessage() {} -func (*GetPrivateKeysharePacketAck) Descriptor() ([]byte, []int) { +func (m *GetPrivateDecryptionKeyPacketAck) Reset() { *m = GetPrivateDecryptionKeyPacketAck{} } +func (m *GetPrivateDecryptionKeyPacketAck) String() string { return proto.CompactTextString(m) } +func (*GetPrivateDecryptionKeyPacketAck) ProtoMessage() {} +func (*GetPrivateDecryptionKeyPacketAck) Descriptor() ([]byte, []int) { return fileDescriptor_220841e1bebf3b1b, []int{9} } -func (m *GetPrivateKeysharePacketAck) XXX_Unmarshal(b []byte) error { +func (m *GetPrivateDecryptionKeyPacketAck) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *GetPrivateKeysharePacketAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *GetPrivateDecryptionKeyPacketAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_GetPrivateKeysharePacketAck.Marshal(b, m, deterministic) + return xxx_messageInfo_GetPrivateDecryptionKeyPacketAck.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -654,41 +662,41 @@ func (m *GetPrivateKeysharePacketAck) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *GetPrivateKeysharePacketAck) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetPrivateKeysharePacketAck.Merge(m, src) +func (m *GetPrivateDecryptionKeyPacketAck) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetPrivateDecryptionKeyPacketAck.Merge(m, src) } -func (m *GetPrivateKeysharePacketAck) XXX_Size() int { +func (m *GetPrivateDecryptionKeyPacketAck) XXX_Size() int { return m.Size() } -func (m *GetPrivateKeysharePacketAck) XXX_DiscardUnknown() { - xxx_messageInfo_GetPrivateKeysharePacketAck.DiscardUnknown(m) +func (m *GetPrivateDecryptionKeyPacketAck) XXX_DiscardUnknown() { + xxx_messageInfo_GetPrivateDecryptionKeyPacketAck.DiscardUnknown(m) } -var xxx_messageInfo_GetPrivateKeysharePacketAck proto.InternalMessageInfo +var xxx_messageInfo_GetPrivateDecryptionKeyPacketAck proto.InternalMessageInfo -// AggrKeyshareDataPacketData defines a struct for the packet payload -type AggrKeyshareDataPacketData struct { - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - AggrKeyshare string `protobuf:"bytes,3,opt,name=aggr_keyshare,json=aggrKeyshare,proto3" json:"aggr_keyshare,omitempty"` - AggrHeight string `protobuf:"bytes,4,opt,name=aggr_height,json=aggrHeight,proto3" json:"aggr_height,omitempty"` - ProposalId string `protobuf:"bytes,5,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - RequestId string `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - Retries uint64 `protobuf:"varint,7,opt,name=retries,proto3" json:"retries,omitempty"` +// DecryptionKeyDataPacketData defines a struct for the packet payload +type DecryptionKeyDataPacketData struct { + Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` + Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + DecryptionKey string `protobuf:"bytes,3,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key,omitempty"` + AggrHeight string `protobuf:"bytes,4,opt,name=aggr_height,json=aggrHeight,proto3" json:"aggr_height,omitempty"` + ProposalId string `protobuf:"bytes,5,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` + RequestId string `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + Retries uint64 `protobuf:"varint,7,opt,name=retries,proto3" json:"retries,omitempty"` } -func (m *AggrKeyshareDataPacketData) Reset() { *m = AggrKeyshareDataPacketData{} } -func (m *AggrKeyshareDataPacketData) String() string { return proto.CompactTextString(m) } -func (*AggrKeyshareDataPacketData) ProtoMessage() {} -func (*AggrKeyshareDataPacketData) Descriptor() ([]byte, []int) { +func (m *DecryptionKeyDataPacketData) Reset() { *m = DecryptionKeyDataPacketData{} } +func (m *DecryptionKeyDataPacketData) String() string { return proto.CompactTextString(m) } +func (*DecryptionKeyDataPacketData) ProtoMessage() {} +func (*DecryptionKeyDataPacketData) Descriptor() ([]byte, []int) { return fileDescriptor_220841e1bebf3b1b, []int{10} } -func (m *AggrKeyshareDataPacketData) XXX_Unmarshal(b []byte) error { +func (m *DecryptionKeyDataPacketData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *AggrKeyshareDataPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *DecryptionKeyDataPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_AggrKeyshareDataPacketData.Marshal(b, m, deterministic) + return xxx_messageInfo_DecryptionKeyDataPacketData.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -698,83 +706,83 @@ func (m *AggrKeyshareDataPacketData) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *AggrKeyshareDataPacketData) XXX_Merge(src proto.Message) { - xxx_messageInfo_AggrKeyshareDataPacketData.Merge(m, src) +func (m *DecryptionKeyDataPacketData) XXX_Merge(src proto.Message) { + xxx_messageInfo_DecryptionKeyDataPacketData.Merge(m, src) } -func (m *AggrKeyshareDataPacketData) XXX_Size() int { +func (m *DecryptionKeyDataPacketData) XXX_Size() int { return m.Size() } -func (m *AggrKeyshareDataPacketData) XXX_DiscardUnknown() { - xxx_messageInfo_AggrKeyshareDataPacketData.DiscardUnknown(m) +func (m *DecryptionKeyDataPacketData) XXX_DiscardUnknown() { + xxx_messageInfo_DecryptionKeyDataPacketData.DiscardUnknown(m) } -var xxx_messageInfo_AggrKeyshareDataPacketData proto.InternalMessageInfo +var xxx_messageInfo_DecryptionKeyDataPacketData proto.InternalMessageInfo -func (m *AggrKeyshareDataPacketData) GetIdentity() string { +func (m *DecryptionKeyDataPacketData) GetIdentity() string { if m != nil { return m.Identity } return "" } -func (m *AggrKeyshareDataPacketData) GetPubkey() string { +func (m *DecryptionKeyDataPacketData) GetPubkey() string { if m != nil { return m.Pubkey } return "" } -func (m *AggrKeyshareDataPacketData) GetAggrKeyshare() string { +func (m *DecryptionKeyDataPacketData) GetDecryptionKey() string { if m != nil { - return m.AggrKeyshare + return m.DecryptionKey } return "" } -func (m *AggrKeyshareDataPacketData) GetAggrHeight() string { +func (m *DecryptionKeyDataPacketData) GetAggrHeight() string { if m != nil { return m.AggrHeight } return "" } -func (m *AggrKeyshareDataPacketData) GetProposalId() string { +func (m *DecryptionKeyDataPacketData) GetProposalId() string { if m != nil { return m.ProposalId } return "" } -func (m *AggrKeyshareDataPacketData) GetRequestId() string { +func (m *DecryptionKeyDataPacketData) GetRequestId() string { if m != nil { return m.RequestId } return "" } -func (m *AggrKeyshareDataPacketData) GetRetries() uint64 { +func (m *DecryptionKeyDataPacketData) GetRetries() uint64 { if m != nil { return m.Retries } return 0 } -// AggrKeyshareDataPacketAck defines a struct for the packet acknowledgment -type AggrKeyshareDataPacketAck struct { +// DecryptionKeyPacketAck defines a struct for the packet acknowledgment +type DecryptionKeyPacketAck struct { } -func (m *AggrKeyshareDataPacketAck) Reset() { *m = AggrKeyshareDataPacketAck{} } -func (m *AggrKeyshareDataPacketAck) String() string { return proto.CompactTextString(m) } -func (*AggrKeyshareDataPacketAck) ProtoMessage() {} -func (*AggrKeyshareDataPacketAck) Descriptor() ([]byte, []int) { +func (m *DecryptionKeyPacketAck) Reset() { *m = DecryptionKeyPacketAck{} } +func (m *DecryptionKeyPacketAck) String() string { return proto.CompactTextString(m) } +func (*DecryptionKeyPacketAck) ProtoMessage() {} +func (*DecryptionKeyPacketAck) Descriptor() ([]byte, []int) { return fileDescriptor_220841e1bebf3b1b, []int{11} } -func (m *AggrKeyshareDataPacketAck) XXX_Unmarshal(b []byte) error { +func (m *DecryptionKeyPacketAck) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *AggrKeyshareDataPacketAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *DecryptionKeyPacketAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_AggrKeyshareDataPacketAck.Marshal(b, m, deterministic) + return xxx_messageInfo_DecryptionKeyPacketAck.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -784,37 +792,38 @@ func (m *AggrKeyshareDataPacketAck) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *AggrKeyshareDataPacketAck) XXX_Merge(src proto.Message) { - xxx_messageInfo_AggrKeyshareDataPacketAck.Merge(m, src) +func (m *DecryptionKeyPacketAck) XXX_Merge(src proto.Message) { + xxx_messageInfo_DecryptionKeyPacketAck.Merge(m, src) } -func (m *AggrKeyshareDataPacketAck) XXX_Size() int { +func (m *DecryptionKeyPacketAck) XXX_Size() int { return m.Size() } -func (m *AggrKeyshareDataPacketAck) XXX_DiscardUnknown() { - xxx_messageInfo_AggrKeyshareDataPacketAck.DiscardUnknown(m) +func (m *DecryptionKeyPacketAck) XXX_DiscardUnknown() { + xxx_messageInfo_DecryptionKeyPacketAck.DiscardUnknown(m) } -var xxx_messageInfo_AggrKeyshareDataPacketAck proto.InternalMessageInfo +var xxx_messageInfo_DecryptionKeyPacketAck proto.InternalMessageInfo -type EncryptedKeysharesPacketData struct { - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - EncryptedKeyshares []*types.EncryptedKeyshare `protobuf:"bytes,4,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` +// PrivateDecryptionKeyDataPacketData defines a struct for the packet payload +type PrivateDecryptionKeyDataPacketData struct { + Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` + Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + PrivateDecryptionKey []*types.PrivateDecryptionKey `protobuf:"bytes,4,rep,name=private_decryption_key,json=privateDecryptionKey,proto3" json:"private_decryption_key,omitempty"` } -func (m *EncryptedKeysharesPacketData) Reset() { *m = EncryptedKeysharesPacketData{} } -func (m *EncryptedKeysharesPacketData) String() string { return proto.CompactTextString(m) } -func (*EncryptedKeysharesPacketData) ProtoMessage() {} -func (*EncryptedKeysharesPacketData) Descriptor() ([]byte, []int) { +func (m *PrivateDecryptionKeyDataPacketData) Reset() { *m = PrivateDecryptionKeyDataPacketData{} } +func (m *PrivateDecryptionKeyDataPacketData) String() string { return proto.CompactTextString(m) } +func (*PrivateDecryptionKeyDataPacketData) ProtoMessage() {} +func (*PrivateDecryptionKeyDataPacketData) Descriptor() ([]byte, []int) { return fileDescriptor_220841e1bebf3b1b, []int{12} } -func (m *EncryptedKeysharesPacketData) XXX_Unmarshal(b []byte) error { +func (m *PrivateDecryptionKeyDataPacketData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *EncryptedKeysharesPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *PrivateDecryptionKeyDataPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_EncryptedKeysharesPacketData.Marshal(b, m, deterministic) + return xxx_messageInfo_PrivateDecryptionKeyDataPacketData.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -824,61 +833,62 @@ func (m *EncryptedKeysharesPacketData) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *EncryptedKeysharesPacketData) XXX_Merge(src proto.Message) { - xxx_messageInfo_EncryptedKeysharesPacketData.Merge(m, src) +func (m *PrivateDecryptionKeyDataPacketData) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrivateDecryptionKeyDataPacketData.Merge(m, src) } -func (m *EncryptedKeysharesPacketData) XXX_Size() int { +func (m *PrivateDecryptionKeyDataPacketData) XXX_Size() int { return m.Size() } -func (m *EncryptedKeysharesPacketData) XXX_DiscardUnknown() { - xxx_messageInfo_EncryptedKeysharesPacketData.DiscardUnknown(m) +func (m *PrivateDecryptionKeyDataPacketData) XXX_DiscardUnknown() { + xxx_messageInfo_PrivateDecryptionKeyDataPacketData.DiscardUnknown(m) } -var xxx_messageInfo_EncryptedKeysharesPacketData proto.InternalMessageInfo +var xxx_messageInfo_PrivateDecryptionKeyDataPacketData proto.InternalMessageInfo -func (m *EncryptedKeysharesPacketData) GetIdentity() string { +func (m *PrivateDecryptionKeyDataPacketData) GetIdentity() string { if m != nil { return m.Identity } return "" } -func (m *EncryptedKeysharesPacketData) GetPubkey() string { +func (m *PrivateDecryptionKeyDataPacketData) GetPubkey() string { if m != nil { return m.Pubkey } return "" } -func (m *EncryptedKeysharesPacketData) GetRequestId() string { +func (m *PrivateDecryptionKeyDataPacketData) GetRequestId() string { if m != nil { return m.RequestId } return "" } -func (m *EncryptedKeysharesPacketData) GetEncryptedKeyshares() []*types.EncryptedKeyshare { +func (m *PrivateDecryptionKeyDataPacketData) GetPrivateDecryptionKey() []*types.PrivateDecryptionKey { if m != nil { - return m.EncryptedKeyshares + return m.PrivateDecryptionKey } return nil } -type EncryptedKeysharesPacketAck struct { +// PrivateDecryptionKeyPacketAck defines a struct for the packet payload +type PrivateDecryptionKeyPacketAck struct { } -func (m *EncryptedKeysharesPacketAck) Reset() { *m = EncryptedKeysharesPacketAck{} } -func (m *EncryptedKeysharesPacketAck) String() string { return proto.CompactTextString(m) } -func (*EncryptedKeysharesPacketAck) ProtoMessage() {} -func (*EncryptedKeysharesPacketAck) Descriptor() ([]byte, []int) { +func (m *PrivateDecryptionKeyPacketAck) Reset() { *m = PrivateDecryptionKeyPacketAck{} } +func (m *PrivateDecryptionKeyPacketAck) String() string { return proto.CompactTextString(m) } +func (*PrivateDecryptionKeyPacketAck) ProtoMessage() {} +func (*PrivateDecryptionKeyPacketAck) Descriptor() ([]byte, []int) { return fileDescriptor_220841e1bebf3b1b, []int{13} } -func (m *EncryptedKeysharesPacketAck) XXX_Unmarshal(b []byte) error { +func (m *PrivateDecryptionKeyPacketAck) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *EncryptedKeysharesPacketAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *PrivateDecryptionKeyPacketAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_EncryptedKeysharesPacketAck.Marshal(b, m, deterministic) + return xxx_messageInfo_PrivateDecryptionKeyPacketAck.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -888,17 +898,17 @@ func (m *EncryptedKeysharesPacketAck) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *EncryptedKeysharesPacketAck) XXX_Merge(src proto.Message) { - xxx_messageInfo_EncryptedKeysharesPacketAck.Merge(m, src) +func (m *PrivateDecryptionKeyPacketAck) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrivateDecryptionKeyPacketAck.Merge(m, src) } -func (m *EncryptedKeysharesPacketAck) XXX_Size() int { +func (m *PrivateDecryptionKeyPacketAck) XXX_Size() int { return m.Size() } -func (m *EncryptedKeysharesPacketAck) XXX_DiscardUnknown() { - xxx_messageInfo_EncryptedKeysharesPacketAck.DiscardUnknown(m) +func (m *PrivateDecryptionKeyPacketAck) XXX_DiscardUnknown() { + xxx_messageInfo_PrivateDecryptionKeyPacketAck.DiscardUnknown(m) } -var xxx_messageInfo_EncryptedKeysharesPacketAck proto.InternalMessageInfo +var xxx_messageInfo_PrivateDecryptionKeyPacketAck proto.InternalMessageInfo // CurrentKeysPacketData defines a struct for the packet payload type CurrentKeysPacketData struct { @@ -939,8 +949,8 @@ var xxx_messageInfo_CurrentKeysPacketData proto.InternalMessageInfo // CurrentKeysPacketAck defines a struct for the packet acknowledgment type CurrentKeysPacketAck struct { - ActiveKey *types.ActivePublicKey `protobuf:"bytes,1,opt,name=activeKey,proto3" json:"activeKey,omitempty"` - QueuedKey *types.QueuedPublicKey `protobuf:"bytes,2,opt,name=queuedKey,proto3" json:"queuedKey,omitempty"` + ActiveKey *types.ActivePublicKey `protobuf:"bytes,1,opt,name=active_key,json=activeKey,proto3" json:"active_key,omitempty"` + QueuedKey *types.QueuedPublicKey `protobuf:"bytes,2,opt,name=queued_key,json=queuedKey,proto3" json:"queued_key,omitempty"` } func (m *CurrentKeysPacketAck) Reset() { *m = CurrentKeysPacketAck{} } @@ -993,18 +1003,18 @@ func (m *CurrentKeysPacketAck) GetQueuedKey() *types.QueuedPublicKey { func init() { proto.RegisterType((*KeysharePacketData)(nil), "fairyring.keyshare.KeysharePacketData") proto.RegisterType((*NoData)(nil), "fairyring.keyshare.NoData") - proto.RegisterType((*RequestAggrKeysharePacketData)(nil), "fairyring.keyshare.RequestAggrKeysharePacketData") - proto.RegisterType((*RequestPrivateKeysharePacketData)(nil), "fairyring.keyshare.RequestPrivateKeysharePacketData") - proto.RegisterType((*RequestPrivateKeysharePacketAck)(nil), "fairyring.keyshare.RequestPrivateKeysharePacketAck") - proto.RegisterType((*RequestAggrKeysharePacketAck)(nil), "fairyring.keyshare.RequestAggrKeysharePacketAck") - proto.RegisterType((*GetAggrKeysharePacketData)(nil), "fairyring.keyshare.GetAggrKeysharePacketData") - proto.RegisterType((*GetAggrKeysharePacketAck)(nil), "fairyring.keyshare.GetAggrKeysharePacketAck") - proto.RegisterType((*GetPrivateKeysharePacketData)(nil), "fairyring.keyshare.GetPrivateKeysharePacketData") - proto.RegisterType((*GetPrivateKeysharePacketAck)(nil), "fairyring.keyshare.GetPrivateKeysharePacketAck") - proto.RegisterType((*AggrKeyshareDataPacketData)(nil), "fairyring.keyshare.AggrKeyshareDataPacketData") - proto.RegisterType((*AggrKeyshareDataPacketAck)(nil), "fairyring.keyshare.AggrKeyshareDataPacketAck") - proto.RegisterType((*EncryptedKeysharesPacketData)(nil), "fairyring.keyshare.EncryptedKeysharesPacketData") - proto.RegisterType((*EncryptedKeysharesPacketAck)(nil), "fairyring.keyshare.EncryptedKeysharesPacketAck") + proto.RegisterType((*RequestDecryptionKeyPacketData)(nil), "fairyring.keyshare.RequestDecryptionKeyPacketData") + proto.RegisterType((*RequestPrivateDecryptionKeyPacketData)(nil), "fairyring.keyshare.RequestPrivateDecryptionKeyPacketData") + proto.RegisterType((*RequestPrivateDecryptionKeyPacketAck)(nil), "fairyring.keyshare.RequestPrivateDecryptionKeyPacketAck") + proto.RegisterType((*RequestDecryptionKeyPacketAck)(nil), "fairyring.keyshare.RequestDecryptionKeyPacketAck") + proto.RegisterType((*GetDecryptionKeyPacketData)(nil), "fairyring.keyshare.GetDecryptionKeyPacketData") + proto.RegisterType((*GetDecryptionKeyPacketAck)(nil), "fairyring.keyshare.GetDecryptionKeyPacketAck") + proto.RegisterType((*GetPrivateDecryptionKeyPacketData)(nil), "fairyring.keyshare.GetPrivateDecryptionKeyPacketData") + proto.RegisterType((*GetPrivateDecryptionKeyPacketAck)(nil), "fairyring.keyshare.GetPrivateDecryptionKeyPacketAck") + proto.RegisterType((*DecryptionKeyDataPacketData)(nil), "fairyring.keyshare.DecryptionKeyDataPacketData") + proto.RegisterType((*DecryptionKeyPacketAck)(nil), "fairyring.keyshare.DecryptionKeyPacketAck") + proto.RegisterType((*PrivateDecryptionKeyDataPacketData)(nil), "fairyring.keyshare.PrivateDecryptionKeyDataPacketData") + proto.RegisterType((*PrivateDecryptionKeyPacketAck)(nil), "fairyring.keyshare.PrivateDecryptionKeyPacketAck") proto.RegisterType((*CurrentKeysPacketData)(nil), "fairyring.keyshare.CurrentKeysPacketData") proto.RegisterType((*CurrentKeysPacketAck)(nil), "fairyring.keyshare.CurrentKeysPacketAck") } @@ -1012,59 +1022,61 @@ func init() { func init() { proto.RegisterFile("fairyring/keyshare/packet.proto", fileDescriptor_220841e1bebf3b1b) } var fileDescriptor_220841e1bebf3b1b = []byte{ - // 830 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcb, 0x8e, 0xe3, 0x44, - 0x14, 0x8d, 0x33, 0x19, 0x4f, 0x72, 0xc3, 0x43, 0x14, 0x33, 0x83, 0x93, 0xc9, 0xa3, 0xc7, 0xbd, - 0x19, 0x16, 0xd8, 0x30, 0x8c, 0xc4, 0x12, 0x25, 0x34, 0x4c, 0xa2, 0x96, 0x50, 0xb0, 0x60, 0x01, - 0x1b, 0xcb, 0xb1, 0xab, 0x9d, 0x52, 0xd2, 0xb6, 0xbb, 0x5c, 0x0e, 0xf8, 0x2f, 0x58, 0xf6, 0x1f, - 0xc1, 0xb2, 0x91, 0x58, 0xb0, 0x03, 0x75, 0xff, 0x00, 0x9f, 0x30, 0xaa, 0x72, 0x39, 0x4f, 0xdb, - 0x2d, 0xf5, 0xce, 0x2e, 0x9f, 0x7b, 0xce, 0xbd, 0xb7, 0x6e, 0x1d, 0x17, 0x0c, 0x2f, 0x1c, 0x42, - 0x53, 0x4a, 0x02, 0xdf, 0x5c, 0xe2, 0x34, 0x5e, 0x38, 0x14, 0x9b, 0x91, 0xe3, 0x2e, 0x31, 0x33, - 0x22, 0x1a, 0xb2, 0x10, 0xa1, 0x0d, 0xc0, 0xc8, 0x01, 0xdd, 0x81, 0x1f, 0x86, 0xfe, 0x0a, 0x9b, - 0x02, 0x31, 0x4f, 0x2e, 0x4c, 0x2f, 0xa1, 0x0e, 0x23, 0x61, 0x90, 0xc5, 0x74, 0x9f, 0xfa, 0xa1, - 0x1f, 0x8a, 0x47, 0x93, 0x3f, 0xc9, 0xd5, 0xd3, 0xad, 0x94, 0x1b, 0x5e, 0x5e, 0x86, 0x81, 0x29, - 0xd8, 0x3c, 0x9b, 0xa5, 0x11, 0x8e, 0x33, 0x90, 0xfe, 0xb7, 0x0a, 0xe8, 0x5c, 0xea, 0xcc, 0x44, - 0x1e, 0x67, 0x0e, 0x73, 0xd0, 0x1b, 0x50, 0x83, 0x90, 0x3f, 0x69, 0xca, 0x89, 0xf2, 0xaa, 0xfd, - 0xba, 0x6b, 0x1c, 0xa7, 0x65, 0x7c, 0x2f, 0x10, 0x93, 0x9a, 0x25, 0xb1, 0xe8, 0x0a, 0x3a, 0x14, - 0x5f, 0x25, 0x38, 0x66, 0x23, 0xdf, 0xa7, 0xfb, 0xb4, 0x5a, 0x5d, 0x10, 0x7d, 0x51, 0x44, 0x64, - 0x95, 0x05, 0x49, 0xfe, 0x72, 0x56, 0x84, 0xe1, 0x99, 0x8f, 0x8b, 0xe4, 0x1e, 0x09, 0xb9, 0xcf, - 0x8a, 0xe4, 0xde, 0xe2, 0x72, 0xa9, 0x62, 0x36, 0xb4, 0x80, 0xe7, 0xce, 0xce, 0x2a, 0x07, 0x4b, - 0x9d, 0x86, 0xd0, 0x31, 0x8a, 0x74, 0x46, 0x85, 0x11, 0x52, 0xa8, 0x84, 0x0f, 0xad, 0xa1, 0x87, - 0x03, 0x97, 0xa6, 0x11, 0xc3, 0x5e, 0xfe, 0x39, 0xde, 0x46, 0x6a, 0x8f, 0x85, 0xde, 0xe7, 0x45, - 0x7a, 0xdf, 0x56, 0xc4, 0x4d, 0x6a, 0x56, 0x25, 0x2f, 0xfa, 0x19, 0x3e, 0x72, 0x13, 0x4a, 0x71, - 0xc0, 0xf8, 0x57, 0x59, 0x9c, 0x2a, 0xc4, 0x3e, 0x2d, 0x12, 0xfb, 0xe6, 0x10, 0x2c, 0x55, 0x8e, - 0x59, 0xd0, 0xaf, 0xd0, 0x93, 0x1b, 0x68, 0x47, 0x94, 0xac, 0xed, 0x9c, 0xc3, 0xce, 0x06, 0x5f, - 0x7b, 0x22, 0x54, 0xde, 0x54, 0x4c, 0xc6, 0x8c, 0x92, 0xb5, 0xc3, 0x70, 0xe5, 0x70, 0x70, 0xcc, - 0xc1, 0xae, 0x05, 0xa0, 0xf9, 0xb8, 0x38, 0x58, 0x6b, 0x96, 0xf7, 0xf1, 0x2d, 0xae, 0x14, 0x2c, - 0xe5, 0x1c, 0x37, 0x41, 0xcd, 0x4a, 0xd2, 0x9b, 0xa0, 0x66, 0xa7, 0x43, 0xff, 0x4b, 0x81, 0x7e, - 0xe5, 0x7c, 0xa3, 0x1e, 0xb4, 0x64, 0x09, 0x98, 0x8a, 0xe3, 0xd6, 0xb2, 0xb6, 0x0b, 0xe8, 0x25, - 0xb4, 0x23, 0x1a, 0x46, 0x61, 0xec, 0xac, 0x6c, 0xe2, 0x89, 0x53, 0xd4, 0x9a, 0xd4, 0x2c, 0xc8, - 0x17, 0xa7, 0x1e, 0x1a, 0x02, 0xe4, 0xfd, 0x25, 0x9e, 0x18, 0x7c, 0x8e, 0xc8, 0x39, 0xa6, 0x1e, - 0x9a, 0xc0, 0x87, 0x38, 0x66, 0xe4, 0xd2, 0x61, 0xd8, 0xb3, 0x3d, 0xbc, 0x72, 0x52, 0x39, 0xb6, - 0x1d, 0x23, 0x73, 0x16, 0x23, 0x77, 0x16, 0xe3, 0x4c, 0x3a, 0xcb, 0xb8, 0x71, 0xfd, 0xef, 0x50, - 0xb1, 0x3e, 0xd8, 0xc4, 0x9d, 0xf1, 0xb0, 0x71, 0x03, 0xea, 0xc4, 0xd3, 0x6d, 0x38, 0xb9, 0x6f, - 0x63, 0xee, 0xa9, 0xaa, 0xbf, 0x97, 0x72, 0x7d, 0xef, 0xf3, 0xd4, 0xd3, 0x7f, 0x82, 0x61, 0x95, - 0xc0, 0xc8, 0x5d, 0xa2, 0x2e, 0x34, 0x89, 0x87, 0x03, 0x46, 0x58, 0x2a, 0xe9, 0x37, 0xef, 0xe8, - 0x39, 0xa8, 0x51, 0x32, 0x5f, 0xe2, 0x54, 0x32, 0xcb, 0x37, 0xdd, 0x82, 0x5e, 0xe9, 0x56, 0x3c, - 0x94, 0xf3, 0x2b, 0xe8, 0x94, 0xfa, 0x49, 0x15, 0xa1, 0xde, 0x05, 0xad, 0x30, 0x70, 0xe4, 0x2e, - 0xf5, 0x14, 0x7a, 0x55, 0x43, 0x58, 0x99, 0xe8, 0x5e, 0xe3, 0xeb, 0x87, 0x8d, 0x1f, 0x42, 0x3b, - 0xc6, 0x6e, 0x64, 0xcb, 0x5a, 0xc4, 0xb0, 0x58, 0xc0, 0x97, 0x66, 0x59, 0x3d, 0x7d, 0x78, 0x51, - 0x26, 0xcd, 0x33, 0xfb, 0x5f, 0x81, 0x6e, 0xb9, 0xaf, 0x3d, 0xa4, 0x83, 0xe8, 0x14, 0xde, 0xe7, - 0x5e, 0xb8, 0xb1, 0x05, 0x99, 0xd4, 0x7b, 0xbb, 0x06, 0xc9, 0xf3, 0x16, 0xa0, 0x05, 0x26, 0xfe, - 0x22, 0x73, 0xdd, 0x96, 0x05, 0x7c, 0x69, 0x22, 0x56, 0x38, 0x60, 0xf7, 0x9c, 0x3c, 0xce, 0x00, - 0x3b, 0xa7, 0x64, 0x7f, 0xe4, 0xd4, 0x83, 0x91, 0x43, 0x1a, 0x3c, 0xa1, 0x98, 0x51, 0x82, 0x63, - 0xe1, 0x47, 0x0d, 0x2b, 0x7f, 0xd5, 0x5f, 0x40, 0xa7, 0xb8, 0x62, 0xde, 0x8f, 0x3f, 0x14, 0xe8, - 0x55, 0xf9, 0xee, 0x83, 0x3a, 0xd2, 0x3f, 0x3e, 0xd0, 0xbb, 0xa9, 0xfe, 0x08, 0x1f, 0x6f, 0xac, - 0x7c, 0xd3, 0xb5, 0x58, 0x6b, 0x9c, 0x3c, 0x7a, 0xd5, 0x7e, 0x7d, 0xba, 0xe3, 0x68, 0xd9, 0x6f, - 0xff, 0xf8, 0xbf, 0x60, 0xa1, 0xe3, 0x5f, 0x01, 0xdf, 0xf8, 0xb2, 0x42, 0x78, 0xa1, 0x9f, 0xc0, - 0xb3, 0x42, 0xcb, 0xd7, 0xaf, 0x15, 0x78, 0x7a, 0xf4, 0x85, 0x9f, 0xa6, 0xaf, 0xa1, 0xe5, 0xb8, - 0x8c, 0xac, 0xf9, 0x14, 0xc9, 0x6b, 0xc4, 0xcb, 0xe3, 0xe4, 0x46, 0x02, 0x32, 0x4b, 0xe6, 0x2b, - 0xe2, 0x9e, 0xe3, 0xd4, 0xda, 0xc6, 0x70, 0x82, 0xab, 0x04, 0x27, 0x22, 0x1d, 0x79, 0x7d, 0x28, - 0x20, 0xf8, 0x41, 0x40, 0x76, 0x08, 0x36, 0x31, 0xe3, 0xe9, 0x9f, 0xb7, 0x03, 0xe5, 0xe6, 0x76, - 0xa0, 0xfc, 0x77, 0x3b, 0x50, 0x7e, 0xbf, 0x1b, 0xd4, 0x6e, 0xee, 0x06, 0xb5, 0x7f, 0xee, 0x06, - 0xb5, 0x5f, 0x4c, 0x9f, 0xb0, 0x45, 0x32, 0xe7, 0x1c, 0xe6, 0x77, 0x0e, 0xa1, 0xf3, 0x55, 0xe8, - 0x2e, 0xcd, 0xed, 0x85, 0xe9, 0xb7, 0xed, 0xed, 0x4c, 0xdc, 0x96, 0xe6, 0xaa, 0x70, 0xc8, 0x2f, - 0xdf, 0x05, 0x00, 0x00, 0xff, 0xff, 0xc4, 0x85, 0x63, 0xfc, 0xc0, 0x09, 0x00, 0x00, + // 862 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x96, 0x41, 0x6f, 0xe3, 0x44, + 0x14, 0xc7, 0xe3, 0x6e, 0x36, 0x6d, 0x5e, 0xc5, 0x22, 0x86, 0xd2, 0x4d, 0xb3, 0xc4, 0x69, 0x0c, + 0x45, 0xcb, 0xc5, 0x96, 0x8a, 0x16, 0xc1, 0x6d, 0x5b, 0x22, 0x48, 0x54, 0x09, 0x05, 0x73, 0x5b, + 0x90, 0x2c, 0xc7, 0x33, 0xeb, 0x8c, 0x9c, 0xda, 0xde, 0xf1, 0x78, 0xc1, 0x17, 0x24, 0x24, 0xae, + 0x48, 0x1c, 0x11, 0x57, 0xbe, 0x0c, 0xc7, 0x15, 0x12, 0x12, 0x37, 0x50, 0xfb, 0x11, 0xf8, 0x02, + 0x68, 0x66, 0xec, 0x24, 0x4e, 0x1c, 0x67, 0xd5, 0x9b, 0x3d, 0xf3, 0xde, 0xfb, 0xfd, 0x67, 0xe6, + 0xbd, 0x37, 0x03, 0xfd, 0xe7, 0x2e, 0x65, 0x19, 0xa3, 0xa1, 0x6f, 0x05, 0x24, 0x4b, 0x66, 0x2e, + 0x23, 0x56, 0xec, 0x7a, 0x01, 0xe1, 0x66, 0xcc, 0x22, 0x1e, 0x21, 0xb4, 0x30, 0x30, 0x0b, 0x83, + 0xae, 0xee, 0x47, 0x91, 0x3f, 0x27, 0x96, 0xb4, 0x98, 0xa6, 0xcf, 0x2d, 0x9c, 0x32, 0x97, 0xd3, + 0x28, 0x54, 0x3e, 0xdd, 0x23, 0x3f, 0xf2, 0x23, 0xf9, 0x69, 0x89, 0xaf, 0x7c, 0xf4, 0xbd, 0x25, + 0xca, 0x8b, 0xae, 0xaf, 0xa3, 0xd0, 0x92, 0xd1, 0xb0, 0xc3, 0xb3, 0x98, 0x24, 0xca, 0xc8, 0xf8, + 0x7d, 0x1f, 0xd0, 0x55, 0xce, 0x99, 0x48, 0x1d, 0x43, 0x97, 0xbb, 0xe8, 0x09, 0xec, 0x87, 0x91, + 0x83, 0x5d, 0xee, 0x76, 0xb4, 0x53, 0xed, 0xf1, 0xe1, 0x79, 0xd7, 0xdc, 0xd4, 0x65, 0x7e, 0x19, + 0x09, 0xe3, 0x51, 0xc3, 0x6e, 0x85, 0xf2, 0x0b, 0x7d, 0x07, 0x3d, 0x46, 0x5e, 0xa4, 0x24, 0xe1, + 0x0e, 0x26, 0x1e, 0xcb, 0x62, 0x21, 0xd2, 0x09, 0x48, 0xe6, 0xa8, 0x35, 0x76, 0xf6, 0x64, 0xb0, + 0xf3, 0xaa, 0x60, 0xb6, 0x72, 0x1c, 0x2e, 0xfc, 0xae, 0x48, 0xb6, 0x54, 0x34, 0x6a, 0xd8, 0x5d, + 0xb6, 0xd5, 0x02, 0x05, 0x70, 0xe2, 0x93, 0x6d, 0xd0, 0x7b, 0x12, 0x6a, 0x56, 0x41, 0xbf, 0x20, + 0x35, 0xc0, 0x63, 0xbf, 0x72, 0x16, 0x85, 0xd0, 0x5d, 0x03, 0x89, 0x8d, 0x2a, 0x68, 0x4d, 0x49, + 0xb3, 0xaa, 0x68, 0xa5, 0x60, 0x02, 0x52, 0xc2, 0x3d, 0xc4, 0xd5, 0xd3, 0xe8, 0x27, 0x0d, 0x8c, + 0x98, 0xd1, 0x97, 0x2e, 0x27, 0x4e, 0x0d, 0xf8, 0xbe, 0x04, 0x7f, 0x5c, 0x05, 0x9e, 0x28, 0xef, + 0x7a, 0xbe, 0x1e, 0xd7, 0x5a, 0xa1, 0x6f, 0xe0, 0x6d, 0x2f, 0x65, 0x8c, 0x84, 0x5c, 0xa0, 0x93, + 0x02, 0xdb, 0x92, 0xd8, 0x0f, 0xab, 0xb0, 0x9f, 0x29, 0x73, 0x91, 0x5f, 0x25, 0xd2, 0x5b, 0xde, + 0xfa, 0x04, 0xfa, 0x59, 0x83, 0xb3, 0x22, 0x75, 0xb6, 0xac, 0x35, 0xe7, 0xed, 0x4b, 0xde, 0xa7, + 0x35, 0x29, 0x54, 0xb5, 0xda, 0x12, 0x7f, 0xc0, 0x76, 0x19, 0xa2, 0x1f, 0x35, 0x18, 0x88, 0x8c, + 0xaa, 0xd7, 0x72, 0x20, 0xb5, 0x3c, 0xd9, 0x92, 0x59, 0x3b, 0x75, 0xf4, 0xfc, 0x3a, 0xa3, 0xcb, + 0x03, 0x68, 0x29, 0x8e, 0x71, 0x00, 0x2d, 0x55, 0x6b, 0xc6, 0x9f, 0x1a, 0xe8, 0xf5, 0x95, 0x82, + 0xde, 0x85, 0x76, 0xbe, 0x3e, 0xc2, 0x64, 0xf5, 0xb6, 0xed, 0xe5, 0x00, 0x1a, 0xc0, 0x61, 0xcc, + 0xa2, 0x38, 0x4a, 0xdc, 0xb9, 0x43, 0xb1, 0x2c, 0xc8, 0xf6, 0xa8, 0x61, 0x43, 0x31, 0x38, 0xc6, + 0xa8, 0x0f, 0x50, 0x1c, 0x05, 0xc5, 0xb2, 0x7a, 0x84, 0x45, 0x11, 0x63, 0x8c, 0xd1, 0x08, 0xde, + 0x24, 0x09, 0xa7, 0xd7, 0x2e, 0x27, 0xd8, 0xc1, 0x64, 0xee, 0x66, 0x79, 0xd6, 0x9f, 0x98, 0xaa, + 0x53, 0x99, 0x45, 0xa7, 0x32, 0x87, 0x79, 0xa7, 0xba, 0x6c, 0xfe, 0xfa, 0x4f, 0x5f, 0xb3, 0x1f, + 0x2c, 0xfc, 0x86, 0xc2, 0xed, 0xb2, 0x09, 0x7b, 0x14, 0x1b, 0x18, 0xce, 0x5e, 0xeb, 0xe8, 0x76, + 0x2c, 0xad, 0x57, 0xd2, 0xbd, 0x57, 0x9a, 0x1e, 0x63, 0xe3, 0x19, 0xbc, 0xbf, 0x93, 0x72, 0xe1, + 0x05, 0xa8, 0x0b, 0x07, 0x14, 0x93, 0x90, 0x53, 0x9e, 0xe5, 0x8c, 0xc5, 0x3f, 0x3a, 0x86, 0x56, + 0x9c, 0x4e, 0x03, 0x92, 0xe5, 0xe1, 0xf3, 0x3f, 0xe3, 0x6b, 0xe8, 0x6d, 0x3f, 0x95, 0xbb, 0x06, + 0xfd, 0x04, 0xba, 0xdb, 0xfb, 0x53, 0x5d, 0x44, 0xe3, 0x11, 0x9c, 0x54, 0x7b, 0x5e, 0x78, 0x81, + 0xf1, 0x03, 0x0c, 0x76, 0x26, 0x67, 0xad, 0xde, 0xd2, 0x29, 0xec, 0xad, 0x9f, 0x42, 0x1f, 0x0e, + 0x13, 0xe2, 0xc5, 0x4e, 0xbe, 0x24, 0x99, 0x3e, 0x36, 0x88, 0xa1, 0x89, 0x5a, 0x96, 0x01, 0xa7, + 0xb5, 0x7c, 0xa1, 0xf1, 0x3f, 0x0d, 0x1e, 0xd5, 0x74, 0xab, 0xbb, 0x6c, 0x27, 0x3a, 0x83, 0x07, + 0xe5, 0x2a, 0xce, 0xb5, 0xbd, 0x51, 0xea, 0xbb, 0x42, 0xbf, 0xeb, 0xfb, 0xcc, 0x99, 0x11, 0xea, + 0xcf, 0x54, 0x3b, 0x6f, 0xdb, 0x20, 0x86, 0x46, 0x72, 0x44, 0x18, 0xac, 0x56, 0xd0, 0x7d, 0x65, + 0xb0, 0x52, 0x3f, 0xe5, 0x3c, 0x6c, 0xad, 0xe5, 0x21, 0xea, 0xc0, 0x3e, 0x23, 0x9c, 0x51, 0x92, + 0xc8, 0x5e, 0xd6, 0xb4, 0x8b, 0x5f, 0xa3, 0x03, 0xc7, 0x5b, 0xf6, 0xe3, 0x2f, 0x0d, 0x8c, 0xdd, + 0x4d, 0xfc, 0x4e, 0xdb, 0xd2, 0xdb, 0xac, 0xf6, 0x55, 0xb5, 0xdf, 0xc2, 0x71, 0x75, 0x0f, 0xec, + 0x34, 0x4f, 0xef, 0x3d, 0x3e, 0x3c, 0xff, 0x60, 0xa5, 0xf9, 0xa9, 0x67, 0x46, 0xe5, 0x6d, 0x63, + 0x1f, 0x55, 0xdd, 0x2e, 0x46, 0x1f, 0x7a, 0xf5, 0x89, 0xf0, 0x10, 0xde, 0xa9, 0xbc, 0x45, 0x8c, + 0xdf, 0x34, 0x38, 0xda, 0x98, 0x11, 0x95, 0xf6, 0x14, 0xc0, 0xf5, 0x38, 0x7d, 0x49, 0xa4, 0x48, + 0xf5, 0x7a, 0x19, 0x6c, 0x8a, 0xbc, 0x90, 0x36, 0x93, 0x74, 0x3a, 0xa7, 0x9e, 0xd0, 0xd7, 0x56, + 0x4e, 0x22, 0x03, 0x9e, 0x02, 0xbc, 0x48, 0x49, 0x4a, 0xb0, 0x53, 0xec, 0x56, 0x65, 0x84, 0xaf, + 0xa4, 0xcd, 0x4a, 0x04, 0xe5, 0x74, 0x45, 0xb2, 0xcb, 0xf1, 0x1f, 0x37, 0xba, 0xf6, 0xea, 0x46, + 0xd7, 0xfe, 0xbd, 0xd1, 0xb5, 0x5f, 0x6e, 0xf5, 0xc6, 0xab, 0x5b, 0xbd, 0xf1, 0xf7, 0xad, 0xde, + 0x78, 0x66, 0xf9, 0x94, 0xcf, 0xd2, 0xa9, 0x88, 0x61, 0x7d, 0xee, 0x52, 0x36, 0x9d, 0x47, 0x5e, + 0x60, 0x2d, 0x5f, 0x6a, 0xdf, 0x2f, 0x9f, 0x85, 0xf2, 0x99, 0x36, 0x6d, 0xc9, 0x56, 0xfa, 0xd1, + 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x1e, 0x79, 0xaa, 0x57, 0x39, 0x0a, 0x00, 0x00, } func (m *KeysharePacketData) Marshal() (dAtA []byte, err error) { @@ -1120,16 +1132,16 @@ func (m *KeysharePacketData_NoData) MarshalToSizedBuffer(dAtA []byte) (int, erro } return len(dAtA) - i, nil } -func (m *KeysharePacketData_RequestAggrKeysharePacket) MarshalTo(dAtA []byte) (int, error) { +func (m *KeysharePacketData_RequestDecryptionKeyPacket) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *KeysharePacketData_RequestAggrKeysharePacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *KeysharePacketData_RequestDecryptionKeyPacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - if m.RequestAggrKeysharePacket != nil { + if m.RequestDecryptionKeyPacket != nil { { - size, err := m.RequestAggrKeysharePacket.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.RequestDecryptionKeyPacket.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1141,16 +1153,16 @@ func (m *KeysharePacketData_RequestAggrKeysharePacket) MarshalToSizedBuffer(dAtA } return len(dAtA) - i, nil } -func (m *KeysharePacketData_GetAggrKeysharePacket) MarshalTo(dAtA []byte) (int, error) { +func (m *KeysharePacketData_GetDecryptionKeyPacket) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *KeysharePacketData_GetAggrKeysharePacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *KeysharePacketData_GetDecryptionKeyPacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - if m.GetAggrKeysharePacket != nil { + if m.GetDecryptionKeyPacket != nil { { - size, err := m.GetAggrKeysharePacket.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.GetDecryptionKeyPacket.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1162,16 +1174,16 @@ func (m *KeysharePacketData_GetAggrKeysharePacket) MarshalToSizedBuffer(dAtA []b } return len(dAtA) - i, nil } -func (m *KeysharePacketData_AggrKeyshareDataPacket) MarshalTo(dAtA []byte) (int, error) { +func (m *KeysharePacketData_DecryptionKeyDataPacket) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *KeysharePacketData_AggrKeyshareDataPacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *KeysharePacketData_DecryptionKeyDataPacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - if m.AggrKeyshareDataPacket != nil { + if m.DecryptionKeyDataPacket != nil { { - size, err := m.AggrKeyshareDataPacket.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.DecryptionKeyDataPacket.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1183,16 +1195,16 @@ func (m *KeysharePacketData_AggrKeyshareDataPacket) MarshalToSizedBuffer(dAtA [] } return len(dAtA) - i, nil } -func (m *KeysharePacketData_EncryptedKeysharesPacketData) MarshalTo(dAtA []byte) (int, error) { +func (m *KeysharePacketData_PrivateDecryptionKeyDataPacket) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *KeysharePacketData_EncryptedKeysharesPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *KeysharePacketData_PrivateDecryptionKeyDataPacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - if m.EncryptedKeysharesPacketData != nil { + if m.PrivateDecryptionKeyDataPacket != nil { { - size, err := m.EncryptedKeysharesPacketData.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.PrivateDecryptionKeyDataPacket.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1225,16 +1237,16 @@ func (m *KeysharePacketData_CurrentKeysPacket) MarshalToSizedBuffer(dAtA []byte) } return len(dAtA) - i, nil } -func (m *KeysharePacketData_RequestPrivKeysharePacket) MarshalTo(dAtA []byte) (int, error) { +func (m *KeysharePacketData_RequestPrivateDecryptionKeyPacket) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *KeysharePacketData_RequestPrivKeysharePacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *KeysharePacketData_RequestPrivateDecryptionKeyPacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - if m.RequestPrivKeysharePacket != nil { + if m.RequestPrivateDecryptionKeyPacket != nil { { - size, err := m.RequestPrivKeysharePacket.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.RequestPrivateDecryptionKeyPacket.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1246,16 +1258,16 @@ func (m *KeysharePacketData_RequestPrivKeysharePacket) MarshalToSizedBuffer(dAtA } return len(dAtA) - i, nil } -func (m *KeysharePacketData_GetPrivateKeysharePacket) MarshalTo(dAtA []byte) (int, error) { +func (m *KeysharePacketData_GetPrivateDecryptionKeyPacket) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *KeysharePacketData_GetPrivateKeysharePacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *KeysharePacketData_GetPrivateDecryptionKeyPacket) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) - if m.GetPrivateKeysharePacket != nil { + if m.GetPrivateDecryptionKeyPacket != nil { { - size, err := m.GetPrivateKeysharePacket.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.GetPrivateDecryptionKeyPacket.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1290,7 +1302,7 @@ func (m *NoData) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RequestAggrKeysharePacketData) Marshal() (dAtA []byte, err error) { +func (m *RequestDecryptionKeyPacketData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1300,12 +1312,12 @@ func (m *RequestAggrKeysharePacketData) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RequestAggrKeysharePacketData) MarshalTo(dAtA []byte) (int, error) { +func (m *RequestDecryptionKeyPacketData) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RequestAggrKeysharePacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RequestDecryptionKeyPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1339,12 +1351,12 @@ func (m *RequestAggrKeysharePacketData) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *RequestAggrKeysharePacketData_ProposalId) MarshalTo(dAtA []byte) (int, error) { +func (m *RequestDecryptionKeyPacketData_ProposalId) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RequestAggrKeysharePacketData_ProposalId) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RequestDecryptionKeyPacketData_ProposalId) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.ProposalId) copy(dAtA[i:], m.ProposalId) @@ -1353,12 +1365,12 @@ func (m *RequestAggrKeysharePacketData_ProposalId) MarshalToSizedBuffer(dAtA []b dAtA[i] = 0x12 return len(dAtA) - i, nil } -func (m *RequestAggrKeysharePacketData_RequestId) MarshalTo(dAtA []byte) (int, error) { +func (m *RequestDecryptionKeyPacketData_RequestId) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RequestAggrKeysharePacketData_RequestId) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RequestDecryptionKeyPacketData_RequestId) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.RequestId) copy(dAtA[i:], m.RequestId) @@ -1367,7 +1379,7 @@ func (m *RequestAggrKeysharePacketData_RequestId) MarshalToSizedBuffer(dAtA []by dAtA[i] = 0x1a return len(dAtA) - i, nil } -func (m *RequestPrivateKeysharePacketData) Marshal() (dAtA []byte, err error) { +func (m *RequestPrivateDecryptionKeyPacketData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1377,12 +1389,12 @@ func (m *RequestPrivateKeysharePacketData) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RequestPrivateKeysharePacketData) MarshalTo(dAtA []byte) (int, error) { +func (m *RequestPrivateDecryptionKeyPacketData) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RequestPrivateKeysharePacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RequestPrivateDecryptionKeyPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1404,7 +1416,7 @@ func (m *RequestPrivateKeysharePacketData) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *RequestPrivateKeysharePacketAck) Marshal() (dAtA []byte, err error) { +func (m *RequestPrivateDecryptionKeyPacketAck) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1414,12 +1426,12 @@ func (m *RequestPrivateKeysharePacketAck) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RequestPrivateKeysharePacketAck) MarshalTo(dAtA []byte) (int, error) { +func (m *RequestPrivateDecryptionKeyPacketAck) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RequestPrivateKeysharePacketAck) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RequestPrivateDecryptionKeyPacketAck) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1441,7 +1453,7 @@ func (m *RequestPrivateKeysharePacketAck) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } -func (m *RequestAggrKeysharePacketAck) Marshal() (dAtA []byte, err error) { +func (m *RequestDecryptionKeyPacketAck) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1451,12 +1463,12 @@ func (m *RequestAggrKeysharePacketAck) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RequestAggrKeysharePacketAck) MarshalTo(dAtA []byte) (int, error) { +func (m *RequestDecryptionKeyPacketAck) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RequestAggrKeysharePacketAck) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RequestDecryptionKeyPacketAck) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1478,7 +1490,7 @@ func (m *RequestAggrKeysharePacketAck) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *GetAggrKeysharePacketData) Marshal() (dAtA []byte, err error) { +func (m *GetDecryptionKeyPacketData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1488,12 +1500,12 @@ func (m *GetAggrKeysharePacketData) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetAggrKeysharePacketData) MarshalTo(dAtA []byte) (int, error) { +func (m *GetDecryptionKeyPacketData) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetAggrKeysharePacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetDecryptionKeyPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1508,7 +1520,7 @@ func (m *GetAggrKeysharePacketData) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *GetAggrKeysharePacketAck) Marshal() (dAtA []byte, err error) { +func (m *GetDecryptionKeyPacketAck) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1518,12 +1530,12 @@ func (m *GetAggrKeysharePacketAck) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetAggrKeysharePacketAck) MarshalTo(dAtA []byte) (int, error) { +func (m *GetDecryptionKeyPacketAck) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetAggrKeysharePacketAck) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetDecryptionKeyPacketAck) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1531,7 +1543,7 @@ func (m *GetAggrKeysharePacketAck) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *GetPrivateKeysharePacketData) Marshal() (dAtA []byte, err error) { +func (m *GetPrivateDecryptionKeyPacketData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1541,12 +1553,12 @@ func (m *GetPrivateKeysharePacketData) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetPrivateKeysharePacketData) MarshalTo(dAtA []byte) (int, error) { +func (m *GetPrivateDecryptionKeyPacketData) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetPrivateKeysharePacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetPrivateDecryptionKeyPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1575,7 +1587,7 @@ func (m *GetPrivateKeysharePacketData) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *GetPrivateKeysharePacketAck) Marshal() (dAtA []byte, err error) { +func (m *GetPrivateDecryptionKeyPacketAck) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1585,12 +1597,12 @@ func (m *GetPrivateKeysharePacketAck) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetPrivateKeysharePacketAck) MarshalTo(dAtA []byte) (int, error) { +func (m *GetPrivateDecryptionKeyPacketAck) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetPrivateKeysharePacketAck) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetPrivateDecryptionKeyPacketAck) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1598,7 +1610,7 @@ func (m *GetPrivateKeysharePacketAck) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *AggrKeyshareDataPacketData) Marshal() (dAtA []byte, err error) { +func (m *DecryptionKeyDataPacketData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1608,12 +1620,12 @@ func (m *AggrKeyshareDataPacketData) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *AggrKeyshareDataPacketData) MarshalTo(dAtA []byte) (int, error) { +func (m *DecryptionKeyDataPacketData) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *AggrKeyshareDataPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *DecryptionKeyDataPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1644,10 +1656,10 @@ func (m *AggrKeyshareDataPacketData) MarshalToSizedBuffer(dAtA []byte) (int, err i-- dAtA[i] = 0x22 } - if len(m.AggrKeyshare) > 0 { - i -= len(m.AggrKeyshare) - copy(dAtA[i:], m.AggrKeyshare) - i = encodeVarintPacket(dAtA, i, uint64(len(m.AggrKeyshare))) + if len(m.DecryptionKey) > 0 { + i -= len(m.DecryptionKey) + copy(dAtA[i:], m.DecryptionKey) + i = encodeVarintPacket(dAtA, i, uint64(len(m.DecryptionKey))) i-- dAtA[i] = 0x1a } @@ -1668,7 +1680,7 @@ func (m *AggrKeyshareDataPacketData) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *AggrKeyshareDataPacketAck) Marshal() (dAtA []byte, err error) { +func (m *DecryptionKeyPacketAck) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1678,12 +1690,12 @@ func (m *AggrKeyshareDataPacketAck) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *AggrKeyshareDataPacketAck) MarshalTo(dAtA []byte) (int, error) { +func (m *DecryptionKeyPacketAck) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *AggrKeyshareDataPacketAck) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *DecryptionKeyPacketAck) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1691,7 +1703,7 @@ func (m *AggrKeyshareDataPacketAck) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *EncryptedKeysharesPacketData) Marshal() (dAtA []byte, err error) { +func (m *PrivateDecryptionKeyDataPacketData) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1701,20 +1713,20 @@ func (m *EncryptedKeysharesPacketData) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EncryptedKeysharesPacketData) MarshalTo(dAtA []byte) (int, error) { +func (m *PrivateDecryptionKeyDataPacketData) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *EncryptedKeysharesPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PrivateDecryptionKeyDataPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.EncryptedKeyshares) > 0 { - for iNdEx := len(m.EncryptedKeyshares) - 1; iNdEx >= 0; iNdEx-- { + if len(m.PrivateDecryptionKey) > 0 { + for iNdEx := len(m.PrivateDecryptionKey) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.EncryptedKeyshares[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.PrivateDecryptionKey[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1749,7 +1761,7 @@ func (m *EncryptedKeysharesPacketData) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *EncryptedKeysharesPacketAck) Marshal() (dAtA []byte, err error) { +func (m *PrivateDecryptionKeyPacketAck) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1759,12 +1771,12 @@ func (m *EncryptedKeysharesPacketAck) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EncryptedKeysharesPacketAck) MarshalTo(dAtA []byte) (int, error) { +func (m *PrivateDecryptionKeyPacketAck) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *EncryptedKeysharesPacketAck) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PrivateDecryptionKeyPacketAck) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1877,50 +1889,50 @@ func (m *KeysharePacketData_NoData) Size() (n int) { } return n } -func (m *KeysharePacketData_RequestAggrKeysharePacket) Size() (n int) { +func (m *KeysharePacketData_RequestDecryptionKeyPacket) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.RequestAggrKeysharePacket != nil { - l = m.RequestAggrKeysharePacket.Size() + if m.RequestDecryptionKeyPacket != nil { + l = m.RequestDecryptionKeyPacket.Size() n += 1 + l + sovPacket(uint64(l)) } return n } -func (m *KeysharePacketData_GetAggrKeysharePacket) Size() (n int) { +func (m *KeysharePacketData_GetDecryptionKeyPacket) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.GetAggrKeysharePacket != nil { - l = m.GetAggrKeysharePacket.Size() + if m.GetDecryptionKeyPacket != nil { + l = m.GetDecryptionKeyPacket.Size() n += 1 + l + sovPacket(uint64(l)) } return n } -func (m *KeysharePacketData_AggrKeyshareDataPacket) Size() (n int) { +func (m *KeysharePacketData_DecryptionKeyDataPacket) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.AggrKeyshareDataPacket != nil { - l = m.AggrKeyshareDataPacket.Size() + if m.DecryptionKeyDataPacket != nil { + l = m.DecryptionKeyDataPacket.Size() n += 1 + l + sovPacket(uint64(l)) } return n } -func (m *KeysharePacketData_EncryptedKeysharesPacketData) Size() (n int) { +func (m *KeysharePacketData_PrivateDecryptionKeyDataPacket) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.EncryptedKeysharesPacketData != nil { - l = m.EncryptedKeysharesPacketData.Size() + if m.PrivateDecryptionKeyDataPacket != nil { + l = m.PrivateDecryptionKeyDataPacket.Size() n += 1 + l + sovPacket(uint64(l)) } return n @@ -1937,26 +1949,26 @@ func (m *KeysharePacketData_CurrentKeysPacket) Size() (n int) { } return n } -func (m *KeysharePacketData_RequestPrivKeysharePacket) Size() (n int) { +func (m *KeysharePacketData_RequestPrivateDecryptionKeyPacket) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.RequestPrivKeysharePacket != nil { - l = m.RequestPrivKeysharePacket.Size() + if m.RequestPrivateDecryptionKeyPacket != nil { + l = m.RequestPrivateDecryptionKeyPacket.Size() n += 1 + l + sovPacket(uint64(l)) } return n } -func (m *KeysharePacketData_GetPrivateKeysharePacket) Size() (n int) { +func (m *KeysharePacketData_GetPrivateDecryptionKeyPacket) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.GetPrivateKeysharePacket != nil { - l = m.GetPrivateKeysharePacket.Size() + if m.GetPrivateDecryptionKeyPacket != nil { + l = m.GetPrivateDecryptionKeyPacket.Size() n += 1 + l + sovPacket(uint64(l)) } return n @@ -1970,7 +1982,7 @@ func (m *NoData) Size() (n int) { return n } -func (m *RequestAggrKeysharePacketData) Size() (n int) { +func (m *RequestDecryptionKeyPacketData) Size() (n int) { if m == nil { return 0 } @@ -1990,7 +2002,7 @@ func (m *RequestAggrKeysharePacketData) Size() (n int) { return n } -func (m *RequestAggrKeysharePacketData_ProposalId) Size() (n int) { +func (m *RequestDecryptionKeyPacketData_ProposalId) Size() (n int) { if m == nil { return 0 } @@ -2000,7 +2012,7 @@ func (m *RequestAggrKeysharePacketData_ProposalId) Size() (n int) { n += 1 + l + sovPacket(uint64(l)) return n } -func (m *RequestAggrKeysharePacketData_RequestId) Size() (n int) { +func (m *RequestDecryptionKeyPacketData_RequestId) Size() (n int) { if m == nil { return 0 } @@ -2010,7 +2022,7 @@ func (m *RequestAggrKeysharePacketData_RequestId) Size() (n int) { n += 1 + l + sovPacket(uint64(l)) return n } -func (m *RequestPrivateKeysharePacketData) Size() (n int) { +func (m *RequestPrivateDecryptionKeyPacketData) Size() (n int) { if m == nil { return 0 } @@ -2027,7 +2039,7 @@ func (m *RequestPrivateKeysharePacketData) Size() (n int) { return n } -func (m *RequestPrivateKeysharePacketAck) Size() (n int) { +func (m *RequestPrivateDecryptionKeyPacketAck) Size() (n int) { if m == nil { return 0 } @@ -2044,7 +2056,7 @@ func (m *RequestPrivateKeysharePacketAck) Size() (n int) { return n } -func (m *RequestAggrKeysharePacketAck) Size() (n int) { +func (m *RequestDecryptionKeyPacketAck) Size() (n int) { if m == nil { return 0 } @@ -2061,7 +2073,7 @@ func (m *RequestAggrKeysharePacketAck) Size() (n int) { return n } -func (m *GetAggrKeysharePacketData) Size() (n int) { +func (m *GetDecryptionKeyPacketData) Size() (n int) { if m == nil { return 0 } @@ -2074,7 +2086,7 @@ func (m *GetAggrKeysharePacketData) Size() (n int) { return n } -func (m *GetAggrKeysharePacketAck) Size() (n int) { +func (m *GetDecryptionKeyPacketAck) Size() (n int) { if m == nil { return 0 } @@ -2083,7 +2095,7 @@ func (m *GetAggrKeysharePacketAck) Size() (n int) { return n } -func (m *GetPrivateKeysharePacketData) Size() (n int) { +func (m *GetPrivateDecryptionKeyPacketData) Size() (n int) { if m == nil { return 0 } @@ -2104,7 +2116,7 @@ func (m *GetPrivateKeysharePacketData) Size() (n int) { return n } -func (m *GetPrivateKeysharePacketAck) Size() (n int) { +func (m *GetPrivateDecryptionKeyPacketAck) Size() (n int) { if m == nil { return 0 } @@ -2113,7 +2125,7 @@ func (m *GetPrivateKeysharePacketAck) Size() (n int) { return n } -func (m *AggrKeyshareDataPacketData) Size() (n int) { +func (m *DecryptionKeyDataPacketData) Size() (n int) { if m == nil { return 0 } @@ -2127,7 +2139,7 @@ func (m *AggrKeyshareDataPacketData) Size() (n int) { if l > 0 { n += 1 + l + sovPacket(uint64(l)) } - l = len(m.AggrKeyshare) + l = len(m.DecryptionKey) if l > 0 { n += 1 + l + sovPacket(uint64(l)) } @@ -2149,7 +2161,7 @@ func (m *AggrKeyshareDataPacketData) Size() (n int) { return n } -func (m *AggrKeyshareDataPacketAck) Size() (n int) { +func (m *DecryptionKeyPacketAck) Size() (n int) { if m == nil { return 0 } @@ -2158,7 +2170,7 @@ func (m *AggrKeyshareDataPacketAck) Size() (n int) { return n } -func (m *EncryptedKeysharesPacketData) Size() (n int) { +func (m *PrivateDecryptionKeyDataPacketData) Size() (n int) { if m == nil { return 0 } @@ -2176,8 +2188,8 @@ func (m *EncryptedKeysharesPacketData) Size() (n int) { if l > 0 { n += 1 + l + sovPacket(uint64(l)) } - if len(m.EncryptedKeyshares) > 0 { - for _, e := range m.EncryptedKeyshares { + if len(m.PrivateDecryptionKey) > 0 { + for _, e := range m.PrivateDecryptionKey { l = e.Size() n += 1 + l + sovPacket(uint64(l)) } @@ -2185,7 +2197,7 @@ func (m *EncryptedKeysharesPacketData) Size() (n int) { return n } -func (m *EncryptedKeysharesPacketAck) Size() (n int) { +func (m *PrivateDecryptionKeyPacketAck) Size() (n int) { if m == nil { return 0 } @@ -2292,7 +2304,7 @@ func (m *KeysharePacketData) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestAggrKeysharePacket", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RequestDecryptionKeyPacket", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2319,15 +2331,15 @@ func (m *KeysharePacketData) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &RequestAggrKeysharePacketData{} + v := &RequestDecryptionKeyPacketData{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Packet = &KeysharePacketData_RequestAggrKeysharePacket{v} + m.Packet = &KeysharePacketData_RequestDecryptionKeyPacket{v} iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GetAggrKeysharePacket", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GetDecryptionKeyPacket", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2354,15 +2366,15 @@ func (m *KeysharePacketData) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &GetAggrKeysharePacketData{} + v := &GetDecryptionKeyPacketData{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Packet = &KeysharePacketData_GetAggrKeysharePacket{v} + m.Packet = &KeysharePacketData_GetDecryptionKeyPacket{v} iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AggrKeyshareDataPacket", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DecryptionKeyDataPacket", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2389,15 +2401,15 @@ func (m *KeysharePacketData) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &AggrKeyshareDataPacketData{} + v := &DecryptionKeyDataPacketData{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Packet = &KeysharePacketData_AggrKeyshareDataPacket{v} + m.Packet = &KeysharePacketData_DecryptionKeyDataPacket{v} iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeysharesPacketData", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PrivateDecryptionKeyDataPacket", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2424,11 +2436,11 @@ func (m *KeysharePacketData) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &EncryptedKeysharesPacketData{} + v := &PrivateDecryptionKeyDataPacketData{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Packet = &KeysharePacketData_EncryptedKeysharesPacketData{v} + m.Packet = &KeysharePacketData_PrivateDecryptionKeyDataPacket{v} iNdEx = postIndex case 6: if wireType != 2 { @@ -2467,7 +2479,7 @@ func (m *KeysharePacketData) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestPrivKeysharePacket", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RequestPrivateDecryptionKeyPacket", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2494,15 +2506,15 @@ func (m *KeysharePacketData) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &RequestPrivateKeysharePacketData{} + v := &RequestPrivateDecryptionKeyPacketData{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Packet = &KeysharePacketData_RequestPrivKeysharePacket{v} + m.Packet = &KeysharePacketData_RequestPrivateDecryptionKeyPacket{v} iNdEx = postIndex case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GetPrivateKeysharePacket", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GetPrivateDecryptionKeyPacket", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2529,11 +2541,11 @@ func (m *KeysharePacketData) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - v := &GetPrivateKeysharePacketData{} + v := &GetPrivateDecryptionKeyPacketData{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } - m.Packet = &KeysharePacketData_GetPrivateKeysharePacket{v} + m.Packet = &KeysharePacketData_GetPrivateDecryptionKeyPacket{v} iNdEx = postIndex default: iNdEx = preIndex @@ -2606,7 +2618,7 @@ func (m *NoData) Unmarshal(dAtA []byte) error { } return nil } -func (m *RequestAggrKeysharePacketData) Unmarshal(dAtA []byte) error { +func (m *RequestDecryptionKeyPacketData) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2629,10 +2641,10 @@ func (m *RequestAggrKeysharePacketData) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RequestAggrKeysharePacketData: wiretype end group for non-group") + return fmt.Errorf("proto: RequestDecryptionKeyPacketData: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RequestAggrKeysharePacketData: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RequestDecryptionKeyPacketData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2697,7 +2709,7 @@ func (m *RequestAggrKeysharePacketData) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Id = &RequestAggrKeysharePacketData_ProposalId{string(dAtA[iNdEx:postIndex])} + m.Id = &RequestDecryptionKeyPacketData_ProposalId{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 3: if wireType != 2 { @@ -2729,7 +2741,7 @@ func (m *RequestAggrKeysharePacketData) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Id = &RequestAggrKeysharePacketData_RequestId{string(dAtA[iNdEx:postIndex])} + m.Id = &RequestDecryptionKeyPacketData_RequestId{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 4: if wireType != 2 { @@ -2788,7 +2800,7 @@ func (m *RequestAggrKeysharePacketData) Unmarshal(dAtA []byte) error { } return nil } -func (m *RequestPrivateKeysharePacketData) Unmarshal(dAtA []byte) error { +func (m *RequestPrivateDecryptionKeyPacketData) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2811,10 +2823,10 @@ func (m *RequestPrivateKeysharePacketData) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RequestPrivateKeysharePacketData: wiretype end group for non-group") + return fmt.Errorf("proto: RequestPrivateDecryptionKeyPacketData: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RequestPrivateKeysharePacketData: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RequestPrivateDecryptionKeyPacketData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2902,7 +2914,7 @@ func (m *RequestPrivateKeysharePacketData) Unmarshal(dAtA []byte) error { } return nil } -func (m *RequestPrivateKeysharePacketAck) Unmarshal(dAtA []byte) error { +func (m *RequestPrivateDecryptionKeyPacketAck) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2925,10 +2937,10 @@ func (m *RequestPrivateKeysharePacketAck) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RequestPrivateKeysharePacketAck: wiretype end group for non-group") + return fmt.Errorf("proto: RequestPrivateDecryptionKeyPacketAck: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RequestPrivateKeysharePacketAck: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RequestPrivateDecryptionKeyPacketAck: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3016,7 +3028,7 @@ func (m *RequestPrivateKeysharePacketAck) Unmarshal(dAtA []byte) error { } return nil } -func (m *RequestAggrKeysharePacketAck) Unmarshal(dAtA []byte) error { +func (m *RequestDecryptionKeyPacketAck) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3039,10 +3051,10 @@ func (m *RequestAggrKeysharePacketAck) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RequestAggrKeysharePacketAck: wiretype end group for non-group") + return fmt.Errorf("proto: RequestDecryptionKeyPacketAck: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RequestAggrKeysharePacketAck: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RequestDecryptionKeyPacketAck: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3130,7 +3142,7 @@ func (m *RequestAggrKeysharePacketAck) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetAggrKeysharePacketData) Unmarshal(dAtA []byte) error { +func (m *GetDecryptionKeyPacketData) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3153,10 +3165,10 @@ func (m *GetAggrKeysharePacketData) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetAggrKeysharePacketData: wiretype end group for non-group") + return fmt.Errorf("proto: GetDecryptionKeyPacketData: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetAggrKeysharePacketData: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetDecryptionKeyPacketData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3212,7 +3224,7 @@ func (m *GetAggrKeysharePacketData) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetAggrKeysharePacketAck) Unmarshal(dAtA []byte) error { +func (m *GetDecryptionKeyPacketAck) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3235,10 +3247,10 @@ func (m *GetAggrKeysharePacketAck) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetAggrKeysharePacketAck: wiretype end group for non-group") + return fmt.Errorf("proto: GetDecryptionKeyPacketAck: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetAggrKeysharePacketAck: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetDecryptionKeyPacketAck: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -3262,7 +3274,7 @@ func (m *GetAggrKeysharePacketAck) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetPrivateKeysharePacketData) Unmarshal(dAtA []byte) error { +func (m *GetPrivateDecryptionKeyPacketData) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3285,10 +3297,10 @@ func (m *GetPrivateKeysharePacketData) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetPrivateKeysharePacketData: wiretype end group for non-group") + return fmt.Errorf("proto: GetPrivateDecryptionKeyPacketData: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetPrivateKeysharePacketData: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetPrivateDecryptionKeyPacketData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3408,7 +3420,7 @@ func (m *GetPrivateKeysharePacketData) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetPrivateKeysharePacketAck) Unmarshal(dAtA []byte) error { +func (m *GetPrivateDecryptionKeyPacketAck) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3431,10 +3443,10 @@ func (m *GetPrivateKeysharePacketAck) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetPrivateKeysharePacketAck: wiretype end group for non-group") + return fmt.Errorf("proto: GetPrivateDecryptionKeyPacketAck: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetPrivateKeysharePacketAck: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetPrivateDecryptionKeyPacketAck: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -3458,7 +3470,7 @@ func (m *GetPrivateKeysharePacketAck) Unmarshal(dAtA []byte) error { } return nil } -func (m *AggrKeyshareDataPacketData) Unmarshal(dAtA []byte) error { +func (m *DecryptionKeyDataPacketData) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3481,10 +3493,10 @@ func (m *AggrKeyshareDataPacketData) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AggrKeyshareDataPacketData: wiretype end group for non-group") + return fmt.Errorf("proto: DecryptionKeyDataPacketData: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AggrKeyshareDataPacketData: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DecryptionKeyDataPacketData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3553,7 +3565,7 @@ func (m *AggrKeyshareDataPacketData) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AggrKeyshare", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DecryptionKey", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3581,7 +3593,7 @@ func (m *AggrKeyshareDataPacketData) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AggrKeyshare = string(dAtA[iNdEx:postIndex]) + m.DecryptionKey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { @@ -3719,7 +3731,7 @@ func (m *AggrKeyshareDataPacketData) Unmarshal(dAtA []byte) error { } return nil } -func (m *AggrKeyshareDataPacketAck) Unmarshal(dAtA []byte) error { +func (m *DecryptionKeyPacketAck) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3742,10 +3754,10 @@ func (m *AggrKeyshareDataPacketAck) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AggrKeyshareDataPacketAck: wiretype end group for non-group") + return fmt.Errorf("proto: DecryptionKeyPacketAck: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AggrKeyshareDataPacketAck: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DecryptionKeyPacketAck: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -3769,7 +3781,7 @@ func (m *AggrKeyshareDataPacketAck) Unmarshal(dAtA []byte) error { } return nil } -func (m *EncryptedKeysharesPacketData) Unmarshal(dAtA []byte) error { +func (m *PrivateDecryptionKeyDataPacketData) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3792,10 +3804,10 @@ func (m *EncryptedKeysharesPacketData) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EncryptedKeysharesPacketData: wiretype end group for non-group") + return fmt.Errorf("proto: PrivateDecryptionKeyDataPacketData: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EncryptedKeysharesPacketData: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PrivateDecryptionKeyDataPacketData: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3896,7 +3908,7 @@ func (m *EncryptedKeysharesPacketData) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyshares", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PrivateDecryptionKey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3923,8 +3935,8 @@ func (m *EncryptedKeysharesPacketData) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EncryptedKeyshares = append(m.EncryptedKeyshares, &types.EncryptedKeyshare{}) - if err := m.EncryptedKeyshares[len(m.EncryptedKeyshares)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.PrivateDecryptionKey = append(m.PrivateDecryptionKey, &types.PrivateDecryptionKey{}) + if err := m.PrivateDecryptionKey[len(m.PrivateDecryptionKey)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3949,7 +3961,7 @@ func (m *EncryptedKeysharesPacketData) Unmarshal(dAtA []byte) error { } return nil } -func (m *EncryptedKeysharesPacketAck) Unmarshal(dAtA []byte) error { +func (m *PrivateDecryptionKeyPacketAck) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3972,10 +3984,10 @@ func (m *EncryptedKeysharesPacketAck) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EncryptedKeysharesPacketAck: wiretype end group for non-group") + return fmt.Errorf("proto: PrivateDecryptionKeyPacketAck: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EncryptedKeysharesPacketAck: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PrivateDecryptionKeyPacketAck: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: diff --git a/x/keyshare/types/packet_aggr_key_share_data.go b/x/keyshare/types/packet_decryption_key_data.go similarity index 65% rename from x/keyshare/types/packet_aggr_key_share_data.go rename to x/keyshare/types/packet_decryption_key_data.go index 7290fa2f..4f118aaf 100644 --- a/x/keyshare/types/packet_aggr_key_share_data.go +++ b/x/keyshare/types/packet_decryption_key_data.go @@ -8,7 +8,7 @@ import ( ) // ValidateBasic is used for validating the packet -func (p AggrKeyshareDataPacketData) ValidateBasic() error { +func (p DecryptionKeyDataPacketData) ValidateBasic() error { if p.Identity == "" { return errors.New("identity is blank") @@ -25,16 +25,16 @@ func (p AggrKeyshareDataPacketData) ValidateBasic() error { } // GetBytes is a helper for serialising -func (p AggrKeyshareDataPacketData) GetBytes() []byte { +func (p DecryptionKeyDataPacketData) GetBytes() []byte { var modulePacket KeysharePacketData - modulePacket.Packet = &KeysharePacketData_AggrKeyshareDataPacket{&p} + modulePacket.Packet = &KeysharePacketData_DecryptionKeyDataPacket{&p} return sdk.MustSortJSON(MustProtoMarshalJSON(&modulePacket)) } // ValidateBasic is used for validating the packet -func (p EncryptedKeysharesPacketData) ValidateBasic() error { +func (p PrivateDecryptionKeyDataPacketData) ValidateBasic() error { if p.Identity == "" { return errors.New("identity is blank") } @@ -42,10 +42,10 @@ func (p EncryptedKeysharesPacketData) ValidateBasic() error { } // GetBytes is a helper for serialising -func (p EncryptedKeysharesPacketData) GetBytes() []byte { +func (p PrivateDecryptionKeyDataPacketData) GetBytes() []byte { var modulePacket KeysharePacketData - modulePacket.Packet = &KeysharePacketData_EncryptedKeysharesPacketData{&p} + modulePacket.Packet = &KeysharePacketData_PrivateDecryptionKeyDataPacket{&p} return sdk.MustSortJSON(MustProtoMarshalJSON(&modulePacket)) } diff --git a/x/keyshare/types/packet_get_aggr_key_share.go b/x/keyshare/types/packet_get_decryption_key.go similarity index 61% rename from x/keyshare/types/packet_get_aggr_key_share.go rename to x/keyshare/types/packet_get_decryption_key.go index 76e3beff..543213c9 100644 --- a/x/keyshare/types/packet_get_aggr_key_share.go +++ b/x/keyshare/types/packet_get_decryption_key.go @@ -7,7 +7,7 @@ import ( ) // ValidateBasic is used for validating the packet -func (p GetAggrKeysharePacketData) ValidateBasic() error { +func (p GetDecryptionKeyPacketData) ValidateBasic() error { if p.Identity == "" { return errors.New("identity is blank") @@ -16,16 +16,16 @@ func (p GetAggrKeysharePacketData) ValidateBasic() error { } // GetBytes is a helper for serialising -func (p GetAggrKeysharePacketData) GetBytes() []byte { +func (p GetDecryptionKeyPacketData) GetBytes() []byte { var modulePacket KeysharePacketData - modulePacket.Packet = &KeysharePacketData_GetAggrKeysharePacket{&p} + modulePacket.Packet = &KeysharePacketData_GetDecryptionKeyPacket{&p} return sdk.MustSortJSON(MustProtoMarshalJSON(&modulePacket)) } // ValidateBasic is used for validating the packet -func (p GetPrivateKeysharePacketData) ValidateBasic() error { +func (p GetPrivateDecryptionKeyPacketData) ValidateBasic() error { if p.Identity == "" { return errors.New("identity is blank") @@ -34,10 +34,10 @@ func (p GetPrivateKeysharePacketData) ValidateBasic() error { } // GetBytes is a helper for serialising -func (p GetPrivateKeysharePacketData) GetBytes() []byte { +func (p GetPrivateDecryptionKeyPacketData) GetBytes() []byte { var modulePacket KeysharePacketData - modulePacket.Packet = &KeysharePacketData_GetPrivateKeysharePacket{&p} + modulePacket.Packet = &KeysharePacketData_GetPrivateDecryptionKeyPacket{&p} return sdk.MustSortJSON(MustProtoMarshalJSON(&modulePacket)) } diff --git a/x/keyshare/types/packet_request_aggr_key_share.go b/x/keyshare/types/packet_request_decryption_key.go similarity index 56% rename from x/keyshare/types/packet_request_aggr_key_share.go rename to x/keyshare/types/packet_request_decryption_key.go index 84b4e449..36f41d74 100644 --- a/x/keyshare/types/packet_request_aggr_key_share.go +++ b/x/keyshare/types/packet_request_decryption_key.go @@ -7,9 +7,9 @@ import ( ) // ValidateBasic is used for validating the packet -func (p RequestAggrKeysharePacketData) ValidateBasic() error { +func (p RequestDecryptionKeyPacketData) ValidateBasic() error { switch p.Id.(type) { - case *RequestAggrKeysharePacketData_ProposalId: + case *RequestDecryptionKeyPacketData_ProposalId: _, err := strconv.ParseUint(p.GetProposalId(), 10, 64) if err != nil { return err @@ -20,24 +20,24 @@ func (p RequestAggrKeysharePacketData) ValidateBasic() error { } // GetBytes is a helper for serialising -func (p RequestAggrKeysharePacketData) GetBytes() []byte { +func (p RequestDecryptionKeyPacketData) GetBytes() []byte { var modulePacket KeysharePacketData - modulePacket.Packet = &KeysharePacketData_RequestAggrKeysharePacket{&p} + modulePacket.Packet = &KeysharePacketData_RequestDecryptionKeyPacket{&p} return sdk.MustSortJSON(MustProtoMarshalJSON(&modulePacket)) } // ValidateBasic is used for validating the packet -func (p RequestPrivateKeysharePacketData) ValidateBasic() error { +func (p RequestPrivateDecryptionKeyPacketData) ValidateBasic() error { return nil } // GetBytes is a helper for serialising -func (p RequestPrivateKeysharePacketData) GetBytes() []byte { +func (p RequestPrivateDecryptionKeyPacketData) GetBytes() []byte { var modulePacket KeysharePacketData - modulePacket.Packet = &KeysharePacketData_RequestPrivKeysharePacket{&p} + modulePacket.Packet = &KeysharePacketData_RequestPrivateDecryptionKeyPacket{&p} return sdk.MustSortJSON(MustProtoMarshalJSON(&modulePacket)) } diff --git a/x/keyshare/types/query.pb.go b/x/keyshare/types/query.pb.go index c68e55fd..dd9f401e 100644 --- a/x/keyshare/types/query.pb.go +++ b/x/keyshare/types/query.pb.go @@ -680,23 +680,23 @@ func (m *QueryKeyShareAllResponse) GetPagination() *query.PageResponse { return nil } -// QueryAggregatedKeyShareRequest is request type for the Query/AggregatedKeyShare RPC method. -type QueryAggregatedKeyShareRequest struct { +// QueryDecryptionKeyRequest is request type for the Query/DecryptionKey RPC method. +type QueryDecryptionKeyRequest struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` } -func (m *QueryAggregatedKeyShareRequest) Reset() { *m = QueryAggregatedKeyShareRequest{} } -func (m *QueryAggregatedKeyShareRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAggregatedKeyShareRequest) ProtoMessage() {} -func (*QueryAggregatedKeyShareRequest) Descriptor() ([]byte, []int) { +func (m *QueryDecryptionKeyRequest) Reset() { *m = QueryDecryptionKeyRequest{} } +func (m *QueryDecryptionKeyRequest) String() string { return proto.CompactTextString(m) } +func (*QueryDecryptionKeyRequest) ProtoMessage() {} +func (*QueryDecryptionKeyRequest) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{14} } -func (m *QueryAggregatedKeyShareRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryDecryptionKeyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAggregatedKeyShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryDecryptionKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAggregatedKeyShareRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryDecryptionKeyRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -706,42 +706,42 @@ func (m *QueryAggregatedKeyShareRequest) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *QueryAggregatedKeyShareRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAggregatedKeyShareRequest.Merge(m, src) +func (m *QueryDecryptionKeyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDecryptionKeyRequest.Merge(m, src) } -func (m *QueryAggregatedKeyShareRequest) XXX_Size() int { +func (m *QueryDecryptionKeyRequest) XXX_Size() int { return m.Size() } -func (m *QueryAggregatedKeyShareRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAggregatedKeyShareRequest.DiscardUnknown(m) +func (m *QueryDecryptionKeyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDecryptionKeyRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAggregatedKeyShareRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryDecryptionKeyRequest proto.InternalMessageInfo -func (m *QueryAggregatedKeyShareRequest) GetHeight() uint64 { +func (m *QueryDecryptionKeyRequest) GetHeight() uint64 { if m != nil { return m.Height } return 0 } -// QueryAggregatedKeyShareResponse is response type for the Query/AggregatedKeyShare RPC method. -type QueryAggregatedKeyShareResponse struct { - AggregatedKeyShare AggregatedKeyShare `protobuf:"bytes,1,opt,name=aggregated_key_share,json=aggregatedKeyShare,proto3" json:"aggregated_key_share"` +// QueryDecryptionKeyResponse is response type for the Query/DecryptionKey RPC method. +type QueryDecryptionKeyResponse struct { + DecryptionKey AggregatedKeyShare `protobuf:"bytes,1,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key"` } -func (m *QueryAggregatedKeyShareResponse) Reset() { *m = QueryAggregatedKeyShareResponse{} } -func (m *QueryAggregatedKeyShareResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAggregatedKeyShareResponse) ProtoMessage() {} -func (*QueryAggregatedKeyShareResponse) Descriptor() ([]byte, []int) { +func (m *QueryDecryptionKeyResponse) Reset() { *m = QueryDecryptionKeyResponse{} } +func (m *QueryDecryptionKeyResponse) String() string { return proto.CompactTextString(m) } +func (*QueryDecryptionKeyResponse) ProtoMessage() {} +func (*QueryDecryptionKeyResponse) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{15} } -func (m *QueryAggregatedKeyShareResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryDecryptionKeyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAggregatedKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryDecryptionKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAggregatedKeyShareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryDecryptionKeyResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -751,42 +751,42 @@ func (m *QueryAggregatedKeyShareResponse) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (m *QueryAggregatedKeyShareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAggregatedKeyShareResponse.Merge(m, src) +func (m *QueryDecryptionKeyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDecryptionKeyResponse.Merge(m, src) } -func (m *QueryAggregatedKeyShareResponse) XXX_Size() int { +func (m *QueryDecryptionKeyResponse) XXX_Size() int { return m.Size() } -func (m *QueryAggregatedKeyShareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAggregatedKeyShareResponse.DiscardUnknown(m) +func (m *QueryDecryptionKeyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDecryptionKeyResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAggregatedKeyShareResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryDecryptionKeyResponse proto.InternalMessageInfo -func (m *QueryAggregatedKeyShareResponse) GetAggregatedKeyShare() AggregatedKeyShare { +func (m *QueryDecryptionKeyResponse) GetDecryptionKey() AggregatedKeyShare { if m != nil { - return m.AggregatedKeyShare + return m.DecryptionKey } return AggregatedKeyShare{} } -// QueryAggregatedKeyShareAllRequest is request type for the Query/AggregatedKeyShareAll RPC method. -type QueryAggregatedKeyShareAllRequest struct { +// QueryDecryptionKeyAllRequest is request type for the Query/DecryptionKeyAll RPC method. +type QueryDecryptionKeyAllRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAggregatedKeyShareAllRequest) Reset() { *m = QueryAggregatedKeyShareAllRequest{} } -func (m *QueryAggregatedKeyShareAllRequest) String() string { return proto.CompactTextString(m) } -func (*QueryAggregatedKeyShareAllRequest) ProtoMessage() {} -func (*QueryAggregatedKeyShareAllRequest) Descriptor() ([]byte, []int) { +func (m *QueryDecryptionKeyAllRequest) Reset() { *m = QueryDecryptionKeyAllRequest{} } +func (m *QueryDecryptionKeyAllRequest) String() string { return proto.CompactTextString(m) } +func (*QueryDecryptionKeyAllRequest) ProtoMessage() {} +func (*QueryDecryptionKeyAllRequest) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{16} } -func (m *QueryAggregatedKeyShareAllRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryDecryptionKeyAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAggregatedKeyShareAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryDecryptionKeyAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAggregatedKeyShareAllRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryDecryptionKeyAllRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -796,43 +796,43 @@ func (m *QueryAggregatedKeyShareAllRequest) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryAggregatedKeyShareAllRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAggregatedKeyShareAllRequest.Merge(m, src) +func (m *QueryDecryptionKeyAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDecryptionKeyAllRequest.Merge(m, src) } -func (m *QueryAggregatedKeyShareAllRequest) XXX_Size() int { +func (m *QueryDecryptionKeyAllRequest) XXX_Size() int { return m.Size() } -func (m *QueryAggregatedKeyShareAllRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAggregatedKeyShareAllRequest.DiscardUnknown(m) +func (m *QueryDecryptionKeyAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDecryptionKeyAllRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryAggregatedKeyShareAllRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryDecryptionKeyAllRequest proto.InternalMessageInfo -func (m *QueryAggregatedKeyShareAllRequest) GetPagination() *query.PageRequest { +func (m *QueryDecryptionKeyAllRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -// QueryAggregatedKeyShareAllResponse is response type for the Query/AggregatedKeyShareAll RPC method. -type QueryAggregatedKeyShareAllResponse struct { - AggregatedKeyShare []AggregatedKeyShare `protobuf:"bytes,1,rep,name=aggregated_key_share,json=aggregatedKeyShare,proto3" json:"aggregated_key_share"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +// QueryAggregatedKeyShareAllResponse is response type for the Query/DecryptionKeyAll RPC method. +type QueryDecryptionKeyAllResponse struct { + DecryptionKeys []AggregatedKeyShare `protobuf:"bytes,1,rep,name=decryption_keys,json=decryptionKeys,proto3" json:"decryption_keys"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryAggregatedKeyShareAllResponse) Reset() { *m = QueryAggregatedKeyShareAllResponse{} } -func (m *QueryAggregatedKeyShareAllResponse) String() string { return proto.CompactTextString(m) } -func (*QueryAggregatedKeyShareAllResponse) ProtoMessage() {} -func (*QueryAggregatedKeyShareAllResponse) Descriptor() ([]byte, []int) { +func (m *QueryDecryptionKeyAllResponse) Reset() { *m = QueryDecryptionKeyAllResponse{} } +func (m *QueryDecryptionKeyAllResponse) String() string { return proto.CompactTextString(m) } +func (*QueryDecryptionKeyAllResponse) ProtoMessage() {} +func (*QueryDecryptionKeyAllResponse) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{17} } -func (m *QueryAggregatedKeyShareAllResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryDecryptionKeyAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryAggregatedKeyShareAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryDecryptionKeyAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryAggregatedKeyShareAllResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryDecryptionKeyAllResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -842,26 +842,26 @@ func (m *QueryAggregatedKeyShareAllResponse) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryAggregatedKeyShareAllResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryAggregatedKeyShareAllResponse.Merge(m, src) +func (m *QueryDecryptionKeyAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDecryptionKeyAllResponse.Merge(m, src) } -func (m *QueryAggregatedKeyShareAllResponse) XXX_Size() int { +func (m *QueryDecryptionKeyAllResponse) XXX_Size() int { return m.Size() } -func (m *QueryAggregatedKeyShareAllResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryAggregatedKeyShareAllResponse.DiscardUnknown(m) +func (m *QueryDecryptionKeyAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDecryptionKeyAllResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryAggregatedKeyShareAllResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryDecryptionKeyAllResponse proto.InternalMessageInfo -func (m *QueryAggregatedKeyShareAllResponse) GetAggregatedKeyShare() []AggregatedKeyShare { +func (m *QueryDecryptionKeyAllResponse) GetDecryptionKeys() []AggregatedKeyShare { if m != nil { - return m.AggregatedKeyShare + return m.DecryptionKeys } return nil } -func (m *QueryAggregatedKeyShareAllResponse) GetPagination() *query.PageResponse { +func (m *QueryDecryptionKeyAllResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } @@ -1365,10 +1365,10 @@ func init() { proto.RegisterType((*QueryKeyShareResponse)(nil), "fairyring.keyshare.QueryKeyShareResponse") proto.RegisterType((*QueryKeyShareAllRequest)(nil), "fairyring.keyshare.QueryKeyShareAllRequest") proto.RegisterType((*QueryKeyShareAllResponse)(nil), "fairyring.keyshare.QueryKeyShareAllResponse") - proto.RegisterType((*QueryAggregatedKeyShareRequest)(nil), "fairyring.keyshare.QueryAggregatedKeyShareRequest") - proto.RegisterType((*QueryAggregatedKeyShareResponse)(nil), "fairyring.keyshare.QueryAggregatedKeyShareResponse") - proto.RegisterType((*QueryAggregatedKeyShareAllRequest)(nil), "fairyring.keyshare.QueryAggregatedKeyShareAllRequest") - proto.RegisterType((*QueryAggregatedKeyShareAllResponse)(nil), "fairyring.keyshare.QueryAggregatedKeyShareAllResponse") + proto.RegisterType((*QueryDecryptionKeyRequest)(nil), "fairyring.keyshare.QueryDecryptionKeyRequest") + proto.RegisterType((*QueryDecryptionKeyResponse)(nil), "fairyring.keyshare.QueryDecryptionKeyResponse") + proto.RegisterType((*QueryDecryptionKeyAllRequest)(nil), "fairyring.keyshare.QueryDecryptionKeyAllRequest") + proto.RegisterType((*QueryDecryptionKeyAllResponse)(nil), "fairyring.keyshare.QueryDecryptionKeyAllResponse") proto.RegisterType((*QueryPubKeyRequest)(nil), "fairyring.keyshare.QueryPubKeyRequest") proto.RegisterType((*QueryPubKeyResponse)(nil), "fairyring.keyshare.QueryPubKeyResponse") proto.RegisterType((*QueryAuthorizedAddressRequest)(nil), "fairyring.keyshare.QueryAuthorizedAddressRequest") @@ -1384,97 +1384,98 @@ func init() { func init() { proto.RegisterFile("fairyring/keyshare/query.proto", fileDescriptor_572603c2d521bf14) } var fileDescriptor_572603c2d521bf14 = []byte{ - // 1432 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcf, 0x6f, 0x1b, 0xc5, - 0x17, 0xcf, 0x24, 0x6d, 0xda, 0xbc, 0xf4, 0xfb, 0xad, 0x32, 0xb8, 0x34, 0x75, 0x53, 0x27, 0x99, - 0xd2, 0x24, 0x6d, 0xa9, 0xa7, 0x49, 0x29, 0x2d, 0x48, 0x08, 0x52, 0xa4, 0xb6, 0xa8, 0xa8, 0x6a, - 0xdd, 0x52, 0xa0, 0x07, 0xac, 0x71, 0x76, 0xba, 0x5e, 0x62, 0xef, 0x3a, 0xbb, 0xeb, 0xa8, 0x26, - 0x04, 0x09, 0xfe, 0x01, 0x40, 0xdc, 0x41, 0x48, 0x3d, 0x70, 0xe0, 0x00, 0x02, 0xa1, 0x8a, 0x1b, - 0x12, 0x87, 0x5e, 0x90, 0x2a, 0x71, 0xe1, 0x84, 0x50, 0x83, 0xc4, 0xbf, 0x81, 0x3c, 0xfb, 0xd6, - 0x59, 0x7b, 0x67, 0xd7, 0x6b, 0x9a, 0x5c, 0x2c, 0xef, 0xec, 0xfb, 0xf1, 0x79, 0x3f, 0xe6, 0xcd, - 0x67, 0x07, 0x0a, 0xf7, 0x84, 0xe5, 0xb6, 0x5c, 0xcb, 0x36, 0xf9, 0xaa, 0x6c, 0x79, 0x55, 0xe1, - 0x4a, 0xbe, 0xd6, 0x94, 0x6e, 0xab, 0xd8, 0x70, 0x1d, 0xdf, 0xa1, 0xb4, 0xf3, 0xbe, 0x18, 0xbe, - 0xcf, 0x4f, 0x88, 0xba, 0x65, 0x3b, 0x5c, 0xfd, 0x06, 0x62, 0xf9, 0x9c, 0xe9, 0x98, 0x8e, 0xfa, - 0xcb, 0xdb, 0xff, 0x70, 0x75, 0xca, 0x74, 0x1c, 0xb3, 0x26, 0xb9, 0x68, 0x58, 0x5c, 0xd8, 0xb6, - 0xe3, 0x0b, 0xdf, 0x72, 0x6c, 0x0f, 0xdf, 0x9e, 0x5a, 0x71, 0xbc, 0xba, 0xe3, 0xf1, 0x8a, 0xf0, - 0xd0, 0x27, 0x5f, 0x5f, 0xac, 0x48, 0x5f, 0x2c, 0xf2, 0x86, 0x30, 0x2d, 0x5b, 0x09, 0xa3, 0xec, - 0xb4, 0x06, 0x66, 0x43, 0xb8, 0xa2, 0x1e, 0x1a, 0x9b, 0xd3, 0x08, 0xac, 0x8b, 0x9a, 0x65, 0x08, - 0xdf, 0x71, 0xcb, 0x9e, 0xf4, 0x51, 0x8e, 0x69, 0xe4, 0x56, 0x65, 0xab, 0xac, 0xfe, 0xa1, 0xcc, - 0x19, 0x8d, 0x8c, 0x30, 0x4d, 0x57, 0x9a, 0xc2, 0x97, 0x46, 0xb9, 0x57, 0x7c, 0x46, 0x87, 0xad, - 0x59, 0x69, 0xcb, 0xa1, 0xc4, 0x69, 0x9d, 0xc1, 0xa6, 0x5f, 0x75, 0x5c, 0xeb, 0x03, 0x69, 0x94, - 0x85, 0x61, 0xb8, 0xd2, 0x0b, 0x23, 0x79, 0x4e, 0x23, 0xbc, 0xe2, 0xd4, 0xeb, 0x96, 0x5f, 0x97, - 0xb6, 0x8f, 0x52, 0x8c, 0xc1, 0xcc, 0xcd, 0x76, 0xca, 0xee, 0x48, 0xd7, 0xba, 0x67, 0x89, 0x4a, - 0x4d, 0x96, 0x84, 0x6d, 0x38, 0x75, 0x5b, 0x7a, 0x5e, 0x49, 0xae, 0x35, 0xa5, 0xe7, 0xb3, 0x77, - 0x61, 0x36, 0x45, 0xc6, 0x6b, 0x38, 0xb6, 0x27, 0x69, 0x01, 0xc0, 0xed, 0xac, 0x4e, 0x92, 0x19, - 0xb2, 0x30, 0x56, 0x8a, 0xac, 0xd0, 0x1c, 0xec, 0x75, 0x9d, 0xa6, 0x6d, 0x4c, 0x0e, 0xcf, 0x90, - 0x85, 0x3d, 0xa5, 0xe0, 0x81, 0xe5, 0x80, 0x2a, 0xd3, 0x37, 0x54, 0x0d, 0x42, 0x87, 0xb7, 0xe1, - 0x99, 0xae, 0x55, 0x74, 0xf1, 0x0a, 0x8c, 0x06, 0xb5, 0x52, 0xe6, 0xc7, 0x97, 0xf2, 0xc5, 0x78, - 0x53, 0x15, 0x03, 0x9d, 0x4b, 0x63, 0x8f, 0xfe, 0x9c, 0x1e, 0xfa, 0xe6, 0x9f, 0xef, 0x4e, 0x91, - 0x12, 0x2a, 0xb1, 0x23, 0x70, 0x58, 0x59, 0x7d, 0x7d, 0x3b, 0x09, 0xa1, 0xc3, 0x9f, 0x09, 0x4c, - 0xc6, 0xdf, 0xa1, 0xdb, 0xeb, 0x40, 0xc5, 0x8a, 0x6f, 0xad, 0xcb, 0x72, 0x24, 0x7d, 0x08, 0x61, - 0x5a, 0x07, 0x21, 0x6a, 0x64, 0x22, 0x50, 0x8d, 0x2c, 0xb5, 0xed, 0xad, 0x35, 0x65, 0x53, 0x1a, - 0x5d, 0xf6, 0x86, 0x33, 0xda, 0x0b, 0x54, 0x23, 0x4b, 0xec, 0x2c, 0x62, 0xbf, 0x13, 0xb6, 0xe9, - 0x2d, 0xe9, 0x63, 0x60, 0xed, 0xac, 0x5b, 0xb6, 0x21, 0xef, 0x63, 0x41, 0x82, 0x07, 0x56, 0x85, - 0x23, 0x1a, 0x0d, 0x0c, 0xf7, 0x1a, 0xfc, 0xaf, 0xab, 0xe1, 0x31, 0xd2, 0x19, 0x1d, 0xb2, 0xa8, - 0x81, 0x4b, 0x7b, 0xda, 0x29, 0x2f, 0x1d, 0x58, 0x8f, 0xac, 0x31, 0x09, 0x47, 0x63, 0x9e, 0x96, - 0x6b, 0xb5, 0x10, 0xde, 0x65, 0x80, 0xed, 0x2d, 0x8a, 0x8e, 0xe6, 0x8a, 0xc1, 0x7e, 0x2e, 0xb6, - 0xf7, 0x73, 0x31, 0x98, 0x21, 0xb8, 0x9f, 0x8b, 0x37, 0x84, 0x29, 0x51, 0xb7, 0x14, 0xd1, 0x64, - 0x3f, 0x12, 0x98, 0xd2, 0xfb, 0x49, 0x0e, 0x6a, 0xe4, 0xbf, 0x06, 0x45, 0xaf, 0x74, 0xa1, 0x0e, - 0x0a, 0x37, 0xdf, 0x17, 0x75, 0x80, 0xa4, 0x0b, 0xf6, 0xdb, 0x90, 0x53, 0xa8, 0xaf, 0xc9, 0xd6, - 0xad, 0xb6, 0xeb, 0x30, 0x2d, 0x53, 0x30, 0xd6, 0x71, 0x88, 0x95, 0xdb, 0x5e, 0xa0, 0xb3, 0x70, - 0xa0, 0x52, 0x73, 0x56, 0x56, 0xcb, 0x55, 0x69, 0x99, 0x55, 0x1f, 0x37, 0xd4, 0xb8, 0x5a, 0xbb, - 0xaa, 0x96, 0xd8, 0x3b, 0x70, 0xa8, 0xc7, 0x30, 0xe6, 0xe1, 0x55, 0x18, 0xeb, 0x8c, 0x1d, 0xcc, - 0xf7, 0x94, 0x2e, 0x07, 0xa1, 0x22, 0xc6, 0xbf, 0x7f, 0x15, 0x9f, 0x99, 0xc0, 0x4d, 0x14, 0x0a, - 0xec, 0x42, 0x31, 0x1f, 0x84, 0x9b, 0xb1, 0xcb, 0x87, 0x3e, 0x80, 0x91, 0x41, 0x03, 0xd8, 0xb9, - 0xe2, 0x5d, 0x84, 0x82, 0x42, 0xb9, 0xdc, 0x99, 0xe8, 0xbd, 0x65, 0x7c, 0x16, 0x46, 0xb1, 0x44, - 0x44, 0x95, 0x08, 0x9f, 0xd8, 0xc7, 0x04, 0xa6, 0x13, 0x55, 0x31, 0xce, 0xf7, 0x20, 0xa7, 0x3b, - 0x2a, 0x3a, 0x69, 0xd5, 0x84, 0x1c, 0xb7, 0x86, 0xc1, 0x53, 0x11, 0x7b, 0xc3, 0x56, 0x71, 0xa6, - 0xc7, 0x95, 0x76, 0xa1, 0xa2, 0xbf, 0x11, 0x60, 0x69, 0xde, 0xfa, 0xc6, 0x3c, 0xb2, 0x13, 0x31, - 0xef, 0x5c, 0xe9, 0x3b, 0xa7, 0x56, 0xb3, 0x72, 0x4d, 0xb6, 0xc2, 0x43, 0xe4, 0x7b, 0x12, 0x1e, - 0x5b, 0xb8, 0x8c, 0x61, 0xbd, 0x09, 0xff, 0xc7, 0xf3, 0x03, 0x4f, 0xf3, 0xb4, 0x89, 0xba, 0xac, - 0x24, 0x03, 0x0b, 0xe1, 0xf0, 0x11, 0x91, 0xb5, 0xb6, 0x35, 0x3c, 0x3d, 0x42, 0x6b, 0xc3, 0xc9, - 0xd6, 0x6e, 0x2a, 0xc9, 0x6e, 0x6b, 0x6b, 0x91, 0x35, 0x76, 0x01, 0x8e, 0x05, 0x85, 0xe9, 0xb0, - 0x88, 0xe5, 0x80, 0x44, 0x44, 0x7a, 0xd8, 0x17, 0xae, 0x89, 0xc7, 0xc0, 0x58, 0x09, 0x9f, 0xd8, - 0x87, 0x61, 0xf7, 0xc7, 0x15, 0x31, 0xec, 0xbb, 0x40, 0xe3, 0xdc, 0x04, 0x43, 0x3f, 0xa1, 0x0d, - 0xbd, 0xd7, 0x14, 0x22, 0x9e, 0x10, 0xbd, 0x2f, 0xd8, 0xfb, 0xc8, 0x5a, 0x62, 0x2a, 0xbb, 0xd0, - 0xbc, 0x8f, 0x48, 0xb8, 0x55, 0xb4, 0xce, 0xfa, 0x44, 0x3b, 0xf2, 0xf4, 0xd1, 0xee, 0x5c, 0xdf, - 0x3a, 0x78, 0x1a, 0x5f, 0x91, 0xb6, 0x74, 0x45, 0x6d, 0xb0, 0x63, 0xe7, 0x30, 0xec, 0xb3, 0x8c, - 0xb2, 0xdf, 0x6a, 0x48, 0x05, 0x61, 0xac, 0x34, 0x6a, 0x19, 0xb7, 0x5b, 0x0d, 0x49, 0x8f, 0xc0, - 0x7e, 0xcb, 0x28, 0xaf, 0x8b, 0x5a, 0x53, 0x4e, 0x8e, 0xa8, 0x37, 0xfb, 0x2c, 0xe3, 0x4e, 0xfb, - 0x91, 0x35, 0xf1, 0x58, 0x8e, 0x39, 0xc4, 0xac, 0xbd, 0x05, 0x13, 0x66, 0xf0, 0x2a, 0x36, 0xe2, - 0x8e, 0xeb, 0x92, 0xd6, 0x63, 0x07, 0x53, 0x76, 0xd0, 0xec, 0x5e, 0x66, 0x55, 0x6c, 0xce, 0x1e, - 0xf1, 0x5d, 0x68, 0x8e, 0x5f, 0xc2, 0x51, 0xae, 0x73, 0x95, 0x1e, 0xe4, 0xc8, 0xd3, 0x05, 0xb9, - 0x63, 0x5d, 0xb1, 0xf4, 0x80, 0xc2, 0x5e, 0x15, 0x03, 0xdd, 0x84, 0xd1, 0x80, 0x3e, 0xd3, 0xb9, - 0x84, 0x69, 0xd2, 0xc3, 0xd4, 0xf3, 0xf3, 0x7d, 0xe5, 0x02, 0x87, 0x8c, 0x7d, 0xf2, 0xfb, 0xdf, - 0x5f, 0x0c, 0x4f, 0xd1, 0x3c, 0x4f, 0xfc, 0x02, 0xa3, 0x9f, 0x13, 0x18, 0x8f, 0x12, 0xe5, 0xd3, - 0x89, 0xc6, 0xe3, 0x14, 0x3e, 0xff, 0x7c, 0x36, 0x61, 0x84, 0x33, 0xaf, 0xe0, 0xcc, 0xd2, 0x69, - 0x9e, 0xfe, 0x95, 0x44, 0xbf, 0x24, 0x70, 0x20, 0x4a, 0x08, 0x69, 0xb2, 0x1f, 0x0d, 0xff, 0xce, - 0x9f, 0xc9, 0x28, 0x8d, 0xb0, 0x16, 0x15, 0xac, 0xd3, 0xf4, 0x24, 0xef, 0xf7, 0x19, 0xca, 0x37, - 0x14, 0x95, 0xdf, 0xa4, 0x5f, 0x11, 0x38, 0xd8, 0xc3, 0x7a, 0x29, 0xcf, 0xe4, 0x75, 0x7b, 0x3b, - 0xe4, 0xcf, 0x66, 0x57, 0x40, 0xa4, 0x27, 0x15, 0xd2, 0xe3, 0x74, 0xb6, 0x2f, 0x52, 0xfa, 0x35, - 0x81, 0xfd, 0x9d, 0xae, 0x5d, 0x48, 0xf4, 0xd4, 0x33, 0x8d, 0xf2, 0x27, 0x33, 0x48, 0x22, 0x98, - 0xd7, 0x14, 0x98, 0x97, 0xe9, 0x45, 0x9e, 0xf6, 0x55, 0xce, 0x37, 0x3a, 0xb8, 0x36, 0xf9, 0x46, - 0x94, 0x42, 0x6f, 0xd2, 0x4f, 0x09, 0x8c, 0x47, 0xf6, 0x6e, 0x4a, 0xeb, 0xc5, 0x87, 0x49, 0x4a, - 0xeb, 0x69, 0xc6, 0x01, 0x3b, 0xa1, 0xc0, 0x4e, 0xd3, 0x63, 0xa9, 0x60, 0xe9, 0x43, 0x02, 0x34, - 0xce, 0x6e, 0xe8, 0x52, 0xa2, 0xaf, 0x44, 0x1e, 0x9a, 0x3f, 0x37, 0x90, 0x0e, 0xc2, 0x7c, 0x49, - 0xc1, 0x3c, 0x47, 0x17, 0x79, 0xc6, 0x5b, 0x0c, 0xbe, 0x11, 0x26, 0xf3, 0x21, 0x81, 0x43, 0x5a, - 0xa6, 0x47, 0xcf, 0x0f, 0x80, 0x24, 0x92, 0xe0, 0x17, 0x07, 0x55, 0xc3, 0x18, 0xce, 0xaa, 0x18, - 0x4e, 0xd1, 0x85, 0xac, 0x31, 0xd0, 0x8f, 0x60, 0x14, 0x79, 0x56, 0xca, 0x04, 0x8c, 0xb2, 0xbe, - 0xb4, 0x09, 0xd8, 0x45, 0x03, 0xd9, 0x71, 0x05, 0xe6, 0x18, 0x3d, 0xca, 0x93, 0xef, 0x79, 0xe8, - 0x0f, 0x04, 0x26, 0x62, 0xcc, 0x80, 0x2e, 0x26, 0xc7, 0x9f, 0xc0, 0xdb, 0xf2, 0x4b, 0x83, 0xa8, - 0x20, 0xc2, 0x0b, 0x0a, 0xe1, 0x22, 0xe5, 0x3c, 0xd3, 0x3d, 0x13, 0xdf, 0x08, 0xb8, 0xe0, 0x66, - 0x1b, 0x75, 0x4e, 0xc7, 0x8e, 0xe8, 0x0b, 0xd9, 0x51, 0x44, 0xca, 0x7d, 0x7e, 0x40, 0x2d, 0x84, - 0x5f, 0x54, 0xf0, 0x17, 0xe8, 0x5c, 0x36, 0xf8, 0xf4, 0x57, 0x02, 0x07, 0x7b, 0xce, 0xda, 0x94, - 0xc9, 0xa9, 0xe7, 0x4c, 0x29, 0x93, 0x33, 0x81, 0xf3, 0xb0, 0xeb, 0x0a, 0xe6, 0x55, 0x7a, 0x59, - 0x07, 0x33, 0x46, 0x14, 0xba, 0x87, 0x16, 0x12, 0xb0, 0xe0, 0x9f, 0x62, 0x5c, 0x9b, 0xf4, 0x5b, - 0x02, 0x34, 0xce, 0x3e, 0x52, 0x06, 0x45, 0x22, 0x2b, 0x4a, 0x19, 0x14, 0xc9, 0xf4, 0x86, 0x9d, - 0x51, 0xf1, 0xcc, 0xd3, 0x13, 0x99, 0xe2, 0xa1, 0x3f, 0x11, 0xc8, 0xe9, 0x2e, 0x12, 0x53, 0x7a, - 0x25, 0xe5, 0x6e, 0x32, 0xa5, 0x57, 0xd2, 0x6e, 0x2b, 0xfb, 0x1c, 0xb4, 0x1d, 0xcd, 0xf2, 0xf6, - 0x05, 0xe6, 0xa5, 0x37, 0x1e, 0x3d, 0x29, 0x90, 0xc7, 0x4f, 0x0a, 0xe4, 0xaf, 0x27, 0x05, 0xf2, - 0xd9, 0x56, 0x61, 0xe8, 0xf1, 0x56, 0x61, 0xe8, 0x8f, 0xad, 0xc2, 0xd0, 0x5d, 0x6e, 0x5a, 0x7e, - 0xb5, 0x59, 0x29, 0xae, 0x38, 0x75, 0x7e, 0x59, 0x58, 0xae, 0x3a, 0x5a, 0x22, 0x86, 0xef, 0x6f, - 0x9b, 0x6e, 0x57, 0xcf, 0xab, 0x8c, 0xaa, 0xbb, 0xd7, 0x73, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, - 0x48, 0x65, 0x99, 0x9c, 0x35, 0x17, 0x00, 0x00, + // 1445 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcf, 0x6f, 0xdc, 0xc4, + 0x17, 0xcf, 0x24, 0x6d, 0xda, 0x4c, 0xda, 0xe6, 0x9b, 0xf9, 0x06, 0x9a, 0x6e, 0xd3, 0x4d, 0x32, + 0x6d, 0x93, 0xb4, 0x21, 0x3b, 0x4d, 0x02, 0x2a, 0x42, 0x42, 0x90, 0x82, 0xda, 0xa2, 0xa2, 0xaa, + 0xdd, 0x96, 0x02, 0xbd, 0xac, 0x66, 0xe3, 0xa9, 0xd7, 0x64, 0xd7, 0xde, 0xd8, 0xde, 0xa8, 0x4b, + 0x58, 0x0e, 0xfc, 0x03, 0x80, 0xb8, 0x83, 0x50, 0x39, 0x70, 0xe0, 0x00, 0x02, 0x71, 0xe0, 0x82, + 0x90, 0x38, 0xf4, 0x58, 0x89, 0x0b, 0x27, 0x84, 0x5a, 0x24, 0xfe, 0x07, 0x4e, 0xc8, 0xe3, 0x67, + 0xaf, 0xed, 0x1d, 0x7b, 0xbd, 0x34, 0xb9, 0xac, 0xd6, 0x33, 0xef, 0xc7, 0xe7, 0xfd, 0x98, 0x37, + 0x1f, 0x1b, 0x17, 0xef, 0x71, 0xc3, 0x6e, 0xdb, 0x86, 0xa9, 0xb3, 0x2d, 0xd1, 0x76, 0x6a, 0xdc, + 0x16, 0x6c, 0xbb, 0x25, 0xec, 0x76, 0xa9, 0x69, 0x5b, 0xae, 0x45, 0x48, 0xb8, 0x5f, 0x0a, 0xf6, + 0x0b, 0x93, 0xbc, 0x61, 0x98, 0x16, 0x93, 0xbf, 0xbe, 0x58, 0x61, 0x4a, 0xb7, 0x74, 0x4b, 0xfe, + 0x65, 0xde, 0x3f, 0x58, 0x9d, 0xd1, 0x2d, 0x4b, 0xaf, 0x0b, 0xc6, 0x9b, 0x06, 0xe3, 0xa6, 0x69, + 0xb9, 0xdc, 0x35, 0x2c, 0xd3, 0x81, 0xdd, 0xf3, 0x9b, 0x96, 0xd3, 0xb0, 0x1c, 0x56, 0xe5, 0x0e, + 0xf8, 0x64, 0x3b, 0xab, 0x55, 0xe1, 0xf2, 0x55, 0xd6, 0xe4, 0xba, 0x61, 0x4a, 0x61, 0x90, 0x9d, + 0x55, 0xc0, 0x6c, 0x72, 0x9b, 0x37, 0x02, 0x63, 0x0b, 0x0a, 0x81, 0x1d, 0x5e, 0x37, 0x34, 0xee, + 0x5a, 0x76, 0xc5, 0x11, 0x2e, 0xc8, 0x51, 0x85, 0xdc, 0x96, 0x68, 0x57, 0xe4, 0x3f, 0x90, 0x59, + 0x51, 0xc8, 0x70, 0x5d, 0xb7, 0x85, 0xce, 0x5d, 0xa1, 0x55, 0x92, 0xe2, 0x73, 0x2a, 0x6c, 0xad, + 0xaa, 0x27, 0x07, 0x12, 0xcb, 0x2a, 0x83, 0x2d, 0xb7, 0x66, 0xd9, 0xc6, 0xfb, 0x42, 0xab, 0x70, + 0x4d, 0xb3, 0x85, 0x13, 0x44, 0x72, 0x46, 0x21, 0xbc, 0x69, 0x35, 0x1a, 0x86, 0xdb, 0x10, 0xa6, + 0x0b, 0x52, 0x94, 0xe2, 0xb9, 0x9b, 0x5e, 0xca, 0xee, 0x08, 0xdb, 0xb8, 0x67, 0xf0, 0x6a, 0x5d, + 0x94, 0xb9, 0xa9, 0x59, 0x0d, 0x53, 0x38, 0x4e, 0x59, 0x6c, 0xb7, 0x84, 0xe3, 0xd2, 0x77, 0xf1, + 0x7c, 0x86, 0x8c, 0xd3, 0xb4, 0x4c, 0x47, 0x90, 0x22, 0xc6, 0x76, 0xb8, 0x3a, 0x8d, 0xe6, 0xd0, + 0xd2, 0x58, 0x39, 0xb2, 0x42, 0xa6, 0xf0, 0x41, 0xdb, 0x6a, 0x99, 0xda, 0xf4, 0xf0, 0x1c, 0x5a, + 0x3a, 0x50, 0xf6, 0x1f, 0xe8, 0x14, 0x26, 0xd2, 0xf4, 0x0d, 0x59, 0x83, 0xc0, 0xe1, 0x6d, 0xfc, + 0xff, 0xd8, 0x2a, 0xb8, 0x78, 0x19, 0x8f, 0xfa, 0xb5, 0x92, 0xe6, 0xc7, 0xd7, 0x0a, 0xa5, 0xde, + 0xa6, 0x2a, 0xf9, 0x3a, 0x97, 0xc6, 0x1e, 0xfe, 0x31, 0x3b, 0xf4, 0xf5, 0xdf, 0xdf, 0x9e, 0x47, + 0x65, 0x50, 0xa2, 0x27, 0xf0, 0x71, 0x69, 0xf5, 0xb5, 0x6e, 0x12, 0x02, 0x87, 0x3f, 0x21, 0x3c, + 0xdd, 0xbb, 0x07, 0x6e, 0xaf, 0x63, 0xc2, 0x37, 0x5d, 0x63, 0x47, 0x54, 0x22, 0xe9, 0x03, 0x08, + 0xb3, 0x2a, 0x08, 0x51, 0x23, 0x93, 0xbe, 0x6a, 0x64, 0xc9, 0xb3, 0xb7, 0xdd, 0x12, 0x2d, 0xa1, + 0xc5, 0xec, 0x0d, 0xe7, 0xb4, 0xe7, 0xab, 0x46, 0x96, 0xe8, 0x05, 0xc0, 0x7e, 0x27, 0x68, 0xd3, + 0x5b, 0xc2, 0x85, 0xc0, 0xbc, 0xac, 0x1b, 0xa6, 0x26, 0xee, 0x43, 0x41, 0xfc, 0x07, 0x5a, 0xc3, + 0x27, 0x14, 0x1a, 0x10, 0xee, 0x35, 0x7c, 0x34, 0xd6, 0xf0, 0x10, 0xe9, 0x9c, 0x0a, 0x59, 0xd4, + 0xc0, 0xa5, 0x03, 0x5e, 0xca, 0xcb, 0x47, 0x76, 0x22, 0x6b, 0x54, 0xe0, 0x93, 0x3d, 0x9e, 0x36, + 0xea, 0xf5, 0x00, 0xde, 0x65, 0x8c, 0xbb, 0x47, 0x14, 0x1c, 0x2d, 0x94, 0xfc, 0xf3, 0x5c, 0xf2, + 0xce, 0x73, 0xc9, 0x9f, 0x21, 0x70, 0x9e, 0x4b, 0x37, 0xb8, 0x2e, 0x40, 0xb7, 0x1c, 0xd1, 0xa4, + 0x3f, 0x20, 0x3c, 0xa3, 0xf6, 0x93, 0x1e, 0xd4, 0xc8, 0x7f, 0x0d, 0x8a, 0x5c, 0x89, 0xa1, 0xf6, + 0x0b, 0xb7, 0xd8, 0x17, 0xb5, 0x8f, 0x24, 0x06, 0xfb, 0x6d, 0x3c, 0x25, 0x51, 0x5f, 0x13, 0xed, + 0x5b, 0x9e, 0xeb, 0x20, 0x2d, 0x33, 0x78, 0x2c, 0x74, 0x08, 0x95, 0xeb, 0x2e, 0x90, 0x79, 0x7c, + 0xa4, 0x5a, 0xb7, 0x36, 0xb7, 0x2a, 0x35, 0x61, 0xe8, 0x35, 0x17, 0x0e, 0xd4, 0xb8, 0x5c, 0xbb, + 0x2a, 0x97, 0xe8, 0x3b, 0xf8, 0x99, 0x84, 0x61, 0xc8, 0xc3, 0x2b, 0x78, 0x2c, 0x1c, 0x3b, 0x90, + 0xef, 0x19, 0x55, 0x0e, 0x02, 0x45, 0x88, 0xff, 0xf0, 0x16, 0x3c, 0x53, 0x0e, 0x87, 0x28, 0x10, + 0xd8, 0x87, 0x62, 0x7e, 0x15, 0x1c, 0xc6, 0x98, 0x0f, 0x75, 0x00, 0x23, 0x83, 0x06, 0xb0, 0x77, + 0xc5, 0x5b, 0x87, 0x43, 0xf4, 0xba, 0xd8, 0xb4, 0xdb, 0x4d, 0x6f, 0xe9, 0x9a, 0x68, 0x07, 0xb9, + 0x78, 0x16, 0x8f, 0x42, 0x75, 0x90, 0xac, 0x0e, 0x3c, 0xd1, 0x6d, 0x5c, 0x50, 0x29, 0x41, 0x70, + 0xb7, 0xf0, 0x31, 0x2d, 0xdc, 0xf0, 0xe6, 0x7e, 0x98, 0x45, 0x45, 0x84, 0x1b, 0xe1, 0x4d, 0x92, + 0x88, 0xf5, 0xa8, 0x16, 0x35, 0x4e, 0xef, 0xc1, 0xd1, 0x88, 0xb9, 0xdc, 0x87, 0xb2, 0xfd, 0x8c, + 0xf0, 0xa9, 0x14, 0x47, 0x10, 0xde, 0x5b, 0x78, 0x22, 0x1e, 0x9e, 0x03, 0x15, 0x1c, 0x2c, 0xbe, + 0x63, 0xb1, 0xf8, 0x9c, 0xbd, 0xab, 0x68, 0x78, 0x19, 0xb5, 0xaa, 0xdd, 0x52, 0xd2, 0xef, 0x50, + 0x70, 0x1b, 0xc1, 0x32, 0x44, 0xf3, 0x26, 0x3e, 0x06, 0xd7, 0x02, 0x5c, 0xd2, 0x59, 0x83, 0x72, + 0x43, 0x4a, 0xfa, 0x16, 0x82, 0x99, 0xc2, 0x23, 0x6b, 0x9e, 0x35, 0xb8, 0x14, 0x02, 0x6b, 0xc3, + 0xe9, 0xd6, 0x6e, 0x4a, 0xc9, 0xb8, 0xb5, 0xed, 0xc8, 0x1a, 0xbd, 0x08, 0xa5, 0xd8, 0x08, 0xc9, + 0xc1, 0x86, 0xcf, 0x0d, 0x22, 0xfd, 0xe9, 0x72, 0x5b, 0x87, 0xe9, 0x3e, 0x56, 0x86, 0x27, 0xfa, + 0x01, 0x2e, 0xa6, 0x29, 0x42, 0xd8, 0x77, 0x31, 0xe9, 0xa5, 0x1c, 0x10, 0xfa, 0x59, 0x65, 0xe8, + 0x49, 0x53, 0x80, 0x78, 0x92, 0x27, 0x37, 0xe8, 0x7b, 0x40, 0x46, 0x7a, 0x54, 0xf6, 0xa1, 0x5d, + 0x1f, 0x22, 0x60, 0x35, 0x6a, 0x67, 0x7d, 0xa2, 0x1d, 0x79, 0xfa, 0x68, 0xf7, 0xae, 0x6f, 0x2d, + 0xb8, 0x64, 0xaf, 0x08, 0x53, 0xd8, 0xbc, 0x3e, 0xd8, 0x6d, 0x72, 0x1c, 0x1f, 0x32, 0xb4, 0x8a, + 0xdb, 0x6e, 0x0a, 0x09, 0x61, 0xac, 0x3c, 0x6a, 0x68, 0xb7, 0xdb, 0x4d, 0x41, 0x4e, 0xe0, 0xc3, + 0x86, 0x56, 0xd9, 0xe1, 0xf5, 0x96, 0x98, 0x1e, 0x91, 0x3b, 0x87, 0x0c, 0xed, 0x8e, 0xf7, 0x48, + 0x5b, 0x30, 0x52, 0x7a, 0x1c, 0x86, 0x07, 0x7d, 0x52, 0xf7, 0xb7, 0x2a, 0xc9, 0xdb, 0xe6, 0xb4, + 0x2a, 0x69, 0x09, 0x3b, 0x90, 0xb2, 0x09, 0x3d, 0xbe, 0x4c, 0x6b, 0xd0, 0x9c, 0x09, 0xf1, 0x7d, + 0x68, 0x8e, 0x5f, 0x10, 0x9e, 0x4d, 0x75, 0x95, 0x1d, 0xe4, 0xc8, 0xd3, 0x05, 0xb9, 0x67, 0x5d, + 0xb1, 0xf6, 0xcf, 0x24, 0x3e, 0x28, 0x63, 0x20, 0x1d, 0x3c, 0xea, 0xb3, 0x62, 0xb2, 0x90, 0x32, + 0x4d, 0x12, 0x04, 0xbc, 0xb0, 0xd8, 0x57, 0xce, 0x77, 0x48, 0xe9, 0x47, 0xbf, 0xfd, 0xf5, 0xd9, + 0xf0, 0x0c, 0x29, 0xb0, 0xd4, 0x17, 0x2b, 0xf2, 0x29, 0xc2, 0xe3, 0x51, 0xfe, 0xbb, 0x9c, 0x6a, + 0xbc, 0x97, 0x99, 0x17, 0x9e, 0xcb, 0x27, 0x0c, 0x70, 0x16, 0x25, 0x9c, 0x79, 0x32, 0xcb, 0xb2, + 0x5f, 0x7e, 0xc8, 0xe7, 0x08, 0x1f, 0x89, 0xf2, 0x3c, 0x92, 0xee, 0x47, 0x41, 0xab, 0x0b, 0x2b, + 0x39, 0xa5, 0x01, 0xd6, 0xaa, 0x84, 0xb5, 0x4c, 0xce, 0xb1, 0x7e, 0x6f, 0x97, 0x6c, 0x57, 0x32, + 0xf4, 0x0e, 0xf9, 0x02, 0xe1, 0x89, 0x04, 0x99, 0x25, 0x2c, 0x97, 0xd7, 0xee, 0x71, 0x28, 0x5c, + 0xc8, 0xaf, 0x00, 0x48, 0xcf, 0x49, 0xa4, 0xa7, 0xc9, 0x7c, 0x5f, 0xa4, 0xe4, 0x4b, 0x84, 0x0f, + 0x87, 0x5d, 0xbb, 0x94, 0xea, 0x29, 0x31, 0x8d, 0x0a, 0xe7, 0x72, 0x48, 0x02, 0x98, 0x57, 0x25, + 0x98, 0x97, 0xc8, 0x8b, 0x2c, 0xeb, 0x65, 0x9b, 0xed, 0x86, 0xb8, 0x3a, 0x6c, 0x37, 0xca, 0x8c, + 0x3b, 0xe4, 0x63, 0x84, 0xc7, 0x23, 0x67, 0x37, 0xa3, 0xf5, 0x7a, 0x87, 0x49, 0x46, 0xeb, 0x29, + 0xc6, 0x01, 0x3d, 0x2b, 0xc1, 0xce, 0x92, 0x53, 0x99, 0x60, 0xc9, 0x03, 0x84, 0x8f, 0xc6, 0x08, + 0x12, 0x49, 0xef, 0x25, 0x15, 0xb3, 0x2c, 0x94, 0xf2, 0x8a, 0x03, 0xae, 0x75, 0x89, 0x6b, 0x85, + 0x2c, 0xab, 0x70, 0xc5, 0xe9, 0x18, 0xdb, 0x0d, 0xf2, 0xf6, 0x00, 0xe1, 0xff, 0x25, 0x69, 0x1c, + 0xb9, 0x90, 0xcf, 0x73, 0x24, 0x83, 0xab, 0x03, 0x68, 0x00, 0xdc, 0xf3, 0x12, 0xee, 0x19, 0x42, + 0xfb, 0xc3, 0x25, 0x1f, 0xe2, 0x51, 0x60, 0x4f, 0x19, 0x73, 0x2d, 0xca, 0xe5, 0xb2, 0xe6, 0x5a, + 0x8c, 0xdc, 0xd1, 0xd3, 0x12, 0xc6, 0x29, 0x72, 0x92, 0xa5, 0x7f, 0x94, 0x21, 0xdf, 0x23, 0x3c, + 0xd9, 0x73, 0xdf, 0x93, 0xf4, 0xa0, 0xd3, 0xd8, 0x58, 0x61, 0x6d, 0x10, 0x15, 0x40, 0x78, 0x51, + 0x22, 0x5c, 0x25, 0x8c, 0xe5, 0xfa, 0x28, 0xc4, 0x76, 0x7d, 0x86, 0xd7, 0xf1, 0x50, 0x4f, 0xa9, + 0x38, 0x0f, 0x79, 0x3e, 0x3f, 0x8a, 0x48, 0x8d, 0x5f, 0x18, 0x50, 0x0b, 0xe0, 0x97, 0x24, 0xfc, + 0x25, 0xb2, 0x90, 0x0f, 0x3e, 0xf9, 0x15, 0xe1, 0x89, 0xc4, 0x0d, 0x9a, 0x31, 0x0f, 0xd5, 0x4c, + 0x28, 0x63, 0x1e, 0xa6, 0x30, 0x19, 0x7a, 0x5d, 0xc2, 0xbc, 0x4a, 0x2e, 0xab, 0x60, 0xf6, 0x5c, + 0xff, 0xf1, 0x51, 0x04, 0xb4, 0xca, 0xff, 0x27, 0x79, 0x54, 0x87, 0x7c, 0x83, 0x30, 0xe9, 0xe5, + 0x14, 0x64, 0x2d, 0x2f, 0xb0, 0x48, 0xe2, 0xd7, 0x07, 0xd2, 0x81, 0x78, 0x56, 0x64, 0x3c, 0x8b, + 0xe4, 0x6c, 0xae, 0x78, 0xc8, 0x8f, 0x08, 0x4f, 0xa9, 0xbe, 0xfa, 0x65, 0xf4, 0x4a, 0xc6, 0x87, + 0xc4, 0x8c, 0x5e, 0xc9, 0xfa, 0xb4, 0xd8, 0xe7, 0xfa, 0x0c, 0x35, 0x2b, 0xdd, 0xaf, 0x8d, 0x97, + 0xde, 0x78, 0xf8, 0xb8, 0x88, 0x1e, 0x3d, 0x2e, 0xa2, 0x3f, 0x1f, 0x17, 0xd1, 0x27, 0x4f, 0x8a, + 0x43, 0x8f, 0x9e, 0x14, 0x87, 0x7e, 0x7f, 0x52, 0x1c, 0xba, 0xcb, 0x74, 0xc3, 0xad, 0xb5, 0xaa, + 0xa5, 0x4d, 0xab, 0xc1, 0x2e, 0x73, 0xc3, 0x96, 0x17, 0x46, 0xc4, 0xf0, 0xfd, 0xae, 0x69, 0xaf, + 0x7a, 0x4e, 0x75, 0x54, 0x7e, 0x28, 0x5d, 0xff, 0x37, 0x00, 0x00, 0xff, 0xff, 0x74, 0xa3, 0xd1, + 0x9d, 0xe2, 0x16, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1501,10 +1502,10 @@ type QueryClient interface { KeyShare(ctx context.Context, in *QueryKeyShareRequest, opts ...grpc.CallOption) (*QueryKeyShareResponse, error) // Queries a list of KeyShare items. KeyShareAll(ctx context.Context, in *QueryKeyShareAllRequest, opts ...grpc.CallOption) (*QueryKeyShareAllResponse, error) - // AggregatedKeyShare a AggregatedKeyShare item by height. - AggregatedKeyShare(ctx context.Context, in *QueryAggregatedKeyShareRequest, opts ...grpc.CallOption) (*QueryAggregatedKeyShareResponse, error) - // AggregatedKeyShareAll Queries a list of AggregatedKeyShare items. - AggregatedKeyShareAll(ctx context.Context, in *QueryAggregatedKeyShareAllRequest, opts ...grpc.CallOption) (*QueryAggregatedKeyShareAllResponse, error) + // DecryptionKey queries a DecryptionKey item by height. + DecryptionKey(ctx context.Context, in *QueryDecryptionKeyRequest, opts ...grpc.CallOption) (*QueryDecryptionKeyResponse, error) + // DecryptionKeyAll Queries a list of DecryptionKey items. + DecryptionKeyAll(ctx context.Context, in *QueryDecryptionKeyAllRequest, opts ...grpc.CallOption) (*QueryDecryptionKeyAllResponse, error) // Queries the public keys PubKey(ctx context.Context, in *QueryPubKeyRequest, opts ...grpc.CallOption) (*QueryPubKeyResponse, error) // Queries a AuthorizedAddress item by target. @@ -1581,18 +1582,18 @@ func (c *queryClient) KeyShareAll(ctx context.Context, in *QueryKeyShareAllReque return out, nil } -func (c *queryClient) AggregatedKeyShare(ctx context.Context, in *QueryAggregatedKeyShareRequest, opts ...grpc.CallOption) (*QueryAggregatedKeyShareResponse, error) { - out := new(QueryAggregatedKeyShareResponse) - err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/AggregatedKeyShare", in, out, opts...) +func (c *queryClient) DecryptionKey(ctx context.Context, in *QueryDecryptionKeyRequest, opts ...grpc.CallOption) (*QueryDecryptionKeyResponse, error) { + out := new(QueryDecryptionKeyResponse) + err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/DecryptionKey", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) AggregatedKeyShareAll(ctx context.Context, in *QueryAggregatedKeyShareAllRequest, opts ...grpc.CallOption) (*QueryAggregatedKeyShareAllResponse, error) { - out := new(QueryAggregatedKeyShareAllResponse) - err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/AggregatedKeyShareAll", in, out, opts...) +func (c *queryClient) DecryptionKeyAll(ctx context.Context, in *QueryDecryptionKeyAllRequest, opts ...grpc.CallOption) (*QueryDecryptionKeyAllResponse, error) { + out := new(QueryDecryptionKeyAllResponse) + err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/DecryptionKeyAll", in, out, opts...) if err != nil { return nil, err } @@ -1667,10 +1668,10 @@ type QueryServer interface { KeyShare(context.Context, *QueryKeyShareRequest) (*QueryKeyShareResponse, error) // Queries a list of KeyShare items. KeyShareAll(context.Context, *QueryKeyShareAllRequest) (*QueryKeyShareAllResponse, error) - // AggregatedKeyShare a AggregatedKeyShare item by height. - AggregatedKeyShare(context.Context, *QueryAggregatedKeyShareRequest) (*QueryAggregatedKeyShareResponse, error) - // AggregatedKeyShareAll Queries a list of AggregatedKeyShare items. - AggregatedKeyShareAll(context.Context, *QueryAggregatedKeyShareAllRequest) (*QueryAggregatedKeyShareAllResponse, error) + // DecryptionKey queries a DecryptionKey item by height. + DecryptionKey(context.Context, *QueryDecryptionKeyRequest) (*QueryDecryptionKeyResponse, error) + // DecryptionKeyAll Queries a list of DecryptionKey items. + DecryptionKeyAll(context.Context, *QueryDecryptionKeyAllRequest) (*QueryDecryptionKeyAllResponse, error) // Queries the public keys PubKey(context.Context, *QueryPubKeyRequest) (*QueryPubKeyResponse, error) // Queries a AuthorizedAddress item by target. @@ -1707,11 +1708,11 @@ func (*UnimplementedQueryServer) KeyShare(ctx context.Context, req *QueryKeyShar func (*UnimplementedQueryServer) KeyShareAll(ctx context.Context, req *QueryKeyShareAllRequest) (*QueryKeyShareAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method KeyShareAll not implemented") } -func (*UnimplementedQueryServer) AggregatedKeyShare(ctx context.Context, req *QueryAggregatedKeyShareRequest) (*QueryAggregatedKeyShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AggregatedKeyShare not implemented") +func (*UnimplementedQueryServer) DecryptionKey(ctx context.Context, req *QueryDecryptionKeyRequest) (*QueryDecryptionKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DecryptionKey not implemented") } -func (*UnimplementedQueryServer) AggregatedKeyShareAll(ctx context.Context, req *QueryAggregatedKeyShareAllRequest) (*QueryAggregatedKeyShareAllResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AggregatedKeyShareAll not implemented") +func (*UnimplementedQueryServer) DecryptionKeyAll(ctx context.Context, req *QueryDecryptionKeyAllRequest) (*QueryDecryptionKeyAllResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DecryptionKeyAll not implemented") } func (*UnimplementedQueryServer) PubKey(ctx context.Context, req *QueryPubKeyRequest) (*QueryPubKeyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PubKey not implemented") @@ -1844,38 +1845,38 @@ func _Query_KeyShareAll_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } -func _Query_AggregatedKeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAggregatedKeyShareRequest) +func _Query_DecryptionKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryDecryptionKeyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).AggregatedKeyShare(ctx, in) + return srv.(QueryServer).DecryptionKey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.keyshare.Query/AggregatedKeyShare", + FullMethod: "/fairyring.keyshare.Query/DecryptionKey", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AggregatedKeyShare(ctx, req.(*QueryAggregatedKeyShareRequest)) + return srv.(QueryServer).DecryptionKey(ctx, req.(*QueryDecryptionKeyRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_AggregatedKeyShareAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryAggregatedKeyShareAllRequest) +func _Query_DecryptionKeyAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryDecryptionKeyAllRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).AggregatedKeyShareAll(ctx, in) + return srv.(QueryServer).DecryptionKeyAll(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.keyshare.Query/AggregatedKeyShareAll", + FullMethod: "/fairyring.keyshare.Query/DecryptionKeyAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).AggregatedKeyShareAll(ctx, req.(*QueryAggregatedKeyShareAllRequest)) + return srv.(QueryServer).DecryptionKeyAll(ctx, req.(*QueryDecryptionKeyAllRequest)) } return interceptor(ctx, in, info, handler) } @@ -2017,12 +2018,12 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_KeyShareAll_Handler, }, { - MethodName: "AggregatedKeyShare", - Handler: _Query_AggregatedKeyShare_Handler, + MethodName: "DecryptionKey", + Handler: _Query_DecryptionKey_Handler, }, { - MethodName: "AggregatedKeyShareAll", - Handler: _Query_AggregatedKeyShareAll_Handler, + MethodName: "DecryptionKeyAll", + Handler: _Query_DecryptionKeyAll_Handler, }, { MethodName: "PubKey", @@ -2536,7 +2537,7 @@ func (m *QueryKeyShareAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *QueryAggregatedKeyShareRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryDecryptionKeyRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2546,12 +2547,12 @@ func (m *QueryAggregatedKeyShareRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAggregatedKeyShareRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryDecryptionKeyRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAggregatedKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryDecryptionKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2564,7 +2565,7 @@ func (m *QueryAggregatedKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *QueryAggregatedKeyShareResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryDecryptionKeyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2574,18 +2575,18 @@ func (m *QueryAggregatedKeyShareResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAggregatedKeyShareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryDecryptionKeyResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAggregatedKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryDecryptionKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { - size, err := m.AggregatedKeyShare.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.DecryptionKey.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2597,7 +2598,7 @@ func (m *QueryAggregatedKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } -func (m *QueryAggregatedKeyShareAllRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryDecryptionKeyAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2607,12 +2608,12 @@ func (m *QueryAggregatedKeyShareAllRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryAggregatedKeyShareAllRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryDecryptionKeyAllRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAggregatedKeyShareAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryDecryptionKeyAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2632,7 +2633,7 @@ func (m *QueryAggregatedKeyShareAllRequest) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *QueryAggregatedKeyShareAllResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryDecryptionKeyAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2642,12 +2643,12 @@ func (m *QueryAggregatedKeyShareAllResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryAggregatedKeyShareAllResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryDecryptionKeyAllResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryAggregatedKeyShareAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryDecryptionKeyAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2664,10 +2665,10 @@ func (m *QueryAggregatedKeyShareAllResponse) MarshalToSizedBuffer(dAtA []byte) ( i-- dAtA[i] = 0x12 } - if len(m.AggregatedKeyShare) > 0 { - for iNdEx := len(m.AggregatedKeyShare) - 1; iNdEx >= 0; iNdEx-- { + if len(m.DecryptionKeys) > 0 { + for iNdEx := len(m.DecryptionKeys) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.AggregatedKeyShare[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.DecryptionKeys[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -3252,7 +3253,7 @@ func (m *QueryKeyShareAllResponse) Size() (n int) { return n } -func (m *QueryAggregatedKeyShareRequest) Size() (n int) { +func (m *QueryDecryptionKeyRequest) Size() (n int) { if m == nil { return 0 } @@ -3264,18 +3265,18 @@ func (m *QueryAggregatedKeyShareRequest) Size() (n int) { return n } -func (m *QueryAggregatedKeyShareResponse) Size() (n int) { +func (m *QueryDecryptionKeyResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = m.AggregatedKeyShare.Size() + l = m.DecryptionKey.Size() n += 1 + l + sovQuery(uint64(l)) return n } -func (m *QueryAggregatedKeyShareAllRequest) Size() (n int) { +func (m *QueryDecryptionKeyAllRequest) Size() (n int) { if m == nil { return 0 } @@ -3288,14 +3289,14 @@ func (m *QueryAggregatedKeyShareAllRequest) Size() (n int) { return n } -func (m *QueryAggregatedKeyShareAllResponse) Size() (n int) { +func (m *QueryDecryptionKeyAllResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.AggregatedKeyShare) > 0 { - for _, e := range m.AggregatedKeyShare { + if len(m.DecryptionKeys) > 0 { + for _, e := range m.DecryptionKeys { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } @@ -4672,7 +4673,7 @@ func (m *QueryKeyShareAllResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAggregatedKeyShareRequest) Unmarshal(dAtA []byte) error { +func (m *QueryDecryptionKeyRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4695,10 +4696,10 @@ func (m *QueryAggregatedKeyShareRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAggregatedKeyShareRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryDecryptionKeyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAggregatedKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryDecryptionKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4741,7 +4742,7 @@ func (m *QueryAggregatedKeyShareRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAggregatedKeyShareResponse) Unmarshal(dAtA []byte) error { +func (m *QueryDecryptionKeyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4764,15 +4765,15 @@ func (m *QueryAggregatedKeyShareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAggregatedKeyShareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryDecryptionKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAggregatedKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryDecryptionKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregatedKeyShare", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DecryptionKey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4799,7 +4800,7 @@ func (m *QueryAggregatedKeyShareResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.AggregatedKeyShare.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.DecryptionKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4824,7 +4825,7 @@ func (m *QueryAggregatedKeyShareResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAggregatedKeyShareAllRequest) Unmarshal(dAtA []byte) error { +func (m *QueryDecryptionKeyAllRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4847,10 +4848,10 @@ func (m *QueryAggregatedKeyShareAllRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAggregatedKeyShareAllRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryDecryptionKeyAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAggregatedKeyShareAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryDecryptionKeyAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4910,7 +4911,7 @@ func (m *QueryAggregatedKeyShareAllRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryAggregatedKeyShareAllResponse) Unmarshal(dAtA []byte) error { +func (m *QueryDecryptionKeyAllResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4933,15 +4934,15 @@ func (m *QueryAggregatedKeyShareAllResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryAggregatedKeyShareAllResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryDecryptionKeyAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryAggregatedKeyShareAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryDecryptionKeyAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregatedKeyShare", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DecryptionKeys", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4968,8 +4969,8 @@ func (m *QueryAggregatedKeyShareAllResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AggregatedKeyShare = append(m.AggregatedKeyShare, AggregatedKeyShare{}) - if err := m.AggregatedKeyShare[len(m.AggregatedKeyShare)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.DecryptionKeys = append(m.DecryptionKeys, AggregatedKeyShare{}) + if err := m.DecryptionKeys[len(m.DecryptionKeys)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/keyshare/types/query.pb.gw.go b/x/keyshare/types/query.pb.gw.go index 1af31000..6b05ff25 100644 --- a/x/keyshare/types/query.pb.gw.go +++ b/x/keyshare/types/query.pb.gw.go @@ -271,8 +271,8 @@ func local_request_Query_KeyShareAll_0(ctx context.Context, marshaler runtime.Ma } -func request_Query_AggregatedKeyShare_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAggregatedKeyShareRequest +func request_Query_DecryptionKey_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDecryptionKeyRequest var metadata runtime.ServerMetadata var ( @@ -293,13 +293,13 @@ func request_Query_AggregatedKeyShare_0(ctx context.Context, marshaler runtime.M return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "height", err) } - msg, err := client.AggregatedKeyShare(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.DecryptionKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_AggregatedKeyShare_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAggregatedKeyShareRequest +func local_request_Query_DecryptionKey_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDecryptionKeyRequest var metadata runtime.ServerMetadata var ( @@ -320,43 +320,43 @@ func local_request_Query_AggregatedKeyShare_0(ctx context.Context, marshaler run return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "height", err) } - msg, err := server.AggregatedKeyShare(ctx, &protoReq) + msg, err := server.DecryptionKey(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_AggregatedKeyShareAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_Query_DecryptionKeyAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_Query_AggregatedKeyShareAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAggregatedKeyShareAllRequest +func request_Query_DecryptionKeyAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDecryptionKeyAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_AggregatedKeyShareAll_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_DecryptionKeyAll_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.AggregatedKeyShareAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.DecryptionKeyAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_AggregatedKeyShareAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryAggregatedKeyShareAllRequest +func local_request_Query_DecryptionKeyAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDecryptionKeyAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_AggregatedKeyShareAll_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_DecryptionKeyAll_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.AggregatedKeyShareAll(ctx, &protoReq) + msg, err := server.DecryptionKeyAll(ctx, &protoReq) return msg, metadata, err } @@ -765,7 +765,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_AggregatedKeyShare_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_DecryptionKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -776,7 +776,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_AggregatedKeyShare_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_DecryptionKey_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -784,11 +784,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_AggregatedKeyShare_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_DecryptionKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_AggregatedKeyShareAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_DecryptionKeyAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -799,7 +799,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_AggregatedKeyShareAll_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_DecryptionKeyAll_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -807,7 +807,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_AggregatedKeyShareAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_DecryptionKeyAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1110,7 +1110,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_AggregatedKeyShare_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_DecryptionKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -1119,18 +1119,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_AggregatedKeyShare_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_DecryptionKey_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_AggregatedKeyShare_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_DecryptionKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_AggregatedKeyShareAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_DecryptionKeyAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -1139,14 +1139,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_AggregatedKeyShareAll_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_DecryptionKeyAll_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_AggregatedKeyShareAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_DecryptionKeyAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1286,9 +1286,9 @@ var ( pattern_Query_KeyShareAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "keyshare", "key_share"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_AggregatedKeyShare_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"fairyring", "keyshare", "aggregated_key_share", "height"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_DecryptionKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"fairyring", "keyshare", "decryption_key", "height"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_AggregatedKeyShareAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "keyshare", "aggregated_key_share"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_DecryptionKeyAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "keyshare", "decryption_key"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_PubKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "keyshare", "pub_key"}, "", runtime.AssumeColonVerbOpt(false))) @@ -1316,9 +1316,9 @@ var ( forward_Query_KeyShareAll_0 = runtime.ForwardResponseMessage - forward_Query_AggregatedKeyShare_0 = runtime.ForwardResponseMessage + forward_Query_DecryptionKey_0 = runtime.ForwardResponseMessage - forward_Query_AggregatedKeyShareAll_0 = runtime.ForwardResponseMessage + forward_Query_DecryptionKeyAll_0 = runtime.ForwardResponseMessage forward_Query_PubKey_0 = runtime.ForwardResponseMessage diff --git a/x/keyshare/types/requested_keyshare.pb.go b/x/keyshare/types/requested_decryption_key.pb.go similarity index 62% rename from x/keyshare/types/requested_keyshare.pb.go rename to x/keyshare/types/requested_decryption_key.pb.go index 86d68b8f..4050ba2a 100644 --- a/x/keyshare/types/requested_keyshare.pb.go +++ b/x/keyshare/types/requested_decryption_key.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fairyring/keyshare/requested_keyshare.proto +// source: fairyring/keyshare/requested_decryption_key.proto package types @@ -23,30 +23,30 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// KeyShareRequest defines the storage structure for general keyshare requests -type KeyShareRequest struct { - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - IbcInfo *IBCInfo `protobuf:"bytes,3,opt,name=ibc_info,json=ibcInfo,proto3" json:"ibc_info,omitempty"` - Counterparty *CounterPartyIBCInfo `protobuf:"bytes,4,opt,name=counterparty,proto3" json:"counterparty,omitempty"` - AggrKeyshare string `protobuf:"bytes,5,opt,name=aggr_keyshare,json=aggrKeyshare,proto3" json:"aggr_keyshare,omitempty"` - ProposalId string `protobuf:"bytes,6,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` - RequestId string `protobuf:"bytes,7,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - Sent bool `protobuf:"varint,8,opt,name=sent,proto3" json:"sent,omitempty"` -} - -func (m *KeyShareRequest) Reset() { *m = KeyShareRequest{} } -func (m *KeyShareRequest) String() string { return proto.CompactTextString(m) } -func (*KeyShareRequest) ProtoMessage() {} -func (*KeyShareRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e8ed024b19ae59bd, []int{0} -} -func (m *KeyShareRequest) XXX_Unmarshal(b []byte) error { +// DecryptionKeyRequest defines the storage structure for general keyshare requests +type DecryptionKeyRequest struct { + Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` + Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + IbcInfo *IBCInfo `protobuf:"bytes,3,opt,name=ibc_info,json=ibcInfo,proto3" json:"ibc_info,omitempty"` + Counterparty *CounterPartyIBCInfo `protobuf:"bytes,4,opt,name=counterparty,proto3" json:"counterparty,omitempty"` + DecryptionKey string `protobuf:"bytes,5,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key,omitempty"` + ProposalId string `protobuf:"bytes,6,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` + RequestId string `protobuf:"bytes,7,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + Sent bool `protobuf:"varint,8,opt,name=sent,proto3" json:"sent,omitempty"` +} + +func (m *DecryptionKeyRequest) Reset() { *m = DecryptionKeyRequest{} } +func (m *DecryptionKeyRequest) String() string { return proto.CompactTextString(m) } +func (*DecryptionKeyRequest) ProtoMessage() {} +func (*DecryptionKeyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_558a490dc8740931, []int{0} +} +func (m *DecryptionKeyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *KeyShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *DecryptionKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_KeyShareRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_DecryptionKeyRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -56,68 +56,68 @@ func (m *KeyShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } -func (m *KeyShareRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyShareRequest.Merge(m, src) +func (m *DecryptionKeyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DecryptionKeyRequest.Merge(m, src) } -func (m *KeyShareRequest) XXX_Size() int { +func (m *DecryptionKeyRequest) XXX_Size() int { return m.Size() } -func (m *KeyShareRequest) XXX_DiscardUnknown() { - xxx_messageInfo_KeyShareRequest.DiscardUnknown(m) +func (m *DecryptionKeyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DecryptionKeyRequest.DiscardUnknown(m) } -var xxx_messageInfo_KeyShareRequest proto.InternalMessageInfo +var xxx_messageInfo_DecryptionKeyRequest proto.InternalMessageInfo -func (m *KeyShareRequest) GetIdentity() string { +func (m *DecryptionKeyRequest) GetIdentity() string { if m != nil { return m.Identity } return "" } -func (m *KeyShareRequest) GetPubkey() string { +func (m *DecryptionKeyRequest) GetPubkey() string { if m != nil { return m.Pubkey } return "" } -func (m *KeyShareRequest) GetIbcInfo() *IBCInfo { +func (m *DecryptionKeyRequest) GetIbcInfo() *IBCInfo { if m != nil { return m.IbcInfo } return nil } -func (m *KeyShareRequest) GetCounterparty() *CounterPartyIBCInfo { +func (m *DecryptionKeyRequest) GetCounterparty() *CounterPartyIBCInfo { if m != nil { return m.Counterparty } return nil } -func (m *KeyShareRequest) GetAggrKeyshare() string { +func (m *DecryptionKeyRequest) GetDecryptionKey() string { if m != nil { - return m.AggrKeyshare + return m.DecryptionKey } return "" } -func (m *KeyShareRequest) GetProposalId() string { +func (m *DecryptionKeyRequest) GetProposalId() string { if m != nil { return m.ProposalId } return "" } -func (m *KeyShareRequest) GetRequestId() string { +func (m *DecryptionKeyRequest) GetRequestId() string { if m != nil { return m.RequestId } return "" } -func (m *KeyShareRequest) GetSent() bool { +func (m *DecryptionKeyRequest) GetSent() bool { if m != nil { return m.Sent } @@ -137,7 +137,7 @@ func (m *IBCInfo) Reset() { *m = IBCInfo{} } func (m *IBCInfo) String() string { return proto.CompactTextString(m) } func (*IBCInfo) ProtoMessage() {} func (*IBCInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_e8ed024b19ae59bd, []int{1} + return fileDescriptor_558a490dc8740931, []int{1} } func (m *IBCInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -207,7 +207,7 @@ func (m *CounterPartyIBCInfo) Reset() { *m = CounterPartyIBCInfo{} } func (m *CounterPartyIBCInfo) String() string { return proto.CompactTextString(m) } func (*CounterPartyIBCInfo) ProtoMessage() {} func (*CounterPartyIBCInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_e8ed024b19ae59bd, []int{2} + return fileDescriptor_558a490dc8740931, []int{2} } func (m *CounterPartyIBCInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -264,30 +264,30 @@ func (m *CounterPartyIBCInfo) GetPortId() string { return "" } -// PrivateKeyshareRequest defines the stroage structure for private +// PrivateDecryptionKeyRequest defines the stroage structure for private // encrypted and unaggregated keyshare requests -type PrivateKeyshareRequest struct { - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - IbcInfo *IBCInfo `protobuf:"bytes,3,opt,name=ibc_info,json=ibcInfo,proto3" json:"ibc_info,omitempty"` - Counterparty *CounterPartyIBCInfo `protobuf:"bytes,4,opt,name=counterparty,proto3" json:"counterparty,omitempty"` - EncryptedKeyshares []*types.EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` - RequestId string `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - Sent bool `protobuf:"varint,7,opt,name=sent,proto3" json:"sent,omitempty"` -} - -func (m *PrivateKeyshareRequest) Reset() { *m = PrivateKeyshareRequest{} } -func (m *PrivateKeyshareRequest) String() string { return proto.CompactTextString(m) } -func (*PrivateKeyshareRequest) ProtoMessage() {} -func (*PrivateKeyshareRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e8ed024b19ae59bd, []int{3} -} -func (m *PrivateKeyshareRequest) XXX_Unmarshal(b []byte) error { +type PrivateDecryptionKeyRequest struct { + Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` + Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + IbcInfo *IBCInfo `protobuf:"bytes,3,opt,name=ibc_info,json=ibcInfo,proto3" json:"ibc_info,omitempty"` + Counterparty *CounterPartyIBCInfo `protobuf:"bytes,4,opt,name=counterparty,proto3" json:"counterparty,omitempty"` + PrivateDecryptionKeys []*types.PrivateDecryptionKey `protobuf:"bytes,5,rep,name=private_decryption_keys,json=privateDecryptionKeys,proto3" json:"private_decryption_keys,omitempty"` + RequestId string `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + Sent bool `protobuf:"varint,7,opt,name=sent,proto3" json:"sent,omitempty"` +} + +func (m *PrivateDecryptionKeyRequest) Reset() { *m = PrivateDecryptionKeyRequest{} } +func (m *PrivateDecryptionKeyRequest) String() string { return proto.CompactTextString(m) } +func (*PrivateDecryptionKeyRequest) ProtoMessage() {} +func (*PrivateDecryptionKeyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_558a490dc8740931, []int{3} +} +func (m *PrivateDecryptionKeyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *PrivateKeyshareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *PrivateDecryptionKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_PrivateKeyshareRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_PrivateDecryptionKeyRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -297,61 +297,61 @@ func (m *PrivateKeyshareRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *PrivateKeyshareRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrivateKeyshareRequest.Merge(m, src) +func (m *PrivateDecryptionKeyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PrivateDecryptionKeyRequest.Merge(m, src) } -func (m *PrivateKeyshareRequest) XXX_Size() int { +func (m *PrivateDecryptionKeyRequest) XXX_Size() int { return m.Size() } -func (m *PrivateKeyshareRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PrivateKeyshareRequest.DiscardUnknown(m) +func (m *PrivateDecryptionKeyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_PrivateDecryptionKeyRequest.DiscardUnknown(m) } -var xxx_messageInfo_PrivateKeyshareRequest proto.InternalMessageInfo +var xxx_messageInfo_PrivateDecryptionKeyRequest proto.InternalMessageInfo -func (m *PrivateKeyshareRequest) GetIdentity() string { +func (m *PrivateDecryptionKeyRequest) GetIdentity() string { if m != nil { return m.Identity } return "" } -func (m *PrivateKeyshareRequest) GetPubkey() string { +func (m *PrivateDecryptionKeyRequest) GetPubkey() string { if m != nil { return m.Pubkey } return "" } -func (m *PrivateKeyshareRequest) GetIbcInfo() *IBCInfo { +func (m *PrivateDecryptionKeyRequest) GetIbcInfo() *IBCInfo { if m != nil { return m.IbcInfo } return nil } -func (m *PrivateKeyshareRequest) GetCounterparty() *CounterPartyIBCInfo { +func (m *PrivateDecryptionKeyRequest) GetCounterparty() *CounterPartyIBCInfo { if m != nil { return m.Counterparty } return nil } -func (m *PrivateKeyshareRequest) GetEncryptedKeyshares() []*types.EncryptedKeyshare { +func (m *PrivateDecryptionKeyRequest) GetPrivateDecryptionKeys() []*types.PrivateDecryptionKey { if m != nil { - return m.EncryptedKeyshares + return m.PrivateDecryptionKeys } return nil } -func (m *PrivateKeyshareRequest) GetRequestId() string { +func (m *PrivateDecryptionKeyRequest) GetRequestId() string { if m != nil { return m.RequestId } return "" } -func (m *PrivateKeyshareRequest) GetSent() bool { +func (m *PrivateDecryptionKeyRequest) GetSent() bool { if m != nil { return m.Sent } @@ -359,51 +359,51 @@ func (m *PrivateKeyshareRequest) GetSent() bool { } func init() { - proto.RegisterType((*KeyShareRequest)(nil), "fairyring.keyshare.KeyShareRequest") + proto.RegisterType((*DecryptionKeyRequest)(nil), "fairyring.keyshare.DecryptionKeyRequest") proto.RegisterType((*IBCInfo)(nil), "fairyring.keyshare.IBCInfo") proto.RegisterType((*CounterPartyIBCInfo)(nil), "fairyring.keyshare.CounterPartyIBCInfo") - proto.RegisterType((*PrivateKeyshareRequest)(nil), "fairyring.keyshare.PrivateKeyshareRequest") + proto.RegisterType((*PrivateDecryptionKeyRequest)(nil), "fairyring.keyshare.PrivateDecryptionKeyRequest") } func init() { - proto.RegisterFile("fairyring/keyshare/requested_keyshare.proto", fileDescriptor_e8ed024b19ae59bd) + proto.RegisterFile("fairyring/keyshare/requested_decryption_key.proto", fileDescriptor_558a490dc8740931) } -var fileDescriptor_e8ed024b19ae59bd = []byte{ +var fileDescriptor_558a490dc8740931 = []byte{ // 480 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x54, 0x41, 0x8b, 0xd3, 0x40, - 0x14, 0xee, 0xb4, 0xdd, 0xa6, 0x7d, 0xad, 0x08, 0xb3, 0xb0, 0x86, 0x5d, 0x8c, 0xa5, 0x3d, 0x58, - 0x10, 0x12, 0x58, 0xc1, 0x1f, 0xb0, 0x8b, 0x42, 0xe8, 0x65, 0xa9, 0x9e, 0xbc, 0x94, 0x64, 0xe6, - 0xb5, 0x1d, 0xda, 0x9d, 0x89, 0x93, 0xa9, 0x98, 0xb3, 0x3f, 0x40, 0xff, 0x93, 0x17, 0x8f, 0x7b, - 0x14, 0x4f, 0xd2, 0xfe, 0x11, 0xc9, 0x24, 0x69, 0xd6, 0x75, 0x3d, 0xcb, 0xde, 0x66, 0xbe, 0xf7, - 0xbd, 0x8f, 0x8f, 0x6f, 0xde, 0x3c, 0x78, 0xb1, 0x88, 0x84, 0xce, 0xb4, 0x90, 0xcb, 0x60, 0x8d, - 0x59, 0xba, 0x8a, 0x34, 0x06, 0x1a, 0x3f, 0x6c, 0x31, 0x35, 0xc8, 0xe7, 0x15, 0xe4, 0x27, 0x5a, - 0x19, 0x45, 0xe9, 0x81, 0xec, 0x57, 0x95, 0xd3, 0x71, 0x2d, 0xc0, 0xd4, 0xf5, 0xb5, 0x92, 0x81, - 0xc5, 0xf9, 0xdc, 0x64, 0x09, 0xa6, 0x45, 0xe3, 0xe8, 0x5b, 0x13, 0x1e, 0x4f, 0x31, 0x7b, 0x9b, - 0x57, 0x66, 0x85, 0x3a, 0x3d, 0x85, 0xae, 0xe0, 0x28, 0x8d, 0x30, 0x99, 0x4b, 0x86, 0x64, 0xd2, - 0x9b, 0x1d, 0xee, 0xf4, 0x04, 0x3a, 0xc9, 0x36, 0x5e, 0x63, 0xe6, 0x36, 0x6d, 0xa5, 0xbc, 0xd1, - 0x57, 0xd0, 0x15, 0x31, 0x9b, 0x0b, 0xb9, 0x50, 0x6e, 0x6b, 0x48, 0x26, 0xfd, 0xf3, 0x33, 0xff, - 0x6f, 0x4f, 0x7e, 0x78, 0x71, 0x19, 0xca, 0x85, 0x9a, 0x39, 0x22, 0x66, 0xf9, 0x81, 0x4e, 0x61, - 0xc0, 0xd4, 0x56, 0x1a, 0xd4, 0x49, 0xa4, 0x4d, 0xe6, 0xb6, 0x6d, 0xef, 0xf3, 0xfb, 0x7a, 0x2f, - 0x0b, 0xde, 0x55, 0xce, 0xab, 0x74, 0xfe, 0x68, 0xa6, 0x63, 0x78, 0x14, 0x2d, 0x97, 0xfa, 0x10, - 0x8e, 0x7b, 0x64, 0x3d, 0x0e, 0x72, 0x70, 0x5a, 0x62, 0xf4, 0x19, 0xf4, 0x13, 0xad, 0x12, 0x95, - 0x46, 0x9b, 0xb9, 0xe0, 0x6e, 0xc7, 0x52, 0xa0, 0x82, 0x42, 0x4e, 0x9f, 0x02, 0x94, 0x39, 0xe7, - 0x75, 0xc7, 0xd6, 0x7b, 0x25, 0x12, 0x72, 0x4a, 0xa1, 0x9d, 0xa2, 0x34, 0x6e, 0x77, 0x48, 0x26, - 0xdd, 0x99, 0x3d, 0x8f, 0x3e, 0x13, 0x70, 0x4a, 0x4b, 0xf4, 0x0c, 0x7a, 0x6c, 0x23, 0x50, 0xda, - 0xee, 0x32, 0xbe, 0x02, 0x08, 0x79, 0xee, 0x90, 0x29, 0x29, 0x91, 0x19, 0xa1, 0x64, 0x4e, 0x28, - 0x52, 0x1c, 0xd4, 0x60, 0x61, 0x80, 0xad, 0x22, 0x29, 0xd1, 0x1a, 0x6c, 0x15, 0x06, 0x4a, 0x24, - 0xe4, 0xf4, 0x09, 0x38, 0x89, 0xd2, 0x56, 0xbe, 0x5d, 0xbe, 0x81, 0xd2, 0x26, 0xe4, 0xa3, 0x2f, - 0x04, 0x8e, 0xef, 0x09, 0xe9, 0x3f, 0x3a, 0xfa, 0xd9, 0x84, 0x93, 0x2b, 0x2d, 0x3e, 0x46, 0x06, - 0xab, 0xfc, 0x1f, 0xfc, 0x90, 0xbd, 0x83, 0x63, 0x94, 0x4c, 0x67, 0xc9, 0xed, 0x6f, 0x98, 0xba, - 0x47, 0xc3, 0xd6, 0xa4, 0x7f, 0x3e, 0xbe, 0xa5, 0x59, 0x7c, 0x3a, 0xff, 0x75, 0x45, 0x3e, 0x24, - 0x40, 0xf1, 0x2e, 0x94, 0xde, 0x19, 0xba, 0xce, 0xbf, 0x86, 0xce, 0xa9, 0x87, 0xee, 0x22, 0xfc, - 0xbe, 0xf3, 0xc8, 0xcd, 0xce, 0x23, 0xbf, 0x76, 0x1e, 0xf9, 0xba, 0xf7, 0x1a, 0x37, 0x7b, 0xaf, - 0xf1, 0x63, 0xef, 0x35, 0xde, 0x07, 0x4b, 0x61, 0x56, 0xdb, 0x38, 0x77, 0x10, 0xbc, 0x89, 0x84, - 0x8e, 0x37, 0x8a, 0xad, 0x83, 0x7a, 0x1d, 0x7c, 0xaa, 0x37, 0x8a, 0xdd, 0x05, 0x71, 0xc7, 0x2e, - 0x83, 0x97, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xf5, 0xfd, 0xd4, 0x29, 0x74, 0x04, 0x00, 0x00, -} - -func (m *KeyShareRequest) Marshal() (dAtA []byte, err error) { + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x54, 0x4f, 0x6f, 0xd3, 0x30, + 0x1c, 0xad, 0xdb, 0xae, 0x69, 0x7f, 0xdd, 0x38, 0x98, 0x3f, 0x8b, 0x56, 0x11, 0xaa, 0x4e, 0x40, + 0x4f, 0x89, 0x18, 0x12, 0x1f, 0x60, 0x43, 0x48, 0xd1, 0x2e, 0x53, 0x8f, 0x1c, 0x88, 0x12, 0xdb, + 0x5d, 0xad, 0x76, 0xb6, 0x71, 0x5c, 0x84, 0xcf, 0x7c, 0x00, 0xf8, 0x58, 0x88, 0xd3, 0x8e, 0x1c, + 0x51, 0x7b, 0xe2, 0x5b, 0xa0, 0x3a, 0x69, 0xb3, 0x8d, 0x70, 0x46, 0xda, 0xcd, 0x7e, 0xfe, 0xbd, + 0x97, 0xe7, 0x97, 0x9f, 0x7f, 0xf0, 0x6a, 0x9a, 0x72, 0x6d, 0x35, 0x17, 0x97, 0xd1, 0x9c, 0xd9, + 0x7c, 0x96, 0x6a, 0x16, 0x69, 0xf6, 0x71, 0xc9, 0x72, 0xc3, 0x68, 0x42, 0x19, 0xd1, 0x56, 0x19, + 0x2e, 0x45, 0x32, 0x67, 0x36, 0x54, 0x5a, 0x1a, 0x89, 0xf1, 0x8e, 0x12, 0x6e, 0x29, 0x47, 0xc7, + 0x95, 0x0c, 0x91, 0x57, 0x57, 0x52, 0x44, 0x0e, 0xa7, 0x89, 0xb1, 0x8a, 0xe5, 0x05, 0x71, 0xf4, + 0xa3, 0x09, 0x8f, 0xde, 0xee, 0x14, 0xcf, 0x99, 0x9d, 0x14, 0x1f, 0xc2, 0x47, 0xd0, 0xe5, 0x94, + 0x09, 0xc3, 0x8d, 0xf5, 0xd1, 0x10, 0x8d, 0x7b, 0x93, 0xdd, 0x1e, 0x3f, 0x81, 0x8e, 0x5a, 0x66, + 0x73, 0x66, 0xfd, 0xa6, 0x3b, 0x29, 0x77, 0xf8, 0x0d, 0x74, 0x79, 0x46, 0x12, 0x2e, 0xa6, 0xd2, + 0x6f, 0x0d, 0xd1, 0xb8, 0x7f, 0x32, 0x08, 0xff, 0x36, 0x16, 0xc6, 0xa7, 0x67, 0xb1, 0x98, 0xca, + 0x89, 0xc7, 0x33, 0xb2, 0x59, 0xe0, 0x73, 0xd8, 0x27, 0x72, 0x29, 0x0c, 0xd3, 0x2a, 0xd5, 0xc6, + 0xfa, 0x6d, 0xc7, 0x7d, 0x59, 0xc7, 0x3d, 0x2b, 0xea, 0x2e, 0x36, 0x75, 0x5b, 0x9d, 0x5b, 0x64, + 0xfc, 0x1c, 0x1e, 0xdc, 0x8e, 0xc8, 0xdf, 0x73, 0x26, 0x0f, 0xe8, 0xcd, 0x6b, 0xe2, 0x67, 0xd0, + 0x57, 0x5a, 0x2a, 0x99, 0xa7, 0x8b, 0x84, 0x53, 0xbf, 0xe3, 0x6a, 0x60, 0x0b, 0xc5, 0x14, 0x3f, + 0x05, 0x28, 0x43, 0xdf, 0x9c, 0x7b, 0xee, 0xbc, 0x57, 0x22, 0x31, 0xc5, 0x18, 0xda, 0x39, 0x13, + 0xc6, 0xef, 0x0e, 0xd1, 0xb8, 0x3b, 0x71, 0xeb, 0xd1, 0x17, 0x04, 0x5e, 0x69, 0x0a, 0x0f, 0xa0, + 0x47, 0x16, 0x9c, 0x09, 0xc7, 0x2e, 0x03, 0x2c, 0x80, 0x98, 0xe2, 0x63, 0x38, 0x20, 0x52, 0x08, + 0x46, 0x9c, 0x47, 0x4e, 0xcb, 0x1c, 0xf7, 0x2b, 0xb0, 0x30, 0x40, 0x66, 0xa9, 0x10, 0xcc, 0x19, + 0x6c, 0x15, 0x06, 0x4a, 0x24, 0xa6, 0xf8, 0x10, 0x3c, 0x25, 0xb5, 0x93, 0x6f, 0x97, 0x7f, 0x41, + 0x6a, 0x13, 0xd3, 0xd1, 0x57, 0x04, 0x0f, 0x6b, 0x62, 0xfa, 0x8f, 0x8e, 0x7e, 0x37, 0x61, 0x70, + 0xa1, 0xf9, 0xa7, 0xd4, 0xb0, 0xfb, 0xd5, 0x6b, 0x1f, 0xe0, 0x50, 0x15, 0xf7, 0xba, 0xf3, 0x2c, + 0x73, 0x7f, 0x6f, 0xd8, 0x1a, 0xf7, 0x4f, 0x5e, 0xdc, 0xd0, 0x2d, 0x1e, 0x61, 0x58, 0x1b, 0xc4, + 0x63, 0x55, 0x83, 0xe6, 0x77, 0x7a, 0xb0, 0xf3, 0xaf, 0x1e, 0xf4, 0xaa, 0x1e, 0x3c, 0x8d, 0xbf, + 0xaf, 0x02, 0x74, 0xbd, 0x0a, 0xd0, 0xaf, 0x55, 0x80, 0xbe, 0xad, 0x83, 0xc6, 0xf5, 0x3a, 0x68, + 0xfc, 0x5c, 0x07, 0x8d, 0xf7, 0xd1, 0x25, 0x37, 0xb3, 0x65, 0xb6, 0xf1, 0x11, 0xbd, 0x4b, 0xb9, + 0xce, 0x16, 0x92, 0xcc, 0xa3, 0x6a, 0x48, 0x7c, 0xae, 0xa6, 0x8d, 0x9b, 0x10, 0x59, 0xc7, 0x8d, + 0x88, 0xd7, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xec, 0x65, 0x16, 0xbd, 0x90, 0x04, 0x00, 0x00, +} + +func (m *DecryptionKeyRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -413,12 +413,12 @@ func (m *KeyShareRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *KeyShareRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *DecryptionKeyRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *KeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *DecryptionKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -436,21 +436,21 @@ func (m *KeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.RequestId) > 0 { i -= len(m.RequestId) copy(dAtA[i:], m.RequestId) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.RequestId))) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(len(m.RequestId))) i-- dAtA[i] = 0x3a } if len(m.ProposalId) > 0 { i -= len(m.ProposalId) copy(dAtA[i:], m.ProposalId) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ProposalId))) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(len(m.ProposalId))) i-- dAtA[i] = 0x32 } - if len(m.AggrKeyshare) > 0 { - i -= len(m.AggrKeyshare) - copy(dAtA[i:], m.AggrKeyshare) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.AggrKeyshare))) + if len(m.DecryptionKey) > 0 { + i -= len(m.DecryptionKey) + copy(dAtA[i:], m.DecryptionKey) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(len(m.DecryptionKey))) i-- dAtA[i] = 0x2a } @@ -461,7 +461,7 @@ func (m *KeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(size)) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 @@ -473,7 +473,7 @@ func (m *KeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(size)) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -481,14 +481,14 @@ func (m *KeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Pubkey) > 0 { i -= len(m.Pubkey) copy(dAtA[i:], m.Pubkey) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.Pubkey))) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(len(m.Pubkey))) i-- dAtA[i] = 0x12 } if len(m.Identity) > 0 { i -= len(m.Identity) copy(dAtA[i:], m.Identity) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.Identity))) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(len(m.Identity))) i-- dAtA[i] = 0xa } @@ -518,28 +518,28 @@ func (m *IBCInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.PortId) > 0 { i -= len(m.PortId) copy(dAtA[i:], m.PortId) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.PortId))) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(len(m.PortId))) i-- dAtA[i] = 0x22 } if len(m.ChannelId) > 0 { i -= len(m.ChannelId) copy(dAtA[i:], m.ChannelId) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ChannelId))) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(len(m.ChannelId))) i-- dAtA[i] = 0x1a } if len(m.ConnectionId) > 0 { i -= len(m.ConnectionId) copy(dAtA[i:], m.ConnectionId) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ConnectionId))) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(len(m.ConnectionId))) i-- dAtA[i] = 0x12 } if len(m.ClientId) > 0 { i -= len(m.ClientId) copy(dAtA[i:], m.ClientId) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ClientId))) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(len(m.ClientId))) i-- dAtA[i] = 0xa } @@ -569,35 +569,35 @@ func (m *CounterPartyIBCInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.PortId) > 0 { i -= len(m.PortId) copy(dAtA[i:], m.PortId) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.PortId))) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(len(m.PortId))) i-- dAtA[i] = 0x22 } if len(m.ChannelId) > 0 { i -= len(m.ChannelId) copy(dAtA[i:], m.ChannelId) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ChannelId))) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(len(m.ChannelId))) i-- dAtA[i] = 0x1a } if len(m.ConnectionId) > 0 { i -= len(m.ConnectionId) copy(dAtA[i:], m.ConnectionId) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ConnectionId))) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(len(m.ConnectionId))) i-- dAtA[i] = 0x12 } if len(m.ClientId) > 0 { i -= len(m.ClientId) copy(dAtA[i:], m.ClientId) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.ClientId))) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(len(m.ClientId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *PrivateKeyshareRequest) Marshal() (dAtA []byte, err error) { +func (m *PrivateDecryptionKeyRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -607,12 +607,12 @@ func (m *PrivateKeyshareRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PrivateKeyshareRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *PrivateDecryptionKeyRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PrivateKeyshareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PrivateDecryptionKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -630,19 +630,19 @@ func (m *PrivateKeyshareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) if len(m.RequestId) > 0 { i -= len(m.RequestId) copy(dAtA[i:], m.RequestId) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.RequestId))) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(len(m.RequestId))) i-- dAtA[i] = 0x32 } - if len(m.EncryptedKeyshares) > 0 { - for iNdEx := len(m.EncryptedKeyshares) - 1; iNdEx >= 0; iNdEx-- { + if len(m.PrivateDecryptionKeys) > 0 { + for iNdEx := len(m.PrivateDecryptionKeys) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.EncryptedKeyshares[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.PrivateDecryptionKeys[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(size)) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a @@ -655,7 +655,7 @@ func (m *PrivateKeyshareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) return 0, err } i -= size - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(size)) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x22 @@ -667,7 +667,7 @@ func (m *PrivateKeyshareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) return 0, err } i -= size - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(size)) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -675,22 +675,22 @@ func (m *PrivateKeyshareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) if len(m.Pubkey) > 0 { i -= len(m.Pubkey) copy(dAtA[i:], m.Pubkey) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.Pubkey))) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(len(m.Pubkey))) i-- dAtA[i] = 0x12 } if len(m.Identity) > 0 { i -= len(m.Identity) copy(dAtA[i:], m.Identity) - i = encodeVarintRequestedKeyshare(dAtA, i, uint64(len(m.Identity))) + i = encodeVarintRequestedDecryptionKey(dAtA, i, uint64(len(m.Identity))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarintRequestedKeyshare(dAtA []byte, offset int, v uint64) int { - offset -= sovRequestedKeyshare(v) +func encodeVarintRequestedDecryptionKey(dAtA []byte, offset int, v uint64) int { + offset -= sovRequestedDecryptionKey(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -700,7 +700,7 @@ func encodeVarintRequestedKeyshare(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *KeyShareRequest) Size() (n int) { +func (m *DecryptionKeyRequest) Size() (n int) { if m == nil { return 0 } @@ -708,31 +708,31 @@ func (m *KeyShareRequest) Size() (n int) { _ = l l = len(m.Identity) if l > 0 { - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } l = len(m.Pubkey) if l > 0 { - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } if m.IbcInfo != nil { l = m.IbcInfo.Size() - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } if m.Counterparty != nil { l = m.Counterparty.Size() - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } - l = len(m.AggrKeyshare) + l = len(m.DecryptionKey) if l > 0 { - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } l = len(m.ProposalId) if l > 0 { - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } l = len(m.RequestId) if l > 0 { - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } if m.Sent { n += 2 @@ -748,19 +748,19 @@ func (m *IBCInfo) Size() (n int) { _ = l l = len(m.ClientId) if l > 0 { - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } l = len(m.ConnectionId) if l > 0 { - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } l = len(m.ChannelId) if l > 0 { - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } l = len(m.PortId) if l > 0 { - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } return n } @@ -773,24 +773,24 @@ func (m *CounterPartyIBCInfo) Size() (n int) { _ = l l = len(m.ClientId) if l > 0 { - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } l = len(m.ConnectionId) if l > 0 { - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } l = len(m.ChannelId) if l > 0 { - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } l = len(m.PortId) if l > 0 { - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } return n } -func (m *PrivateKeyshareRequest) Size() (n int) { +func (m *PrivateDecryptionKeyRequest) Size() (n int) { if m == nil { return 0 } @@ -798,29 +798,29 @@ func (m *PrivateKeyshareRequest) Size() (n int) { _ = l l = len(m.Identity) if l > 0 { - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } l = len(m.Pubkey) if l > 0 { - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } if m.IbcInfo != nil { l = m.IbcInfo.Size() - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } if m.Counterparty != nil { l = m.Counterparty.Size() - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } - if len(m.EncryptedKeyshares) > 0 { - for _, e := range m.EncryptedKeyshares { + if len(m.PrivateDecryptionKeys) > 0 { + for _, e := range m.PrivateDecryptionKeys { l = e.Size() - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } } l = len(m.RequestId) if l > 0 { - n += 1 + l + sovRequestedKeyshare(uint64(l)) + n += 1 + l + sovRequestedDecryptionKey(uint64(l)) } if m.Sent { n += 2 @@ -828,13 +828,13 @@ func (m *PrivateKeyshareRequest) Size() (n int) { return n } -func sovRequestedKeyshare(x uint64) (n int) { +func sovRequestedDecryptionKey(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozRequestedKeyshare(x uint64) (n int) { - return sovRequestedKeyshare(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozRequestedDecryptionKey(x uint64) (n int) { + return sovRequestedDecryptionKey(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { +func (m *DecryptionKeyRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -842,7 +842,7 @@ func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -857,10 +857,10 @@ func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: KeyShareRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DecryptionKeyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: KeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DecryptionKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -870,7 +870,7 @@ func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -884,11 +884,11 @@ func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -902,7 +902,7 @@ func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -916,11 +916,11 @@ func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -934,7 +934,7 @@ func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -947,11 +947,11 @@ func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -970,7 +970,7 @@ func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -983,11 +983,11 @@ func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -1001,12 +1001,12 @@ func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AggrKeyshare", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DecryptionKey", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1020,16 +1020,16 @@ func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF } - m.AggrKeyshare = string(dAtA[iNdEx:postIndex]) + m.DecryptionKey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 2 { @@ -1038,7 +1038,7 @@ func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1052,11 +1052,11 @@ func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -1070,7 +1070,7 @@ func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1084,11 +1084,11 @@ func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -1102,7 +1102,7 @@ func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1117,12 +1117,12 @@ func (m *KeyShareRequest) Unmarshal(dAtA []byte) error { m.Sent = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipRequestedKeyshare(dAtA[iNdEx:]) + skippy, err := skipRequestedDecryptionKey(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1144,7 +1144,7 @@ func (m *IBCInfo) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1172,7 +1172,7 @@ func (m *IBCInfo) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1186,11 +1186,11 @@ func (m *IBCInfo) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -1204,7 +1204,7 @@ func (m *IBCInfo) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1218,11 +1218,11 @@ func (m *IBCInfo) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -1236,7 +1236,7 @@ func (m *IBCInfo) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1250,11 +1250,11 @@ func (m *IBCInfo) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -1268,7 +1268,7 @@ func (m *IBCInfo) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1282,11 +1282,11 @@ func (m *IBCInfo) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -1295,12 +1295,12 @@ func (m *IBCInfo) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRequestedKeyshare(dAtA[iNdEx:]) + skippy, err := skipRequestedDecryptionKey(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1322,7 +1322,7 @@ func (m *CounterPartyIBCInfo) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1350,7 +1350,7 @@ func (m *CounterPartyIBCInfo) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1364,11 +1364,11 @@ func (m *CounterPartyIBCInfo) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -1382,7 +1382,7 @@ func (m *CounterPartyIBCInfo) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1396,11 +1396,11 @@ func (m *CounterPartyIBCInfo) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -1414,7 +1414,7 @@ func (m *CounterPartyIBCInfo) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1428,11 +1428,11 @@ func (m *CounterPartyIBCInfo) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -1446,7 +1446,7 @@ func (m *CounterPartyIBCInfo) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1460,11 +1460,11 @@ func (m *CounterPartyIBCInfo) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -1473,12 +1473,12 @@ func (m *CounterPartyIBCInfo) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRequestedKeyshare(dAtA[iNdEx:]) + skippy, err := skipRequestedDecryptionKey(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1492,7 +1492,7 @@ func (m *CounterPartyIBCInfo) Unmarshal(dAtA []byte) error { } return nil } -func (m *PrivateKeyshareRequest) Unmarshal(dAtA []byte) error { +func (m *PrivateDecryptionKeyRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1500,7 +1500,7 @@ func (m *PrivateKeyshareRequest) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1515,10 +1515,10 @@ func (m *PrivateKeyshareRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PrivateKeyshareRequest: wiretype end group for non-group") + return fmt.Errorf("proto: PrivateDecryptionKeyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PrivateKeyshareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PrivateDecryptionKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1528,7 +1528,7 @@ func (m *PrivateKeyshareRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1542,11 +1542,11 @@ func (m *PrivateKeyshareRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -1560,7 +1560,7 @@ func (m *PrivateKeyshareRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1574,11 +1574,11 @@ func (m *PrivateKeyshareRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -1592,7 +1592,7 @@ func (m *PrivateKeyshareRequest) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1605,11 +1605,11 @@ func (m *PrivateKeyshareRequest) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -1628,7 +1628,7 @@ func (m *PrivateKeyshareRequest) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1641,11 +1641,11 @@ func (m *PrivateKeyshareRequest) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -1659,12 +1659,12 @@ func (m *PrivateKeyshareRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyshares", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PrivateDecryptionKeys", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1677,17 +1677,17 @@ func (m *PrivateKeyshareRequest) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF } - m.EncryptedKeyshares = append(m.EncryptedKeyshares, &types.EncryptedKeyshare{}) - if err := m.EncryptedKeyshares[len(m.EncryptedKeyshares)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.PrivateDecryptionKeys = append(m.PrivateDecryptionKeys, &types.PrivateDecryptionKey{}) + if err := m.PrivateDecryptionKeys[len(m.PrivateDecryptionKeys)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1698,7 +1698,7 @@ func (m *PrivateKeyshareRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1712,11 +1712,11 @@ func (m *PrivateKeyshareRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -1730,7 +1730,7 @@ func (m *PrivateKeyshareRequest) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRequestedKeyshare + return ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1745,12 +1745,12 @@ func (m *PrivateKeyshareRequest) Unmarshal(dAtA []byte) error { m.Sent = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipRequestedKeyshare(dAtA[iNdEx:]) + skippy, err := skipRequestedDecryptionKey(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRequestedKeyshare + return ErrInvalidLengthRequestedDecryptionKey } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1764,7 +1764,7 @@ func (m *PrivateKeyshareRequest) Unmarshal(dAtA []byte) error { } return nil } -func skipRequestedKeyshare(dAtA []byte) (n int, err error) { +func skipRequestedDecryptionKey(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -1772,7 +1772,7 @@ func skipRequestedKeyshare(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowRequestedKeyshare + return 0, ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1789,7 +1789,7 @@ func skipRequestedKeyshare(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowRequestedKeyshare + return 0, ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1805,7 +1805,7 @@ func skipRequestedKeyshare(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowRequestedKeyshare + return 0, ErrIntOverflowRequestedDecryptionKey } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1818,14 +1818,14 @@ func skipRequestedKeyshare(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthRequestedKeyshare + return 0, ErrInvalidLengthRequestedDecryptionKey } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupRequestedKeyshare + return 0, ErrUnexpectedEndOfGroupRequestedDecryptionKey } depth-- case 5: @@ -1834,7 +1834,7 @@ func skipRequestedKeyshare(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthRequestedKeyshare + return 0, ErrInvalidLengthRequestedDecryptionKey } if depth == 0 { return iNdEx, nil @@ -1844,7 +1844,7 @@ func skipRequestedKeyshare(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthRequestedKeyshare = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowRequestedKeyshare = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupRequestedKeyshare = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthRequestedDecryptionKey = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRequestedDecryptionKey = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRequestedDecryptionKey = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/keyshare/types/tx.pb.go b/x/keyshare/types/tx.pb.go index 15a17966..b425b86e 100644 --- a/x/keyshare/types/tx.pb.go +++ b/x/keyshare/types/tx.pb.go @@ -979,8 +979,8 @@ func (m *MsgDeleteAuthorizedAddressResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgDeleteAuthorizedAddressResponse proto.InternalMessageInfo -// MsgCreateGeneralKeyShare is the Msg/CreateGeneralKeyShare request type. -type MsgCreateGeneralKeyShare struct { +// MsgSubmitGeneralKeyShare is the Msg/CreateGeneralKeyShare request type. +type MsgSubmitGeneralKeyShare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` IdValue string `protobuf:"bytes,3,opt,name=id_value,json=idValue,proto3" json:"id_value,omitempty"` @@ -990,18 +990,18 @@ type MsgCreateGeneralKeyShare struct { ReceivedBlockHeight uint64 `protobuf:"varint,7,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` } -func (m *MsgCreateGeneralKeyShare) Reset() { *m = MsgCreateGeneralKeyShare{} } -func (m *MsgCreateGeneralKeyShare) String() string { return proto.CompactTextString(m) } -func (*MsgCreateGeneralKeyShare) ProtoMessage() {} -func (*MsgCreateGeneralKeyShare) Descriptor() ([]byte, []int) { +func (m *MsgSubmitGeneralKeyShare) Reset() { *m = MsgSubmitGeneralKeyShare{} } +func (m *MsgSubmitGeneralKeyShare) String() string { return proto.CompactTextString(m) } +func (*MsgSubmitGeneralKeyShare) ProtoMessage() {} +func (*MsgSubmitGeneralKeyShare) Descriptor() ([]byte, []int) { return fileDescriptor_1f96ac6a55f1845c, []int{18} } -func (m *MsgCreateGeneralKeyShare) XXX_Unmarshal(b []byte) error { +func (m *MsgSubmitGeneralKeyShare) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgCreateGeneralKeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgSubmitGeneralKeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgCreateGeneralKeyShare.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgSubmitGeneralKeyShare.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1011,70 +1011,70 @@ func (m *MsgCreateGeneralKeyShare) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *MsgCreateGeneralKeyShare) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCreateGeneralKeyShare.Merge(m, src) +func (m *MsgSubmitGeneralKeyShare) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSubmitGeneralKeyShare.Merge(m, src) } -func (m *MsgCreateGeneralKeyShare) XXX_Size() int { +func (m *MsgSubmitGeneralKeyShare) XXX_Size() int { return m.Size() } -func (m *MsgCreateGeneralKeyShare) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCreateGeneralKeyShare.DiscardUnknown(m) +func (m *MsgSubmitGeneralKeyShare) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSubmitGeneralKeyShare.DiscardUnknown(m) } -var xxx_messageInfo_MsgCreateGeneralKeyShare proto.InternalMessageInfo +var xxx_messageInfo_MsgSubmitGeneralKeyShare proto.InternalMessageInfo -func (m *MsgCreateGeneralKeyShare) GetCreator() string { +func (m *MsgSubmitGeneralKeyShare) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *MsgCreateGeneralKeyShare) GetIdType() string { +func (m *MsgSubmitGeneralKeyShare) GetIdType() string { if m != nil { return m.IdType } return "" } -func (m *MsgCreateGeneralKeyShare) GetIdValue() string { +func (m *MsgSubmitGeneralKeyShare) GetIdValue() string { if m != nil { return m.IdValue } return "" } -func (m *MsgCreateGeneralKeyShare) GetKeyShare() string { +func (m *MsgSubmitGeneralKeyShare) GetKeyShare() string { if m != nil { return m.KeyShare } return "" } -func (m *MsgCreateGeneralKeyShare) GetKeyShareIndex() uint64 { +func (m *MsgSubmitGeneralKeyShare) GetKeyShareIndex() uint64 { if m != nil { return m.KeyShareIndex } return 0 } -func (m *MsgCreateGeneralKeyShare) GetReceivedTimestamp() uint64 { +func (m *MsgSubmitGeneralKeyShare) GetReceivedTimestamp() uint64 { if m != nil { return m.ReceivedTimestamp } return 0 } -func (m *MsgCreateGeneralKeyShare) GetReceivedBlockHeight() uint64 { +func (m *MsgSubmitGeneralKeyShare) GetReceivedBlockHeight() uint64 { if m != nil { return m.ReceivedBlockHeight } return 0 } -// MsgCreateGeneralKeyShareResponse defines the response structure for -// executing a MsgCreateGeneralKeyShare message. -type MsgCreateGeneralKeyShareResponse struct { +// MsgSubmitGeneralKeyShareResponse defines the response structure for +// executing a MsgSubmitGeneralKeyShare message. +type MsgSubmitGeneralKeyShareResponse struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` IdValue string `protobuf:"bytes,3,opt,name=id_value,json=idValue,proto3" json:"id_value,omitempty"` @@ -1085,18 +1085,18 @@ type MsgCreateGeneralKeyShareResponse struct { ErrorMessage string `protobuf:"bytes,8,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` } -func (m *MsgCreateGeneralKeyShareResponse) Reset() { *m = MsgCreateGeneralKeyShareResponse{} } -func (m *MsgCreateGeneralKeyShareResponse) String() string { return proto.CompactTextString(m) } -func (*MsgCreateGeneralKeyShareResponse) ProtoMessage() {} -func (*MsgCreateGeneralKeyShareResponse) Descriptor() ([]byte, []int) { +func (m *MsgSubmitGeneralKeyShareResponse) Reset() { *m = MsgSubmitGeneralKeyShareResponse{} } +func (m *MsgSubmitGeneralKeyShareResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSubmitGeneralKeyShareResponse) ProtoMessage() {} +func (*MsgSubmitGeneralKeyShareResponse) Descriptor() ([]byte, []int) { return fileDescriptor_1f96ac6a55f1845c, []int{19} } -func (m *MsgCreateGeneralKeyShareResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgSubmitGeneralKeyShareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgCreateGeneralKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgSubmitGeneralKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgCreateGeneralKeyShareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgSubmitGeneralKeyShareResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1106,68 +1106,68 @@ func (m *MsgCreateGeneralKeyShareResponse) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } -func (m *MsgCreateGeneralKeyShareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCreateGeneralKeyShareResponse.Merge(m, src) +func (m *MsgSubmitGeneralKeyShareResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSubmitGeneralKeyShareResponse.Merge(m, src) } -func (m *MsgCreateGeneralKeyShareResponse) XXX_Size() int { +func (m *MsgSubmitGeneralKeyShareResponse) XXX_Size() int { return m.Size() } -func (m *MsgCreateGeneralKeyShareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCreateGeneralKeyShareResponse.DiscardUnknown(m) +func (m *MsgSubmitGeneralKeyShareResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSubmitGeneralKeyShareResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgCreateGeneralKeyShareResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgSubmitGeneralKeyShareResponse proto.InternalMessageInfo -func (m *MsgCreateGeneralKeyShareResponse) GetCreator() string { +func (m *MsgSubmitGeneralKeyShareResponse) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *MsgCreateGeneralKeyShareResponse) GetIdType() string { +func (m *MsgSubmitGeneralKeyShareResponse) GetIdType() string { if m != nil { return m.IdType } return "" } -func (m *MsgCreateGeneralKeyShareResponse) GetIdValue() string { +func (m *MsgSubmitGeneralKeyShareResponse) GetIdValue() string { if m != nil { return m.IdValue } return "" } -func (m *MsgCreateGeneralKeyShareResponse) GetKeyShare() string { +func (m *MsgSubmitGeneralKeyShareResponse) GetKeyShare() string { if m != nil { return m.KeyShare } return "" } -func (m *MsgCreateGeneralKeyShareResponse) GetKeyShareIndex() uint64 { +func (m *MsgSubmitGeneralKeyShareResponse) GetKeyShareIndex() uint64 { if m != nil { return m.KeyShareIndex } return 0 } -func (m *MsgCreateGeneralKeyShareResponse) GetReceivedBlockHeight() uint64 { +func (m *MsgSubmitGeneralKeyShareResponse) GetReceivedBlockHeight() uint64 { if m != nil { return m.ReceivedBlockHeight } return 0 } -func (m *MsgCreateGeneralKeyShareResponse) GetSuccess() bool { +func (m *MsgSubmitGeneralKeyShareResponse) GetSuccess() bool { if m != nil { return m.Success } return false } -func (m *MsgCreateGeneralKeyShareResponse) GetErrorMessage() string { +func (m *MsgSubmitGeneralKeyShareResponse) GetErrorMessage() string { if m != nil { return m.ErrorMessage } @@ -1324,8 +1324,8 @@ func init() { proto.RegisterType((*MsgUpdateAuthorizedAddressResponse)(nil), "fairyring.keyshare.MsgUpdateAuthorizedAddressResponse") proto.RegisterType((*MsgDeleteAuthorizedAddress)(nil), "fairyring.keyshare.MsgDeleteAuthorizedAddress") proto.RegisterType((*MsgDeleteAuthorizedAddressResponse)(nil), "fairyring.keyshare.MsgDeleteAuthorizedAddressResponse") - proto.RegisterType((*MsgCreateGeneralKeyShare)(nil), "fairyring.keyshare.MsgCreateGeneralKeyShare") - proto.RegisterType((*MsgCreateGeneralKeyShareResponse)(nil), "fairyring.keyshare.MsgCreateGeneralKeyShareResponse") + proto.RegisterType((*MsgSubmitGeneralKeyShare)(nil), "fairyring.keyshare.MsgSubmitGeneralKeyShare") + proto.RegisterType((*MsgSubmitGeneralKeyShareResponse)(nil), "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse") proto.RegisterType((*MsgSubmitEncryptedKeyshare)(nil), "fairyring.keyshare.MsgSubmitEncryptedKeyshare") proto.RegisterType((*MsgSubmitEncryptedKeyshareResponse)(nil), "fairyring.keyshare.MsgSubmitEncryptedKeyshareResponse") } @@ -1333,81 +1333,82 @@ func init() { func init() { proto.RegisterFile("fairyring/keyshare/tx.proto", fileDescriptor_1f96ac6a55f1845c) } var fileDescriptor_1f96ac6a55f1845c = []byte{ - // 1184 bytes of a gzipped FileDescriptorProto + // 1186 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0xcd, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0xda, 0x89, 0x1d, 0xbf, 0xb8, 0x54, 0x99, 0xba, 0x8d, 0xbb, 0x6d, 0x1d, 0xd7, 0x69, + 0x14, 0xcf, 0xda, 0x89, 0x1d, 0xbf, 0xb8, 0x54, 0xd9, 0xba, 0x8d, 0xbb, 0x6d, 0x1d, 0xd7, 0x69, 0x91, 0x09, 0xd4, 0x6e, 0x53, 0x54, 0x50, 0x24, 0x10, 0x0d, 0xe5, 0xa3, 0x0a, 0x56, 0xab, 0x4d, 0x29, 0x12, 0x42, 0xda, 0xae, 0xbd, 0x2f, 0x9b, 0x51, 0xb2, 0x5e, 0x33, 0x33, 0x1b, 0xc5, 0x70, 0xa1, 0x1c, 0xf9, 0x90, 0xf8, 0x0b, 0x7a, 0xee, 0x31, 0x12, 0x1c, 0xb8, 0x72, 0xeb, 0xb1, 0xe2, - 0xc4, 0x09, 0xa1, 0xe4, 0x90, 0x7f, 0x03, 0xed, 0xa7, 0xbf, 0x76, 0x6c, 0x07, 0x09, 0x71, 0xe1, - 0xd2, 0xee, 0xbc, 0xf9, 0xcd, 0x7b, 0xbf, 0xf9, 0xed, 0xdb, 0xf7, 0x5e, 0x0c, 0x97, 0xb6, 0x0d, - 0xca, 0xba, 0x8c, 0xb6, 0xad, 0xfa, 0x2e, 0x76, 0xf9, 0x8e, 0xc1, 0xb0, 0x2e, 0x0e, 0x6a, 0x1d, - 0xe6, 0x08, 0x87, 0x90, 0x78, 0xb3, 0x16, 0x6d, 0xaa, 0x8b, 0x86, 0x4d, 0xdb, 0x4e, 0xdd, 0xff, - 0x37, 0x80, 0xa9, 0x4b, 0x2d, 0x87, 0xdb, 0x0e, 0xaf, 0xdb, 0xdc, 0xaa, 0xef, 0xdf, 0xf2, 0xfe, - 0x0b, 0x37, 0x2e, 0x06, 0x1b, 0xba, 0xbf, 0xaa, 0x07, 0x8b, 0x70, 0xab, 0x60, 0x39, 0x96, 0x13, - 0xd8, 0xbd, 0xa7, 0xd0, 0xba, 0x9c, 0xc0, 0xa6, 0x63, 0x30, 0xc3, 0x8e, 0x8e, 0x95, 0x93, 0x00, - 0x6e, 0x53, 0xdf, 0xc5, 0x6e, 0x80, 0xa8, 0xfc, 0xa6, 0xc0, 0xd9, 0x06, 0xb7, 0x3e, 0xed, 0x98, - 0x86, 0xc0, 0x87, 0xfe, 0x59, 0x72, 0x07, 0x72, 0x86, 0x2b, 0x76, 0x1c, 0x46, 0x45, 0xb7, 0xa8, - 0x94, 0x95, 0x6a, 0x6e, 0xa3, 0xf8, 0xfb, 0x2f, 0x37, 0x0a, 0x21, 0xa3, 0xbb, 0xa6, 0xc9, 0x90, - 0xf3, 0x2d, 0xe1, 0xf9, 0xd5, 0x7a, 0x50, 0xf2, 0x0e, 0x64, 0x82, 0xe8, 0xc5, 0x54, 0x59, 0xa9, - 0x2e, 0xac, 0xa9, 0xb5, 0x51, 0x41, 0x6a, 0x41, 0x8c, 0x8d, 0xdc, 0x8b, 0x3f, 0x97, 0x67, 0x9e, - 0x9f, 0x1c, 0xae, 0x2a, 0x5a, 0x78, 0x68, 0xfd, 0xad, 0x6f, 0x4f, 0x0e, 0x57, 0x7b, 0xee, 0xbe, - 0x3b, 0x39, 0x5c, 0xbd, 0xd6, 0xe3, 0x7f, 0xd0, 0xbb, 0xc1, 0x10, 0xdf, 0xca, 0x45, 0x58, 0x1a, - 0x32, 0x69, 0xc8, 0x3b, 0x4e, 0x9b, 0x63, 0xe5, 0x5d, 0x28, 0x34, 0xb8, 0xa5, 0xa1, 0x45, 0xb9, - 0x40, 0xf6, 0xd8, 0xd8, 0xa3, 0xa6, 0x21, 0x1c, 0x46, 0x8a, 0x90, 0x6d, 0x31, 0xf4, 0x1e, 0x83, - 0x0b, 0x6a, 0xd1, 0x72, 0x3d, 0xef, 0xb1, 0x88, 0x56, 0x95, 0xb7, 0xe1, 0x72, 0xd2, 0xf9, 0xc8, - 0xbf, 0xdc, 0x4f, 0xe5, 0x3d, 0xb8, 0xd0, 0xe0, 0xd6, 0x3d, 0xfc, 0xe7, 0xb1, 0xd7, 0xa1, 0x94, - 0xec, 0x61, 0x8a, 0xe8, 0xcf, 0x82, 0xd7, 0xba, 0x85, 0x6d, 0x73, 0x33, 0x94, 0x4d, 0x8e, 0xf6, - 0x76, 0x6c, 0xe4, 0xdc, 0xb0, 0xd0, 0x7f, 0x73, 0x39, 0x2d, 0x5a, 0x92, 0x57, 0xe1, 0xec, 0x2e, - 0x76, 0x75, 0xdf, 0x81, 0x4e, 0xdb, 0x26, 0x1e, 0x14, 0xd3, 0x65, 0xa5, 0x3a, 0xab, 0x9d, 0xd9, - 0xc5, 0xee, 0x96, 0x67, 0xbd, 0xef, 0x19, 0xc9, 0x55, 0xc8, 0x37, 0xf7, 0x9c, 0xd6, 0xae, 0xbe, - 0x83, 0xd4, 0xda, 0x11, 0xc5, 0x59, 0x1f, 0xb4, 0xe0, 0xdb, 0x3e, 0xf6, 0x4d, 0x43, 0x97, 0xfb, - 0x21, 0xe5, 0xbf, 0xb4, 0x7e, 0x82, 0x93, 0xaf, 0x45, 0x54, 0x98, 0x8f, 0xb2, 0x20, 0x64, 0x1a, - 0xaf, 0xc9, 0x75, 0x78, 0x25, 0x7a, 0x1e, 0x61, 0xca, 0x4f, 0xc3, 0x94, 0xac, 0xc1, 0x79, 0x86, - 0x2d, 0xa4, 0xfb, 0x68, 0xea, 0x03, 0xd8, 0x39, 0x1f, 0x7b, 0x2e, 0xda, 0xdc, 0xe8, 0x3b, 0x53, - 0x84, 0x2c, 0x77, 0x5b, 0x2d, 0xe4, 0xbc, 0x98, 0x29, 0x2b, 0xd5, 0x79, 0x2d, 0x5a, 0x92, 0x15, - 0x38, 0x83, 0x8c, 0x39, 0x4c, 0x8f, 0x24, 0xce, 0xfa, 0xc4, 0xf3, 0xbe, 0xb1, 0x11, 0xd8, 0x2a, - 0xdf, 0xa7, 0xe0, 0x7c, 0x83, 0x5b, 0xef, 0x7b, 0xf7, 0xc4, 0x4f, 0x0c, 0x81, 0x5c, 0x3c, 0x74, - 0x9b, 0x9b, 0xd8, 0x1d, 0x23, 0xc6, 0x15, 0x80, 0x8e, 0xdb, 0xdc, 0xa3, 0x2d, 0xef, 0x73, 0x0e, - 0xe5, 0xc8, 0x05, 0x16, 0xef, 0x60, 0x19, 0x16, 0x5a, 0x8e, 0x6d, 0x53, 0x61, 0x63, 0x5b, 0xf0, - 0x62, 0xba, 0x9c, 0xae, 0xe6, 0xb4, 0x7e, 0x13, 0xb9, 0x09, 0x85, 0xb6, 0x6b, 0x37, 0x91, 0xe9, - 0xce, 0xb6, 0xbe, 0x1f, 0x65, 0x17, 0x0f, 0x25, 0x21, 0xc1, 0xde, 0x83, 0xed, 0x38, 0xef, 0x38, - 0xf9, 0x0c, 0x0a, 0xd8, 0x6e, 0xb1, 0x6e, 0x47, 0xa0, 0xa9, 0xc7, 0x89, 0xc1, 0x8b, 0x73, 0xe5, - 0x74, 0x75, 0x61, 0xed, 0x7a, 0xd2, 0xf7, 0xfe, 0x41, 0x84, 0xdf, 0x0c, 0x13, 0x46, 0x23, 0x38, - 0x6c, 0xe2, 0x43, 0xc9, 0xb1, 0x0c, 0x57, 0x12, 0xc5, 0x88, 0x3f, 0xeb, 0x1f, 0x83, 0xec, 0x79, - 0xb0, 0x8f, 0x8c, 0x51, 0xf3, 0x7f, 0xc1, 0xae, 0xc2, 0xb2, 0x44, 0x8e, 0x58, 0xb2, 0x2f, 0x40, - 0x8d, 0x35, 0xbd, 0x1b, 0xd4, 0xd8, 0xaf, 0xd0, 0x0c, 0x6b, 0x39, 0xb9, 0x00, 0x19, 0x61, 0x30, - 0x0b, 0x45, 0xa8, 0x59, 0xb8, 0xea, 0x17, 0x33, 0x35, 0xae, 0x56, 0x5d, 0x83, 0x8a, 0xdc, 0x7b, - 0xcc, 0xe1, 0xa9, 0xe2, 0x93, 0x08, 0x2a, 0xf5, 0xf4, 0x24, 0x56, 0xe0, 0x0c, 0xe5, 0xba, 0x11, - 0xe3, 0x7d, 0x2a, 0xf3, 0x5a, 0x9e, 0xf2, 0x9e, 0x8f, 0x7e, 0xa6, 0xe9, 0xc9, 0x4c, 0x25, 0x14, - 0x86, 0xd4, 0xba, 0x87, 0x7b, 0xf8, 0xef, 0xa9, 0x25, 0xf1, 0x1e, 0x73, 0x78, 0x96, 0x82, 0x62, - 0x2c, 0xea, 0x47, 0xd8, 0x46, 0x66, 0xec, 0x45, 0x09, 0x30, 0x26, 0xcb, 0x97, 0x20, 0x4b, 0x4d, - 0x5d, 0x74, 0x3b, 0x51, 0x89, 0xcc, 0x50, 0xf3, 0x51, 0xb7, 0x83, 0xe4, 0x22, 0xcc, 0x53, 0xd3, - 0x4b, 0x5b, 0x17, 0x23, 0x89, 0xa8, 0xf9, 0xd8, 0x5b, 0x92, 0x4b, 0x90, 0x8b, 0x93, 0xd3, 0xcf, - 0xe6, 0xa0, 0xb0, 0x06, 0xa1, 0x12, 0x7a, 0xc0, 0x5c, 0x52, 0x0f, 0xb8, 0x01, 0x24, 0x2e, 0x9b, - 0x82, 0xda, 0xc8, 0x85, 0x61, 0x77, 0xfc, 0x6a, 0x38, 0xab, 0x2d, 0x46, 0x3b, 0x8f, 0xa2, 0x0d, - 0x79, 0x95, 0xcd, 0x4a, 0xab, 0xec, 0x90, 0x8c, 0xcf, 0x53, 0x50, 0x96, 0x09, 0x34, 0x45, 0x33, - 0xf9, 0xcf, 0x84, 0x92, 0xde, 0x3c, 0x33, 0x55, 0x7f, 0xc9, 0x4e, 0xe8, 0x2f, 0xf3, 0x09, 0xfd, - 0xe5, 0xd7, 0x94, 0x9f, 0xd0, 0x5b, 0x6e, 0xd3, 0xa6, 0xa2, 0xbf, 0xc2, 0x4c, 0x1a, 0x0d, 0x54, - 0x4f, 0x0b, 0x6c, 0x0b, 0x6f, 0x14, 0x0c, 0x3b, 0x6e, 0xb4, 0xf6, 0x5e, 0xf8, 0x40, 0x71, 0x0b, - 0x54, 0x09, 0x14, 0x5b, 0xc4, 0x91, 0x20, 0x09, 0xf2, 0xcc, 0x4e, 0x9f, 0x47, 0x73, 0xa7, 0xce, - 0xa3, 0x31, 0x6a, 0x5e, 0x86, 0x1c, 0xc3, 0x2f, 0x5d, 0xf4, 0xc6, 0xaa, 0xb0, 0x1f, 0xf7, 0x0c, - 0x89, 0x1f, 0xab, 0x44, 0xb9, 0x28, 0xcd, 0xd6, 0x7e, 0x06, 0x48, 0x37, 0xb8, 0x45, 0x9e, 0x40, - 0x7e, 0x60, 0x96, 0x5e, 0x49, 0x2a, 0xf1, 0x43, 0xd3, 0xaa, 0xfa, 0xfa, 0x14, 0xa0, 0x38, 0xa1, - 0x1d, 0x58, 0x1c, 0x9d, 0x29, 0xab, 0x12, 0x0f, 0x23, 0x48, 0xf5, 0xe6, 0xb4, 0xc8, 0x38, 0xa0, - 0x0b, 0xe7, 0x92, 0xc6, 0xd8, 0x55, 0x89, 0xa3, 0x04, 0xac, 0xba, 0x36, 0x3d, 0x36, 0x0e, 0xfb, - 0x04, 0xf2, 0x03, 0xe3, 0xab, 0x4c, 0xc9, 0x7e, 0x90, 0x54, 0xc9, 0xc4, 0x39, 0x93, 0x01, 0x49, - 0x18, 0xb8, 0x5e, 0x93, 0xb8, 0x18, 0x85, 0xaa, 0xb7, 0xa6, 0x86, 0xc6, 0x31, 0x0f, 0xa0, 0x90, - 0x38, 0xb5, 0xc8, 0x88, 0x27, 0x81, 0xd5, 0xdb, 0xa7, 0x00, 0xc7, 0x91, 0x9f, 0x2a, 0xb0, 0x24, - 0x6b, 0xff, 0xb5, 0xb1, 0x17, 0x19, 0xc1, 0xab, 0x77, 0x4e, 0x87, 0x1f, 0xe0, 0x20, 0xeb, 0xfe, - 0xb5, 0xb1, 0x1f, 0xc1, 0xf4, 0x1c, 0x26, 0xb4, 0x76, 0x9f, 0x83, 0xac, 0xb1, 0xd7, 0xa4, 0x79, - 0x9a, 0x88, 0x97, 0x72, 0x98, 0xd0, 0xda, 0xc9, 0xd7, 0x70, 0x3e, 0xb9, 0xad, 0xbf, 0x31, 0x56, - 0xd8, 0x21, 0xb4, 0xfa, 0xe6, 0x69, 0xd0, 0x03, 0x02, 0xc8, 0x1a, 0x81, 0x4c, 0x00, 0x09, 0x5e, - 0x2a, 0xc0, 0x84, 0x72, 0xa9, 0xce, 0x7d, 0xe3, 0xfd, 0xe9, 0xbf, 0x71, 0xff, 0xc5, 0x51, 0x49, - 0x79, 0x79, 0x54, 0x52, 0xfe, 0x3a, 0x2a, 0x29, 0x3f, 0x1d, 0x97, 0x66, 0x5e, 0x1e, 0x97, 0x66, - 0xfe, 0x38, 0x2e, 0xcd, 0x7c, 0x5e, 0xb7, 0xa8, 0xd8, 0x71, 0x9b, 0xb5, 0x96, 0x63, 0xd7, 0x3f, - 0x34, 0x28, 0xf3, 0x2b, 0x7b, 0x3d, 0xf1, 0xe7, 0x00, 0xaf, 0x83, 0xf3, 0x66, 0xc6, 0xff, 0x3d, - 0xe3, 0xf6, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa8, 0x3c, 0x63, 0x2b, 0xa2, 0x11, 0x00, 0x00, + 0xc4, 0x09, 0xa1, 0xe4, 0x90, 0x7f, 0x03, 0xed, 0xa7, 0xbf, 0x66, 0x6c, 0x07, 0x09, 0x71, 0xe1, + 0xd2, 0xee, 0xbc, 0xf9, 0xcd, 0x7b, 0xbf, 0xf9, 0xed, 0xdb, 0xf7, 0x5e, 0x0c, 0x97, 0xb6, 0x4d, + 0x42, 0xbb, 0x94, 0xb4, 0xed, 0xfa, 0x2e, 0x76, 0xd9, 0x8e, 0x49, 0xb1, 0xce, 0x0f, 0x6a, 0x1d, + 0xea, 0x72, 0x57, 0x55, 0x93, 0xcd, 0x5a, 0xbc, 0xa9, 0x2d, 0x9a, 0x0e, 0x69, 0xbb, 0xf5, 0xe0, + 0xdf, 0x10, 0xa6, 0x2d, 0xb5, 0x5c, 0xe6, 0xb8, 0xac, 0xee, 0x30, 0xbb, 0xbe, 0x7f, 0xcb, 0xff, + 0x2f, 0xda, 0xb8, 0x18, 0x6e, 0x18, 0xc1, 0xaa, 0x1e, 0x2e, 0xa2, 0xad, 0x82, 0xed, 0xda, 0x6e, + 0x68, 0xf7, 0x9f, 0x22, 0xeb, 0xb2, 0x80, 0x4d, 0xc7, 0xa4, 0xa6, 0x13, 0x1f, 0x2b, 0x8b, 0x00, + 0x5e, 0xd3, 0xd8, 0xc5, 0x6e, 0x88, 0xa8, 0xfc, 0xa6, 0xc0, 0xd9, 0x06, 0xb3, 0x3f, 0xed, 0x58, + 0x26, 0xc7, 0x87, 0xc1, 0x59, 0xf5, 0x0e, 0xe4, 0x4c, 0x8f, 0xef, 0xb8, 0x94, 0xf0, 0x6e, 0x51, + 0x29, 0x2b, 0xd5, 0xdc, 0x46, 0xf1, 0xf7, 0x5f, 0x6e, 0x14, 0x22, 0x46, 0x77, 0x2d, 0x8b, 0x22, + 0x63, 0x5b, 0xdc, 0xf7, 0xab, 0xf7, 0xa0, 0xea, 0x3b, 0x90, 0x09, 0xa3, 0x17, 0x53, 0x65, 0xa5, + 0xba, 0xb0, 0xa6, 0xd5, 0x46, 0x05, 0xa9, 0x85, 0x31, 0x36, 0x72, 0x2f, 0xfe, 0x5c, 0x9e, 0x79, + 0x7e, 0x72, 0xb8, 0xaa, 0xe8, 0xd1, 0xa1, 0xf5, 0xb7, 0xbe, 0x3d, 0x39, 0x5c, 0xed, 0xb9, 0xfb, + 0xee, 0xe4, 0x70, 0xf5, 0x5a, 0x8f, 0xff, 0x41, 0xef, 0x06, 0x43, 0x7c, 0x2b, 0x17, 0x61, 0x69, + 0xc8, 0xa4, 0x23, 0xeb, 0xb8, 0x6d, 0x86, 0x95, 0x77, 0xa1, 0xd0, 0x60, 0xb6, 0x8e, 0x36, 0x61, + 0x1c, 0xe9, 0x63, 0x73, 0x8f, 0x58, 0x26, 0x77, 0xa9, 0x5a, 0x84, 0x6c, 0x8b, 0xa2, 0xff, 0x18, + 0x5e, 0x50, 0x8f, 0x97, 0xeb, 0x79, 0x9f, 0x45, 0xbc, 0xaa, 0xbc, 0x0d, 0x97, 0x45, 0xe7, 0x63, + 0xff, 0x72, 0x3f, 0x95, 0xf7, 0xe0, 0x42, 0x83, 0xd9, 0xf7, 0xf0, 0x9f, 0xc7, 0x5e, 0x87, 0x92, + 0xd8, 0xc3, 0x14, 0xd1, 0x9f, 0x85, 0xaf, 0x75, 0x0b, 0xdb, 0xd6, 0x66, 0x24, 0x9b, 0x1c, 0xed, + 0xef, 0x38, 0xc8, 0x98, 0x69, 0x63, 0xf0, 0xe6, 0x72, 0x7a, 0xbc, 0x54, 0x5f, 0x85, 0xb3, 0xbb, + 0xd8, 0x35, 0x02, 0x07, 0x06, 0x69, 0x5b, 0x78, 0x50, 0x4c, 0x97, 0x95, 0xea, 0xac, 0x7e, 0x66, + 0x17, 0xbb, 0x5b, 0xbe, 0xf5, 0xbe, 0x6f, 0x54, 0xaf, 0x42, 0xbe, 0xb9, 0xe7, 0xb6, 0x76, 0x8d, + 0x1d, 0x24, 0xf6, 0x0e, 0x2f, 0xce, 0x06, 0xa0, 0x85, 0xc0, 0xf6, 0x71, 0x60, 0x1a, 0xba, 0xdc, + 0x0f, 0xa9, 0xe0, 0xa5, 0xf5, 0x13, 0x9c, 0x7c, 0x2d, 0x55, 0x83, 0xf9, 0x38, 0x0b, 0x22, 0xa6, + 0xc9, 0x5a, 0xbd, 0x0e, 0xaf, 0xc4, 0xcf, 0x23, 0x4c, 0xd9, 0x69, 0x98, 0xaa, 0x6b, 0x70, 0x9e, + 0x62, 0x0b, 0xc9, 0x3e, 0x5a, 0xc6, 0x00, 0x76, 0x2e, 0xc0, 0x9e, 0x8b, 0x37, 0x37, 0xfa, 0xce, + 0x14, 0x21, 0xcb, 0xbc, 0x56, 0x0b, 0x19, 0x2b, 0x66, 0xca, 0x4a, 0x75, 0x5e, 0x8f, 0x97, 0xea, + 0x0a, 0x9c, 0x41, 0x4a, 0x5d, 0x6a, 0xc4, 0x12, 0x67, 0x03, 0xe2, 0xf9, 0xc0, 0xd8, 0x08, 0x6d, + 0x95, 0xef, 0x53, 0x70, 0xbe, 0xc1, 0xec, 0xf7, 0xfd, 0x7b, 0xe2, 0x27, 0x26, 0x47, 0xc6, 0x1f, + 0x7a, 0xcd, 0x4d, 0xec, 0x8e, 0x11, 0xe3, 0x0a, 0x40, 0xc7, 0x6b, 0xee, 0x91, 0x96, 0xff, 0x39, + 0x47, 0x72, 0xe4, 0x42, 0x8b, 0x7f, 0xb0, 0x0c, 0x0b, 0x2d, 0xd7, 0x71, 0x08, 0x77, 0xb0, 0xcd, + 0x59, 0x31, 0x5d, 0x4e, 0x57, 0x73, 0x7a, 0xbf, 0x49, 0xbd, 0x09, 0x85, 0xb6, 0xe7, 0x34, 0x91, + 0x1a, 0xee, 0xb6, 0xb1, 0x1f, 0x67, 0x17, 0x8b, 0x24, 0x51, 0xc3, 0xbd, 0x07, 0xdb, 0x49, 0xde, + 0x31, 0xf5, 0x33, 0x28, 0x60, 0xbb, 0x45, 0xbb, 0x1d, 0x8e, 0x96, 0x91, 0x24, 0x06, 0x2b, 0xce, + 0x95, 0xd3, 0xd5, 0x85, 0xb5, 0xeb, 0xa2, 0xef, 0xfd, 0x83, 0x18, 0xbf, 0x19, 0x25, 0x8c, 0xae, + 0xe2, 0xb0, 0x89, 0x0d, 0x25, 0xc7, 0x32, 0x5c, 0x11, 0x8a, 0x91, 0x7c, 0xd6, 0x3f, 0x86, 0xd9, + 0xf3, 0x60, 0x1f, 0x29, 0x25, 0xd6, 0xff, 0x82, 0x5d, 0x85, 0x65, 0x89, 0x1c, 0x89, 0x64, 0x5f, + 0x80, 0x96, 0x68, 0x7a, 0x37, 0xac, 0xb1, 0x5f, 0xa1, 0x15, 0xd5, 0x72, 0xf5, 0x02, 0x64, 0xb8, + 0x49, 0x6d, 0xe4, 0x91, 0x66, 0xd1, 0xaa, 0x5f, 0xcc, 0xd4, 0xb8, 0x5a, 0x75, 0x0d, 0x2a, 0x72, + 0xef, 0x09, 0x87, 0xa7, 0x4a, 0x40, 0x22, 0xac, 0xd4, 0xd3, 0x93, 0x58, 0x81, 0x33, 0x84, 0x19, + 0x66, 0x82, 0x0f, 0xa8, 0xcc, 0xeb, 0x79, 0xc2, 0x7a, 0x3e, 0xfa, 0x99, 0xa6, 0x27, 0x33, 0x95, + 0x50, 0x18, 0x52, 0xeb, 0x1e, 0xee, 0xe1, 0xbf, 0xa7, 0x96, 0xc4, 0x7b, 0xc2, 0xe1, 0x59, 0x0a, + 0x8a, 0x7e, 0x89, 0xf4, 0x9a, 0x0e, 0xe1, 0x1f, 0x61, 0x1b, 0xa9, 0xb9, 0x17, 0x27, 0xc0, 0x98, + 0x2c, 0x5f, 0x82, 0x2c, 0xb1, 0x0c, 0xde, 0xed, 0xc4, 0x25, 0x32, 0x43, 0xac, 0x47, 0xdd, 0x0e, + 0xaa, 0x17, 0x61, 0x9e, 0x58, 0x7e, 0xda, 0x7a, 0x18, 0x4b, 0x44, 0xac, 0xc7, 0xfe, 0x52, 0xbd, + 0x04, 0xb9, 0x24, 0x39, 0x83, 0x6c, 0x0e, 0x0b, 0x6b, 0x18, 0x4a, 0xd0, 0x03, 0xe6, 0x44, 0x3d, + 0xe0, 0x06, 0xa8, 0x49, 0xd9, 0xe4, 0xc4, 0x41, 0xc6, 0x4d, 0xa7, 0x13, 0x54, 0xc3, 0x59, 0x7d, + 0x31, 0xde, 0x79, 0x14, 0x6f, 0xc8, 0xab, 0x6c, 0x56, 0x5a, 0x65, 0x87, 0x64, 0x7c, 0x9e, 0x82, + 0xb2, 0x4c, 0xa0, 0x29, 0x9a, 0xc9, 0x7f, 0x26, 0x94, 0xf4, 0xe6, 0x99, 0xa9, 0xfa, 0x4b, 0x76, + 0x42, 0x7f, 0x99, 0x17, 0xf4, 0x97, 0x5f, 0x53, 0x41, 0x42, 0x87, 0x52, 0xf5, 0x57, 0x98, 0x49, + 0xa3, 0x81, 0xe6, 0x6b, 0x81, 0x6d, 0xee, 0x8f, 0x82, 0x51, 0xc7, 0x8d, 0xd7, 0xfe, 0x0b, 0x1f, + 0x28, 0x6e, 0xa1, 0x2a, 0xa1, 0x62, 0x8b, 0x38, 0x12, 0x44, 0x20, 0xcf, 0xec, 0xf4, 0x79, 0x34, + 0x77, 0xea, 0x3c, 0x1a, 0xa3, 0xe6, 0x65, 0xc8, 0x51, 0xfc, 0xd2, 0x43, 0x7f, 0xac, 0x8a, 0xfa, + 0x71, 0xcf, 0x20, 0xfc, 0x58, 0x25, 0xca, 0xc5, 0x69, 0xb6, 0xf6, 0x33, 0x40, 0xba, 0xc1, 0x6c, + 0xf5, 0x09, 0xe4, 0x07, 0x66, 0xe9, 0x15, 0x51, 0x89, 0x1f, 0x9a, 0x56, 0xb5, 0xd7, 0xa7, 0x00, + 0x25, 0x09, 0xed, 0xc2, 0xe2, 0xe8, 0x4c, 0x59, 0x95, 0x78, 0x18, 0x41, 0x6a, 0x37, 0xa7, 0x45, + 0x26, 0x01, 0x3d, 0x38, 0x27, 0x1a, 0x63, 0x57, 0x25, 0x8e, 0x04, 0x58, 0x6d, 0x6d, 0x7a, 0x6c, + 0x12, 0xf6, 0x09, 0xe4, 0x07, 0xc6, 0x57, 0x99, 0x92, 0xfd, 0x20, 0xa9, 0x92, 0xc2, 0x39, 0x93, + 0x82, 0x2a, 0x18, 0xb8, 0x5e, 0x93, 0xb8, 0x18, 0x85, 0x6a, 0xb7, 0xa6, 0x86, 0x26, 0x31, 0x0f, + 0xa0, 0x20, 0x9c, 0x5a, 0x64, 0xc4, 0x45, 0x60, 0xed, 0xf6, 0x29, 0xc0, 0x49, 0xe4, 0xa7, 0x0a, + 0x2c, 0xc9, 0xda, 0x7f, 0x6d, 0xec, 0x45, 0x46, 0xf0, 0xda, 0x9d, 0xd3, 0xe1, 0x07, 0x38, 0xc8, + 0xba, 0x7f, 0x6d, 0xec, 0x47, 0x30, 0x3d, 0x87, 0x09, 0xad, 0x3d, 0xe0, 0x20, 0x6b, 0xec, 0x35, + 0x69, 0x9e, 0x0a, 0xf1, 0x52, 0x0e, 0x13, 0x5a, 0xbb, 0xfa, 0x35, 0x9c, 0x17, 0xb7, 0xf5, 0x37, + 0x64, 0xf9, 0x2b, 0x42, 0x6b, 0x6f, 0x9e, 0x06, 0x3d, 0x20, 0x80, 0xac, 0x11, 0xd4, 0xc6, 0x7a, + 0x1c, 0xc1, 0x4b, 0x05, 0x98, 0x50, 0x2e, 0xb5, 0xb9, 0x6f, 0xfc, 0x3f, 0xfd, 0x37, 0xee, 0xbf, + 0x38, 0x2a, 0x29, 0x2f, 0x8f, 0x4a, 0xca, 0x5f, 0x47, 0x25, 0xe5, 0xa7, 0xe3, 0xd2, 0xcc, 0xcb, + 0xe3, 0xd2, 0xcc, 0x1f, 0xc7, 0xa5, 0x99, 0xcf, 0xeb, 0x36, 0xe1, 0x3b, 0x5e, 0xb3, 0xd6, 0x72, + 0x9d, 0xfa, 0x87, 0x26, 0xa1, 0x41, 0x65, 0xaf, 0x0b, 0x7f, 0x0e, 0xf0, 0x3b, 0x38, 0x6b, 0x66, + 0x82, 0xdf, 0x33, 0x6e, 0xff, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x2b, 0x7b, 0x10, 0xa0, 0xa2, 0x11, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1448,9 +1449,9 @@ type MsgClient interface { // DeleteAuthorizedAddress defines an operation to revoke the // authorization of a previously authorized address DeleteAuthorizedAddress(ctx context.Context, in *MsgDeleteAuthorizedAddress, opts ...grpc.CallOption) (*MsgDeleteAuthorizedAddressResponse, error) - // CreateGeneralKeyShare defines an operation to submit a + // SubmitGeneralKeyShare defines an operation to submit a // general keyshare from a registered validator - CreateGeneralKeyShare(ctx context.Context, in *MsgCreateGeneralKeyShare, opts ...grpc.CallOption) (*MsgCreateGeneralKeyShareResponse, error) + SubmitGeneralKeyShare(ctx context.Context, in *MsgSubmitGeneralKeyShare, opts ...grpc.CallOption) (*MsgSubmitGeneralKeyShareResponse, error) // SubmitEncryptedKeyshare defines an operation to submit // an encrypted keyshare from a registered validator SubmitEncryptedKeyshare(ctx context.Context, in *MsgSubmitEncryptedKeyshare, opts ...grpc.CallOption) (*MsgSubmitEncryptedKeyshareResponse, error) @@ -1545,9 +1546,9 @@ func (c *msgClient) DeleteAuthorizedAddress(ctx context.Context, in *MsgDeleteAu return out, nil } -func (c *msgClient) CreateGeneralKeyShare(ctx context.Context, in *MsgCreateGeneralKeyShare, opts ...grpc.CallOption) (*MsgCreateGeneralKeyShareResponse, error) { - out := new(MsgCreateGeneralKeyShareResponse) - err := c.cc.Invoke(ctx, "/fairyring.keyshare.Msg/CreateGeneralKeyShare", in, out, opts...) +func (c *msgClient) SubmitGeneralKeyShare(ctx context.Context, in *MsgSubmitGeneralKeyShare, opts ...grpc.CallOption) (*MsgSubmitGeneralKeyShareResponse, error) { + out := new(MsgSubmitGeneralKeyShareResponse) + err := c.cc.Invoke(ctx, "/fairyring.keyshare.Msg/SubmitGeneralKeyShare", in, out, opts...) if err != nil { return nil, err } @@ -1591,9 +1592,9 @@ type MsgServer interface { // DeleteAuthorizedAddress defines an operation to revoke the // authorization of a previously authorized address DeleteAuthorizedAddress(context.Context, *MsgDeleteAuthorizedAddress) (*MsgDeleteAuthorizedAddressResponse, error) - // CreateGeneralKeyShare defines an operation to submit a + // SubmitGeneralKeyShare defines an operation to submit a // general keyshare from a registered validator - CreateGeneralKeyShare(context.Context, *MsgCreateGeneralKeyShare) (*MsgCreateGeneralKeyShareResponse, error) + SubmitGeneralKeyShare(context.Context, *MsgSubmitGeneralKeyShare) (*MsgSubmitGeneralKeyShareResponse, error) // SubmitEncryptedKeyshare defines an operation to submit // an encrypted keyshare from a registered validator SubmitEncryptedKeyshare(context.Context, *MsgSubmitEncryptedKeyshare) (*MsgSubmitEncryptedKeyshareResponse, error) @@ -1630,8 +1631,8 @@ func (*UnimplementedMsgServer) UpdateAuthorizedAddress(ctx context.Context, req func (*UnimplementedMsgServer) DeleteAuthorizedAddress(ctx context.Context, req *MsgDeleteAuthorizedAddress) (*MsgDeleteAuthorizedAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteAuthorizedAddress not implemented") } -func (*UnimplementedMsgServer) CreateGeneralKeyShare(ctx context.Context, req *MsgCreateGeneralKeyShare) (*MsgCreateGeneralKeyShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateGeneralKeyShare not implemented") +func (*UnimplementedMsgServer) SubmitGeneralKeyShare(ctx context.Context, req *MsgSubmitGeneralKeyShare) (*MsgSubmitGeneralKeyShareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SubmitGeneralKeyShare not implemented") } func (*UnimplementedMsgServer) SubmitEncryptedKeyshare(ctx context.Context, req *MsgSubmitEncryptedKeyshare) (*MsgSubmitEncryptedKeyshareResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SubmitEncryptedKeyshare not implemented") @@ -1803,20 +1804,20 @@ func _Msg_DeleteAuthorizedAddress_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } -func _Msg_CreateGeneralKeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreateGeneralKeyShare) +func _Msg_SubmitGeneralKeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSubmitGeneralKeyShare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).CreateGeneralKeyShare(ctx, in) + return srv.(MsgServer).SubmitGeneralKeyShare(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.keyshare.Msg/CreateGeneralKeyShare", + FullMethod: "/fairyring.keyshare.Msg/SubmitGeneralKeyShare", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateGeneralKeyShare(ctx, req.(*MsgCreateGeneralKeyShare)) + return srv.(MsgServer).SubmitGeneralKeyShare(ctx, req.(*MsgSubmitGeneralKeyShare)) } return interceptor(ctx, in, info, handler) } @@ -1880,8 +1881,8 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ Handler: _Msg_DeleteAuthorizedAddress_Handler, }, { - MethodName: "CreateGeneralKeyShare", - Handler: _Msg_CreateGeneralKeyShare_Handler, + MethodName: "SubmitGeneralKeyShare", + Handler: _Msg_SubmitGeneralKeyShare_Handler, }, { MethodName: "SubmitEncryptedKeyshare", @@ -2557,7 +2558,7 @@ func (m *MsgDeleteAuthorizedAddressResponse) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } -func (m *MsgCreateGeneralKeyShare) Marshal() (dAtA []byte, err error) { +func (m *MsgSubmitGeneralKeyShare) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2567,12 +2568,12 @@ func (m *MsgCreateGeneralKeyShare) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgCreateGeneralKeyShare) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgSubmitGeneralKeyShare) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgCreateGeneralKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgSubmitGeneralKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2623,7 +2624,7 @@ func (m *MsgCreateGeneralKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *MsgCreateGeneralKeyShareResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgSubmitGeneralKeyShareResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2633,12 +2634,12 @@ func (m *MsgCreateGeneralKeyShareResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgCreateGeneralKeyShareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgSubmitGeneralKeyShareResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgCreateGeneralKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgSubmitGeneralKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3096,7 +3097,7 @@ func (m *MsgDeleteAuthorizedAddressResponse) Size() (n int) { return n } -func (m *MsgCreateGeneralKeyShare) Size() (n int) { +func (m *MsgSubmitGeneralKeyShare) Size() (n int) { if m == nil { return 0 } @@ -3130,7 +3131,7 @@ func (m *MsgCreateGeneralKeyShare) Size() (n int) { return n } -func (m *MsgCreateGeneralKeyShareResponse) Size() (n int) { +func (m *MsgSubmitGeneralKeyShareResponse) Size() (n int) { if m == nil { return 0 } @@ -5095,7 +5096,7 @@ func (m *MsgDeleteAuthorizedAddressResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCreateGeneralKeyShare) Unmarshal(dAtA []byte) error { +func (m *MsgSubmitGeneralKeyShare) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5118,10 +5119,10 @@ func (m *MsgCreateGeneralKeyShare) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCreateGeneralKeyShare: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSubmitGeneralKeyShare: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateGeneralKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSubmitGeneralKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5330,7 +5331,7 @@ func (m *MsgCreateGeneralKeyShare) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCreateGeneralKeyShareResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSubmitGeneralKeyShareResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5353,10 +5354,10 @@ func (m *MsgCreateGeneralKeyShareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCreateGeneralKeyShareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSubmitGeneralKeyShareResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateGeneralKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSubmitGeneralKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/pep/types/aggregated_key_share.pb.go b/x/pep/types/decryption_key.pb.go similarity index 54% rename from x/pep/types/aggregated_key_share.pb.go rename to x/pep/types/decryption_key.pb.go index b4da6067..11a535f7 100644 --- a/x/pep/types/aggregated_key_share.pb.go +++ b/x/pep/types/decryption_key.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fairyring/pep/aggregated_key_share.proto +// source: fairyring/pep/decryption_key.proto package types @@ -22,26 +22,26 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// AggregatedKeyShare defines the structure to store -// the aggregated keyshare of a particular identity -type AggregatedKeyShare struct { +// DecryptionKey defines the structure to store +// the decryption key of a particular identity +type DecryptionKey struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"` } -func (m *AggregatedKeyShare) Reset() { *m = AggregatedKeyShare{} } -func (m *AggregatedKeyShare) String() string { return proto.CompactTextString(m) } -func (*AggregatedKeyShare) ProtoMessage() {} -func (*AggregatedKeyShare) Descriptor() ([]byte, []int) { - return fileDescriptor_95dc3bd78b9184ad, []int{0} +func (m *DecryptionKey) Reset() { *m = DecryptionKey{} } +func (m *DecryptionKey) String() string { return proto.CompactTextString(m) } +func (*DecryptionKey) ProtoMessage() {} +func (*DecryptionKey) Descriptor() ([]byte, []int) { + return fileDescriptor_90ea019a7c804965, []int{0} } -func (m *AggregatedKeyShare) XXX_Unmarshal(b []byte) error { +func (m *DecryptionKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *AggregatedKeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *DecryptionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_AggregatedKeyShare.Marshal(b, m, deterministic) + return xxx_messageInfo_DecryptionKey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -51,33 +51,33 @@ func (m *AggregatedKeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *AggregatedKeyShare) XXX_Merge(src proto.Message) { - xxx_messageInfo_AggregatedKeyShare.Merge(m, src) +func (m *DecryptionKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_DecryptionKey.Merge(m, src) } -func (m *AggregatedKeyShare) XXX_Size() int { +func (m *DecryptionKey) XXX_Size() int { return m.Size() } -func (m *AggregatedKeyShare) XXX_DiscardUnknown() { - xxx_messageInfo_AggregatedKeyShare.DiscardUnknown(m) +func (m *DecryptionKey) XXX_DiscardUnknown() { + xxx_messageInfo_DecryptionKey.DiscardUnknown(m) } -var xxx_messageInfo_AggregatedKeyShare proto.InternalMessageInfo +var xxx_messageInfo_DecryptionKey proto.InternalMessageInfo -func (m *AggregatedKeyShare) GetHeight() uint64 { +func (m *DecryptionKey) GetHeight() uint64 { if m != nil { return m.Height } return 0 } -func (m *AggregatedKeyShare) GetData() string { +func (m *DecryptionKey) GetData() string { if m != nil { return m.Data } return "" } -func (m *AggregatedKeyShare) GetCreator() string { +func (m *DecryptionKey) GetCreator() string { if m != nil { return m.Creator } @@ -85,31 +85,31 @@ func (m *AggregatedKeyShare) GetCreator() string { } func init() { - proto.RegisterType((*AggregatedKeyShare)(nil), "fairyring.pep.AggregatedKeyShare") + proto.RegisterType((*DecryptionKey)(nil), "fairyring.pep.DecryptionKey") } func init() { - proto.RegisterFile("fairyring/pep/aggregated_key_share.proto", fileDescriptor_95dc3bd78b9184ad) + proto.RegisterFile("fairyring/pep/decryption_key.proto", fileDescriptor_90ea019a7c804965) } -var fileDescriptor_95dc3bd78b9184ad = []byte{ - // 205 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x48, 0x4b, 0xcc, 0x2c, - 0xaa, 0x2c, 0xca, 0xcc, 0x4b, 0xd7, 0x2f, 0x48, 0x2d, 0xd0, 0x4f, 0x4c, 0x4f, 0x2f, 0x4a, 0x4d, - 0x4f, 0x2c, 0x49, 0x4d, 0x89, 0xcf, 0x4e, 0xad, 0x8c, 0x2f, 0xce, 0x48, 0x2c, 0x4a, 0xd5, 0x2b, - 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x85, 0xab, 0xd4, 0x2b, 0x48, 0x2d, 0x50, 0x8a, 0xe2, 0x12, - 0x72, 0x84, 0x2b, 0xf6, 0x4e, 0xad, 0x0c, 0x06, 0x29, 0x15, 0x12, 0xe3, 0x62, 0xcb, 0x48, 0xcd, - 0x4c, 0xcf, 0x28, 0x91, 0x60, 0x54, 0x60, 0xd4, 0x60, 0x09, 0x82, 0xf2, 0x84, 0x84, 0xb8, 0x58, - 0x52, 0x12, 0x4b, 0x12, 0x25, 0x98, 0x14, 0x18, 0x35, 0x38, 0x83, 0xc0, 0x6c, 0x21, 0x09, 0x2e, - 0xf6, 0xe4, 0xa2, 0xd4, 0xc4, 0x92, 0xfc, 0x22, 0x09, 0x66, 0xb0, 0x30, 0x8c, 0xeb, 0xe4, 0x72, - 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, - 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, 0x51, 0x5a, 0xe9, 0x99, 0x25, 0x19, 0xa5, - 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x6e, 0x89, 0x99, 0x45, 0x49, 0x39, 0xf9, 0xc9, 0xd9, 0xfa, - 0x08, 0x3f, 0x54, 0x80, 0x7d, 0x51, 0x52, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x76, 0xb7, 0x31, - 0x20, 0x00, 0x00, 0xff, 0xff, 0x59, 0xb5, 0xb0, 0x87, 0xe3, 0x00, 0x00, 0x00, +var fileDescriptor_90ea019a7c804965 = []byte{ + // 196 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4a, 0x4b, 0xcc, 0x2c, + 0xaa, 0x2c, 0xca, 0xcc, 0x4b, 0xd7, 0x2f, 0x48, 0x2d, 0xd0, 0x4f, 0x49, 0x4d, 0x2e, 0xaa, 0x2c, + 0x28, 0xc9, 0xcc, 0xcf, 0x8b, 0xcf, 0x4e, 0xad, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, + 0x85, 0xab, 0xd1, 0x2b, 0x48, 0x2d, 0x50, 0x0a, 0xe5, 0xe2, 0x75, 0x81, 0x2b, 0xf3, 0x4e, 0xad, + 0x14, 0x12, 0xe3, 0x62, 0xcb, 0x48, 0xcd, 0x4c, 0xcf, 0x28, 0x91, 0x60, 0x54, 0x60, 0xd4, 0x60, + 0x09, 0x82, 0xf2, 0x84, 0x84, 0xb8, 0x58, 0x52, 0x12, 0x4b, 0x12, 0x25, 0x98, 0x14, 0x18, 0x35, + 0x38, 0x83, 0xc0, 0x6c, 0x21, 0x09, 0x2e, 0xf6, 0xe4, 0xa2, 0xd4, 0xc4, 0x92, 0xfc, 0x22, 0x09, + 0x66, 0xb0, 0x30, 0x8c, 0xeb, 0xe4, 0x72, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, + 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c, + 0x51, 0x5a, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x6e, 0x89, 0x99, + 0x45, 0x49, 0x39, 0xf9, 0xc9, 0xd9, 0xfa, 0x08, 0x87, 0x57, 0x80, 0x9d, 0x5e, 0x52, 0x59, 0x90, + 0x5a, 0x9c, 0xc4, 0x06, 0x76, 0xb2, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xf1, 0x92, 0x1a, 0x6d, + 0xd8, 0x00, 0x00, 0x00, } -func (m *AggregatedKeyShare) Marshal() (dAtA []byte, err error) { +func (m *DecryptionKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -119,12 +119,12 @@ func (m *AggregatedKeyShare) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *AggregatedKeyShare) MarshalTo(dAtA []byte) (int, error) { +func (m *DecryptionKey) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *AggregatedKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *DecryptionKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -132,27 +132,27 @@ func (m *AggregatedKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Creator) > 0 { i -= len(m.Creator) copy(dAtA[i:], m.Creator) - i = encodeVarintAggregatedKeyShare(dAtA, i, uint64(len(m.Creator))) + i = encodeVarintDecryptionKey(dAtA, i, uint64(len(m.Creator))) i-- dAtA[i] = 0x1a } if len(m.Data) > 0 { i -= len(m.Data) copy(dAtA[i:], m.Data) - i = encodeVarintAggregatedKeyShare(dAtA, i, uint64(len(m.Data))) + i = encodeVarintDecryptionKey(dAtA, i, uint64(len(m.Data))) i-- dAtA[i] = 0x12 } if m.Height != 0 { - i = encodeVarintAggregatedKeyShare(dAtA, i, uint64(m.Height)) + i = encodeVarintDecryptionKey(dAtA, i, uint64(m.Height)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func encodeVarintAggregatedKeyShare(dAtA []byte, offset int, v uint64) int { - offset -= sovAggregatedKeyShare(v) +func encodeVarintDecryptionKey(dAtA []byte, offset int, v uint64) int { + offset -= sovDecryptionKey(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -162,33 +162,33 @@ func encodeVarintAggregatedKeyShare(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *AggregatedKeyShare) Size() (n int) { +func (m *DecryptionKey) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Height != 0 { - n += 1 + sovAggregatedKeyShare(uint64(m.Height)) + n += 1 + sovDecryptionKey(uint64(m.Height)) } l = len(m.Data) if l > 0 { - n += 1 + l + sovAggregatedKeyShare(uint64(l)) + n += 1 + l + sovDecryptionKey(uint64(l)) } l = len(m.Creator) if l > 0 { - n += 1 + l + sovAggregatedKeyShare(uint64(l)) + n += 1 + l + sovDecryptionKey(uint64(l)) } return n } -func sovAggregatedKeyShare(x uint64) (n int) { +func sovDecryptionKey(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozAggregatedKeyShare(x uint64) (n int) { - return sovAggregatedKeyShare(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozDecryptionKey(x uint64) (n int) { + return sovDecryptionKey(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *AggregatedKeyShare) Unmarshal(dAtA []byte) error { +func (m *DecryptionKey) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -196,7 +196,7 @@ func (m *AggregatedKeyShare) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowAggregatedKeyShare + return ErrIntOverflowDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -211,10 +211,10 @@ func (m *AggregatedKeyShare) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AggregatedKeyShare: wiretype end group for non-group") + return fmt.Errorf("proto: DecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AggregatedKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -224,7 +224,7 @@ func (m *AggregatedKeyShare) Unmarshal(dAtA []byte) error { m.Height = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowAggregatedKeyShare + return ErrIntOverflowDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -243,7 +243,7 @@ func (m *AggregatedKeyShare) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowAggregatedKeyShare + return ErrIntOverflowDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -257,11 +257,11 @@ func (m *AggregatedKeyShare) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthAggregatedKeyShare + return ErrInvalidLengthDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthAggregatedKeyShare + return ErrInvalidLengthDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -275,7 +275,7 @@ func (m *AggregatedKeyShare) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowAggregatedKeyShare + return ErrIntOverflowDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -289,11 +289,11 @@ func (m *AggregatedKeyShare) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthAggregatedKeyShare + return ErrInvalidLengthDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthAggregatedKeyShare + return ErrInvalidLengthDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -302,12 +302,12 @@ func (m *AggregatedKeyShare) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAggregatedKeyShare(dAtA[iNdEx:]) + skippy, err := skipDecryptionKey(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAggregatedKeyShare + return ErrInvalidLengthDecryptionKey } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -321,7 +321,7 @@ func (m *AggregatedKeyShare) Unmarshal(dAtA []byte) error { } return nil } -func skipAggregatedKeyShare(dAtA []byte) (n int, err error) { +func skipDecryptionKey(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -329,7 +329,7 @@ func skipAggregatedKeyShare(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowAggregatedKeyShare + return 0, ErrIntOverflowDecryptionKey } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -346,7 +346,7 @@ func skipAggregatedKeyShare(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowAggregatedKeyShare + return 0, ErrIntOverflowDecryptionKey } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -362,7 +362,7 @@ func skipAggregatedKeyShare(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowAggregatedKeyShare + return 0, ErrIntOverflowDecryptionKey } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -375,14 +375,14 @@ func skipAggregatedKeyShare(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthAggregatedKeyShare + return 0, ErrInvalidLengthDecryptionKey } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupAggregatedKeyShare + return 0, ErrUnexpectedEndOfGroupDecryptionKey } depth-- case 5: @@ -391,7 +391,7 @@ func skipAggregatedKeyShare(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthAggregatedKeyShare + return 0, ErrInvalidLengthDecryptionKey } if depth == 0 { return iNdEx, nil @@ -401,7 +401,7 @@ func skipAggregatedKeyShare(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthAggregatedKeyShare = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowAggregatedKeyShare = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupAggregatedKeyShare = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthDecryptionKey = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDecryptionKey = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDecryptionKey = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/pep/types/encrypted_tx.pb.go b/x/pep/types/encrypted_tx.pb.go index cc98a600..c7b9ecf8 100644 --- a/x/pep/types/encrypted_tx.pb.go +++ b/x/pep/types/encrypted_tx.pb.go @@ -120,7 +120,7 @@ func (m *EncryptedTx) GetExpired() bool { // EncryptedTxArray defines a list of EncryptedTx type EncryptedTxArray struct { - EncryptedTx []EncryptedTx `protobuf:"bytes,1,rep,name=encrypted_tx,json=encryptedTx,proto3" json:"encrypted_tx"` + EncryptedTxs []EncryptedTx `protobuf:"bytes,1,rep,name=encrypted_txs,json=encryptedTxs,proto3" json:"encrypted_txs"` } func (m *EncryptedTxArray) Reset() { *m = EncryptedTxArray{} } @@ -156,9 +156,9 @@ func (m *EncryptedTxArray) XXX_DiscardUnknown() { var xxx_messageInfo_EncryptedTxArray proto.InternalMessageInfo -func (m *EncryptedTxArray) GetEncryptedTx() []EncryptedTx { +func (m *EncryptedTxArray) GetEncryptedTxs() []EncryptedTx { if m != nil { - return m.EncryptedTx + return m.EncryptedTxs } return nil } @@ -243,7 +243,7 @@ func (m *GeneralEncryptedTx) GetChargedGas() *types.Coin { // GeneralEncryptedTxArray defines a list of GeneralEncryptedTx type GeneralEncryptedTxArray struct { - EncryptedTx []GeneralEncryptedTx `protobuf:"bytes,1,rep,name=encrypted_tx,json=encryptedTx,proto3" json:"encrypted_tx"` + EncryptedTxs []GeneralEncryptedTx `protobuf:"bytes,1,rep,name=encrypted_txs,json=encryptedTxs,proto3" json:"encrypted_txs"` } func (m *GeneralEncryptedTxArray) Reset() { *m = GeneralEncryptedTxArray{} } @@ -279,37 +279,37 @@ func (m *GeneralEncryptedTxArray) XXX_DiscardUnknown() { var xxx_messageInfo_GeneralEncryptedTxArray proto.InternalMessageInfo -func (m *GeneralEncryptedTxArray) GetEncryptedTx() []GeneralEncryptedTx { +func (m *GeneralEncryptedTxArray) GetEncryptedTxs() []GeneralEncryptedTx { if m != nil { - return m.EncryptedTx + return m.EncryptedTxs } return nil } -// IdentityExecutionQueue defines the structure to queue up -// identities that have aggregated keyshares available and +// IdentityExecutionEntry defines the structure to queue up +// identities that have decryption keys available and // are ready to execute any associated contracts or encrypted transactions -type IdentityExecutionQueue struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` - Pubkey string `protobuf:"bytes,4,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - TxList *GeneralEncryptedTxArray `protobuf:"bytes,5,opt,name=tx_list,json=txList,proto3" json:"tx_list,omitempty"` - AggrKeyshare string `protobuf:"bytes,6,opt,name=aggr_keyshare,json=aggrKeyshare,proto3" json:"aggr_keyshare,omitempty"` -} - -func (m *IdentityExecutionQueue) Reset() { *m = IdentityExecutionQueue{} } -func (m *IdentityExecutionQueue) String() string { return proto.CompactTextString(m) } -func (*IdentityExecutionQueue) ProtoMessage() {} -func (*IdentityExecutionQueue) Descriptor() ([]byte, []int) { +type IdentityExecutionEntry struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + Identity string `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` + Pubkey string `protobuf:"bytes,4,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + TxList *GeneralEncryptedTxArray `protobuf:"bytes,5,opt,name=tx_list,json=txList,proto3" json:"tx_list,omitempty"` + DecryptionKey string `protobuf:"bytes,6,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key,omitempty"` +} + +func (m *IdentityExecutionEntry) Reset() { *m = IdentityExecutionEntry{} } +func (m *IdentityExecutionEntry) String() string { return proto.CompactTextString(m) } +func (*IdentityExecutionEntry) ProtoMessage() {} +func (*IdentityExecutionEntry) Descriptor() ([]byte, []int) { return fileDescriptor_7c124d687cde8326, []int{4} } -func (m *IdentityExecutionQueue) XXX_Unmarshal(b []byte) error { +func (m *IdentityExecutionEntry) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *IdentityExecutionQueue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *IdentityExecutionEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_IdentityExecutionQueue.Marshal(b, m, deterministic) + return xxx_messageInfo_IdentityExecutionEntry.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -319,56 +319,56 @@ func (m *IdentityExecutionQueue) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *IdentityExecutionQueue) XXX_Merge(src proto.Message) { - xxx_messageInfo_IdentityExecutionQueue.Merge(m, src) +func (m *IdentityExecutionEntry) XXX_Merge(src proto.Message) { + xxx_messageInfo_IdentityExecutionEntry.Merge(m, src) } -func (m *IdentityExecutionQueue) XXX_Size() int { +func (m *IdentityExecutionEntry) XXX_Size() int { return m.Size() } -func (m *IdentityExecutionQueue) XXX_DiscardUnknown() { - xxx_messageInfo_IdentityExecutionQueue.DiscardUnknown(m) +func (m *IdentityExecutionEntry) XXX_DiscardUnknown() { + xxx_messageInfo_IdentityExecutionEntry.DiscardUnknown(m) } -var xxx_messageInfo_IdentityExecutionQueue proto.InternalMessageInfo +var xxx_messageInfo_IdentityExecutionEntry proto.InternalMessageInfo -func (m *IdentityExecutionQueue) GetCreator() string { +func (m *IdentityExecutionEntry) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *IdentityExecutionQueue) GetRequestId() string { +func (m *IdentityExecutionEntry) GetRequestId() string { if m != nil { return m.RequestId } return "" } -func (m *IdentityExecutionQueue) GetIdentity() string { +func (m *IdentityExecutionEntry) GetIdentity() string { if m != nil { return m.Identity } return "" } -func (m *IdentityExecutionQueue) GetPubkey() string { +func (m *IdentityExecutionEntry) GetPubkey() string { if m != nil { return m.Pubkey } return "" } -func (m *IdentityExecutionQueue) GetTxList() *GeneralEncryptedTxArray { +func (m *IdentityExecutionEntry) GetTxList() *GeneralEncryptedTxArray { if m != nil { return m.TxList } return nil } -func (m *IdentityExecutionQueue) GetAggrKeyshare() string { +func (m *IdentityExecutionEntry) GetDecryptionKey() string { if m != nil { - return m.AggrKeyshare + return m.DecryptionKey } return "" } @@ -378,47 +378,47 @@ func init() { proto.RegisterType((*EncryptedTxArray)(nil), "fairyring.pep.EncryptedTxArray") proto.RegisterType((*GeneralEncryptedTx)(nil), "fairyring.pep.GeneralEncryptedTx") proto.RegisterType((*GeneralEncryptedTxArray)(nil), "fairyring.pep.GeneralEncryptedTxArray") - proto.RegisterType((*IdentityExecutionQueue)(nil), "fairyring.pep.IdentityExecutionQueue") + proto.RegisterType((*IdentityExecutionEntry)(nil), "fairyring.pep.IdentityExecutionEntry") } func init() { proto.RegisterFile("fairyring/pep/encrypted_tx.proto", fileDescriptor_7c124d687cde8326) } var fileDescriptor_7c124d687cde8326 = []byte{ - // 539 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x94, 0xc1, 0x6e, 0xd3, 0x30, - 0x18, 0xc7, 0xeb, 0xb5, 0x6b, 0x57, 0xb7, 0x93, 0x90, 0x35, 0x95, 0xac, 0x12, 0x21, 0x14, 0x09, - 0x55, 0x1c, 0x12, 0x6d, 0x9c, 0xe0, 0x82, 0xb6, 0x32, 0xc6, 0x80, 0x0b, 0x11, 0x12, 0x12, 0x97, - 0xc8, 0x49, 0x3e, 0x12, 0xab, 0x5d, 0x1c, 0x6c, 0x07, 0x25, 0x4f, 0xc0, 0x95, 0x47, 0xe1, 0x31, - 0x76, 0xdc, 0x91, 0x13, 0x42, 0xed, 0x91, 0x97, 0x40, 0x71, 0xd2, 0xae, 0xdd, 0x26, 0x71, 0xdc, - 0xcd, 0xff, 0xff, 0xf7, 0xd9, 0xfa, 0x7f, 0x3f, 0xd9, 0xc6, 0xd6, 0x17, 0xca, 0x44, 0x21, 0x58, - 0x12, 0x39, 0x29, 0xa4, 0x0e, 0x24, 0x81, 0x28, 0x52, 0x05, 0xa1, 0xa7, 0x72, 0x3b, 0x15, 0x5c, - 0x71, 0xb2, 0xbb, 0xea, 0xb0, 0x53, 0x48, 0x87, 0x7b, 0x11, 0x8f, 0xb8, 0xae, 0x38, 0xe5, 0xaa, - 0x6a, 0x1a, 0x9a, 0x01, 0x97, 0xe7, 0x5c, 0x3a, 0x3e, 0x95, 0xe0, 0x7c, 0x3b, 0xf0, 0x41, 0xd1, - 0x03, 0x27, 0xe0, 0x2c, 0xa9, 0xea, 0xa3, 0xef, 0x5b, 0xb8, 0x77, 0xb2, 0x3c, 0xfb, 0x63, 0x4e, - 0x1e, 0xe3, 0x5d, 0x45, 0x45, 0x04, 0xca, 0x8b, 0x81, 0x45, 0xb1, 0x32, 0x90, 0x85, 0xc6, 0x2d, - 0xb7, 0x5f, 0x99, 0x6f, 0xb4, 0x47, 0xf6, 0xf0, 0x36, 0x4b, 0x42, 0xc8, 0x8d, 0x2d, 0x5d, 0xac, - 0x04, 0x21, 0xb8, 0x15, 0x52, 0x45, 0x8d, 0xa6, 0x85, 0xc6, 0x5d, 0x57, 0xaf, 0x89, 0x81, 0x3b, - 0x81, 0x00, 0xaa, 0xb8, 0x30, 0x5a, 0xda, 0x5e, 0x4a, 0xf2, 0x02, 0xf7, 0x82, 0xb8, 0x3c, 0x34, - 0xf4, 0x22, 0x2a, 0x8d, 0x6d, 0x0b, 0x8d, 0x7b, 0x87, 0xfb, 0x76, 0x15, 0xd7, 0x2e, 0xe3, 0xda, - 0x75, 0x5c, 0x7b, 0xc2, 0x59, 0xe2, 0xe2, 0xba, 0xfb, 0x94, 0x4a, 0xf2, 0x1c, 0xef, 0xa7, 0x82, - 0x07, 0x20, 0x25, 0x84, 0x1e, 0x55, 0x5e, 0x10, 0x53, 0x96, 0x2c, 0x03, 0xb7, 0x75, 0xa6, 0xc1, - 0xaa, 0xe1, 0x48, 0x4d, 0xca, 0x72, 0x1d, 0xdd, 0xc0, 0x1d, 0xc8, 0x53, 0x26, 0x20, 0x34, 0x3a, - 0x16, 0x1a, 0xef, 0xb8, 0x4b, 0x39, 0xfa, 0x84, 0xef, 0xad, 0x81, 0x38, 0x12, 0x82, 0x16, 0x64, - 0x82, 0xfb, 0xeb, 0xe0, 0x0d, 0x64, 0x35, 0xc7, 0xbd, 0xc3, 0xa1, 0xbd, 0x41, 0xde, 0x5e, 0xdb, - 0x76, 0xdc, 0xba, 0xf8, 0xfd, 0xb0, 0xe1, 0xf6, 0xe0, 0xca, 0x1a, 0xfd, 0x44, 0x98, 0x9c, 0x42, - 0x02, 0x82, 0xce, 0xd6, 0x49, 0x0f, 0xf1, 0x0e, 0x0b, 0x21, 0x51, 0x4c, 0x15, 0x1a, 0x72, 0xd7, - 0x5d, 0xe9, 0xbb, 0x06, 0x3c, 0x02, 0x7c, 0xff, 0x66, 0xe2, 0x0a, 0xc9, 0xdb, 0x5b, 0x91, 0x3c, - 0xba, 0x86, 0xe4, 0xe6, 0xee, 0xdb, 0xc8, 0xfc, 0x45, 0x78, 0x70, 0x56, 0xcf, 0x7c, 0x92, 0x43, - 0x90, 0x29, 0xc6, 0x93, 0x0f, 0x19, 0x64, 0xb0, 0x3e, 0x17, 0xda, 0x9c, 0xeb, 0x01, 0xc6, 0x02, - 0xbe, 0x66, 0x20, 0x95, 0xc7, 0x42, 0x0d, 0xa8, 0xeb, 0x76, 0x6b, 0xe7, 0x2c, 0xdc, 0xc0, 0xda, - 0xbc, 0x86, 0x75, 0x80, 0xdb, 0x69, 0xe6, 0x4f, 0xa1, 0xa8, 0x59, 0xd5, 0x8a, 0xbc, 0xc4, 0x1d, - 0x95, 0x7b, 0x33, 0x26, 0x55, 0x8d, 0xe9, 0xc9, 0x7f, 0xc7, 0xd1, 0x30, 0xdc, 0xb6, 0xca, 0xdf, - 0x33, 0xa9, 0xca, 0x57, 0x43, 0xa3, 0x48, 0x78, 0x53, 0x28, 0x64, 0x4c, 0x05, 0xe8, 0x4b, 0xd8, - 0x75, 0xfb, 0xa5, 0xf9, 0xae, 0xf6, 0x8e, 0x5f, 0x5d, 0xcc, 0x4d, 0x74, 0x39, 0x37, 0xd1, 0x9f, - 0xb9, 0x89, 0x7e, 0x2c, 0xcc, 0xc6, 0xe5, 0xc2, 0x6c, 0xfc, 0x5a, 0x98, 0x8d, 0xcf, 0x4f, 0x23, - 0xa6, 0xe2, 0xcc, 0xb7, 0x03, 0x7e, 0xee, 0xbc, 0xa6, 0x4c, 0xf8, 0x33, 0x1e, 0x4c, 0x9d, 0xab, - 0x0f, 0x20, 0xd7, 0x5f, 0x80, 0x2a, 0x52, 0x90, 0x7e, 0x5b, 0xbf, 0xdb, 0x67, 0xff, 0x02, 0x00, - 0x00, 0xff, 0xff, 0xdf, 0x47, 0x5d, 0x37, 0x20, 0x04, 0x00, 0x00, + // 538 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x94, 0x4f, 0x6f, 0xd3, 0x30, + 0x18, 0xc6, 0xeb, 0xad, 0x6b, 0x57, 0x77, 0x45, 0xc8, 0x9a, 0x46, 0x56, 0x89, 0x10, 0x8a, 0x40, + 0x15, 0x87, 0x44, 0x1b, 0x27, 0xb8, 0xa0, 0x6d, 0x94, 0x31, 0xb1, 0x53, 0xc4, 0x05, 0x2e, 0x91, + 0x93, 0xbc, 0xa4, 0xd6, 0xba, 0x38, 0xd8, 0x6f, 0x51, 0xf2, 0x09, 0xb8, 0xf2, 0x51, 0xf8, 0x18, + 0x3b, 0xee, 0xc8, 0x09, 0xa1, 0xf6, 0xcc, 0x77, 0x40, 0x75, 0xd2, 0x7f, 0xdb, 0x24, 0x8e, 0xdc, + 0xfc, 0x3e, 0xcf, 0x6b, 0xfb, 0x79, 0x7f, 0x92, 0x4d, 0x9d, 0xcf, 0x5c, 0xa8, 0x42, 0x89, 0x34, + 0xf1, 0x32, 0xc8, 0x3c, 0x48, 0x23, 0x55, 0x64, 0x08, 0x71, 0x80, 0xb9, 0x9b, 0x29, 0x89, 0x92, + 0x75, 0x16, 0x1d, 0x6e, 0x06, 0x59, 0x77, 0x37, 0x91, 0x89, 0x34, 0x8e, 0x37, 0x5b, 0x95, 0x4d, + 0x5d, 0x3b, 0x92, 0xfa, 0x52, 0x6a, 0x2f, 0xe4, 0x1a, 0xbc, 0xaf, 0x07, 0x21, 0x20, 0x3f, 0xf0, + 0x22, 0x29, 0xd2, 0xd2, 0xef, 0x7d, 0xdb, 0xa0, 0xed, 0xc1, 0xfc, 0xec, 0x0f, 0x39, 0x7b, 0x42, + 0x3b, 0xc8, 0x55, 0x02, 0x18, 0x0c, 0x41, 0x24, 0x43, 0xb4, 0x88, 0x43, 0xfa, 0x75, 0x7f, 0xa7, + 0x14, 0xdf, 0x19, 0x8d, 0xed, 0xd2, 0x2d, 0x91, 0xc6, 0x90, 0x5b, 0x1b, 0xc6, 0x2c, 0x0b, 0xc6, + 0x68, 0x3d, 0xe6, 0xc8, 0xad, 0x4d, 0x87, 0xf4, 0x5b, 0xbe, 0x59, 0x33, 0x8b, 0x36, 0x23, 0x05, + 0x1c, 0xa5, 0xb2, 0xea, 0x46, 0x9e, 0x97, 0xec, 0x15, 0x6d, 0x47, 0xc3, 0xd9, 0xa1, 0x71, 0x90, + 0x70, 0x6d, 0x6d, 0x39, 0xa4, 0xdf, 0x3e, 0xdc, 0x77, 0xcb, 0xb8, 0xee, 0x2c, 0xae, 0x5b, 0xc5, + 0x75, 0x4f, 0xa4, 0x48, 0x7d, 0x5a, 0x75, 0x9f, 0x72, 0xcd, 0x5e, 0xd2, 0xfd, 0x4c, 0xc9, 0x08, + 0xb4, 0x86, 0x38, 0xe0, 0x18, 0x44, 0x43, 0x2e, 0xd2, 0x79, 0xe0, 0x86, 0xc9, 0xb4, 0xb7, 0x68, + 0x38, 0xc2, 0x93, 0x99, 0x5d, 0x45, 0xb7, 0x68, 0x13, 0xf2, 0x4c, 0x28, 0x88, 0xad, 0xa6, 0x43, + 0xfa, 0xdb, 0xfe, 0xbc, 0xec, 0x7d, 0xa4, 0xf7, 0x57, 0x40, 0x1c, 0x29, 0xc5, 0x0b, 0x36, 0xa0, + 0x9d, 0x55, 0xf0, 0xda, 0x22, 0xce, 0x66, 0xbf, 0x7d, 0xd8, 0x75, 0xd7, 0xd0, 0xbb, 0x2b, 0xfb, + 0x8e, 0xeb, 0x57, 0xbf, 0x1e, 0xd5, 0xfc, 0x1d, 0x58, 0x4a, 0xba, 0xf7, 0x83, 0x50, 0x76, 0x0a, + 0x29, 0x28, 0x3e, 0x5a, 0x65, 0xdd, 0xa5, 0xdb, 0x22, 0x86, 0x14, 0x05, 0x16, 0x06, 0x73, 0xcb, + 0x5f, 0xd4, 0xff, 0x1b, 0x71, 0x2f, 0xa1, 0x0f, 0x6e, 0x27, 0x2e, 0xa1, 0x9c, 0xdf, 0x0d, 0xe5, + 0xf1, 0x0d, 0x28, 0xb7, 0xb7, 0xdf, 0xc9, 0xe6, 0x0f, 0xa1, 0x7b, 0x67, 0xd5, 0xd4, 0x83, 0x1c, + 0xa2, 0x31, 0x0a, 0x99, 0x0e, 0x52, 0x54, 0xc5, 0xea, 0x64, 0x64, 0x7d, 0xb2, 0x87, 0x94, 0x2a, + 0xf8, 0x32, 0x06, 0x8d, 0x81, 0x88, 0x0d, 0xa2, 0x96, 0xdf, 0xaa, 0x94, 0xb3, 0x78, 0x0d, 0xec, + 0xe6, 0x0d, 0xb0, 0x7b, 0xb4, 0x91, 0x8d, 0xc3, 0x0b, 0x28, 0x2a, 0x5a, 0x55, 0xc5, 0x5e, 0xd3, + 0x26, 0xe6, 0xc1, 0x48, 0x68, 0xac, 0x40, 0x3d, 0xfb, 0xe7, 0x3c, 0x06, 0x87, 0xdf, 0xc0, 0xfc, + 0x5c, 0x68, 0x64, 0x4f, 0xe9, 0xbd, 0x18, 0x8c, 0x27, 0x64, 0x1a, 0xcc, 0x2e, 0x68, 0x98, 0x0b, + 0x3a, 0x4b, 0xf5, 0x3d, 0x14, 0xc7, 0x6f, 0xae, 0x26, 0x36, 0xb9, 0x9e, 0xd8, 0xe4, 0xf7, 0xc4, + 0x26, 0xdf, 0xa7, 0x76, 0xed, 0x7a, 0x6a, 0xd7, 0x7e, 0x4e, 0xed, 0xda, 0xa7, 0xe7, 0x89, 0xc0, + 0xe1, 0x38, 0x74, 0x23, 0x79, 0xe9, 0xbd, 0xe5, 0x42, 0x85, 0x23, 0x19, 0x5d, 0x78, 0xcb, 0x6f, + 0x20, 0x37, 0x1f, 0x01, 0x16, 0x19, 0xe8, 0xb0, 0x61, 0x5e, 0xef, 0x8b, 0xbf, 0x01, 0x00, 0x00, + 0xff, 0xff, 0x70, 0xf4, 0x1e, 0x65, 0x26, 0x04, 0x00, 0x00, } func (m *EncryptedTx) Marshal() (dAtA []byte, err error) { @@ -515,10 +515,10 @@ func (m *EncryptedTxArray) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.EncryptedTx) > 0 { - for iNdEx := len(m.EncryptedTx) - 1; iNdEx >= 0; iNdEx-- { + if len(m.EncryptedTxs) > 0 { + for iNdEx := len(m.EncryptedTxs) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.EncryptedTx[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.EncryptedTxs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -613,10 +613,10 @@ func (m *GeneralEncryptedTxArray) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l - if len(m.EncryptedTx) > 0 { - for iNdEx := len(m.EncryptedTx) - 1; iNdEx >= 0; iNdEx-- { + if len(m.EncryptedTxs) > 0 { + for iNdEx := len(m.EncryptedTxs) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.EncryptedTx[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.EncryptedTxs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -630,7 +630,7 @@ func (m *GeneralEncryptedTxArray) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *IdentityExecutionQueue) Marshal() (dAtA []byte, err error) { +func (m *IdentityExecutionEntry) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -640,20 +640,20 @@ func (m *IdentityExecutionQueue) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *IdentityExecutionQueue) MarshalTo(dAtA []byte) (int, error) { +func (m *IdentityExecutionEntry) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *IdentityExecutionQueue) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *IdentityExecutionEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.AggrKeyshare) > 0 { - i -= len(m.AggrKeyshare) - copy(dAtA[i:], m.AggrKeyshare) - i = encodeVarintEncryptedTx(dAtA, i, uint64(len(m.AggrKeyshare))) + if len(m.DecryptionKey) > 0 { + i -= len(m.DecryptionKey) + copy(dAtA[i:], m.DecryptionKey) + i = encodeVarintEncryptedTx(dAtA, i, uint64(len(m.DecryptionKey))) i-- dAtA[i] = 0x32 } @@ -750,8 +750,8 @@ func (m *EncryptedTxArray) Size() (n int) { } var l int _ = l - if len(m.EncryptedTx) > 0 { - for _, e := range m.EncryptedTx { + if len(m.EncryptedTxs) > 0 { + for _, e := range m.EncryptedTxs { l = e.Size() n += 1 + l + sovEncryptedTx(uint64(l)) } @@ -793,8 +793,8 @@ func (m *GeneralEncryptedTxArray) Size() (n int) { } var l int _ = l - if len(m.EncryptedTx) > 0 { - for _, e := range m.EncryptedTx { + if len(m.EncryptedTxs) > 0 { + for _, e := range m.EncryptedTxs { l = e.Size() n += 1 + l + sovEncryptedTx(uint64(l)) } @@ -802,7 +802,7 @@ func (m *GeneralEncryptedTxArray) Size() (n int) { return n } -func (m *IdentityExecutionQueue) Size() (n int) { +func (m *IdentityExecutionEntry) Size() (n int) { if m == nil { return 0 } @@ -828,7 +828,7 @@ func (m *IdentityExecutionQueue) Size() (n int) { l = m.TxList.Size() n += 1 + l + sovEncryptedTx(uint64(l)) } - l = len(m.AggrKeyshare) + l = len(m.DecryptionKey) if l > 0 { n += 1 + l + sovEncryptedTx(uint64(l)) } @@ -1099,7 +1099,7 @@ func (m *EncryptedTxArray) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncryptedTx", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EncryptedTxs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1126,8 +1126,8 @@ func (m *EncryptedTxArray) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EncryptedTx = append(m.EncryptedTx, EncryptedTx{}) - if err := m.EncryptedTx[len(m.EncryptedTx)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.EncryptedTxs = append(m.EncryptedTxs, EncryptedTx{}) + if err := m.EncryptedTxs[len(m.EncryptedTxs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1384,7 +1384,7 @@ func (m *GeneralEncryptedTxArray) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncryptedTx", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EncryptedTxs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1411,8 +1411,8 @@ func (m *GeneralEncryptedTxArray) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EncryptedTx = append(m.EncryptedTx, GeneralEncryptedTx{}) - if err := m.EncryptedTx[len(m.EncryptedTx)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.EncryptedTxs = append(m.EncryptedTxs, GeneralEncryptedTx{}) + if err := m.EncryptedTxs[len(m.EncryptedTxs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1437,7 +1437,7 @@ func (m *GeneralEncryptedTxArray) Unmarshal(dAtA []byte) error { } return nil } -func (m *IdentityExecutionQueue) Unmarshal(dAtA []byte) error { +func (m *IdentityExecutionEntry) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1460,10 +1460,10 @@ func (m *IdentityExecutionQueue) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: IdentityExecutionQueue: wiretype end group for non-group") + return fmt.Errorf("proto: IdentityExecutionEntry: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: IdentityExecutionQueue: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: IdentityExecutionEntry: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1632,7 +1632,7 @@ func (m *IdentityExecutionQueue) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AggrKeyshare", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DecryptionKey", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1660,7 +1660,7 @@ func (m *IdentityExecutionQueue) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AggrKeyshare = string(dAtA[iNdEx:postIndex]) + m.DecryptionKey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/pep/types/genesis.pb.go b/x/pep/types/genesis.pb.go index b3171fad..717a9499 100644 --- a/x/pep/types/genesis.pb.go +++ b/x/pep/types/genesis.pb.go @@ -28,15 +28,15 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // GenesisState defines the pep module's genesis state. type GenesisState struct { // params defines all the parameters of the module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - EncryptedTxArray []EncryptedTxArray `protobuf:"bytes,3,rep,name=encryptedTxArray,proto3" json:"encryptedTxArray"` - PepNonceList []PepNonce `protobuf:"bytes,4,rep,name=pepNonceList,proto3" json:"pepNonceList"` - AggregatedKeyShareList []AggregatedKeyShare `protobuf:"bytes,6,rep,name=aggregatedKeyShareList,proto3" json:"aggregatedKeyShareList"` - ActivePubKey types.ActivePublicKey `protobuf:"bytes,7,opt,name=activePubKey,proto3" json:"activePubKey"` - QueuedPubKey types.QueuedPublicKey `protobuf:"bytes,8,opt,name=queuedPubKey,proto3" json:"queuedPubKey"` - RequestCount uint64 `protobuf:"varint,9,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"` - RequestIdList []RequestId `protobuf:"bytes,10,rep,name=requestIdList,proto3" json:"requestIdList"` + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` + EncryptedTxArray []EncryptedTxArray `protobuf:"bytes,3,rep,name=encryptedTxArray,proto3" json:"encryptedTxArray"` + PepNonceList []PepNonce `protobuf:"bytes,4,rep,name=pepNonceList,proto3" json:"pepNonceList"` + DecryptionKeyList []DecryptionKey `protobuf:"bytes,6,rep,name=decryption_key_list,json=decryptionKeyList,proto3" json:"decryption_key_list"` + ActivePubKey types.ActivePublicKey `protobuf:"bytes,7,opt,name=activePubKey,proto3" json:"activePubKey"` + QueuedPubKey types.QueuedPublicKey `protobuf:"bytes,8,opt,name=queuedPubKey,proto3" json:"queuedPubKey"` + RequestCount uint64 `protobuf:"varint,9,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"` + RequestIdList []RequestId `protobuf:"bytes,10,rep,name=requestIdList,proto3" json:"requestIdList"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -100,9 +100,9 @@ func (m *GenesisState) GetPepNonceList() []PepNonce { return nil } -func (m *GenesisState) GetAggregatedKeyShareList() []AggregatedKeyShare { +func (m *GenesisState) GetDecryptionKeyList() []DecryptionKey { if m != nil { - return m.AggregatedKeyShareList + return m.DecryptionKeyList } return nil } @@ -142,38 +142,38 @@ func init() { func init() { proto.RegisterFile("fairyring/pep/genesis.proto", fileDescriptor_c02ca82ac7a8fa8f) } var fileDescriptor_c02ca82ac7a8fa8f = []byte{ - // 490 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x6e, 0xd3, 0x30, - 0x1c, 0xc6, 0x1b, 0x56, 0x75, 0xd4, 0xeb, 0x24, 0x88, 0x80, 0x45, 0x45, 0x64, 0x81, 0x5d, 0xa2, - 0x1d, 0x12, 0x69, 0x5c, 0xb8, 0xb6, 0x0c, 0xd0, 0x54, 0x84, 0xb6, 0x8c, 0x13, 0x97, 0xc8, 0x4d, - 0xfe, 0x64, 0xd6, 0xd6, 0xd8, 0x73, 0x1c, 0xd4, 0xbc, 0x05, 0x8f, 0xc1, 0x91, 0xc7, 0xd8, 0x71, - 0x47, 0x2e, 0x20, 0xd4, 0x1e, 0x78, 0x0d, 0x64, 0xc7, 0x69, 0xe7, 0x4c, 0xbd, 0x54, 0xae, 0xbf, - 0xef, 0xfb, 0xd9, 0xfe, 0xf2, 0x47, 0xcf, 0xbf, 0x62, 0xc2, 0x2b, 0x4e, 0xf2, 0x2c, 0x64, 0xc0, - 0xc2, 0x0c, 0x72, 0x28, 0x48, 0x11, 0x30, 0x4e, 0x05, 0xb5, 0x77, 0x57, 0x62, 0xc0, 0x80, 0x0d, - 0x1f, 0xe3, 0x19, 0xc9, 0x69, 0xa8, 0x7e, 0x6b, 0xc7, 0xf0, 0x49, 0x46, 0x33, 0xaa, 0x96, 0xa1, - 0x5c, 0xe9, 0xdd, 0xa1, 0x09, 0x65, 0x98, 0xe3, 0x99, 0x66, 0x0e, 0x3d, 0x53, 0x83, 0x3c, 0xe1, - 0x15, 0x13, 0x90, 0xc6, 0x62, 0xae, 0x1d, 0x2f, 0x5a, 0x69, 0x60, 0x71, 0x4e, 0xf3, 0x04, 0xb4, - 0xec, 0x9b, 0x32, 0xce, 0x32, 0x0e, 0x19, 0x96, 0x84, 0x4b, 0xa8, 0xe2, 0xe2, 0x02, 0xf3, 0xc6, - 0x79, 0xb0, 0x76, 0x26, 0x74, 0x36, 0xa3, 0x79, 0xa8, 0xd4, 0x34, 0x16, 0x15, 0x83, 0xe6, 0x3e, - 0xae, 0x89, 0xe3, 0x70, 0x5d, 0x42, 0x21, 0x62, 0x92, 0xd6, 0xfa, 0xab, 0xdf, 0x5d, 0x34, 0xf8, - 0x50, 0xb7, 0x72, 0x2e, 0xb0, 0x00, 0xfb, 0x0d, 0xea, 0xd5, 0x0f, 0x72, 0x2c, 0xcf, 0xf2, 0x77, - 0x8e, 0x9e, 0x06, 0x46, 0x4b, 0xc1, 0xa9, 0x12, 0xc7, 0xfd, 0x9b, 0x3f, 0xfb, 0x9d, 0x1f, 0xff, - 0x7e, 0x1e, 0x5a, 0x91, 0xf6, 0xdb, 0x7b, 0x68, 0x9b, 0x51, 0x2e, 0xd9, 0xce, 0x03, 0xcf, 0xf2, - 0xfb, 0x51, 0x4f, 0xfe, 0x3d, 0x49, 0xed, 0x33, 0xf4, 0x68, 0xd5, 0xc3, 0xe7, 0xf9, 0x88, 0x73, - 0x5c, 0x39, 0x5b, 0xde, 0x96, 0xbf, 0x73, 0xb4, 0xdf, 0x82, 0xbf, 0x6b, 0xd9, 0xc6, 0x5d, 0x79, - 0x4c, 0x74, 0x2f, 0x6e, 0x8f, 0xd0, 0x80, 0x01, 0xfb, 0x24, 0x7b, 0xfb, 0x48, 0x0a, 0xe1, 0x74, - 0x15, 0x6e, 0xaf, 0x7d, 0x57, 0x6d, 0xd1, 0x18, 0x23, 0x62, 0xc7, 0xe8, 0xd9, 0xba, 0xdc, 0x09, - 0x54, 0xe7, 0xb2, 0x3c, 0x05, 0xeb, 0x29, 0xd8, 0xcb, 0x16, 0x6c, 0x74, 0xcf, 0xac, 0xb1, 0x1b, - 0x30, 0xf6, 0x04, 0x0d, 0x70, 0x22, 0xc8, 0x37, 0x38, 0x2d, 0xa7, 0x13, 0xa8, 0x9c, 0x6d, 0xd5, - 0xe7, 0x5d, 0x6c, 0xfd, 0xd9, 0x82, 0x51, 0xe3, 0xba, 0x22, 0xc9, 0x04, 0x9a, 0x47, 0x1b, 0x61, - 0x09, 0xbb, 0x2e, 0xa1, 0x84, 0x54, 0xc3, 0x1e, 0x6e, 0x82, 0x9d, 0x35, 0x2e, 0x13, 0x76, 0x37, - 0x6c, 0x1f, 0xa0, 0xdd, 0x66, 0x10, 0x12, 0x5a, 0xe6, 0xc2, 0xe9, 0x7b, 0x96, 0xdf, 0x8d, 0x06, - 0x7a, 0xf3, 0xad, 0xdc, 0xb3, 0x8f, 0x57, 0xa6, 0x93, 0x54, 0xd5, 0x82, 0x54, 0x2d, 0x4e, 0xab, - 0x96, 0xa8, 0xf1, 0xe8, 0x93, 0xcc, 0xd0, 0xf8, 0xf8, 0x66, 0xe1, 0x5a, 0xb7, 0x0b, 0xd7, 0xfa, - 0xbb, 0x70, 0xad, 0xef, 0x4b, 0xb7, 0x73, 0xbb, 0x74, 0x3b, 0xbf, 0x96, 0x6e, 0xe7, 0xcb, 0x61, - 0x46, 0xc4, 0x45, 0x39, 0x95, 0xf7, 0x0e, 0xdf, 0x63, 0xc2, 0xa7, 0x57, 0x34, 0xb9, 0x0c, 0xd7, - 0xe3, 0x3a, 0x57, 0x03, 0xab, 0x66, 0x79, 0xda, 0x53, 0xc3, 0xfa, 0xfa, 0x7f, 0x00, 0x00, 0x00, - 0xff, 0xff, 0x96, 0x34, 0xeb, 0x60, 0xcf, 0x03, 0x00, 0x00, + // 488 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x6e, 0xd3, 0x4c, + 0x14, 0x85, 0xe3, 0xbf, 0x51, 0xfa, 0x67, 0x9a, 0x4a, 0xd4, 0x80, 0x6a, 0x05, 0x70, 0x4d, 0xbb, + 0x89, 0xba, 0xb0, 0xa5, 0xb2, 0x61, 0x9b, 0x10, 0x40, 0x55, 0x10, 0x6a, 0x0d, 0x2b, 0x36, 0x96, + 0x63, 0x5f, 0xdc, 0x51, 0x93, 0x99, 0xe9, 0x78, 0x8c, 0xe2, 0xb7, 0xe0, 0x31, 0x58, 0xf2, 0x18, + 0x5d, 0x66, 0xc9, 0x0a, 0xa1, 0x64, 0xc1, 0x6b, 0xa0, 0x19, 0x8f, 0x93, 0x8c, 0x11, 0x9b, 0x68, + 0x72, 0xef, 0x39, 0xdf, 0x5c, 0x9f, 0xb9, 0xe8, 0xc9, 0xe7, 0x18, 0xf3, 0x92, 0x63, 0x92, 0x05, + 0x0c, 0x58, 0x90, 0x01, 0x81, 0x1c, 0xe7, 0x3e, 0xe3, 0x54, 0x50, 0xfb, 0x70, 0xd3, 0xf4, 0x19, + 0xb0, 0xfe, 0x51, 0x3c, 0xc7, 0x84, 0x06, 0xea, 0xb7, 0x52, 0xf4, 0x1f, 0x65, 0x34, 0xa3, 0xea, + 0x18, 0xc8, 0x93, 0xae, 0xf6, 0x4d, 0x28, 0x8b, 0x79, 0x3c, 0xd7, 0xcc, 0xbe, 0x67, 0xf6, 0x80, + 0x24, 0xbc, 0x64, 0x02, 0xd2, 0x48, 0x2c, 0xb4, 0xe2, 0x59, 0xc3, 0x0d, 0x2c, 0x22, 0x94, 0x24, + 0xa0, 0xdb, 0xa7, 0x66, 0x3b, 0x05, 0x05, 0xc0, 0x94, 0x44, 0xb7, 0x50, 0x6a, 0xcd, 0xd9, 0x56, + 0x93, 0xd0, 0xf9, 0x9c, 0x92, 0x20, 0xbf, 0x89, 0xb9, 0xbc, 0xa4, 0x64, 0x50, 0x4f, 0xe2, 0x9a, + 0x20, 0x0e, 0x77, 0x05, 0xe4, 0x22, 0xc2, 0x69, 0xd5, 0x3f, 0x5d, 0xb6, 0x51, 0xef, 0x6d, 0x95, + 0xc7, 0x07, 0x11, 0x0b, 0xb0, 0x5f, 0xa2, 0x4e, 0xf5, 0x29, 0x8e, 0xe5, 0x59, 0x83, 0x83, 0x8b, + 0xc7, 0xbe, 0x91, 0x8f, 0x7f, 0xa5, 0x9a, 0xa3, 0xee, 0xfd, 0xcf, 0x93, 0xd6, 0xb7, 0xdf, 0xdf, + 0xcf, 0xad, 0x50, 0xeb, 0xed, 0x63, 0xb4, 0xcf, 0x28, 0x97, 0x6c, 0xe7, 0x3f, 0xcf, 0x1a, 0x74, + 0xc3, 0x8e, 0xfc, 0x7b, 0x99, 0xda, 0xd7, 0xe8, 0xc1, 0x26, 0x81, 0x8f, 0x8b, 0x21, 0xe7, 0x71, + 0xe9, 0xec, 0x79, 0x7b, 0x83, 0x83, 0x8b, 0x93, 0x06, 0xfc, 0x75, 0x43, 0x36, 0x6a, 0xcb, 0x6b, + 0xc2, 0xbf, 0xec, 0xf6, 0x10, 0xf5, 0x18, 0xb0, 0xf7, 0x32, 0xb1, 0x77, 0x38, 0x17, 0x4e, 0x5b, + 0xe1, 0x8e, 0x9b, 0xb3, 0x6a, 0x89, 0xc6, 0x18, 0x16, 0x3b, 0x44, 0x0f, 0xcd, 0x58, 0xa3, 0x99, + 0x24, 0x75, 0x14, 0xe9, 0x69, 0x83, 0x34, 0xde, 0x28, 0x27, 0x50, 0x4f, 0x75, 0x94, 0xee, 0x16, + 0x15, 0x73, 0x82, 0x7a, 0x71, 0x22, 0xf0, 0x17, 0xb8, 0x2a, 0xa6, 0x13, 0x28, 0x9d, 0x7d, 0x15, + 0xe1, 0xf3, 0x1d, 0x58, 0xf5, 0x52, 0xfe, 0xb0, 0x56, 0xcd, 0x70, 0xb2, 0x25, 0x1a, 0x66, 0x09, + 0xbb, 0x2b, 0xa0, 0x80, 0x54, 0xc3, 0xfe, 0xff, 0x17, 0xec, 0xba, 0x56, 0x99, 0xb0, 0x5d, 0xb3, + 0x7d, 0x86, 0x0e, 0xeb, 0xb7, 0x4f, 0x68, 0x41, 0x84, 0xd3, 0xf5, 0xac, 0x41, 0x3b, 0xec, 0xe9, + 0xe2, 0x2b, 0x59, 0xb3, 0xc7, 0x1b, 0xd1, 0x65, 0xaa, 0x62, 0x45, 0x2a, 0x0c, 0xa7, 0x11, 0x46, + 0x58, 0x6b, 0xf4, 0x4d, 0xa6, 0x69, 0x34, 0xbe, 0x5f, 0xb9, 0xd6, 0x72, 0xe5, 0x5a, 0xbf, 0x56, + 0xae, 0xf5, 0x75, 0xed, 0xb6, 0x96, 0x6b, 0xb7, 0xf5, 0x63, 0xed, 0xb6, 0x3e, 0x9d, 0x67, 0x58, + 0xdc, 0x14, 0x53, 0x39, 0x77, 0xf0, 0x26, 0xc6, 0x7c, 0x3a, 0xa3, 0xc9, 0x6d, 0xb0, 0xdd, 0xd0, + 0x85, 0xda, 0x51, 0xb5, 0xbe, 0xd3, 0x8e, 0xda, 0xcf, 0x17, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, + 0x36, 0x54, 0x1c, 0x79, 0xbc, 0x03, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -235,10 +235,10 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i-- dAtA[i] = 0x3a - if len(m.AggregatedKeyShareList) > 0 { - for iNdEx := len(m.AggregatedKeyShareList) - 1; iNdEx >= 0; iNdEx-- { + if len(m.DecryptionKeyList) > 0 { + for iNdEx := len(m.DecryptionKeyList) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.AggregatedKeyShareList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.DecryptionKeyList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -332,8 +332,8 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } - if len(m.AggregatedKeyShareList) > 0 { - for _, e := range m.AggregatedKeyShareList { + if len(m.DecryptionKeyList) > 0 { + for _, e := range m.DecryptionKeyList { l = e.Size() n += 1 + l + sovGenesis(uint64(l)) } @@ -524,7 +524,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregatedKeyShareList", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DecryptionKeyList", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -551,8 +551,8 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AggregatedKeyShareList = append(m.AggregatedKeyShareList, AggregatedKeyShare{}) - if err := m.AggregatedKeyShareList[len(m.AggregatedKeyShareList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.DecryptionKeyList = append(m.DecryptionKeyList, DecryptionKey{}) + if err := m.DecryptionKeyList[len(m.DecryptionKeyList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/pep/types/params.pb.go b/x/pep/types/params.pb.go index 7865c663..40aec7ed 100644 --- a/x/pep/types/params.pb.go +++ b/x/pep/types/params.pb.go @@ -28,12 +28,12 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Params defines the parameters for the module. type Params struct { // option (gogoproto.equal) = true; - KeyshareChannelId string `protobuf:"bytes,1,opt,name=keyshare_channel_id,json=keyshareChannelId,proto3" json:"keyshare_channel_id,omitempty" yaml:"keyshare_channel_id"` - IsSourceChain bool `protobuf:"varint,2,opt,name=is_source_chain,json=isSourceChain,proto3" json:"is_source_chain,omitempty" yaml:"is_source_chain"` - TrustedCounterParties []*TrustedCounterParty `protobuf:"bytes,3,rep,name=trusted_counter_parties,json=trustedCounterParties,proto3" json:"trusted_counter_parties,omitempty"` - TrustedAddresses []string `protobuf:"bytes,4,rep,name=trusted_addresses,json=trustedAddresses,proto3" json:"trusted_addresses,omitempty" yaml:"trusted_addresses"` - MinGasPrice *types.Coin `protobuf:"bytes,5,opt,name=min_gas_price,json=minGasPrice,proto3" json:"min_gas_price,omitempty" yaml:"min_gas_price"` - PrivateKeysharePrice *types.Coin `protobuf:"bytes,6,opt,name=private_keyshare_price,json=privateKeysharePrice,proto3" json:"private_keyshare_price,omitempty" yaml:"private_keyshare_price"` + KeyshareChannelId string `protobuf:"bytes,1,opt,name=keyshare_channel_id,json=keyshareChannelId,proto3" json:"keyshare_channel_id,omitempty" yaml:"keyshare_channel_id"` + IsSourceChain bool `protobuf:"varint,2,opt,name=is_source_chain,json=isSourceChain,proto3" json:"is_source_chain,omitempty" yaml:"is_source_chain"` + TrustedCounterParties []*TrustedCounterParty `protobuf:"bytes,3,rep,name=trusted_counter_parties,json=trustedCounterParties,proto3" json:"trusted_counter_parties,omitempty"` + TrustedAddresses []string `protobuf:"bytes,4,rep,name=trusted_addresses,json=trustedAddresses,proto3" json:"trusted_addresses,omitempty" yaml:"trusted_addresses"` + MinGasPrice *types.Coin `protobuf:"bytes,5,opt,name=min_gas_price,json=minGasPrice,proto3" json:"min_gas_price,omitempty" yaml:"min_gas_price"` + PrivateDecryptionKeyPrice *types.Coin `protobuf:"bytes,6,opt,name=private_decryption_key_price,json=privateDecryptionKeyPrice,proto3" json:"private_decryption_key_price,omitempty" yaml:"private_decryption_key_price"` } func (m *Params) Reset() { *m = Params{} } @@ -104,9 +104,9 @@ func (m *Params) GetMinGasPrice() *types.Coin { return nil } -func (m *Params) GetPrivateKeysharePrice() *types.Coin { +func (m *Params) GetPrivateDecryptionKeyPrice() *types.Coin { if m != nil { - return m.PrivateKeysharePrice + return m.PrivateDecryptionKeyPrice } return nil } @@ -182,40 +182,41 @@ func init() { func init() { proto.RegisterFile("fairyring/pep/params.proto", fileDescriptor_9a32cf7d58c7a431) } var fileDescriptor_9a32cf7d58c7a431 = []byte{ - // 522 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xc1, 0x6e, 0x12, 0x41, - 0x1c, 0xc6, 0xd9, 0x52, 0x49, 0x19, 0x24, 0xca, 0x14, 0x71, 0xa5, 0x76, 0xc1, 0xf5, 0x42, 0x7a, - 0xd8, 0x4d, 0xeb, 0xad, 0x37, 0x17, 0xa3, 0x21, 0x26, 0x86, 0xac, 0x26, 0x26, 0xbd, 0x6c, 0x86, - 0xd9, 0x11, 0x26, 0x65, 0x67, 0x26, 0x33, 0x03, 0x91, 0x57, 0xf0, 0xe4, 0x8b, 0x98, 0xf8, 0x18, - 0x1e, 0x7b, 0xf4, 0x44, 0x0c, 0x1c, 0xbc, 0xf3, 0x04, 0x86, 0x99, 0x85, 0xda, 0x96, 0xa4, 0x97, - 0xcd, 0xcc, 0xf7, 0xff, 0xed, 0xff, 0x9b, 0x7c, 0xf9, 0x40, 0xf3, 0x0b, 0xa2, 0x72, 0x26, 0x29, - 0x1b, 0x86, 0x82, 0x88, 0x50, 0x20, 0x89, 0x32, 0x15, 0x08, 0xc9, 0x35, 0x87, 0xd5, 0xed, 0x2c, - 0x10, 0x44, 0x34, 0x6b, 0x28, 0xa3, 0x8c, 0x87, 0xe6, 0x6b, 0x89, 0x66, 0x7d, 0xc8, 0x87, 0xdc, - 0x1c, 0xc3, 0xf5, 0x29, 0x57, 0x3d, 0xcc, 0x55, 0xc6, 0x55, 0x38, 0x40, 0x8a, 0x84, 0xd3, 0xd3, - 0x01, 0xd1, 0xe8, 0x34, 0xc4, 0x9c, 0x32, 0x3b, 0xf7, 0x7f, 0xec, 0x83, 0x52, 0xdf, 0x18, 0xc1, - 0x0f, 0xe0, 0xf0, 0x92, 0xcc, 0xd4, 0x08, 0x49, 0x92, 0xe0, 0x11, 0x62, 0x8c, 0x8c, 0x13, 0x9a, - 0xba, 0x4e, 0xdb, 0xe9, 0x94, 0x23, 0x6f, 0x35, 0x6f, 0x35, 0x67, 0x28, 0x1b, 0x9f, 0xfb, 0x3b, - 0x20, 0x3f, 0xae, 0x6d, 0xd4, 0xae, 0x15, 0x7b, 0x29, 0x8c, 0xc0, 0x23, 0xaa, 0x12, 0xc5, 0x27, - 0x12, 0x1b, 0x96, 0x32, 0x77, 0xaf, 0xed, 0x74, 0x0e, 0xa2, 0xe6, 0x6a, 0xde, 0x6a, 0xd8, 0x5d, - 0xb7, 0x00, 0x3f, 0xae, 0x52, 0xf5, 0xd1, 0x08, 0xdd, 0xf5, 0x1d, 0x5e, 0x80, 0xa7, 0x5a, 0x4e, - 0x94, 0x26, 0x69, 0x82, 0xf9, 0x84, 0x69, 0x22, 0x13, 0x81, 0xa4, 0xa6, 0x44, 0xb9, 0xc5, 0x76, - 0xb1, 0x53, 0x39, 0xf3, 0x83, 0x1b, 0xc1, 0x04, 0x9f, 0x2c, 0xdd, 0xb5, 0x70, 0x1f, 0x49, 0x3d, - 0x8b, 0x9f, 0xe8, 0x3b, 0x22, 0x25, 0x0a, 0xf6, 0x40, 0x6d, 0xb3, 0x1b, 0xa5, 0xa9, 0x24, 0x4a, - 0x11, 0xe5, 0xee, 0xb7, 0x8b, 0x9d, 0x72, 0xf4, 0x7c, 0x35, 0x6f, 0xb9, 0xf6, 0x85, 0x77, 0x10, - 0x3f, 0x7e, 0x9c, 0x6b, 0xaf, 0x37, 0x12, 0xfc, 0x0c, 0xaa, 0x19, 0x65, 0xc9, 0x10, 0xa9, 0x44, - 0x48, 0x8a, 0x89, 0xfb, 0xa0, 0xed, 0x74, 0x2a, 0x67, 0xcf, 0x02, 0x9b, 0x7e, 0xb0, 0x4e, 0x3f, - 0xc8, 0xd3, 0x0f, 0xba, 0x9c, 0xb2, 0xc8, 0x5d, 0xcd, 0x5b, 0x75, 0xeb, 0x70, 0xe3, 0x4f, 0x3f, - 0xae, 0x64, 0x94, 0xbd, 0x43, 0xaa, 0xbf, 0xbe, 0x41, 0x09, 0x1a, 0x42, 0xd2, 0x29, 0xd2, 0x24, - 0xd9, 0xc6, 0x6e, 0x1d, 0x4a, 0xf7, 0x39, 0xbc, 0x58, 0xcd, 0x5b, 0xc7, 0xd6, 0x61, 0xf7, 0x0a, - 0x3f, 0xae, 0xe7, 0x83, 0xf7, 0xb9, 0x6e, 0x3c, 0xcf, 0x8f, 0xbe, 0xfd, 0xfd, 0x79, 0xd2, 0xb8, - 0xee, 0xe2, 0x57, 0xd3, 0x46, 0x5b, 0x12, 0x7f, 0x0a, 0x0e, 0x77, 0x44, 0x0c, 0x8f, 0x40, 0x19, - 0x8f, 0x29, 0x61, 0x7a, 0xdb, 0x98, 0xf8, 0xc0, 0x0a, 0xbd, 0x14, 0xbe, 0x04, 0x55, 0xcc, 0x19, - 0x23, 0x58, 0x53, 0xce, 0xd6, 0xc0, 0x9e, 0x01, 0x1e, 0x5e, 0x8b, 0xbd, 0x14, 0x1e, 0x03, 0xf0, - 0x5f, 0xe9, 0x8a, 0x86, 0x28, 0xe3, 0x4d, 0x99, 0xa2, 0x37, 0xbf, 0x16, 0x9e, 0x73, 0xb5, 0xf0, - 0x9c, 0x3f, 0x0b, 0xcf, 0xf9, 0xbe, 0xf4, 0x0a, 0x57, 0x4b, 0xaf, 0xf0, 0x7b, 0xe9, 0x15, 0x2e, - 0x4e, 0x86, 0x54, 0x8f, 0x26, 0x83, 0x00, 0xf3, 0x2c, 0x7c, 0x8b, 0xa8, 0x1c, 0x8c, 0x39, 0xbe, - 0x0c, 0x6f, 0x3f, 0x5f, 0xcf, 0x04, 0x51, 0x83, 0x92, 0x29, 0xfd, 0xab, 0x7f, 0x01, 0x00, 0x00, - 0xff, 0xff, 0x6e, 0x7b, 0x9e, 0xa6, 0x6a, 0x03, 0x00, 0x00, + // 537 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0x3f, 0x6f, 0xd3, 0x40, + 0x18, 0xc6, 0x63, 0x52, 0xa2, 0xe6, 0x42, 0x04, 0x71, 0x4b, 0x71, 0xd3, 0xe2, 0x44, 0xee, 0x40, + 0xd4, 0xc1, 0x56, 0xcb, 0xd6, 0x0d, 0xa7, 0x02, 0x45, 0x48, 0x28, 0x32, 0x48, 0x48, 0x5d, 0xac, + 0xcb, 0xf9, 0x25, 0x39, 0x25, 0xbe, 0xb3, 0xee, 0x2e, 0x11, 0x9e, 0xd9, 0x98, 0xf8, 0x28, 0x7c, + 0x03, 0x56, 0xc6, 0x8e, 0x4c, 0x11, 0x4a, 0x06, 0xf6, 0x7c, 0x02, 0x94, 0xbb, 0x24, 0xa5, 0x7f, + 0x44, 0x17, 0xeb, 0xee, 0xf7, 0x3e, 0x7e, 0xdf, 0x57, 0x8f, 0x9e, 0x43, 0xf5, 0x4f, 0x98, 0x8a, + 0x5c, 0x50, 0xd6, 0x0f, 0x32, 0xc8, 0x82, 0x0c, 0x0b, 0x9c, 0x4a, 0x3f, 0x13, 0x5c, 0x71, 0xbb, + 0xba, 0xa9, 0xf9, 0x19, 0x64, 0xf5, 0x1a, 0x4e, 0x29, 0xe3, 0x81, 0xfe, 0x1a, 0x45, 0x7d, 0xb7, + 0xcf, 0xfb, 0x5c, 0x1f, 0x83, 0xe5, 0x69, 0x45, 0x5d, 0xc2, 0x65, 0xca, 0x65, 0xd0, 0xc3, 0x12, + 0x82, 0xc9, 0x49, 0x0f, 0x14, 0x3e, 0x09, 0x08, 0xa7, 0xcc, 0xd4, 0xbd, 0x1f, 0x5b, 0xa8, 0xd4, + 0xd5, 0x83, 0xec, 0x77, 0x68, 0x67, 0x08, 0xb9, 0x1c, 0x60, 0x01, 0x31, 0x19, 0x60, 0xc6, 0x60, + 0x14, 0xd3, 0xc4, 0xb1, 0x9a, 0x56, 0xab, 0x1c, 0xba, 0x8b, 0x69, 0xa3, 0x9e, 0xe3, 0x74, 0x74, + 0xe6, 0xdd, 0x21, 0xf2, 0xa2, 0xda, 0x9a, 0xb6, 0x0d, 0xec, 0x24, 0x76, 0x88, 0x1e, 0x53, 0x19, + 0x4b, 0x3e, 0x16, 0x44, 0x6b, 0x29, 0x73, 0x1e, 0x34, 0xad, 0xd6, 0x76, 0x58, 0x5f, 0x4c, 0x1b, + 0x7b, 0xa6, 0xd7, 0x0d, 0x81, 0x17, 0x55, 0xa9, 0x7c, 0xaf, 0x41, 0x7b, 0x79, 0xb7, 0x2f, 0xd0, + 0x33, 0x25, 0xc6, 0x52, 0x41, 0x12, 0x13, 0x3e, 0x66, 0x0a, 0x44, 0x9c, 0x61, 0xa1, 0x28, 0x48, + 0xa7, 0xd8, 0x2c, 0xb6, 0x2a, 0xa7, 0x9e, 0x7f, 0xcd, 0x18, 0xff, 0x83, 0x51, 0xb7, 0x8d, 0xb8, + 0x8b, 0x85, 0xca, 0xa3, 0xa7, 0xea, 0x16, 0xa4, 0x20, 0xed, 0x0e, 0xaa, 0xad, 0x7b, 0xe3, 0x24, + 0x11, 0x20, 0x25, 0x48, 0x67, 0xab, 0x59, 0x6c, 0x95, 0xc3, 0xc3, 0xc5, 0xb4, 0xe1, 0x98, 0x0d, + 0x6f, 0x49, 0xbc, 0xe8, 0xc9, 0x8a, 0xbd, 0x5a, 0x23, 0xfb, 0x23, 0xaa, 0xa6, 0x94, 0xc5, 0x7d, + 0x2c, 0xe3, 0x4c, 0x50, 0x02, 0xce, 0xc3, 0xa6, 0xd5, 0xaa, 0x9c, 0xee, 0xfb, 0xc6, 0x7d, 0x7f, + 0xe9, 0xbe, 0xbf, 0x72, 0xdf, 0x6f, 0x73, 0xca, 0x42, 0x67, 0x31, 0x6d, 0xec, 0x9a, 0x09, 0xd7, + 0xfe, 0xf4, 0xa2, 0x4a, 0x4a, 0xd9, 0x1b, 0x2c, 0xbb, 0xcb, 0x9b, 0xfd, 0xc5, 0x42, 0x87, 0x99, + 0xa0, 0x13, 0xac, 0x20, 0x4e, 0x80, 0x88, 0x3c, 0x53, 0x94, 0xb3, 0x78, 0x08, 0xf9, 0x6a, 0x50, + 0xe9, 0xbe, 0x41, 0x2f, 0x16, 0xd3, 0xc6, 0x91, 0x19, 0xf4, 0xbf, 0x46, 0x5e, 0xb4, 0xbf, 0x2a, + 0x9f, 0x6f, 0xaa, 0x6f, 0x21, 0xd7, 0x5b, 0x9c, 0x1d, 0x7c, 0xfd, 0xf3, 0xfd, 0x78, 0xef, 0x2a, + 0x9d, 0x9f, 0x75, 0x3e, 0x4d, 0x6c, 0xbc, 0x09, 0xda, 0xb9, 0xc3, 0x74, 0xfb, 0x00, 0x95, 0xc9, + 0x88, 0x02, 0x53, 0x9b, 0x0c, 0x45, 0xdb, 0x06, 0x74, 0x12, 0xfb, 0x08, 0x55, 0x09, 0x67, 0x0c, + 0x88, 0x5e, 0x82, 0x26, 0x3a, 0x18, 0xe5, 0xe8, 0xd1, 0x15, 0xec, 0x24, 0xf6, 0x73, 0x84, 0xfe, + 0x89, 0x61, 0x51, 0x2b, 0xca, 0x64, 0x1d, 0xaf, 0xf0, 0xfc, 0xe7, 0xcc, 0xb5, 0x2e, 0x67, 0xae, + 0xf5, 0x7b, 0xe6, 0x5a, 0xdf, 0xe6, 0x6e, 0xe1, 0x72, 0xee, 0x16, 0x7e, 0xcd, 0xdd, 0xc2, 0xc5, + 0x71, 0x9f, 0xaa, 0xc1, 0xb8, 0xe7, 0x13, 0x9e, 0x06, 0xaf, 0x31, 0x15, 0xbd, 0x11, 0x27, 0xc3, + 0xe0, 0xe6, 0xfa, 0x2a, 0xcf, 0x40, 0xf6, 0x4a, 0xfa, 0x19, 0xbc, 0xfc, 0x1b, 0x00, 0x00, 0xff, + 0xff, 0xc4, 0xcb, 0xd3, 0xb6, 0x7c, 0x03, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -238,9 +239,9 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.PrivateKeysharePrice != nil { + if m.PrivateDecryptionKeyPrice != nil { { - size, err := m.PrivateKeysharePrice.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.PrivateDecryptionKeyPrice.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -389,8 +390,8 @@ func (m *Params) Size() (n int) { l = m.MinGasPrice.Size() n += 1 + l + sovParams(uint64(l)) } - if m.PrivateKeysharePrice != nil { - l = m.PrivateKeysharePrice.Size() + if m.PrivateDecryptionKeyPrice != nil { + l = m.PrivateDecryptionKeyPrice.Size() n += 1 + l + sovParams(uint64(l)) } return n @@ -608,7 +609,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PrivateKeysharePrice", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PrivateDecryptionKeyPrice", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -635,10 +636,10 @@ func (m *Params) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.PrivateKeysharePrice == nil { - m.PrivateKeysharePrice = &types.Coin{} + if m.PrivateDecryptionKeyPrice == nil { + m.PrivateDecryptionKeyPrice = &types.Coin{} } - if err := m.PrivateKeysharePrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PrivateDecryptionKeyPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/pep/types/query.pb.go b/x/pep/types/query.pb.go index aa8416a1..13e2d82b 100644 --- a/x/pep/types/query.pb.go +++ b/x/pep/types/query.pb.go @@ -115,23 +115,23 @@ func (m *QueryParamsResponse) GetParams() Params { return Params{} } -// QueryKeyshareReqRequest is request type for the Query/KeyshareReq RPC method. -type QueryKeyshareReqRequest struct { +// QueryGeneralIdentityRequest is request type for the Query/GeneralIdentity RPC method. +type QueryGeneralIdentityRequest struct { ReqId string `protobuf:"bytes,1,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } -func (m *QueryKeyshareReqRequest) Reset() { *m = QueryKeyshareReqRequest{} } -func (m *QueryKeyshareReqRequest) String() string { return proto.CompactTextString(m) } -func (*QueryKeyshareReqRequest) ProtoMessage() {} -func (*QueryKeyshareReqRequest) Descriptor() ([]byte, []int) { +func (m *QueryGeneralIdentityRequest) Reset() { *m = QueryGeneralIdentityRequest{} } +func (m *QueryGeneralIdentityRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGeneralIdentityRequest) ProtoMessage() {} +func (*QueryGeneralIdentityRequest) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{2} } -func (m *QueryKeyshareReqRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryGeneralIdentityRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryKeyshareReqRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGeneralIdentityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryKeyshareReqRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGeneralIdentityRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -141,42 +141,42 @@ func (m *QueryKeyshareReqRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *QueryKeyshareReqRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryKeyshareReqRequest.Merge(m, src) +func (m *QueryGeneralIdentityRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGeneralIdentityRequest.Merge(m, src) } -func (m *QueryKeyshareReqRequest) XXX_Size() int { +func (m *QueryGeneralIdentityRequest) XXX_Size() int { return m.Size() } -func (m *QueryKeyshareReqRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryKeyshareReqRequest.DiscardUnknown(m) +func (m *QueryGeneralIdentityRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGeneralIdentityRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryKeyshareReqRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryGeneralIdentityRequest proto.InternalMessageInfo -func (m *QueryKeyshareReqRequest) GetReqId() string { +func (m *QueryGeneralIdentityRequest) GetReqId() string { if m != nil { return m.ReqId } return "" } -// QueryKeyshareReqResponse is response type for the Query/KeyshareReq RPC method. -type QueryKeyshareReqResponse struct { - Keyshare *IdentityExecutionQueue `protobuf:"bytes,1,opt,name=keyshare,proto3" json:"keyshare,omitempty"` +// QueryGeneralIdentityResponse is response type for the Query/GeneralIdentity RPC method. +type QueryGeneralIdentityResponse struct { + RequestDetails *IdentityExecutionEntry `protobuf:"bytes,1,opt,name=request_details,json=requestDetails,proto3" json:"request_details,omitempty"` } -func (m *QueryKeyshareReqResponse) Reset() { *m = QueryKeyshareReqResponse{} } -func (m *QueryKeyshareReqResponse) String() string { return proto.CompactTextString(m) } -func (*QueryKeyshareReqResponse) ProtoMessage() {} -func (*QueryKeyshareReqResponse) Descriptor() ([]byte, []int) { +func (m *QueryGeneralIdentityResponse) Reset() { *m = QueryGeneralIdentityResponse{} } +func (m *QueryGeneralIdentityResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGeneralIdentityResponse) ProtoMessage() {} +func (*QueryGeneralIdentityResponse) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{3} } -func (m *QueryKeyshareReqResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryGeneralIdentityResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryKeyshareReqResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGeneralIdentityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryKeyshareReqResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGeneralIdentityResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -186,42 +186,42 @@ func (m *QueryKeyshareReqResponse) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *QueryKeyshareReqResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryKeyshareReqResponse.Merge(m, src) +func (m *QueryGeneralIdentityResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGeneralIdentityResponse.Merge(m, src) } -func (m *QueryKeyshareReqResponse) XXX_Size() int { +func (m *QueryGeneralIdentityResponse) XXX_Size() int { return m.Size() } -func (m *QueryKeyshareReqResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryKeyshareReqResponse.DiscardUnknown(m) +func (m *QueryGeneralIdentityResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGeneralIdentityResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryKeyshareReqResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryGeneralIdentityResponse proto.InternalMessageInfo -func (m *QueryKeyshareReqResponse) GetKeyshare() *IdentityExecutionQueue { +func (m *QueryGeneralIdentityResponse) GetRequestDetails() *IdentityExecutionEntry { if m != nil { - return m.Keyshare + return m.RequestDetails } return nil } -// QueryKeyshareReqAllRequest is request type for the Query/KeyshareReqAll RPC method. -type QueryKeyshareReqAllRequest struct { +// QueryGeneralIdentityAllRequest is request type for the Query/GeneralIdentityAll RPC method. +type QueryGeneralIdentityAllRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryKeyshareReqAllRequest) Reset() { *m = QueryKeyshareReqAllRequest{} } -func (m *QueryKeyshareReqAllRequest) String() string { return proto.CompactTextString(m) } -func (*QueryKeyshareReqAllRequest) ProtoMessage() {} -func (*QueryKeyshareReqAllRequest) Descriptor() ([]byte, []int) { +func (m *QueryGeneralIdentityAllRequest) Reset() { *m = QueryGeneralIdentityAllRequest{} } +func (m *QueryGeneralIdentityAllRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGeneralIdentityAllRequest) ProtoMessage() {} +func (*QueryGeneralIdentityAllRequest) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{4} } -func (m *QueryKeyshareReqAllRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryGeneralIdentityAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryKeyshareReqAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGeneralIdentityAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryKeyshareReqAllRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGeneralIdentityAllRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -231,43 +231,43 @@ func (m *QueryKeyshareReqAllRequest) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *QueryKeyshareReqAllRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryKeyshareReqAllRequest.Merge(m, src) +func (m *QueryGeneralIdentityAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGeneralIdentityAllRequest.Merge(m, src) } -func (m *QueryKeyshareReqAllRequest) XXX_Size() int { +func (m *QueryGeneralIdentityAllRequest) XXX_Size() int { return m.Size() } -func (m *QueryKeyshareReqAllRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryKeyshareReqAllRequest.DiscardUnknown(m) +func (m *QueryGeneralIdentityAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGeneralIdentityAllRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryKeyshareReqAllRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryGeneralIdentityAllRequest proto.InternalMessageInfo -func (m *QueryKeyshareReqAllRequest) GetPagination() *query.PageRequest { +func (m *QueryGeneralIdentityAllRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } -// QueryKeyshareReqAllResponse is response type for the Query/KeyshareReqAll RPC method. -type QueryKeyshareReqAllResponse struct { - Keyshares []*IdentityExecutionQueue `protobuf:"bytes,1,rep,name=keyshares,proto3" json:"keyshares,omitempty"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +// QueryGeneralIdentityAllResponse is response type for the Query/GeneralIdentityAll RPC method. +type QueryGeneralIdentityAllResponse struct { + RequestDetailsList []*IdentityExecutionEntry `protobuf:"bytes,1,rep,name=request_details_list,json=requestDetailsList,proto3" json:"request_details_list,omitempty"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryKeyshareReqAllResponse) Reset() { *m = QueryKeyshareReqAllResponse{} } -func (m *QueryKeyshareReqAllResponse) String() string { return proto.CompactTextString(m) } -func (*QueryKeyshareReqAllResponse) ProtoMessage() {} -func (*QueryKeyshareReqAllResponse) Descriptor() ([]byte, []int) { +func (m *QueryGeneralIdentityAllResponse) Reset() { *m = QueryGeneralIdentityAllResponse{} } +func (m *QueryGeneralIdentityAllResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGeneralIdentityAllResponse) ProtoMessage() {} +func (*QueryGeneralIdentityAllResponse) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{5} } -func (m *QueryKeyshareReqAllResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryGeneralIdentityAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryKeyshareReqAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGeneralIdentityAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryKeyshareReqAllResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGeneralIdentityAllResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -277,26 +277,26 @@ func (m *QueryKeyshareReqAllResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryKeyshareReqAllResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryKeyshareReqAllResponse.Merge(m, src) +func (m *QueryGeneralIdentityAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGeneralIdentityAllResponse.Merge(m, src) } -func (m *QueryKeyshareReqAllResponse) XXX_Size() int { +func (m *QueryGeneralIdentityAllResponse) XXX_Size() int { return m.Size() } -func (m *QueryKeyshareReqAllResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryKeyshareReqAllResponse.DiscardUnknown(m) +func (m *QueryGeneralIdentityAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGeneralIdentityAllResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryKeyshareReqAllResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryGeneralIdentityAllResponse proto.InternalMessageInfo -func (m *QueryKeyshareReqAllResponse) GetKeyshares() []*IdentityExecutionQueue { +func (m *QueryGeneralIdentityAllResponse) GetRequestDetailsList() []*IdentityExecutionEntry { if m != nil { - return m.Keyshares + return m.RequestDetailsList } return nil } -func (m *QueryKeyshareReqAllResponse) GetPagination() *query.PageResponse { +func (m *QueryGeneralIdentityAllResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } @@ -949,23 +949,23 @@ func (m *QueryPubKeyResponse) GetQueuedPubKey() types.QueuedPublicKey { return types.QueuedPublicKey{} } -// QueryPrivateKeyshareReqRequest is request type for the Query/PrivateKeyshareReq RPC method. -type QueryPrivateKeyshareReqRequest struct { +// QueryPrivateIdentityRequest is request type for the Query/PrivateIdentity RPC method. +type QueryPrivateIdentityRequest struct { ReqId string `protobuf:"bytes,1,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } -func (m *QueryPrivateKeyshareReqRequest) Reset() { *m = QueryPrivateKeyshareReqRequest{} } -func (m *QueryPrivateKeyshareReqRequest) String() string { return proto.CompactTextString(m) } -func (*QueryPrivateKeyshareReqRequest) ProtoMessage() {} -func (*QueryPrivateKeyshareReqRequest) Descriptor() ([]byte, []int) { +func (m *QueryPrivateIdentityRequest) Reset() { *m = QueryPrivateIdentityRequest{} } +func (m *QueryPrivateIdentityRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPrivateIdentityRequest) ProtoMessage() {} +func (*QueryPrivateIdentityRequest) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{20} } -func (m *QueryPrivateKeyshareReqRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryPrivateIdentityRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryPrivateKeyshareReqRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPrivateIdentityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryPrivateKeyshareReqRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPrivateIdentityRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -975,45 +975,45 @@ func (m *QueryPrivateKeyshareReqRequest) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *QueryPrivateKeyshareReqRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPrivateKeyshareReqRequest.Merge(m, src) +func (m *QueryPrivateIdentityRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPrivateIdentityRequest.Merge(m, src) } -func (m *QueryPrivateKeyshareReqRequest) XXX_Size() int { +func (m *QueryPrivateIdentityRequest) XXX_Size() int { return m.Size() } -func (m *QueryPrivateKeyshareReqRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPrivateKeyshareReqRequest.DiscardUnknown(m) +func (m *QueryPrivateIdentityRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPrivateIdentityRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryPrivateKeyshareReqRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryPrivateIdentityRequest proto.InternalMessageInfo -func (m *QueryPrivateKeyshareReqRequest) GetReqId() string { +func (m *QueryPrivateIdentityRequest) GetReqId() string { if m != nil { return m.ReqId } return "" } -// QueryPrivateKeyshareReqResponse is response type for the Query/PrivateKeyshareReq RPC method. -type QueryPrivateKeyshareReqResponse struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` - Pubkey string `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - EncryptedKeyshares []*types.EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` +// QueryPrivateIdentityResponse is response type for the Query/PrivateIdentity RPC method. +type QueryPrivateIdentityResponse struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` + Pubkey string `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + PrivateDecryptionKeys []*types.PrivateDecryptionKey `protobuf:"bytes,4,rep,name=private_decryption_keys,json=privateDecryptionKeys,proto3" json:"private_decryption_keys,omitempty"` } -func (m *QueryPrivateKeyshareReqResponse) Reset() { *m = QueryPrivateKeyshareReqResponse{} } -func (m *QueryPrivateKeyshareReqResponse) String() string { return proto.CompactTextString(m) } -func (*QueryPrivateKeyshareReqResponse) ProtoMessage() {} -func (*QueryPrivateKeyshareReqResponse) Descriptor() ([]byte, []int) { +func (m *QueryPrivateIdentityResponse) Reset() { *m = QueryPrivateIdentityResponse{} } +func (m *QueryPrivateIdentityResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPrivateIdentityResponse) ProtoMessage() {} +func (*QueryPrivateIdentityResponse) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{21} } -func (m *QueryPrivateKeyshareReqResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryPrivateIdentityResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryPrivateKeyshareReqResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPrivateIdentityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryPrivateKeyshareReqResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPrivateIdentityResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1023,42 +1023,42 @@ func (m *QueryPrivateKeyshareReqResponse) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (m *QueryPrivateKeyshareReqResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPrivateKeyshareReqResponse.Merge(m, src) +func (m *QueryPrivateIdentityResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPrivateIdentityResponse.Merge(m, src) } -func (m *QueryPrivateKeyshareReqResponse) XXX_Size() int { +func (m *QueryPrivateIdentityResponse) XXX_Size() int { return m.Size() } -func (m *QueryPrivateKeyshareReqResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPrivateKeyshareReqResponse.DiscardUnknown(m) +func (m *QueryPrivateIdentityResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPrivateIdentityResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryPrivateKeyshareReqResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryPrivateIdentityResponse proto.InternalMessageInfo -func (m *QueryPrivateKeyshareReqResponse) GetCreator() string { +func (m *QueryPrivateIdentityResponse) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *QueryPrivateKeyshareReqResponse) GetReqId() string { +func (m *QueryPrivateIdentityResponse) GetReqId() string { if m != nil { return m.ReqId } return "" } -func (m *QueryPrivateKeyshareReqResponse) GetPubkey() string { +func (m *QueryPrivateIdentityResponse) GetPubkey() string { if m != nil { return m.Pubkey } return "" } -func (m *QueryPrivateKeyshareReqResponse) GetEncryptedKeyshares() []*types.EncryptedKeyshare { +func (m *QueryPrivateIdentityResponse) GetPrivateDecryptionKeys() []*types.PrivateDecryptionKey { if m != nil { - return m.EncryptedKeyshares + return m.PrivateDecryptionKeys } return nil } @@ -1172,10 +1172,10 @@ func (m *QueryDecryptDataResponse) GetDecryptedData() string { func init() { proto.RegisterType((*QueryParamsRequest)(nil), "fairyring.pep.QueryParamsRequest") proto.RegisterType((*QueryParamsResponse)(nil), "fairyring.pep.QueryParamsResponse") - proto.RegisterType((*QueryKeyshareReqRequest)(nil), "fairyring.pep.QueryKeyshareReqRequest") - proto.RegisterType((*QueryKeyshareReqResponse)(nil), "fairyring.pep.QueryKeyshareReqResponse") - proto.RegisterType((*QueryKeyshareReqAllRequest)(nil), "fairyring.pep.QueryKeyshareReqAllRequest") - proto.RegisterType((*QueryKeyshareReqAllResponse)(nil), "fairyring.pep.QueryKeyshareReqAllResponse") + proto.RegisterType((*QueryGeneralIdentityRequest)(nil), "fairyring.pep.QueryGeneralIdentityRequest") + proto.RegisterType((*QueryGeneralIdentityResponse)(nil), "fairyring.pep.QueryGeneralIdentityResponse") + proto.RegisterType((*QueryGeneralIdentityAllRequest)(nil), "fairyring.pep.QueryGeneralIdentityAllRequest") + proto.RegisterType((*QueryGeneralIdentityAllResponse)(nil), "fairyring.pep.QueryGeneralIdentityAllResponse") proto.RegisterType((*QueryEncryptedTxRequest)(nil), "fairyring.pep.QueryEncryptedTxRequest") proto.RegisterType((*QueryEncryptedTxResponse)(nil), "fairyring.pep.QueryEncryptedTxResponse") proto.RegisterType((*QueryEncryptedTxAllRequest)(nil), "fairyring.pep.QueryEncryptedTxAllRequest") @@ -1190,8 +1190,8 @@ func init() { proto.RegisterType((*QueryPepNonceAllResponse)(nil), "fairyring.pep.QueryPepNonceAllResponse") proto.RegisterType((*QueryPubKeyRequest)(nil), "fairyring.pep.QueryPubKeyRequest") proto.RegisterType((*QueryPubKeyResponse)(nil), "fairyring.pep.QueryPubKeyResponse") - proto.RegisterType((*QueryPrivateKeyshareReqRequest)(nil), "fairyring.pep.QueryPrivateKeyshareReqRequest") - proto.RegisterType((*QueryPrivateKeyshareReqResponse)(nil), "fairyring.pep.QueryPrivateKeyshareReqResponse") + proto.RegisterType((*QueryPrivateIdentityRequest)(nil), "fairyring.pep.QueryPrivateIdentityRequest") + proto.RegisterType((*QueryPrivateIdentityResponse)(nil), "fairyring.pep.QueryPrivateIdentityResponse") proto.RegisterType((*QueryDecryptDataRequest)(nil), "fairyring.pep.QueryDecryptDataRequest") proto.RegisterType((*QueryDecryptDataResponse)(nil), "fairyring.pep.QueryDecryptDataResponse") } @@ -1199,91 +1199,93 @@ func init() { func init() { proto.RegisterFile("fairyring/pep/query.proto", fileDescriptor_dd36cf23112e8be0) } var fileDescriptor_dd36cf23112e8be0 = []byte{ - // 1337 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcf, 0x6f, 0xe3, 0xc4, - 0x17, 0xaf, 0xfb, 0x23, 0xdb, 0x4e, 0x9a, 0xea, 0xfb, 0x9d, 0x6d, 0xb7, 0xa9, 0x77, 0x9b, 0x76, - 0x27, 0xed, 0x6e, 0x29, 0xda, 0x78, 0x77, 0x0b, 0x02, 0xb1, 0xe2, 0xd0, 0x6e, 0xb7, 0xb0, 0x0a, - 0xb0, 0x6d, 0xb6, 0x12, 0x12, 0x12, 0x8a, 0x26, 0xf1, 0xe0, 0x5a, 0x4d, 0x6c, 0xc7, 0x76, 0x4a, - 0xa3, 0x10, 0x09, 0xb8, 0xc0, 0x81, 0x03, 0x12, 0x47, 0x0e, 0x5c, 0x91, 0xb8, 0x20, 0x71, 0x00, - 0xc1, 0x85, 0xe3, 0x1e, 0x57, 0xe2, 0xc2, 0x09, 0xa1, 0x16, 0x89, 0x1b, 0x7f, 0x03, 0xf2, 0xf8, - 0xd9, 0xb1, 0x9d, 0x71, 0xd3, 0x8a, 0xdd, 0x4b, 0x55, 0xbf, 0x79, 0x3f, 0x3e, 0xef, 0xc7, 0xbc, - 0x8f, 0x1d, 0xb4, 0xf0, 0x01, 0xd5, 0xed, 0x8e, 0xad, 0x1b, 0x9a, 0x62, 0x31, 0x4b, 0x69, 0xb5, - 0x99, 0xdd, 0x29, 0x59, 0xb6, 0xe9, 0x9a, 0x38, 0x17, 0x1e, 0x95, 0x2c, 0x66, 0xc9, 0xff, 0xa7, - 0x4d, 0xdd, 0x30, 0x15, 0xfe, 0xd7, 0xd7, 0x90, 0x67, 0x35, 0x53, 0x33, 0xf9, 0xbf, 0x8a, 0xf7, - 0x1f, 0x48, 0xaf, 0x69, 0xa6, 0xa9, 0x35, 0x98, 0x42, 0x2d, 0x5d, 0xa1, 0x86, 0x61, 0xba, 0xd4, - 0xd5, 0x4d, 0xc3, 0x81, 0xd3, 0xf5, 0xba, 0xe9, 0x34, 0x4d, 0x47, 0xa9, 0x51, 0x87, 0xf9, 0xe1, - 0x94, 0xa3, 0x3b, 0x35, 0xe6, 0xd2, 0x3b, 0x8a, 0x45, 0x35, 0xdd, 0xe0, 0xca, 0xa0, 0x2b, 0xc7, - 0xc1, 0x59, 0xd4, 0xa6, 0xcd, 0xc0, 0xcf, 0x72, 0xfc, 0x8c, 0x19, 0x75, 0xbb, 0x63, 0xb9, 0x4c, - 0xad, 0xba, 0xc7, 0xa0, 0xb1, 0x98, 0xb0, 0x66, 0x56, 0xd5, 0x30, 0x8d, 0x3a, 0x83, 0xe3, 0x62, - 0xff, 0xb8, 0x6e, 0x36, 0x9b, 0xa6, 0xa1, 0x38, 0x07, 0xd4, 0xf6, 0x1c, 0x74, 0x2c, 0x06, 0x51, - 0xc8, 0x2c, 0xc2, 0x7b, 0x1e, 0xc6, 0x5d, 0x1e, 0xba, 0xc2, 0x5a, 0x6d, 0xe6, 0xb8, 0xe4, 0x11, - 0xba, 0x1c, 0x93, 0x3a, 0x96, 0x69, 0x38, 0x0c, 0xbf, 0x8a, 0x32, 0x3e, 0xc4, 0xbc, 0xb4, 0x2c, - 0xad, 0x65, 0xef, 0xce, 0x95, 0x62, 0x15, 0x2c, 0xf9, 0xea, 0x5b, 0x53, 0x4f, 0xfe, 0x58, 0x1a, - 0xf9, 0xf6, 0xef, 0xef, 0xd7, 0xa5, 0x0a, 0xe8, 0x93, 0xdb, 0x68, 0x9e, 0x3b, 0x2c, 0xb3, 0x0e, - 0x07, 0x51, 0x61, 0x2d, 0x88, 0x85, 0xe7, 0x50, 0xc6, 0x66, 0xad, 0xaa, 0xae, 0x72, 0xa7, 0x53, - 0x95, 0x09, 0x9b, 0xb5, 0x1e, 0xaa, 0xe4, 0x7d, 0x94, 0x1f, 0xb4, 0x00, 0x1c, 0x9b, 0x68, 0xf2, - 0x10, 0xc4, 0x80, 0x64, 0x35, 0x81, 0xe4, 0xa1, 0xca, 0x0c, 0x57, 0x77, 0x3b, 0x0f, 0x8e, 0x59, - 0xbd, 0xed, 0x15, 0x7c, 0xaf, 0xcd, 0xda, 0xac, 0x12, 0x9a, 0x11, 0x15, 0xc9, 0x49, 0xf7, 0x9b, - 0x8d, 0x46, 0x80, 0x69, 0x07, 0xa1, 0x7e, 0xaf, 0x20, 0xc4, 0x8d, 0x92, 0xdf, 0xd8, 0x92, 0xd7, - 0xd8, 0x92, 0x3f, 0x47, 0xd0, 0xd8, 0xd2, 0x2e, 0xd5, 0x18, 0xd8, 0x56, 0x22, 0x96, 0xe4, 0x3b, - 0x09, 0x5d, 0x15, 0x86, 0x81, 0x44, 0xee, 0xa3, 0xa9, 0x00, 0x91, 0x57, 0xd3, 0xb1, 0xf3, 0x67, - 0xd2, 0xb7, 0xc3, 0x6f, 0xc4, 0xc0, 0x8e, 0x72, 0xb0, 0x37, 0x87, 0x82, 0xf5, 0x11, 0xc4, 0xd0, - 0xee, 0x43, 0x93, 0x1e, 0x04, 0xa3, 0xb6, 0x7f, 0x1c, 0x14, 0xa4, 0x88, 0x72, 0x2e, 0xb5, 0x35, - 0xe6, 0x56, 0x0f, 0x98, 0xae, 0x1d, 0xb8, 0xbc, 0x26, 0xe3, 0x95, 0x69, 0x5f, 0xf8, 0x26, 0x97, - 0xe1, 0x59, 0x34, 0xa1, 0x1b, 0x2a, 0x3b, 0xe6, 0x18, 0xc6, 0x2b, 0xfe, 0x03, 0xa9, 0x42, 0x23, - 0x63, 0x5e, 0xc3, 0xfc, 0xa7, 0xa3, 0x73, 0x0d, 0x95, 0x96, 0x13, 0x25, 0x88, 0x58, 0x6e, 0x8d, - 0x7b, 0xb3, 0x55, 0xc9, 0xb2, 0xbe, 0x28, 0x6c, 0x65, 0x44, 0xed, 0x39, 0xb4, 0xf2, 0x97, 0xa0, - 0x95, 0xc9, 0x30, 0x90, 0xca, 0x63, 0x84, 0xa3, 0xa9, 0x54, 0xa9, 0x6d, 0xd3, 0x0e, 0xf4, 0x74, - 0x29, 0x3d, 0xa1, 0x4d, 0x4f, 0x0d, 0xb2, 0xfa, 0x1f, 0x4b, 0xc8, 0x9f, 0x5d, 0x6b, 0xcb, 0x68, - 0x45, 0x00, 0x7e, 0xc7, 0x36, 0x9b, 0x7e, 0xef, 0x2e, 0xd2, 0x67, 0xf2, 0x11, 0x5a, 0x1d, 0xe2, - 0x6c, 0x48, 0x4d, 0xa4, 0xff, 0x50, 0x13, 0x22, 0xc3, 0x3c, 0xbd, 0x45, 0x5d, 0xe6, 0xb8, 0x31, - 0xf8, 0x64, 0x03, 0x2d, 0x08, 0xce, 0x00, 0xcd, 0x15, 0x94, 0x89, 0x25, 0x05, 0x4f, 0xe4, 0x36, - 0x9a, 0xf5, 0x97, 0x1d, 0xb3, 0xde, 0xf1, 0xd6, 0x67, 0x50, 0x8b, 0x3c, 0xba, 0x44, 0x55, 0xd5, - 0x66, 0x8e, 0x03, 0x9b, 0x29, 0x78, 0x24, 0x8f, 0xd1, 0x5c, 0xc2, 0x02, 0x42, 0xbc, 0x86, 0xa6, - 0xc2, 0x2d, 0x0c, 0x79, 0xce, 0x27, 0x77, 0x24, 0xd8, 0x40, 0x7e, 0x93, 0x16, 0x3c, 0x13, 0x0a, - 0xb7, 0x2f, 0x50, 0x78, 0x0e, 0x33, 0xfc, 0x8d, 0x04, 0xb5, 0x8b, 0xc5, 0x10, 0x63, 0x1f, 0xbb, - 0x00, 0xf6, 0x67, 0x37, 0xa7, 0x21, 0x1d, 0xb5, 0x6b, 0x65, 0xd6, 0x09, 0xda, 0xfa, 0x83, 0x14, - 0xf0, 0x11, 0x88, 0x01, 0xf2, 0xdb, 0x68, 0x86, 0xd6, 0x5d, 0xfd, 0x88, 0x55, 0xad, 0x76, 0xad, - 0x7a, 0xc8, 0x82, 0xd9, 0xba, 0x1e, 0xc1, 0xed, 0x53, 0x5f, 0x69, 0x93, 0xeb, 0xed, 0xb6, 0x6b, - 0x0d, 0xbd, 0x5e, 0x66, 0xc1, 0x74, 0x4d, 0xd3, 0x40, 0x5c, 0x66, 0x1d, 0xcf, 0x5d, 0xcb, 0x5b, - 0xae, 0x6a, 0xe8, 0x6e, 0x34, 0xcd, 0x1d, 0x5f, 0xc2, 0xea, 0x80, 0xbb, 0x56, 0x20, 0x2e, 0xb3, - 0x0e, 0x79, 0x05, 0x15, 0x7c, 0xd0, 0xb6, 0x7e, 0x44, 0x5d, 0x76, 0x7e, 0xea, 0xfb, 0x55, 0x42, - 0x4b, 0xa9, 0x96, 0x90, 0x7a, 0x1e, 0x5d, 0xaa, 0xdb, 0x8c, 0xba, 0xa6, 0x1d, 0x0c, 0x27, 0x3c, - 0x46, 0x9c, 0x8e, 0x46, 0x9c, 0x7a, 0xd3, 0x6f, 0xb5, 0x6b, 0x5e, 0x52, 0x63, 0x5c, 0x0c, 0x4f, - 0x78, 0x1f, 0x5d, 0xee, 0xdf, 0xd1, 0x3e, 0x19, 0x4d, 0xf0, 0x01, 0x28, 0x0e, 0x66, 0x1e, 0xde, - 0xd3, 0x10, 0x55, 0xff, 0x8e, 0x07, 0x22, 0x87, 0xf4, 0x60, 0x98, 0xb7, 0x19, 0x3f, 0xda, 0xa6, - 0x2e, 0x0d, 0x92, 0xee, 0x03, 0x91, 0x62, 0x40, 0x8a, 0x28, 0x47, 0x35, 0xcd, 0x0e, 0x31, 0x00, - 0xfc, 0x69, 0x4f, 0x18, 0x38, 0xc6, 0xab, 0x68, 0xa6, 0x8f, 0x56, 0xa5, 0x2e, 0x85, 0x6c, 0x72, - 0xa1, 0xd4, 0x0b, 0x45, 0x36, 0x61, 0xce, 0x63, 0xe1, 0xa1, 0x72, 0xab, 0x68, 0x46, 0x65, 0x31, - 0x17, 0x3e, 0x8e, 0x5c, 0x28, 0xf5, 0xd4, 0xef, 0xfe, 0x93, 0x43, 0x13, 0xdc, 0x07, 0x36, 0x50, - 0xc6, 0x7f, 0xb1, 0xc1, 0xd7, 0x13, 0xf7, 0x61, 0xf0, 0xcd, 0x49, 0x26, 0x67, 0xa9, 0xf8, 0x08, - 0xc8, 0xe2, 0xa7, 0xbf, 0xfd, 0xf5, 0xd5, 0xe8, 0x3c, 0x9e, 0x53, 0x44, 0xaf, 0x7f, 0xf8, 0x6b, - 0x09, 0x65, 0x23, 0xdb, 0x10, 0xdf, 0x10, 0xb9, 0x1c, 0xe4, 0x68, 0xf9, 0xe6, 0x50, 0x3d, 0x88, - 0x7f, 0x8f, 0xc7, 0x7f, 0x19, 0x6f, 0x28, 0xe9, 0xaf, 0x98, 0x4a, 0x37, 0xc6, 0x03, 0x3d, 0xa5, - 0xcb, 0xd9, 0xbc, 0x87, 0xbf, 0x90, 0xd0, 0x4c, 0x7c, 0xf1, 0xe3, 0x17, 0x86, 0x04, 0xee, 0x6f, - 0x32, 0x79, 0xfd, 0x3c, 0xaa, 0x00, 0xb3, 0xc8, 0x61, 0x2e, 0xe2, 0xab, 0x67, 0xc0, 0xc4, 0x3f, - 0x4b, 0x28, 0x9f, 0xc6, 0x43, 0x78, 0x63, 0x78, 0xb4, 0x01, 0x0a, 0x94, 0x5f, 0xba, 0x98, 0x11, - 0x80, 0xdd, 0xe0, 0x60, 0x6f, 0xe1, 0x17, 0x2f, 0x50, 0x53, 0xfc, 0x99, 0x84, 0xa6, 0xa3, 0x54, - 0x85, 0x85, 0x2d, 0x14, 0x10, 0x9d, 0xbc, 0x36, 0x5c, 0x11, 0x80, 0xad, 0x70, 0x60, 0x05, 0x7c, - 0x2d, 0x01, 0xac, 0xc1, 0x95, 0x01, 0x0a, 0xfe, 0x44, 0x42, 0x93, 0xc1, 0x76, 0xc7, 0x45, 0xe1, - 0x0c, 0xc7, 0xd9, 0x51, 0x5e, 0x39, 0x5b, 0x09, 0xa2, 0xaf, 0xf3, 0xe8, 0x2b, 0x98, 0x28, 0x29, - 0xdf, 0x2a, 0x4a, 0x17, 0x48, 0xb5, 0x87, 0x3f, 0x96, 0x50, 0x36, 0x42, 0x4c, 0xe2, 0xb9, 0x1f, - 0x64, 0x47, 0xf1, 0xdc, 0x0b, 0x18, 0x8e, 0x2c, 0x73, 0x30, 0x32, 0xce, 0xa7, 0x81, 0xc1, 0x26, - 0xca, 0x00, 0x17, 0x88, 0xaf, 0x7a, 0x94, 0x95, 0x52, 0xae, 0x7a, 0x8c, 0xa1, 0x48, 0x81, 0x87, - 0xcc, 0xe3, 0x2b, 0xc9, 0x90, 0x3e, 0xc1, 0xe0, 0xcf, 0x25, 0x94, 0x8d, 0xac, 0x77, 0x71, 0xce, - 0x83, 0xcc, 0x21, 0xce, 0x59, 0xc0, 0x13, 0x64, 0x8d, 0x03, 0x20, 0x78, 0x39, 0x01, 0x20, 0xd8, - 0xb2, 0x4a, 0xd7, 0x27, 0x8b, 0x9e, 0x07, 0x65, 0x26, 0xfe, 0x99, 0x22, 0xbe, 0xd8, 0xc2, 0x2f, - 0x26, 0xf1, 0xc5, 0x16, 0x7f, 0xf5, 0x90, 0x25, 0x8e, 0x69, 0x01, 0xcf, 0xa7, 0x60, 0xc2, 0x3f, - 0x49, 0x08, 0x0f, 0x72, 0x1f, 0xbe, 0x25, 0x2c, 0x78, 0x1a, 0xbb, 0xca, 0xa5, 0xf3, 0xaa, 0x03, - 0xac, 0xfb, 0x1c, 0xd6, 0xeb, 0xf8, 0x9e, 0xb2, 0x43, 0x75, 0xbb, 0xd6, 0x30, 0xeb, 0x87, 0x09, - 0x80, 0xce, 0x81, 0xf9, 0x61, 0xd5, 0xf2, 0x3d, 0x84, 0x3c, 0x55, 0xb5, 0x59, 0xab, 0x5f, 0xc5, - 0x1f, 0x25, 0x94, 0x8d, 0xb0, 0x8e, 0xb8, 0xa1, 0x83, 0xac, 0x28, 0x6e, 0xa8, 0x80, 0xbe, 0xc8, - 0xbb, 0x1c, 0xe5, 0x1e, 0x7e, 0x94, 0x8a, 0x12, 0x78, 0x8c, 0x73, 0x9b, 0xd2, 0xf5, 0xd9, 0xb5, - 0xa7, 0x74, 0x63, 0xe4, 0xda, 0x53, 0xba, 0x71, 0x1e, 0xed, 0x6d, 0x6d, 0x3f, 0x39, 0x29, 0x48, - 0x4f, 0x4f, 0x0a, 0xd2, 0x9f, 0x27, 0x05, 0xe9, 0xcb, 0xd3, 0xc2, 0xc8, 0xd3, 0xd3, 0xc2, 0xc8, - 0xef, 0xa7, 0x85, 0x91, 0xf7, 0xd6, 0x35, 0xdd, 0x3d, 0x68, 0xd7, 0xbc, 0x37, 0x00, 0x61, 0xd0, - 0x63, 0x1e, 0x96, 0xff, 0xaa, 0x50, 0xcb, 0xf0, 0x9f, 0x15, 0x36, 0xfe, 0x0d, 0x00, 0x00, 0xff, - 0xff, 0x27, 0x9b, 0xe7, 0xea, 0x77, 0x11, 0x00, 0x00, + // 1364 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xdf, 0x6f, 0xdb, 0x54, + 0x14, 0xae, 0xbb, 0x2e, 0xdb, 0x6e, 0xdb, 0x0c, 0x2e, 0xed, 0x9a, 0x79, 0x5b, 0xda, 0xdd, 0xb6, + 0xdb, 0xc8, 0xb4, 0x78, 0x6b, 0x8b, 0x84, 0xc6, 0x53, 0x4b, 0xdb, 0x31, 0x65, 0x6c, 0x6d, 0x36, + 0x69, 0x12, 0x0f, 0x58, 0x37, 0xf1, 0xc5, 0xb5, 0x96, 0xd8, 0x8e, 0x7d, 0x53, 0x35, 0x0a, 0x91, + 0x00, 0x21, 0xf1, 0xc2, 0x03, 0x12, 0x8f, 0x20, 0xf1, 0x86, 0x78, 0x44, 0xe2, 0x01, 0x09, 0x1e, + 0x79, 0x60, 0x8f, 0x93, 0x78, 0xe1, 0x09, 0xa1, 0x16, 0x89, 0x7f, 0x03, 0xf9, 0xfa, 0x38, 0xb1, + 0x9d, 0x9b, 0x26, 0x15, 0xdb, 0x4b, 0x55, 0x1f, 0x9f, 0x73, 0xbe, 0xef, 0xfc, 0xf0, 0xfd, 0xec, + 0xa0, 0x8b, 0x1f, 0x51, 0xcb, 0x6b, 0x79, 0x96, 0x6d, 0x6a, 0x2e, 0x73, 0xb5, 0x46, 0x93, 0x79, + 0xad, 0xa2, 0xeb, 0x39, 0xdc, 0xc1, 0xd3, 0xdd, 0x5b, 0x45, 0x97, 0xb9, 0xea, 0xeb, 0xb4, 0x6e, + 0xd9, 0x8e, 0x26, 0xfe, 0x86, 0x1e, 0xea, 0x8c, 0xe9, 0x98, 0x8e, 0xf8, 0x57, 0x0b, 0xfe, 0x03, + 0xeb, 0x65, 0xd3, 0x71, 0xcc, 0x1a, 0xd3, 0xa8, 0x6b, 0x69, 0xd4, 0xb6, 0x1d, 0x4e, 0xb9, 0xe5, + 0xd8, 0x3e, 0xdc, 0x2d, 0x54, 0x1d, 0xbf, 0xee, 0xf8, 0x5a, 0x85, 0xfa, 0x2c, 0x84, 0xd3, 0xf6, + 0xef, 0x54, 0x18, 0xa7, 0x77, 0x34, 0x97, 0x9a, 0x96, 0x2d, 0x9c, 0xc1, 0x57, 0x4d, 0x92, 0x73, + 0xa9, 0x47, 0xeb, 0x51, 0x9e, 0x85, 0xe4, 0x3d, 0x66, 0x57, 0xbd, 0x96, 0xcb, 0x99, 0xa1, 0xf3, + 0x03, 0xf0, 0xb8, 0x92, 0x8a, 0x66, 0xae, 0x6e, 0x3b, 0x76, 0x95, 0xc1, 0xed, 0xc5, 0xde, 0xed, + 0xaa, 0x53, 0xaf, 0x3b, 0xb6, 0xe6, 0xef, 0x51, 0x2f, 0x48, 0xd0, 0x72, 0x19, 0xa0, 0x90, 0x19, + 0x84, 0x77, 0x03, 0x8e, 0x3b, 0x02, 0xba, 0xcc, 0x1a, 0x4d, 0xe6, 0x73, 0xf2, 0x08, 0xbd, 0x91, + 0xb0, 0xfa, 0xae, 0x63, 0xfb, 0x0c, 0xbf, 0x8d, 0x32, 0x21, 0xc5, 0x9c, 0xb2, 0xa0, 0xdc, 0x98, + 0x5c, 0x99, 0x2d, 0x26, 0x3a, 0x58, 0x0c, 0xdd, 0x37, 0xce, 0x3d, 0xff, 0x6b, 0x7e, 0xec, 0x87, + 0x7f, 0x7f, 0x2c, 0x28, 0x65, 0xf0, 0x27, 0x6b, 0xe8, 0x92, 0x48, 0x78, 0x8f, 0xd9, 0xcc, 0xa3, + 0xb5, 0xfb, 0x06, 0xb3, 0xb9, 0xc5, 0x5b, 0x80, 0x87, 0x67, 0x51, 0xc6, 0x63, 0x0d, 0xdd, 0x32, + 0x44, 0xe2, 0x73, 0xe5, 0xd3, 0x1e, 0x6b, 0xdc, 0x37, 0x88, 0x8d, 0x2e, 0xcb, 0xa3, 0x80, 0xcf, + 0x43, 0x74, 0xde, 0x0b, 0x33, 0xe8, 0x06, 0xe3, 0xd4, 0xaa, 0x45, 0xc4, 0x96, 0x53, 0xc4, 0xa2, + 0xc8, 0xad, 0x03, 0x56, 0x6d, 0x06, 0xfd, 0xdf, 0xb2, 0xb9, 0xd7, 0x2a, 0x67, 0x21, 0x7a, 0x33, + 0x0c, 0x26, 0x7b, 0x28, 0x2f, 0xc3, 0x5b, 0xaf, 0xd5, 0x22, 0xa2, 0xdb, 0x08, 0xf5, 0x86, 0x08, + 0x60, 0xd7, 0x8a, 0xe1, 0xc4, 0x8b, 0xc1, 0xc4, 0x8b, 0xe1, 0x82, 0xc1, 0xc4, 0x8b, 0x3b, 0xd4, + 0x64, 0x10, 0x5b, 0x8e, 0x45, 0x92, 0xdf, 0x14, 0x34, 0x3f, 0x10, 0x0a, 0xaa, 0x7b, 0x8a, 0x66, + 0x52, 0xd5, 0xe9, 0x35, 0xcb, 0xe7, 0x39, 0x65, 0xe1, 0xd4, 0xe8, 0x25, 0xe2, 0x64, 0x89, 0x0f, + 0x2c, 0x9f, 0xe3, 0x7b, 0x89, 0x22, 0xc6, 0x45, 0x11, 0xd7, 0x87, 0x16, 0x11, 0xb2, 0x4a, 0x54, + 0xf1, 0x04, 0xcd, 0x89, 0x22, 0xb6, 0xa2, 0xdd, 0x7c, 0x72, 0x10, 0x35, 0x6a, 0x11, 0x4d, 0x73, + 0xea, 0x99, 0x8c, 0xeb, 0x7b, 0xcc, 0x32, 0xf7, 0xb8, 0xe8, 0xd5, 0x44, 0x79, 0x2a, 0x34, 0xbe, + 0x27, 0x6c, 0x78, 0x06, 0x9d, 0xb6, 0x6c, 0x83, 0x1d, 0x08, 0x0e, 0x13, 0xe5, 0xf0, 0x82, 0xe8, + 0x28, 0xd7, 0x9f, 0x15, 0x7a, 0xf2, 0x2e, 0x9a, 0x8a, 0x3f, 0x08, 0x30, 0x01, 0x35, 0xd5, 0x8b, + 0x58, 0xe4, 0xc6, 0x44, 0xb0, 0x8c, 0xe5, 0x49, 0xd6, 0x33, 0x11, 0x03, 0xa9, 0x69, 0x80, 0x57, + 0x30, 0xe2, 0x5f, 0x15, 0xd8, 0xf9, 0x34, 0x0c, 0x94, 0xf2, 0x18, 0xe1, 0x78, 0x29, 0x3a, 0xf5, + 0x3c, 0xda, 0x82, 0xe1, 0xce, 0x0f, 0x2e, 0x68, 0x3d, 0x70, 0x83, 0xaa, 0x5e, 0x63, 0x29, 0xfb, + 0xcb, 0x1b, 0x6d, 0x09, 0x2d, 0x49, 0xc8, 0x6f, 0x7b, 0x4e, 0x3d, 0x9c, 0xdd, 0x49, 0xe6, 0x4c, + 0x3e, 0x46, 0xcb, 0x43, 0x92, 0x0d, 0xe9, 0x89, 0xf2, 0x3f, 0x7a, 0x42, 0x54, 0xd8, 0xa7, 0x07, + 0x94, 0x33, 0x9f, 0x27, 0xe8, 0x93, 0x55, 0x74, 0x51, 0x72, 0x0f, 0xd8, 0x5c, 0x40, 0x99, 0x44, + 0x51, 0x70, 0x45, 0x6e, 0xa3, 0x99, 0xf0, 0x74, 0x64, 0xee, 0xc3, 0xe0, 0xbc, 0x8d, 0x7a, 0x91, + 0x43, 0x67, 0xa8, 0x61, 0x78, 0xcc, 0xf7, 0xe1, 0x18, 0x8b, 0x2e, 0xc9, 0x63, 0x34, 0x9b, 0x8a, + 0x00, 0x88, 0xbb, 0xe8, 0x5c, 0xf7, 0xd8, 0x86, 0x3a, 0xe7, 0xd2, 0x87, 0x2a, 0xc4, 0x40, 0x7d, + 0x67, 0x5d, 0xb8, 0x26, 0x14, 0x9e, 0xbe, 0xc8, 0xe1, 0x15, 0xec, 0xf0, 0x77, 0x0a, 0xf4, 0x2e, + 0x81, 0x21, 0xe7, 0x7e, 0xea, 0x04, 0xdc, 0x5f, 0xde, 0x9e, 0x76, 0xf5, 0xab, 0x59, 0x29, 0xb1, + 0x48, 0x4f, 0xc8, 0x4f, 0x4a, 0x24, 0x60, 0x60, 0x06, 0xca, 0xef, 0xa3, 0x2c, 0xad, 0x72, 0x6b, + 0x9f, 0xe9, 0x6e, 0xb3, 0xa2, 0x3f, 0x63, 0xd1, 0x6e, 0x5d, 0x8d, 0xf1, 0x0e, 0xb5, 0xb2, 0xb8, + 0x2e, 0xfc, 0x76, 0x9a, 0x95, 0x9a, 0x55, 0x2d, 0xb1, 0x68, 0xbb, 0xa6, 0x68, 0x64, 0x2e, 0xb1, + 0x56, 0x90, 0xae, 0xd1, 0x64, 0x4d, 0x66, 0x74, 0xd3, 0x8d, 0x0f, 0x4a, 0xb7, 0x2b, 0xfc, 0xfa, + 0xd2, 0x35, 0x22, 0x73, 0x89, 0xb5, 0xba, 0x22, 0xb9, 0xe3, 0x59, 0xfb, 0x94, 0xb3, 0x11, 0x45, + 0xf2, 0x77, 0x05, 0x54, 0xb2, 0x2f, 0x0c, 0x8a, 0xce, 0xa1, 0x33, 0x55, 0x8f, 0x51, 0xee, 0x78, + 0xd1, 0x5a, 0xc2, 0x65, 0x2c, 0xe3, 0x78, 0x2c, 0x63, 0xb0, 0xf7, 0x6e, 0xb3, 0x12, 0x94, 0x73, + 0x4a, 0x98, 0xe1, 0x0a, 0x7f, 0x88, 0xe6, 0xdc, 0x10, 0x43, 0x37, 0x98, 0x78, 0xc8, 0x2c, 0xc7, + 0x0e, 0xca, 0xf6, 0x73, 0x13, 0x62, 0xfc, 0xd7, 0xfa, 0xeb, 0x06, 0x52, 0x9b, 0x5d, 0xff, 0x60, + 0x1c, 0xb3, 0xae, 0xc4, 0xea, 0x93, 0x0e, 0x2c, 0x34, 0x98, 0x37, 0x29, 0xa7, 0x51, 0xed, 0x3d, + 0x4a, 0x4a, 0x82, 0xd2, 0x22, 0x9a, 0xa6, 0xa6, 0xe9, 0x09, 0x12, 0xc1, 0xcb, 0x0d, 0x14, 0x32, + 0x15, 0x18, 0x4b, 0x60, 0xc3, 0xcb, 0x28, 0xdb, 0x3b, 0x55, 0x0c, 0xca, 0x29, 0xd4, 0x35, 0xdd, + 0xb5, 0x06, 0x50, 0x64, 0x1d, 0x76, 0x3d, 0x01, 0x0f, 0x3d, 0x5c, 0x46, 0x59, 0x28, 0x39, 0x4a, + 0x11, 0xf2, 0x98, 0xee, 0x5a, 0x03, 0xf7, 0x95, 0xcf, 0xb3, 0xe8, 0xb4, 0xc8, 0x81, 0x6d, 0x94, + 0x09, 0xdf, 0x86, 0xf0, 0xd5, 0xd4, 0x33, 0xd1, 0xff, 0xba, 0xa5, 0x92, 0xe3, 0x5c, 0x42, 0x06, + 0xe4, 0xca, 0x67, 0x7f, 0xfc, 0xf3, 0xf5, 0xf8, 0x1c, 0x9e, 0xd5, 0x64, 0xef, 0x8c, 0xf8, 0x1b, + 0x05, 0x4d, 0xc6, 0x4e, 0x44, 0x7c, 0x4d, 0x96, 0xb2, 0x5f, 0xa7, 0xd5, 0xeb, 0x43, 0xfd, 0x00, + 0xff, 0x1d, 0x81, 0xff, 0x16, 0x5e, 0xd5, 0x06, 0xbf, 0x97, 0x6a, 0xed, 0x84, 0x16, 0x74, 0xb4, + 0xb6, 0x50, 0xf4, 0x0e, 0xfe, 0x52, 0x41, 0xd9, 0xe4, 0xe1, 0x8f, 0xdf, 0x1c, 0x02, 0xdc, 0x3b, + 0xcd, 0xd4, 0xc2, 0x28, 0xae, 0x40, 0x73, 0x51, 0xd0, 0xbc, 0x82, 0x2f, 0x1d, 0x43, 0x13, 0xff, + 0xa2, 0xa0, 0xdc, 0x20, 0x2d, 0xc2, 0xab, 0xc3, 0xd1, 0xfa, 0x64, 0x50, 0x5d, 0x3b, 0x59, 0x10, + 0x90, 0x5d, 0x15, 0x64, 0x6f, 0xe1, 0x9b, 0x27, 0xe8, 0x29, 0xfe, 0x42, 0x41, 0x53, 0x71, 0xb9, + 0xc2, 0xd2, 0x11, 0x4a, 0xc4, 0x4e, 0xbd, 0x31, 0xdc, 0x11, 0x88, 0x2d, 0x09, 0x62, 0x79, 0x7c, + 0x39, 0x45, 0xac, 0x26, 0x9c, 0x81, 0x0a, 0xfe, 0x54, 0x41, 0x67, 0xa3, 0x13, 0x1e, 0x2f, 0x4a, + 0x77, 0x38, 0xa9, 0x90, 0xea, 0xd2, 0xf1, 0x4e, 0x80, 0x5e, 0x10, 0xe8, 0x4b, 0x98, 0x68, 0x03, + 0x3e, 0x70, 0xb4, 0x36, 0x08, 0x6b, 0x07, 0x7f, 0xa2, 0xa0, 0xc9, 0x98, 0x38, 0xc9, 0xf7, 0xbe, + 0x5f, 0x21, 0xe5, 0x7b, 0x2f, 0x51, 0x39, 0xb2, 0x20, 0xc8, 0xa8, 0x38, 0x37, 0x88, 0x0c, 0x76, + 0x50, 0x06, 0xf4, 0x40, 0xfe, 0xa8, 0xc7, 0x95, 0x69, 0xc0, 0xa3, 0x9e, 0x50, 0x29, 0x92, 0x17, + 0x90, 0x39, 0x7c, 0x21, 0x0d, 0x19, 0x8a, 0x0c, 0xfe, 0x56, 0x41, 0xe7, 0x53, 0xdf, 0x0d, 0x58, + 0xfa, 0x8c, 0xc8, 0xbf, 0xb6, 0xd4, 0x9b, 0x23, 0xf9, 0x02, 0x99, 0xdb, 0x82, 0x4c, 0x01, 0xdf, + 0x48, 0x91, 0x31, 0x43, 0x7f, 0xdd, 0x82, 0x00, 0xad, 0x1d, 0x4a, 0x49, 0x27, 0xa0, 0x87, 0xfb, + 0x3f, 0x6b, 0xf0, 0xad, 0x11, 0x50, 0x63, 0x03, 0x2a, 0x8e, 0xea, 0x0e, 0x3c, 0xaf, 0x0b, 0x9e, + 0x57, 0xf1, 0xfc, 0x10, 0x9e, 0xf8, 0x7b, 0x05, 0x9d, 0x4f, 0x49, 0xa5, 0xbc, 0x7b, 0x72, 0x19, + 0x96, 0x77, 0x6f, 0x80, 0xf6, 0x92, 0xbb, 0x82, 0xd5, 0x1a, 0x5e, 0xd1, 0xb6, 0xa9, 0xe5, 0x55, + 0x6a, 0x4e, 0xf5, 0x59, 0x7a, 0xa8, 0xa0, 0xa8, 0xfd, 0x7d, 0xfc, 0x59, 0x41, 0x93, 0x31, 0x2d, + 0x92, 0xaf, 0x76, 0xbf, 0x56, 0xca, 0x57, 0x5b, 0x22, 0x6a, 0xe4, 0xa9, 0x20, 0xb7, 0x8b, 0x1f, + 0x0d, 0x24, 0x07, 0xea, 0x26, 0x14, 0x4f, 0x6b, 0x87, 0x9a, 0xdb, 0xd1, 0xda, 0x09, 0xc9, 0xed, + 0x68, 0xed, 0xa4, 0xba, 0x76, 0x36, 0x36, 0x9f, 0x1f, 0xe6, 0x95, 0x17, 0x87, 0x79, 0xe5, 0xef, + 0xc3, 0xbc, 0xf2, 0xd5, 0x51, 0x7e, 0xec, 0xc5, 0x51, 0x7e, 0xec, 0xcf, 0xa3, 0xfc, 0xd8, 0x07, + 0x05, 0xd3, 0xe2, 0x7b, 0xcd, 0x4a, 0xf0, 0x76, 0x20, 0x05, 0x3d, 0x10, 0xb0, 0xe2, 0x07, 0x8a, + 0x4a, 0x46, 0xfc, 0x42, 0xb1, 0xfa, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcd, 0xd8, 0xe0, 0x49, + 0xc2, 0x11, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1314,12 +1316,12 @@ type QueryClient interface { PepNonceAll(ctx context.Context, in *QueryPepNonceAllRequest, opts ...grpc.CallOption) (*QueryPepNonceAllResponse, error) // Queries the public keys PubKey(ctx context.Context, in *QueryPubKeyRequest, opts ...grpc.CallOption) (*QueryPubKeyResponse, error) - // Queries a Keyshare request by identity - KeyshareReq(ctx context.Context, in *QueryKeyshareReqRequest, opts ...grpc.CallOption) (*QueryKeyshareReqResponse, error) - // queries a list of keyshare requests - KeyshareReqAll(ctx context.Context, in *QueryKeyshareReqAllRequest, opts ...grpc.CallOption) (*QueryKeyshareReqAllResponse, error) - // Queries a list of ShowPrivateKeyshareReq items. - PrivateKeyshareReq(ctx context.Context, in *QueryPrivateKeyshareReqRequest, opts ...grpc.CallOption) (*QueryPrivateKeyshareReqResponse, error) + // Queries a General Identity request by request id + GeneralIdentity(ctx context.Context, in *QueryGeneralIdentityRequest, opts ...grpc.CallOption) (*QueryGeneralIdentityResponse, error) + // Queries a list of General Identity requests + GeneralIdentityAll(ctx context.Context, in *QueryGeneralIdentityAllRequest, opts ...grpc.CallOption) (*QueryGeneralIdentityAllResponse, error) + // Queries a Private Identity request item by req id. + PrivateIdentity(ctx context.Context, in *QueryPrivateIdentityRequest, opts ...grpc.CallOption) (*QueryPrivateIdentityResponse, error) // Queries a list of DecryptData items. DecryptData(ctx context.Context, in *QueryDecryptDataRequest, opts ...grpc.CallOption) (*QueryDecryptDataResponse, error) } @@ -1404,27 +1406,27 @@ func (c *queryClient) PubKey(ctx context.Context, in *QueryPubKeyRequest, opts . return out, nil } -func (c *queryClient) KeyshareReq(ctx context.Context, in *QueryKeyshareReqRequest, opts ...grpc.CallOption) (*QueryKeyshareReqResponse, error) { - out := new(QueryKeyshareReqResponse) - err := c.cc.Invoke(ctx, "/fairyring.pep.Query/KeyshareReq", in, out, opts...) +func (c *queryClient) GeneralIdentity(ctx context.Context, in *QueryGeneralIdentityRequest, opts ...grpc.CallOption) (*QueryGeneralIdentityResponse, error) { + out := new(QueryGeneralIdentityResponse) + err := c.cc.Invoke(ctx, "/fairyring.pep.Query/GeneralIdentity", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) KeyshareReqAll(ctx context.Context, in *QueryKeyshareReqAllRequest, opts ...grpc.CallOption) (*QueryKeyshareReqAllResponse, error) { - out := new(QueryKeyshareReqAllResponse) - err := c.cc.Invoke(ctx, "/fairyring.pep.Query/KeyshareReqAll", in, out, opts...) +func (c *queryClient) GeneralIdentityAll(ctx context.Context, in *QueryGeneralIdentityAllRequest, opts ...grpc.CallOption) (*QueryGeneralIdentityAllResponse, error) { + out := new(QueryGeneralIdentityAllResponse) + err := c.cc.Invoke(ctx, "/fairyring.pep.Query/GeneralIdentityAll", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) PrivateKeyshareReq(ctx context.Context, in *QueryPrivateKeyshareReqRequest, opts ...grpc.CallOption) (*QueryPrivateKeyshareReqResponse, error) { - out := new(QueryPrivateKeyshareReqResponse) - err := c.cc.Invoke(ctx, "/fairyring.pep.Query/PrivateKeyshareReq", in, out, opts...) +func (c *queryClient) PrivateIdentity(ctx context.Context, in *QueryPrivateIdentityRequest, opts ...grpc.CallOption) (*QueryPrivateIdentityResponse, error) { + out := new(QueryPrivateIdentityResponse) + err := c.cc.Invoke(ctx, "/fairyring.pep.Query/PrivateIdentity", in, out, opts...) if err != nil { return nil, err } @@ -1458,12 +1460,12 @@ type QueryServer interface { PepNonceAll(context.Context, *QueryPepNonceAllRequest) (*QueryPepNonceAllResponse, error) // Queries the public keys PubKey(context.Context, *QueryPubKeyRequest) (*QueryPubKeyResponse, error) - // Queries a Keyshare request by identity - KeyshareReq(context.Context, *QueryKeyshareReqRequest) (*QueryKeyshareReqResponse, error) - // queries a list of keyshare requests - KeyshareReqAll(context.Context, *QueryKeyshareReqAllRequest) (*QueryKeyshareReqAllResponse, error) - // Queries a list of ShowPrivateKeyshareReq items. - PrivateKeyshareReq(context.Context, *QueryPrivateKeyshareReqRequest) (*QueryPrivateKeyshareReqResponse, error) + // Queries a General Identity request by request id + GeneralIdentity(context.Context, *QueryGeneralIdentityRequest) (*QueryGeneralIdentityResponse, error) + // Queries a list of General Identity requests + GeneralIdentityAll(context.Context, *QueryGeneralIdentityAllRequest) (*QueryGeneralIdentityAllResponse, error) + // Queries a Private Identity request item by req id. + PrivateIdentity(context.Context, *QueryPrivateIdentityRequest) (*QueryPrivateIdentityResponse, error) // Queries a list of DecryptData items. DecryptData(context.Context, *QueryDecryptDataRequest) (*QueryDecryptDataResponse, error) } @@ -1496,14 +1498,14 @@ func (*UnimplementedQueryServer) PepNonceAll(ctx context.Context, req *QueryPepN func (*UnimplementedQueryServer) PubKey(ctx context.Context, req *QueryPubKeyRequest) (*QueryPubKeyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PubKey not implemented") } -func (*UnimplementedQueryServer) KeyshareReq(ctx context.Context, req *QueryKeyshareReqRequest) (*QueryKeyshareReqResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KeyshareReq not implemented") +func (*UnimplementedQueryServer) GeneralIdentity(ctx context.Context, req *QueryGeneralIdentityRequest) (*QueryGeneralIdentityResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GeneralIdentity not implemented") } -func (*UnimplementedQueryServer) KeyshareReqAll(ctx context.Context, req *QueryKeyshareReqAllRequest) (*QueryKeyshareReqAllResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KeyshareReqAll not implemented") +func (*UnimplementedQueryServer) GeneralIdentityAll(ctx context.Context, req *QueryGeneralIdentityAllRequest) (*QueryGeneralIdentityAllResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GeneralIdentityAll not implemented") } -func (*UnimplementedQueryServer) PrivateKeyshareReq(ctx context.Context, req *QueryPrivateKeyshareReqRequest) (*QueryPrivateKeyshareReqResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PrivateKeyshareReq not implemented") +func (*UnimplementedQueryServer) PrivateIdentity(ctx context.Context, req *QueryPrivateIdentityRequest) (*QueryPrivateIdentityResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PrivateIdentity not implemented") } func (*UnimplementedQueryServer) DecryptData(ctx context.Context, req *QueryDecryptDataRequest) (*QueryDecryptDataResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DecryptData not implemented") @@ -1657,56 +1659,56 @@ func _Query_PubKey_Handler(srv interface{}, ctx context.Context, dec func(interf return interceptor(ctx, in, info, handler) } -func _Query_KeyshareReq_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryKeyshareReqRequest) +func _Query_GeneralIdentity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGeneralIdentityRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).KeyshareReq(ctx, in) + return srv.(QueryServer).GeneralIdentity(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.pep.Query/KeyshareReq", + FullMethod: "/fairyring.pep.Query/GeneralIdentity", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).KeyshareReq(ctx, req.(*QueryKeyshareReqRequest)) + return srv.(QueryServer).GeneralIdentity(ctx, req.(*QueryGeneralIdentityRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_KeyshareReqAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryKeyshareReqAllRequest) +func _Query_GeneralIdentityAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGeneralIdentityAllRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).KeyshareReqAll(ctx, in) + return srv.(QueryServer).GeneralIdentityAll(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.pep.Query/KeyshareReqAll", + FullMethod: "/fairyring.pep.Query/GeneralIdentityAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).KeyshareReqAll(ctx, req.(*QueryKeyshareReqAllRequest)) + return srv.(QueryServer).GeneralIdentityAll(ctx, req.(*QueryGeneralIdentityAllRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_PrivateKeyshareReq_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryPrivateKeyshareReqRequest) +func _Query_PrivateIdentity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPrivateIdentityRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).PrivateKeyshareReq(ctx, in) + return srv.(QueryServer).PrivateIdentity(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.pep.Query/PrivateKeyshareReq", + FullMethod: "/fairyring.pep.Query/PrivateIdentity", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PrivateKeyshareReq(ctx, req.(*QueryPrivateKeyshareReqRequest)) + return srv.(QueryServer).PrivateIdentity(ctx, req.(*QueryPrivateIdentityRequest)) } return interceptor(ctx, in, info, handler) } @@ -1766,16 +1768,16 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_PubKey_Handler, }, { - MethodName: "KeyshareReq", - Handler: _Query_KeyshareReq_Handler, + MethodName: "GeneralIdentity", + Handler: _Query_GeneralIdentity_Handler, }, { - MethodName: "KeyshareReqAll", - Handler: _Query_KeyshareReqAll_Handler, + MethodName: "GeneralIdentityAll", + Handler: _Query_GeneralIdentityAll_Handler, }, { - MethodName: "PrivateKeyshareReq", - Handler: _Query_PrivateKeyshareReq_Handler, + MethodName: "PrivateIdentity", + Handler: _Query_PrivateIdentity_Handler, }, { MethodName: "DecryptData", @@ -1842,7 +1844,7 @@ func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryKeyshareReqRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryGeneralIdentityRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1852,12 +1854,12 @@ func (m *QueryKeyshareReqRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryKeyshareReqRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryGeneralIdentityRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryKeyshareReqRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryGeneralIdentityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1872,7 +1874,7 @@ func (m *QueryKeyshareReqRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *QueryKeyshareReqResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryGeneralIdentityResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1882,19 +1884,19 @@ func (m *QueryKeyshareReqResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryKeyshareReqResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryGeneralIdentityResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryKeyshareReqResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryGeneralIdentityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Keyshare != nil { + if m.RequestDetails != nil { { - size, err := m.Keyshare.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.RequestDetails.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -1907,7 +1909,7 @@ func (m *QueryKeyshareReqResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *QueryKeyshareReqAllRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryGeneralIdentityAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1917,12 +1919,12 @@ func (m *QueryKeyshareReqAllRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryKeyshareReqAllRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryGeneralIdentityAllRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryKeyshareReqAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryGeneralIdentityAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1942,7 +1944,7 @@ func (m *QueryKeyshareReqAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *QueryKeyshareReqAllResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryGeneralIdentityAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1952,12 +1954,12 @@ func (m *QueryKeyshareReqAllResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryKeyshareReqAllResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryGeneralIdentityAllResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryKeyshareReqAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryGeneralIdentityAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1974,10 +1976,10 @@ func (m *QueryKeyshareReqAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, er i-- dAtA[i] = 0x12 } - if len(m.Keyshares) > 0 { - for iNdEx := len(m.Keyshares) - 1; iNdEx >= 0; iNdEx-- { + if len(m.RequestDetailsList) > 0 { + for iNdEx := len(m.RequestDetailsList) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Keyshares[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.RequestDetailsList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2466,7 +2468,7 @@ func (m *QueryPubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryPrivateKeyshareReqRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryPrivateIdentityRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2476,12 +2478,12 @@ func (m *QueryPrivateKeyshareReqRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryPrivateKeyshareReqRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPrivateIdentityRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryPrivateKeyshareReqRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPrivateIdentityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2496,7 +2498,7 @@ func (m *QueryPrivateKeyshareReqRequest) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *QueryPrivateKeyshareReqResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryPrivateIdentityResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2506,20 +2508,20 @@ func (m *QueryPrivateKeyshareReqResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryPrivateKeyshareReqResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPrivateIdentityResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryPrivateKeyshareReqResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPrivateIdentityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.EncryptedKeyshares) > 0 { - for iNdEx := len(m.EncryptedKeyshares) - 1; iNdEx >= 0; iNdEx-- { + if len(m.PrivateDecryptionKeys) > 0 { + for iNdEx := len(m.PrivateDecryptionKeys) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.EncryptedKeyshares[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.PrivateDecryptionKeys[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2527,7 +2529,7 @@ func (m *QueryPrivateKeyshareReqResponse) MarshalToSizedBuffer(dAtA []byte) (int i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } } if len(m.Pubkey) > 0 { @@ -2659,7 +2661,7 @@ func (m *QueryParamsResponse) Size() (n int) { return n } -func (m *QueryKeyshareReqRequest) Size() (n int) { +func (m *QueryGeneralIdentityRequest) Size() (n int) { if m == nil { return 0 } @@ -2672,20 +2674,20 @@ func (m *QueryKeyshareReqRequest) Size() (n int) { return n } -func (m *QueryKeyshareReqResponse) Size() (n int) { +func (m *QueryGeneralIdentityResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if m.Keyshare != nil { - l = m.Keyshare.Size() + if m.RequestDetails != nil { + l = m.RequestDetails.Size() n += 1 + l + sovQuery(uint64(l)) } return n } -func (m *QueryKeyshareReqAllRequest) Size() (n int) { +func (m *QueryGeneralIdentityAllRequest) Size() (n int) { if m == nil { return 0 } @@ -2698,14 +2700,14 @@ func (m *QueryKeyshareReqAllRequest) Size() (n int) { return n } -func (m *QueryKeyshareReqAllResponse) Size() (n int) { +func (m *QueryGeneralIdentityAllResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Keyshares) > 0 { - for _, e := range m.Keyshares { + if len(m.RequestDetailsList) > 0 { + for _, e := range m.RequestDetailsList { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } @@ -2897,7 +2899,7 @@ func (m *QueryPubKeyResponse) Size() (n int) { return n } -func (m *QueryPrivateKeyshareReqRequest) Size() (n int) { +func (m *QueryPrivateIdentityRequest) Size() (n int) { if m == nil { return 0 } @@ -2910,7 +2912,7 @@ func (m *QueryPrivateKeyshareReqRequest) Size() (n int) { return n } -func (m *QueryPrivateKeyshareReqResponse) Size() (n int) { +func (m *QueryPrivateIdentityResponse) Size() (n int) { if m == nil { return 0 } @@ -2928,8 +2930,8 @@ func (m *QueryPrivateKeyshareReqResponse) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - if len(m.EncryptedKeyshares) > 0 { - for _, e := range m.EncryptedKeyshares { + if len(m.PrivateDecryptionKeys) > 0 { + for _, e := range m.PrivateDecryptionKeys { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } @@ -3110,7 +3112,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryKeyshareReqRequest) Unmarshal(dAtA []byte) error { +func (m *QueryGeneralIdentityRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3133,10 +3135,10 @@ func (m *QueryKeyshareReqRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryKeyshareReqRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGeneralIdentityRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryKeyshareReqRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGeneralIdentityRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3192,7 +3194,7 @@ func (m *QueryKeyshareReqRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryKeyshareReqResponse) Unmarshal(dAtA []byte) error { +func (m *QueryGeneralIdentityResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3215,15 +3217,15 @@ func (m *QueryKeyshareReqResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryKeyshareReqResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGeneralIdentityResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryKeyshareReqResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGeneralIdentityResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyshare", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RequestDetails", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3250,10 +3252,10 @@ func (m *QueryKeyshareReqResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Keyshare == nil { - m.Keyshare = &IdentityExecutionQueue{} + if m.RequestDetails == nil { + m.RequestDetails = &IdentityExecutionEntry{} } - if err := m.Keyshare.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.RequestDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3278,7 +3280,7 @@ func (m *QueryKeyshareReqResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryKeyshareReqAllRequest) Unmarshal(dAtA []byte) error { +func (m *QueryGeneralIdentityAllRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3301,10 +3303,10 @@ func (m *QueryKeyshareReqAllRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryKeyshareReqAllRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGeneralIdentityAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryKeyshareReqAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGeneralIdentityAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3364,7 +3366,7 @@ func (m *QueryKeyshareReqAllRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryKeyshareReqAllResponse) Unmarshal(dAtA []byte) error { +func (m *QueryGeneralIdentityAllResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3387,15 +3389,15 @@ func (m *QueryKeyshareReqAllResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryKeyshareReqAllResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGeneralIdentityAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryKeyshareReqAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGeneralIdentityAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keyshares", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RequestDetailsList", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3422,8 +3424,8 @@ func (m *QueryKeyshareReqAllResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Keyshares = append(m.Keyshares, &IdentityExecutionQueue{}) - if err := m.Keyshares[len(m.Keyshares)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.RequestDetailsList = append(m.RequestDetailsList, &IdentityExecutionEntry{}) + if err := m.RequestDetailsList[len(m.RequestDetailsList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4669,7 +4671,7 @@ func (m *QueryPubKeyResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryPrivateKeyshareReqRequest) Unmarshal(dAtA []byte) error { +func (m *QueryPrivateIdentityRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4692,10 +4694,10 @@ func (m *QueryPrivateKeyshareReqRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPrivateKeyshareReqRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPrivateIdentityRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPrivateKeyshareReqRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPrivateIdentityRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4751,7 +4753,7 @@ func (m *QueryPrivateKeyshareReqRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryPrivateKeyshareReqResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPrivateIdentityResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4774,10 +4776,10 @@ func (m *QueryPrivateKeyshareReqResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPrivateKeyshareReqResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPrivateIdentityResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPrivateKeyshareReqResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPrivateIdentityResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4876,9 +4878,9 @@ func (m *QueryPrivateKeyshareReqResponse) Unmarshal(dAtA []byte) error { } m.Pubkey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyshares", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PrivateDecryptionKeys", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4905,8 +4907,8 @@ func (m *QueryPrivateKeyshareReqResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EncryptedKeyshares = append(m.EncryptedKeyshares, &types.EncryptedKeyshare{}) - if err := m.EncryptedKeyshares[len(m.EncryptedKeyshares)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.PrivateDecryptionKeys = append(m.PrivateDecryptionKeys, &types.PrivateDecryptionKey{}) + if err := m.PrivateDecryptionKeys[len(m.PrivateDecryptionKeys)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/pep/types/query.pb.gw.go b/x/pep/types/query.pb.gw.go index a70cfce7..b62637b5 100644 --- a/x/pep/types/query.pb.gw.go +++ b/x/pep/types/query.pb.gw.go @@ -343,8 +343,8 @@ func local_request_Query_PubKey_0(ctx context.Context, marshaler runtime.Marshal } -func request_Query_KeyshareReq_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryKeyshareReqRequest +func request_Query_GeneralIdentity_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGeneralIdentityRequest var metadata runtime.ServerMetadata var ( @@ -365,13 +365,13 @@ func request_Query_KeyshareReq_0(ctx context.Context, marshaler runtime.Marshale return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "req_id", err) } - msg, err := client.KeyshareReq(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.GeneralIdentity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_KeyshareReq_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryKeyshareReqRequest +func local_request_Query_GeneralIdentity_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGeneralIdentityRequest var metadata runtime.ServerMetadata var ( @@ -392,49 +392,49 @@ func local_request_Query_KeyshareReq_0(ctx context.Context, marshaler runtime.Ma return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "req_id", err) } - msg, err := server.KeyshareReq(ctx, &protoReq) + msg, err := server.GeneralIdentity(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_KeyshareReqAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_Query_GeneralIdentityAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_Query_KeyshareReqAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryKeyshareReqAllRequest +func request_Query_GeneralIdentityAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGeneralIdentityAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_KeyshareReqAll_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GeneralIdentityAll_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.KeyshareReqAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.GeneralIdentityAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_KeyshareReqAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryKeyshareReqAllRequest +func local_request_Query_GeneralIdentityAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGeneralIdentityAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_KeyshareReqAll_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GeneralIdentityAll_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.KeyshareReqAll(ctx, &protoReq) + msg, err := server.GeneralIdentityAll(ctx, &protoReq) return msg, metadata, err } -func request_Query_PrivateKeyshareReq_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryPrivateKeyshareReqRequest +func request_Query_PrivateIdentity_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPrivateIdentityRequest var metadata runtime.ServerMetadata var ( @@ -455,13 +455,13 @@ func request_Query_PrivateKeyshareReq_0(ctx context.Context, marshaler runtime.M return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "req_id", err) } - msg, err := client.PrivateKeyshareReq(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.PrivateIdentity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_PrivateKeyshareReq_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryPrivateKeyshareReqRequest +func local_request_Query_PrivateIdentity_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPrivateIdentityRequest var metadata runtime.ServerMetadata var ( @@ -482,7 +482,7 @@ func local_request_Query_PrivateKeyshareReq_0(ctx context.Context, marshaler run return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "req_id", err) } - msg, err := server.PrivateKeyshareReq(ctx, &protoReq) + msg, err := server.PrivateIdentity(ctx, &protoReq) return msg, metadata, err } @@ -775,7 +775,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_KeyshareReq_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_GeneralIdentity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -786,7 +786,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_KeyshareReq_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_GeneralIdentity_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -794,11 +794,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_KeyshareReq_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_GeneralIdentity_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_KeyshareReqAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_GeneralIdentityAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -809,7 +809,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_KeyshareReqAll_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_GeneralIdentityAll_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -817,11 +817,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_KeyshareReqAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_GeneralIdentityAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_PrivateKeyshareReq_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_PrivateIdentity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -832,7 +832,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_PrivateKeyshareReq_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_PrivateIdentity_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -840,7 +840,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_PrivateKeyshareReq_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_PrivateIdentity_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1068,7 +1068,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_KeyshareReq_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_GeneralIdentity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -1077,18 +1077,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_KeyshareReq_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_GeneralIdentity_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_KeyshareReq_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_GeneralIdentity_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_KeyshareReqAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_GeneralIdentityAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -1097,18 +1097,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_KeyshareReqAll_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_GeneralIdentityAll_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_KeyshareReqAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_GeneralIdentityAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_PrivateKeyshareReq_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_PrivateIdentity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -1117,14 +1117,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_PrivateKeyshareReq_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_PrivateIdentity_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_PrivateKeyshareReq_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_PrivateIdentity_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1168,11 +1168,11 @@ var ( pattern_Query_PubKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "pep", "pub_key"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_KeyshareReq_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"fairyring", "pep", "keyshare", "req_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GeneralIdentity_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"fairyring", "pep", "general_identity", "req_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_KeyshareReqAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "pep", "keyshare"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GeneralIdentityAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "pep", "general_identity"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PrivateKeyshareReq_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"Fairblock", "fairyring", "pep", "show_private_keyshare_req", "req_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_PrivateIdentity_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"Fairblock", "fairyring", "pep", "private_identity", "req_id"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_DecryptData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"Fairblock", "fairyring", "pep", "decrypt_data", "pubkey", "aggr_keyshare", "encrypted_data"}, "", runtime.AssumeColonVerbOpt(false))) ) @@ -1194,11 +1194,11 @@ var ( forward_Query_PubKey_0 = runtime.ForwardResponseMessage - forward_Query_KeyshareReq_0 = runtime.ForwardResponseMessage + forward_Query_GeneralIdentity_0 = runtime.ForwardResponseMessage - forward_Query_KeyshareReqAll_0 = runtime.ForwardResponseMessage + forward_Query_GeneralIdentityAll_0 = runtime.ForwardResponseMessage - forward_Query_PrivateKeyshareReq_0 = runtime.ForwardResponseMessage + forward_Query_PrivateIdentity_0 = runtime.ForwardResponseMessage forward_Query_DecryptData_0 = runtime.ForwardResponseMessage ) diff --git a/x/pep/types/request_id.pb.go b/x/pep/types/request_id.pb.go index f1bbf117..47308ee8 100644 --- a/x/pep/types/request_id.pb.go +++ b/x/pep/types/request_id.pb.go @@ -81,10 +81,10 @@ func (m *RequestId) GetReqId() string { // PrivateRequest defines the structure for storing private // keyshare requests along with the unaggregated encrypted keyshares type PrivateRequest struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` - Pubkey string `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - EncryptedKeyshares []*types.EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` + Pubkey string `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + PrivateDecryptionKeys []*types.PrivateDecryptionKey `protobuf:"bytes,4,rep,name=private_decryption_keys,json=privateDecryptionKeys,proto3" json:"private_decryption_keys,omitempty"` } func (m *PrivateRequest) Reset() { *m = PrivateRequest{} } @@ -141,9 +141,9 @@ func (m *PrivateRequest) GetPubkey() string { return "" } -func (m *PrivateRequest) GetEncryptedKeyshares() []*types.EncryptedKeyshare { +func (m *PrivateRequest) GetPrivateDecryptionKeys() []*types.PrivateDecryptionKey { if m != nil { - return m.EncryptedKeyshares + return m.PrivateDecryptionKeys } return nil } @@ -259,9 +259,9 @@ func (m *RegisteredContract) GetContracts() []*ContractDetails { // ExecuteContractMsg defines the structure to callback registered contracts type ExecuteContractMsg struct { - Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` - Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - AggrKeyshare string `protobuf:"bytes,3,opt,name=aggr_keyshare,json=aggrKeyshare,proto3" json:"aggr_keyshare,omitempty"` + Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` + Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + DecryptionKey string `protobuf:"bytes,3,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key,omitempty"` } func (m *ExecuteContractMsg) Reset() { *m = ExecuteContractMsg{} } @@ -311,9 +311,9 @@ func (m *ExecuteContractMsg) GetPubkey() string { return "" } -func (m *ExecuteContractMsg) GetAggrKeyshare() string { +func (m *ExecuteContractMsg) GetDecryptionKey() string { if m != nil { - return m.AggrKeyshare + return m.DecryptionKey } return "" } @@ -329,34 +329,34 @@ func init() { func init() { proto.RegisterFile("fairyring/pep/request_id.proto", fileDescriptor_3e457d2e8ff0411e) } var fileDescriptor_3e457d2e8ff0411e = []byte{ - // 419 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xcd, 0x6e, 0xd4, 0x30, - 0x10, 0xde, 0xb4, 0xea, 0xc2, 0x1a, 0x4a, 0x91, 0xf9, 0x51, 0xb4, 0x42, 0x56, 0x95, 0xbd, 0x14, - 0x0e, 0x89, 0x04, 0xd7, 0x5e, 0x80, 0x16, 0xa9, 0x42, 0x48, 0x28, 0xe2, 0xd4, 0x4b, 0xe4, 0x8d, - 0x07, 0xd7, 0xda, 0x6e, 0xec, 0x1d, 0x3b, 0xa8, 0x79, 0x0b, 0xde, 0x84, 0xd7, 0xe0, 0xd8, 0x23, - 0x47, 0xb4, 0xfb, 0x22, 0x28, 0x4e, 0xbc, 0x51, 0xf7, 0x80, 0xd4, 0x9b, 0xe7, 0x9b, 0x6f, 0x3e, - 0xcf, 0x7c, 0x33, 0x84, 0x7d, 0xe7, 0x0a, 0x1b, 0x54, 0x95, 0xcc, 0x0c, 0x98, 0x0c, 0x61, 0x55, - 0x83, 0x75, 0x85, 0x12, 0xa9, 0x41, 0xed, 0x34, 0x3d, 0xdc, 0xe6, 0x53, 0x03, 0x66, 0xfa, 0x5c, - 0x6a, 0xa9, 0x7d, 0x26, 0x6b, 0x5f, 0x1d, 0x69, 0x3a, 0x1b, 0x44, 0x4a, 0xbd, 0x5c, 0xea, 0x2a, - 0xb3, 0x57, 0x1c, 0x41, 0x14, 0xae, 0x31, 0x60, 0x3b, 0x52, 0x72, 0x4a, 0x26, 0x79, 0xa7, 0x7e, - 0x21, 0x68, 0x4c, 0x1e, 0x94, 0x08, 0xdc, 0x69, 0x8c, 0xa3, 0xe3, 0xe8, 0x64, 0x92, 0x87, 0x90, - 0xbe, 0x20, 0x63, 0x84, 0x55, 0xa1, 0x44, 0xbc, 0xe7, 0x13, 0x07, 0x08, 0xab, 0x0b, 0x91, 0xfc, - 0x8a, 0xc8, 0x93, 0xaf, 0xa8, 0x7e, 0x70, 0x07, 0xbd, 0xca, 0xbd, 0x35, 0xe8, 0x4b, 0x32, 0x36, - 0xf5, 0x7c, 0x01, 0x4d, 0xbc, 0xef, 0xe1, 0x3e, 0xa2, 0xdf, 0xc8, 0x33, 0xa8, 0x4a, 0x6c, 0x8c, - 0x03, 0x51, 0x2c, 0xa0, 0xf1, 0xcd, 0xdb, 0xf8, 0xe0, 0x78, 0xff, 0xe4, 0xd1, 0xdb, 0x59, 0x3a, - 0x38, 0xd0, 0x0d, 0x97, 0x9e, 0x07, 0xf2, 0xe7, 0x9e, 0x9b, 0x53, 0xd8, 0x85, 0x6c, 0x72, 0x49, - 0x8e, 0x3e, 0xea, 0xca, 0x21, 0x2f, 0xdd, 0x19, 0x38, 0xae, 0xae, 0x2d, 0x7d, 0x45, 0x26, 0x08, - 0x52, 0x59, 0x87, 0x3c, 0xf4, 0x3c, 0x00, 0xf4, 0x35, 0x79, 0x5a, 0xf6, 0x05, 0x05, 0x17, 0x02, - 0xc1, 0xda, 0xbe, 0xff, 0xa3, 0x80, 0xbf, 0xef, 0xe0, 0xa4, 0x22, 0x34, 0xf7, 0x75, 0x80, 0x20, - 0xc2, 0x2f, 0x74, 0x4a, 0x1e, 0x2a, 0x01, 0x95, 0x53, 0xae, 0xe9, 0xd5, 0xb7, 0x31, 0x3d, 0x25, - 0x93, 0x20, 0xd2, 0xaa, 0xb6, 0x93, 0xb1, 0xf4, 0xce, 0x6e, 0xd3, 0x9d, 0x6e, 0xf3, 0xa1, 0x20, - 0x59, 0x12, 0x7a, 0x7e, 0x03, 0x65, 0xed, 0x20, 0x90, 0xbe, 0x58, 0xf9, 0xdf, 0xff, 0x06, 0xaf, - 0xf7, 0xee, 0x78, 0x3d, 0x23, 0x87, 0x5c, 0x4a, 0xdc, 0xda, 0xdc, 0xaf, 0xe2, 0x71, 0x0b, 0x06, - 0xef, 0x3e, 0x9c, 0xfd, 0x5e, 0xb3, 0xe8, 0x76, 0xcd, 0xa2, 0xbf, 0x6b, 0x16, 0xfd, 0xdc, 0xb0, - 0xd1, 0xed, 0x86, 0x8d, 0xfe, 0x6c, 0xd8, 0xe8, 0xf2, 0x8d, 0x54, 0xee, 0xaa, 0x9e, 0xb7, 0x9b, - 0xc8, 0x3e, 0x71, 0x85, 0xf3, 0x6b, 0x5d, 0x2e, 0xb2, 0xe1, 0xfc, 0x6e, 0xfc, 0x15, 0xfb, 0xb3, - 0x9b, 0x8f, 0xfd, 0xdd, 0xbd, 0xfb, 0x17, 0x00, 0x00, 0xff, 0xff, 0xac, 0x86, 0xc2, 0x20, 0xe3, - 0x02, 0x00, 0x00, + // 420 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xcd, 0x8a, 0x13, 0x41, + 0x10, 0xce, 0xec, 0x6a, 0x74, 0x5a, 0x76, 0x57, 0x1a, 0x57, 0x87, 0x20, 0xcd, 0x32, 0xa2, 0xac, + 0x1e, 0x66, 0x40, 0xaf, 0xb9, 0xa8, 0x51, 0x08, 0x22, 0xc8, 0x1c, 0x73, 0x70, 0xe8, 0x99, 0x2e, + 0x27, 0x4d, 0x92, 0xe9, 0x4e, 0x75, 0x8f, 0x64, 0xde, 0xc2, 0xd7, 0xf1, 0x0d, 0x3c, 0xe6, 0xe8, + 0x51, 0x92, 0x17, 0x91, 0xf9, 0xcb, 0x18, 0x11, 0x61, 0x6f, 0x5d, 0x5f, 0x55, 0x7d, 0x5d, 0xf5, + 0xd5, 0x47, 0xd8, 0x17, 0x2e, 0xb1, 0x44, 0x99, 0x67, 0xa1, 0x06, 0x1d, 0x22, 0xac, 0x0b, 0x30, + 0x36, 0x96, 0x22, 0xd0, 0xa8, 0xac, 0xa2, 0x67, 0x87, 0x7c, 0xa0, 0x41, 0x8f, 0x1e, 0x64, 0x2a, + 0x53, 0x75, 0x26, 0xac, 0x5e, 0x4d, 0xd1, 0xe8, 0x49, 0x4f, 0x92, 0xaa, 0xd5, 0x4a, 0xe5, 0xa1, + 0x99, 0x73, 0x04, 0x11, 0xdb, 0x52, 0x83, 0x69, 0x8a, 0xfc, 0x31, 0x71, 0xa3, 0x86, 0x7d, 0x2a, + 0xa8, 0x47, 0xee, 0xa4, 0x08, 0xdc, 0x2a, 0xf4, 0x9c, 0x2b, 0xe7, 0xda, 0x8d, 0xba, 0x90, 0x5e, + 0x92, 0x21, 0xc2, 0x3a, 0x96, 0xc2, 0x3b, 0xa9, 0x13, 0xb7, 0x11, 0xd6, 0x53, 0xe1, 0x7f, 0x77, + 0xc8, 0xf9, 0x27, 0x94, 0x5f, 0xb9, 0x85, 0x96, 0xe5, 0xc6, 0x1c, 0xf4, 0x21, 0x19, 0xea, 0x22, + 0x59, 0x40, 0xe9, 0x9d, 0xd6, 0x70, 0x1b, 0xd1, 0xcf, 0xe4, 0x91, 0x6e, 0xa8, 0x63, 0x01, 0x29, + 0x96, 0xda, 0x4a, 0x95, 0xc7, 0x0b, 0x28, 0x8d, 0x77, 0xeb, 0xea, 0xf4, 0xfa, 0xde, 0xcb, 0x67, + 0x41, 0xaf, 0x42, 0xb3, 0x60, 0xd0, 0xce, 0x32, 0x39, 0xd4, 0x7f, 0x80, 0x32, 0xba, 0xd4, 0xff, + 0x40, 0x8d, 0x3f, 0x23, 0x17, 0x6f, 0x55, 0x6e, 0x91, 0xa7, 0x76, 0x02, 0x96, 0xcb, 0xa5, 0xa1, + 0x8f, 0x89, 0x8b, 0x90, 0x49, 0x63, 0x91, 0x77, 0xd3, 0xf7, 0x00, 0x7d, 0x4e, 0xee, 0xa7, 0x6d, + 0x43, 0xcc, 0x85, 0x40, 0x30, 0xa6, 0xdd, 0xe4, 0xa2, 0xc3, 0x5f, 0x37, 0xb0, 0x9f, 0x13, 0x1a, + 0xd5, 0x7d, 0x80, 0x20, 0xba, 0x5f, 0xe8, 0x88, 0xdc, 0x95, 0x02, 0x72, 0x2b, 0x6d, 0xd9, 0xb2, + 0x1f, 0x62, 0x3a, 0x26, 0x6e, 0x47, 0x52, 0xb1, 0x56, 0xfb, 0xb1, 0xe0, 0xe8, 0xca, 0xc1, 0x5f, + 0xd3, 0x46, 0x7d, 0x83, 0xaf, 0x08, 0x7d, 0xb7, 0x81, 0xb4, 0xb0, 0xd0, 0x15, 0x7d, 0x34, 0xd9, + 0x7f, 0xff, 0xeb, 0x55, 0x3f, 0x39, 0x52, 0xfd, 0x29, 0x39, 0x3f, 0x56, 0xbb, 0xbd, 0xca, 0x99, + 0xf8, 0x53, 0xbd, 0x37, 0x93, 0x1f, 0x3b, 0xe6, 0x6c, 0x77, 0xcc, 0xf9, 0xb5, 0x63, 0xce, 0xb7, + 0x3d, 0x1b, 0x6c, 0xf7, 0x6c, 0xf0, 0x73, 0xcf, 0x06, 0xb3, 0x17, 0x99, 0xb4, 0xf3, 0x22, 0xa9, + 0x2e, 0x12, 0xbe, 0xe7, 0x12, 0x93, 0xa5, 0x4a, 0x17, 0x61, 0x6f, 0xc5, 0x4d, 0xed, 0xe8, 0xda, + 0x82, 0xc9, 0xb0, 0xf6, 0xe0, 0xab, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x01, 0x77, 0xd7, 0x12, + 0xef, 0x02, 0x00, 0x00, } func (m *RequestId) Marshal() (dAtA []byte, err error) { @@ -416,10 +416,10 @@ func (m *PrivateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.EncryptedKeyshares) > 0 { - for iNdEx := len(m.EncryptedKeyshares) - 1; iNdEx >= 0; iNdEx-- { + if len(m.PrivateDecryptionKeys) > 0 { + for iNdEx := len(m.PrivateDecryptionKeys) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.EncryptedKeyshares[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.PrivateDecryptionKeys[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -427,7 +427,7 @@ func (m *PrivateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintRequestId(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } } if len(m.Pubkey) > 0 { @@ -555,10 +555,10 @@ func (m *ExecuteContractMsg) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.AggrKeyshare) > 0 { - i -= len(m.AggrKeyshare) - copy(dAtA[i:], m.AggrKeyshare) - i = encodeVarintRequestId(dAtA, i, uint64(len(m.AggrKeyshare))) + if len(m.DecryptionKey) > 0 { + i -= len(m.DecryptionKey) + copy(dAtA[i:], m.DecryptionKey) + i = encodeVarintRequestId(dAtA, i, uint64(len(m.DecryptionKey))) i-- dAtA[i] = 0x1a } @@ -625,8 +625,8 @@ func (m *PrivateRequest) Size() (n int) { if l > 0 { n += 1 + l + sovRequestId(uint64(l)) } - if len(m.EncryptedKeyshares) > 0 { - for _, e := range m.EncryptedKeyshares { + if len(m.PrivateDecryptionKeys) > 0 { + for _, e := range m.PrivateDecryptionKeys { l = e.Size() n += 1 + l + sovRequestId(uint64(l)) } @@ -684,7 +684,7 @@ func (m *ExecuteContractMsg) Size() (n int) { if l > 0 { n += 1 + l + sovRequestId(uint64(l)) } - l = len(m.AggrKeyshare) + l = len(m.DecryptionKey) if l > 0 { n += 1 + l + sovRequestId(uint64(l)) } @@ -936,9 +936,9 @@ func (m *PrivateRequest) Unmarshal(dAtA []byte) error { } m.Pubkey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyshares", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PrivateDecryptionKeys", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -965,8 +965,8 @@ func (m *PrivateRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EncryptedKeyshares = append(m.EncryptedKeyshares, &types.EncryptedKeyshare{}) - if err := m.EncryptedKeyshares[len(m.EncryptedKeyshares)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.PrivateDecryptionKeys = append(m.PrivateDecryptionKeys, &types.PrivateDecryptionKey{}) + if err := m.PrivateDecryptionKeys[len(m.PrivateDecryptionKeys)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -1316,7 +1316,7 @@ func (m *ExecuteContractMsg) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AggrKeyshare", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DecryptionKey", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1344,7 +1344,7 @@ func (m *ExecuteContractMsg) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AggrKeyshare = string(dAtA[iNdEx:postIndex]) + m.DecryptionKey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/pep/types/tx.pb.go b/x/pep/types/tx.pb.go index 692ee326..b8ab4b55 100644 --- a/x/pep/types/tx.pb.go +++ b/x/pep/types/tx.pb.go @@ -425,25 +425,25 @@ func (m *MsgCreateAggregatedKeyShareResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgCreateAggregatedKeyShareResponse proto.InternalMessageInfo -// MsgRequestGeneralKeyshare is the Msg/RequestGeneralKeyshare request type. -type MsgRequestGeneralKeyshare struct { +// MsgRequestGeneralIdentity is the Msg/RequestGeneralIdentity request type. +type MsgRequestGeneralIdentity struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` EstimatedDelay *time.Duration `protobuf:"bytes,2,opt,name=estimated_delay,json=estimatedDelay,proto3,stdduration" json:"estimated_delay,omitempty"` ReqId string `protobuf:"bytes,3,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } -func (m *MsgRequestGeneralKeyshare) Reset() { *m = MsgRequestGeneralKeyshare{} } -func (m *MsgRequestGeneralKeyshare) String() string { return proto.CompactTextString(m) } -func (*MsgRequestGeneralKeyshare) ProtoMessage() {} -func (*MsgRequestGeneralKeyshare) Descriptor() ([]byte, []int) { +func (m *MsgRequestGeneralIdentity) Reset() { *m = MsgRequestGeneralIdentity{} } +func (m *MsgRequestGeneralIdentity) String() string { return proto.CompactTextString(m) } +func (*MsgRequestGeneralIdentity) ProtoMessage() {} +func (*MsgRequestGeneralIdentity) Descriptor() ([]byte, []int) { return fileDescriptor_f6953e463911e1ec, []int{8} } -func (m *MsgRequestGeneralKeyshare) XXX_Unmarshal(b []byte) error { +func (m *MsgRequestGeneralIdentity) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgRequestGeneralKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgRequestGeneralIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgRequestGeneralKeyshare.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgRequestGeneralIdentity.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -453,57 +453,57 @@ func (m *MsgRequestGeneralKeyshare) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *MsgRequestGeneralKeyshare) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRequestGeneralKeyshare.Merge(m, src) +func (m *MsgRequestGeneralIdentity) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRequestGeneralIdentity.Merge(m, src) } -func (m *MsgRequestGeneralKeyshare) XXX_Size() int { +func (m *MsgRequestGeneralIdentity) XXX_Size() int { return m.Size() } -func (m *MsgRequestGeneralKeyshare) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRequestGeneralKeyshare.DiscardUnknown(m) +func (m *MsgRequestGeneralIdentity) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRequestGeneralIdentity.DiscardUnknown(m) } -var xxx_messageInfo_MsgRequestGeneralKeyshare proto.InternalMessageInfo +var xxx_messageInfo_MsgRequestGeneralIdentity proto.InternalMessageInfo -func (m *MsgRequestGeneralKeyshare) GetCreator() string { +func (m *MsgRequestGeneralIdentity) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *MsgRequestGeneralKeyshare) GetEstimatedDelay() *time.Duration { +func (m *MsgRequestGeneralIdentity) GetEstimatedDelay() *time.Duration { if m != nil { return m.EstimatedDelay } return nil } -func (m *MsgRequestGeneralKeyshare) GetReqId() string { +func (m *MsgRequestGeneralIdentity) GetReqId() string { if m != nil { return m.ReqId } return "" } -// MsgRequestGeneralKeyshareResponse defines the response structure for executing a -// MsgRequestGeneralKeyshare message. -type MsgRequestGeneralKeyshareResponse struct { +// MsgRequestGeneralIdentityResponse defines the response structure for executing a +// MsgRequestGeneralIdentity message. +type MsgRequestGeneralIdentityResponse struct { ReqId string `protobuf:"bytes,1,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } -func (m *MsgRequestGeneralKeyshareResponse) Reset() { *m = MsgRequestGeneralKeyshareResponse{} } -func (m *MsgRequestGeneralKeyshareResponse) String() string { return proto.CompactTextString(m) } -func (*MsgRequestGeneralKeyshareResponse) ProtoMessage() {} -func (*MsgRequestGeneralKeyshareResponse) Descriptor() ([]byte, []int) { +func (m *MsgRequestGeneralIdentityResponse) Reset() { *m = MsgRequestGeneralIdentityResponse{} } +func (m *MsgRequestGeneralIdentityResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRequestGeneralIdentityResponse) ProtoMessage() {} +func (*MsgRequestGeneralIdentityResponse) Descriptor() ([]byte, []int) { return fileDescriptor_f6953e463911e1ec, []int{9} } -func (m *MsgRequestGeneralKeyshareResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgRequestGeneralIdentityResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgRequestGeneralKeyshareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgRequestGeneralIdentityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgRequestGeneralKeyshareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgRequestGeneralIdentityResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -513,43 +513,43 @@ func (m *MsgRequestGeneralKeyshareResponse) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *MsgRequestGeneralKeyshareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgRequestGeneralKeyshareResponse.Merge(m, src) +func (m *MsgRequestGeneralIdentityResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRequestGeneralIdentityResponse.Merge(m, src) } -func (m *MsgRequestGeneralKeyshareResponse) XXX_Size() int { +func (m *MsgRequestGeneralIdentityResponse) XXX_Size() int { return m.Size() } -func (m *MsgRequestGeneralKeyshareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgRequestGeneralKeyshareResponse.DiscardUnknown(m) +func (m *MsgRequestGeneralIdentityResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRequestGeneralIdentityResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgRequestGeneralKeyshareResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgRequestGeneralIdentityResponse proto.InternalMessageInfo -func (m *MsgRequestGeneralKeyshareResponse) GetReqId() string { +func (m *MsgRequestGeneralIdentityResponse) GetReqId() string { if m != nil { return m.ReqId } return "" } -// MsgGetGeneralKeyshare is the Msg/GetGeneralKeyshare request type. -type MsgGetGeneralKeyshare struct { +// MsgRequestGeneralDecryptionKey is the Msg/RequestGeneralDecryptionKey request type. +type MsgRequestGeneralDecryptionKey struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` } -func (m *MsgGetGeneralKeyshare) Reset() { *m = MsgGetGeneralKeyshare{} } -func (m *MsgGetGeneralKeyshare) String() string { return proto.CompactTextString(m) } -func (*MsgGetGeneralKeyshare) ProtoMessage() {} -func (*MsgGetGeneralKeyshare) Descriptor() ([]byte, []int) { +func (m *MsgRequestGeneralDecryptionKey) Reset() { *m = MsgRequestGeneralDecryptionKey{} } +func (m *MsgRequestGeneralDecryptionKey) String() string { return proto.CompactTextString(m) } +func (*MsgRequestGeneralDecryptionKey) ProtoMessage() {} +func (*MsgRequestGeneralDecryptionKey) Descriptor() ([]byte, []int) { return fileDescriptor_f6953e463911e1ec, []int{10} } -func (m *MsgGetGeneralKeyshare) XXX_Unmarshal(b []byte) error { +func (m *MsgRequestGeneralDecryptionKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgGetGeneralKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgRequestGeneralDecryptionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgGetGeneralKeyshare.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgRequestGeneralDecryptionKey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -559,49 +559,51 @@ func (m *MsgGetGeneralKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *MsgGetGeneralKeyshare) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgGetGeneralKeyshare.Merge(m, src) +func (m *MsgRequestGeneralDecryptionKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRequestGeneralDecryptionKey.Merge(m, src) } -func (m *MsgGetGeneralKeyshare) XXX_Size() int { +func (m *MsgRequestGeneralDecryptionKey) XXX_Size() int { return m.Size() } -func (m *MsgGetGeneralKeyshare) XXX_DiscardUnknown() { - xxx_messageInfo_MsgGetGeneralKeyshare.DiscardUnknown(m) +func (m *MsgRequestGeneralDecryptionKey) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRequestGeneralDecryptionKey.DiscardUnknown(m) } -var xxx_messageInfo_MsgGetGeneralKeyshare proto.InternalMessageInfo +var xxx_messageInfo_MsgRequestGeneralDecryptionKey proto.InternalMessageInfo -func (m *MsgGetGeneralKeyshare) GetCreator() string { +func (m *MsgRequestGeneralDecryptionKey) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *MsgGetGeneralKeyshare) GetReqId() string { +func (m *MsgRequestGeneralDecryptionKey) GetReqId() string { if m != nil { return m.ReqId } return "" } -// MsgGetGeneralKeyshareResponse defines the response structure for executing a -// MsgGetGeneralKeyshare message. -type MsgGetGeneralKeyshareResponse struct { +// MsgRequestGeneralDecryptionKeyResponse defines the response structure for executing a +// MsgRequestGeneralDecryptionKey message. +type MsgRequestGeneralDecryptionKeyResponse struct { } -func (m *MsgGetGeneralKeyshareResponse) Reset() { *m = MsgGetGeneralKeyshareResponse{} } -func (m *MsgGetGeneralKeyshareResponse) String() string { return proto.CompactTextString(m) } -func (*MsgGetGeneralKeyshareResponse) ProtoMessage() {} -func (*MsgGetGeneralKeyshareResponse) Descriptor() ([]byte, []int) { +func (m *MsgRequestGeneralDecryptionKeyResponse) Reset() { + *m = MsgRequestGeneralDecryptionKeyResponse{} +} +func (m *MsgRequestGeneralDecryptionKeyResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRequestGeneralDecryptionKeyResponse) ProtoMessage() {} +func (*MsgRequestGeneralDecryptionKeyResponse) Descriptor() ([]byte, []int) { return fileDescriptor_f6953e463911e1ec, []int{11} } -func (m *MsgGetGeneralKeyshareResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgRequestGeneralDecryptionKeyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgGetGeneralKeyshareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgRequestGeneralDecryptionKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgGetGeneralKeyshareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgRequestGeneralDecryptionKeyResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -611,17 +613,17 @@ func (m *MsgGetGeneralKeyshareResponse) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *MsgGetGeneralKeyshareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgGetGeneralKeyshareResponse.Merge(m, src) +func (m *MsgRequestGeneralDecryptionKeyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRequestGeneralDecryptionKeyResponse.Merge(m, src) } -func (m *MsgGetGeneralKeyshareResponse) XXX_Size() int { +func (m *MsgRequestGeneralDecryptionKeyResponse) XXX_Size() int { return m.Size() } -func (m *MsgGetGeneralKeyshareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgGetGeneralKeyshareResponse.DiscardUnknown(m) +func (m *MsgRequestGeneralDecryptionKeyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRequestGeneralDecryptionKeyResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgGetGeneralKeyshareResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgRequestGeneralDecryptionKeyResponse proto.InternalMessageInfo // MsgRequestPrivateIdentity is the Msg/RequestPrivateIdentity request type. type MsgRequestPrivateIdentity struct { @@ -722,25 +724,25 @@ func (m *MsgRequestPrivateIdentityResponse) GetReqId() string { return "" } -// MsgGetPrivateKeyshares is the Msg/GetPrivateKeyshares request type. -type MsgGetPrivateKeyshares struct { +// MsgRequestPrivateDecryptionKey is the Msg/RequestPrivateDecryptionKey request type. +type MsgRequestPrivateDecryptionKey struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` SecpPubkey string `protobuf:"bytes,3,opt,name=secp_pubkey,json=secpPubkey,proto3" json:"secp_pubkey,omitempty"` } -func (m *MsgGetPrivateKeyshares) Reset() { *m = MsgGetPrivateKeyshares{} } -func (m *MsgGetPrivateKeyshares) String() string { return proto.CompactTextString(m) } -func (*MsgGetPrivateKeyshares) ProtoMessage() {} -func (*MsgGetPrivateKeyshares) Descriptor() ([]byte, []int) { +func (m *MsgRequestPrivateDecryptionKey) Reset() { *m = MsgRequestPrivateDecryptionKey{} } +func (m *MsgRequestPrivateDecryptionKey) String() string { return proto.CompactTextString(m) } +func (*MsgRequestPrivateDecryptionKey) ProtoMessage() {} +func (*MsgRequestPrivateDecryptionKey) Descriptor() ([]byte, []int) { return fileDescriptor_f6953e463911e1ec, []int{14} } -func (m *MsgGetPrivateKeyshares) XXX_Unmarshal(b []byte) error { +func (m *MsgRequestPrivateDecryptionKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgGetPrivateKeyshares) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgRequestPrivateDecryptionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgGetPrivateKeyshares.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgRequestPrivateDecryptionKey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -750,56 +752,58 @@ func (m *MsgGetPrivateKeyshares) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *MsgGetPrivateKeyshares) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgGetPrivateKeyshares.Merge(m, src) +func (m *MsgRequestPrivateDecryptionKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRequestPrivateDecryptionKey.Merge(m, src) } -func (m *MsgGetPrivateKeyshares) XXX_Size() int { +func (m *MsgRequestPrivateDecryptionKey) XXX_Size() int { return m.Size() } -func (m *MsgGetPrivateKeyshares) XXX_DiscardUnknown() { - xxx_messageInfo_MsgGetPrivateKeyshares.DiscardUnknown(m) +func (m *MsgRequestPrivateDecryptionKey) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRequestPrivateDecryptionKey.DiscardUnknown(m) } -var xxx_messageInfo_MsgGetPrivateKeyshares proto.InternalMessageInfo +var xxx_messageInfo_MsgRequestPrivateDecryptionKey proto.InternalMessageInfo -func (m *MsgGetPrivateKeyshares) GetCreator() string { +func (m *MsgRequestPrivateDecryptionKey) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *MsgGetPrivateKeyshares) GetReqId() string { +func (m *MsgRequestPrivateDecryptionKey) GetReqId() string { if m != nil { return m.ReqId } return "" } -func (m *MsgGetPrivateKeyshares) GetSecpPubkey() string { +func (m *MsgRequestPrivateDecryptionKey) GetSecpPubkey() string { if m != nil { return m.SecpPubkey } return "" } -// MsgGetPrivateKeysharesResponse defines the response structure for executing a -// MsgGetPrivateKeyshares message. -type MsgGetPrivateKeysharesResponse struct { +// MsgRequestPrivateDecryptionKeyResponse defines the response structure for executing a +// MsgRequestPrivateDecryptionKey message. +type MsgRequestPrivateDecryptionKeyResponse struct { } -func (m *MsgGetPrivateKeysharesResponse) Reset() { *m = MsgGetPrivateKeysharesResponse{} } -func (m *MsgGetPrivateKeysharesResponse) String() string { return proto.CompactTextString(m) } -func (*MsgGetPrivateKeysharesResponse) ProtoMessage() {} -func (*MsgGetPrivateKeysharesResponse) Descriptor() ([]byte, []int) { +func (m *MsgRequestPrivateDecryptionKeyResponse) Reset() { + *m = MsgRequestPrivateDecryptionKeyResponse{} +} +func (m *MsgRequestPrivateDecryptionKeyResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRequestPrivateDecryptionKeyResponse) ProtoMessage() {} +func (*MsgRequestPrivateDecryptionKeyResponse) Descriptor() ([]byte, []int) { return fileDescriptor_f6953e463911e1ec, []int{15} } -func (m *MsgGetPrivateKeysharesResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgRequestPrivateDecryptionKeyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgGetPrivateKeysharesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgRequestPrivateDecryptionKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgGetPrivateKeysharesResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgRequestPrivateDecryptionKeyResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -809,17 +813,17 @@ func (m *MsgGetPrivateKeysharesResponse) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *MsgGetPrivateKeysharesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgGetPrivateKeysharesResponse.Merge(m, src) +func (m *MsgRequestPrivateDecryptionKeyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRequestPrivateDecryptionKeyResponse.Merge(m, src) } -func (m *MsgGetPrivateKeysharesResponse) XXX_Size() int { +func (m *MsgRequestPrivateDecryptionKeyResponse) XXX_Size() int { return m.Size() } -func (m *MsgGetPrivateKeysharesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgGetPrivateKeysharesResponse.DiscardUnknown(m) +func (m *MsgRequestPrivateDecryptionKeyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRequestPrivateDecryptionKeyResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgGetPrivateKeysharesResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgRequestPrivateDecryptionKeyResponse proto.InternalMessageInfo // MsgRegisterContract is the Msg/RegisterContract request type. type MsgRegisterContract struct { @@ -1028,14 +1032,14 @@ func init() { proto.RegisterType((*MsgSubmitGeneralEncryptedTxResponse)(nil), "fairyring.pep.MsgSubmitGeneralEncryptedTxResponse") proto.RegisterType((*MsgCreateAggregatedKeyShare)(nil), "fairyring.pep.MsgCreateAggregatedKeyShare") proto.RegisterType((*MsgCreateAggregatedKeyShareResponse)(nil), "fairyring.pep.MsgCreateAggregatedKeyShareResponse") - proto.RegisterType((*MsgRequestGeneralKeyshare)(nil), "fairyring.pep.MsgRequestGeneralKeyshare") - proto.RegisterType((*MsgRequestGeneralKeyshareResponse)(nil), "fairyring.pep.MsgRequestGeneralKeyshareResponse") - proto.RegisterType((*MsgGetGeneralKeyshare)(nil), "fairyring.pep.MsgGetGeneralKeyshare") - proto.RegisterType((*MsgGetGeneralKeyshareResponse)(nil), "fairyring.pep.MsgGetGeneralKeyshareResponse") + proto.RegisterType((*MsgRequestGeneralIdentity)(nil), "fairyring.pep.MsgRequestGeneralIdentity") + proto.RegisterType((*MsgRequestGeneralIdentityResponse)(nil), "fairyring.pep.MsgRequestGeneralIdentityResponse") + proto.RegisterType((*MsgRequestGeneralDecryptionKey)(nil), "fairyring.pep.MsgRequestGeneralDecryptionKey") + proto.RegisterType((*MsgRequestGeneralDecryptionKeyResponse)(nil), "fairyring.pep.MsgRequestGeneralDecryptionKeyResponse") proto.RegisterType((*MsgRequestPrivateIdentity)(nil), "fairyring.pep.MsgRequestPrivateIdentity") proto.RegisterType((*MsgRequestPrivateIdentityResponse)(nil), "fairyring.pep.MsgRequestPrivateIdentityResponse") - proto.RegisterType((*MsgGetPrivateKeyshares)(nil), "fairyring.pep.MsgGetPrivateKeyshares") - proto.RegisterType((*MsgGetPrivateKeysharesResponse)(nil), "fairyring.pep.MsgGetPrivateKeysharesResponse") + proto.RegisterType((*MsgRequestPrivateDecryptionKey)(nil), "fairyring.pep.MsgRequestPrivateDecryptionKey") + proto.RegisterType((*MsgRequestPrivateDecryptionKeyResponse)(nil), "fairyring.pep.MsgRequestPrivateDecryptionKeyResponse") proto.RegisterType((*MsgRegisterContract)(nil), "fairyring.pep.MsgRegisterContract") proto.RegisterType((*MsgRegisterContractResponse)(nil), "fairyring.pep.MsgRegisterContractResponse") proto.RegisterType((*MsgUnregisterContract)(nil), "fairyring.pep.MsgUnregisterContract") @@ -1045,65 +1049,66 @@ func init() { func init() { proto.RegisterFile("fairyring/pep/tx.proto", fileDescriptor_f6953e463911e1ec) } var fileDescriptor_f6953e463911e1ec = []byte{ - // 928 bytes of a gzipped FileDescriptorProto + // 931 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x96, 0xcf, 0x73, 0xdb, 0x44, - 0x14, 0xc7, 0xa3, 0x24, 0x0d, 0xf5, 0x6b, 0x21, 0x8d, 0xf2, 0xa3, 0x8e, 0xa0, 0x4a, 0x70, 0x29, - 0x13, 0x0c, 0x95, 0x20, 0x30, 0x0c, 0x93, 0x5b, 0xdd, 0x40, 0xda, 0xe9, 0x78, 0x26, 0xa3, 0xd0, - 0x1e, 0x7a, 0xf1, 0xac, 0xad, 0xd7, 0xb5, 0x26, 0xb1, 0xa4, 0xec, 0xae, 0x3b, 0x31, 0x27, 0xa6, - 0xc3, 0x70, 0xe0, 0xc4, 0x91, 0x3f, 0x80, 0x03, 0xc7, 0x1c, 0xf8, 0x23, 0x7a, 0xe0, 0xd0, 0x61, - 0x38, 0x70, 0x02, 0x26, 0x39, 0xe4, 0xdf, 0x60, 0xb4, 0x5a, 0xcb, 0xb6, 0x7e, 0xd8, 0x0e, 0x1c, - 0x7a, 0xb1, 0xb5, 0xfb, 0xbe, 0xfb, 0xde, 0xe7, 0xbd, 0xdd, 0x7d, 0x12, 0xac, 0x3d, 0x23, 0x1e, - 0xeb, 0x31, 0xcf, 0xa7, 0x76, 0x88, 0xa1, 0x2d, 0x4e, 0xac, 0x90, 0x05, 0x22, 0xd0, 0xdf, 0x4c, - 0xe6, 0xad, 0x10, 0x43, 0x63, 0x89, 0x74, 0x3c, 0x3f, 0xb0, 0xe5, 0x6f, 0xac, 0x30, 0x6e, 0xb6, - 0x02, 0xde, 0x09, 0xb8, 0xdd, 0xe1, 0xd4, 0x7e, 0xfe, 0x49, 0xf4, 0xa7, 0x0c, 0xeb, 0xb1, 0xa1, - 0x21, 0x47, 0x76, 0x3c, 0x50, 0x26, 0x93, 0x06, 0x01, 0x3d, 0x42, 0x5b, 0x8e, 0x9a, 0xdd, 0x67, - 0xb6, 0xdb, 0x65, 0x44, 0x78, 0x81, 0xaf, 0xec, 0x2b, 0x34, 0xa0, 0x41, 0xbc, 0x2e, 0x7a, 0x52, - 0xb3, 0xc6, 0x28, 0x63, 0x48, 0x18, 0xe9, 0x28, 0x8f, 0x95, 0xdf, 0x34, 0x58, 0xac, 0x73, 0xfa, - 0x38, 0x74, 0x89, 0xc0, 0x7d, 0x69, 0xd1, 0x3f, 0x87, 0x12, 0xe9, 0x8a, 0x76, 0xc0, 0x3c, 0xd1, - 0x2b, 0x6b, 0x9b, 0xda, 0x56, 0xa9, 0x56, 0xfe, 0xfd, 0xd7, 0xbb, 0x2b, 0x0a, 0xe5, 0x9e, 0xeb, - 0x32, 0xe4, 0xfc, 0x40, 0x44, 0x1e, 0x9d, 0x81, 0x54, 0xff, 0x02, 0x16, 0x62, 0xdf, 0xe5, 0xd9, - 0x4d, 0x6d, 0xeb, 0xda, 0xf6, 0xaa, 0x35, 0x52, 0x04, 0x2b, 0x76, 0x5f, 0x2b, 0xbd, 0xfc, 0x6b, - 0x63, 0xe6, 0x97, 0x8b, 0xd3, 0xaa, 0xe6, 0x28, 0xfd, 0xce, 0xde, 0x8b, 0x8b, 0xd3, 0xea, 0xc0, - 0xd3, 0x0f, 0x17, 0xa7, 0xd5, 0xcf, 0xa8, 0x27, 0xda, 0xdd, 0xa6, 0xd5, 0x0a, 0x3a, 0xf6, 0x57, - 0xc4, 0x63, 0xcd, 0xa3, 0xa0, 0x75, 0x68, 0x0f, 0x32, 0x39, 0x91, 0xb9, 0xa4, 0xd0, 0x2b, 0xeb, - 0x70, 0x33, 0x35, 0xe5, 0x20, 0x0f, 0x03, 0x9f, 0x63, 0xe5, 0x85, 0x06, 0x2b, 0x75, 0x4e, 0x0f, - 0xba, 0xcd, 0x8e, 0x27, 0xbe, 0xf4, 0x5b, 0xac, 0x17, 0x0a, 0x74, 0xbf, 0x3e, 0xd1, 0xcb, 0xf0, - 0x46, 0x8b, 0x21, 0x11, 0x01, 0x8b, 0x93, 0x75, 0xfa, 0x43, 0x5d, 0x87, 0x79, 0x97, 0x08, 0x22, - 0xd3, 0x29, 0x39, 0xf2, 0x59, 0xb7, 0x60, 0x59, 0x10, 0x46, 0x51, 0x34, 0x24, 0x51, 0xa3, 0x8d, - 0x1e, 0x6d, 0x8b, 0xf2, 0xdc, 0xa6, 0xb6, 0x35, 0xef, 0x2c, 0xc5, 0xa6, 0x5a, 0x64, 0x79, 0x20, - 0x0d, 0x3b, 0xd7, 0xa3, 0xd4, 0xfa, 0x1e, 0x2b, 0x26, 0xbc, 0x93, 0xc7, 0x90, 0x40, 0x86, 0xf0, - 0x76, 0x62, 0xdf, 0x43, 0x1f, 0x19, 0x39, 0xfa, 0xef, 0xa8, 0xab, 0xb0, 0xc0, 0xf0, 0xb8, 0xe1, - 0xb9, 0x92, 0xae, 0xe4, 0x5c, 0x61, 0x78, 0xfc, 0xd0, 0x4d, 0x11, 0xdd, 0x81, 0xdb, 0x63, 0x22, - 0x26, 0x60, 0xc7, 0x12, 0xec, 0x7e, 0xb4, 0x08, 0xef, 0x51, 0xca, 0x90, 0x12, 0x81, 0xee, 0x23, - 0xec, 0x1d, 0xb4, 0x09, 0xc3, 0x31, 0x60, 0x6b, 0xb0, 0xa0, 0x4a, 0x34, 0x2b, 0x4b, 0xa4, 0x46, - 0x09, 0xf0, 0xdc, 0x00, 0x38, 0x97, 0xac, 0x28, 0x64, 0x42, 0xf6, 0xb3, 0x06, 0xeb, 0x75, 0x4e, - 0x1d, 0x3c, 0xee, 0x22, 0xef, 0xa7, 0xf0, 0x08, 0x7b, 0x7c, 0x02, 0xd8, 0x03, 0x58, 0x44, 0x2e, - 0xbc, 0x4e, 0xe4, 0xb4, 0xe1, 0xe2, 0x11, 0xe9, 0xa9, 0x63, 0xbb, 0x6e, 0xc5, 0xb7, 0xcc, 0xea, - 0xdf, 0x32, 0x6b, 0x57, 0xdd, 0xb2, 0xda, 0xfc, 0x4f, 0x7f, 0x6f, 0x68, 0xce, 0x5b, 0xc9, 0xba, - 0xdd, 0x68, 0xd9, 0x74, 0x75, 0xde, 0x81, 0x77, 0x0b, 0x29, 0xfb, 0xb9, 0x0c, 0x79, 0xd2, 0x86, - 0x3c, 0x55, 0x9e, 0xc0, 0x6a, 0x9d, 0xd3, 0x3d, 0xbc, 0x44, 0x76, 0x03, 0x4f, 0xb3, 0xc5, 0x4c, - 0x1b, 0x70, 0x2b, 0xd7, 0x6f, 0x52, 0xdb, 0xa7, 0xc3, 0xa5, 0xdd, 0x67, 0xde, 0x73, 0x22, 0xf0, - 0xa1, 0x8b, 0xbe, 0x88, 0xae, 0xfb, 0xff, 0x0c, 0x3e, 0x52, 0x90, 0x94, 0xef, 0x49, 0x05, 0x39, - 0x81, 0xb5, 0x18, 0x5c, 0xad, 0xeb, 0x83, 0xf3, 0x4b, 0x43, 0xe9, 0x1b, 0x70, 0x8d, 0x63, 0x2b, - 0x6c, 0x84, 0xdd, 0xe6, 0x21, 0xf6, 0xd4, 0x0e, 0x42, 0x34, 0xb5, 0x2f, 0x67, 0x52, 0xd4, 0x9b, - 0x60, 0xe6, 0x47, 0x4e, 0x6a, 0xf6, 0x9d, 0x06, 0xcb, 0x32, 0x31, 0xea, 0x71, 0x81, 0xec, 0x7e, - 0xe0, 0x0b, 0x46, 0x5a, 0x62, 0x0c, 0xd9, 0x07, 0x70, 0xa3, 0xa5, 0x54, 0x0d, 0x12, 0x37, 0x57, - 0xc5, 0xb8, 0xd8, 0x9f, 0x57, 0x3d, 0x57, 0x37, 0xe0, 0xaa, 0xa7, 0x6a, 0xa4, 0x50, 0x93, 0x71, - 0x0a, 0xf4, 0x96, 0xbc, 0xb0, 0x69, 0x8a, 0x84, 0xf2, 0x7b, 0x4d, 0x9e, 0xa9, 0xc7, 0x3e, 0x7b, - 0xcd, 0x9c, 0xf1, 0x19, 0xcc, 0x72, 0xf4, 0x49, 0xb7, 0xff, 0xb8, 0x0a, 0x73, 0x75, 0x4e, 0xf5, - 0x27, 0x70, 0x7d, 0xe4, 0x2d, 0x65, 0xa6, 0xde, 0x2e, 0xa9, 0xbe, 0x6f, 0xbc, 0x3f, 0xde, 0x9e, - 0x1c, 0x31, 0x84, 0xa5, 0xec, 0x3b, 0xe1, 0x76, 0x76, 0x71, 0x46, 0x64, 0x7c, 0x38, 0x85, 0x28, - 0x09, 0xf3, 0x0d, 0x94, 0x0b, 0xdb, 0x7a, 0xb5, 0xc8, 0x51, 0x56, 0x6b, 0x6c, 0x4f, 0xaf, 0x1d, - 0x8e, 0x5d, 0xd8, 0xb9, 0x73, 0x62, 0x17, 0x69, 0xf3, 0x62, 0x4f, 0x6a, 0xcf, 0xba, 0x80, 0xb5, - 0x82, 0xd6, 0xbc, 0x95, 0xf5, 0x96, 0xaf, 0x34, 0x3e, 0x9e, 0x56, 0x99, 0x44, 0x6d, 0x83, 0x9e, - 0xd3, 0x2e, 0xdf, 0xcb, 0xfa, 0xc9, 0xaa, 0x8c, 0x8f, 0xa6, 0x51, 0xe5, 0xe4, 0x97, 0xee, 0x8f, - 0xc5, 0xf9, 0xa5, 0x94, 0x63, 0xf2, 0x2b, 0xea, 0x8b, 0x87, 0xb0, 0x9c, 0xd7, 0xfd, 0xee, 0xe4, - 0xa2, 0xa7, 0x65, 0xc6, 0xdd, 0xa9, 0x64, 0x49, 0xb0, 0x26, 0xdc, 0xc8, 0x74, 0xb3, 0x4a, 0x1e, - 0xf2, 0xa8, 0xc6, 0xa8, 0x4e, 0xd6, 0x0c, 0x6f, 0x58, 0x4e, 0x2f, 0xca, 0xd9, 0xb0, 0xac, 0x2a, - 0x6f, 0xc3, 0x8a, 0xfb, 0x89, 0x71, 0xe5, 0xdb, 0xe8, 0xd3, 0xb3, 0xb6, 0xfb, 0xf2, 0xcc, 0xd4, - 0x5e, 0x9d, 0x99, 0xda, 0x3f, 0x67, 0xa6, 0xf6, 0xe3, 0xb9, 0x39, 0xf3, 0xea, 0xdc, 0x9c, 0xf9, - 0xf3, 0xdc, 0x9c, 0x79, 0x5a, 0x9d, 0xea, 0xcb, 0x53, 0xf4, 0x42, 0xe4, 0xcd, 0x05, 0xf9, 0x8d, - 0xf0, 0xe9, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x9e, 0xc0, 0xd4, 0x5f, 0x07, 0x0c, 0x00, 0x00, + 0x14, 0xc7, 0xb3, 0x49, 0x1a, 0xf0, 0x6b, 0x21, 0x8d, 0x9a, 0xa4, 0x8e, 0x4a, 0x95, 0xe0, 0x42, + 0xc7, 0x18, 0x22, 0x41, 0xf8, 0x31, 0x4c, 0x6e, 0x75, 0x03, 0x6d, 0xa7, 0x93, 0x99, 0x8c, 0x02, + 0x1c, 0x7a, 0xf1, 0xac, 0xad, 0xed, 0x5a, 0xd3, 0x58, 0x2b, 0xaf, 0xd6, 0x9d, 0x98, 0x53, 0xa7, + 0x30, 0xcc, 0xc0, 0x89, 0x23, 0x7f, 0x00, 0x07, 0x8e, 0x39, 0xf0, 0x47, 0xf4, 0xc0, 0x21, 0xc3, + 0x89, 0x13, 0x30, 0xc9, 0x21, 0xff, 0x06, 0xa3, 0xd5, 0x5a, 0xb6, 0xf5, 0xcb, 0x02, 0x0e, 0xbd, + 0x24, 0xde, 0x7d, 0xdf, 0xfd, 0xbe, 0xcf, 0x7b, 0xf6, 0x3e, 0x09, 0xd6, 0x1f, 0x63, 0x97, 0x0f, + 0xb9, 0xeb, 0x51, 0xcb, 0x27, 0xbe, 0x25, 0x8e, 0x4d, 0x9f, 0x33, 0xc1, 0xb4, 0xd7, 0xe2, 0x7d, + 0xd3, 0x27, 0xbe, 0xbe, 0x82, 0x7b, 0xae, 0xc7, 0x2c, 0xf9, 0x37, 0x52, 0xe8, 0xd7, 0x3b, 0x2c, + 0xe8, 0xb1, 0xc0, 0xea, 0x05, 0xd4, 0x7a, 0xfa, 0x41, 0xf8, 0x4f, 0x05, 0x36, 0xa2, 0x40, 0x4b, + 0xae, 0xac, 0x68, 0xa1, 0x42, 0x06, 0x65, 0x8c, 0x1e, 0x11, 0x4b, 0xae, 0xda, 0x83, 0xc7, 0x96, + 0x33, 0xe0, 0x58, 0xb8, 0xcc, 0x53, 0xf1, 0x55, 0xca, 0x28, 0x8b, 0xce, 0x85, 0x9f, 0xd4, 0xae, + 0x3e, 0xcd, 0xe8, 0x63, 0x8e, 0x7b, 0xca, 0xb1, 0xf6, 0x1b, 0x82, 0xe5, 0xfd, 0x80, 0x7e, 0xe9, + 0x3b, 0x58, 0x90, 0x03, 0x19, 0xd1, 0x3e, 0x81, 0x0a, 0x1e, 0x88, 0x2e, 0xe3, 0xae, 0x18, 0x56, + 0xd1, 0x16, 0xaa, 0x57, 0x9a, 0xd5, 0xdf, 0x7f, 0xdd, 0x5e, 0x55, 0x28, 0x77, 0x1c, 0x87, 0x93, + 0x20, 0x38, 0x14, 0xa1, 0xa3, 0x3d, 0x96, 0x6a, 0x9f, 0xc2, 0x52, 0xe4, 0x5d, 0x9d, 0xdf, 0x42, + 0xf5, 0xcb, 0x3b, 0x6b, 0xe6, 0x54, 0x13, 0xcc, 0xc8, 0xbe, 0x59, 0x79, 0xf1, 0xe7, 0xe6, 0xdc, + 0x2f, 0x17, 0x27, 0x0d, 0x64, 0x2b, 0xfd, 0xee, 0xbd, 0xe7, 0x17, 0x27, 0x8d, 0xb1, 0xd3, 0x0f, + 0x17, 0x27, 0x8d, 0x8f, 0xa8, 0x2b, 0xba, 0x83, 0xb6, 0xd9, 0x61, 0x3d, 0xeb, 0x73, 0xec, 0xf2, + 0xf6, 0x11, 0xeb, 0x3c, 0xb1, 0xc6, 0x95, 0x1c, 0xcb, 0x5a, 0x12, 0xe8, 0xb5, 0x0d, 0xb8, 0x9e, + 0xd8, 0xb2, 0x49, 0xe0, 0x33, 0x2f, 0x20, 0xb5, 0xe7, 0x08, 0x56, 0xf7, 0x03, 0x7a, 0x38, 0x68, + 0xf7, 0x5c, 0xf1, 0x99, 0xd7, 0xe1, 0x43, 0x5f, 0x10, 0xe7, 0x8b, 0x63, 0xad, 0x0a, 0xaf, 0x74, + 0x38, 0xc1, 0x82, 0xf1, 0xa8, 0x58, 0x7b, 0xb4, 0xd4, 0x34, 0x58, 0x74, 0xb0, 0xc0, 0xb2, 0x9c, + 0x8a, 0x2d, 0x3f, 0x6b, 0x26, 0x5c, 0x13, 0x98, 0x53, 0x22, 0x5a, 0x92, 0xa8, 0xd5, 0x25, 0x2e, + 0xed, 0x8a, 0xea, 0xc2, 0x16, 0xaa, 0x2f, 0xda, 0x2b, 0x51, 0xa8, 0x19, 0x46, 0xee, 0xcb, 0xc0, + 0xee, 0x95, 0xb0, 0xb4, 0x91, 0x63, 0xcd, 0x80, 0x37, 0xb2, 0x18, 0x62, 0x48, 0x1f, 0x6e, 0xc4, + 0xf1, 0x7b, 0xc4, 0x23, 0x1c, 0x1f, 0xfd, 0x77, 0xd4, 0x35, 0x58, 0xe2, 0xa4, 0xdf, 0x72, 0x1d, + 0x49, 0x57, 0xb1, 0x2f, 0x71, 0xd2, 0x7f, 0xe0, 0x24, 0x88, 0xde, 0x86, 0x5b, 0x05, 0x19, 0x63, + 0xb0, 0xbe, 0x04, 0xbb, 0x1b, 0x1e, 0x22, 0x77, 0x28, 0xe5, 0x84, 0x62, 0x41, 0x9c, 0x87, 0x64, + 0x78, 0xd8, 0xc5, 0x9c, 0x14, 0x80, 0xad, 0xc3, 0x92, 0x6a, 0xd1, 0xbc, 0x6c, 0x91, 0x5a, 0xc5, + 0xc0, 0x0b, 0x63, 0xe0, 0x4c, 0xb2, 0xbc, 0x94, 0x31, 0xd9, 0xcf, 0x08, 0x36, 0xf6, 0x03, 0x6a, + 0x93, 0xfe, 0x80, 0x04, 0xa3, 0x12, 0x1e, 0x38, 0xc4, 0x13, 0xe1, 0x6f, 0x32, 0x1f, 0xec, 0x3e, + 0x2c, 0x93, 0x40, 0xb8, 0xbd, 0xd0, 0xb4, 0xe5, 0x90, 0x23, 0x3c, 0x54, 0x3f, 0xdb, 0x0d, 0x33, + 0xba, 0x65, 0xe6, 0xe8, 0x96, 0x99, 0x7b, 0xea, 0x96, 0x35, 0x17, 0x7f, 0xfa, 0x6b, 0x13, 0xd9, + 0xaf, 0xc7, 0xe7, 0xf6, 0xc2, 0x63, 0xe5, 0xfa, 0xbc, 0x0b, 0x6f, 0xe6, 0x52, 0x8e, 0x6a, 0x99, + 0x70, 0x42, 0x13, 0x4e, 0xb5, 0x16, 0x18, 0xa9, 0xb3, 0x7b, 0x44, 0x7e, 0x49, 0x2e, 0xf3, 0x1e, + 0x92, 0xa2, 0x32, 0xc7, 0x96, 0xf3, 0xf9, 0x70, 0x75, 0xb8, 0x5d, 0x9c, 0x20, 0xee, 0xf6, 0xa3, + 0xc9, 0x66, 0x1f, 0x70, 0xf7, 0x29, 0x16, 0xa4, 0x44, 0xb3, 0x4b, 0x51, 0x4c, 0xb5, 0x28, 0xe1, + 0x3d, 0xab, 0x45, 0xcf, 0xd0, 0x64, 0x8f, 0xd4, 0xe1, 0xff, 0xd7, 0x23, 0x6d, 0x13, 0x2e, 0x07, + 0xa4, 0xe3, 0xb7, 0xfc, 0x41, 0xfb, 0x09, 0x19, 0xaa, 0x2f, 0x17, 0xc2, 0xad, 0x03, 0xb9, 0x53, + 0xd4, 0xc4, 0x2c, 0x82, 0xb8, 0x89, 0xdf, 0x22, 0xb8, 0x26, 0xa5, 0xd4, 0x0d, 0x04, 0xe1, 0x77, + 0x99, 0x27, 0x38, 0xee, 0x88, 0x02, 0xc2, 0x77, 0xe0, 0x6a, 0x47, 0xa9, 0x5a, 0x38, 0x9a, 0xbf, + 0x8a, 0x75, 0x79, 0xb4, 0xaf, 0xc6, 0xb2, 0xa6, 0xc3, 0xab, 0xae, 0x6a, 0x9a, 0x42, 0x8e, 0xd7, + 0x09, 0xe0, 0x9b, 0xf2, 0x4e, 0x27, 0x29, 0x62, 0xca, 0xef, 0x10, 0xac, 0x85, 0xc3, 0xd4, 0xe3, + 0x2f, 0x99, 0x73, 0x13, 0x6e, 0x66, 0x72, 0x8c, 0x48, 0x77, 0xbe, 0xaf, 0xc0, 0xc2, 0x7e, 0x40, + 0xb5, 0xaf, 0xe0, 0xca, 0xd4, 0x83, 0xcc, 0x48, 0x3c, 0x80, 0x12, 0x8f, 0x06, 0xfd, 0x76, 0x71, + 0x3c, 0xfe, 0xcd, 0x11, 0x58, 0x49, 0x3f, 0x36, 0x6e, 0xa5, 0x0f, 0xa7, 0x44, 0xfa, 0xbb, 0x25, + 0x44, 0x71, 0x9a, 0xaf, 0xa1, 0x9a, 0x3b, 0xf9, 0x1b, 0x79, 0x46, 0x69, 0xad, 0xbe, 0x53, 0x5e, + 0x3b, 0x99, 0x3b, 0x77, 0xb8, 0x67, 0xe4, 0xce, 0xd3, 0x66, 0xe5, 0x9e, 0x35, 0xc1, 0x35, 0x01, + 0xeb, 0x39, 0xd3, 0xbb, 0x9e, 0x76, 0xcb, 0x56, 0xea, 0xef, 0x97, 0x55, 0xc6, 0x59, 0xbf, 0x41, + 0x70, 0xa3, 0x68, 0xa4, 0x6e, 0xcf, 0x72, 0x9c, 0x92, 0xeb, 0x1f, 0xff, 0x2b, 0x79, 0x46, 0xed, + 0xc9, 0x61, 0x9a, 0x5f, 0x7b, 0x42, 0x59, 0x50, 0x7b, 0xde, 0x10, 0x9d, 0xa8, 0x3d, 0x73, 0x54, + 0x6e, 0xcf, 0x72, 0x2c, 0x5b, 0x7b, 0xd1, 0x18, 0xd4, 0xda, 0x70, 0x35, 0x35, 0x02, 0x6b, 0x59, + 0x56, 0xd3, 0x1a, 0xbd, 0x31, 0x5b, 0x13, 0xe7, 0xe8, 0x82, 0x96, 0x31, 0xc0, 0xde, 0xca, 0xb8, + 0xf8, 0x29, 0x95, 0xfe, 0x5e, 0x19, 0xd5, 0x28, 0x93, 0x7e, 0xe9, 0x59, 0xf8, 0x4a, 0xdb, 0xdc, + 0x7b, 0x71, 0x66, 0xa0, 0xd3, 0x33, 0x03, 0xfd, 0x7d, 0x66, 0xa0, 0x1f, 0xcf, 0x8d, 0xb9, 0xd3, + 0x73, 0x63, 0xee, 0x8f, 0x73, 0x63, 0xee, 0x51, 0xa3, 0xd4, 0x1b, 0xad, 0x18, 0xfa, 0x24, 0x68, + 0x2f, 0xc9, 0x77, 0x8f, 0x0f, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0x3e, 0xe6, 0xc9, 0xa4, 0x5f, + 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1130,20 +1135,20 @@ type MsgClient interface { // CreateAggregatedKeyShare defines an operation to submit an // aggregated keyshare to a destination chain CreateAggregatedKeyShare(ctx context.Context, in *MsgCreateAggregatedKeyShare, opts ...grpc.CallOption) (*MsgCreateAggregatedKeyShareResponse, error) - // RequestGeneralKeyshare defines an operation to request the + // RequestGeneralIdentity defines an operation to request the // creation of a new identity to which validators will be required // to submit keyshares - RequestGeneralKeyshare(ctx context.Context, in *MsgRequestGeneralKeyshare, opts ...grpc.CallOption) (*MsgRequestGeneralKeyshareResponse, error) - // GetGeneralKeyshare defines an operation to signal validators to start + RequestGeneralIdentity(ctx context.Context, in *MsgRequestGeneralIdentity, opts ...grpc.CallOption) (*MsgRequestGeneralIdentityResponse, error) + // RequestGeneralDecryptionKey defines an operation to signal validators to start // submitting keyshares for a particular identity - GetGeneralKeyshare(ctx context.Context, in *MsgGetGeneralKeyshare, opts ...grpc.CallOption) (*MsgGetGeneralKeyshareResponse, error) + RequestGeneralDecryptionKey(ctx context.Context, in *MsgRequestGeneralDecryptionKey, opts ...grpc.CallOption) (*MsgRequestGeneralDecryptionKeyResponse, error) // RequestPrivateIdentity defines an operation to request the // creation of a new identity to which validators will be required // to submit encrypted keyshares RequestPrivateIdentity(ctx context.Context, in *MsgRequestPrivateIdentity, opts ...grpc.CallOption) (*MsgRequestPrivateIdentityResponse, error) - // GetPrivateKeyshares defines an operation to signal validators to start + // RequestPrivateDecryptionKey defines an operation to signal validators to start // submitting encrypted keyshares for a particular identity - GetPrivateKeyshares(ctx context.Context, in *MsgGetPrivateKeyshares, opts ...grpc.CallOption) (*MsgGetPrivateKeysharesResponse, error) + RequestPrivateDecryptionKey(ctx context.Context, in *MsgRequestPrivateDecryptionKey, opts ...grpc.CallOption) (*MsgRequestPrivateDecryptionKeyResponse, error) // RegisterContract defines an operation to make an instantiated // contract eligible to be automatically executed when a particular // identity has aggregated keyshares available for it @@ -1198,18 +1203,18 @@ func (c *msgClient) CreateAggregatedKeyShare(ctx context.Context, in *MsgCreateA return out, nil } -func (c *msgClient) RequestGeneralKeyshare(ctx context.Context, in *MsgRequestGeneralKeyshare, opts ...grpc.CallOption) (*MsgRequestGeneralKeyshareResponse, error) { - out := new(MsgRequestGeneralKeyshareResponse) - err := c.cc.Invoke(ctx, "/fairyring.pep.Msg/RequestGeneralKeyshare", in, out, opts...) +func (c *msgClient) RequestGeneralIdentity(ctx context.Context, in *MsgRequestGeneralIdentity, opts ...grpc.CallOption) (*MsgRequestGeneralIdentityResponse, error) { + out := new(MsgRequestGeneralIdentityResponse) + err := c.cc.Invoke(ctx, "/fairyring.pep.Msg/RequestGeneralIdentity", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *msgClient) GetGeneralKeyshare(ctx context.Context, in *MsgGetGeneralKeyshare, opts ...grpc.CallOption) (*MsgGetGeneralKeyshareResponse, error) { - out := new(MsgGetGeneralKeyshareResponse) - err := c.cc.Invoke(ctx, "/fairyring.pep.Msg/GetGeneralKeyshare", in, out, opts...) +func (c *msgClient) RequestGeneralDecryptionKey(ctx context.Context, in *MsgRequestGeneralDecryptionKey, opts ...grpc.CallOption) (*MsgRequestGeneralDecryptionKeyResponse, error) { + out := new(MsgRequestGeneralDecryptionKeyResponse) + err := c.cc.Invoke(ctx, "/fairyring.pep.Msg/RequestGeneralDecryptionKey", in, out, opts...) if err != nil { return nil, err } @@ -1225,9 +1230,9 @@ func (c *msgClient) RequestPrivateIdentity(ctx context.Context, in *MsgRequestPr return out, nil } -func (c *msgClient) GetPrivateKeyshares(ctx context.Context, in *MsgGetPrivateKeyshares, opts ...grpc.CallOption) (*MsgGetPrivateKeysharesResponse, error) { - out := new(MsgGetPrivateKeysharesResponse) - err := c.cc.Invoke(ctx, "/fairyring.pep.Msg/GetPrivateKeyshares", in, out, opts...) +func (c *msgClient) RequestPrivateDecryptionKey(ctx context.Context, in *MsgRequestPrivateDecryptionKey, opts ...grpc.CallOption) (*MsgRequestPrivateDecryptionKeyResponse, error) { + out := new(MsgRequestPrivateDecryptionKeyResponse) + err := c.cc.Invoke(ctx, "/fairyring.pep.Msg/RequestPrivateDecryptionKey", in, out, opts...) if err != nil { return nil, err } @@ -1266,20 +1271,20 @@ type MsgServer interface { // CreateAggregatedKeyShare defines an operation to submit an // aggregated keyshare to a destination chain CreateAggregatedKeyShare(context.Context, *MsgCreateAggregatedKeyShare) (*MsgCreateAggregatedKeyShareResponse, error) - // RequestGeneralKeyshare defines an operation to request the + // RequestGeneralIdentity defines an operation to request the // creation of a new identity to which validators will be required // to submit keyshares - RequestGeneralKeyshare(context.Context, *MsgRequestGeneralKeyshare) (*MsgRequestGeneralKeyshareResponse, error) - // GetGeneralKeyshare defines an operation to signal validators to start + RequestGeneralIdentity(context.Context, *MsgRequestGeneralIdentity) (*MsgRequestGeneralIdentityResponse, error) + // RequestGeneralDecryptionKey defines an operation to signal validators to start // submitting keyshares for a particular identity - GetGeneralKeyshare(context.Context, *MsgGetGeneralKeyshare) (*MsgGetGeneralKeyshareResponse, error) + RequestGeneralDecryptionKey(context.Context, *MsgRequestGeneralDecryptionKey) (*MsgRequestGeneralDecryptionKeyResponse, error) // RequestPrivateIdentity defines an operation to request the // creation of a new identity to which validators will be required // to submit encrypted keyshares RequestPrivateIdentity(context.Context, *MsgRequestPrivateIdentity) (*MsgRequestPrivateIdentityResponse, error) - // GetPrivateKeyshares defines an operation to signal validators to start + // RequestPrivateDecryptionKey defines an operation to signal validators to start // submitting encrypted keyshares for a particular identity - GetPrivateKeyshares(context.Context, *MsgGetPrivateKeyshares) (*MsgGetPrivateKeysharesResponse, error) + RequestPrivateDecryptionKey(context.Context, *MsgRequestPrivateDecryptionKey) (*MsgRequestPrivateDecryptionKeyResponse, error) // RegisterContract defines an operation to make an instantiated // contract eligible to be automatically executed when a particular // identity has aggregated keyshares available for it @@ -1306,17 +1311,17 @@ func (*UnimplementedMsgServer) SubmitGeneralEncryptedTx(ctx context.Context, req func (*UnimplementedMsgServer) CreateAggregatedKeyShare(ctx context.Context, req *MsgCreateAggregatedKeyShare) (*MsgCreateAggregatedKeyShareResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateAggregatedKeyShare not implemented") } -func (*UnimplementedMsgServer) RequestGeneralKeyshare(ctx context.Context, req *MsgRequestGeneralKeyshare) (*MsgRequestGeneralKeyshareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RequestGeneralKeyshare not implemented") +func (*UnimplementedMsgServer) RequestGeneralIdentity(ctx context.Context, req *MsgRequestGeneralIdentity) (*MsgRequestGeneralIdentityResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RequestGeneralIdentity not implemented") } -func (*UnimplementedMsgServer) GetGeneralKeyshare(ctx context.Context, req *MsgGetGeneralKeyshare) (*MsgGetGeneralKeyshareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGeneralKeyshare not implemented") +func (*UnimplementedMsgServer) RequestGeneralDecryptionKey(ctx context.Context, req *MsgRequestGeneralDecryptionKey) (*MsgRequestGeneralDecryptionKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RequestGeneralDecryptionKey not implemented") } func (*UnimplementedMsgServer) RequestPrivateIdentity(ctx context.Context, req *MsgRequestPrivateIdentity) (*MsgRequestPrivateIdentityResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RequestPrivateIdentity not implemented") } -func (*UnimplementedMsgServer) GetPrivateKeyshares(ctx context.Context, req *MsgGetPrivateKeyshares) (*MsgGetPrivateKeysharesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPrivateKeyshares not implemented") +func (*UnimplementedMsgServer) RequestPrivateDecryptionKey(ctx context.Context, req *MsgRequestPrivateDecryptionKey) (*MsgRequestPrivateDecryptionKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RequestPrivateDecryptionKey not implemented") } func (*UnimplementedMsgServer) RegisterContract(ctx context.Context, req *MsgRegisterContract) (*MsgRegisterContractResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RegisterContract not implemented") @@ -1401,38 +1406,38 @@ func _Msg_CreateAggregatedKeyShare_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } -func _Msg_RequestGeneralKeyshare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgRequestGeneralKeyshare) +func _Msg_RequestGeneralIdentity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRequestGeneralIdentity) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).RequestGeneralKeyshare(ctx, in) + return srv.(MsgServer).RequestGeneralIdentity(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.pep.Msg/RequestGeneralKeyshare", + FullMethod: "/fairyring.pep.Msg/RequestGeneralIdentity", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).RequestGeneralKeyshare(ctx, req.(*MsgRequestGeneralKeyshare)) + return srv.(MsgServer).RequestGeneralIdentity(ctx, req.(*MsgRequestGeneralIdentity)) } return interceptor(ctx, in, info, handler) } -func _Msg_GetGeneralKeyshare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgGetGeneralKeyshare) +func _Msg_RequestGeneralDecryptionKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRequestGeneralDecryptionKey) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).GetGeneralKeyshare(ctx, in) + return srv.(MsgServer).RequestGeneralDecryptionKey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.pep.Msg/GetGeneralKeyshare", + FullMethod: "/fairyring.pep.Msg/RequestGeneralDecryptionKey", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).GetGeneralKeyshare(ctx, req.(*MsgGetGeneralKeyshare)) + return srv.(MsgServer).RequestGeneralDecryptionKey(ctx, req.(*MsgRequestGeneralDecryptionKey)) } return interceptor(ctx, in, info, handler) } @@ -1455,20 +1460,20 @@ func _Msg_RequestPrivateIdentity_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } -func _Msg_GetPrivateKeyshares_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgGetPrivateKeyshares) +func _Msg_RequestPrivateDecryptionKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRequestPrivateDecryptionKey) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).GetPrivateKeyshares(ctx, in) + return srv.(MsgServer).RequestPrivateDecryptionKey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.pep.Msg/GetPrivateKeyshares", + FullMethod: "/fairyring.pep.Msg/RequestPrivateDecryptionKey", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).GetPrivateKeyshares(ctx, req.(*MsgGetPrivateKeyshares)) + return srv.(MsgServer).RequestPrivateDecryptionKey(ctx, req.(*MsgRequestPrivateDecryptionKey)) } return interceptor(ctx, in, info, handler) } @@ -1530,20 +1535,20 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ Handler: _Msg_CreateAggregatedKeyShare_Handler, }, { - MethodName: "RequestGeneralKeyshare", - Handler: _Msg_RequestGeneralKeyshare_Handler, + MethodName: "RequestGeneralIdentity", + Handler: _Msg_RequestGeneralIdentity_Handler, }, { - MethodName: "GetGeneralKeyshare", - Handler: _Msg_GetGeneralKeyshare_Handler, + MethodName: "RequestGeneralDecryptionKey", + Handler: _Msg_RequestGeneralDecryptionKey_Handler, }, { MethodName: "RequestPrivateIdentity", Handler: _Msg_RequestPrivateIdentity_Handler, }, { - MethodName: "GetPrivateKeyshares", - Handler: _Msg_GetPrivateKeyshares_Handler, + MethodName: "RequestPrivateDecryptionKey", + Handler: _Msg_RequestPrivateDecryptionKey_Handler, }, { MethodName: "RegisterContract", @@ -1818,7 +1823,7 @@ func (m *MsgCreateAggregatedKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *MsgRequestGeneralKeyshare) Marshal() (dAtA []byte, err error) { +func (m *MsgRequestGeneralIdentity) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1828,12 +1833,12 @@ func (m *MsgRequestGeneralKeyshare) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgRequestGeneralKeyshare) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgRequestGeneralIdentity) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgRequestGeneralKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgRequestGeneralIdentity) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1865,7 +1870,7 @@ func (m *MsgRequestGeneralKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *MsgRequestGeneralKeyshareResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgRequestGeneralIdentityResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1875,12 +1880,12 @@ func (m *MsgRequestGeneralKeyshareResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgRequestGeneralKeyshareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgRequestGeneralIdentityResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgRequestGeneralKeyshareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgRequestGeneralIdentityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1895,7 +1900,7 @@ func (m *MsgRequestGeneralKeyshareResponse) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *MsgGetGeneralKeyshare) Marshal() (dAtA []byte, err error) { +func (m *MsgRequestGeneralDecryptionKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1905,12 +1910,12 @@ func (m *MsgGetGeneralKeyshare) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgGetGeneralKeyshare) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgRequestGeneralDecryptionKey) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgGetGeneralKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgRequestGeneralDecryptionKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1932,7 +1937,7 @@ func (m *MsgGetGeneralKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgGetGeneralKeyshareResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgRequestGeneralDecryptionKeyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1942,12 +1947,12 @@ func (m *MsgGetGeneralKeyshareResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgGetGeneralKeyshareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgRequestGeneralDecryptionKeyResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgGetGeneralKeyshareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgRequestGeneralDecryptionKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2022,7 +2027,7 @@ func (m *MsgRequestPrivateIdentityResponse) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *MsgGetPrivateKeyshares) Marshal() (dAtA []byte, err error) { +func (m *MsgRequestPrivateDecryptionKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2032,12 +2037,12 @@ func (m *MsgGetPrivateKeyshares) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgGetPrivateKeyshares) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgRequestPrivateDecryptionKey) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgGetPrivateKeyshares) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgRequestPrivateDecryptionKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2066,7 +2071,7 @@ func (m *MsgGetPrivateKeyshares) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *MsgGetPrivateKeysharesResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgRequestPrivateDecryptionKeyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2076,12 +2081,12 @@ func (m *MsgGetPrivateKeysharesResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgGetPrivateKeysharesResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgRequestPrivateDecryptionKeyResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgGetPrivateKeysharesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgRequestPrivateDecryptionKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2346,7 +2351,7 @@ func (m *MsgCreateAggregatedKeyShareResponse) Size() (n int) { return n } -func (m *MsgRequestGeneralKeyshare) Size() (n int) { +func (m *MsgRequestGeneralIdentity) Size() (n int) { if m == nil { return 0 } @@ -2367,7 +2372,7 @@ func (m *MsgRequestGeneralKeyshare) Size() (n int) { return n } -func (m *MsgRequestGeneralKeyshareResponse) Size() (n int) { +func (m *MsgRequestGeneralIdentityResponse) Size() (n int) { if m == nil { return 0 } @@ -2380,7 +2385,7 @@ func (m *MsgRequestGeneralKeyshareResponse) Size() (n int) { return n } -func (m *MsgGetGeneralKeyshare) Size() (n int) { +func (m *MsgRequestGeneralDecryptionKey) Size() (n int) { if m == nil { return 0 } @@ -2397,7 +2402,7 @@ func (m *MsgGetGeneralKeyshare) Size() (n int) { return n } -func (m *MsgGetGeneralKeyshareResponse) Size() (n int) { +func (m *MsgRequestGeneralDecryptionKeyResponse) Size() (n int) { if m == nil { return 0 } @@ -2436,7 +2441,7 @@ func (m *MsgRequestPrivateIdentityResponse) Size() (n int) { return n } -func (m *MsgGetPrivateKeyshares) Size() (n int) { +func (m *MsgRequestPrivateDecryptionKey) Size() (n int) { if m == nil { return 0 } @@ -2457,7 +2462,7 @@ func (m *MsgGetPrivateKeyshares) Size() (n int) { return n } -func (m *MsgGetPrivateKeysharesResponse) Size() (n int) { +func (m *MsgRequestPrivateDecryptionKeyResponse) Size() (n int) { if m == nil { return 0 } @@ -3259,7 +3264,7 @@ func (m *MsgCreateAggregatedKeyShareResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgRequestGeneralKeyshare) Unmarshal(dAtA []byte) error { +func (m *MsgRequestGeneralIdentity) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3282,10 +3287,10 @@ func (m *MsgRequestGeneralKeyshare) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgRequestGeneralKeyshare: wiretype end group for non-group") + return fmt.Errorf("proto: MsgRequestGeneralIdentity: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRequestGeneralKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgRequestGeneralIdentity: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3409,7 +3414,7 @@ func (m *MsgRequestGeneralKeyshare) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgRequestGeneralKeyshareResponse) Unmarshal(dAtA []byte) error { +func (m *MsgRequestGeneralIdentityResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3432,10 +3437,10 @@ func (m *MsgRequestGeneralKeyshareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgRequestGeneralKeyshareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgRequestGeneralIdentityResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgRequestGeneralKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgRequestGeneralIdentityResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3491,7 +3496,7 @@ func (m *MsgRequestGeneralKeyshareResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgGetGeneralKeyshare) Unmarshal(dAtA []byte) error { +func (m *MsgRequestGeneralDecryptionKey) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3514,10 +3519,10 @@ func (m *MsgGetGeneralKeyshare) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgGetGeneralKeyshare: wiretype end group for non-group") + return fmt.Errorf("proto: MsgRequestGeneralDecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgGetGeneralKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgRequestGeneralDecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3605,7 +3610,7 @@ func (m *MsgGetGeneralKeyshare) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgGetGeneralKeyshareResponse) Unmarshal(dAtA []byte) error { +func (m *MsgRequestGeneralDecryptionKeyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3628,10 +3633,10 @@ func (m *MsgGetGeneralKeyshareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgGetGeneralKeyshareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgRequestGeneralDecryptionKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgGetGeneralKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgRequestGeneralDecryptionKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -3851,7 +3856,7 @@ func (m *MsgRequestPrivateIdentityResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgGetPrivateKeyshares) Unmarshal(dAtA []byte) error { +func (m *MsgRequestPrivateDecryptionKey) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3874,10 +3879,10 @@ func (m *MsgGetPrivateKeyshares) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgGetPrivateKeyshares: wiretype end group for non-group") + return fmt.Errorf("proto: MsgRequestPrivateDecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgGetPrivateKeyshares: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgRequestPrivateDecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3997,7 +4002,7 @@ func (m *MsgGetPrivateKeyshares) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgGetPrivateKeysharesResponse) Unmarshal(dAtA []byte) error { +func (m *MsgRequestPrivateDecryptionKeyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4020,10 +4025,10 @@ func (m *MsgGetPrivateKeysharesResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgGetPrivateKeysharesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgRequestPrivateDecryptionKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgGetPrivateKeysharesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgRequestPrivateDecryptionKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: From 113a8a78df023bd69620f1f3d53430950be72b27 Mon Sep 17 00:00:00 2001 From: bowenyou Date: Thu, 17 Oct 2024 01:50:03 -0400 Subject: [PATCH 04/30] update protos --- proto/fairyring/common/shared_types.proto | 10 +- .../keyshare/authorized_address.proto | 8 +- ...d_key_share.proto => decryption_key.proto} | 6 +- proto/fairyring/keyshare/genesis.proto | 35 ++-- .../{key_share.proto => keyshare.proto} | 27 +-- .../keyshare/{pub_key.proto => pubkey.proto} | 10 +- proto/fairyring/keyshare/query.proto | 124 +++++++------- proto/fairyring/keyshare/tx.proto | 154 +++++++++--------- proto/fairyring/pep/query.proto | 89 +++++----- proto/fairyring/pep/tx.proto | 110 +++++++------ 10 files changed, 280 insertions(+), 293 deletions(-) rename proto/fairyring/keyshare/{aggregated_key_share.proto => decryption_key.proto} (51%) rename proto/fairyring/keyshare/{key_share.proto => keyshare.proto} (61%) rename proto/fairyring/keyshare/{pub_key.proto => pubkey.proto} (67%) diff --git a/proto/fairyring/common/shared_types.proto b/proto/fairyring/common/shared_types.proto index 58283089..4f1b9a6b 100644 --- a/proto/fairyring/common/shared_types.proto +++ b/proto/fairyring/common/shared_types.proto @@ -1,8 +1,8 @@ syntax = "proto3"; package fairyring.common; -import "google/protobuf/duration.proto"; import "gogoproto/gogo.proto"; +import "google/protobuf/duration.proto"; option go_package = "github.com/Fairblock/fairyring/x/common/types"; @@ -14,18 +14,18 @@ message RequestDecryptionKey { string proposal_id = 2; string request_id = 3; } - google.protobuf.Duration estimated_delay = 4 [(gogoproto.stdduration) = true]; + google.protobuf.Duration estimated_delay = 4 [(gogoproto.stdduration) = true]; } // RequestDecryptionKeyResponse defines the response to the RequestDecryptionKey message message RequestDecryptionKeyResponse { string identity = 1; - string pubkey = 2; + string pubkey = 2; } // GetDecryptionKey defines a struct for the data payload message GetDecryptionKey { - // id can either be a rwquest id or a proposal id + // id can either be a request id or a proposal id oneof id { string proposal_id = 1; string request_id = 2; @@ -46,7 +46,7 @@ message GetPrivateDecryptionKey { // GetPrivateDecryptionKeyResponse defines the response to the GetPrivateDecryptionKey message message GetPrivateDecryptionKeyResponse { - string pubkey = 1; + string pubkey = 1; } // ActivePublicKey defines the pubkey currently in use diff --git a/proto/fairyring/keyshare/authorized_address.proto b/proto/fairyring/keyshare/authorized_address.proto index b0f1d163..08ca29fe 100644 --- a/proto/fairyring/keyshare/authorized_address.proto +++ b/proto/fairyring/keyshare/authorized_address.proto @@ -3,9 +3,9 @@ package fairyring.keyshare; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; -// AuthorizedAddress defines if an address is authorized to submit pubkeys +// AuthorizedAddress defines if an address is authorized to submit keyshares message AuthorizedAddress { - string target = 1; - bool is_authorized = 2; - string authorized_by = 3; + string target = 1; + bool is_authorized = 2; + string authorized_by = 3; } diff --git a/proto/fairyring/keyshare/aggregated_key_share.proto b/proto/fairyring/keyshare/decryption_key.proto similarity index 51% rename from proto/fairyring/keyshare/aggregated_key_share.proto rename to proto/fairyring/keyshare/decryption_key.proto index bdff5227..d5754405 100644 --- a/proto/fairyring/keyshare/aggregated_key_share.proto +++ b/proto/fairyring/keyshare/decryption_key.proto @@ -3,8 +3,8 @@ package fairyring.keyshare; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; -// AggregatedKeyShare defines the structure and height for an aggregated keyshare -message AggregatedKeyShare { - uint64 height = 1; +// Decryption key defines the structure and height for a decryption key +message DecryptionKey { + uint64 height = 1; string data = 2; } diff --git a/proto/fairyring/keyshare/genesis.proto b/proto/fairyring/keyshare/genesis.proto index 0dc5752d..c6f542b9 100644 --- a/proto/fairyring/keyshare/genesis.proto +++ b/proto/fairyring/keyshare/genesis.proto @@ -3,29 +3,30 @@ syntax = "proto3"; package fairyring.keyshare; import "amino/amino.proto"; -import "gogoproto/gogo.proto"; -import "fairyring/keyshare/params.proto"; -import "fairyring/keyshare/validator_set.proto"; +import "fairyring/keyshare/authorized_address.proto"; +import "fairyring/keyshare/decryption_key.proto"; import "fairyring/keyshare/key_share.proto"; -import "fairyring/keyshare/aggregated_key_share.proto"; +import "fairyring/keyshare/params.proto"; import "fairyring/keyshare/pub_key.proto"; -import "fairyring/keyshare/authorized_address.proto"; +import "fairyring/keyshare/validator_set.proto"; +import "gogoproto/gogo.proto"; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; // GenesisState defines the keyshare module's genesis state. message GenesisState { - // params defines all the parameters of the module. - Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; - string port_id = 2; - repeated ValidatorSet validator_set_list = 3 [(gogoproto.nullable) = false]; - repeated KeyShare key_share_list = 4 [(gogoproto.nullable) = false]; - repeated AggregatedKeyShare aggregated_key_share_list = 5 [(gogoproto.nullable) = false]; - ActivePubKey active_pub_key = 6 [(gogoproto.nullable) = false]; - QueuedPubKey queued_pub_key = 7 [(gogoproto.nullable) = false]; - repeated AuthorizedAddress authorized_address_list = 8 [(gogoproto.nullable) = false]; - uint64 request_count = 9; - repeated GeneralKeyShare general_key_share_list = 10 [(gogoproto.nullable) = false]; + Params params = 1 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + string port_id = 2; + repeated ValidatorSet validator_set_list = 3 [(gogoproto.nullable) = false]; + repeated Keyshare keyshare_list = 4 [(gogoproto.nullable) = false]; + repeated DecryptionKey decryption_key_list = 5 [(gogoproto.nullable) = false]; + ActivePubKey active_pub_key = 6 [(gogoproto.nullable) = false]; + QueuedPubKey queued_pub_key = 7 [(gogoproto.nullable) = false]; + repeated AuthorizedAddress authorized_address_list = 8 [(gogoproto.nullable) = false]; + uint64 request_count = 9; + repeated GeneralKeyshare general_keyshare_list = 10 [(gogoproto.nullable) = false]; } - diff --git a/proto/fairyring/keyshare/key_share.proto b/proto/fairyring/keyshare/keyshare.proto similarity index 61% rename from proto/fairyring/keyshare/key_share.proto rename to proto/fairyring/keyshare/keyshare.proto index bceb300c..fbc3ebcd 100644 --- a/proto/fairyring/keyshare/key_share.proto +++ b/proto/fairyring/keyshare/keyshare.proto @@ -3,37 +3,38 @@ package fairyring.keyshare; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; -// KeyShare defines the structure for submitting +// Keyshare defines the structure for submitting // blockwise keyshares by validators -message KeyShare { +message Keyshare { string validator = 1; uint64 block_height = 2; - string key_share = 3; - uint64 key_share_index = 4; + string keyshare = 3; + uint64 keyshare_index = 4; uint64 received_timestamp = 5; uint64 received_block_height = 6; } -// GeneralKeyShare defines the structure for submitting +// GeneralKeyshare defines the structure for submitting // general keyshares by validators -message GeneralKeyShare { +message GeneralKeyshare { string validator = 1; string id_type = 2; string id_value = 3; - string key_share = 4; - uint64 key_share_index = 5; + string keyshare = 4; + uint64 keyshare_index = 5; uint64 received_timestamp = 6; uint64 received_block_height = 7; } -// ValidatorEncryptedKeyShare defines the structure for +// ValidatorEncryptedKeyshare defines the structure for // submitting encrypted keyshares by validators -message ValidatorEncryptedKeyShare { +message ValidatorEncryptedKeyshare { string validator = 1; string requester = 2; - string key_share = 3; - uint64 key_share_index = 4; + string keyshare = 3; + uint64 keyshare_index = 4; uint64 received_timestamp = 5; uint64 received_block_height = 6; string identity = 7; -} \ No newline at end of file +} + diff --git a/proto/fairyring/keyshare/pub_key.proto b/proto/fairyring/keyshare/pubkey.proto similarity index 67% rename from proto/fairyring/keyshare/pub_key.proto rename to proto/fairyring/keyshare/pubkey.proto index 88ee4bb2..dfb9cf63 100644 --- a/proto/fairyring/keyshare/pub_key.proto +++ b/proto/fairyring/keyshare/pubkey.proto @@ -3,9 +3,9 @@ package fairyring.keyshare; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; -// EncryptedKeyShare defines the structure for storing -// blockwise keyshares submitted by validators -message EncryptedKeyShare { +// EncryptedKeyshare defines the structure for storing +// the keyshare of the master secret key distributed to the validators +message EncryptedKeyshare { string data = 1; string validator = 2; } @@ -16,7 +16,7 @@ message ActivePubKey { string creator = 2; uint64 expiry = 3; uint64 number_of_validators = 4; - repeated EncryptedKeyShare encrypted_key_shares = 5; + repeated EncryptedKeyshare encrypted_keyshares = 5; } // QueuedPubKey defines the structure of the queued public key @@ -25,5 +25,5 @@ message QueuedPubKey { string creator = 2; uint64 expiry = 3; uint64 number_of_validators = 4; - repeated EncryptedKeyShare encrypted_key_shares = 5; + repeated EncryptedKeyShare encrypted_keyshares = 5; } diff --git a/proto/fairyring/keyshare/query.proto b/proto/fairyring/keyshare/query.proto index 33e3a674..e5917671 100644 --- a/proto/fairyring/keyshare/query.proto +++ b/proto/fairyring/keyshare/query.proto @@ -3,110 +3,97 @@ syntax = "proto3"; package fairyring.keyshare; import "amino/amino.proto"; -import "gogoproto/gogo.proto"; -import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "fairyring/keyshare/params.proto"; -import "fairyring/keyshare/validator_set.proto"; -import "fairyring/keyshare/key_share.proto"; -import "fairyring/keyshare/aggregated_key_share.proto"; -import "fairyring/keyshare/pub_key.proto"; import "fairyring/keyshare/authorized_address.proto"; import "fairyring/keyshare/commitments.proto"; +import "fairyring/keyshare/decryption_key.proto"; +import "fairyring/keyshare/keyshare.proto"; +import "fairyring/keyshare/params.proto"; +import "fairyring/keyshare/pubkey.proto"; +import "fairyring/keyshare/validator_set.proto"; +import "gogoproto/gogo.proto"; +import "google/api/annotations.proto"; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; // Query defines the gRPC querier service. service Query { - // Parameters queries the parameters of the module. - rpc Params (QueryParamsRequest) returns (QueryParamsResponse) { + rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { option (google.api.http).get = "/fairyring/keyshare/params"; - } // Commitments queries the lists of active and queued commitments - rpc Commitments (QueryCommitmentsRequest) returns (QueryCommitmentsResponse) { + rpc Commitments(QueryCommitmentsRequest) returns (QueryCommitmentsResponse) { option (google.api.http).get = "/fairyring/keyshare/commitments"; } // Queries a ValidatorSet by index. - rpc ValidatorSet (QueryValidatorSetRequest) returns (QueryValidatorSetResponse) { + rpc ValidatorSet(QueryValidatorSetRequest) returns (QueryValidatorSetResponse) { option (google.api.http).get = "/fairyring/keyshare/validator_set/{index}"; - } // Queries a list of ValidatorSet items. - rpc ValidatorSetAll (QueryValidatorSetAllRequest) returns (QueryValidatorSetAllResponse) { + rpc ValidatorSetAll(QueryValidatorSetAllRequest) returns (QueryValidatorSetAllResponse) { option (google.api.http).get = "/fairyring/keyshare/validator_set"; - } - // Queries a KeyShare by index. - rpc KeyShare (QueryKeyShareRequest) returns (QueryKeyShareResponse) { - option (google.api.http).get = "/fairyring/keyshare/key_share/{validator}/{block_height}"; - + // Queries a Keyshare by index. + rpc Keyshare(QueryKeyshareRequest) returns (QueryKeyshareResponse) { + option (google.api.http).get = "/fairyring/keyshare/keyshare/{validator}/{block_height}"; } - // Queries a list of KeyShare items. - rpc KeyShareAll (QueryKeyShareAllRequest) returns (QueryKeyShareAllResponse) { - option (google.api.http).get = "/fairyring/keyshare/key_share"; - + // Queries a list of Keyshare items. + rpc KeyshareAll(QueryKeyshareAllRequest) returns (QueryKeyshareAllResponse) { + option (google.api.http).get = "/fairyring/keyshare/keyshare"; } // DecryptionKey queries a DecryptionKey item by height. - rpc DecryptionKey (QueryDecryptionKeyRequest) returns (QueryDecryptionKeyResponse) { + rpc DecryptionKey(QueryDecryptionKeyRequest) returns (QueryDecryptionKeyResponse) { option (google.api.http).get = "/fairyring/keyshare/decryption_key/{height}"; - } // DecryptionKeyAll Queries a list of DecryptionKey items. - rpc DecryptionKeyAll (QueryDecryptionKeyAllRequest) returns (QueryDecryptionKeyAllResponse) { + rpc DecryptionKeyAll(QueryDecryptionKeyAllRequest) returns (QueryDecryptionKeyAllResponse) { option (google.api.http).get = "/fairyring/keyshare/decryption_key"; - } // Queries the public keys - rpc PubKey (QueryPubKeyRequest) returns (QueryPubKeyResponse) { - option (google.api.http).get = "/fairyring/keyshare/pub_key"; - + rpc PubKey(QueryPubkeyRequest) returns (QueryPubkeyResponse) { + option (google.api.http).get = "/fairyring/keyshare/pubkey"; } // Queries a AuthorizedAddress item by target. - rpc AuthorizedAddress (QueryAuthorizedAddressRequest) returns (QueryAuthorizedAddressResponse) { + rpc AuthorizedAddress(QueryAuthorizedAddressRequest) returns (QueryAuthorizedAddressResponse) { option (google.api.http).get = "/fairyring/keyshare/authorized_address/{target}"; - } // Queries a list of AuthorizedAddress items - rpc AuthorizedAddressAll (QueryAuthorizedAddressAllRequest) returns (QueryAuthorizedAddressAllResponse) { + rpc AuthorizedAddressAll(QueryAuthorizedAddressAllRequest) returns (QueryAuthorizedAddressAllResponse) { option (google.api.http).get = "/fairyring/keyshare/authorized_address"; - } // Queries a GeneralKeyShare item by validator address and identity. - rpc GeneralKeyShare (QueryGeneralKeyShareRequest) returns (QueryGeneralKeyShareResponse) { - option (google.api.http).get = "/fairyring/keyshare/general_key_share/{validator}/{id_type}/{id_value}"; - + rpc GeneralKeyshare(QueryGeneralKeyshareRequest) returns (QueryGeneralKeyshareResponse) { + option (google.api.http).get = "/fairyring/keyshare/general_keyshare/{validator}/{id_type}/{id_value}"; } // Queries a list of GeneralKeyShare items - rpc GeneralKeyShareAll (QueryGeneralKeyShareAllRequest) returns (QueryGeneralKeyShareAllResponse) { - option (google.api.http).get = "/fairyring/keyshare/general_key_share"; - + rpc GeneralKeyshareAll(QueryGeneralKeyshareAllRequest) returns (QueryGeneralKeyshareAllResponse) { + option (google.api.http).get = "/fairyring/keyshare/general_keyshare"; } // Queries verifiable randomness - rpc VerifiableRandomness (QueryVerifiableRandomnessRequest) returns (QueryVerifiableRandomnessResponse) { + rpc VerifiableRandomness(QueryVerifiableRandomnessRequest) returns (QueryVerifiableRandomnessResponse) { option (google.api.http).get = "/fairyring/keyshare/verifiable_randomness"; } } -// QueryVerifiableRandomnessRequest is the request type for +// QueryVerifiableRandomnessRequest is the request type for // the Query/VerifiableRandomness method message QueryVerifiableRandomnessRequest {} -// QueryVerifiableRandomnessResponse is the response type for +// QueryVerifiableRandomnessResponse is the response type for // the Query/VerifiableRandomness method message QueryVerifiableRandomnessResponse { string randomness = 1; @@ -118,9 +105,11 @@ message QueryParamsRequest {} // QueryParamsResponse is response type for the Query/Params RPC method. message QueryParamsResponse { - // params holds all the parameters of this module. - Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + Params params = 1 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; } // QueryCommitmentsRequest is request type for the Query/Commitments RPC method. @@ -150,28 +139,28 @@ message QueryValidatorSetAllRequest { // QueryValidatorSetAllResponse is response type for the Query/ValidatorSetAll RPC method. message QueryValidatorSetAllResponse { repeated ValidatorSet validator_set = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } // QueryKeyShareRequest is request type for the Query/KeyShare RPC method. -message QueryKeyShareRequest { - string validator = 1; +message QueryKeyshareRequest { + string validator = 1; uint64 block_height = 2; } // QueryKeyShareResponse is response type for the Query/KeyShare RPC method. -message QueryKeyShareResponse { +message QueryKeyshareResponse { KeyShare key_share = 1 [(gogoproto.nullable) = false]; } // QueryKeyShareAllRequest is request type for the Query/KeyShareAll RPC method. -message QueryKeyShareAllRequest { +message QueryKeyshareAllRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } // QueryKeyShareAllResponse is response type for the Query/KeyShareAll RPC method. -message QueryKeyShareAllResponse { - repeated KeyShare key_share = 1 [(gogoproto.nullable) = false]; +message QueryKeyshareAllResponse { + repeated Keyshare keyshare = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } @@ -192,17 +181,17 @@ message QueryDecryptionKeyAllRequest { // QueryAggregatedKeyShareAllResponse is response type for the Query/DecryptionKeyAll RPC method. message QueryDecryptionKeyAllResponse { - repeated AggregatedKeyShare decryption_keys = 1 [(gogoproto.nullable) = false]; + repeated DecryptionKey decryption_keys = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } // QueryPubKeyRequest is request type for the Query/PubKey RPC method. -message QueryPubKeyRequest {} +message QueryPubkeyRequest {} // QueryPubKeyResponse is response type for the Query/PubKey RPC method. -message QueryPubKeyResponse { - ActivePubKey active_pub_key = 1 [(gogoproto.nullable) = false]; - QueuedPubKey queued_pub_key = 2 [(gogoproto.nullable) = false]; +message QueryPubkeyResponse { + ActivePubKey active_pubkey = 1 [(gogoproto.nullable) = false]; + QueuedPubKey queued_pubkey = 2 [(gogoproto.nullable) = false]; } // QueryAuthorizedAddressRequest is request type for the Query/AuthorizedAddress RPC method. @@ -223,29 +212,28 @@ message QueryAuthorizedAddressAllRequest { // QueryAuthorizedAddressAllResponse is response type for the Query/AuthorizedAddressAll RPC method. message QueryAuthorizedAddressAllResponse { repeated AuthorizedAddress authorized_address = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } // QueryGeneralKeyShareRequest is request type for the Query/GeneralKeyShare RPC method. -message QueryGeneralKeyShareRequest { +message QueryGeneralKeyshareRequest { string validator = 1; - string id_type = 2; - string id_value = 3; + string id_type = 2; + string id_value = 3; } // QueryGeneralKeyShareResponse is response type for the Query/GeneralKeyShare RPC method. -message QueryGeneralKeyShareResponse { - GeneralKeyShare general_key_share = 1 [(gogoproto.nullable) = false]; +message QueryGeneralKeyshareResponse { + GeneralKeyShare general_keyshare = 1 [(gogoproto.nullable) = false]; } // QueryGeneralKeyShareAllRequest is request type for the Query/GeneralKeyShareAll RPC method. -message QueryGeneralKeyShareAllRequest { +message QueryGeneralKeyshareAllRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } // QueryGeneralKeyShareAllResponse is response type for the Query/GeneralKeyShareAll RPC method. -message QueryGeneralKeyShareAllResponse { - repeated GeneralKeyShare general_key_share = 1 [(gogoproto.nullable) = false]; - cosmos.base.query.v1beta1.PageResponse pagination = 2; +message QueryGeneralKeyshareAllResponse { + repeated GeneralKeyshare general_keyshare = 1 [(gogoproto.nullable) = false]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } - diff --git a/proto/fairyring/keyshare/tx.proto b/proto/fairyring/keyshare/tx.proto index 591d2beb..b1175dbe 100644 --- a/proto/fairyring/keyshare/tx.proto +++ b/proto/fairyring/keyshare/tx.proto @@ -5,71 +5,75 @@ package fairyring.keyshare; import "amino/amino.proto"; import "cosmos/msg/v1/msg.proto"; import "cosmos_proto/cosmos.proto"; -import "gogoproto/gogo.proto"; import "fairyring/keyshare/params.proto"; -import "fairyring/keyshare/pub_key.proto"; +import "fairyring/keyshare/pubkey.proto"; +import "gogoproto/gogo.proto"; option go_package = "github.com/Fairblock/fairyring/x/keyshare/types"; // Msg defines the Msg service. service Msg { option (cosmos.msg.v1.service) = true; - + // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. - rpc UpdateParams (MsgUpdateParams ) returns (MsgUpdateParamsResponse ); - + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); + // RegisterValidator defines a operation to register validator which // is then eligible to participate in sending keyshares - rpc RegisterValidator (MsgRegisterValidator ) returns (MsgRegisterValidatorResponse ); - + rpc RegisterValidator(MsgRegisterValidator) returns (MsgRegisterValidatorResponse); + // DeRegisterValidator defines an operation to de-register // a registered validator - rpc DeRegisterValidator (MsgDeRegisterValidator) returns (MsgDeRegisterValidatorResponse); - + rpc DeRegisterValidator(MsgDeRegisterValidator) returns (MsgDeRegisterValidatorResponse); + // SendKeyshare defines an operation to submit keyshares // every block from registered validators - rpc SendKeyshare (MsgSendKeyshare ) returns (MsgSendKeyshareResponse ); - + rpc SendKeyshare(MsgSendKeyshare) returns (MsgSendKeyshareResponse); + // CreateLatestPubKey defines an operation to add a // public key to the chain (can only be done by an authorized address) - rpc CreateLatestPubKey (MsgCreateLatestPubKey ) returns (MsgCreateLatestPubKeyResponse ); - + rpc CreateLatestPubKey(MsgCreateLatestPubKey) returns (MsgCreateLatestPubKeyResponse); + // OverrideLatestPubKey defines an operation to override the current active pubkey - rpc OverrideLatestPubKey (MsgOverrideLatestPubKey ) returns (MsgOverrideLatestPubKeyResponse ); - + rpc OverrideLatestPubKey(MsgOverrideLatestPubKey) returns (MsgOverrideLatestPubKeyResponse); + // CreateAuthorizedAddress defines an operation to mark an address // as authorized to create and/or update pubkeys on the chain - rpc CreateAuthorizedAddress (MsgCreateAuthorizedAddress) returns (MsgCreateAuthorizedAddressResponse); - + rpc CreateAuthorizedAddress(MsgCreateAuthorizedAddress) returns (MsgCreateAuthorizedAddressResponse); + // UpdateAuthorizedAddress defines an operation to update the // list of authorized addresses - rpc UpdateAuthorizedAddress (MsgUpdateAuthorizedAddress) returns (MsgUpdateAuthorizedAddressResponse); - + rpc UpdateAuthorizedAddress(MsgUpdateAuthorizedAddress) returns (MsgUpdateAuthorizedAddressResponse); + // DeleteAuthorizedAddress defines an operation to revoke the // authorization of a previously authorized address - rpc DeleteAuthorizedAddress (MsgDeleteAuthorizedAddress) returns (MsgDeleteAuthorizedAddressResponse); - + rpc DeleteAuthorizedAddress(MsgDeleteAuthorizedAddress) returns (MsgDeleteAuthorizedAddressResponse); + // SubmitGeneralKeyShare defines an operation to submit a // general keyshare from a registered validator - rpc SubmitGeneralKeyShare (MsgSubmitGeneralKeyShare ) returns (MsgSubmitGeneralKeyShareResponse ); - + rpc SubmitGeneralKeyshare(MsgSubmitGeneralKeyshare) returns (MsgSubmitGeneralKeyshareResponse); + // SubmitEncryptedKeyshare defines an operation to submit // an encrypted keyshare from a registered validator - rpc SubmitEncryptedKeyshare (MsgSubmitEncryptedKeyshare) returns (MsgSubmitEncryptedKeyshareResponse); + rpc SubmitEncryptedKeyshare(MsgSubmitEncryptedKeyshare) returns (MsgSubmitEncryptedKeyshareResponse); } + // MsgUpdateParams is the Msg/UpdateParams request type. message MsgUpdateParams { - option (cosmos.msg.v1.signer) = "authority"; - option (amino.name) = "fairyring/x/keyshare/MsgUpdateParams"; - + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "fairyring/x/keyshare/MsgUpdateParams"; + // authority is the address that controls the module (defaults to x/gov unless overwritten). string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // params defines the module parameters to update. - + // NOTE: All parameters must be supplied. - Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + Params params = 2 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; } // MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message. @@ -102,32 +106,32 @@ message MsgDeRegisterValidatorResponse { // MsgSendKeyshare is the Msg/SendKeyshare request type. message MsgSendKeyshare { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - string message = 2; - uint64 key_share_index = 3; - uint64 block_height = 4; + string creator = 1; + string message = 2; + uint64 keyshare_index = 3; + uint64 block_height = 4; } // MsgSendKeyshareResponse defines the response structure for // executing a MsgSendKeyshare message. message MsgSendKeyshareResponse { - string creator = 1; - string keyshare = 2; - uint64 keyshare_index = 3; - uint64 block_height = 4; + string creator = 1; + string keyshare = 2; + uint64 keyshare_index = 3; + uint64 block_height = 4; uint64 received_block_height = 5; - bool success = 6; - string error_message = 7; + bool success = 6; + string error_message = 7; } // MsgCreateLatestPubKey is the Msg/CreateLatestPubKey request type. message MsgCreateLatestPubKey { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - string public_key = 2; - repeated string commitments = 3; - uint64 number_of_validators = 4; - repeated EncryptedKeyShare encrypted_key_shares = 5; + string creator = 1; + string public_key = 2; + repeated string commitments = 3; + uint64 number_of_validators = 4; + repeated EncryptedKeyshare encrypted_keyshares = 5; } // MsgCreateLatestPubKeyResponse defines the response structure for @@ -137,11 +141,11 @@ message MsgCreateLatestPubKeyResponse {} // MsgOverrideLatestPubKey is the Msg/OverrideLatestPubKey request type. message MsgOverrideLatestPubKey { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - string public_key = 2; - repeated string commitments = 3; - uint64 number_of_validators = 4; - repeated EncryptedKeyShare encrypted_key_shares = 5; + string creator = 1; + string public_key = 2; + repeated string commitments = 3; + uint64 number_of_validators = 4; + repeated EncryptedKeyshare encrypted_keyshares = 5; } // MsgOverrideLatestPubKeyResponse defines the response structure for @@ -151,7 +155,7 @@ message MsgOverrideLatestPubKeyResponse {} // MsgCreateAuthorizedAddress is the Msg/CreateAuthorizedAddress request type. message MsgCreateAuthorizedAddress { option (cosmos.msg.v1.signer) = "creator"; - string target = 1; + string target = 1; string creator = 2; } @@ -162,9 +166,9 @@ message MsgCreateAuthorizedAddressResponse {} // MsgUpdateAuthorizedAddress is the Msg/UpdateAuthorizedAddress request type. message MsgUpdateAuthorizedAddress { option (cosmos.msg.v1.signer) = "creator"; - string target = 1; - bool is_authorized = 2; - string creator = 3; + string target = 1; + bool is_authorized = 2; + string creator = 3; } // MsgUpdateAuthorizedAddressResponse defines the response structure for @@ -174,7 +178,7 @@ message MsgUpdateAuthorizedAddressResponse {} // MsgDeleteAuthorizedAddress is the Msg/DeleteAuthorizedAddress request type. message MsgDeleteAuthorizedAddress { option (cosmos.msg.v1.signer) = "creator"; - string target = 1; + string target = 1; string creator = 2; } @@ -183,40 +187,40 @@ message MsgDeleteAuthorizedAddress { message MsgDeleteAuthorizedAddressResponse {} // MsgSubmitGeneralKeyShare is the Msg/CreateGeneralKeyShare request type. -message MsgSubmitGeneralKeyShare { +message MsgSubmitGeneralKeyshare { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - string id_type = 2; - string id_value = 3; - string key_share = 4; - uint64 key_share_index = 5; - uint64 received_timestamp = 6; + string creator = 1; + string id_type = 2; + string id_value = 3; + string keyshare = 4; + uint64 keyshare_index = 5; + uint64 received_timestamp = 6; uint64 received_block_height = 7; } // MsgSubmitGeneralKeyShareResponse defines the response structure for // executing a MsgSubmitGeneralKeyShare message. -message MsgSubmitGeneralKeyShareResponse { - string creator = 1; - string id_type = 2; - string id_value = 3; - string key_share = 4; - uint64 key_share_index = 5; +message MsgSubmitGeneralKeyshareResponse { + string creator = 1; + string id_type = 2; + string id_value = 3; + string keyshare = 4; + uint64 keyshare_index = 5; uint64 received_block_height = 6; - bool success = 7; - string error_message = 8; + bool success = 7; + string error_message = 8; } // MsgSubmitEncryptedKeyshare is the Msg/SubmitEncryptedKeyshare request type. message MsgSubmitEncryptedKeyshare { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - string identity = 2; - string encrypted_keyshare = 3; - uint64 key_share_index = 4; - uint64 received_timestamp = 5; + string creator = 1; + string identity = 2; + string encrypted_keyshare = 3; + uint64 keyshare_index = 4; + uint64 received_timestamp = 5; uint64 received_block_height = 6; - string requester = 7; + string requester = 7; } // MsgSubmitEncryptedKeyshareResponse defines the response structure for diff --git a/proto/fairyring/pep/query.proto b/proto/fairyring/pep/query.proto index e340a311..b3769ce5 100644 --- a/proto/fairyring/pep/query.proto +++ b/proto/fairyring/pep/query.proto @@ -3,89 +3,76 @@ syntax = "proto3"; package fairyring.pep; import "amino/amino.proto"; -import "gogoproto/gogo.proto"; -import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "fairyring/pep/params.proto"; +import "fairyring/common/shared_types.proto"; import "fairyring/pep/encrypted_tx.proto"; +import "fairyring/pep/params.proto"; import "fairyring/pep/pep_nonce.proto"; -import "fairyring/common/shared_types.proto"; +import "gogoproto/gogo.proto"; +import "google/api/annotations.proto"; option go_package = "github.com/Fairblock/fairyring/x/pep/types"; // Query defines the gRPC querier service. service Query { - // Parameters queries the parameters of the module. - rpc Params (QueryParamsRequest) returns (QueryParamsResponse) { + rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { option (google.api.http).get = "/fairyring/pep/params"; - } - + // Queries a EncryptedTx by index. - rpc EncryptedTx (QueryEncryptedTxRequest) returns (QueryEncryptedTxResponse) { + rpc EncryptedTx(QueryEncryptedTxRequest) returns (QueryEncryptedTxResponse) { option (google.api.http).get = "/fairyring/pep/encrypted_tx/{target_height}/{index}"; - } - + // Queries a list of EncryptedTx items. - rpc EncryptedTxAll (QueryEncryptedTxAllRequest) returns (QueryEncryptedTxAllResponse) { + rpc EncryptedTxAll(QueryEncryptedTxAllRequest) returns (QueryEncryptedTxAllResponse) { option (google.api.http).get = "/fairyring/pep/encrypted_tx"; - } - + // Queries a list of EncryptedTx items. - rpc EncryptedTxAllFromHeight (QueryEncryptedTxAllFromHeightRequest) returns (QueryEncryptedTxAllFromHeightResponse) { + rpc EncryptedTxAllFromHeight(QueryEncryptedTxAllFromHeightRequest) returns (QueryEncryptedTxAllFromHeightResponse) { option (google.api.http).get = "/fairyring/pep/encrypted_tx/{target_height}"; - } - + // Queries a list of LatestHeight items. - rpc LatestHeight (QueryLatestHeightRequest) returns (QueryLatestHeightResponse) { + rpc LatestHeight(QueryLatestHeightRequest) returns (QueryLatestHeightResponse) { option (google.api.http).get = "/fairyring/pep/latest_height"; - } - + // Queries a PepNonce by index. - rpc PepNonce (QueryPepNonceRequest) returns (QueryPepNonceResponse) { + rpc PepNonce(QueryPepNonceRequest) returns (QueryPepNonceResponse) { option (google.api.http).get = "/fairyring/pep/pep_nonce/{address}"; - } - + // Queries a list of PepNonce items. - rpc PepNonceAll (QueryPepNonceAllRequest) returns (QueryPepNonceAllResponse) { + rpc PepNonceAll(QueryPepNonceAllRequest) returns (QueryPepNonceAllResponse) { option (google.api.http).get = "/fairyring/pep/pep_nonce"; - } - + // Queries the public keys - rpc PubKey (QueryPubKeyRequest) returns (QueryPubKeyResponse) { - option (google.api.http).get = "/fairyring/pep/pub_key"; - + rpc PubKey(QueryPubkeyRequest) returns (QueryPubkeyResponse) { + option (google.api.http).get = "/fairyring/pep/pubkey"; } // Queries a General Identity request by request id - rpc GeneralIdentity (QueryGeneralIdentityRequest) returns (QueryGeneralIdentityResponse) { + rpc GeneralIdentity(QueryGeneralIdentityRequest) returns (QueryGeneralIdentityResponse) { option (google.api.http).get = "/fairyring/pep/general_identity/{req_id}"; - } // Queries a list of General Identity requests - rpc GeneralIdentityAll (QueryGeneralIdentityAllRequest) returns (QueryGeneralIdentityAllResponse) { + rpc GeneralIdentityAll(QueryGeneralIdentityAllRequest) returns (QueryGeneralIdentityAllResponse) { option (google.api.http).get = "/fairyring/pep/general_identity"; - } - + // Queries a Private Identity request item by req id. - rpc PrivateIdentity (QueryPrivateIdentityRequest) returns (QueryPrivateIdentityResponse) { + rpc PrivateIdentity(QueryPrivateIdentityRequest) returns (QueryPrivateIdentityResponse) { option (google.api.http).get = "/Fairblock/fairyring/pep/private_identity/{req_id}"; - } - + // Queries a list of DecryptData items. - rpc DecryptData (QueryDecryptDataRequest) returns (QueryDecryptDataResponse) { - option (google.api.http).get = "/Fairblock/fairyring/pep/decrypt_data/{pubkey}/{aggr_keyshare}/{encrypted_data}"; - + rpc DecryptData(QueryDecryptDataRequest) returns (QueryDecryptDataResponse) { + option (google.api.http).get = "/Fairblock/fairyring/pep/decrypt_data/{pubkey}/{decryption_key}/{encrypted_data}"; } } @@ -94,9 +81,11 @@ message QueryParamsRequest {} // QueryParamsResponse is response type for the Query/Params RPC method. message QueryParamsResponse { - // params holds all the parameters of this module. - Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + Params params = 1 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; } // QueryGeneralIdentityRequest is request type for the Query/GeneralIdentity RPC method. @@ -116,14 +105,14 @@ message QueryGeneralIdentityAllRequest { // QueryGeneralIdentityAllResponse is response type for the Query/GeneralIdentityAll RPC method. message QueryGeneralIdentityAllResponse { - repeated IdentityExecutionEntry request_details_list = 1; - cosmos.base.query.v1beta1.PageResponse pagination = 2; + repeated IdentityExecutionEntry request_details_list = 1; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } // QueryEncryptedTxRequest is request type for the Query/EncryptedTx RPC method. message QueryEncryptedTxRequest { uint64 target_height = 1; - uint64 index = 2; + uint64 index = 2; } // QueryEncryptedTxResponse is response type for the Query/EncryptedTx RPC method. @@ -182,12 +171,12 @@ message QueryPepNonceAllResponse { } // QueryPubKeyRequest is request type for the Query/PubKey RPC method. -message QueryPubKeyRequest {} +message QueryPubkeyRequest {} // QueryPubKeyResponse is response type for the Query/PubKey RPC method. -message QueryPubKeyResponse { - fairyring.common.ActivePublicKey active_pub_key = 1 [(gogoproto.nullable) = false]; - fairyring.common.QueuedPublicKey queued_pub_key = 2 [(gogoproto.nullable) = false]; +message QueryPubkeyResponse { + fairyring.common.ActivePublicKey active_pubkey = 1 [(gogoproto.nullable) = false]; + fairyring.common.QueuedPublicKey queued_pubkey = 2 [(gogoproto.nullable) = false]; } // QueryPrivateIdentityRequest is request type for the Query/PrivateIdentity RPC method. @@ -206,7 +195,7 @@ message QueryPrivateIdentityResponse { // QueryDecryptDataRequest is request type for the Query/DecryptData RPC method. message QueryDecryptDataRequest { string pubkey = 1; - string aggr_keyshare = 2; + string decryption_key = 2; string encrypted_data = 3; } diff --git a/proto/fairyring/pep/tx.proto b/proto/fairyring/pep/tx.proto index c1797495..511f2781 100644 --- a/proto/fairyring/pep/tx.proto +++ b/proto/fairyring/pep/tx.proto @@ -5,74 +5,77 @@ package fairyring.pep; import "amino/amino.proto"; import "cosmos/msg/v1/msg.proto"; import "cosmos_proto/cosmos.proto"; -import "google/protobuf/duration.proto"; - +import "fairyring/pep/params.proto"; // this line is used by starport scaffolding # proto/tx/import import "gogoproto/gogo.proto"; -import "fairyring/pep/params.proto"; +import "google/protobuf/duration.proto"; option go_package = "github.com/Fairblock/fairyring/x/pep/types"; // Msg defines the Msg service. service Msg { option (cosmos.msg.v1.service) = true; - + // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. - rpc UpdateParams (MsgUpdateParams ) returns (MsgUpdateParamsResponse ); - + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); + // SubmitEncryptedTx defines an operation to submit an // encrypted transaction for a particular target block height - rpc SubmitEncryptedTx (MsgSubmitEncryptedTx ) returns (MsgSubmitEncryptedTxResponse); - + rpc SubmitEncryptedTx(MsgSubmitEncryptedTx) returns (MsgSubmitEncryptedTxResponse); + // SubmitGeneralEncryptedTx defines an operation to submit an // encrypted transaction for a particular identity - rpc SubmitGeneralEncryptedTx (MsgSubmitGeneralEncryptedTx) returns (MsgSubmitGeneralEncryptedTxResponse); - - // CreateAggregatedKeyShare defines an operation to submit an - // aggregated keyshare to a destination chain - rpc CreateAggregatedKeyShare (MsgCreateAggregatedKeyShare) returns (MsgCreateAggregatedKeyShareResponse); - + rpc SubmitGeneralEncryptedTx(MsgSubmitGeneralEncryptedTx) returns (MsgSubmitGeneralEncryptedTxResponse); + + // SubmitDecryptionKey defines an operation to submit a + // decryption to a destination chain + rpc SubmitDecryptionKey(MsgSubmitDecryptionKey) returns (MsgSubmitDecryptionKeyResponse); + // RequestGeneralIdentity defines an operation to request the // creation of a new identity to which validators will be required // to submit keyshares - rpc RequestGeneralIdentity (MsgRequestGeneralIdentity ) returns (MsgRequestGeneralIdentityResponse ); - + rpc RequestGeneralIdentity(MsgRequestGeneralIdentity) returns (MsgRequestGeneralIdentityResponse); + // RequestGeneralDecryptionKey defines an operation to signal validators to start // submitting keyshares for a particular identity - rpc RequestGeneralDecryptionKey (MsgRequestGeneralDecryptionKey ) returns (MsgRequestGeneralDecryptionKeyResponse ); - + rpc RequestGeneralDecryptionKey(MsgRequestGeneralDecryptionKey) returns (MsgRequestGeneralDecryptionKeyResponse); + // RequestPrivateIdentity defines an operation to request the // creation of a new identity to which validators will be required // to submit encrypted keyshares - rpc RequestPrivateIdentity (MsgRequestPrivateIdentity ) returns (MsgRequestPrivateIdentityResponse ); - + rpc RequestPrivateIdentity(MsgRequestPrivateIdentity) returns (MsgRequestPrivateIdentityResponse); + // RequestPrivateDecryptionKey defines an operation to signal validators to start // submitting encrypted keyshares for a particular identity - rpc RequestPrivateDecryptionKey (MsgRequestPrivateDecryptionKey ) returns (MsgRequestPrivateDecryptionKeyResponse ); - + rpc RequestPrivateDecryptionKey(MsgRequestPrivateDecryptionKey) returns (MsgRequestPrivateDecryptionKeyResponse); + // RegisterContract defines an operation to make an instantiated // contract eligible to be automatically executed when a particular // identity has aggregated keyshares available for it - rpc RegisterContract (MsgRegisterContract ) returns (MsgRegisterContractResponse ); - + rpc RegisterContract(MsgRegisterContract) returns (MsgRegisterContractResponse); + // UnregisterContract defines an operation to remove a registered contract // from the list of contracts set to be automatically executed when // aggreagted keyshare is available for a particular identity - rpc UnregisterContract (MsgUnregisterContract ) returns (MsgUnregisterContractResponse ); + rpc UnregisterContract(MsgUnregisterContract) returns (MsgUnregisterContractResponse); } + // MsgUpdateParams is the Msg/UpdateParams request type. message MsgUpdateParams { - option (cosmos.msg.v1.signer) = "authority"; - option (amino.name) = "github.com/Fairblock/fairyring/x/pep/MsgUpdateParams"; - + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "github.com/Fairblock/fairyring/x/pep/MsgUpdateParams"; + // authority is the address that controls the module (defaults to x/gov unless overwritten). string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // params defines the module parameters to update. - + // NOTE: All parameters must be supplied. - Params params = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + Params params = 2 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; } // MsgUpdateParamsResponse defines the response structure for executing a @@ -82,8 +85,8 @@ message MsgUpdateParamsResponse {} // MsgSubmitEncryptedTx is the Msg/SubmitEncryptedTx request type. message MsgSubmitEncryptedTx { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - string data = 2; + string creator = 1; + string data = 2; uint64 target_block_height = 3; } @@ -95,8 +98,8 @@ message MsgSubmitEncryptedTxResponse {} message MsgSubmitGeneralEncryptedTx { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; - string data = 2; - string req_id = 3; + string data = 2; + string req_id = 3; } // MsgSubmitGeneralEncryptedTxResponse defines the response structure for executing a @@ -104,23 +107,23 @@ message MsgSubmitGeneralEncryptedTx { message MsgSubmitGeneralEncryptedTxResponse {} // MsgCreateAggregatedKeyShare is the Msg/CreateAggregatedKeyShare request type. -message MsgCreateAggregatedKeyShare { +message MsgSubmitDecryptionKey { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; - uint64 height = 2; - string data = 3; + uint64 height = 2; + string data = 3; } -// MsgCreateAggregatedKeyShareResponse defines the response structure for executing a -// MsgCreateAggregatedKeyShare message. -message MsgCreateAggregatedKeyShareResponse {} +// MsgSubmitDecryptionKeyResponse defines the response structure for executing a +// MsgSubmitDecryptionKey message. +message MsgSubmitDecryptionKeyResponse {} // MsgRequestGeneralIdentity is the Msg/RequestGeneralIdentity request type. message MsgRequestGeneralIdentity { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; + string creator = 1; google.protobuf.Duration estimated_delay = 2 [(gogoproto.stdduration) = true]; - string req_id = 3; + string req_id = 3; } // MsgRequestGeneralIdentityResponse defines the response structure for executing a @@ -133,7 +136,7 @@ message MsgRequestGeneralIdentityResponse { message MsgRequestGeneralDecryptionKey { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; - string req_id = 2; + string req_id = 2; } // MsgRequestGeneralDecryptionKeyResponse defines the response structure for executing a @@ -143,8 +146,8 @@ message MsgRequestGeneralDecryptionKeyResponse {} // MsgRequestPrivateIdentity is the Msg/RequestPrivateIdentity request type. message MsgRequestPrivateIdentity { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - string req_id = 2; + string creator = 1; + string req_id = 2; } // MsgRequestPrivateIdentityResponse defines the response structure for executing a @@ -156,9 +159,9 @@ message MsgRequestPrivateIdentityResponse { // MsgRequestPrivateDecryptionKey is the Msg/RequestPrivateDecryptionKey request type. message MsgRequestPrivateDecryptionKey { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; - string req_id = 2; - string secp_pubkey = 3; + string creator = 1; + string req_id = 2; + string secp_pubkey = 3; } // MsgRequestPrivateDecryptionKeyResponse defines the response structure for executing a @@ -168,9 +171,9 @@ message MsgRequestPrivateDecryptionKeyResponse {} // MsgRegisterContract is the Msg/RegisterContract request type. message MsgRegisterContract { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; + string creator = 1; string contract_address = 2; - string identity = 3; + string identity = 3; } // MsgRegisterContractResponse defines the response structure for executing a @@ -180,11 +183,12 @@ message MsgRegisterContractResponse {} // MsgUnregisterContract is the Msg/UnregisterContract request type. message MsgUnregisterContract { option (cosmos.msg.v1.signer) = "creator"; - string creator = 1; + string creator = 1; string contract_address = 2; - string identity = 3; + string identity = 3; } // MsgUnregisterContractResponse defines the response structure for executing a // MsgUnregisterContract message. -message MsgUnregisterContractResponse {} \ No newline at end of file +message MsgUnregisterContractResponse {} + From 6e600d14b08678b3799ba1b5c9101a860e69ee9f Mon Sep 17 00:00:00 2001 From: ap0calypse644 Date: Thu, 17 Oct 2024 20:07:53 +0530 Subject: [PATCH 05/30] renaming updating proto files --- proto/fairyring/keyshare/genesis.proto | 4 ++-- proto/fairyring/keyshare/pubkey.proto | 2 +- proto/fairyring/keyshare/query.proto | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/proto/fairyring/keyshare/genesis.proto b/proto/fairyring/keyshare/genesis.proto index c6f542b9..83683f03 100644 --- a/proto/fairyring/keyshare/genesis.proto +++ b/proto/fairyring/keyshare/genesis.proto @@ -5,9 +5,9 @@ package fairyring.keyshare; import "amino/amino.proto"; import "fairyring/keyshare/authorized_address.proto"; import "fairyring/keyshare/decryption_key.proto"; -import "fairyring/keyshare/key_share.proto"; +import "fairyring/keyshare/keyshare.proto"; import "fairyring/keyshare/params.proto"; -import "fairyring/keyshare/pub_key.proto"; +import "fairyring/keyshare/pubkey.proto"; import "fairyring/keyshare/validator_set.proto"; import "gogoproto/gogo.proto"; diff --git a/proto/fairyring/keyshare/pubkey.proto b/proto/fairyring/keyshare/pubkey.proto index dfb9cf63..d32a832d 100644 --- a/proto/fairyring/keyshare/pubkey.proto +++ b/proto/fairyring/keyshare/pubkey.proto @@ -25,5 +25,5 @@ message QueuedPubKey { string creator = 2; uint64 expiry = 3; uint64 number_of_validators = 4; - repeated EncryptedKeyShare encrypted_keyshares = 5; + repeated EncryptedKeyshare encrypted_keyshares = 5; } diff --git a/proto/fairyring/keyshare/query.proto b/proto/fairyring/keyshare/query.proto index e5917671..de63ed8a 100644 --- a/proto/fairyring/keyshare/query.proto +++ b/proto/fairyring/keyshare/query.proto @@ -150,7 +150,7 @@ message QueryKeyshareRequest { // QueryKeyShareResponse is response type for the Query/KeyShare RPC method. message QueryKeyshareResponse { - KeyShare key_share = 1 [(gogoproto.nullable) = false]; + Keyshare keyshare = 1 [(gogoproto.nullable) = false]; } // QueryKeyShareAllRequest is request type for the Query/KeyShareAll RPC method. @@ -171,7 +171,7 @@ message QueryDecryptionKeyRequest { // QueryDecryptionKeyResponse is response type for the Query/DecryptionKey RPC method. message QueryDecryptionKeyResponse { - AggregatedKeyShare decryption_key = 1 [(gogoproto.nullable) = false]; + DecryptionKey decryption_key = 1 [(gogoproto.nullable) = false]; } // QueryDecryptionKeyAllRequest is request type for the Query/DecryptionKeyAll RPC method. @@ -224,7 +224,7 @@ message QueryGeneralKeyshareRequest { // QueryGeneralKeyShareResponse is response type for the Query/GeneralKeyShare RPC method. message QueryGeneralKeyshareResponse { - GeneralKeyShare general_keyshare = 1 [(gogoproto.nullable) = false]; + GeneralKeyshare general_keyshare = 1 [(gogoproto.nullable) = false]; } // QueryGeneralKeyShareAllRequest is request type for the Query/GeneralKeyShareAll RPC method. From cfab00bf8c530124943660fe9587d2c9c9747d11 Mon Sep 17 00:00:00 2001 From: ap0calypse644 Date: Fri, 18 Oct 2024 19:52:51 +0530 Subject: [PATCH 06/30] audit changes --- abci/checktx/keyshare_check_tx.go | 12 +- api/fairyring/common/shared_types.pulsar.go | 10 +- .../keyshare/authorized_address.pulsar.go | 2 +- ...are.pulsar.go => decryption_key.pulsar.go} | 253 +- api/fairyring/keyshare/genesis.pulsar.go | 426 ++- ...key_share.pulsar.go => keyshare.pulsar.go} | 1214 ++++---- api/fairyring/keyshare/packet.pulsar.go | 2 +- .../{pub_key.pulsar.go => pubkey.pulsar.go} | 502 ++-- api/fairyring/keyshare/query.pulsar.go | 2672 ++++++++--------- api/fairyring/keyshare/query_grpc.pb.go | 158 +- .../requested_decryption_key.pulsar.go | 2 +- api/fairyring/keyshare/tx.pulsar.go | 1515 +++++----- api/fairyring/keyshare/tx_grpc.pb.go | 30 +- api/fairyring/pep/genesis.pulsar.go | 2 +- api/fairyring/pep/query.pulsar.go | 620 ++-- api/fairyring/pep/query_grpc.pb.go | 30 +- api/fairyring/pep/request_id.pulsar.go | 2 +- api/fairyring/pep/tx.pulsar.go | 635 ++-- api/fairyring/pep/tx_grpc.pb.go | 38 +- .../aggregator/private_keyshare_aggregator.go | 8 +- cmd/fairyringd/cmd/encrypter/encrypter.go | 6 +- go.mod | 3 +- go.sum | 2 - lanes/keyshare/abci.go | 6 +- lanes/keyshare/factory.go | 22 +- lanes/keyshare/mempool.go | 2 +- proto/fairyring/keyshare/query.proto | 2 +- proto/fairyring/pep/query.proto | 2 +- testutil/random/pubkey.go | 11 +- x/common/types/shared_types.pb.go | 73 +- x/keyshare/client/cli/tx.go | 5 +- x/keyshare/client/cli/tx_general_key_share.go | 8 +- x/keyshare/client/cli/tx_latest_pub_key.go | 4 +- x/keyshare/client/cli/tx_override_pub_key.go | 6 +- x/keyshare/keeper/aggregated_key_share.go | 8 +- .../keeper/aggregated_key_share_request.go | 32 +- .../aggregated_key_share_request_test.go | 7 +- .../keeper/aggregated_key_share_test.go | 4 +- x/keyshare/keeper/general_key_share.go | 16 +- x/keyshare/keeper/general_key_share_test.go | 9 +- x/keyshare/keeper/get_decryption_key.go | 6 +- x/keyshare/keeper/key_share.go | 8 +- x/keyshare/keeper/key_share_test.go | 9 +- .../keeper/msg_create_general_key_share.go | 99 +- .../msg_create_general_key_share_test.go | 132 +- x/keyshare/keeper/msg_create_pub_key.go | 6 +- x/keyshare/keeper/msg_create_pub_key_test.go | 7 +- x/keyshare/keeper/msg_override_pub_key.go | 8 +- .../keeper/msg_override_pub_key_test.go | 5 +- x/keyshare/keeper/msg_send_key_share.go | 36 +- x/keyshare/keeper/msg_send_key_share_test.go | 9 +- .../keeper/msg_submit_encrypted_keyshare.go | 40 +- .../msg_submit_encrypted_keyshare_test.go | 56 +- x/keyshare/keeper/process_queues.go | 24 +- x/keyshare/keeper/query_decryption_key.go | 4 +- x/keyshare/keeper/query_general_key_share.go | 24 +- .../keeper/query_general_key_share_test.go | 50 +- x/keyshare/keeper/query_key_share.go | 20 +- x/keyshare/keeper/query_key_share_test.go | 50 +- x/keyshare/keeper/query_pub_key.go | 4 +- x/keyshare/keeper/query_pub_key_test.go | 15 +- .../query_verifiable_randomness_test.go | 4 +- x/keyshare/module/autocli.go | 30 +- x/keyshare/module/genesis.go | 12 +- x/keyshare/module/genesis_test.go | 4 +- x/keyshare/module/module.go | 10 +- x/keyshare/module/module_ibc.go | 16 +- x/keyshare/types/authorized_address.pb.go | 2 +- x/keyshare/types/codec.go | 2 +- ...d_key_share.pb.go => decryption_key.pb.go} | 134 +- x/keyshare/types/expected_keepers.go | 16 +- x/keyshare/types/genesis.go | 18 +- x/keyshare/types/genesis.pb.go | 149 +- x/keyshare/types/genesis_test.go | 4 +- x/keyshare/types/key_key_share_request.go | 4 +- .../types/{key_share.pb.go => keyshare.pb.go} | 541 ++-- x/keyshare/types/msg_general_key_share.go | 18 +- x/keyshare/types/msg_latest_pub_key.go | 10 +- x/keyshare/types/msg_override_pub_key.go | 10 +- x/keyshare/types/msg_send_key_share.go | 6 +- .../types/msg_submit_encrypted_keyshare.go | 2 +- .../types/{pub_key.pb.go => pubkey.pb.go} | 303 +- x/keyshare/types/query.pb.go | 906 +++--- x/keyshare/types/query.pb.gw.go | 152 +- x/keyshare/types/tx.pb.go | 452 ++- x/pep/ante/ante.go | 2 +- x/pep/ante/utils.go | 8 +- x/pep/client/cli/tx.go | 10 +- ...o => tx_request_general_decryption_key.go} | 8 +- ...hare.go => tx_request_general_identity.go} | 8 +- ...o => tx_request_private_decryption_key.go} | 8 +- ...hare.go => tx_request_private_identity.go} | 6 +- ...y_share.go => tx_submit_decryption_key.go} | 6 +- x/pep/keeper/aggregated_key_share.go | 52 +- x/pep/keeper/aggregated_key_share_test.go | 19 +- x/pep/keeper/current_keys.go | 12 +- x/pep/keeper/encrypted_tx.go | 16 +- x/pep/keeper/encrypted_tx_test.go | 25 +- x/pep/keeper/gen_enc_tx.go | 52 +- x/pep/keeper/gen_enc_tx_test.go | 28 +- ... => msg_request_general_decryption_key.go} | 34 +- ...sg_request_general_decryption_key_test.go} | 22 +- ...are.go => msg_request_general_identity.go} | 36 +- ...o => msg_request_general_identity_test.go} | 20 +- ... => msg_request_private_decryption_key.go} | 38 +- ...sg_request_private_decryption_key_test.go} | 24 +- x/pep/keeper/msg_request_private_identity.go | 31 +- .../msg_request_private_identity_test.go | 20 +- ..._share.go => msg_submit_decryption_key.go} | 11 +- ...t.go => msg_submit_decryption_key_test.go} | 29 +- x/pep/keeper/msg_submit_encrypted_tx.go | 4 +- x/pep/keeper/msg_submit_encrypted_tx_test.go | 9 +- x/pep/keeper/msg_submit_gen_enc_tx_test.go | 14 +- x/pep/keeper/pub_key.go | 12 +- x/pep/keeper/pub_key_test.go | 19 +- x/pep/keeper/query_decrypt_data.go | 4 +- x/pep/keeper/query_decrypt_data_test.go | 15 +- x/pep/keeper/query_encrypted_tx_test.go | 12 +- ..._keyshare.go => query_general_identity.go} | 24 +- ...test.go => query_general_identity_test.go} | 58 +- ...share_req.go => query_private_identity.go} | 16 +- ...test.go => query_private_identity_test.go} | 26 +- .../{query_pub_key.go => query_pubkey.go} | 7 +- ...y_pub_key_test.go => query_pubkey_test.go} | 17 +- x/pep/keeper/request_id_test.go | 7 +- x/pep/module/autocli.go | 24 +- x/pep/module/genesis.go | 18 +- x/pep/module/module.go | 42 +- x/pep/module/module_ibc.go | 52 +- x/pep/types/codec.go | 8 +- x/pep/types/genesis.go | 12 +- x/pep/types/key_aggregated_key_share.go | 8 +- x/pep/types/message_get_private_keyshares.go | 14 +- .../message_get_private_keyshares_test.go | 6 +- x/pep/types/msg_aggregated_key_share.go | 12 +- x/pep/types/msg_get_general_key_share.go | 10 +- x/pep/types/msg_request_general_key_share.go | 14 +- x/pep/types/params.go | 20 +- x/pep/types/query.pb.go | 336 ++- x/pep/types/query.pb.gw.go | 46 +- x/pep/types/tx.pb.go | 251 +- 141 files changed, 6743 insertions(+), 6677 deletions(-) rename api/fairyring/keyshare/{aggregated_key_share.pulsar.go => decryption_key.pulsar.go} (62%) rename api/fairyring/keyshare/{key_share.pulsar.go => keyshare.pulsar.go} (64%) rename api/fairyring/keyshare/{pub_key.pulsar.go => pubkey.pulsar.go} (81%) rename x/keyshare/types/{aggregated_key_share.pb.go => decryption_key.pb.go} (52%) rename x/keyshare/types/{key_share.pb.go => keyshare.pb.go} (58%) rename x/keyshare/types/{pub_key.pb.go => pubkey.pb.go} (69%) rename x/pep/client/cli/{tx_get_general_keyshare.go => tx_request_general_decryption_key.go} (77%) rename x/pep/client/cli/{tx_request_general_keyshare.go => tx_request_general_identity.go} (79%) rename x/pep/client/cli/{tx_get_private_keyshare.go => tx_request_private_decryption_key.go} (76%) rename x/pep/client/cli/{tx_request_private_keyshare.go => tx_request_private_identity.go} (83%) rename x/pep/client/cli/{tx_aggregated_key_share.go => tx_submit_decryption_key.go} (84%) rename x/pep/keeper/{msg_get_general_key_share.go => msg_request_general_decryption_key.go} (71%) rename x/pep/keeper/{msg_get_general_key_share_test.go => msg_request_general_decryption_key_test.go} (79%) rename x/pep/keeper/{msg_request_general_key_share.go => msg_request_general_identity.go} (78%) rename x/pep/keeper/{msg_request_general_key_share_test.go => msg_request_general_identity_test.go} (82%) rename x/pep/keeper/{msg_get_private_keyshares.go => msg_request_private_decryption_key.go} (74%) rename x/pep/keeper/{msg_get_private_keyshares_test.go => msg_request_private_decryption_key_test.go} (80%) rename x/pep/keeper/{msg_create_aggregated_key_share.go => msg_submit_decryption_key.go} (90%) rename x/pep/keeper/{msg_create_aggregated_key_share_test.go => msg_submit_decryption_key_test.go} (85%) rename x/pep/keeper/{query_keyshare.go => query_general_identity.go} (69%) rename x/pep/keeper/{query_keyshare_test.go => query_general_identity_test.go} (64%) rename x/pep/keeper/{query_private_keyshare_req.go => query_private_identity.go} (58%) rename x/pep/keeper/{query_private_keyshare_req_test.go => query_private_identity_test.go} (67%) rename x/pep/keeper/{query_pub_key.go => query_pubkey.go} (82%) rename x/pep/keeper/{query_pub_key_test.go => query_pubkey_test.go} (78%) diff --git a/abci/checktx/keyshare_check_tx.go b/abci/checktx/keyshare_check_tx.go index 026695a4..4984dcd1 100644 --- a/abci/checktx/keyshare_check_tx.go +++ b/abci/checktx/keyshare_check_tx.go @@ -42,8 +42,8 @@ type KeyshareCheckTxHandler struct { // KeyShareLaneI is the interface that defines all of the dependencies that // are required to interact with the top of block lane. type KeyShareLaneI interface { - // GetKeyShareInfo is utilized to retrieve the Keyshare info of a transaction. - GetKeyShareInfo(tx sdk.Tx) (*peptypes.AggregatedKeyShare, error) + // GetDecryptionKeyInfo is utilized to retrieve the Keyshare info of a transaction. + GetDecryptionKeyInfo(tx sdk.Tx) (*peptypes.DecryptionKey, error) // Insert is utilized to insert a transaction into the application-side mempool. Insert(ctx context.Context, tx sdk.Tx) error @@ -112,7 +112,7 @@ func (handler *KeyshareCheckTxHandler) CheckTx() CheckTx { } // Attempt to get the keyshare info of the transaction. - ksInfo, err := handler.keyShareLane.GetKeyShareInfo(tx) + ksInfo, err := handler.keyShareLane.GetDecryptionKeyInfo(tx) if err != nil { return sdkerrors.ResponseCheckTxWithEvents(fmt.Errorf("failed to get keyshare info: %w", err), 0, 0, nil, false), err } @@ -147,7 +147,11 @@ func (handler *KeyshareCheckTxHandler) CheckTx() CheckTx { } // ValidateKeyshareTx is utilized to verify the keyshare transaction against the latest committed state. -func (handler *KeyshareCheckTxHandler) ValidateKeyshareTx(ctx sdk.Context, ksTx sdk.Tx, ksInfo *peptypes.AggregatedKeyShare) (sdk.GasInfo, error) { +func (handler *KeyshareCheckTxHandler) ValidateKeyshareTx( + ctx sdk.Context, + ksTx sdk.Tx, + ksInfo *peptypes.DecryptionKey, +) (sdk.GasInfo, error) { // Verify the keyshare transaction. ctx, err := handler.anteHandler(ctx, ksTx, false) if err != nil { diff --git a/api/fairyring/common/shared_types.pulsar.go b/api/fairyring/common/shared_types.pulsar.go index 0864020b..d4cc731c 100644 --- a/api/fairyring/common/shared_types.pulsar.go +++ b/api/fairyring/common/shared_types.pulsar.go @@ -5874,7 +5874,7 @@ type GetDecryptionKey struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // id can either be a rwquest id or a proposal id + // id can either be a request id or a proposal id // // Types that are assignable to Id: // @@ -6317,10 +6317,10 @@ var file_fairyring_common_shared_types_proto_rawDesc = []byte{ 0x0a, 0x23, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc4, 0x01, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc4, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, diff --git a/api/fairyring/keyshare/authorized_address.pulsar.go b/api/fairyring/keyshare/authorized_address.pulsar.go index 8972b5f0..c9c29e05 100644 --- a/api/fairyring/keyshare/authorized_address.pulsar.go +++ b/api/fairyring/keyshare/authorized_address.pulsar.go @@ -563,7 +563,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// AuthorizedAddress defines if an address is authorized to submit pubkeys +// AuthorizedAddress defines if an address is authorized to submit keyshares type AuthorizedAddress struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/api/fairyring/keyshare/aggregated_key_share.pulsar.go b/api/fairyring/keyshare/decryption_key.pulsar.go similarity index 62% rename from api/fairyring/keyshare/aggregated_key_share.pulsar.go rename to api/fairyring/keyshare/decryption_key.pulsar.go index 824e1e96..f5ef4609 100644 --- a/api/fairyring/keyshare/aggregated_key_share.pulsar.go +++ b/api/fairyring/keyshare/decryption_key.pulsar.go @@ -13,28 +13,28 @@ import ( ) var ( - md_AggregatedKeyShare protoreflect.MessageDescriptor - fd_AggregatedKeyShare_height protoreflect.FieldDescriptor - fd_AggregatedKeyShare_data protoreflect.FieldDescriptor + md_DecryptionKey protoreflect.MessageDescriptor + fd_DecryptionKey_height protoreflect.FieldDescriptor + fd_DecryptionKey_data protoreflect.FieldDescriptor ) func init() { - file_fairyring_keyshare_aggregated_key_share_proto_init() - md_AggregatedKeyShare = File_fairyring_keyshare_aggregated_key_share_proto.Messages().ByName("AggregatedKeyShare") - fd_AggregatedKeyShare_height = md_AggregatedKeyShare.Fields().ByName("height") - fd_AggregatedKeyShare_data = md_AggregatedKeyShare.Fields().ByName("data") + file_fairyring_keyshare_decryption_key_proto_init() + md_DecryptionKey = File_fairyring_keyshare_decryption_key_proto.Messages().ByName("DecryptionKey") + fd_DecryptionKey_height = md_DecryptionKey.Fields().ByName("height") + fd_DecryptionKey_data = md_DecryptionKey.Fields().ByName("data") } -var _ protoreflect.Message = (*fastReflection_AggregatedKeyShare)(nil) +var _ protoreflect.Message = (*fastReflection_DecryptionKey)(nil) -type fastReflection_AggregatedKeyShare AggregatedKeyShare +type fastReflection_DecryptionKey DecryptionKey -func (x *AggregatedKeyShare) ProtoReflect() protoreflect.Message { - return (*fastReflection_AggregatedKeyShare)(x) +func (x *DecryptionKey) ProtoReflect() protoreflect.Message { + return (*fastReflection_DecryptionKey)(x) } -func (x *AggregatedKeyShare) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_keyshare_aggregated_key_share_proto_msgTypes[0] +func (x *DecryptionKey) slowProtoReflect() protoreflect.Message { + mi := &file_fairyring_keyshare_decryption_key_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -45,43 +45,43 @@ func (x *AggregatedKeyShare) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_AggregatedKeyShare_messageType fastReflection_AggregatedKeyShare_messageType -var _ protoreflect.MessageType = fastReflection_AggregatedKeyShare_messageType{} +var _fastReflection_DecryptionKey_messageType fastReflection_DecryptionKey_messageType +var _ protoreflect.MessageType = fastReflection_DecryptionKey_messageType{} -type fastReflection_AggregatedKeyShare_messageType struct{} +type fastReflection_DecryptionKey_messageType struct{} -func (x fastReflection_AggregatedKeyShare_messageType) Zero() protoreflect.Message { - return (*fastReflection_AggregatedKeyShare)(nil) +func (x fastReflection_DecryptionKey_messageType) Zero() protoreflect.Message { + return (*fastReflection_DecryptionKey)(nil) } -func (x fastReflection_AggregatedKeyShare_messageType) New() protoreflect.Message { - return new(fastReflection_AggregatedKeyShare) +func (x fastReflection_DecryptionKey_messageType) New() protoreflect.Message { + return new(fastReflection_DecryptionKey) } -func (x fastReflection_AggregatedKeyShare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_AggregatedKeyShare +func (x fastReflection_DecryptionKey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_DecryptionKey } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_AggregatedKeyShare) Descriptor() protoreflect.MessageDescriptor { - return md_AggregatedKeyShare +func (x *fastReflection_DecryptionKey) Descriptor() protoreflect.MessageDescriptor { + return md_DecryptionKey } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_AggregatedKeyShare) Type() protoreflect.MessageType { - return _fastReflection_AggregatedKeyShare_messageType +func (x *fastReflection_DecryptionKey) Type() protoreflect.MessageType { + return _fastReflection_DecryptionKey_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_AggregatedKeyShare) New() protoreflect.Message { - return new(fastReflection_AggregatedKeyShare) +func (x *fastReflection_DecryptionKey) New() protoreflect.Message { + return new(fastReflection_DecryptionKey) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_AggregatedKeyShare) Interface() protoreflect.ProtoMessage { - return (*AggregatedKeyShare)(x) +func (x *fastReflection_DecryptionKey) Interface() protoreflect.ProtoMessage { + return (*DecryptionKey)(x) } // Range iterates over every populated field in an undefined order, @@ -89,16 +89,16 @@ func (x *fastReflection_AggregatedKeyShare) Interface() protoreflect.ProtoMessag // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_AggregatedKeyShare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_DecryptionKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Height != uint64(0) { value := protoreflect.ValueOfUint64(x.Height) - if !f(fd_AggregatedKeyShare_height, value) { + if !f(fd_DecryptionKey_height, value) { return } } if x.Data != "" { value := protoreflect.ValueOfString(x.Data) - if !f(fd_AggregatedKeyShare_data, value) { + if !f(fd_DecryptionKey_data, value) { return } } @@ -115,17 +115,17 @@ func (x *fastReflection_AggregatedKeyShare) Range(f func(protoreflect.FieldDescr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_AggregatedKeyShare) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_DecryptionKey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.AggregatedKeyShare.height": + case "fairyring.keyshare.DecryptionKey.height": return x.Height != uint64(0) - case "fairyring.keyshare.AggregatedKeyShare.data": + case "fairyring.keyshare.DecryptionKey.data": return x.Data != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AggregatedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKey")) } - panic(fmt.Errorf("message fairyring.keyshare.AggregatedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKey does not contain field %s", fd.FullName())) } } @@ -135,17 +135,17 @@ func (x *fastReflection_AggregatedKeyShare) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AggregatedKeyShare) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_DecryptionKey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.AggregatedKeyShare.height": + case "fairyring.keyshare.DecryptionKey.height": x.Height = uint64(0) - case "fairyring.keyshare.AggregatedKeyShare.data": + case "fairyring.keyshare.DecryptionKey.data": x.Data = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AggregatedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKey")) } - panic(fmt.Errorf("message fairyring.keyshare.AggregatedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKey does not contain field %s", fd.FullName())) } } @@ -155,19 +155,19 @@ func (x *fastReflection_AggregatedKeyShare) Clear(fd protoreflect.FieldDescripto // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_AggregatedKeyShare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_DecryptionKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.AggregatedKeyShare.height": + case "fairyring.keyshare.DecryptionKey.height": value := x.Height return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.AggregatedKeyShare.data": + case "fairyring.keyshare.DecryptionKey.data": value := x.Data return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AggregatedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKey")) } - panic(fmt.Errorf("message fairyring.keyshare.AggregatedKeyShare does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKey does not contain field %s", descriptor.FullName())) } } @@ -181,17 +181,17 @@ func (x *fastReflection_AggregatedKeyShare) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AggregatedKeyShare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_DecryptionKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.AggregatedKeyShare.height": + case "fairyring.keyshare.DecryptionKey.height": x.Height = value.Uint() - case "fairyring.keyshare.AggregatedKeyShare.data": + case "fairyring.keyshare.DecryptionKey.data": x.Data = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AggregatedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKey")) } - panic(fmt.Errorf("message fairyring.keyshare.AggregatedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKey does not contain field %s", fd.FullName())) } } @@ -205,44 +205,44 @@ func (x *fastReflection_AggregatedKeyShare) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AggregatedKeyShare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_DecryptionKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.AggregatedKeyShare.height": - panic(fmt.Errorf("field height of message fairyring.keyshare.AggregatedKeyShare is not mutable")) - case "fairyring.keyshare.AggregatedKeyShare.data": - panic(fmt.Errorf("field data of message fairyring.keyshare.AggregatedKeyShare is not mutable")) + case "fairyring.keyshare.DecryptionKey.height": + panic(fmt.Errorf("field height of message fairyring.keyshare.DecryptionKey is not mutable")) + case "fairyring.keyshare.DecryptionKey.data": + panic(fmt.Errorf("field data of message fairyring.keyshare.DecryptionKey is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AggregatedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKey")) } - panic(fmt.Errorf("message fairyring.keyshare.AggregatedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKey does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_AggregatedKeyShare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_DecryptionKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.AggregatedKeyShare.height": + case "fairyring.keyshare.DecryptionKey.height": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.AggregatedKeyShare.data": + case "fairyring.keyshare.DecryptionKey.data": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.AggregatedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.DecryptionKey")) } - panic(fmt.Errorf("message fairyring.keyshare.AggregatedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.DecryptionKey does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_AggregatedKeyShare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_DecryptionKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.AggregatedKeyShare", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.DecryptionKey", d.FullName())) } panic("unreachable") } @@ -250,7 +250,7 @@ func (x *fastReflection_AggregatedKeyShare) WhichOneof(d protoreflect.OneofDescr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_AggregatedKeyShare) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_DecryptionKey) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -261,7 +261,7 @@ func (x *fastReflection_AggregatedKeyShare) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_AggregatedKeyShare) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_DecryptionKey) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -273,7 +273,7 @@ func (x *fastReflection_AggregatedKeyShare) SetUnknown(fields protoreflect.RawFi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_AggregatedKeyShare) IsValid() bool { +func (x *fastReflection_DecryptionKey) IsValid() bool { return x != nil } @@ -283,9 +283,9 @@ func (x *fastReflection_AggregatedKeyShare) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_AggregatedKeyShare) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_DecryptionKey) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*AggregatedKeyShare) + x := input.Message.Interface().(*DecryptionKey) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -314,7 +314,7 @@ func (x *fastReflection_AggregatedKeyShare) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*AggregatedKeyShare) + x := input.Message.Interface().(*DecryptionKey) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -356,7 +356,7 @@ func (x *fastReflection_AggregatedKeyShare) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*AggregatedKeyShare) + x := input.Message.Interface().(*DecryptionKey) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -388,10 +388,10 @@ func (x *fastReflection_AggregatedKeyShare) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AggregatedKeyShare: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: AggregatedKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -484,7 +484,7 @@ func (x *fastReflection_AggregatedKeyShare) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: fairyring/keyshare/aggregated_key_share.proto +// source: fairyring/keyshare/decryption_key.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -493,8 +493,8 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// AggregatedKeyShare defines the structure and height for an aggregated keyshare -type AggregatedKeyShare struct { +// Decryption key defines the structure and height for a decryption key +type DecryptionKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -503,55 +503,54 @@ type AggregatedKeyShare struct { Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` } -func (x *AggregatedKeyShare) Reset() { - *x = AggregatedKeyShare{} +func (x *DecryptionKey) Reset() { + *x = DecryptionKey{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_keyshare_aggregated_key_share_proto_msgTypes[0] + mi := &file_fairyring_keyshare_decryption_key_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *AggregatedKeyShare) String() string { +func (x *DecryptionKey) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AggregatedKeyShare) ProtoMessage() {} +func (*DecryptionKey) ProtoMessage() {} -// Deprecated: Use AggregatedKeyShare.ProtoReflect.Descriptor instead. -func (*AggregatedKeyShare) Descriptor() ([]byte, []int) { - return file_fairyring_keyshare_aggregated_key_share_proto_rawDescGZIP(), []int{0} +// Deprecated: Use DecryptionKey.ProtoReflect.Descriptor instead. +func (*DecryptionKey) Descriptor() ([]byte, []int) { + return file_fairyring_keyshare_decryption_key_proto_rawDescGZIP(), []int{0} } -func (x *AggregatedKeyShare) GetHeight() uint64 { +func (x *DecryptionKey) GetHeight() uint64 { if x != nil { return x.Height } return 0 } -func (x *AggregatedKeyShare) GetData() string { +func (x *DecryptionKey) GetData() string { if x != nil { return x.Data } return "" } -var File_fairyring_keyshare_aggregated_key_share_proto protoreflect.FileDescriptor - -var file_fairyring_keyshare_aggregated_key_share_proto_rawDesc = []byte{ - 0x0a, 0x2d, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, - 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x12, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x22, 0x40, 0x0a, 0x12, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, - 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 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, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0xbf, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x42, 0x17, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, +var File_fairyring_keyshare_decryption_key_proto protoreflect.FileDescriptor + +var file_fairyring_keyshare_decryption_key_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x3b, 0x0a, + 0x0d, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 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, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0xba, 0x01, 0x0a, 0x16, 0x63, + 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x12, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x4b, 0x65, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, @@ -564,22 +563,22 @@ var file_fairyring_keyshare_aggregated_key_share_proto_rawDesc = []byte{ } var ( - file_fairyring_keyshare_aggregated_key_share_proto_rawDescOnce sync.Once - file_fairyring_keyshare_aggregated_key_share_proto_rawDescData = file_fairyring_keyshare_aggregated_key_share_proto_rawDesc + file_fairyring_keyshare_decryption_key_proto_rawDescOnce sync.Once + file_fairyring_keyshare_decryption_key_proto_rawDescData = file_fairyring_keyshare_decryption_key_proto_rawDesc ) -func file_fairyring_keyshare_aggregated_key_share_proto_rawDescGZIP() []byte { - file_fairyring_keyshare_aggregated_key_share_proto_rawDescOnce.Do(func() { - file_fairyring_keyshare_aggregated_key_share_proto_rawDescData = protoimpl.X.CompressGZIP(file_fairyring_keyshare_aggregated_key_share_proto_rawDescData) +func file_fairyring_keyshare_decryption_key_proto_rawDescGZIP() []byte { + file_fairyring_keyshare_decryption_key_proto_rawDescOnce.Do(func() { + file_fairyring_keyshare_decryption_key_proto_rawDescData = protoimpl.X.CompressGZIP(file_fairyring_keyshare_decryption_key_proto_rawDescData) }) - return file_fairyring_keyshare_aggregated_key_share_proto_rawDescData + return file_fairyring_keyshare_decryption_key_proto_rawDescData } -var file_fairyring_keyshare_aggregated_key_share_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_fairyring_keyshare_aggregated_key_share_proto_goTypes = []interface{}{ - (*AggregatedKeyShare)(nil), // 0: fairyring.keyshare.AggregatedKeyShare +var file_fairyring_keyshare_decryption_key_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_fairyring_keyshare_decryption_key_proto_goTypes = []interface{}{ + (*DecryptionKey)(nil), // 0: fairyring.keyshare.DecryptionKey } -var file_fairyring_keyshare_aggregated_key_share_proto_depIdxs = []int32{ +var file_fairyring_keyshare_decryption_key_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 @@ -587,14 +586,14 @@ var file_fairyring_keyshare_aggregated_key_share_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_fairyring_keyshare_aggregated_key_share_proto_init() } -func file_fairyring_keyshare_aggregated_key_share_proto_init() { - if File_fairyring_keyshare_aggregated_key_share_proto != nil { +func init() { file_fairyring_keyshare_decryption_key_proto_init() } +func file_fairyring_keyshare_decryption_key_proto_init() { + if File_fairyring_keyshare_decryption_key_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_fairyring_keyshare_aggregated_key_share_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AggregatedKeyShare); i { + file_fairyring_keyshare_decryption_key_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DecryptionKey); i { case 0: return &v.state case 1: @@ -610,18 +609,18 @@ func file_fairyring_keyshare_aggregated_key_share_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fairyring_keyshare_aggregated_key_share_proto_rawDesc, + RawDescriptor: file_fairyring_keyshare_decryption_key_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_fairyring_keyshare_aggregated_key_share_proto_goTypes, - DependencyIndexes: file_fairyring_keyshare_aggregated_key_share_proto_depIdxs, - MessageInfos: file_fairyring_keyshare_aggregated_key_share_proto_msgTypes, + GoTypes: file_fairyring_keyshare_decryption_key_proto_goTypes, + DependencyIndexes: file_fairyring_keyshare_decryption_key_proto_depIdxs, + MessageInfos: file_fairyring_keyshare_decryption_key_proto_msgTypes, }.Build() - File_fairyring_keyshare_aggregated_key_share_proto = out.File - file_fairyring_keyshare_aggregated_key_share_proto_rawDesc = nil - file_fairyring_keyshare_aggregated_key_share_proto_goTypes = nil - file_fairyring_keyshare_aggregated_key_share_proto_depIdxs = nil + File_fairyring_keyshare_decryption_key_proto = out.File + file_fairyring_keyshare_decryption_key_proto_rawDesc = nil + file_fairyring_keyshare_decryption_key_proto_goTypes = nil + file_fairyring_keyshare_decryption_key_proto_depIdxs = nil } diff --git a/api/fairyring/keyshare/genesis.pulsar.go b/api/fairyring/keyshare/genesis.pulsar.go index 5dd44d21..f55e0e79 100644 --- a/api/fairyring/keyshare/genesis.pulsar.go +++ b/api/fairyring/keyshare/genesis.pulsar.go @@ -68,7 +68,7 @@ func (x *_GenesisState_3_list) IsValid() bool { var _ protoreflect.List = (*_GenesisState_4_list)(nil) type _GenesisState_4_list struct { - list *[]*KeyShare + list *[]*Keyshare } func (x *_GenesisState_4_list) Len() int { @@ -84,18 +84,18 @@ func (x *_GenesisState_4_list) Get(i int) protoreflect.Value { func (x *_GenesisState_4_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*KeyShare) + concreteValue := valueUnwrapped.Interface().(*Keyshare) (*x.list)[i] = concreteValue } func (x *_GenesisState_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*KeyShare) + concreteValue := valueUnwrapped.Interface().(*Keyshare) *x.list = append(*x.list, concreteValue) } func (x *_GenesisState_4_list) AppendMutable() protoreflect.Value { - v := new(KeyShare) + v := new(Keyshare) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -108,7 +108,7 @@ func (x *_GenesisState_4_list) Truncate(n int) { } func (x *_GenesisState_4_list) NewElement() protoreflect.Value { - v := new(KeyShare) + v := new(Keyshare) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -119,7 +119,7 @@ func (x *_GenesisState_4_list) IsValid() bool { var _ protoreflect.List = (*_GenesisState_5_list)(nil) type _GenesisState_5_list struct { - list *[]*AggregatedKeyShare + list *[]*DecryptionKey } func (x *_GenesisState_5_list) Len() int { @@ -135,18 +135,18 @@ func (x *_GenesisState_5_list) Get(i int) protoreflect.Value { func (x *_GenesisState_5_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*AggregatedKeyShare) + concreteValue := valueUnwrapped.Interface().(*DecryptionKey) (*x.list)[i] = concreteValue } func (x *_GenesisState_5_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*AggregatedKeyShare) + concreteValue := valueUnwrapped.Interface().(*DecryptionKey) *x.list = append(*x.list, concreteValue) } func (x *_GenesisState_5_list) AppendMutable() protoreflect.Value { - v := new(AggregatedKeyShare) + v := new(DecryptionKey) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -159,7 +159,7 @@ func (x *_GenesisState_5_list) Truncate(n int) { } func (x *_GenesisState_5_list) NewElement() protoreflect.Value { - v := new(AggregatedKeyShare) + v := new(DecryptionKey) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -221,7 +221,7 @@ func (x *_GenesisState_8_list) IsValid() bool { var _ protoreflect.List = (*_GenesisState_10_list)(nil) type _GenesisState_10_list struct { - list *[]*GeneralKeyShare + list *[]*GeneralKeyshare } func (x *_GenesisState_10_list) Len() int { @@ -237,18 +237,18 @@ func (x *_GenesisState_10_list) Get(i int) protoreflect.Value { func (x *_GenesisState_10_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GeneralKeyShare) + concreteValue := valueUnwrapped.Interface().(*GeneralKeyshare) (*x.list)[i] = concreteValue } func (x *_GenesisState_10_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GeneralKeyShare) + concreteValue := valueUnwrapped.Interface().(*GeneralKeyshare) *x.list = append(*x.list, concreteValue) } func (x *_GenesisState_10_list) AppendMutable() protoreflect.Value { - v := new(GeneralKeyShare) + v := new(GeneralKeyshare) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -261,7 +261,7 @@ func (x *_GenesisState_10_list) Truncate(n int) { } func (x *_GenesisState_10_list) NewElement() protoreflect.Value { - v := new(GeneralKeyShare) + v := new(GeneralKeyshare) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -270,17 +270,17 @@ func (x *_GenesisState_10_list) IsValid() bool { } var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_params protoreflect.FieldDescriptor - fd_GenesisState_port_id protoreflect.FieldDescriptor - fd_GenesisState_validator_set_list protoreflect.FieldDescriptor - fd_GenesisState_key_share_list protoreflect.FieldDescriptor - fd_GenesisState_aggregated_key_share_list protoreflect.FieldDescriptor - fd_GenesisState_active_pub_key protoreflect.FieldDescriptor - fd_GenesisState_queued_pub_key protoreflect.FieldDescriptor - fd_GenesisState_authorized_address_list protoreflect.FieldDescriptor - fd_GenesisState_request_count protoreflect.FieldDescriptor - fd_GenesisState_general_key_share_list protoreflect.FieldDescriptor + md_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_params protoreflect.FieldDescriptor + fd_GenesisState_port_id protoreflect.FieldDescriptor + fd_GenesisState_validator_set_list protoreflect.FieldDescriptor + fd_GenesisState_keyshare_list protoreflect.FieldDescriptor + fd_GenesisState_decryption_key_list protoreflect.FieldDescriptor + fd_GenesisState_active_pub_key protoreflect.FieldDescriptor + fd_GenesisState_queued_pub_key protoreflect.FieldDescriptor + fd_GenesisState_authorized_address_list protoreflect.FieldDescriptor + fd_GenesisState_request_count protoreflect.FieldDescriptor + fd_GenesisState_general_keyshare_list protoreflect.FieldDescriptor ) func init() { @@ -289,13 +289,13 @@ func init() { fd_GenesisState_params = md_GenesisState.Fields().ByName("params") fd_GenesisState_port_id = md_GenesisState.Fields().ByName("port_id") fd_GenesisState_validator_set_list = md_GenesisState.Fields().ByName("validator_set_list") - fd_GenesisState_key_share_list = md_GenesisState.Fields().ByName("key_share_list") - fd_GenesisState_aggregated_key_share_list = md_GenesisState.Fields().ByName("aggregated_key_share_list") + fd_GenesisState_keyshare_list = md_GenesisState.Fields().ByName("keyshare_list") + fd_GenesisState_decryption_key_list = md_GenesisState.Fields().ByName("decryption_key_list") fd_GenesisState_active_pub_key = md_GenesisState.Fields().ByName("active_pub_key") fd_GenesisState_queued_pub_key = md_GenesisState.Fields().ByName("queued_pub_key") fd_GenesisState_authorized_address_list = md_GenesisState.Fields().ByName("authorized_address_list") fd_GenesisState_request_count = md_GenesisState.Fields().ByName("request_count") - fd_GenesisState_general_key_share_list = md_GenesisState.Fields().ByName("general_key_share_list") + fd_GenesisState_general_keyshare_list = md_GenesisState.Fields().ByName("general_keyshare_list") } var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) @@ -381,15 +381,15 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } - if len(x.KeyShareList) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_4_list{list: &x.KeyShareList}) - if !f(fd_GenesisState_key_share_list, value) { + if len(x.KeyshareList) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_4_list{list: &x.KeyshareList}) + if !f(fd_GenesisState_keyshare_list, value) { return } } - if len(x.AggregatedKeyShareList) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_5_list{list: &x.AggregatedKeyShareList}) - if !f(fd_GenesisState_aggregated_key_share_list, value) { + if len(x.DecryptionKeyList) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_5_list{list: &x.DecryptionKeyList}) + if !f(fd_GenesisState_decryption_key_list, value) { return } } @@ -417,9 +417,9 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } - if len(x.GeneralKeyShareList) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_10_list{list: &x.GeneralKeyShareList}) - if !f(fd_GenesisState_general_key_share_list, value) { + if len(x.GeneralKeyshareList) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_10_list{list: &x.GeneralKeyshareList}) + if !f(fd_GenesisState_general_keyshare_list, value) { return } } @@ -444,10 +444,10 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return x.PortId != "" case "fairyring.keyshare.GenesisState.validator_set_list": return len(x.ValidatorSetList) != 0 - case "fairyring.keyshare.GenesisState.key_share_list": - return len(x.KeyShareList) != 0 - case "fairyring.keyshare.GenesisState.aggregated_key_share_list": - return len(x.AggregatedKeyShareList) != 0 + case "fairyring.keyshare.GenesisState.keyshare_list": + return len(x.KeyshareList) != 0 + case "fairyring.keyshare.GenesisState.decryption_key_list": + return len(x.DecryptionKeyList) != 0 case "fairyring.keyshare.GenesisState.active_pub_key": return x.ActivePubKey != nil case "fairyring.keyshare.GenesisState.queued_pub_key": @@ -456,8 +456,8 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return len(x.AuthorizedAddressList) != 0 case "fairyring.keyshare.GenesisState.request_count": return x.RequestCount != uint64(0) - case "fairyring.keyshare.GenesisState.general_key_share_list": - return len(x.GeneralKeyShareList) != 0 + case "fairyring.keyshare.GenesisState.general_keyshare_list": + return len(x.GeneralKeyshareList) != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GenesisState")) @@ -480,10 +480,10 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.PortId = "" case "fairyring.keyshare.GenesisState.validator_set_list": x.ValidatorSetList = nil - case "fairyring.keyshare.GenesisState.key_share_list": - x.KeyShareList = nil - case "fairyring.keyshare.GenesisState.aggregated_key_share_list": - x.AggregatedKeyShareList = nil + case "fairyring.keyshare.GenesisState.keyshare_list": + x.KeyshareList = nil + case "fairyring.keyshare.GenesisState.decryption_key_list": + x.DecryptionKeyList = nil case "fairyring.keyshare.GenesisState.active_pub_key": x.ActivePubKey = nil case "fairyring.keyshare.GenesisState.queued_pub_key": @@ -492,8 +492,8 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.AuthorizedAddressList = nil case "fairyring.keyshare.GenesisState.request_count": x.RequestCount = uint64(0) - case "fairyring.keyshare.GenesisState.general_key_share_list": - x.GeneralKeyShareList = nil + case "fairyring.keyshare.GenesisState.general_keyshare_list": + x.GeneralKeyshareList = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GenesisState")) @@ -522,17 +522,17 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto } listValue := &_GenesisState_3_list{list: &x.ValidatorSetList} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.GenesisState.key_share_list": - if len(x.KeyShareList) == 0 { + case "fairyring.keyshare.GenesisState.keyshare_list": + if len(x.KeyshareList) == 0 { return protoreflect.ValueOfList(&_GenesisState_4_list{}) } - listValue := &_GenesisState_4_list{list: &x.KeyShareList} + listValue := &_GenesisState_4_list{list: &x.KeyshareList} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.GenesisState.aggregated_key_share_list": - if len(x.AggregatedKeyShareList) == 0 { + case "fairyring.keyshare.GenesisState.decryption_key_list": + if len(x.DecryptionKeyList) == 0 { return protoreflect.ValueOfList(&_GenesisState_5_list{}) } - listValue := &_GenesisState_5_list{list: &x.AggregatedKeyShareList} + listValue := &_GenesisState_5_list{list: &x.DecryptionKeyList} return protoreflect.ValueOfList(listValue) case "fairyring.keyshare.GenesisState.active_pub_key": value := x.ActivePubKey @@ -549,11 +549,11 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto case "fairyring.keyshare.GenesisState.request_count": value := x.RequestCount return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.GenesisState.general_key_share_list": - if len(x.GeneralKeyShareList) == 0 { + case "fairyring.keyshare.GenesisState.general_keyshare_list": + if len(x.GeneralKeyshareList) == 0 { return protoreflect.ValueOfList(&_GenesisState_10_list{}) } - listValue := &_GenesisState_10_list{list: &x.GeneralKeyShareList} + listValue := &_GenesisState_10_list{list: &x.GeneralKeyshareList} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { @@ -583,14 +583,14 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value lv := value.List() clv := lv.(*_GenesisState_3_list) x.ValidatorSetList = *clv.list - case "fairyring.keyshare.GenesisState.key_share_list": + case "fairyring.keyshare.GenesisState.keyshare_list": lv := value.List() clv := lv.(*_GenesisState_4_list) - x.KeyShareList = *clv.list - case "fairyring.keyshare.GenesisState.aggregated_key_share_list": + x.KeyshareList = *clv.list + case "fairyring.keyshare.GenesisState.decryption_key_list": lv := value.List() clv := lv.(*_GenesisState_5_list) - x.AggregatedKeyShareList = *clv.list + x.DecryptionKeyList = *clv.list case "fairyring.keyshare.GenesisState.active_pub_key": x.ActivePubKey = value.Message().Interface().(*ActivePubKey) case "fairyring.keyshare.GenesisState.queued_pub_key": @@ -601,10 +601,10 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value x.AuthorizedAddressList = *clv.list case "fairyring.keyshare.GenesisState.request_count": x.RequestCount = value.Uint() - case "fairyring.keyshare.GenesisState.general_key_share_list": + case "fairyring.keyshare.GenesisState.general_keyshare_list": lv := value.List() clv := lv.(*_GenesisState_10_list) - x.GeneralKeyShareList = *clv.list + x.GeneralKeyshareList = *clv.list default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GenesisState")) @@ -636,17 +636,17 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p } value := &_GenesisState_3_list{list: &x.ValidatorSetList} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.GenesisState.key_share_list": - if x.KeyShareList == nil { - x.KeyShareList = []*KeyShare{} + case "fairyring.keyshare.GenesisState.keyshare_list": + if x.KeyshareList == nil { + x.KeyshareList = []*Keyshare{} } - value := &_GenesisState_4_list{list: &x.KeyShareList} + value := &_GenesisState_4_list{list: &x.KeyshareList} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.GenesisState.aggregated_key_share_list": - if x.AggregatedKeyShareList == nil { - x.AggregatedKeyShareList = []*AggregatedKeyShare{} + case "fairyring.keyshare.GenesisState.decryption_key_list": + if x.DecryptionKeyList == nil { + x.DecryptionKeyList = []*DecryptionKey{} } - value := &_GenesisState_5_list{list: &x.AggregatedKeyShareList} + value := &_GenesisState_5_list{list: &x.DecryptionKeyList} return protoreflect.ValueOfList(value) case "fairyring.keyshare.GenesisState.active_pub_key": if x.ActivePubKey == nil { @@ -664,11 +664,11 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p } value := &_GenesisState_8_list{list: &x.AuthorizedAddressList} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.GenesisState.general_key_share_list": - if x.GeneralKeyShareList == nil { - x.GeneralKeyShareList = []*GeneralKeyShare{} + case "fairyring.keyshare.GenesisState.general_keyshare_list": + if x.GeneralKeyshareList == nil { + x.GeneralKeyshareList = []*GeneralKeyshare{} } - value := &_GenesisState_10_list{list: &x.GeneralKeyShareList} + value := &_GenesisState_10_list{list: &x.GeneralKeyshareList} return protoreflect.ValueOfList(value) case "fairyring.keyshare.GenesisState.port_id": panic(fmt.Errorf("field port_id of message fairyring.keyshare.GenesisState is not mutable")) @@ -695,11 +695,11 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) case "fairyring.keyshare.GenesisState.validator_set_list": list := []*ValidatorSet{} return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list}) - case "fairyring.keyshare.GenesisState.key_share_list": - list := []*KeyShare{} + case "fairyring.keyshare.GenesisState.keyshare_list": + list := []*Keyshare{} return protoreflect.ValueOfList(&_GenesisState_4_list{list: &list}) - case "fairyring.keyshare.GenesisState.aggregated_key_share_list": - list := []*AggregatedKeyShare{} + case "fairyring.keyshare.GenesisState.decryption_key_list": + list := []*DecryptionKey{} return protoreflect.ValueOfList(&_GenesisState_5_list{list: &list}) case "fairyring.keyshare.GenesisState.active_pub_key": m := new(ActivePubKey) @@ -712,8 +712,8 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) return protoreflect.ValueOfList(&_GenesisState_8_list{list: &list}) case "fairyring.keyshare.GenesisState.request_count": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.GenesisState.general_key_share_list": - list := []*GeneralKeyShare{} + case "fairyring.keyshare.GenesisState.general_keyshare_list": + list := []*GeneralKeyshare{} return protoreflect.ValueOfList(&_GenesisState_10_list{list: &list}) default: if fd.IsExtension() { @@ -798,14 +798,14 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } - if len(x.KeyShareList) > 0 { - for _, e := range x.KeyShareList { + if len(x.KeyshareList) > 0 { + for _, e := range x.KeyshareList { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } } - if len(x.AggregatedKeyShareList) > 0 { - for _, e := range x.AggregatedKeyShareList { + if len(x.DecryptionKeyList) > 0 { + for _, e := range x.DecryptionKeyList { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -827,8 +827,8 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if x.RequestCount != 0 { n += 1 + runtime.Sov(uint64(x.RequestCount)) } - if len(x.GeneralKeyShareList) > 0 { - for _, e := range x.GeneralKeyShareList { + if len(x.GeneralKeyshareList) > 0 { + for _, e := range x.GeneralKeyshareList { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -862,9 +862,9 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.GeneralKeyShareList) > 0 { - for iNdEx := len(x.GeneralKeyShareList) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.GeneralKeyShareList[iNdEx]) + if len(x.GeneralKeyshareList) > 0 { + for iNdEx := len(x.GeneralKeyshareList) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.GeneralKeyshareList[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -927,9 +927,9 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x32 } - if len(x.AggregatedKeyShareList) > 0 { - for iNdEx := len(x.AggregatedKeyShareList) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.AggregatedKeyShareList[iNdEx]) + if len(x.DecryptionKeyList) > 0 { + for iNdEx := len(x.DecryptionKeyList) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.DecryptionKeyList[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -943,9 +943,9 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { dAtA[i] = 0x2a } } - if len(x.KeyShareList) > 0 { - for iNdEx := len(x.KeyShareList) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.KeyShareList[iNdEx]) + if len(x.KeyshareList) > 0 { + for iNdEx := len(x.KeyshareList) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.KeyshareList[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1149,7 +1149,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 4: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShareList", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyshareList", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1176,14 +1176,14 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.KeyShareList = append(x.KeyShareList, &KeyShare{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.KeyShareList[len(x.KeyShareList)-1]); err != nil { + x.KeyshareList = append(x.KeyshareList, &Keyshare{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.KeyshareList[len(x.KeyshareList)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex case 5: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AggregatedKeyShareList", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DecryptionKeyList", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1210,8 +1210,8 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.AggregatedKeyShareList = append(x.AggregatedKeyShareList, &AggregatedKeyShare{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AggregatedKeyShareList[len(x.AggregatedKeyShareList)-1]); err != nil { + x.DecryptionKeyList = append(x.DecryptionKeyList, &DecryptionKey{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DecryptionKeyList[len(x.DecryptionKeyList)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -1342,7 +1342,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { } case 10: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GeneralKeyShareList", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GeneralKeyshareList", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1369,8 +1369,8 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.GeneralKeyShareList = append(x.GeneralKeyShareList, &GeneralKeyShare{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GeneralKeyShareList[len(x.GeneralKeyShareList)-1]); err != nil { + x.GeneralKeyshareList = append(x.GeneralKeyshareList, &GeneralKeyshare{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GeneralKeyshareList[len(x.GeneralKeyshareList)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -1429,16 +1429,16 @@ type GenesisState struct { unknownFields protoimpl.UnknownFields // params defines all the parameters of the module. - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` - PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - ValidatorSetList []*ValidatorSet `protobuf:"bytes,3,rep,name=validator_set_list,json=validatorSetList,proto3" json:"validator_set_list,omitempty"` - KeyShareList []*KeyShare `protobuf:"bytes,4,rep,name=key_share_list,json=keyShareList,proto3" json:"key_share_list,omitempty"` - AggregatedKeyShareList []*AggregatedKeyShare `protobuf:"bytes,5,rep,name=aggregated_key_share_list,json=aggregatedKeyShareList,proto3" json:"aggregated_key_share_list,omitempty"` - ActivePubKey *ActivePubKey `protobuf:"bytes,6,opt,name=active_pub_key,json=activePubKey,proto3" json:"active_pub_key,omitempty"` - QueuedPubKey *QueuedPubKey `protobuf:"bytes,7,opt,name=queued_pub_key,json=queuedPubKey,proto3" json:"queued_pub_key,omitempty"` - AuthorizedAddressList []*AuthorizedAddress `protobuf:"bytes,8,rep,name=authorized_address_list,json=authorizedAddressList,proto3" json:"authorized_address_list,omitempty"` - RequestCount uint64 `protobuf:"varint,9,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"` - GeneralKeyShareList []*GeneralKeyShare `protobuf:"bytes,10,rep,name=general_key_share_list,json=generalKeyShareList,proto3" json:"general_key_share_list,omitempty"` + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` + ValidatorSetList []*ValidatorSet `protobuf:"bytes,3,rep,name=validator_set_list,json=validatorSetList,proto3" json:"validator_set_list,omitempty"` + KeyshareList []*Keyshare `protobuf:"bytes,4,rep,name=keyshare_list,json=keyshareList,proto3" json:"keyshare_list,omitempty"` + DecryptionKeyList []*DecryptionKey `protobuf:"bytes,5,rep,name=decryption_key_list,json=decryptionKeyList,proto3" json:"decryption_key_list,omitempty"` + ActivePubKey *ActivePubKey `protobuf:"bytes,6,opt,name=active_pub_key,json=activePubKey,proto3" json:"active_pub_key,omitempty"` + QueuedPubKey *QueuedPubKey `protobuf:"bytes,7,opt,name=queued_pub_key,json=queuedPubKey,proto3" json:"queued_pub_key,omitempty"` + AuthorizedAddressList []*AuthorizedAddress `protobuf:"bytes,8,rep,name=authorized_address_list,json=authorizedAddressList,proto3" json:"authorized_address_list,omitempty"` + RequestCount uint64 `protobuf:"varint,9,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"` + GeneralKeyshareList []*GeneralKeyshare `protobuf:"bytes,10,rep,name=general_keyshare_list,json=generalKeyshareList,proto3" json:"general_keyshare_list,omitempty"` } func (x *GenesisState) Reset() { @@ -1482,16 +1482,16 @@ func (x *GenesisState) GetValidatorSetList() []*ValidatorSet { return nil } -func (x *GenesisState) GetKeyShareList() []*KeyShare { +func (x *GenesisState) GetKeyshareList() []*Keyshare { if x != nil { - return x.KeyShareList + return x.KeyshareList } return nil } -func (x *GenesisState) GetAggregatedKeyShareList() []*AggregatedKeyShare { +func (x *GenesisState) GetDecryptionKeyList() []*DecryptionKey { if x != nil { - return x.AggregatedKeyShareList + return x.DecryptionKeyList } return nil } @@ -1524,9 +1524,9 @@ func (x *GenesisState) GetRequestCount() uint64 { return 0 } -func (x *GenesisState) GetGeneralKeyShareList() []*GeneralKeyShare { +func (x *GenesisState) GetGeneralKeyshareList() []*GeneralKeyshare { if x != nil { - return x.GeneralKeyShareList + return x.GeneralKeyshareList } return nil } @@ -1538,83 +1538,81 @@ var file_fairyring_keyshare_genesis_proto_rawDesc = []byte{ 0x68, 0x61, 0x72, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, - 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x26, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, - 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x6b, 0x65, 0x79, - 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, - 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf5, 0x05, 0x0a, 0x0c, 0x47, - 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x61, + 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x64, 0x65, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x21, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, + 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, + 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0xe3, 0x05, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, + 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x64, 0x12, 0x54, 0x0a, 0x12, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x73, + 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x4c, 0x69, 0x73, + 0x74, 0x12, 0x47, 0x0a, 0x0d, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x6c, 0x69, + 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x57, 0x0a, 0x13, 0x64, 0x65, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x6c, 0x69, 0x73, + 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x44, 0x65, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, + 0x52, 0x11, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x4c, + 0x69, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x75, + 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, - 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x6f, - 0x72, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x72, - 0x74, 0x49, 0x64, 0x12, 0x54, 0x0a, 0x12, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, - 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, - 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x10, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x53, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x0e, 0x6b, 0x65, 0x79, - 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, - 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x4c, - 0x69, 0x73, 0x74, 0x12, 0x67, 0x0a, 0x19, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, - 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, - 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x67, 0x67, 0x72, - 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, - 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x16, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, - 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x0e, - 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, - 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, 0x63, - 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x4c, 0x0a, 0x0e, 0x71, 0x75, - 0x65, 0x75, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, - 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x75, - 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x63, 0x0a, 0x17, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x6c, - 0x69, 0x73, 0x74, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, + 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, + 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, + 0x79, 0x12, 0x4c, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x5f, + 0x6b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, + 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, + 0x63, 0x0a, 0x17, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x15, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x15, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, - 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x23, 0x0a, - 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x75, - 0x6e, 0x74, 0x12, 0x5e, 0x0a, 0x16, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, - 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0a, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, - 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x13, 0x67, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x4c, 0x69, - 0x73, 0x74, 0x42, 0xb4, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x0c, 0x47, - 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, - 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, - 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x4c, 0x69, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x5d, 0x0a, 0x15, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x6c, 0x69, + 0x73, 0x74, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, + 0xde, 0x1f, 0x00, 0x52, 0x13, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x42, 0xb4, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, + 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, + 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, + 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, + 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1631,25 +1629,25 @@ func file_fairyring_keyshare_genesis_proto_rawDescGZIP() []byte { var file_fairyring_keyshare_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_fairyring_keyshare_genesis_proto_goTypes = []interface{}{ - (*GenesisState)(nil), // 0: fairyring.keyshare.GenesisState - (*Params)(nil), // 1: fairyring.keyshare.Params - (*ValidatorSet)(nil), // 2: fairyring.keyshare.ValidatorSet - (*KeyShare)(nil), // 3: fairyring.keyshare.KeyShare - (*AggregatedKeyShare)(nil), // 4: fairyring.keyshare.AggregatedKeyShare - (*ActivePubKey)(nil), // 5: fairyring.keyshare.ActivePubKey - (*QueuedPubKey)(nil), // 6: fairyring.keyshare.QueuedPubKey - (*AuthorizedAddress)(nil), // 7: fairyring.keyshare.AuthorizedAddress - (*GeneralKeyShare)(nil), // 8: fairyring.keyshare.GeneralKeyShare + (*GenesisState)(nil), // 0: fairyring.keyshare.GenesisState + (*Params)(nil), // 1: fairyring.keyshare.Params + (*ValidatorSet)(nil), // 2: fairyring.keyshare.ValidatorSet + (*Keyshare)(nil), // 3: fairyring.keyshare.Keyshare + (*DecryptionKey)(nil), // 4: fairyring.keyshare.DecryptionKey + (*ActivePubKey)(nil), // 5: fairyring.keyshare.ActivePubKey + (*QueuedPubKey)(nil), // 6: fairyring.keyshare.QueuedPubKey + (*AuthorizedAddress)(nil), // 7: fairyring.keyshare.AuthorizedAddress + (*GeneralKeyshare)(nil), // 8: fairyring.keyshare.GeneralKeyshare } var file_fairyring_keyshare_genesis_proto_depIdxs = []int32{ 1, // 0: fairyring.keyshare.GenesisState.params:type_name -> fairyring.keyshare.Params 2, // 1: fairyring.keyshare.GenesisState.validator_set_list:type_name -> fairyring.keyshare.ValidatorSet - 3, // 2: fairyring.keyshare.GenesisState.key_share_list:type_name -> fairyring.keyshare.KeyShare - 4, // 3: fairyring.keyshare.GenesisState.aggregated_key_share_list:type_name -> fairyring.keyshare.AggregatedKeyShare + 3, // 2: fairyring.keyshare.GenesisState.keyshare_list:type_name -> fairyring.keyshare.Keyshare + 4, // 3: fairyring.keyshare.GenesisState.decryption_key_list:type_name -> fairyring.keyshare.DecryptionKey 5, // 4: fairyring.keyshare.GenesisState.active_pub_key:type_name -> fairyring.keyshare.ActivePubKey 6, // 5: fairyring.keyshare.GenesisState.queued_pub_key:type_name -> fairyring.keyshare.QueuedPubKey 7, // 6: fairyring.keyshare.GenesisState.authorized_address_list:type_name -> fairyring.keyshare.AuthorizedAddress - 8, // 7: fairyring.keyshare.GenesisState.general_key_share_list:type_name -> fairyring.keyshare.GeneralKeyShare + 8, // 7: fairyring.keyshare.GenesisState.general_keyshare_list:type_name -> fairyring.keyshare.GeneralKeyshare 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 @@ -1662,12 +1660,12 @@ func file_fairyring_keyshare_genesis_proto_init() { if File_fairyring_keyshare_genesis_proto != nil { return } + file_fairyring_keyshare_authorized_address_proto_init() + file_fairyring_keyshare_decryption_key_proto_init() + file_fairyring_keyshare_keyshare_proto_init() file_fairyring_keyshare_params_proto_init() + file_fairyring_keyshare_pubkey_proto_init() file_fairyring_keyshare_validator_set_proto_init() - file_fairyring_keyshare_key_share_proto_init() - file_fairyring_keyshare_aggregated_key_share_proto_init() - file_fairyring_keyshare_pub_key_proto_init() - file_fairyring_keyshare_authorized_address_proto_init() if !protoimpl.UnsafeEnabled { file_fairyring_keyshare_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GenesisState); i { diff --git a/api/fairyring/keyshare/key_share.pulsar.go b/api/fairyring/keyshare/keyshare.pulsar.go similarity index 64% rename from api/fairyring/keyshare/key_share.pulsar.go rename to api/fairyring/keyshare/keyshare.pulsar.go index 512275de..2286e050 100644 --- a/api/fairyring/keyshare/key_share.pulsar.go +++ b/api/fairyring/keyshare/keyshare.pulsar.go @@ -13,36 +13,36 @@ import ( ) var ( - md_KeyShare protoreflect.MessageDescriptor - fd_KeyShare_validator protoreflect.FieldDescriptor - fd_KeyShare_block_height protoreflect.FieldDescriptor - fd_KeyShare_key_share protoreflect.FieldDescriptor - fd_KeyShare_key_share_index protoreflect.FieldDescriptor - fd_KeyShare_received_timestamp protoreflect.FieldDescriptor - fd_KeyShare_received_block_height protoreflect.FieldDescriptor + md_Keyshare protoreflect.MessageDescriptor + fd_Keyshare_validator protoreflect.FieldDescriptor + fd_Keyshare_block_height protoreflect.FieldDescriptor + fd_Keyshare_keyshare protoreflect.FieldDescriptor + fd_Keyshare_keyshare_index protoreflect.FieldDescriptor + fd_Keyshare_received_timestamp protoreflect.FieldDescriptor + fd_Keyshare_received_block_height protoreflect.FieldDescriptor ) func init() { - file_fairyring_keyshare_key_share_proto_init() - md_KeyShare = File_fairyring_keyshare_key_share_proto.Messages().ByName("KeyShare") - fd_KeyShare_validator = md_KeyShare.Fields().ByName("validator") - fd_KeyShare_block_height = md_KeyShare.Fields().ByName("block_height") - fd_KeyShare_key_share = md_KeyShare.Fields().ByName("key_share") - fd_KeyShare_key_share_index = md_KeyShare.Fields().ByName("key_share_index") - fd_KeyShare_received_timestamp = md_KeyShare.Fields().ByName("received_timestamp") - fd_KeyShare_received_block_height = md_KeyShare.Fields().ByName("received_block_height") + file_fairyring_keyshare_keyshare_proto_init() + md_Keyshare = File_fairyring_keyshare_keyshare_proto.Messages().ByName("Keyshare") + fd_Keyshare_validator = md_Keyshare.Fields().ByName("validator") + fd_Keyshare_block_height = md_Keyshare.Fields().ByName("block_height") + fd_Keyshare_keyshare = md_Keyshare.Fields().ByName("keyshare") + fd_Keyshare_keyshare_index = md_Keyshare.Fields().ByName("keyshare_index") + fd_Keyshare_received_timestamp = md_Keyshare.Fields().ByName("received_timestamp") + fd_Keyshare_received_block_height = md_Keyshare.Fields().ByName("received_block_height") } -var _ protoreflect.Message = (*fastReflection_KeyShare)(nil) +var _ protoreflect.Message = (*fastReflection_Keyshare)(nil) -type fastReflection_KeyShare KeyShare +type fastReflection_Keyshare Keyshare -func (x *KeyShare) ProtoReflect() protoreflect.Message { - return (*fastReflection_KeyShare)(x) +func (x *Keyshare) ProtoReflect() protoreflect.Message { + return (*fastReflection_Keyshare)(x) } -func (x *KeyShare) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_keyshare_key_share_proto_msgTypes[0] +func (x *Keyshare) slowProtoReflect() protoreflect.Message { + mi := &file_fairyring_keyshare_keyshare_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -53,43 +53,43 @@ func (x *KeyShare) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_KeyShare_messageType fastReflection_KeyShare_messageType -var _ protoreflect.MessageType = fastReflection_KeyShare_messageType{} +var _fastReflection_Keyshare_messageType fastReflection_Keyshare_messageType +var _ protoreflect.MessageType = fastReflection_Keyshare_messageType{} -type fastReflection_KeyShare_messageType struct{} +type fastReflection_Keyshare_messageType struct{} -func (x fastReflection_KeyShare_messageType) Zero() protoreflect.Message { - return (*fastReflection_KeyShare)(nil) +func (x fastReflection_Keyshare_messageType) Zero() protoreflect.Message { + return (*fastReflection_Keyshare)(nil) } -func (x fastReflection_KeyShare_messageType) New() protoreflect.Message { - return new(fastReflection_KeyShare) +func (x fastReflection_Keyshare_messageType) New() protoreflect.Message { + return new(fastReflection_Keyshare) } -func (x fastReflection_KeyShare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_KeyShare +func (x fastReflection_Keyshare_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Keyshare } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_KeyShare) Descriptor() protoreflect.MessageDescriptor { - return md_KeyShare +func (x *fastReflection_Keyshare) Descriptor() protoreflect.MessageDescriptor { + return md_Keyshare } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_KeyShare) Type() protoreflect.MessageType { - return _fastReflection_KeyShare_messageType +func (x *fastReflection_Keyshare) Type() protoreflect.MessageType { + return _fastReflection_Keyshare_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_KeyShare) New() protoreflect.Message { - return new(fastReflection_KeyShare) +func (x *fastReflection_Keyshare) New() protoreflect.Message { + return new(fastReflection_Keyshare) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_KeyShare) Interface() protoreflect.ProtoMessage { - return (*KeyShare)(x) +func (x *fastReflection_Keyshare) Interface() protoreflect.ProtoMessage { + return (*Keyshare)(x) } // Range iterates over every populated field in an undefined order, @@ -97,40 +97,40 @@ func (x *fastReflection_KeyShare) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_KeyShare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_Keyshare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Validator != "" { value := protoreflect.ValueOfString(x.Validator) - if !f(fd_KeyShare_validator, value) { + if !f(fd_Keyshare_validator, value) { return } } if x.BlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.BlockHeight) - if !f(fd_KeyShare_block_height, value) { + if !f(fd_Keyshare_block_height, value) { return } } - if x.KeyShare != "" { - value := protoreflect.ValueOfString(x.KeyShare) - if !f(fd_KeyShare_key_share, value) { + if x.Keyshare != "" { + value := protoreflect.ValueOfString(x.Keyshare) + if !f(fd_Keyshare_keyshare, value) { return } } - if x.KeyShareIndex != uint64(0) { - value := protoreflect.ValueOfUint64(x.KeyShareIndex) - if !f(fd_KeyShare_key_share_index, value) { + if x.KeyshareIndex != uint64(0) { + value := protoreflect.ValueOfUint64(x.KeyshareIndex) + if !f(fd_Keyshare_keyshare_index, value) { return } } if x.ReceivedTimestamp != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedTimestamp) - if !f(fd_KeyShare_received_timestamp, value) { + if !f(fd_Keyshare_received_timestamp, value) { return } } if x.ReceivedBlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedBlockHeight) - if !f(fd_KeyShare_received_block_height, value) { + if !f(fd_Keyshare_received_block_height, value) { return } } @@ -147,25 +147,25 @@ func (x *fastReflection_KeyShare) Range(f func(protoreflect.FieldDescriptor, pro // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_KeyShare) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_Keyshare) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.KeyShare.validator": + case "fairyring.keyshare.Keyshare.validator": return x.Validator != "" - case "fairyring.keyshare.KeyShare.block_height": + case "fairyring.keyshare.Keyshare.block_height": return x.BlockHeight != uint64(0) - case "fairyring.keyshare.KeyShare.key_share": - return x.KeyShare != "" - case "fairyring.keyshare.KeyShare.key_share_index": - return x.KeyShareIndex != uint64(0) - case "fairyring.keyshare.KeyShare.received_timestamp": + case "fairyring.keyshare.Keyshare.keyshare": + return x.Keyshare != "" + case "fairyring.keyshare.Keyshare.keyshare_index": + return x.KeyshareIndex != uint64(0) + case "fairyring.keyshare.Keyshare.received_timestamp": return x.ReceivedTimestamp != uint64(0) - case "fairyring.keyshare.KeyShare.received_block_height": + case "fairyring.keyshare.Keyshare.received_block_height": return x.ReceivedBlockHeight != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.KeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.Keyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.KeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.Keyshare does not contain field %s", fd.FullName())) } } @@ -175,25 +175,25 @@ func (x *fastReflection_KeyShare) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_KeyShare) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_Keyshare) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.KeyShare.validator": + case "fairyring.keyshare.Keyshare.validator": x.Validator = "" - case "fairyring.keyshare.KeyShare.block_height": + case "fairyring.keyshare.Keyshare.block_height": x.BlockHeight = uint64(0) - case "fairyring.keyshare.KeyShare.key_share": - x.KeyShare = "" - case "fairyring.keyshare.KeyShare.key_share_index": - x.KeyShareIndex = uint64(0) - case "fairyring.keyshare.KeyShare.received_timestamp": + case "fairyring.keyshare.Keyshare.keyshare": + x.Keyshare = "" + case "fairyring.keyshare.Keyshare.keyshare_index": + x.KeyshareIndex = uint64(0) + case "fairyring.keyshare.Keyshare.received_timestamp": x.ReceivedTimestamp = uint64(0) - case "fairyring.keyshare.KeyShare.received_block_height": + case "fairyring.keyshare.Keyshare.received_block_height": x.ReceivedBlockHeight = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.KeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.Keyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.KeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.Keyshare does not contain field %s", fd.FullName())) } } @@ -203,31 +203,31 @@ func (x *fastReflection_KeyShare) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_KeyShare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Keyshare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.KeyShare.validator": + case "fairyring.keyshare.Keyshare.validator": value := x.Validator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.KeyShare.block_height": + case "fairyring.keyshare.Keyshare.block_height": value := x.BlockHeight return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.KeyShare.key_share": - value := x.KeyShare + case "fairyring.keyshare.Keyshare.keyshare": + value := x.Keyshare return protoreflect.ValueOfString(value) - case "fairyring.keyshare.KeyShare.key_share_index": - value := x.KeyShareIndex + case "fairyring.keyshare.Keyshare.keyshare_index": + value := x.KeyshareIndex return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.KeyShare.received_timestamp": + case "fairyring.keyshare.Keyshare.received_timestamp": value := x.ReceivedTimestamp return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.KeyShare.received_block_height": + case "fairyring.keyshare.Keyshare.received_block_height": value := x.ReceivedBlockHeight return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.KeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.Keyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.KeyShare does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.Keyshare does not contain field %s", descriptor.FullName())) } } @@ -241,25 +241,25 @@ func (x *fastReflection_KeyShare) Get(descriptor protoreflect.FieldDescriptor) p // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_KeyShare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_Keyshare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.KeyShare.validator": + case "fairyring.keyshare.Keyshare.validator": x.Validator = value.Interface().(string) - case "fairyring.keyshare.KeyShare.block_height": + case "fairyring.keyshare.Keyshare.block_height": x.BlockHeight = value.Uint() - case "fairyring.keyshare.KeyShare.key_share": - x.KeyShare = value.Interface().(string) - case "fairyring.keyshare.KeyShare.key_share_index": - x.KeyShareIndex = value.Uint() - case "fairyring.keyshare.KeyShare.received_timestamp": + case "fairyring.keyshare.Keyshare.keyshare": + x.Keyshare = value.Interface().(string) + case "fairyring.keyshare.Keyshare.keyshare_index": + x.KeyshareIndex = value.Uint() + case "fairyring.keyshare.Keyshare.received_timestamp": x.ReceivedTimestamp = value.Uint() - case "fairyring.keyshare.KeyShare.received_block_height": + case "fairyring.keyshare.Keyshare.received_block_height": x.ReceivedBlockHeight = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.KeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.Keyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.KeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.Keyshare does not contain field %s", fd.FullName())) } } @@ -273,60 +273,60 @@ func (x *fastReflection_KeyShare) Set(fd protoreflect.FieldDescriptor, value pro // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_KeyShare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Keyshare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.KeyShare.validator": - panic(fmt.Errorf("field validator of message fairyring.keyshare.KeyShare is not mutable")) - case "fairyring.keyshare.KeyShare.block_height": - panic(fmt.Errorf("field block_height of message fairyring.keyshare.KeyShare is not mutable")) - case "fairyring.keyshare.KeyShare.key_share": - panic(fmt.Errorf("field key_share of message fairyring.keyshare.KeyShare is not mutable")) - case "fairyring.keyshare.KeyShare.key_share_index": - panic(fmt.Errorf("field key_share_index of message fairyring.keyshare.KeyShare is not mutable")) - case "fairyring.keyshare.KeyShare.received_timestamp": - panic(fmt.Errorf("field received_timestamp of message fairyring.keyshare.KeyShare is not mutable")) - case "fairyring.keyshare.KeyShare.received_block_height": - panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.KeyShare is not mutable")) + case "fairyring.keyshare.Keyshare.validator": + panic(fmt.Errorf("field validator of message fairyring.keyshare.Keyshare is not mutable")) + case "fairyring.keyshare.Keyshare.block_height": + panic(fmt.Errorf("field block_height of message fairyring.keyshare.Keyshare is not mutable")) + case "fairyring.keyshare.Keyshare.keyshare": + panic(fmt.Errorf("field keyshare of message fairyring.keyshare.Keyshare is not mutable")) + case "fairyring.keyshare.Keyshare.keyshare_index": + panic(fmt.Errorf("field keyshare_index of message fairyring.keyshare.Keyshare is not mutable")) + case "fairyring.keyshare.Keyshare.received_timestamp": + panic(fmt.Errorf("field received_timestamp of message fairyring.keyshare.Keyshare is not mutable")) + case "fairyring.keyshare.Keyshare.received_block_height": + panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.Keyshare is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.KeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.Keyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.KeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.Keyshare does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_KeyShare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_Keyshare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.KeyShare.validator": + case "fairyring.keyshare.Keyshare.validator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.KeyShare.block_height": + case "fairyring.keyshare.Keyshare.block_height": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.KeyShare.key_share": + case "fairyring.keyshare.Keyshare.keyshare": return protoreflect.ValueOfString("") - case "fairyring.keyshare.KeyShare.key_share_index": + case "fairyring.keyshare.Keyshare.keyshare_index": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.KeyShare.received_timestamp": + case "fairyring.keyshare.Keyshare.received_timestamp": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.KeyShare.received_block_height": + case "fairyring.keyshare.Keyshare.received_block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.KeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.Keyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.KeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.Keyshare does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_KeyShare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_Keyshare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.KeyShare", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.Keyshare", d.FullName())) } panic("unreachable") } @@ -334,7 +334,7 @@ func (x *fastReflection_KeyShare) WhichOneof(d protoreflect.OneofDescriptor) pro // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_KeyShare) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_Keyshare) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -345,7 +345,7 @@ func (x *fastReflection_KeyShare) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_KeyShare) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_Keyshare) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -357,7 +357,7 @@ func (x *fastReflection_KeyShare) SetUnknown(fields protoreflect.RawFields) { // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_KeyShare) IsValid() bool { +func (x *fastReflection_Keyshare) IsValid() bool { return x != nil } @@ -367,9 +367,9 @@ func (x *fastReflection_KeyShare) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_KeyShare) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_Keyshare) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*KeyShare) + x := input.Message.Interface().(*Keyshare) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -388,12 +388,12 @@ func (x *fastReflection_KeyShare) ProtoMethods() *protoiface.Methods { if x.BlockHeight != 0 { n += 1 + runtime.Sov(uint64(x.BlockHeight)) } - l = len(x.KeyShare) + l = len(x.Keyshare) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.KeyShareIndex != 0 { - n += 1 + runtime.Sov(uint64(x.KeyShareIndex)) + if x.KeyshareIndex != 0 { + n += 1 + runtime.Sov(uint64(x.KeyshareIndex)) } if x.ReceivedTimestamp != 0 { n += 1 + runtime.Sov(uint64(x.ReceivedTimestamp)) @@ -411,7 +411,7 @@ func (x *fastReflection_KeyShare) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*KeyShare) + x := input.Message.Interface().(*Keyshare) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -440,15 +440,15 @@ func (x *fastReflection_KeyShare) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x28 } - if x.KeyShareIndex != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyShareIndex)) + if x.KeyshareIndex != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyshareIndex)) i-- dAtA[i] = 0x20 } - if len(x.KeyShare) > 0 { - i -= len(x.KeyShare) - copy(dAtA[i:], x.KeyShare) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.KeyShare))) + if len(x.Keyshare) > 0 { + i -= len(x.Keyshare) + copy(dAtA[i:], x.Keyshare) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Keyshare))) i-- dAtA[i] = 0x1a } @@ -475,7 +475,7 @@ func (x *fastReflection_KeyShare) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*KeyShare) + x := input.Message.Interface().(*Keyshare) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -507,10 +507,10 @@ func (x *fastReflection_KeyShare) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: KeyShare: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Keyshare: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: KeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Keyshare: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -566,7 +566,7 @@ func (x *fastReflection_KeyShare) ProtoMethods() *protoiface.Methods { } case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Keyshare", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -594,13 +594,13 @@ func (x *fastReflection_KeyShare) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.KeyShare = string(dAtA[iNdEx:postIndex]) + x.Keyshare = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyshareIndex", wireType) } - x.KeyShareIndex = 0 + x.KeyshareIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -610,7 +610,7 @@ func (x *fastReflection_KeyShare) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.KeyShareIndex |= uint64(b&0x7F) << shift + x.KeyshareIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -689,38 +689,38 @@ func (x *fastReflection_KeyShare) ProtoMethods() *protoiface.Methods { } var ( - md_GeneralKeyShare protoreflect.MessageDescriptor - fd_GeneralKeyShare_validator protoreflect.FieldDescriptor - fd_GeneralKeyShare_id_type protoreflect.FieldDescriptor - fd_GeneralKeyShare_id_value protoreflect.FieldDescriptor - fd_GeneralKeyShare_key_share protoreflect.FieldDescriptor - fd_GeneralKeyShare_key_share_index protoreflect.FieldDescriptor - fd_GeneralKeyShare_received_timestamp protoreflect.FieldDescriptor - fd_GeneralKeyShare_received_block_height protoreflect.FieldDescriptor + md_GeneralKeyshare protoreflect.MessageDescriptor + fd_GeneralKeyshare_validator protoreflect.FieldDescriptor + fd_GeneralKeyshare_id_type protoreflect.FieldDescriptor + fd_GeneralKeyshare_id_value protoreflect.FieldDescriptor + fd_GeneralKeyshare_keyshare protoreflect.FieldDescriptor + fd_GeneralKeyshare_keyshare_index protoreflect.FieldDescriptor + fd_GeneralKeyshare_received_timestamp protoreflect.FieldDescriptor + fd_GeneralKeyshare_received_block_height protoreflect.FieldDescriptor ) func init() { - file_fairyring_keyshare_key_share_proto_init() - md_GeneralKeyShare = File_fairyring_keyshare_key_share_proto.Messages().ByName("GeneralKeyShare") - fd_GeneralKeyShare_validator = md_GeneralKeyShare.Fields().ByName("validator") - fd_GeneralKeyShare_id_type = md_GeneralKeyShare.Fields().ByName("id_type") - fd_GeneralKeyShare_id_value = md_GeneralKeyShare.Fields().ByName("id_value") - fd_GeneralKeyShare_key_share = md_GeneralKeyShare.Fields().ByName("key_share") - fd_GeneralKeyShare_key_share_index = md_GeneralKeyShare.Fields().ByName("key_share_index") - fd_GeneralKeyShare_received_timestamp = md_GeneralKeyShare.Fields().ByName("received_timestamp") - fd_GeneralKeyShare_received_block_height = md_GeneralKeyShare.Fields().ByName("received_block_height") + file_fairyring_keyshare_keyshare_proto_init() + md_GeneralKeyshare = File_fairyring_keyshare_keyshare_proto.Messages().ByName("GeneralKeyshare") + fd_GeneralKeyshare_validator = md_GeneralKeyshare.Fields().ByName("validator") + fd_GeneralKeyshare_id_type = md_GeneralKeyshare.Fields().ByName("id_type") + fd_GeneralKeyshare_id_value = md_GeneralKeyshare.Fields().ByName("id_value") + fd_GeneralKeyshare_keyshare = md_GeneralKeyshare.Fields().ByName("keyshare") + fd_GeneralKeyshare_keyshare_index = md_GeneralKeyshare.Fields().ByName("keyshare_index") + fd_GeneralKeyshare_received_timestamp = md_GeneralKeyshare.Fields().ByName("received_timestamp") + fd_GeneralKeyshare_received_block_height = md_GeneralKeyshare.Fields().ByName("received_block_height") } -var _ protoreflect.Message = (*fastReflection_GeneralKeyShare)(nil) +var _ protoreflect.Message = (*fastReflection_GeneralKeyshare)(nil) -type fastReflection_GeneralKeyShare GeneralKeyShare +type fastReflection_GeneralKeyshare GeneralKeyshare -func (x *GeneralKeyShare) ProtoReflect() protoreflect.Message { - return (*fastReflection_GeneralKeyShare)(x) +func (x *GeneralKeyshare) ProtoReflect() protoreflect.Message { + return (*fastReflection_GeneralKeyshare)(x) } -func (x *GeneralKeyShare) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_keyshare_key_share_proto_msgTypes[1] +func (x *GeneralKeyshare) slowProtoReflect() protoreflect.Message { + mi := &file_fairyring_keyshare_keyshare_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -731,43 +731,43 @@ func (x *GeneralKeyShare) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_GeneralKeyShare_messageType fastReflection_GeneralKeyShare_messageType -var _ protoreflect.MessageType = fastReflection_GeneralKeyShare_messageType{} +var _fastReflection_GeneralKeyshare_messageType fastReflection_GeneralKeyshare_messageType +var _ protoreflect.MessageType = fastReflection_GeneralKeyshare_messageType{} -type fastReflection_GeneralKeyShare_messageType struct{} +type fastReflection_GeneralKeyshare_messageType struct{} -func (x fastReflection_GeneralKeyShare_messageType) Zero() protoreflect.Message { - return (*fastReflection_GeneralKeyShare)(nil) +func (x fastReflection_GeneralKeyshare_messageType) Zero() protoreflect.Message { + return (*fastReflection_GeneralKeyshare)(nil) } -func (x fastReflection_GeneralKeyShare_messageType) New() protoreflect.Message { - return new(fastReflection_GeneralKeyShare) +func (x fastReflection_GeneralKeyshare_messageType) New() protoreflect.Message { + return new(fastReflection_GeneralKeyshare) } -func (x fastReflection_GeneralKeyShare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GeneralKeyShare +func (x fastReflection_GeneralKeyshare_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GeneralKeyshare } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_GeneralKeyShare) Descriptor() protoreflect.MessageDescriptor { - return md_GeneralKeyShare +func (x *fastReflection_GeneralKeyshare) Descriptor() protoreflect.MessageDescriptor { + return md_GeneralKeyshare } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_GeneralKeyShare) Type() protoreflect.MessageType { - return _fastReflection_GeneralKeyShare_messageType +func (x *fastReflection_GeneralKeyshare) Type() protoreflect.MessageType { + return _fastReflection_GeneralKeyshare_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_GeneralKeyShare) New() protoreflect.Message { - return new(fastReflection_GeneralKeyShare) +func (x *fastReflection_GeneralKeyshare) New() protoreflect.Message { + return new(fastReflection_GeneralKeyshare) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_GeneralKeyShare) Interface() protoreflect.ProtoMessage { - return (*GeneralKeyShare)(x) +func (x *fastReflection_GeneralKeyshare) Interface() protoreflect.ProtoMessage { + return (*GeneralKeyshare)(x) } // Range iterates over every populated field in an undefined order, @@ -775,46 +775,46 @@ func (x *fastReflection_GeneralKeyShare) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_GeneralKeyShare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_GeneralKeyshare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Validator != "" { value := protoreflect.ValueOfString(x.Validator) - if !f(fd_GeneralKeyShare_validator, value) { + if !f(fd_GeneralKeyshare_validator, value) { return } } if x.IdType != "" { value := protoreflect.ValueOfString(x.IdType) - if !f(fd_GeneralKeyShare_id_type, value) { + if !f(fd_GeneralKeyshare_id_type, value) { return } } if x.IdValue != "" { value := protoreflect.ValueOfString(x.IdValue) - if !f(fd_GeneralKeyShare_id_value, value) { + if !f(fd_GeneralKeyshare_id_value, value) { return } } - if x.KeyShare != "" { - value := protoreflect.ValueOfString(x.KeyShare) - if !f(fd_GeneralKeyShare_key_share, value) { + if x.Keyshare != "" { + value := protoreflect.ValueOfString(x.Keyshare) + if !f(fd_GeneralKeyshare_keyshare, value) { return } } - if x.KeyShareIndex != uint64(0) { - value := protoreflect.ValueOfUint64(x.KeyShareIndex) - if !f(fd_GeneralKeyShare_key_share_index, value) { + if x.KeyshareIndex != uint64(0) { + value := protoreflect.ValueOfUint64(x.KeyshareIndex) + if !f(fd_GeneralKeyshare_keyshare_index, value) { return } } if x.ReceivedTimestamp != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedTimestamp) - if !f(fd_GeneralKeyShare_received_timestamp, value) { + if !f(fd_GeneralKeyshare_received_timestamp, value) { return } } if x.ReceivedBlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedBlockHeight) - if !f(fd_GeneralKeyShare_received_block_height, value) { + if !f(fd_GeneralKeyshare_received_block_height, value) { return } } @@ -831,27 +831,27 @@ func (x *fastReflection_GeneralKeyShare) Range(f func(protoreflect.FieldDescript // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_GeneralKeyShare) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_GeneralKeyshare) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.GeneralKeyShare.validator": + case "fairyring.keyshare.GeneralKeyshare.validator": return x.Validator != "" - case "fairyring.keyshare.GeneralKeyShare.id_type": + case "fairyring.keyshare.GeneralKeyshare.id_type": return x.IdType != "" - case "fairyring.keyshare.GeneralKeyShare.id_value": + case "fairyring.keyshare.GeneralKeyshare.id_value": return x.IdValue != "" - case "fairyring.keyshare.GeneralKeyShare.key_share": - return x.KeyShare != "" - case "fairyring.keyshare.GeneralKeyShare.key_share_index": - return x.KeyShareIndex != uint64(0) - case "fairyring.keyshare.GeneralKeyShare.received_timestamp": + case "fairyring.keyshare.GeneralKeyshare.keyshare": + return x.Keyshare != "" + case "fairyring.keyshare.GeneralKeyshare.keyshare_index": + return x.KeyshareIndex != uint64(0) + case "fairyring.keyshare.GeneralKeyshare.received_timestamp": return x.ReceivedTimestamp != uint64(0) - case "fairyring.keyshare.GeneralKeyShare.received_block_height": + case "fairyring.keyshare.GeneralKeyshare.received_block_height": return x.ReceivedBlockHeight != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyshare does not contain field %s", fd.FullName())) } } @@ -861,27 +861,27 @@ func (x *fastReflection_GeneralKeyShare) Has(fd protoreflect.FieldDescriptor) bo // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GeneralKeyShare) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_GeneralKeyshare) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.GeneralKeyShare.validator": + case "fairyring.keyshare.GeneralKeyshare.validator": x.Validator = "" - case "fairyring.keyshare.GeneralKeyShare.id_type": + case "fairyring.keyshare.GeneralKeyshare.id_type": x.IdType = "" - case "fairyring.keyshare.GeneralKeyShare.id_value": + case "fairyring.keyshare.GeneralKeyshare.id_value": x.IdValue = "" - case "fairyring.keyshare.GeneralKeyShare.key_share": - x.KeyShare = "" - case "fairyring.keyshare.GeneralKeyShare.key_share_index": - x.KeyShareIndex = uint64(0) - case "fairyring.keyshare.GeneralKeyShare.received_timestamp": + case "fairyring.keyshare.GeneralKeyshare.keyshare": + x.Keyshare = "" + case "fairyring.keyshare.GeneralKeyshare.keyshare_index": + x.KeyshareIndex = uint64(0) + case "fairyring.keyshare.GeneralKeyshare.received_timestamp": x.ReceivedTimestamp = uint64(0) - case "fairyring.keyshare.GeneralKeyShare.received_block_height": + case "fairyring.keyshare.GeneralKeyshare.received_block_height": x.ReceivedBlockHeight = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyshare does not contain field %s", fd.FullName())) } } @@ -891,34 +891,34 @@ func (x *fastReflection_GeneralKeyShare) Clear(fd protoreflect.FieldDescriptor) // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GeneralKeyShare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GeneralKeyshare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.GeneralKeyShare.validator": + case "fairyring.keyshare.GeneralKeyshare.validator": value := x.Validator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.GeneralKeyShare.id_type": + case "fairyring.keyshare.GeneralKeyshare.id_type": value := x.IdType return protoreflect.ValueOfString(value) - case "fairyring.keyshare.GeneralKeyShare.id_value": + case "fairyring.keyshare.GeneralKeyshare.id_value": value := x.IdValue return protoreflect.ValueOfString(value) - case "fairyring.keyshare.GeneralKeyShare.key_share": - value := x.KeyShare + case "fairyring.keyshare.GeneralKeyshare.keyshare": + value := x.Keyshare return protoreflect.ValueOfString(value) - case "fairyring.keyshare.GeneralKeyShare.key_share_index": - value := x.KeyShareIndex + case "fairyring.keyshare.GeneralKeyshare.keyshare_index": + value := x.KeyshareIndex return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.GeneralKeyShare.received_timestamp": + case "fairyring.keyshare.GeneralKeyshare.received_timestamp": value := x.ReceivedTimestamp return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.GeneralKeyShare.received_block_height": + case "fairyring.keyshare.GeneralKeyshare.received_block_height": value := x.ReceivedBlockHeight return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyShare does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyshare does not contain field %s", descriptor.FullName())) } } @@ -932,27 +932,27 @@ func (x *fastReflection_GeneralKeyShare) Get(descriptor protoreflect.FieldDescri // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GeneralKeyShare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_GeneralKeyshare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.GeneralKeyShare.validator": + case "fairyring.keyshare.GeneralKeyshare.validator": x.Validator = value.Interface().(string) - case "fairyring.keyshare.GeneralKeyShare.id_type": + case "fairyring.keyshare.GeneralKeyshare.id_type": x.IdType = value.Interface().(string) - case "fairyring.keyshare.GeneralKeyShare.id_value": + case "fairyring.keyshare.GeneralKeyshare.id_value": x.IdValue = value.Interface().(string) - case "fairyring.keyshare.GeneralKeyShare.key_share": - x.KeyShare = value.Interface().(string) - case "fairyring.keyshare.GeneralKeyShare.key_share_index": - x.KeyShareIndex = value.Uint() - case "fairyring.keyshare.GeneralKeyShare.received_timestamp": + case "fairyring.keyshare.GeneralKeyshare.keyshare": + x.Keyshare = value.Interface().(string) + case "fairyring.keyshare.GeneralKeyshare.keyshare_index": + x.KeyshareIndex = value.Uint() + case "fairyring.keyshare.GeneralKeyshare.received_timestamp": x.ReceivedTimestamp = value.Uint() - case "fairyring.keyshare.GeneralKeyShare.received_block_height": + case "fairyring.keyshare.GeneralKeyshare.received_block_height": x.ReceivedBlockHeight = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyshare does not contain field %s", fd.FullName())) } } @@ -966,64 +966,64 @@ func (x *fastReflection_GeneralKeyShare) Set(fd protoreflect.FieldDescriptor, va // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GeneralKeyShare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GeneralKeyshare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.GeneralKeyShare.validator": - panic(fmt.Errorf("field validator of message fairyring.keyshare.GeneralKeyShare is not mutable")) - case "fairyring.keyshare.GeneralKeyShare.id_type": - panic(fmt.Errorf("field id_type of message fairyring.keyshare.GeneralKeyShare is not mutable")) - case "fairyring.keyshare.GeneralKeyShare.id_value": - panic(fmt.Errorf("field id_value of message fairyring.keyshare.GeneralKeyShare is not mutable")) - case "fairyring.keyshare.GeneralKeyShare.key_share": - panic(fmt.Errorf("field key_share of message fairyring.keyshare.GeneralKeyShare is not mutable")) - case "fairyring.keyshare.GeneralKeyShare.key_share_index": - panic(fmt.Errorf("field key_share_index of message fairyring.keyshare.GeneralKeyShare is not mutable")) - case "fairyring.keyshare.GeneralKeyShare.received_timestamp": - panic(fmt.Errorf("field received_timestamp of message fairyring.keyshare.GeneralKeyShare is not mutable")) - case "fairyring.keyshare.GeneralKeyShare.received_block_height": - panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.GeneralKeyShare is not mutable")) + case "fairyring.keyshare.GeneralKeyshare.validator": + panic(fmt.Errorf("field validator of message fairyring.keyshare.GeneralKeyshare is not mutable")) + case "fairyring.keyshare.GeneralKeyshare.id_type": + panic(fmt.Errorf("field id_type of message fairyring.keyshare.GeneralKeyshare is not mutable")) + case "fairyring.keyshare.GeneralKeyshare.id_value": + panic(fmt.Errorf("field id_value of message fairyring.keyshare.GeneralKeyshare is not mutable")) + case "fairyring.keyshare.GeneralKeyshare.keyshare": + panic(fmt.Errorf("field keyshare of message fairyring.keyshare.GeneralKeyshare is not mutable")) + case "fairyring.keyshare.GeneralKeyshare.keyshare_index": + panic(fmt.Errorf("field keyshare_index of message fairyring.keyshare.GeneralKeyshare is not mutable")) + case "fairyring.keyshare.GeneralKeyshare.received_timestamp": + panic(fmt.Errorf("field received_timestamp of message fairyring.keyshare.GeneralKeyshare is not mutable")) + case "fairyring.keyshare.GeneralKeyshare.received_block_height": + panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.GeneralKeyshare is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyshare does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GeneralKeyShare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_GeneralKeyshare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.GeneralKeyShare.validator": + case "fairyring.keyshare.GeneralKeyshare.validator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.GeneralKeyShare.id_type": + case "fairyring.keyshare.GeneralKeyshare.id_type": return protoreflect.ValueOfString("") - case "fairyring.keyshare.GeneralKeyShare.id_value": + case "fairyring.keyshare.GeneralKeyshare.id_value": return protoreflect.ValueOfString("") - case "fairyring.keyshare.GeneralKeyShare.key_share": + case "fairyring.keyshare.GeneralKeyshare.keyshare": return protoreflect.ValueOfString("") - case "fairyring.keyshare.GeneralKeyShare.key_share_index": + case "fairyring.keyshare.GeneralKeyshare.keyshare_index": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.GeneralKeyShare.received_timestamp": + case "fairyring.keyshare.GeneralKeyshare.received_timestamp": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.GeneralKeyShare.received_block_height": + case "fairyring.keyshare.GeneralKeyshare.received_block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.GeneralKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.GeneralKeyshare does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GeneralKeyShare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_GeneralKeyshare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.GeneralKeyShare", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.GeneralKeyshare", d.FullName())) } panic("unreachable") } @@ -1031,7 +1031,7 @@ func (x *fastReflection_GeneralKeyShare) WhichOneof(d protoreflect.OneofDescript // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GeneralKeyShare) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_GeneralKeyshare) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1042,7 +1042,7 @@ func (x *fastReflection_GeneralKeyShare) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GeneralKeyShare) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_GeneralKeyshare) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1054,7 +1054,7 @@ func (x *fastReflection_GeneralKeyShare) SetUnknown(fields protoreflect.RawField // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_GeneralKeyShare) IsValid() bool { +func (x *fastReflection_GeneralKeyshare) IsValid() bool { return x != nil } @@ -1064,9 +1064,9 @@ func (x *fastReflection_GeneralKeyShare) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_GeneralKeyShare) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_GeneralKeyshare) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GeneralKeyShare) + x := input.Message.Interface().(*GeneralKeyshare) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1090,12 +1090,12 @@ func (x *fastReflection_GeneralKeyShare) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.KeyShare) + l = len(x.Keyshare) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.KeyShareIndex != 0 { - n += 1 + runtime.Sov(uint64(x.KeyShareIndex)) + if x.KeyshareIndex != 0 { + n += 1 + runtime.Sov(uint64(x.KeyshareIndex)) } if x.ReceivedTimestamp != 0 { n += 1 + runtime.Sov(uint64(x.ReceivedTimestamp)) @@ -1113,7 +1113,7 @@ func (x *fastReflection_GeneralKeyShare) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GeneralKeyShare) + x := input.Message.Interface().(*GeneralKeyshare) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1142,15 +1142,15 @@ func (x *fastReflection_GeneralKeyShare) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x30 } - if x.KeyShareIndex != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyShareIndex)) + if x.KeyshareIndex != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyshareIndex)) i-- dAtA[i] = 0x28 } - if len(x.KeyShare) > 0 { - i -= len(x.KeyShare) - copy(dAtA[i:], x.KeyShare) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.KeyShare))) + if len(x.Keyshare) > 0 { + i -= len(x.Keyshare) + copy(dAtA[i:], x.Keyshare) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Keyshare))) i-- dAtA[i] = 0x22 } @@ -1186,7 +1186,7 @@ func (x *fastReflection_GeneralKeyShare) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GeneralKeyShare) + x := input.Message.Interface().(*GeneralKeyshare) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1218,10 +1218,10 @@ func (x *fastReflection_GeneralKeyShare) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GeneralKeyShare: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GeneralKeyshare: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GeneralKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GeneralKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1322,7 +1322,7 @@ func (x *fastReflection_GeneralKeyShare) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 4: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Keyshare", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1350,13 +1350,13 @@ func (x *fastReflection_GeneralKeyShare) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.KeyShare = string(dAtA[iNdEx:postIndex]) + x.Keyshare = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyshareIndex", wireType) } - x.KeyShareIndex = 0 + x.KeyshareIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1366,7 +1366,7 @@ func (x *fastReflection_GeneralKeyShare) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.KeyShareIndex |= uint64(b&0x7F) << shift + x.KeyshareIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1445,38 +1445,38 @@ func (x *fastReflection_GeneralKeyShare) ProtoMethods() *protoiface.Methods { } var ( - md_ValidatorEncryptedKeyShare protoreflect.MessageDescriptor - fd_ValidatorEncryptedKeyShare_validator protoreflect.FieldDescriptor - fd_ValidatorEncryptedKeyShare_requester protoreflect.FieldDescriptor - fd_ValidatorEncryptedKeyShare_key_share protoreflect.FieldDescriptor - fd_ValidatorEncryptedKeyShare_key_share_index protoreflect.FieldDescriptor - fd_ValidatorEncryptedKeyShare_received_timestamp protoreflect.FieldDescriptor - fd_ValidatorEncryptedKeyShare_received_block_height protoreflect.FieldDescriptor - fd_ValidatorEncryptedKeyShare_identity protoreflect.FieldDescriptor + md_ValidatorEncryptedKeyshare protoreflect.MessageDescriptor + fd_ValidatorEncryptedKeyshare_validator protoreflect.FieldDescriptor + fd_ValidatorEncryptedKeyshare_requester protoreflect.FieldDescriptor + fd_ValidatorEncryptedKeyshare_keyshare protoreflect.FieldDescriptor + fd_ValidatorEncryptedKeyshare_keyshare_index protoreflect.FieldDescriptor + fd_ValidatorEncryptedKeyshare_received_timestamp protoreflect.FieldDescriptor + fd_ValidatorEncryptedKeyshare_received_block_height protoreflect.FieldDescriptor + fd_ValidatorEncryptedKeyshare_identity protoreflect.FieldDescriptor ) func init() { - file_fairyring_keyshare_key_share_proto_init() - md_ValidatorEncryptedKeyShare = File_fairyring_keyshare_key_share_proto.Messages().ByName("ValidatorEncryptedKeyShare") - fd_ValidatorEncryptedKeyShare_validator = md_ValidatorEncryptedKeyShare.Fields().ByName("validator") - fd_ValidatorEncryptedKeyShare_requester = md_ValidatorEncryptedKeyShare.Fields().ByName("requester") - fd_ValidatorEncryptedKeyShare_key_share = md_ValidatorEncryptedKeyShare.Fields().ByName("key_share") - fd_ValidatorEncryptedKeyShare_key_share_index = md_ValidatorEncryptedKeyShare.Fields().ByName("key_share_index") - fd_ValidatorEncryptedKeyShare_received_timestamp = md_ValidatorEncryptedKeyShare.Fields().ByName("received_timestamp") - fd_ValidatorEncryptedKeyShare_received_block_height = md_ValidatorEncryptedKeyShare.Fields().ByName("received_block_height") - fd_ValidatorEncryptedKeyShare_identity = md_ValidatorEncryptedKeyShare.Fields().ByName("identity") + file_fairyring_keyshare_keyshare_proto_init() + md_ValidatorEncryptedKeyshare = File_fairyring_keyshare_keyshare_proto.Messages().ByName("ValidatorEncryptedKeyshare") + fd_ValidatorEncryptedKeyshare_validator = md_ValidatorEncryptedKeyshare.Fields().ByName("validator") + fd_ValidatorEncryptedKeyshare_requester = md_ValidatorEncryptedKeyshare.Fields().ByName("requester") + fd_ValidatorEncryptedKeyshare_keyshare = md_ValidatorEncryptedKeyshare.Fields().ByName("keyshare") + fd_ValidatorEncryptedKeyshare_keyshare_index = md_ValidatorEncryptedKeyshare.Fields().ByName("keyshare_index") + fd_ValidatorEncryptedKeyshare_received_timestamp = md_ValidatorEncryptedKeyshare.Fields().ByName("received_timestamp") + fd_ValidatorEncryptedKeyshare_received_block_height = md_ValidatorEncryptedKeyshare.Fields().ByName("received_block_height") + fd_ValidatorEncryptedKeyshare_identity = md_ValidatorEncryptedKeyshare.Fields().ByName("identity") } -var _ protoreflect.Message = (*fastReflection_ValidatorEncryptedKeyShare)(nil) +var _ protoreflect.Message = (*fastReflection_ValidatorEncryptedKeyshare)(nil) -type fastReflection_ValidatorEncryptedKeyShare ValidatorEncryptedKeyShare +type fastReflection_ValidatorEncryptedKeyshare ValidatorEncryptedKeyshare -func (x *ValidatorEncryptedKeyShare) ProtoReflect() protoreflect.Message { - return (*fastReflection_ValidatorEncryptedKeyShare)(x) +func (x *ValidatorEncryptedKeyshare) ProtoReflect() protoreflect.Message { + return (*fastReflection_ValidatorEncryptedKeyshare)(x) } -func (x *ValidatorEncryptedKeyShare) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_keyshare_key_share_proto_msgTypes[2] +func (x *ValidatorEncryptedKeyshare) slowProtoReflect() protoreflect.Message { + mi := &file_fairyring_keyshare_keyshare_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1487,43 +1487,43 @@ func (x *ValidatorEncryptedKeyShare) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_ValidatorEncryptedKeyShare_messageType fastReflection_ValidatorEncryptedKeyShare_messageType -var _ protoreflect.MessageType = fastReflection_ValidatorEncryptedKeyShare_messageType{} +var _fastReflection_ValidatorEncryptedKeyshare_messageType fastReflection_ValidatorEncryptedKeyshare_messageType +var _ protoreflect.MessageType = fastReflection_ValidatorEncryptedKeyshare_messageType{} -type fastReflection_ValidatorEncryptedKeyShare_messageType struct{} +type fastReflection_ValidatorEncryptedKeyshare_messageType struct{} -func (x fastReflection_ValidatorEncryptedKeyShare_messageType) Zero() protoreflect.Message { - return (*fastReflection_ValidatorEncryptedKeyShare)(nil) +func (x fastReflection_ValidatorEncryptedKeyshare_messageType) Zero() protoreflect.Message { + return (*fastReflection_ValidatorEncryptedKeyshare)(nil) } -func (x fastReflection_ValidatorEncryptedKeyShare_messageType) New() protoreflect.Message { - return new(fastReflection_ValidatorEncryptedKeyShare) +func (x fastReflection_ValidatorEncryptedKeyshare_messageType) New() protoreflect.Message { + return new(fastReflection_ValidatorEncryptedKeyshare) } -func (x fastReflection_ValidatorEncryptedKeyShare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ValidatorEncryptedKeyShare +func (x fastReflection_ValidatorEncryptedKeyshare_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ValidatorEncryptedKeyshare } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_ValidatorEncryptedKeyShare) Descriptor() protoreflect.MessageDescriptor { - return md_ValidatorEncryptedKeyShare +func (x *fastReflection_ValidatorEncryptedKeyshare) Descriptor() protoreflect.MessageDescriptor { + return md_ValidatorEncryptedKeyshare } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_ValidatorEncryptedKeyShare) Type() protoreflect.MessageType { - return _fastReflection_ValidatorEncryptedKeyShare_messageType +func (x *fastReflection_ValidatorEncryptedKeyshare) Type() protoreflect.MessageType { + return _fastReflection_ValidatorEncryptedKeyshare_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_ValidatorEncryptedKeyShare) New() protoreflect.Message { - return new(fastReflection_ValidatorEncryptedKeyShare) +func (x *fastReflection_ValidatorEncryptedKeyshare) New() protoreflect.Message { + return new(fastReflection_ValidatorEncryptedKeyshare) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_ValidatorEncryptedKeyShare) Interface() protoreflect.ProtoMessage { - return (*ValidatorEncryptedKeyShare)(x) +func (x *fastReflection_ValidatorEncryptedKeyshare) Interface() protoreflect.ProtoMessage { + return (*ValidatorEncryptedKeyshare)(x) } // Range iterates over every populated field in an undefined order, @@ -1531,46 +1531,46 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) Interface() protoreflect.Pro // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_ValidatorEncryptedKeyShare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ValidatorEncryptedKeyshare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Validator != "" { value := protoreflect.ValueOfString(x.Validator) - if !f(fd_ValidatorEncryptedKeyShare_validator, value) { + if !f(fd_ValidatorEncryptedKeyshare_validator, value) { return } } if x.Requester != "" { value := protoreflect.ValueOfString(x.Requester) - if !f(fd_ValidatorEncryptedKeyShare_requester, value) { + if !f(fd_ValidatorEncryptedKeyshare_requester, value) { return } } - if x.KeyShare != "" { - value := protoreflect.ValueOfString(x.KeyShare) - if !f(fd_ValidatorEncryptedKeyShare_key_share, value) { + if x.Keyshare != "" { + value := protoreflect.ValueOfString(x.Keyshare) + if !f(fd_ValidatorEncryptedKeyshare_keyshare, value) { return } } - if x.KeyShareIndex != uint64(0) { - value := protoreflect.ValueOfUint64(x.KeyShareIndex) - if !f(fd_ValidatorEncryptedKeyShare_key_share_index, value) { + if x.KeyshareIndex != uint64(0) { + value := protoreflect.ValueOfUint64(x.KeyshareIndex) + if !f(fd_ValidatorEncryptedKeyshare_keyshare_index, value) { return } } if x.ReceivedTimestamp != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedTimestamp) - if !f(fd_ValidatorEncryptedKeyShare_received_timestamp, value) { + if !f(fd_ValidatorEncryptedKeyshare_received_timestamp, value) { return } } if x.ReceivedBlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedBlockHeight) - if !f(fd_ValidatorEncryptedKeyShare_received_block_height, value) { + if !f(fd_ValidatorEncryptedKeyshare_received_block_height, value) { return } } if x.Identity != "" { value := protoreflect.ValueOfString(x.Identity) - if !f(fd_ValidatorEncryptedKeyShare_identity, value) { + if !f(fd_ValidatorEncryptedKeyshare_identity, value) { return } } @@ -1587,27 +1587,27 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) Range(f func(protoreflect.Fi // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_ValidatorEncryptedKeyShare) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ValidatorEncryptedKeyshare) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.ValidatorEncryptedKeyShare.validator": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.validator": return x.Validator != "" - case "fairyring.keyshare.ValidatorEncryptedKeyShare.requester": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.requester": return x.Requester != "" - case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share": - return x.KeyShare != "" - case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share_index": - return x.KeyShareIndex != uint64(0) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_timestamp": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.keyshare": + return x.Keyshare != "" + case "fairyring.keyshare.ValidatorEncryptedKeyshare.keyshare_index": + return x.KeyshareIndex != uint64(0) + case "fairyring.keyshare.ValidatorEncryptedKeyshare.received_timestamp": return x.ReceivedTimestamp != uint64(0) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_block_height": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.received_block_height": return x.ReceivedBlockHeight != uint64(0) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.identity": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.identity": return x.Identity != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyshare does not contain field %s", fd.FullName())) } } @@ -1617,27 +1617,27 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) Has(fd protoreflect.FieldDes // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ValidatorEncryptedKeyShare) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ValidatorEncryptedKeyshare) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.ValidatorEncryptedKeyShare.validator": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.validator": x.Validator = "" - case "fairyring.keyshare.ValidatorEncryptedKeyShare.requester": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.requester": x.Requester = "" - case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share": - x.KeyShare = "" - case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share_index": - x.KeyShareIndex = uint64(0) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_timestamp": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.keyshare": + x.Keyshare = "" + case "fairyring.keyshare.ValidatorEncryptedKeyshare.keyshare_index": + x.KeyshareIndex = uint64(0) + case "fairyring.keyshare.ValidatorEncryptedKeyshare.received_timestamp": x.ReceivedTimestamp = uint64(0) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_block_height": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.received_block_height": x.ReceivedBlockHeight = uint64(0) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.identity": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.identity": x.Identity = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyshare does not contain field %s", fd.FullName())) } } @@ -1647,34 +1647,34 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) Clear(fd protoreflect.FieldD // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ValidatorEncryptedKeyShare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ValidatorEncryptedKeyshare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.ValidatorEncryptedKeyShare.validator": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.validator": value := x.Validator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.requester": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.requester": value := x.Requester return protoreflect.ValueOfString(value) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share": - value := x.KeyShare + case "fairyring.keyshare.ValidatorEncryptedKeyshare.keyshare": + value := x.Keyshare return protoreflect.ValueOfString(value) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share_index": - value := x.KeyShareIndex + case "fairyring.keyshare.ValidatorEncryptedKeyshare.keyshare_index": + value := x.KeyshareIndex return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_timestamp": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.received_timestamp": value := x.ReceivedTimestamp return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_block_height": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.received_block_height": value := x.ReceivedBlockHeight return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.identity": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.identity": value := x.Identity return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyShare does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyshare does not contain field %s", descriptor.FullName())) } } @@ -1688,27 +1688,27 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) Get(descriptor protoreflect. // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ValidatorEncryptedKeyShare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ValidatorEncryptedKeyshare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.ValidatorEncryptedKeyShare.validator": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.validator": x.Validator = value.Interface().(string) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.requester": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.requester": x.Requester = value.Interface().(string) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share": - x.KeyShare = value.Interface().(string) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share_index": - x.KeyShareIndex = value.Uint() - case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_timestamp": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.keyshare": + x.Keyshare = value.Interface().(string) + case "fairyring.keyshare.ValidatorEncryptedKeyshare.keyshare_index": + x.KeyshareIndex = value.Uint() + case "fairyring.keyshare.ValidatorEncryptedKeyshare.received_timestamp": x.ReceivedTimestamp = value.Uint() - case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_block_height": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.received_block_height": x.ReceivedBlockHeight = value.Uint() - case "fairyring.keyshare.ValidatorEncryptedKeyShare.identity": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.identity": x.Identity = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyshare does not contain field %s", fd.FullName())) } } @@ -1722,64 +1722,64 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) Set(fd protoreflect.FieldDes // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ValidatorEncryptedKeyShare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ValidatorEncryptedKeyshare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.ValidatorEncryptedKeyShare.validator": - panic(fmt.Errorf("field validator of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.requester": - panic(fmt.Errorf("field requester of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share": - panic(fmt.Errorf("field key_share of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share_index": - panic(fmt.Errorf("field key_share_index of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_timestamp": - panic(fmt.Errorf("field received_timestamp of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_block_height": - panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.identity": - panic(fmt.Errorf("field identity of message fairyring.keyshare.ValidatorEncryptedKeyShare is not mutable")) + case "fairyring.keyshare.ValidatorEncryptedKeyshare.validator": + panic(fmt.Errorf("field validator of message fairyring.keyshare.ValidatorEncryptedKeyshare is not mutable")) + case "fairyring.keyshare.ValidatorEncryptedKeyshare.requester": + panic(fmt.Errorf("field requester of message fairyring.keyshare.ValidatorEncryptedKeyshare is not mutable")) + case "fairyring.keyshare.ValidatorEncryptedKeyshare.keyshare": + panic(fmt.Errorf("field keyshare of message fairyring.keyshare.ValidatorEncryptedKeyshare is not mutable")) + case "fairyring.keyshare.ValidatorEncryptedKeyshare.keyshare_index": + panic(fmt.Errorf("field keyshare_index of message fairyring.keyshare.ValidatorEncryptedKeyshare is not mutable")) + case "fairyring.keyshare.ValidatorEncryptedKeyshare.received_timestamp": + panic(fmt.Errorf("field received_timestamp of message fairyring.keyshare.ValidatorEncryptedKeyshare is not mutable")) + case "fairyring.keyshare.ValidatorEncryptedKeyshare.received_block_height": + panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.ValidatorEncryptedKeyshare is not mutable")) + case "fairyring.keyshare.ValidatorEncryptedKeyshare.identity": + panic(fmt.Errorf("field identity of message fairyring.keyshare.ValidatorEncryptedKeyshare is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyshare does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ValidatorEncryptedKeyShare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ValidatorEncryptedKeyshare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.ValidatorEncryptedKeyShare.validator": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.validator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.ValidatorEncryptedKeyShare.requester": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.requester": return protoreflect.ValueOfString("") - case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.keyshare": return protoreflect.ValueOfString("") - case "fairyring.keyshare.ValidatorEncryptedKeyShare.key_share_index": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.keyshare_index": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_timestamp": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.received_timestamp": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.received_block_height": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.received_block_height": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.ValidatorEncryptedKeyShare.identity": + case "fairyring.keyshare.ValidatorEncryptedKeyshare.identity": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ValidatorEncryptedKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.ValidatorEncryptedKeyshare does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ValidatorEncryptedKeyShare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ValidatorEncryptedKeyshare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.ValidatorEncryptedKeyShare", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.ValidatorEncryptedKeyshare", d.FullName())) } panic("unreachable") } @@ -1787,7 +1787,7 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) WhichOneof(d protoreflect.On // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ValidatorEncryptedKeyShare) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ValidatorEncryptedKeyshare) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1798,7 +1798,7 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) GetUnknown() protoreflect.Ra // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ValidatorEncryptedKeyShare) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ValidatorEncryptedKeyshare) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1810,7 +1810,7 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) SetUnknown(fields protorefle // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_ValidatorEncryptedKeyShare) IsValid() bool { +func (x *fastReflection_ValidatorEncryptedKeyshare) IsValid() bool { return x != nil } @@ -1820,9 +1820,9 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_ValidatorEncryptedKeyShare) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ValidatorEncryptedKeyshare) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ValidatorEncryptedKeyShare) + x := input.Message.Interface().(*ValidatorEncryptedKeyshare) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1842,12 +1842,12 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) ProtoMethods() *protoiface.M if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.KeyShare) + l = len(x.Keyshare) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.KeyShareIndex != 0 { - n += 1 + runtime.Sov(uint64(x.KeyShareIndex)) + if x.KeyshareIndex != 0 { + n += 1 + runtime.Sov(uint64(x.KeyshareIndex)) } if x.ReceivedTimestamp != 0 { n += 1 + runtime.Sov(uint64(x.ReceivedTimestamp)) @@ -1869,7 +1869,7 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) ProtoMethods() *protoiface.M } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ValidatorEncryptedKeyShare) + x := input.Message.Interface().(*ValidatorEncryptedKeyshare) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1905,15 +1905,15 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) ProtoMethods() *protoiface.M i-- dAtA[i] = 0x28 } - if x.KeyShareIndex != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyShareIndex)) + if x.KeyshareIndex != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyshareIndex)) i-- dAtA[i] = 0x20 } - if len(x.KeyShare) > 0 { - i -= len(x.KeyShare) - copy(dAtA[i:], x.KeyShare) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.KeyShare))) + if len(x.Keyshare) > 0 { + i -= len(x.Keyshare) + copy(dAtA[i:], x.Keyshare) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Keyshare))) i-- dAtA[i] = 0x1a } @@ -1942,7 +1942,7 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) ProtoMethods() *protoiface.M }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ValidatorEncryptedKeyShare) + x := input.Message.Interface().(*ValidatorEncryptedKeyshare) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1974,10 +1974,10 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) ProtoMethods() *protoiface.M fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValidatorEncryptedKeyShare: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValidatorEncryptedKeyshare: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValidatorEncryptedKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValidatorEncryptedKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2046,7 +2046,7 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) ProtoMethods() *protoiface.M iNdEx = postIndex case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Keyshare", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2074,13 +2074,13 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) ProtoMethods() *protoiface.M if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.KeyShare = string(dAtA[iNdEx:postIndex]) + x.Keyshare = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyshareIndex", wireType) } - x.KeyShareIndex = 0 + x.KeyshareIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -2090,7 +2090,7 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) ProtoMethods() *protoiface.M } b := dAtA[iNdEx] iNdEx++ - x.KeyShareIndex |= uint64(b&0x7F) << shift + x.KeyshareIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2204,7 +2204,7 @@ func (x *fastReflection_ValidatorEncryptedKeyShare) ProtoMethods() *protoiface.M // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: fairyring/keyshare/key_share.proto +// source: fairyring/keyshare/keyshare.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -2213,86 +2213,86 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// KeyShare defines the structure for submitting +// Keyshare defines the structure for submitting // blockwise keyshares by validators -type KeyShare struct { +type Keyshare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` - KeyShare string `protobuf:"bytes,3,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,4,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + Keyshare string `protobuf:"bytes,3,opt,name=keyshare,proto3" json:"keyshare,omitempty"` + KeyshareIndex uint64 `protobuf:"varint,4,opt,name=keyshare_index,json=keyshareIndex,proto3" json:"keyshare_index,omitempty"` ReceivedTimestamp uint64 `protobuf:"varint,5,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` } -func (x *KeyShare) Reset() { - *x = KeyShare{} +func (x *Keyshare) Reset() { + *x = Keyshare{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_keyshare_key_share_proto_msgTypes[0] + mi := &file_fairyring_keyshare_keyshare_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *KeyShare) String() string { +func (x *Keyshare) String() string { return protoimpl.X.MessageStringOf(x) } -func (*KeyShare) ProtoMessage() {} +func (*Keyshare) ProtoMessage() {} -// Deprecated: Use KeyShare.ProtoReflect.Descriptor instead. -func (*KeyShare) Descriptor() ([]byte, []int) { - return file_fairyring_keyshare_key_share_proto_rawDescGZIP(), []int{0} +// Deprecated: Use Keyshare.ProtoReflect.Descriptor instead. +func (*Keyshare) Descriptor() ([]byte, []int) { + return file_fairyring_keyshare_keyshare_proto_rawDescGZIP(), []int{0} } -func (x *KeyShare) GetValidator() string { +func (x *Keyshare) GetValidator() string { if x != nil { return x.Validator } return "" } -func (x *KeyShare) GetBlockHeight() uint64 { +func (x *Keyshare) GetBlockHeight() uint64 { if x != nil { return x.BlockHeight } return 0 } -func (x *KeyShare) GetKeyShare() string { +func (x *Keyshare) GetKeyshare() string { if x != nil { - return x.KeyShare + return x.Keyshare } return "" } -func (x *KeyShare) GetKeyShareIndex() uint64 { +func (x *Keyshare) GetKeyshareIndex() uint64 { if x != nil { - return x.KeyShareIndex + return x.KeyshareIndex } return 0 } -func (x *KeyShare) GetReceivedTimestamp() uint64 { +func (x *Keyshare) GetReceivedTimestamp() uint64 { if x != nil { return x.ReceivedTimestamp } return 0 } -func (x *KeyShare) GetReceivedBlockHeight() uint64 { +func (x *Keyshare) GetReceivedBlockHeight() uint64 { if x != nil { return x.ReceivedBlockHeight } return 0 } -// GeneralKeyShare defines the structure for submitting +// GeneralKeyshare defines the structure for submitting // general keyshares by validators -type GeneralKeyShare struct { +type GeneralKeyshare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -2300,256 +2300,256 @@ type GeneralKeyShare struct { Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` IdValue string `protobuf:"bytes,3,opt,name=id_value,json=idValue,proto3" json:"id_value,omitempty"` - KeyShare string `protobuf:"bytes,4,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,5,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + Keyshare string `protobuf:"bytes,4,opt,name=keyshare,proto3" json:"keyshare,omitempty"` + KeyshareIndex uint64 `protobuf:"varint,5,opt,name=keyshare_index,json=keyshareIndex,proto3" json:"keyshare_index,omitempty"` ReceivedTimestamp uint64 `protobuf:"varint,6,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` ReceivedBlockHeight uint64 `protobuf:"varint,7,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` } -func (x *GeneralKeyShare) Reset() { - *x = GeneralKeyShare{} +func (x *GeneralKeyshare) Reset() { + *x = GeneralKeyshare{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_keyshare_key_share_proto_msgTypes[1] + mi := &file_fairyring_keyshare_keyshare_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *GeneralKeyShare) String() string { +func (x *GeneralKeyshare) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GeneralKeyShare) ProtoMessage() {} +func (*GeneralKeyshare) ProtoMessage() {} -// Deprecated: Use GeneralKeyShare.ProtoReflect.Descriptor instead. -func (*GeneralKeyShare) Descriptor() ([]byte, []int) { - return file_fairyring_keyshare_key_share_proto_rawDescGZIP(), []int{1} +// Deprecated: Use GeneralKeyshare.ProtoReflect.Descriptor instead. +func (*GeneralKeyshare) Descriptor() ([]byte, []int) { + return file_fairyring_keyshare_keyshare_proto_rawDescGZIP(), []int{1} } -func (x *GeneralKeyShare) GetValidator() string { +func (x *GeneralKeyshare) GetValidator() string { if x != nil { return x.Validator } return "" } -func (x *GeneralKeyShare) GetIdType() string { +func (x *GeneralKeyshare) GetIdType() string { if x != nil { return x.IdType } return "" } -func (x *GeneralKeyShare) GetIdValue() string { +func (x *GeneralKeyshare) GetIdValue() string { if x != nil { return x.IdValue } return "" } -func (x *GeneralKeyShare) GetKeyShare() string { +func (x *GeneralKeyshare) GetKeyshare() string { if x != nil { - return x.KeyShare + return x.Keyshare } return "" } -func (x *GeneralKeyShare) GetKeyShareIndex() uint64 { +func (x *GeneralKeyshare) GetKeyshareIndex() uint64 { if x != nil { - return x.KeyShareIndex + return x.KeyshareIndex } return 0 } -func (x *GeneralKeyShare) GetReceivedTimestamp() uint64 { +func (x *GeneralKeyshare) GetReceivedTimestamp() uint64 { if x != nil { return x.ReceivedTimestamp } return 0 } -func (x *GeneralKeyShare) GetReceivedBlockHeight() uint64 { +func (x *GeneralKeyshare) GetReceivedBlockHeight() uint64 { if x != nil { return x.ReceivedBlockHeight } return 0 } -// ValidatorEncryptedKeyShare defines the structure for +// ValidatorEncryptedKeyshare defines the structure for // submitting encrypted keyshares by validators -type ValidatorEncryptedKeyShare struct { +type ValidatorEncryptedKeyshare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` Requester string `protobuf:"bytes,2,opt,name=requester,proto3" json:"requester,omitempty"` - KeyShare string `protobuf:"bytes,3,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,4,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + Keyshare string `protobuf:"bytes,3,opt,name=keyshare,proto3" json:"keyshare,omitempty"` + KeyshareIndex uint64 `protobuf:"varint,4,opt,name=keyshare_index,json=keyshareIndex,proto3" json:"keyshare_index,omitempty"` ReceivedTimestamp uint64 `protobuf:"varint,5,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` Identity string `protobuf:"bytes,7,opt,name=identity,proto3" json:"identity,omitempty"` } -func (x *ValidatorEncryptedKeyShare) Reset() { - *x = ValidatorEncryptedKeyShare{} +func (x *ValidatorEncryptedKeyshare) Reset() { + *x = ValidatorEncryptedKeyshare{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_keyshare_key_share_proto_msgTypes[2] + mi := &file_fairyring_keyshare_keyshare_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ValidatorEncryptedKeyShare) String() string { +func (x *ValidatorEncryptedKeyshare) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ValidatorEncryptedKeyShare) ProtoMessage() {} +func (*ValidatorEncryptedKeyshare) ProtoMessage() {} -// Deprecated: Use ValidatorEncryptedKeyShare.ProtoReflect.Descriptor instead. -func (*ValidatorEncryptedKeyShare) Descriptor() ([]byte, []int) { - return file_fairyring_keyshare_key_share_proto_rawDescGZIP(), []int{2} +// Deprecated: Use ValidatorEncryptedKeyshare.ProtoReflect.Descriptor instead. +func (*ValidatorEncryptedKeyshare) Descriptor() ([]byte, []int) { + return file_fairyring_keyshare_keyshare_proto_rawDescGZIP(), []int{2} } -func (x *ValidatorEncryptedKeyShare) GetValidator() string { +func (x *ValidatorEncryptedKeyshare) GetValidator() string { if x != nil { return x.Validator } return "" } -func (x *ValidatorEncryptedKeyShare) GetRequester() string { +func (x *ValidatorEncryptedKeyshare) GetRequester() string { if x != nil { return x.Requester } return "" } -func (x *ValidatorEncryptedKeyShare) GetKeyShare() string { +func (x *ValidatorEncryptedKeyshare) GetKeyshare() string { if x != nil { - return x.KeyShare + return x.Keyshare } return "" } -func (x *ValidatorEncryptedKeyShare) GetKeyShareIndex() uint64 { +func (x *ValidatorEncryptedKeyshare) GetKeyshareIndex() uint64 { if x != nil { - return x.KeyShareIndex + return x.KeyshareIndex } return 0 } -func (x *ValidatorEncryptedKeyShare) GetReceivedTimestamp() uint64 { +func (x *ValidatorEncryptedKeyshare) GetReceivedTimestamp() uint64 { if x != nil { return x.ReceivedTimestamp } return 0 } -func (x *ValidatorEncryptedKeyShare) GetReceivedBlockHeight() uint64 { +func (x *ValidatorEncryptedKeyshare) GetReceivedBlockHeight() uint64 { if x != nil { return x.ReceivedBlockHeight } return 0 } -func (x *ValidatorEncryptedKeyShare) GetIdentity() string { +func (x *ValidatorEncryptedKeyshare) GetIdentity() string { if x != nil { return x.Identity } return "" } -var File_fairyring_keyshare_key_share_proto protoreflect.FileDescriptor - -var file_fairyring_keyshare_key_share_proto_rawDesc = []byte{ - 0x0a, 0x22, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0xf3, 0x01, 0x0a, 0x08, 0x4b, 0x65, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, - 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2d, 0x0a, 0x12, 0x72, - 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, - 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, - 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, - 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x8b, - 0x02, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, - 0x12, 0x17, 0x0a, 0x07, 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x69, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x64, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, - 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x63, - 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x63, 0x65, - 0x69, 0x76, 0x65, 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, - 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x9c, 0x02, 0x0a, - 0x1a, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, - 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2d, 0x0a, 0x12, - 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, - 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x72, - 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, - 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, - 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x42, 0xb5, 0x01, 0x0a, 0x16, - 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x0d, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, - 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, - 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, - 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +var File_fairyring_keyshare_keyshare_proto protoreflect.FileDescriptor + +var file_fairyring_keyshare_keyshare_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0xf1, 0x01, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x6e, + 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x63, 0x65, 0x69, + 0x76, 0x65, 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x89, 0x02, 0x0a, 0x0f, + 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, + 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x17, 0x0a, + 0x07, 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x69, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x64, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x25, 0x0a, + 0x0e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x9a, 0x02, 0x0a, 0x1a, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x25, + 0x0a, 0x0e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, + 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x42, 0xb5, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, + 0x0d, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( - file_fairyring_keyshare_key_share_proto_rawDescOnce sync.Once - file_fairyring_keyshare_key_share_proto_rawDescData = file_fairyring_keyshare_key_share_proto_rawDesc + file_fairyring_keyshare_keyshare_proto_rawDescOnce sync.Once + file_fairyring_keyshare_keyshare_proto_rawDescData = file_fairyring_keyshare_keyshare_proto_rawDesc ) -func file_fairyring_keyshare_key_share_proto_rawDescGZIP() []byte { - file_fairyring_keyshare_key_share_proto_rawDescOnce.Do(func() { - file_fairyring_keyshare_key_share_proto_rawDescData = protoimpl.X.CompressGZIP(file_fairyring_keyshare_key_share_proto_rawDescData) +func file_fairyring_keyshare_keyshare_proto_rawDescGZIP() []byte { + file_fairyring_keyshare_keyshare_proto_rawDescOnce.Do(func() { + file_fairyring_keyshare_keyshare_proto_rawDescData = protoimpl.X.CompressGZIP(file_fairyring_keyshare_keyshare_proto_rawDescData) }) - return file_fairyring_keyshare_key_share_proto_rawDescData + return file_fairyring_keyshare_keyshare_proto_rawDescData } -var file_fairyring_keyshare_key_share_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_fairyring_keyshare_key_share_proto_goTypes = []interface{}{ - (*KeyShare)(nil), // 0: fairyring.keyshare.KeyShare - (*GeneralKeyShare)(nil), // 1: fairyring.keyshare.GeneralKeyShare - (*ValidatorEncryptedKeyShare)(nil), // 2: fairyring.keyshare.ValidatorEncryptedKeyShare +var file_fairyring_keyshare_keyshare_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_fairyring_keyshare_keyshare_proto_goTypes = []interface{}{ + (*Keyshare)(nil), // 0: fairyring.keyshare.Keyshare + (*GeneralKeyshare)(nil), // 1: fairyring.keyshare.GeneralKeyshare + (*ValidatorEncryptedKeyshare)(nil), // 2: fairyring.keyshare.ValidatorEncryptedKeyshare } -var file_fairyring_keyshare_key_share_proto_depIdxs = []int32{ +var file_fairyring_keyshare_keyshare_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 @@ -2557,14 +2557,14 @@ var file_fairyring_keyshare_key_share_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_fairyring_keyshare_key_share_proto_init() } -func file_fairyring_keyshare_key_share_proto_init() { - if File_fairyring_keyshare_key_share_proto != nil { +func init() { file_fairyring_keyshare_keyshare_proto_init() } +func file_fairyring_keyshare_keyshare_proto_init() { + if File_fairyring_keyshare_keyshare_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_fairyring_keyshare_key_share_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KeyShare); i { + file_fairyring_keyshare_keyshare_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Keyshare); i { case 0: return &v.state case 1: @@ -2575,8 +2575,8 @@ func file_fairyring_keyshare_key_share_proto_init() { return nil } } - file_fairyring_keyshare_key_share_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GeneralKeyShare); i { + file_fairyring_keyshare_keyshare_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GeneralKeyshare); i { case 0: return &v.state case 1: @@ -2587,8 +2587,8 @@ func file_fairyring_keyshare_key_share_proto_init() { return nil } } - file_fairyring_keyshare_key_share_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidatorEncryptedKeyShare); i { + file_fairyring_keyshare_keyshare_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidatorEncryptedKeyshare); i { case 0: return &v.state case 1: @@ -2604,18 +2604,18 @@ func file_fairyring_keyshare_key_share_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fairyring_keyshare_key_share_proto_rawDesc, + RawDescriptor: file_fairyring_keyshare_keyshare_proto_rawDesc, NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_fairyring_keyshare_key_share_proto_goTypes, - DependencyIndexes: file_fairyring_keyshare_key_share_proto_depIdxs, - MessageInfos: file_fairyring_keyshare_key_share_proto_msgTypes, + GoTypes: file_fairyring_keyshare_keyshare_proto_goTypes, + DependencyIndexes: file_fairyring_keyshare_keyshare_proto_depIdxs, + MessageInfos: file_fairyring_keyshare_keyshare_proto_msgTypes, }.Build() - File_fairyring_keyshare_key_share_proto = out.File - file_fairyring_keyshare_key_share_proto_rawDesc = nil - file_fairyring_keyshare_key_share_proto_goTypes = nil - file_fairyring_keyshare_key_share_proto_depIdxs = nil + File_fairyring_keyshare_keyshare_proto = out.File + file_fairyring_keyshare_keyshare_proto_rawDesc = nil + file_fairyring_keyshare_keyshare_proto_goTypes = nil + file_fairyring_keyshare_keyshare_proto_depIdxs = nil } diff --git a/api/fairyring/keyshare/packet.pulsar.go b/api/fairyring/keyshare/packet.pulsar.go index 84a50ff1..a86390c4 100644 --- a/api/fairyring/keyshare/packet.pulsar.go +++ b/api/fairyring/keyshare/packet.pulsar.go @@ -2,7 +2,7 @@ package keyshare import ( - common "cosmossdk.io/api/fairyring/common" + common "github.com/Fairblock/fairyring/api/fairyring/common" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" diff --git a/api/fairyring/keyshare/pub_key.pulsar.go b/api/fairyring/keyshare/pubkey.pulsar.go similarity index 81% rename from api/fairyring/keyshare/pub_key.pulsar.go rename to api/fairyring/keyshare/pubkey.pulsar.go index e8c453d4..30277f40 100644 --- a/api/fairyring/keyshare/pub_key.pulsar.go +++ b/api/fairyring/keyshare/pubkey.pulsar.go @@ -13,28 +13,28 @@ import ( ) var ( - md_EncryptedKeyShare protoreflect.MessageDescriptor - fd_EncryptedKeyShare_data protoreflect.FieldDescriptor - fd_EncryptedKeyShare_validator protoreflect.FieldDescriptor + md_EncryptedKeyshare protoreflect.MessageDescriptor + fd_EncryptedKeyshare_data protoreflect.FieldDescriptor + fd_EncryptedKeyshare_validator protoreflect.FieldDescriptor ) func init() { - file_fairyring_keyshare_pub_key_proto_init() - md_EncryptedKeyShare = File_fairyring_keyshare_pub_key_proto.Messages().ByName("EncryptedKeyShare") - fd_EncryptedKeyShare_data = md_EncryptedKeyShare.Fields().ByName("data") - fd_EncryptedKeyShare_validator = md_EncryptedKeyShare.Fields().ByName("validator") + file_fairyring_keyshare_pubkey_proto_init() + md_EncryptedKeyshare = File_fairyring_keyshare_pubkey_proto.Messages().ByName("EncryptedKeyshare") + fd_EncryptedKeyshare_data = md_EncryptedKeyshare.Fields().ByName("data") + fd_EncryptedKeyshare_validator = md_EncryptedKeyshare.Fields().ByName("validator") } -var _ protoreflect.Message = (*fastReflection_EncryptedKeyShare)(nil) +var _ protoreflect.Message = (*fastReflection_EncryptedKeyshare)(nil) -type fastReflection_EncryptedKeyShare EncryptedKeyShare +type fastReflection_EncryptedKeyshare EncryptedKeyshare -func (x *EncryptedKeyShare) ProtoReflect() protoreflect.Message { - return (*fastReflection_EncryptedKeyShare)(x) +func (x *EncryptedKeyshare) ProtoReflect() protoreflect.Message { + return (*fastReflection_EncryptedKeyshare)(x) } -func (x *EncryptedKeyShare) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_keyshare_pub_key_proto_msgTypes[0] +func (x *EncryptedKeyshare) slowProtoReflect() protoreflect.Message { + mi := &file_fairyring_keyshare_pubkey_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -45,43 +45,43 @@ func (x *EncryptedKeyShare) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_EncryptedKeyShare_messageType fastReflection_EncryptedKeyShare_messageType -var _ protoreflect.MessageType = fastReflection_EncryptedKeyShare_messageType{} +var _fastReflection_EncryptedKeyshare_messageType fastReflection_EncryptedKeyshare_messageType +var _ protoreflect.MessageType = fastReflection_EncryptedKeyshare_messageType{} -type fastReflection_EncryptedKeyShare_messageType struct{} +type fastReflection_EncryptedKeyshare_messageType struct{} -func (x fastReflection_EncryptedKeyShare_messageType) Zero() protoreflect.Message { - return (*fastReflection_EncryptedKeyShare)(nil) +func (x fastReflection_EncryptedKeyshare_messageType) Zero() protoreflect.Message { + return (*fastReflection_EncryptedKeyshare)(nil) } -func (x fastReflection_EncryptedKeyShare_messageType) New() protoreflect.Message { - return new(fastReflection_EncryptedKeyShare) +func (x fastReflection_EncryptedKeyshare_messageType) New() protoreflect.Message { + return new(fastReflection_EncryptedKeyshare) } -func (x fastReflection_EncryptedKeyShare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EncryptedKeyShare +func (x fastReflection_EncryptedKeyshare_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EncryptedKeyshare } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_EncryptedKeyShare) Descriptor() protoreflect.MessageDescriptor { - return md_EncryptedKeyShare +func (x *fastReflection_EncryptedKeyshare) Descriptor() protoreflect.MessageDescriptor { + return md_EncryptedKeyshare } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_EncryptedKeyShare) Type() protoreflect.MessageType { - return _fastReflection_EncryptedKeyShare_messageType +func (x *fastReflection_EncryptedKeyshare) Type() protoreflect.MessageType { + return _fastReflection_EncryptedKeyshare_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_EncryptedKeyShare) New() protoreflect.Message { - return new(fastReflection_EncryptedKeyShare) +func (x *fastReflection_EncryptedKeyshare) New() protoreflect.Message { + return new(fastReflection_EncryptedKeyshare) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_EncryptedKeyShare) Interface() protoreflect.ProtoMessage { - return (*EncryptedKeyShare)(x) +func (x *fastReflection_EncryptedKeyshare) Interface() protoreflect.ProtoMessage { + return (*EncryptedKeyshare)(x) } // Range iterates over every populated field in an undefined order, @@ -89,16 +89,16 @@ func (x *fastReflection_EncryptedKeyShare) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_EncryptedKeyShare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_EncryptedKeyshare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Data != "" { value := protoreflect.ValueOfString(x.Data) - if !f(fd_EncryptedKeyShare_data, value) { + if !f(fd_EncryptedKeyshare_data, value) { return } } if x.Validator != "" { value := protoreflect.ValueOfString(x.Validator) - if !f(fd_EncryptedKeyShare_validator, value) { + if !f(fd_EncryptedKeyshare_validator, value) { return } } @@ -115,17 +115,17 @@ func (x *fastReflection_EncryptedKeyShare) Range(f func(protoreflect.FieldDescri // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_EncryptedKeyShare) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_EncryptedKeyshare) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.EncryptedKeyShare.data": + case "fairyring.keyshare.EncryptedKeyshare.data": return x.Data != "" - case "fairyring.keyshare.EncryptedKeyShare.validator": + case "fairyring.keyshare.EncryptedKeyshare.validator": return x.Validator != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeyshare does not contain field %s", fd.FullName())) } } @@ -135,17 +135,17 @@ func (x *fastReflection_EncryptedKeyShare) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EncryptedKeyShare) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_EncryptedKeyshare) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.EncryptedKeyShare.data": + case "fairyring.keyshare.EncryptedKeyshare.data": x.Data = "" - case "fairyring.keyshare.EncryptedKeyShare.validator": + case "fairyring.keyshare.EncryptedKeyshare.validator": x.Validator = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeyshare does not contain field %s", fd.FullName())) } } @@ -155,19 +155,19 @@ func (x *fastReflection_EncryptedKeyShare) Clear(fd protoreflect.FieldDescriptor // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_EncryptedKeyShare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EncryptedKeyshare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.EncryptedKeyShare.data": + case "fairyring.keyshare.EncryptedKeyshare.data": value := x.Data return protoreflect.ValueOfString(value) - case "fairyring.keyshare.EncryptedKeyShare.validator": + case "fairyring.keyshare.EncryptedKeyshare.validator": value := x.Validator return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeyShare does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeyshare does not contain field %s", descriptor.FullName())) } } @@ -181,17 +181,17 @@ func (x *fastReflection_EncryptedKeyShare) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EncryptedKeyShare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_EncryptedKeyshare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.EncryptedKeyShare.data": + case "fairyring.keyshare.EncryptedKeyshare.data": x.Data = value.Interface().(string) - case "fairyring.keyshare.EncryptedKeyShare.validator": + case "fairyring.keyshare.EncryptedKeyshare.validator": x.Validator = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeyshare does not contain field %s", fd.FullName())) } } @@ -205,44 +205,44 @@ func (x *fastReflection_EncryptedKeyShare) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EncryptedKeyShare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EncryptedKeyshare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.EncryptedKeyShare.data": - panic(fmt.Errorf("field data of message fairyring.keyshare.EncryptedKeyShare is not mutable")) - case "fairyring.keyshare.EncryptedKeyShare.validator": - panic(fmt.Errorf("field validator of message fairyring.keyshare.EncryptedKeyShare is not mutable")) + case "fairyring.keyshare.EncryptedKeyshare.data": + panic(fmt.Errorf("field data of message fairyring.keyshare.EncryptedKeyshare is not mutable")) + case "fairyring.keyshare.EncryptedKeyshare.validator": + panic(fmt.Errorf("field validator of message fairyring.keyshare.EncryptedKeyshare is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeyshare does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_EncryptedKeyShare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_EncryptedKeyshare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.EncryptedKeyShare.data": + case "fairyring.keyshare.EncryptedKeyshare.data": return protoreflect.ValueOfString("") - case "fairyring.keyshare.EncryptedKeyShare.validator": + case "fairyring.keyshare.EncryptedKeyshare.validator": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.EncryptedKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.EncryptedKeyshare does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_EncryptedKeyShare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_EncryptedKeyshare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.EncryptedKeyShare", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.EncryptedKeyshare", d.FullName())) } panic("unreachable") } @@ -250,7 +250,7 @@ func (x *fastReflection_EncryptedKeyShare) WhichOneof(d protoreflect.OneofDescri // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_EncryptedKeyShare) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_EncryptedKeyshare) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -261,7 +261,7 @@ func (x *fastReflection_EncryptedKeyShare) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_EncryptedKeyShare) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_EncryptedKeyshare) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -273,7 +273,7 @@ func (x *fastReflection_EncryptedKeyShare) SetUnknown(fields protoreflect.RawFie // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_EncryptedKeyShare) IsValid() bool { +func (x *fastReflection_EncryptedKeyshare) IsValid() bool { return x != nil } @@ -283,9 +283,9 @@ func (x *fastReflection_EncryptedKeyShare) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_EncryptedKeyShare) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_EncryptedKeyshare) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EncryptedKeyShare) + x := input.Message.Interface().(*EncryptedKeyshare) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -315,7 +315,7 @@ func (x *fastReflection_EncryptedKeyShare) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*EncryptedKeyShare) + x := input.Message.Interface().(*EncryptedKeyshare) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -359,7 +359,7 @@ func (x *fastReflection_EncryptedKeyShare) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*EncryptedKeyShare) + x := input.Message.Interface().(*EncryptedKeyshare) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -391,10 +391,10 @@ func (x *fastReflection_EncryptedKeyShare) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EncryptedKeyShare: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EncryptedKeyshare: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EncryptedKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EncryptedKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -499,7 +499,7 @@ func (x *fastReflection_EncryptedKeyShare) ProtoMethods() *protoiface.Methods { var _ protoreflect.List = (*_ActivePubKey_5_list)(nil) type _ActivePubKey_5_list struct { - list *[]*EncryptedKeyShare + list *[]*EncryptedKeyshare } func (x *_ActivePubKey_5_list) Len() int { @@ -515,18 +515,18 @@ func (x *_ActivePubKey_5_list) Get(i int) protoreflect.Value { func (x *_ActivePubKey_5_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*EncryptedKeyShare) + concreteValue := valueUnwrapped.Interface().(*EncryptedKeyshare) (*x.list)[i] = concreteValue } func (x *_ActivePubKey_5_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*EncryptedKeyShare) + concreteValue := valueUnwrapped.Interface().(*EncryptedKeyshare) *x.list = append(*x.list, concreteValue) } func (x *_ActivePubKey_5_list) AppendMutable() protoreflect.Value { - v := new(EncryptedKeyShare) + v := new(EncryptedKeyshare) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -539,7 +539,7 @@ func (x *_ActivePubKey_5_list) Truncate(n int) { } func (x *_ActivePubKey_5_list) NewElement() protoreflect.Value { - v := new(EncryptedKeyShare) + v := new(EncryptedKeyshare) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -553,17 +553,17 @@ var ( fd_ActivePubKey_creator protoreflect.FieldDescriptor fd_ActivePubKey_expiry protoreflect.FieldDescriptor fd_ActivePubKey_number_of_validators protoreflect.FieldDescriptor - fd_ActivePubKey_encrypted_key_shares protoreflect.FieldDescriptor + fd_ActivePubKey_encrypted_keyshares protoreflect.FieldDescriptor ) func init() { - file_fairyring_keyshare_pub_key_proto_init() - md_ActivePubKey = File_fairyring_keyshare_pub_key_proto.Messages().ByName("ActivePubKey") + file_fairyring_keyshare_pubkey_proto_init() + md_ActivePubKey = File_fairyring_keyshare_pubkey_proto.Messages().ByName("ActivePubKey") fd_ActivePubKey_public_key = md_ActivePubKey.Fields().ByName("public_key") fd_ActivePubKey_creator = md_ActivePubKey.Fields().ByName("creator") fd_ActivePubKey_expiry = md_ActivePubKey.Fields().ByName("expiry") fd_ActivePubKey_number_of_validators = md_ActivePubKey.Fields().ByName("number_of_validators") - fd_ActivePubKey_encrypted_key_shares = md_ActivePubKey.Fields().ByName("encrypted_key_shares") + fd_ActivePubKey_encrypted_keyshares = md_ActivePubKey.Fields().ByName("encrypted_keyshares") } var _ protoreflect.Message = (*fastReflection_ActivePubKey)(nil) @@ -575,7 +575,7 @@ func (x *ActivePubKey) ProtoReflect() protoreflect.Message { } func (x *ActivePubKey) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_keyshare_pub_key_proto_msgTypes[1] + mi := &file_fairyring_keyshare_pubkey_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -655,9 +655,9 @@ func (x *fastReflection_ActivePubKey) Range(f func(protoreflect.FieldDescriptor, return } } - if len(x.EncryptedKeyShares) != 0 { - value := protoreflect.ValueOfList(&_ActivePubKey_5_list{list: &x.EncryptedKeyShares}) - if !f(fd_ActivePubKey_encrypted_key_shares, value) { + if len(x.EncryptedKeyshares) != 0 { + value := protoreflect.ValueOfList(&_ActivePubKey_5_list{list: &x.EncryptedKeyshares}) + if !f(fd_ActivePubKey_encrypted_keyshares, value) { return } } @@ -684,8 +684,8 @@ func (x *fastReflection_ActivePubKey) Has(fd protoreflect.FieldDescriptor) bool return x.Expiry != uint64(0) case "fairyring.keyshare.ActivePubKey.number_of_validators": return x.NumberOfValidators != uint64(0) - case "fairyring.keyshare.ActivePubKey.encrypted_key_shares": - return len(x.EncryptedKeyShares) != 0 + case "fairyring.keyshare.ActivePubKey.encrypted_keyshares": + return len(x.EncryptedKeyshares) != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ActivePubKey")) @@ -710,8 +710,8 @@ func (x *fastReflection_ActivePubKey) Clear(fd protoreflect.FieldDescriptor) { x.Expiry = uint64(0) case "fairyring.keyshare.ActivePubKey.number_of_validators": x.NumberOfValidators = uint64(0) - case "fairyring.keyshare.ActivePubKey.encrypted_key_shares": - x.EncryptedKeyShares = nil + case "fairyring.keyshare.ActivePubKey.encrypted_keyshares": + x.EncryptedKeyshares = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ActivePubKey")) @@ -740,11 +740,11 @@ func (x *fastReflection_ActivePubKey) Get(descriptor protoreflect.FieldDescripto case "fairyring.keyshare.ActivePubKey.number_of_validators": value := x.NumberOfValidators return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.ActivePubKey.encrypted_key_shares": - if len(x.EncryptedKeyShares) == 0 { + case "fairyring.keyshare.ActivePubKey.encrypted_keyshares": + if len(x.EncryptedKeyshares) == 0 { return protoreflect.ValueOfList(&_ActivePubKey_5_list{}) } - listValue := &_ActivePubKey_5_list{list: &x.EncryptedKeyShares} + listValue := &_ActivePubKey_5_list{list: &x.EncryptedKeyshares} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { @@ -774,10 +774,10 @@ func (x *fastReflection_ActivePubKey) Set(fd protoreflect.FieldDescriptor, value x.Expiry = value.Uint() case "fairyring.keyshare.ActivePubKey.number_of_validators": x.NumberOfValidators = value.Uint() - case "fairyring.keyshare.ActivePubKey.encrypted_key_shares": + case "fairyring.keyshare.ActivePubKey.encrypted_keyshares": lv := value.List() clv := lv.(*_ActivePubKey_5_list) - x.EncryptedKeyShares = *clv.list + x.EncryptedKeyshares = *clv.list default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ActivePubKey")) @@ -798,11 +798,11 @@ func (x *fastReflection_ActivePubKey) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ActivePubKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.ActivePubKey.encrypted_key_shares": - if x.EncryptedKeyShares == nil { - x.EncryptedKeyShares = []*EncryptedKeyShare{} + case "fairyring.keyshare.ActivePubKey.encrypted_keyshares": + if x.EncryptedKeyshares == nil { + x.EncryptedKeyshares = []*EncryptedKeyshare{} } - value := &_ActivePubKey_5_list{list: &x.EncryptedKeyShares} + value := &_ActivePubKey_5_list{list: &x.EncryptedKeyshares} return protoreflect.ValueOfList(value) case "fairyring.keyshare.ActivePubKey.public_key": panic(fmt.Errorf("field public_key of message fairyring.keyshare.ActivePubKey is not mutable")) @@ -833,8 +833,8 @@ func (x *fastReflection_ActivePubKey) NewField(fd protoreflect.FieldDescriptor) return protoreflect.ValueOfUint64(uint64(0)) case "fairyring.keyshare.ActivePubKey.number_of_validators": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.ActivePubKey.encrypted_key_shares": - list := []*EncryptedKeyShare{} + case "fairyring.keyshare.ActivePubKey.encrypted_keyshares": + list := []*EncryptedKeyshare{} return protoreflect.ValueOfList(&_ActivePubKey_5_list{list: &list}) default: if fd.IsExtension() { @@ -919,8 +919,8 @@ func (x *fastReflection_ActivePubKey) ProtoMethods() *protoiface.Methods { if x.NumberOfValidators != 0 { n += 1 + runtime.Sov(uint64(x.NumberOfValidators)) } - if len(x.EncryptedKeyShares) > 0 { - for _, e := range x.EncryptedKeyShares { + if len(x.EncryptedKeyshares) > 0 { + for _, e := range x.EncryptedKeyshares { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -954,9 +954,9 @@ func (x *fastReflection_ActivePubKey) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.EncryptedKeyShares) > 0 { - for iNdEx := len(x.EncryptedKeyShares) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.EncryptedKeyShares[iNdEx]) + if len(x.EncryptedKeyshares) > 0 { + for iNdEx := len(x.EncryptedKeyshares) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.EncryptedKeyshares[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1147,7 +1147,7 @@ func (x *fastReflection_ActivePubKey) ProtoMethods() *protoiface.Methods { } case 5: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyShares", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyshares", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1174,8 +1174,8 @@ func (x *fastReflection_ActivePubKey) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.EncryptedKeyShares = append(x.EncryptedKeyShares, &EncryptedKeyShare{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EncryptedKeyShares[len(x.EncryptedKeyShares)-1]); err != nil { + x.EncryptedKeyshares = append(x.EncryptedKeyshares, &EncryptedKeyshare{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EncryptedKeyshares[len(x.EncryptedKeyshares)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -1217,7 +1217,7 @@ func (x *fastReflection_ActivePubKey) ProtoMethods() *protoiface.Methods { var _ protoreflect.List = (*_QueuedPubKey_5_list)(nil) type _QueuedPubKey_5_list struct { - list *[]*EncryptedKeyShare + list *[]*EncryptedKeyshare } func (x *_QueuedPubKey_5_list) Len() int { @@ -1233,18 +1233,18 @@ func (x *_QueuedPubKey_5_list) Get(i int) protoreflect.Value { func (x *_QueuedPubKey_5_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*EncryptedKeyShare) + concreteValue := valueUnwrapped.Interface().(*EncryptedKeyshare) (*x.list)[i] = concreteValue } func (x *_QueuedPubKey_5_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*EncryptedKeyShare) + concreteValue := valueUnwrapped.Interface().(*EncryptedKeyshare) *x.list = append(*x.list, concreteValue) } func (x *_QueuedPubKey_5_list) AppendMutable() protoreflect.Value { - v := new(EncryptedKeyShare) + v := new(EncryptedKeyshare) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -1257,7 +1257,7 @@ func (x *_QueuedPubKey_5_list) Truncate(n int) { } func (x *_QueuedPubKey_5_list) NewElement() protoreflect.Value { - v := new(EncryptedKeyShare) + v := new(EncryptedKeyshare) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -1271,17 +1271,17 @@ var ( fd_QueuedPubKey_creator protoreflect.FieldDescriptor fd_QueuedPubKey_expiry protoreflect.FieldDescriptor fd_QueuedPubKey_number_of_validators protoreflect.FieldDescriptor - fd_QueuedPubKey_encrypted_key_shares protoreflect.FieldDescriptor + fd_QueuedPubKey_encrypted_keyshares protoreflect.FieldDescriptor ) func init() { - file_fairyring_keyshare_pub_key_proto_init() - md_QueuedPubKey = File_fairyring_keyshare_pub_key_proto.Messages().ByName("QueuedPubKey") + file_fairyring_keyshare_pubkey_proto_init() + md_QueuedPubKey = File_fairyring_keyshare_pubkey_proto.Messages().ByName("QueuedPubKey") fd_QueuedPubKey_public_key = md_QueuedPubKey.Fields().ByName("public_key") fd_QueuedPubKey_creator = md_QueuedPubKey.Fields().ByName("creator") fd_QueuedPubKey_expiry = md_QueuedPubKey.Fields().ByName("expiry") fd_QueuedPubKey_number_of_validators = md_QueuedPubKey.Fields().ByName("number_of_validators") - fd_QueuedPubKey_encrypted_key_shares = md_QueuedPubKey.Fields().ByName("encrypted_key_shares") + fd_QueuedPubKey_encrypted_keyshares = md_QueuedPubKey.Fields().ByName("encrypted_keyshares") } var _ protoreflect.Message = (*fastReflection_QueuedPubKey)(nil) @@ -1293,7 +1293,7 @@ func (x *QueuedPubKey) ProtoReflect() protoreflect.Message { } func (x *QueuedPubKey) slowProtoReflect() protoreflect.Message { - mi := &file_fairyring_keyshare_pub_key_proto_msgTypes[2] + mi := &file_fairyring_keyshare_pubkey_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1373,9 +1373,9 @@ func (x *fastReflection_QueuedPubKey) Range(f func(protoreflect.FieldDescriptor, return } } - if len(x.EncryptedKeyShares) != 0 { - value := protoreflect.ValueOfList(&_QueuedPubKey_5_list{list: &x.EncryptedKeyShares}) - if !f(fd_QueuedPubKey_encrypted_key_shares, value) { + if len(x.EncryptedKeyshares) != 0 { + value := protoreflect.ValueOfList(&_QueuedPubKey_5_list{list: &x.EncryptedKeyshares}) + if !f(fd_QueuedPubKey_encrypted_keyshares, value) { return } } @@ -1402,8 +1402,8 @@ func (x *fastReflection_QueuedPubKey) Has(fd protoreflect.FieldDescriptor) bool return x.Expiry != uint64(0) case "fairyring.keyshare.QueuedPubKey.number_of_validators": return x.NumberOfValidators != uint64(0) - case "fairyring.keyshare.QueuedPubKey.encrypted_key_shares": - return len(x.EncryptedKeyShares) != 0 + case "fairyring.keyshare.QueuedPubKey.encrypted_keyshares": + return len(x.EncryptedKeyshares) != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueuedPubKey")) @@ -1428,8 +1428,8 @@ func (x *fastReflection_QueuedPubKey) Clear(fd protoreflect.FieldDescriptor) { x.Expiry = uint64(0) case "fairyring.keyshare.QueuedPubKey.number_of_validators": x.NumberOfValidators = uint64(0) - case "fairyring.keyshare.QueuedPubKey.encrypted_key_shares": - x.EncryptedKeyShares = nil + case "fairyring.keyshare.QueuedPubKey.encrypted_keyshares": + x.EncryptedKeyshares = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueuedPubKey")) @@ -1458,11 +1458,11 @@ func (x *fastReflection_QueuedPubKey) Get(descriptor protoreflect.FieldDescripto case "fairyring.keyshare.QueuedPubKey.number_of_validators": value := x.NumberOfValidators return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.QueuedPubKey.encrypted_key_shares": - if len(x.EncryptedKeyShares) == 0 { + case "fairyring.keyshare.QueuedPubKey.encrypted_keyshares": + if len(x.EncryptedKeyshares) == 0 { return protoreflect.ValueOfList(&_QueuedPubKey_5_list{}) } - listValue := &_QueuedPubKey_5_list{list: &x.EncryptedKeyShares} + listValue := &_QueuedPubKey_5_list{list: &x.EncryptedKeyshares} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { @@ -1492,10 +1492,10 @@ func (x *fastReflection_QueuedPubKey) Set(fd protoreflect.FieldDescriptor, value x.Expiry = value.Uint() case "fairyring.keyshare.QueuedPubKey.number_of_validators": x.NumberOfValidators = value.Uint() - case "fairyring.keyshare.QueuedPubKey.encrypted_key_shares": + case "fairyring.keyshare.QueuedPubKey.encrypted_keyshares": lv := value.List() clv := lv.(*_QueuedPubKey_5_list) - x.EncryptedKeyShares = *clv.list + x.EncryptedKeyshares = *clv.list default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueuedPubKey")) @@ -1516,11 +1516,11 @@ func (x *fastReflection_QueuedPubKey) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_QueuedPubKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueuedPubKey.encrypted_key_shares": - if x.EncryptedKeyShares == nil { - x.EncryptedKeyShares = []*EncryptedKeyShare{} + case "fairyring.keyshare.QueuedPubKey.encrypted_keyshares": + if x.EncryptedKeyshares == nil { + x.EncryptedKeyshares = []*EncryptedKeyshare{} } - value := &_QueuedPubKey_5_list{list: &x.EncryptedKeyShares} + value := &_QueuedPubKey_5_list{list: &x.EncryptedKeyshares} return protoreflect.ValueOfList(value) case "fairyring.keyshare.QueuedPubKey.public_key": panic(fmt.Errorf("field public_key of message fairyring.keyshare.QueuedPubKey is not mutable")) @@ -1551,8 +1551,8 @@ func (x *fastReflection_QueuedPubKey) NewField(fd protoreflect.FieldDescriptor) return protoreflect.ValueOfUint64(uint64(0)) case "fairyring.keyshare.QueuedPubKey.number_of_validators": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.QueuedPubKey.encrypted_key_shares": - list := []*EncryptedKeyShare{} + case "fairyring.keyshare.QueuedPubKey.encrypted_keyshares": + list := []*EncryptedKeyshare{} return protoreflect.ValueOfList(&_QueuedPubKey_5_list{list: &list}) default: if fd.IsExtension() { @@ -1637,8 +1637,8 @@ func (x *fastReflection_QueuedPubKey) ProtoMethods() *protoiface.Methods { if x.NumberOfValidators != 0 { n += 1 + runtime.Sov(uint64(x.NumberOfValidators)) } - if len(x.EncryptedKeyShares) > 0 { - for _, e := range x.EncryptedKeyShares { + if len(x.EncryptedKeyshares) > 0 { + for _, e := range x.EncryptedKeyshares { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -1672,9 +1672,9 @@ func (x *fastReflection_QueuedPubKey) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.EncryptedKeyShares) > 0 { - for iNdEx := len(x.EncryptedKeyShares) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.EncryptedKeyShares[iNdEx]) + if len(x.EncryptedKeyshares) > 0 { + for iNdEx := len(x.EncryptedKeyshares) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.EncryptedKeyshares[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1865,7 +1865,7 @@ func (x *fastReflection_QueuedPubKey) ProtoMethods() *protoiface.Methods { } case 5: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyShares", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyshares", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1892,8 +1892,8 @@ func (x *fastReflection_QueuedPubKey) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.EncryptedKeyShares = append(x.EncryptedKeyShares, &EncryptedKeyShare{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EncryptedKeyShares[len(x.EncryptedKeyShares)-1]); err != nil { + x.EncryptedKeyshares = append(x.EncryptedKeyshares, &EncryptedKeyshare{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EncryptedKeyshares[len(x.EncryptedKeyshares)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -1936,7 +1936,7 @@ func (x *fastReflection_QueuedPubKey) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: fairyring/keyshare/pub_key.proto +// source: fairyring/keyshare/pubkey.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -1945,9 +1945,9 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// EncryptedKeyShare defines the structure for storing -// blockwise keyshares submitted by validators -type EncryptedKeyShare struct { +// EncryptedKeyshare defines the structure for storing +// the keyshare of the master secret key distributed to the validators +type EncryptedKeyshare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1956,34 +1956,34 @@ type EncryptedKeyShare struct { Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"` } -func (x *EncryptedKeyShare) Reset() { - *x = EncryptedKeyShare{} +func (x *EncryptedKeyshare) Reset() { + *x = EncryptedKeyshare{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_keyshare_pub_key_proto_msgTypes[0] + mi := &file_fairyring_keyshare_pubkey_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EncryptedKeyShare) String() string { +func (x *EncryptedKeyshare) String() string { return protoimpl.X.MessageStringOf(x) } -func (*EncryptedKeyShare) ProtoMessage() {} +func (*EncryptedKeyshare) ProtoMessage() {} -// Deprecated: Use EncryptedKeyShare.ProtoReflect.Descriptor instead. -func (*EncryptedKeyShare) Descriptor() ([]byte, []int) { - return file_fairyring_keyshare_pub_key_proto_rawDescGZIP(), []int{0} +// Deprecated: Use EncryptedKeyshare.ProtoReflect.Descriptor instead. +func (*EncryptedKeyshare) Descriptor() ([]byte, []int) { + return file_fairyring_keyshare_pubkey_proto_rawDescGZIP(), []int{0} } -func (x *EncryptedKeyShare) GetData() string { +func (x *EncryptedKeyshare) GetData() string { if x != nil { return x.Data } return "" } -func (x *EncryptedKeyShare) GetValidator() string { +func (x *EncryptedKeyshare) GetValidator() string { if x != nil { return x.Validator } @@ -2000,13 +2000,13 @@ type ActivePubKey struct { Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` Expiry uint64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` NumberOfValidators uint64 `protobuf:"varint,4,opt,name=number_of_validators,json=numberOfValidators,proto3" json:"number_of_validators,omitempty"` - EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encrypted_key_shares,json=encryptedKeyShares,proto3" json:"encrypted_key_shares,omitempty"` + EncryptedKeyshares []*EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` } func (x *ActivePubKey) Reset() { *x = ActivePubKey{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_keyshare_pub_key_proto_msgTypes[1] + mi := &file_fairyring_keyshare_pubkey_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2020,7 +2020,7 @@ func (*ActivePubKey) ProtoMessage() {} // Deprecated: Use ActivePubKey.ProtoReflect.Descriptor instead. func (*ActivePubKey) Descriptor() ([]byte, []int) { - return file_fairyring_keyshare_pub_key_proto_rawDescGZIP(), []int{1} + return file_fairyring_keyshare_pubkey_proto_rawDescGZIP(), []int{1} } func (x *ActivePubKey) GetPublicKey() string { @@ -2051,9 +2051,9 @@ func (x *ActivePubKey) GetNumberOfValidators() uint64 { return 0 } -func (x *ActivePubKey) GetEncryptedKeyShares() []*EncryptedKeyShare { +func (x *ActivePubKey) GetEncryptedKeyshares() []*EncryptedKeyshare { if x != nil { - return x.EncryptedKeyShares + return x.EncryptedKeyshares } return nil } @@ -2068,13 +2068,13 @@ type QueuedPubKey struct { Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` Expiry uint64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` NumberOfValidators uint64 `protobuf:"varint,4,opt,name=number_of_validators,json=numberOfValidators,proto3" json:"number_of_validators,omitempty"` - EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encrypted_key_shares,json=encryptedKeyShares,proto3" json:"encrypted_key_shares,omitempty"` + EncryptedKeyshares []*EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` } func (x *QueuedPubKey) Reset() { *x = QueuedPubKey{} if protoimpl.UnsafeEnabled { - mi := &file_fairyring_keyshare_pub_key_proto_msgTypes[2] + mi := &file_fairyring_keyshare_pubkey_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2088,7 +2088,7 @@ func (*QueuedPubKey) ProtoMessage() {} // Deprecated: Use QueuedPubKey.ProtoReflect.Descriptor instead. func (*QueuedPubKey) Descriptor() ([]byte, []int) { - return file_fairyring_keyshare_pub_key_proto_rawDescGZIP(), []int{2} + return file_fairyring_keyshare_pubkey_proto_rawDescGZIP(), []int{2} } func (x *QueuedPubKey) GetPublicKey() string { @@ -2119,89 +2119,89 @@ func (x *QueuedPubKey) GetNumberOfValidators() uint64 { return 0 } -func (x *QueuedPubKey) GetEncryptedKeyShares() []*EncryptedKeyShare { +func (x *QueuedPubKey) GetEncryptedKeyshares() []*EncryptedKeyshare { if x != nil { - return x.EncryptedKeyShares + return x.EncryptedKeyshares } return nil } -var File_fairyring_keyshare_pub_key_proto protoreflect.FileDescriptor - -var file_fairyring_keyshare_pub_key_proto_rawDesc = []byte{ - 0x0a, 0x20, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x12, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x45, 0x0a, 0x11, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xea, 0x01, - 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 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, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, - 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, - 0x30, 0x0a, 0x14, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x6e, - 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, - 0x73, 0x12, 0x57, 0x0a, 0x14, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, - 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, - 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, - 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0xea, 0x01, 0x0a, 0x0c, 0x51, - 0x75, 0x65, 0x75, 0x65, 0x64, 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, 0x09, 0x52, - 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x30, 0x0a, 0x14, - 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x6e, 0x75, 0x6d, 0x62, - 0x65, 0x72, 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x57, - 0x0a, 0x14, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, - 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x42, 0xb3, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, +var File_fairyring_keyshare_pubkey_proto protoreflect.FileDescriptor + +var file_fairyring_keyshare_pubkey_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x12, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x45, 0x0a, 0x11, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1c, + 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xe9, 0x01, 0x0a, + 0x0c, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 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, + 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x30, + 0x0a, 0x14, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x6e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, + 0x12, 0x56, 0x0a, 0x13, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x42, 0x0b, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0xe9, 0x01, 0x0a, 0x0c, 0x51, 0x75, 0x65, + 0x75, 0x65, 0x64, 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, 0x09, 0x52, 0x09, 0x70, + 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x30, 0x0a, 0x14, 0x6e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x56, 0x0a, 0x13, + 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x45, + 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x73, 0x42, 0xb3, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, + 0x0b, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, + 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, + 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( - file_fairyring_keyshare_pub_key_proto_rawDescOnce sync.Once - file_fairyring_keyshare_pub_key_proto_rawDescData = file_fairyring_keyshare_pub_key_proto_rawDesc + file_fairyring_keyshare_pubkey_proto_rawDescOnce sync.Once + file_fairyring_keyshare_pubkey_proto_rawDescData = file_fairyring_keyshare_pubkey_proto_rawDesc ) -func file_fairyring_keyshare_pub_key_proto_rawDescGZIP() []byte { - file_fairyring_keyshare_pub_key_proto_rawDescOnce.Do(func() { - file_fairyring_keyshare_pub_key_proto_rawDescData = protoimpl.X.CompressGZIP(file_fairyring_keyshare_pub_key_proto_rawDescData) +func file_fairyring_keyshare_pubkey_proto_rawDescGZIP() []byte { + file_fairyring_keyshare_pubkey_proto_rawDescOnce.Do(func() { + file_fairyring_keyshare_pubkey_proto_rawDescData = protoimpl.X.CompressGZIP(file_fairyring_keyshare_pubkey_proto_rawDescData) }) - return file_fairyring_keyshare_pub_key_proto_rawDescData + return file_fairyring_keyshare_pubkey_proto_rawDescData } -var file_fairyring_keyshare_pub_key_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_fairyring_keyshare_pub_key_proto_goTypes = []interface{}{ - (*EncryptedKeyShare)(nil), // 0: fairyring.keyshare.EncryptedKeyShare +var file_fairyring_keyshare_pubkey_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_fairyring_keyshare_pubkey_proto_goTypes = []interface{}{ + (*EncryptedKeyshare)(nil), // 0: fairyring.keyshare.EncryptedKeyshare (*ActivePubKey)(nil), // 1: fairyring.keyshare.ActivePubKey (*QueuedPubKey)(nil), // 2: fairyring.keyshare.QueuedPubKey } -var file_fairyring_keyshare_pub_key_proto_depIdxs = []int32{ - 0, // 0: fairyring.keyshare.ActivePubKey.encrypted_key_shares:type_name -> fairyring.keyshare.EncryptedKeyShare - 0, // 1: fairyring.keyshare.QueuedPubKey.encrypted_key_shares:type_name -> fairyring.keyshare.EncryptedKeyShare +var file_fairyring_keyshare_pubkey_proto_depIdxs = []int32{ + 0, // 0: fairyring.keyshare.ActivePubKey.encrypted_keyshares:type_name -> fairyring.keyshare.EncryptedKeyshare + 0, // 1: fairyring.keyshare.QueuedPubKey.encrypted_keyshares:type_name -> fairyring.keyshare.EncryptedKeyshare 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name @@ -2209,14 +2209,14 @@ var file_fairyring_keyshare_pub_key_proto_depIdxs = []int32{ 0, // [0:2] is the sub-list for field type_name } -func init() { file_fairyring_keyshare_pub_key_proto_init() } -func file_fairyring_keyshare_pub_key_proto_init() { - if File_fairyring_keyshare_pub_key_proto != nil { +func init() { file_fairyring_keyshare_pubkey_proto_init() } +func file_fairyring_keyshare_pubkey_proto_init() { + if File_fairyring_keyshare_pubkey_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_fairyring_keyshare_pub_key_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncryptedKeyShare); i { + file_fairyring_keyshare_pubkey_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EncryptedKeyshare); i { case 0: return &v.state case 1: @@ -2227,7 +2227,7 @@ func file_fairyring_keyshare_pub_key_proto_init() { return nil } } - file_fairyring_keyshare_pub_key_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_fairyring_keyshare_pubkey_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ActivePubKey); i { case 0: return &v.state @@ -2239,7 +2239,7 @@ func file_fairyring_keyshare_pub_key_proto_init() { return nil } } - file_fairyring_keyshare_pub_key_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_fairyring_keyshare_pubkey_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueuedPubKey); i { case 0: return &v.state @@ -2256,18 +2256,18 @@ func file_fairyring_keyshare_pub_key_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_fairyring_keyshare_pub_key_proto_rawDesc, + RawDescriptor: file_fairyring_keyshare_pubkey_proto_rawDesc, NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_fairyring_keyshare_pub_key_proto_goTypes, - DependencyIndexes: file_fairyring_keyshare_pub_key_proto_depIdxs, - MessageInfos: file_fairyring_keyshare_pub_key_proto_msgTypes, + GoTypes: file_fairyring_keyshare_pubkey_proto_goTypes, + DependencyIndexes: file_fairyring_keyshare_pubkey_proto_depIdxs, + MessageInfos: file_fairyring_keyshare_pubkey_proto_msgTypes, }.Build() - File_fairyring_keyshare_pub_key_proto = out.File - file_fairyring_keyshare_pub_key_proto_rawDesc = nil - file_fairyring_keyshare_pub_key_proto_goTypes = nil - file_fairyring_keyshare_pub_key_proto_depIdxs = nil + File_fairyring_keyshare_pubkey_proto = out.File + file_fairyring_keyshare_pubkey_proto_rawDesc = nil + file_fairyring_keyshare_pubkey_proto_goTypes = nil + file_fairyring_keyshare_pubkey_proto_depIdxs = nil } diff --git a/api/fairyring/keyshare/query.pulsar.go b/api/fairyring/keyshare/query.pulsar.go index c9c88153..961a8df3 100644 --- a/api/fairyring/keyshare/query.pulsar.go +++ b/api/fairyring/keyshare/query.pulsar.go @@ -4365,27 +4365,27 @@ func (x *fastReflection_QueryValidatorSetAllResponse) ProtoMethods() *protoiface } var ( - md_QueryKeyShareRequest protoreflect.MessageDescriptor - fd_QueryKeyShareRequest_validator protoreflect.FieldDescriptor - fd_QueryKeyShareRequest_block_height protoreflect.FieldDescriptor + md_QueryKeyshareRequest protoreflect.MessageDescriptor + fd_QueryKeyshareRequest_validator protoreflect.FieldDescriptor + fd_QueryKeyshareRequest_block_height protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryKeyShareRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryKeyShareRequest") - fd_QueryKeyShareRequest_validator = md_QueryKeyShareRequest.Fields().ByName("validator") - fd_QueryKeyShareRequest_block_height = md_QueryKeyShareRequest.Fields().ByName("block_height") + md_QueryKeyshareRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryKeyshareRequest") + fd_QueryKeyshareRequest_validator = md_QueryKeyshareRequest.Fields().ByName("validator") + fd_QueryKeyshareRequest_block_height = md_QueryKeyshareRequest.Fields().ByName("block_height") } -var _ protoreflect.Message = (*fastReflection_QueryKeyShareRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryKeyshareRequest)(nil) -type fastReflection_QueryKeyShareRequest QueryKeyShareRequest +type fastReflection_QueryKeyshareRequest QueryKeyshareRequest -func (x *QueryKeyShareRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryKeyShareRequest)(x) +func (x *QueryKeyshareRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryKeyshareRequest)(x) } -func (x *QueryKeyShareRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryKeyshareRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4397,43 +4397,43 @@ func (x *QueryKeyShareRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryKeyShareRequest_messageType fastReflection_QueryKeyShareRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryKeyShareRequest_messageType{} +var _fastReflection_QueryKeyshareRequest_messageType fastReflection_QueryKeyshareRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryKeyshareRequest_messageType{} -type fastReflection_QueryKeyShareRequest_messageType struct{} +type fastReflection_QueryKeyshareRequest_messageType struct{} -func (x fastReflection_QueryKeyShareRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryKeyShareRequest)(nil) +func (x fastReflection_QueryKeyshareRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryKeyshareRequest)(nil) } -func (x fastReflection_QueryKeyShareRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryKeyShareRequest) +func (x fastReflection_QueryKeyshareRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryKeyshareRequest) } -func (x fastReflection_QueryKeyShareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyShareRequest +func (x fastReflection_QueryKeyshareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyshareRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryKeyShareRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyShareRequest +func (x *fastReflection_QueryKeyshareRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyshareRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryKeyShareRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryKeyShareRequest_messageType +func (x *fastReflection_QueryKeyshareRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryKeyshareRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryKeyShareRequest) New() protoreflect.Message { - return new(fastReflection_QueryKeyShareRequest) +func (x *fastReflection_QueryKeyshareRequest) New() protoreflect.Message { + return new(fastReflection_QueryKeyshareRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryKeyShareRequest) Interface() protoreflect.ProtoMessage { - return (*QueryKeyShareRequest)(x) +func (x *fastReflection_QueryKeyshareRequest) Interface() protoreflect.ProtoMessage { + return (*QueryKeyshareRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -4441,16 +4441,16 @@ func (x *fastReflection_QueryKeyShareRequest) Interface() protoreflect.ProtoMess // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryKeyShareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryKeyshareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Validator != "" { value := protoreflect.ValueOfString(x.Validator) - if !f(fd_QueryKeyShareRequest_validator, value) { + if !f(fd_QueryKeyshareRequest_validator, value) { return } } if x.BlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.BlockHeight) - if !f(fd_QueryKeyShareRequest_block_height, value) { + if !f(fd_QueryKeyshareRequest_block_height, value) { return } } @@ -4467,17 +4467,17 @@ func (x *fastReflection_QueryKeyShareRequest) Range(f func(protoreflect.FieldDes // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryKeyShareRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryKeyshareRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareRequest.validator": + case "fairyring.keyshare.QueryKeyshareRequest.validator": return x.Validator != "" - case "fairyring.keyshare.QueryKeyShareRequest.block_height": + case "fairyring.keyshare.QueryKeyshareRequest.block_height": return x.BlockHeight != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareRequest does not contain field %s", fd.FullName())) } } @@ -4487,17 +4487,17 @@ func (x *fastReflection_QueryKeyShareRequest) Has(fd protoreflect.FieldDescripto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyShareRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryKeyshareRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareRequest.validator": + case "fairyring.keyshare.QueryKeyshareRequest.validator": x.Validator = "" - case "fairyring.keyshare.QueryKeyShareRequest.block_height": + case "fairyring.keyshare.QueryKeyshareRequest.block_height": x.BlockHeight = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareRequest does not contain field %s", fd.FullName())) } } @@ -4507,19 +4507,19 @@ func (x *fastReflection_QueryKeyShareRequest) Clear(fd protoreflect.FieldDescrip // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryKeyShareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryKeyShareRequest.validator": + case "fairyring.keyshare.QueryKeyshareRequest.validator": value := x.Validator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.QueryKeyShareRequest.block_height": + case "fairyring.keyshare.QueryKeyshareRequest.block_height": value := x.BlockHeight return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareRequest does not contain field %s", descriptor.FullName())) } } @@ -4533,17 +4533,17 @@ func (x *fastReflection_QueryKeyShareRequest) Get(descriptor protoreflect.FieldD // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyShareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryKeyshareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareRequest.validator": + case "fairyring.keyshare.QueryKeyshareRequest.validator": x.Validator = value.Interface().(string) - case "fairyring.keyshare.QueryKeyShareRequest.block_height": + case "fairyring.keyshare.QueryKeyshareRequest.block_height": x.BlockHeight = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareRequest does not contain field %s", fd.FullName())) } } @@ -4557,44 +4557,44 @@ func (x *fastReflection_QueryKeyShareRequest) Set(fd protoreflect.FieldDescripto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyShareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareRequest.validator": - panic(fmt.Errorf("field validator of message fairyring.keyshare.QueryKeyShareRequest is not mutable")) - case "fairyring.keyshare.QueryKeyShareRequest.block_height": - panic(fmt.Errorf("field block_height of message fairyring.keyshare.QueryKeyShareRequest is not mutable")) + case "fairyring.keyshare.QueryKeyshareRequest.validator": + panic(fmt.Errorf("field validator of message fairyring.keyshare.QueryKeyshareRequest is not mutable")) + case "fairyring.keyshare.QueryKeyshareRequest.block_height": + panic(fmt.Errorf("field block_height of message fairyring.keyshare.QueryKeyshareRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryKeyShareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareRequest.validator": + case "fairyring.keyshare.QueryKeyshareRequest.validator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.QueryKeyShareRequest.block_height": + case "fairyring.keyshare.QueryKeyshareRequest.block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryKeyShareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryKeyshareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryKeyShareRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryKeyshareRequest", d.FullName())) } panic("unreachable") } @@ -4602,7 +4602,7 @@ func (x *fastReflection_QueryKeyShareRequest) WhichOneof(d protoreflect.OneofDes // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryKeyShareRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryKeyshareRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4613,7 +4613,7 @@ func (x *fastReflection_QueryKeyShareRequest) GetUnknown() protoreflect.RawField // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyShareRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryKeyshareRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4625,7 +4625,7 @@ func (x *fastReflection_QueryKeyShareRequest) SetUnknown(fields protoreflect.Raw // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryKeyShareRequest) IsValid() bool { +func (x *fastReflection_QueryKeyshareRequest) IsValid() bool { return x != nil } @@ -4635,9 +4635,9 @@ func (x *fastReflection_QueryKeyShareRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryKeyShareRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryKeyshareRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryKeyShareRequest) + x := input.Message.Interface().(*QueryKeyshareRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4666,7 +4666,7 @@ func (x *fastReflection_QueryKeyShareRequest) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyShareRequest) + x := input.Message.Interface().(*QueryKeyshareRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4708,7 +4708,7 @@ func (x *fastReflection_QueryKeyShareRequest) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyShareRequest) + x := input.Message.Interface().(*QueryKeyshareRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4740,10 +4740,10 @@ func (x *fastReflection_QueryKeyShareRequest) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyShareRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4833,25 +4833,25 @@ func (x *fastReflection_QueryKeyShareRequest) ProtoMethods() *protoiface.Methods } var ( - md_QueryKeyShareResponse protoreflect.MessageDescriptor - fd_QueryKeyShareResponse_key_share protoreflect.FieldDescriptor + md_QueryKeyshareResponse protoreflect.MessageDescriptor + fd_QueryKeyshareResponse_keyshare protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryKeyShareResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryKeyShareResponse") - fd_QueryKeyShareResponse_key_share = md_QueryKeyShareResponse.Fields().ByName("key_share") + md_QueryKeyshareResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryKeyshareResponse") + fd_QueryKeyshareResponse_keyshare = md_QueryKeyshareResponse.Fields().ByName("keyshare") } -var _ protoreflect.Message = (*fastReflection_QueryKeyShareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryKeyshareResponse)(nil) -type fastReflection_QueryKeyShareResponse QueryKeyShareResponse +type fastReflection_QueryKeyshareResponse QueryKeyshareResponse -func (x *QueryKeyShareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryKeyShareResponse)(x) +func (x *QueryKeyshareResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryKeyshareResponse)(x) } -func (x *QueryKeyShareResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryKeyshareResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4863,43 +4863,43 @@ func (x *QueryKeyShareResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryKeyShareResponse_messageType fastReflection_QueryKeyShareResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryKeyShareResponse_messageType{} +var _fastReflection_QueryKeyshareResponse_messageType fastReflection_QueryKeyshareResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryKeyshareResponse_messageType{} -type fastReflection_QueryKeyShareResponse_messageType struct{} +type fastReflection_QueryKeyshareResponse_messageType struct{} -func (x fastReflection_QueryKeyShareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryKeyShareResponse)(nil) +func (x fastReflection_QueryKeyshareResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryKeyshareResponse)(nil) } -func (x fastReflection_QueryKeyShareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryKeyShareResponse) +func (x fastReflection_QueryKeyshareResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryKeyshareResponse) } -func (x fastReflection_QueryKeyShareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyShareResponse +func (x fastReflection_QueryKeyshareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyshareResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryKeyShareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyShareResponse +func (x *fastReflection_QueryKeyshareResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyshareResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryKeyShareResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryKeyShareResponse_messageType +func (x *fastReflection_QueryKeyshareResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryKeyshareResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryKeyShareResponse) New() protoreflect.Message { - return new(fastReflection_QueryKeyShareResponse) +func (x *fastReflection_QueryKeyshareResponse) New() protoreflect.Message { + return new(fastReflection_QueryKeyshareResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryKeyShareResponse) Interface() protoreflect.ProtoMessage { - return (*QueryKeyShareResponse)(x) +func (x *fastReflection_QueryKeyshareResponse) Interface() protoreflect.ProtoMessage { + return (*QueryKeyshareResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -4907,10 +4907,10 @@ func (x *fastReflection_QueryKeyShareResponse) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryKeyShareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.KeyShare != nil { - value := protoreflect.ValueOfMessage(x.KeyShare.ProtoReflect()) - if !f(fd_QueryKeyShareResponse_key_share, value) { +func (x *fastReflection_QueryKeyshareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Keyshare != nil { + value := protoreflect.ValueOfMessage(x.Keyshare.ProtoReflect()) + if !f(fd_QueryKeyshareResponse_keyshare, value) { return } } @@ -4927,15 +4927,15 @@ func (x *fastReflection_QueryKeyShareResponse) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryKeyShareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryKeyshareResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareResponse.key_share": - return x.KeyShare != nil + case "fairyring.keyshare.QueryKeyshareResponse.keyshare": + return x.Keyshare != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareResponse does not contain field %s", fd.FullName())) } } @@ -4945,15 +4945,15 @@ func (x *fastReflection_QueryKeyShareResponse) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyShareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryKeyshareResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareResponse.key_share": - x.KeyShare = nil + case "fairyring.keyshare.QueryKeyshareResponse.keyshare": + x.Keyshare = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareResponse does not contain field %s", fd.FullName())) } } @@ -4963,16 +4963,16 @@ func (x *fastReflection_QueryKeyShareResponse) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryKeyShareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryKeyShareResponse.key_share": - value := x.KeyShare + case "fairyring.keyshare.QueryKeyshareResponse.keyshare": + value := x.Keyshare return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareResponse does not contain field %s", descriptor.FullName())) } } @@ -4986,15 +4986,15 @@ func (x *fastReflection_QueryKeyShareResponse) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyShareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryKeyshareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareResponse.key_share": - x.KeyShare = value.Message().Interface().(*KeyShare) + case "fairyring.keyshare.QueryKeyshareResponse.keyshare": + x.Keyshare = value.Message().Interface().(*Keyshare) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareResponse does not contain field %s", fd.FullName())) } } @@ -5008,44 +5008,44 @@ func (x *fastReflection_QueryKeyShareResponse) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyShareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareResponse.key_share": - if x.KeyShare == nil { - x.KeyShare = new(KeyShare) + case "fairyring.keyshare.QueryKeyshareResponse.keyshare": + if x.Keyshare == nil { + x.Keyshare = new(Keyshare) } - return protoreflect.ValueOfMessage(x.KeyShare.ProtoReflect()) + return protoreflect.ValueOfMessage(x.Keyshare.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryKeyShareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareResponse.key_share": - m := new(KeyShare) + case "fairyring.keyshare.QueryKeyshareResponse.keyshare": + m := new(Keyshare) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryKeyShareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryKeyshareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryKeyShareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryKeyshareResponse", d.FullName())) } panic("unreachable") } @@ -5053,7 +5053,7 @@ func (x *fastReflection_QueryKeyShareResponse) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryKeyShareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryKeyshareResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5064,7 +5064,7 @@ func (x *fastReflection_QueryKeyShareResponse) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyShareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryKeyshareResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5076,7 +5076,7 @@ func (x *fastReflection_QueryKeyShareResponse) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryKeyShareResponse) IsValid() bool { +func (x *fastReflection_QueryKeyshareResponse) IsValid() bool { return x != nil } @@ -5086,9 +5086,9 @@ func (x *fastReflection_QueryKeyShareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryKeyShareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryKeyshareResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryKeyShareResponse) + x := input.Message.Interface().(*QueryKeyshareResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5100,8 +5100,8 @@ func (x *fastReflection_QueryKeyShareResponse) ProtoMethods() *protoiface.Method var n int var l int _ = l - if x.KeyShare != nil { - l = options.Size(x.KeyShare) + if x.Keyshare != nil { + l = options.Size(x.Keyshare) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -5114,7 +5114,7 @@ func (x *fastReflection_QueryKeyShareResponse) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyShareResponse) + x := input.Message.Interface().(*QueryKeyshareResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5133,8 +5133,8 @@ func (x *fastReflection_QueryKeyShareResponse) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.KeyShare != nil { - encoded, err := options.Marshal(x.KeyShare) + if x.Keyshare != nil { + encoded, err := options.Marshal(x.Keyshare) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5158,7 +5158,7 @@ func (x *fastReflection_QueryKeyShareResponse) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyShareResponse) + x := input.Message.Interface().(*QueryKeyshareResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5190,15 +5190,15 @@ func (x *fastReflection_QueryKeyShareResponse) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyShareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Keyshare", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5225,10 +5225,10 @@ func (x *fastReflection_QueryKeyShareResponse) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.KeyShare == nil { - x.KeyShare = &KeyShare{} + if x.Keyshare == nil { + x.Keyshare = &Keyshare{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.KeyShare); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Keyshare); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -5268,25 +5268,25 @@ func (x *fastReflection_QueryKeyShareResponse) ProtoMethods() *protoiface.Method } var ( - md_QueryKeyShareAllRequest protoreflect.MessageDescriptor - fd_QueryKeyShareAllRequest_pagination protoreflect.FieldDescriptor + md_QueryKeyshareAllRequest protoreflect.MessageDescriptor + fd_QueryKeyshareAllRequest_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryKeyShareAllRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryKeyShareAllRequest") - fd_QueryKeyShareAllRequest_pagination = md_QueryKeyShareAllRequest.Fields().ByName("pagination") + md_QueryKeyshareAllRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryKeyshareAllRequest") + fd_QueryKeyshareAllRequest_pagination = md_QueryKeyshareAllRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryKeyShareAllRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryKeyshareAllRequest)(nil) -type fastReflection_QueryKeyShareAllRequest QueryKeyShareAllRequest +type fastReflection_QueryKeyshareAllRequest QueryKeyshareAllRequest -func (x *QueryKeyShareAllRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryKeyShareAllRequest)(x) +func (x *QueryKeyshareAllRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryKeyshareAllRequest)(x) } -func (x *QueryKeyShareAllRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryKeyshareAllRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5298,43 +5298,43 @@ func (x *QueryKeyShareAllRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryKeyShareAllRequest_messageType fastReflection_QueryKeyShareAllRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryKeyShareAllRequest_messageType{} +var _fastReflection_QueryKeyshareAllRequest_messageType fastReflection_QueryKeyshareAllRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryKeyshareAllRequest_messageType{} -type fastReflection_QueryKeyShareAllRequest_messageType struct{} +type fastReflection_QueryKeyshareAllRequest_messageType struct{} -func (x fastReflection_QueryKeyShareAllRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryKeyShareAllRequest)(nil) +func (x fastReflection_QueryKeyshareAllRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryKeyshareAllRequest)(nil) } -func (x fastReflection_QueryKeyShareAllRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryKeyShareAllRequest) +func (x fastReflection_QueryKeyshareAllRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryKeyshareAllRequest) } -func (x fastReflection_QueryKeyShareAllRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyShareAllRequest +func (x fastReflection_QueryKeyshareAllRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyshareAllRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryKeyShareAllRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyShareAllRequest +func (x *fastReflection_QueryKeyshareAllRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyshareAllRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryKeyShareAllRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryKeyShareAllRequest_messageType +func (x *fastReflection_QueryKeyshareAllRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryKeyshareAllRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryKeyShareAllRequest) New() protoreflect.Message { - return new(fastReflection_QueryKeyShareAllRequest) +func (x *fastReflection_QueryKeyshareAllRequest) New() protoreflect.Message { + return new(fastReflection_QueryKeyshareAllRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryKeyShareAllRequest) Interface() protoreflect.ProtoMessage { - return (*QueryKeyShareAllRequest)(x) +func (x *fastReflection_QueryKeyshareAllRequest) Interface() protoreflect.ProtoMessage { + return (*QueryKeyshareAllRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -5342,10 +5342,10 @@ func (x *fastReflection_QueryKeyShareAllRequest) Interface() protoreflect.ProtoM // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryKeyShareAllRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryKeyshareAllRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryKeyShareAllRequest_pagination, value) { + if !f(fd_QueryKeyshareAllRequest_pagination, value) { return } } @@ -5362,15 +5362,15 @@ func (x *fastReflection_QueryKeyShareAllRequest) Range(f func(protoreflect.Field // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryKeyShareAllRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryKeyshareAllRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareAllRequest.pagination": + case "fairyring.keyshare.QueryKeyshareAllRequest.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareAllRequest does not contain field %s", fd.FullName())) } } @@ -5380,15 +5380,15 @@ func (x *fastReflection_QueryKeyShareAllRequest) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyShareAllRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryKeyshareAllRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareAllRequest.pagination": + case "fairyring.keyshare.QueryKeyshareAllRequest.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareAllRequest does not contain field %s", fd.FullName())) } } @@ -5398,16 +5398,16 @@ func (x *fastReflection_QueryKeyShareAllRequest) Clear(fd protoreflect.FieldDesc // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryKeyShareAllRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareAllRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryKeyShareAllRequest.pagination": + case "fairyring.keyshare.QueryKeyshareAllRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareAllRequest does not contain field %s", descriptor.FullName())) } } @@ -5421,15 +5421,15 @@ func (x *fastReflection_QueryKeyShareAllRequest) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyShareAllRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryKeyshareAllRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareAllRequest.pagination": + case "fairyring.keyshare.QueryKeyshareAllRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareAllRequest does not contain field %s", fd.FullName())) } } @@ -5443,44 +5443,44 @@ func (x *fastReflection_QueryKeyShareAllRequest) Set(fd protoreflect.FieldDescri // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyShareAllRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareAllRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareAllRequest.pagination": + case "fairyring.keyshare.QueryKeyshareAllRequest.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareAllRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryKeyShareAllRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareAllRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareAllRequest.pagination": + case "fairyring.keyshare.QueryKeyshareAllRequest.pagination": m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareAllRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryKeyShareAllRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryKeyshareAllRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryKeyShareAllRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryKeyshareAllRequest", d.FullName())) } panic("unreachable") } @@ -5488,7 +5488,7 @@ func (x *fastReflection_QueryKeyShareAllRequest) WhichOneof(d protoreflect.Oneof // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryKeyShareAllRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryKeyshareAllRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5499,7 +5499,7 @@ func (x *fastReflection_QueryKeyShareAllRequest) GetUnknown() protoreflect.RawFi // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyShareAllRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryKeyshareAllRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5511,7 +5511,7 @@ func (x *fastReflection_QueryKeyShareAllRequest) SetUnknown(fields protoreflect. // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryKeyShareAllRequest) IsValid() bool { +func (x *fastReflection_QueryKeyshareAllRequest) IsValid() bool { return x != nil } @@ -5521,9 +5521,9 @@ func (x *fastReflection_QueryKeyShareAllRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryKeyShareAllRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryKeyshareAllRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryKeyShareAllRequest) + x := input.Message.Interface().(*QueryKeyshareAllRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5549,7 +5549,7 @@ func (x *fastReflection_QueryKeyShareAllRequest) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyShareAllRequest) + x := input.Message.Interface().(*QueryKeyshareAllRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5593,7 +5593,7 @@ func (x *fastReflection_QueryKeyShareAllRequest) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyShareAllRequest) + x := input.Message.Interface().(*QueryKeyshareAllRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5625,10 +5625,10 @@ func (x *fastReflection_QueryKeyShareAllRequest) ProtoMethods() *protoiface.Meth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyShareAllRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyShareAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5702,79 +5702,79 @@ func (x *fastReflection_QueryKeyShareAllRequest) ProtoMethods() *protoiface.Meth } } -var _ protoreflect.List = (*_QueryKeyShareAllResponse_1_list)(nil) +var _ protoreflect.List = (*_QueryKeyshareAllResponse_1_list)(nil) -type _QueryKeyShareAllResponse_1_list struct { - list *[]*KeyShare +type _QueryKeyshareAllResponse_1_list struct { + list *[]*Keyshare } -func (x *_QueryKeyShareAllResponse_1_list) Len() int { +func (x *_QueryKeyshareAllResponse_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryKeyShareAllResponse_1_list) Get(i int) protoreflect.Value { +func (x *_QueryKeyshareAllResponse_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryKeyShareAllResponse_1_list) Set(i int, value protoreflect.Value) { +func (x *_QueryKeyshareAllResponse_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*KeyShare) + concreteValue := valueUnwrapped.Interface().(*Keyshare) (*x.list)[i] = concreteValue } -func (x *_QueryKeyShareAllResponse_1_list) Append(value protoreflect.Value) { +func (x *_QueryKeyshareAllResponse_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*KeyShare) + concreteValue := valueUnwrapped.Interface().(*Keyshare) *x.list = append(*x.list, concreteValue) } -func (x *_QueryKeyShareAllResponse_1_list) AppendMutable() protoreflect.Value { - v := new(KeyShare) +func (x *_QueryKeyshareAllResponse_1_list) AppendMutable() protoreflect.Value { + v := new(Keyshare) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryKeyShareAllResponse_1_list) Truncate(n int) { +func (x *_QueryKeyshareAllResponse_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryKeyShareAllResponse_1_list) NewElement() protoreflect.Value { - v := new(KeyShare) +func (x *_QueryKeyshareAllResponse_1_list) NewElement() protoreflect.Value { + v := new(Keyshare) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryKeyShareAllResponse_1_list) IsValid() bool { +func (x *_QueryKeyshareAllResponse_1_list) IsValid() bool { return x.list != nil } var ( - md_QueryKeyShareAllResponse protoreflect.MessageDescriptor - fd_QueryKeyShareAllResponse_key_share protoreflect.FieldDescriptor - fd_QueryKeyShareAllResponse_pagination protoreflect.FieldDescriptor + md_QueryKeyshareAllResponse protoreflect.MessageDescriptor + fd_QueryKeyshareAllResponse_keyshare protoreflect.FieldDescriptor + fd_QueryKeyshareAllResponse_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryKeyShareAllResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryKeyShareAllResponse") - fd_QueryKeyShareAllResponse_key_share = md_QueryKeyShareAllResponse.Fields().ByName("key_share") - fd_QueryKeyShareAllResponse_pagination = md_QueryKeyShareAllResponse.Fields().ByName("pagination") + md_QueryKeyshareAllResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryKeyshareAllResponse") + fd_QueryKeyshareAllResponse_keyshare = md_QueryKeyshareAllResponse.Fields().ByName("keyshare") + fd_QueryKeyshareAllResponse_pagination = md_QueryKeyshareAllResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryKeyShareAllResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryKeyshareAllResponse)(nil) -type fastReflection_QueryKeyShareAllResponse QueryKeyShareAllResponse +type fastReflection_QueryKeyshareAllResponse QueryKeyshareAllResponse -func (x *QueryKeyShareAllResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryKeyShareAllResponse)(x) +func (x *QueryKeyshareAllResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryKeyshareAllResponse)(x) } -func (x *QueryKeyShareAllResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryKeyshareAllResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5786,43 +5786,43 @@ func (x *QueryKeyShareAllResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryKeyShareAllResponse_messageType fastReflection_QueryKeyShareAllResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryKeyShareAllResponse_messageType{} +var _fastReflection_QueryKeyshareAllResponse_messageType fastReflection_QueryKeyshareAllResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryKeyshareAllResponse_messageType{} -type fastReflection_QueryKeyShareAllResponse_messageType struct{} +type fastReflection_QueryKeyshareAllResponse_messageType struct{} -func (x fastReflection_QueryKeyShareAllResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryKeyShareAllResponse)(nil) +func (x fastReflection_QueryKeyshareAllResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryKeyshareAllResponse)(nil) } -func (x fastReflection_QueryKeyShareAllResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryKeyShareAllResponse) +func (x fastReflection_QueryKeyshareAllResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryKeyshareAllResponse) } -func (x fastReflection_QueryKeyShareAllResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyShareAllResponse +func (x fastReflection_QueryKeyshareAllResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyshareAllResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryKeyShareAllResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryKeyShareAllResponse +func (x *fastReflection_QueryKeyshareAllResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryKeyshareAllResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryKeyShareAllResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryKeyShareAllResponse_messageType +func (x *fastReflection_QueryKeyshareAllResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryKeyshareAllResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryKeyShareAllResponse) New() protoreflect.Message { - return new(fastReflection_QueryKeyShareAllResponse) +func (x *fastReflection_QueryKeyshareAllResponse) New() protoreflect.Message { + return new(fastReflection_QueryKeyshareAllResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryKeyShareAllResponse) Interface() protoreflect.ProtoMessage { - return (*QueryKeyShareAllResponse)(x) +func (x *fastReflection_QueryKeyshareAllResponse) Interface() protoreflect.ProtoMessage { + return (*QueryKeyshareAllResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -5830,16 +5830,16 @@ func (x *fastReflection_QueryKeyShareAllResponse) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryKeyShareAllResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.KeyShare) != 0 { - value := protoreflect.ValueOfList(&_QueryKeyShareAllResponse_1_list{list: &x.KeyShare}) - if !f(fd_QueryKeyShareAllResponse_key_share, value) { +func (x *fastReflection_QueryKeyshareAllResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Keyshare) != 0 { + value := protoreflect.ValueOfList(&_QueryKeyshareAllResponse_1_list{list: &x.Keyshare}) + if !f(fd_QueryKeyshareAllResponse_keyshare, value) { return } } if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryKeyShareAllResponse_pagination, value) { + if !f(fd_QueryKeyshareAllResponse_pagination, value) { return } } @@ -5856,17 +5856,17 @@ func (x *fastReflection_QueryKeyShareAllResponse) Range(f func(protoreflect.Fiel // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryKeyShareAllResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryKeyshareAllResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareAllResponse.key_share": - return len(x.KeyShare) != 0 - case "fairyring.keyshare.QueryKeyShareAllResponse.pagination": + case "fairyring.keyshare.QueryKeyshareAllResponse.keyshare": + return len(x.Keyshare) != 0 + case "fairyring.keyshare.QueryKeyshareAllResponse.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareAllResponse does not contain field %s", fd.FullName())) } } @@ -5876,17 +5876,17 @@ func (x *fastReflection_QueryKeyShareAllResponse) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyShareAllResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryKeyshareAllResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareAllResponse.key_share": - x.KeyShare = nil - case "fairyring.keyshare.QueryKeyShareAllResponse.pagination": + case "fairyring.keyshare.QueryKeyshareAllResponse.keyshare": + x.Keyshare = nil + case "fairyring.keyshare.QueryKeyshareAllResponse.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareAllResponse does not contain field %s", fd.FullName())) } } @@ -5896,22 +5896,22 @@ func (x *fastReflection_QueryKeyShareAllResponse) Clear(fd protoreflect.FieldDes // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryKeyShareAllResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareAllResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryKeyShareAllResponse.key_share": - if len(x.KeyShare) == 0 { - return protoreflect.ValueOfList(&_QueryKeyShareAllResponse_1_list{}) + case "fairyring.keyshare.QueryKeyshareAllResponse.keyshare": + if len(x.Keyshare) == 0 { + return protoreflect.ValueOfList(&_QueryKeyshareAllResponse_1_list{}) } - listValue := &_QueryKeyShareAllResponse_1_list{list: &x.KeyShare} + listValue := &_QueryKeyshareAllResponse_1_list{list: &x.Keyshare} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.QueryKeyShareAllResponse.pagination": + case "fairyring.keyshare.QueryKeyshareAllResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareAllResponse does not contain field %s", descriptor.FullName())) } } @@ -5925,19 +5925,19 @@ func (x *fastReflection_QueryKeyShareAllResponse) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyShareAllResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryKeyshareAllResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareAllResponse.key_share": + case "fairyring.keyshare.QueryKeyshareAllResponse.keyshare": lv := value.List() - clv := lv.(*_QueryKeyShareAllResponse_1_list) - x.KeyShare = *clv.list - case "fairyring.keyshare.QueryKeyShareAllResponse.pagination": + clv := lv.(*_QueryKeyshareAllResponse_1_list) + x.Keyshare = *clv.list + case "fairyring.keyshare.QueryKeyshareAllResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareAllResponse does not contain field %s", fd.FullName())) } } @@ -5951,53 +5951,53 @@ func (x *fastReflection_QueryKeyShareAllResponse) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyShareAllResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareAllResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareAllResponse.key_share": - if x.KeyShare == nil { - x.KeyShare = []*KeyShare{} + case "fairyring.keyshare.QueryKeyshareAllResponse.keyshare": + if x.Keyshare == nil { + x.Keyshare = []*Keyshare{} } - value := &_QueryKeyShareAllResponse_1_list{list: &x.KeyShare} + value := &_QueryKeyshareAllResponse_1_list{list: &x.Keyshare} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.QueryKeyShareAllResponse.pagination": + case "fairyring.keyshare.QueryKeyshareAllResponse.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageResponse) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareAllResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryKeyShareAllResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryKeyshareAllResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryKeyShareAllResponse.key_share": - list := []*KeyShare{} - return protoreflect.ValueOfList(&_QueryKeyShareAllResponse_1_list{list: &list}) - case "fairyring.keyshare.QueryKeyShareAllResponse.pagination": + case "fairyring.keyshare.QueryKeyshareAllResponse.keyshare": + list := []*Keyshare{} + return protoreflect.ValueOfList(&_QueryKeyshareAllResponse_1_list{list: &list}) + case "fairyring.keyshare.QueryKeyshareAllResponse.pagination": m := new(v1beta1.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyShareAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryKeyshareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryKeyShareAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryKeyshareAllResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryKeyShareAllResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryKeyshareAllResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryKeyShareAllResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryKeyshareAllResponse", d.FullName())) } panic("unreachable") } @@ -6005,7 +6005,7 @@ func (x *fastReflection_QueryKeyShareAllResponse) WhichOneof(d protoreflect.Oneo // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryKeyShareAllResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryKeyshareAllResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6016,7 +6016,7 @@ func (x *fastReflection_QueryKeyShareAllResponse) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryKeyShareAllResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryKeyshareAllResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6028,7 +6028,7 @@ func (x *fastReflection_QueryKeyShareAllResponse) SetUnknown(fields protoreflect // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryKeyShareAllResponse) IsValid() bool { +func (x *fastReflection_QueryKeyshareAllResponse) IsValid() bool { return x != nil } @@ -6038,9 +6038,9 @@ func (x *fastReflection_QueryKeyShareAllResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryKeyShareAllResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryKeyshareAllResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryKeyShareAllResponse) + x := input.Message.Interface().(*QueryKeyshareAllResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6052,8 +6052,8 @@ func (x *fastReflection_QueryKeyShareAllResponse) ProtoMethods() *protoiface.Met var n int var l int _ = l - if len(x.KeyShare) > 0 { - for _, e := range x.KeyShare { + if len(x.Keyshare) > 0 { + for _, e := range x.Keyshare { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -6072,7 +6072,7 @@ func (x *fastReflection_QueryKeyShareAllResponse) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyShareAllResponse) + x := input.Message.Interface().(*QueryKeyshareAllResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6105,9 +6105,9 @@ func (x *fastReflection_QueryKeyShareAllResponse) ProtoMethods() *protoiface.Met i-- dAtA[i] = 0x12 } - if len(x.KeyShare) > 0 { - for iNdEx := len(x.KeyShare) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.KeyShare[iNdEx]) + if len(x.Keyshare) > 0 { + for iNdEx := len(x.Keyshare) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Keyshare[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6132,7 +6132,7 @@ func (x *fastReflection_QueryKeyShareAllResponse) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryKeyShareAllResponse) + x := input.Message.Interface().(*QueryKeyshareAllResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6164,15 +6164,15 @@ func (x *fastReflection_QueryKeyShareAllResponse) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyShareAllResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyShareAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryKeyshareAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Keyshare", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -6199,8 +6199,8 @@ func (x *fastReflection_QueryKeyShareAllResponse) ProtoMethods() *protoiface.Met if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.KeyShare = append(x.KeyShare, &KeyShare{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.KeyShare[len(x.KeyShare)-1]); err != nil { + x.Keyshare = append(x.Keyshare, &Keyshare{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Keyshare[len(x.Keyshare)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -6836,7 +6836,7 @@ func (x *fastReflection_QueryDecryptionKeyResponse) Get(descriptor protoreflect. func (x *fastReflection_QueryDecryptionKeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "fairyring.keyshare.QueryDecryptionKeyResponse.decryption_key": - x.DecryptionKey = value.Message().Interface().(*AggregatedKeyShare) + x.DecryptionKey = value.Message().Interface().(*DecryptionKey) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryDecryptionKeyResponse")) @@ -6859,7 +6859,7 @@ func (x *fastReflection_QueryDecryptionKeyResponse) Mutable(fd protoreflect.Fiel switch fd.FullName() { case "fairyring.keyshare.QueryDecryptionKeyResponse.decryption_key": if x.DecryptionKey == nil { - x.DecryptionKey = new(AggregatedKeyShare) + x.DecryptionKey = new(DecryptionKey) } return protoreflect.ValueOfMessage(x.DecryptionKey.ProtoReflect()) default: @@ -6876,7 +6876,7 @@ func (x *fastReflection_QueryDecryptionKeyResponse) Mutable(fd protoreflect.Fiel func (x *fastReflection_QueryDecryptionKeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "fairyring.keyshare.QueryDecryptionKeyResponse.decryption_key": - m := new(AggregatedKeyShare) + m := new(DecryptionKey) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { @@ -7073,7 +7073,7 @@ func (x *fastReflection_QueryDecryptionKeyResponse) ProtoMethods() *protoiface.M return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.DecryptionKey == nil { - x.DecryptionKey = &AggregatedKeyShare{} + x.DecryptionKey = &DecryptionKey{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DecryptionKey); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -7552,7 +7552,7 @@ func (x *fastReflection_QueryDecryptionKeyAllRequest) ProtoMethods() *protoiface var _ protoreflect.List = (*_QueryDecryptionKeyAllResponse_1_list)(nil) type _QueryDecryptionKeyAllResponse_1_list struct { - list *[]*AggregatedKeyShare + list *[]*DecryptionKey } func (x *_QueryDecryptionKeyAllResponse_1_list) Len() int { @@ -7568,18 +7568,18 @@ func (x *_QueryDecryptionKeyAllResponse_1_list) Get(i int) protoreflect.Value { func (x *_QueryDecryptionKeyAllResponse_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*AggregatedKeyShare) + concreteValue := valueUnwrapped.Interface().(*DecryptionKey) (*x.list)[i] = concreteValue } func (x *_QueryDecryptionKeyAllResponse_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*AggregatedKeyShare) + concreteValue := valueUnwrapped.Interface().(*DecryptionKey) *x.list = append(*x.list, concreteValue) } func (x *_QueryDecryptionKeyAllResponse_1_list) AppendMutable() protoreflect.Value { - v := new(AggregatedKeyShare) + v := new(DecryptionKey) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -7592,7 +7592,7 @@ func (x *_QueryDecryptionKeyAllResponse_1_list) Truncate(n int) { } func (x *_QueryDecryptionKeyAllResponse_1_list) NewElement() protoreflect.Value { - v := new(AggregatedKeyShare) + v := new(DecryptionKey) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -7802,7 +7802,7 @@ func (x *fastReflection_QueryDecryptionKeyAllResponse) Mutable(fd protoreflect.F switch fd.FullName() { case "fairyring.keyshare.QueryDecryptionKeyAllResponse.decryption_keys": if x.DecryptionKeys == nil { - x.DecryptionKeys = []*AggregatedKeyShare{} + x.DecryptionKeys = []*DecryptionKey{} } value := &_QueryDecryptionKeyAllResponse_1_list{list: &x.DecryptionKeys} return protoreflect.ValueOfList(value) @@ -7825,7 +7825,7 @@ func (x *fastReflection_QueryDecryptionKeyAllResponse) Mutable(fd protoreflect.F func (x *fastReflection_QueryDecryptionKeyAllResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "fairyring.keyshare.QueryDecryptionKeyAllResponse.decryption_keys": - list := []*AggregatedKeyShare{} + list := []*DecryptionKey{} return protoreflect.ValueOfList(&_QueryDecryptionKeyAllResponse_1_list{list: &list}) case "fairyring.keyshare.QueryDecryptionKeyAllResponse.pagination": m := new(v1beta1.PageResponse) @@ -8046,7 +8046,7 @@ func (x *fastReflection_QueryDecryptionKeyAllResponse) ProtoMethods() *protoifac if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.DecryptionKeys = append(x.DecryptionKeys, &AggregatedKeyShare{}) + x.DecryptionKeys = append(x.DecryptionKeys, &DecryptionKey{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DecryptionKeys[len(x.DecryptionKeys)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -8123,23 +8123,23 @@ func (x *fastReflection_QueryDecryptionKeyAllResponse) ProtoMethods() *protoifac } var ( - md_QueryPubKeyRequest protoreflect.MessageDescriptor + md_QueryPubkeyRequest protoreflect.MessageDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryPubKeyRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryPubKeyRequest") + md_QueryPubkeyRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryPubkeyRequest") } -var _ protoreflect.Message = (*fastReflection_QueryPubKeyRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPubkeyRequest)(nil) -type fastReflection_QueryPubKeyRequest QueryPubKeyRequest +type fastReflection_QueryPubkeyRequest QueryPubkeyRequest -func (x *QueryPubKeyRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryPubKeyRequest)(x) +func (x *QueryPubkeyRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPubkeyRequest)(x) } -func (x *QueryPubKeyRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryPubkeyRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8151,43 +8151,43 @@ func (x *QueryPubKeyRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryPubKeyRequest_messageType fastReflection_QueryPubKeyRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryPubKeyRequest_messageType{} +var _fastReflection_QueryPubkeyRequest_messageType fastReflection_QueryPubkeyRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryPubkeyRequest_messageType{} -type fastReflection_QueryPubKeyRequest_messageType struct{} +type fastReflection_QueryPubkeyRequest_messageType struct{} -func (x fastReflection_QueryPubKeyRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryPubKeyRequest)(nil) +func (x fastReflection_QueryPubkeyRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPubkeyRequest)(nil) } -func (x fastReflection_QueryPubKeyRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryPubKeyRequest) +func (x fastReflection_QueryPubkeyRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPubkeyRequest) } -func (x fastReflection_QueryPubKeyRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPubKeyRequest +func (x fastReflection_QueryPubkeyRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPubkeyRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryPubKeyRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPubKeyRequest +func (x *fastReflection_QueryPubkeyRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPubkeyRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryPubKeyRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryPubKeyRequest_messageType +func (x *fastReflection_QueryPubkeyRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryPubkeyRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryPubKeyRequest) New() protoreflect.Message { - return new(fastReflection_QueryPubKeyRequest) +func (x *fastReflection_QueryPubkeyRequest) New() protoreflect.Message { + return new(fastReflection_QueryPubkeyRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryPubKeyRequest) Interface() protoreflect.ProtoMessage { - return (*QueryPubKeyRequest)(x) +func (x *fastReflection_QueryPubkeyRequest) Interface() protoreflect.ProtoMessage { + return (*QueryPubkeyRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -8195,7 +8195,7 @@ func (x *fastReflection_QueryPubKeyRequest) Interface() protoreflect.ProtoMessag // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryPubKeyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryPubkeyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -8209,13 +8209,13 @@ func (x *fastReflection_QueryPubKeyRequest) Range(f func(protoreflect.FieldDescr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryPubKeyRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPubkeyRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubkeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryPubKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryPubkeyRequest does not contain field %s", fd.FullName())) } } @@ -8225,13 +8225,13 @@ func (x *fastReflection_QueryPubKeyRequest) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPubKeyRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPubkeyRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubkeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryPubKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryPubkeyRequest does not contain field %s", fd.FullName())) } } @@ -8241,13 +8241,13 @@ func (x *fastReflection_QueryPubKeyRequest) Clear(fd protoreflect.FieldDescripto // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryPubKeyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPubkeyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubkeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryPubKeyRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryPubkeyRequest does not contain field %s", descriptor.FullName())) } } @@ -8261,13 +8261,13 @@ func (x *fastReflection_QueryPubKeyRequest) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPubKeyRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPubkeyRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubkeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryPubKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryPubkeyRequest does not contain field %s", fd.FullName())) } } @@ -8281,36 +8281,36 @@ func (x *fastReflection_QueryPubKeyRequest) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPubKeyRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPubkeyRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubkeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryPubKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryPubkeyRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryPubKeyRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPubkeyRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubkeyRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryPubKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryPubkeyRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryPubKeyRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPubkeyRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryPubKeyRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryPubkeyRequest", d.FullName())) } panic("unreachable") } @@ -8318,7 +8318,7 @@ func (x *fastReflection_QueryPubKeyRequest) WhichOneof(d protoreflect.OneofDescr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryPubKeyRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPubkeyRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8329,7 +8329,7 @@ func (x *fastReflection_QueryPubKeyRequest) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPubKeyRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPubkeyRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8341,7 +8341,7 @@ func (x *fastReflection_QueryPubKeyRequest) SetUnknown(fields protoreflect.RawFi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryPubKeyRequest) IsValid() bool { +func (x *fastReflection_QueryPubkeyRequest) IsValid() bool { return x != nil } @@ -8351,9 +8351,9 @@ func (x *fastReflection_QueryPubKeyRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryPubKeyRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPubkeyRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryPubKeyRequest) + x := input.Message.Interface().(*QueryPubkeyRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8375,7 +8375,7 @@ func (x *fastReflection_QueryPubKeyRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryPubKeyRequest) + x := input.Message.Interface().(*QueryPubkeyRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8405,7 +8405,7 @@ func (x *fastReflection_QueryPubKeyRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryPubKeyRequest) + x := input.Message.Interface().(*QueryPubkeyRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8437,10 +8437,10 @@ func (x *fastReflection_QueryPubKeyRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPubKeyRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPubkeyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPubKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPubkeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -8479,27 +8479,27 @@ func (x *fastReflection_QueryPubKeyRequest) ProtoMethods() *protoiface.Methods { } var ( - md_QueryPubKeyResponse protoreflect.MessageDescriptor - fd_QueryPubKeyResponse_active_pub_key protoreflect.FieldDescriptor - fd_QueryPubKeyResponse_queued_pub_key protoreflect.FieldDescriptor + md_QueryPubkeyResponse protoreflect.MessageDescriptor + fd_QueryPubkeyResponse_active_pubkey protoreflect.FieldDescriptor + fd_QueryPubkeyResponse_queued_pubkey protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryPubKeyResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryPubKeyResponse") - fd_QueryPubKeyResponse_active_pub_key = md_QueryPubKeyResponse.Fields().ByName("active_pub_key") - fd_QueryPubKeyResponse_queued_pub_key = md_QueryPubKeyResponse.Fields().ByName("queued_pub_key") + md_QueryPubkeyResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryPubkeyResponse") + fd_QueryPubkeyResponse_active_pubkey = md_QueryPubkeyResponse.Fields().ByName("active_pubkey") + fd_QueryPubkeyResponse_queued_pubkey = md_QueryPubkeyResponse.Fields().ByName("queued_pubkey") } -var _ protoreflect.Message = (*fastReflection_QueryPubKeyResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPubkeyResponse)(nil) -type fastReflection_QueryPubKeyResponse QueryPubKeyResponse +type fastReflection_QueryPubkeyResponse QueryPubkeyResponse -func (x *QueryPubKeyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryPubKeyResponse)(x) +func (x *QueryPubkeyResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPubkeyResponse)(x) } -func (x *QueryPubKeyResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryPubkeyResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8511,43 +8511,43 @@ func (x *QueryPubKeyResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryPubKeyResponse_messageType fastReflection_QueryPubKeyResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryPubKeyResponse_messageType{} +var _fastReflection_QueryPubkeyResponse_messageType fastReflection_QueryPubkeyResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryPubkeyResponse_messageType{} -type fastReflection_QueryPubKeyResponse_messageType struct{} +type fastReflection_QueryPubkeyResponse_messageType struct{} -func (x fastReflection_QueryPubKeyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryPubKeyResponse)(nil) +func (x fastReflection_QueryPubkeyResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPubkeyResponse)(nil) } -func (x fastReflection_QueryPubKeyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryPubKeyResponse) +func (x fastReflection_QueryPubkeyResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPubkeyResponse) } -func (x fastReflection_QueryPubKeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPubKeyResponse +func (x fastReflection_QueryPubkeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPubkeyResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryPubKeyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPubKeyResponse +func (x *fastReflection_QueryPubkeyResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPubkeyResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryPubKeyResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryPubKeyResponse_messageType +func (x *fastReflection_QueryPubkeyResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryPubkeyResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryPubKeyResponse) New() protoreflect.Message { - return new(fastReflection_QueryPubKeyResponse) +func (x *fastReflection_QueryPubkeyResponse) New() protoreflect.Message { + return new(fastReflection_QueryPubkeyResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryPubKeyResponse) Interface() protoreflect.ProtoMessage { - return (*QueryPubKeyResponse)(x) +func (x *fastReflection_QueryPubkeyResponse) Interface() protoreflect.ProtoMessage { + return (*QueryPubkeyResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -8555,16 +8555,16 @@ func (x *fastReflection_QueryPubKeyResponse) Interface() protoreflect.ProtoMessa // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryPubKeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ActivePubKey != nil { - value := protoreflect.ValueOfMessage(x.ActivePubKey.ProtoReflect()) - if !f(fd_QueryPubKeyResponse_active_pub_key, value) { +func (x *fastReflection_QueryPubkeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ActivePubkey != nil { + value := protoreflect.ValueOfMessage(x.ActivePubkey.ProtoReflect()) + if !f(fd_QueryPubkeyResponse_active_pubkey, value) { return } } - if x.QueuedPubKey != nil { - value := protoreflect.ValueOfMessage(x.QueuedPubKey.ProtoReflect()) - if !f(fd_QueryPubKeyResponse_queued_pub_key, value) { + if x.QueuedPubkey != nil { + value := protoreflect.ValueOfMessage(x.QueuedPubkey.ProtoReflect()) + if !f(fd_QueryPubkeyResponse_queued_pubkey, value) { return } } @@ -8581,17 +8581,17 @@ func (x *fastReflection_QueryPubKeyResponse) Range(f func(protoreflect.FieldDesc // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryPubKeyResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPubkeyResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryPubKeyResponse.active_pub_key": - return x.ActivePubKey != nil - case "fairyring.keyshare.QueryPubKeyResponse.queued_pub_key": - return x.QueuedPubKey != nil + case "fairyring.keyshare.QueryPubkeyResponse.active_pubkey": + return x.ActivePubkey != nil + case "fairyring.keyshare.QueryPubkeyResponse.queued_pubkey": + return x.QueuedPubkey != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryPubkeyResponse does not contain field %s", fd.FullName())) } } @@ -8601,17 +8601,17 @@ func (x *fastReflection_QueryPubKeyResponse) Has(fd protoreflect.FieldDescriptor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPubKeyResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPubkeyResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryPubKeyResponse.active_pub_key": - x.ActivePubKey = nil - case "fairyring.keyshare.QueryPubKeyResponse.queued_pub_key": - x.QueuedPubKey = nil + case "fairyring.keyshare.QueryPubkeyResponse.active_pubkey": + x.ActivePubkey = nil + case "fairyring.keyshare.QueryPubkeyResponse.queued_pubkey": + x.QueuedPubkey = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryPubkeyResponse does not contain field %s", fd.FullName())) } } @@ -8621,19 +8621,19 @@ func (x *fastReflection_QueryPubKeyResponse) Clear(fd protoreflect.FieldDescript // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryPubKeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPubkeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryPubKeyResponse.active_pub_key": - value := x.ActivePubKey + case "fairyring.keyshare.QueryPubkeyResponse.active_pubkey": + value := x.ActivePubkey return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.keyshare.QueryPubKeyResponse.queued_pub_key": - value := x.QueuedPubKey + case "fairyring.keyshare.QueryPubkeyResponse.queued_pubkey": + value := x.QueuedPubkey return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryPubKeyResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryPubkeyResponse does not contain field %s", descriptor.FullName())) } } @@ -8647,17 +8647,17 @@ func (x *fastReflection_QueryPubKeyResponse) Get(descriptor protoreflect.FieldDe // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPubKeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPubkeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryPubKeyResponse.active_pub_key": - x.ActivePubKey = value.Message().Interface().(*ActivePubKey) - case "fairyring.keyshare.QueryPubKeyResponse.queued_pub_key": - x.QueuedPubKey = value.Message().Interface().(*QueuedPubKey) + case "fairyring.keyshare.QueryPubkeyResponse.active_pubkey": + x.ActivePubkey = value.Message().Interface().(*ActivePubKey) + case "fairyring.keyshare.QueryPubkeyResponse.queued_pubkey": + x.QueuedPubkey = value.Message().Interface().(*QueuedPubKey) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryPubkeyResponse does not contain field %s", fd.FullName())) } } @@ -8671,52 +8671,52 @@ func (x *fastReflection_QueryPubKeyResponse) Set(fd protoreflect.FieldDescriptor // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPubKeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPubkeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryPubKeyResponse.active_pub_key": - if x.ActivePubKey == nil { - x.ActivePubKey = new(ActivePubKey) + case "fairyring.keyshare.QueryPubkeyResponse.active_pubkey": + if x.ActivePubkey == nil { + x.ActivePubkey = new(ActivePubKey) } - return protoreflect.ValueOfMessage(x.ActivePubKey.ProtoReflect()) - case "fairyring.keyshare.QueryPubKeyResponse.queued_pub_key": - if x.QueuedPubKey == nil { - x.QueuedPubKey = new(QueuedPubKey) + return protoreflect.ValueOfMessage(x.ActivePubkey.ProtoReflect()) + case "fairyring.keyshare.QueryPubkeyResponse.queued_pubkey": + if x.QueuedPubkey == nil { + x.QueuedPubkey = new(QueuedPubKey) } - return protoreflect.ValueOfMessage(x.QueuedPubKey.ProtoReflect()) + return protoreflect.ValueOfMessage(x.QueuedPubkey.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryPubkeyResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryPubKeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPubkeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryPubKeyResponse.active_pub_key": + case "fairyring.keyshare.QueryPubkeyResponse.active_pubkey": m := new(ActivePubKey) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.keyshare.QueryPubKeyResponse.queued_pub_key": + case "fairyring.keyshare.QueryPubkeyResponse.queued_pubkey": m := new(QueuedPubKey) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryPubkeyResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryPubKeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPubkeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryPubKeyResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryPubkeyResponse", d.FullName())) } panic("unreachable") } @@ -8724,7 +8724,7 @@ func (x *fastReflection_QueryPubKeyResponse) WhichOneof(d protoreflect.OneofDesc // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryPubKeyResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPubkeyResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8735,7 +8735,7 @@ func (x *fastReflection_QueryPubKeyResponse) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPubKeyResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPubkeyResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8747,7 +8747,7 @@ func (x *fastReflection_QueryPubKeyResponse) SetUnknown(fields protoreflect.RawF // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryPubKeyResponse) IsValid() bool { +func (x *fastReflection_QueryPubkeyResponse) IsValid() bool { return x != nil } @@ -8757,9 +8757,9 @@ func (x *fastReflection_QueryPubKeyResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPubkeyResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryPubKeyResponse) + x := input.Message.Interface().(*QueryPubkeyResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8771,12 +8771,12 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods var n int var l int _ = l - if x.ActivePubKey != nil { - l = options.Size(x.ActivePubKey) + if x.ActivePubkey != nil { + l = options.Size(x.ActivePubkey) n += 1 + l + runtime.Sov(uint64(l)) } - if x.QueuedPubKey != nil { - l = options.Size(x.QueuedPubKey) + if x.QueuedPubkey != nil { + l = options.Size(x.QueuedPubkey) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -8789,7 +8789,7 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryPubKeyResponse) + x := input.Message.Interface().(*QueryPubkeyResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8808,8 +8808,8 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.QueuedPubKey != nil { - encoded, err := options.Marshal(x.QueuedPubKey) + if x.QueuedPubkey != nil { + encoded, err := options.Marshal(x.QueuedPubkey) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8822,8 +8822,8 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods i-- dAtA[i] = 0x12 } - if x.ActivePubKey != nil { - encoded, err := options.Marshal(x.ActivePubKey) + if x.ActivePubkey != nil { + encoded, err := options.Marshal(x.ActivePubkey) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8847,7 +8847,7 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryPubKeyResponse) + x := input.Message.Interface().(*QueryPubkeyResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8879,15 +8879,15 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPubKeyResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPubkeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPubKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPubkeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActivePubKey", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActivePubkey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8914,16 +8914,16 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.ActivePubKey == nil { - x.ActivePubKey = &ActivePubKey{} + if x.ActivePubkey == nil { + x.ActivePubkey = &ActivePubKey{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ActivePubKey); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ActivePubkey); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueuedPubKey", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueuedPubkey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8950,10 +8950,10 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.QueuedPubKey == nil { - x.QueuedPubKey = &QueuedPubKey{} + if x.QueuedPubkey == nil { + x.QueuedPubkey = &QueuedPubKey{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.QueuedPubKey); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.QueuedPubkey); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -10856,29 +10856,29 @@ func (x *fastReflection_QueryAuthorizedAddressAllResponse) ProtoMethods() *proto } var ( - md_QueryGeneralKeyShareRequest protoreflect.MessageDescriptor - fd_QueryGeneralKeyShareRequest_validator protoreflect.FieldDescriptor - fd_QueryGeneralKeyShareRequest_id_type protoreflect.FieldDescriptor - fd_QueryGeneralKeyShareRequest_id_value protoreflect.FieldDescriptor + md_QueryGeneralKeyshareRequest protoreflect.MessageDescriptor + fd_QueryGeneralKeyshareRequest_validator protoreflect.FieldDescriptor + fd_QueryGeneralKeyshareRequest_id_type protoreflect.FieldDescriptor + fd_QueryGeneralKeyshareRequest_id_value protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryGeneralKeyShareRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGeneralKeyShareRequest") - fd_QueryGeneralKeyShareRequest_validator = md_QueryGeneralKeyShareRequest.Fields().ByName("validator") - fd_QueryGeneralKeyShareRequest_id_type = md_QueryGeneralKeyShareRequest.Fields().ByName("id_type") - fd_QueryGeneralKeyShareRequest_id_value = md_QueryGeneralKeyShareRequest.Fields().ByName("id_value") + md_QueryGeneralKeyshareRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGeneralKeyshareRequest") + fd_QueryGeneralKeyshareRequest_validator = md_QueryGeneralKeyshareRequest.Fields().ByName("validator") + fd_QueryGeneralKeyshareRequest_id_type = md_QueryGeneralKeyshareRequest.Fields().ByName("id_type") + fd_QueryGeneralKeyshareRequest_id_value = md_QueryGeneralKeyshareRequest.Fields().ByName("id_value") } -var _ protoreflect.Message = (*fastReflection_QueryGeneralKeyShareRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGeneralKeyshareRequest)(nil) -type fastReflection_QueryGeneralKeyShareRequest QueryGeneralKeyShareRequest +type fastReflection_QueryGeneralKeyshareRequest QueryGeneralKeyshareRequest -func (x *QueryGeneralKeyShareRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGeneralKeyShareRequest)(x) +func (x *QueryGeneralKeyshareRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGeneralKeyshareRequest)(x) } -func (x *QueryGeneralKeyShareRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryGeneralKeyshareRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -10890,43 +10890,43 @@ func (x *QueryGeneralKeyShareRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGeneralKeyShareRequest_messageType fastReflection_QueryGeneralKeyShareRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGeneralKeyShareRequest_messageType{} +var _fastReflection_QueryGeneralKeyshareRequest_messageType fastReflection_QueryGeneralKeyshareRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGeneralKeyshareRequest_messageType{} -type fastReflection_QueryGeneralKeyShareRequest_messageType struct{} +type fastReflection_QueryGeneralKeyshareRequest_messageType struct{} -func (x fastReflection_QueryGeneralKeyShareRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGeneralKeyShareRequest)(nil) +func (x fastReflection_QueryGeneralKeyshareRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGeneralKeyshareRequest)(nil) } -func (x fastReflection_QueryGeneralKeyShareRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGeneralKeyShareRequest) +func (x fastReflection_QueryGeneralKeyshareRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGeneralKeyshareRequest) } -func (x fastReflection_QueryGeneralKeyShareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGeneralKeyShareRequest +func (x fastReflection_QueryGeneralKeyshareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralKeyshareRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGeneralKeyShareRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGeneralKeyShareRequest +func (x *fastReflection_QueryGeneralKeyshareRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralKeyshareRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGeneralKeyShareRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGeneralKeyShareRequest_messageType +func (x *fastReflection_QueryGeneralKeyshareRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGeneralKeyshareRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGeneralKeyShareRequest) New() protoreflect.Message { - return new(fastReflection_QueryGeneralKeyShareRequest) +func (x *fastReflection_QueryGeneralKeyshareRequest) New() protoreflect.Message { + return new(fastReflection_QueryGeneralKeyshareRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGeneralKeyShareRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGeneralKeyShareRequest)(x) +func (x *fastReflection_QueryGeneralKeyshareRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGeneralKeyshareRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -10934,22 +10934,22 @@ func (x *fastReflection_QueryGeneralKeyShareRequest) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGeneralKeyShareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryGeneralKeyshareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Validator != "" { value := protoreflect.ValueOfString(x.Validator) - if !f(fd_QueryGeneralKeyShareRequest_validator, value) { + if !f(fd_QueryGeneralKeyshareRequest_validator, value) { return } } if x.IdType != "" { value := protoreflect.ValueOfString(x.IdType) - if !f(fd_QueryGeneralKeyShareRequest_id_type, value) { + if !f(fd_QueryGeneralKeyshareRequest_id_type, value) { return } } if x.IdValue != "" { value := protoreflect.ValueOfString(x.IdValue) - if !f(fd_QueryGeneralKeyShareRequest_id_value, value) { + if !f(fd_QueryGeneralKeyshareRequest_id_value, value) { return } } @@ -10966,19 +10966,19 @@ func (x *fastReflection_QueryGeneralKeyShareRequest) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGeneralKeyShareRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGeneralKeyshareRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareRequest.validator": + case "fairyring.keyshare.QueryGeneralKeyshareRequest.validator": return x.Validator != "" - case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_type": + case "fairyring.keyshare.QueryGeneralKeyshareRequest.id_type": return x.IdType != "" - case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_value": + case "fairyring.keyshare.QueryGeneralKeyshareRequest.id_value": return x.IdValue != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareRequest does not contain field %s", fd.FullName())) } } @@ -10988,19 +10988,19 @@ func (x *fastReflection_QueryGeneralKeyShareRequest) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGeneralKeyShareRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGeneralKeyshareRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareRequest.validator": + case "fairyring.keyshare.QueryGeneralKeyshareRequest.validator": x.Validator = "" - case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_type": + case "fairyring.keyshare.QueryGeneralKeyshareRequest.id_type": x.IdType = "" - case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_value": + case "fairyring.keyshare.QueryGeneralKeyshareRequest.id_value": x.IdValue = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareRequest does not contain field %s", fd.FullName())) } } @@ -11010,22 +11010,22 @@ func (x *fastReflection_QueryGeneralKeyShareRequest) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGeneralKeyShareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyshareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareRequest.validator": + case "fairyring.keyshare.QueryGeneralKeyshareRequest.validator": value := x.Validator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_type": + case "fairyring.keyshare.QueryGeneralKeyshareRequest.id_type": value := x.IdType return protoreflect.ValueOfString(value) - case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_value": + case "fairyring.keyshare.QueryGeneralKeyshareRequest.id_value": value := x.IdValue return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareRequest does not contain field %s", descriptor.FullName())) } } @@ -11039,19 +11039,19 @@ func (x *fastReflection_QueryGeneralKeyShareRequest) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGeneralKeyShareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGeneralKeyshareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareRequest.validator": + case "fairyring.keyshare.QueryGeneralKeyshareRequest.validator": x.Validator = value.Interface().(string) - case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_type": + case "fairyring.keyshare.QueryGeneralKeyshareRequest.id_type": x.IdType = value.Interface().(string) - case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_value": + case "fairyring.keyshare.QueryGeneralKeyshareRequest.id_value": x.IdValue = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareRequest does not contain field %s", fd.FullName())) } } @@ -11065,48 +11065,48 @@ func (x *fastReflection_QueryGeneralKeyShareRequest) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGeneralKeyShareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyshareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareRequest.validator": - panic(fmt.Errorf("field validator of message fairyring.keyshare.QueryGeneralKeyShareRequest is not mutable")) - case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_type": - panic(fmt.Errorf("field id_type of message fairyring.keyshare.QueryGeneralKeyShareRequest is not mutable")) - case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_value": - panic(fmt.Errorf("field id_value of message fairyring.keyshare.QueryGeneralKeyShareRequest is not mutable")) + case "fairyring.keyshare.QueryGeneralKeyshareRequest.validator": + panic(fmt.Errorf("field validator of message fairyring.keyshare.QueryGeneralKeyshareRequest is not mutable")) + case "fairyring.keyshare.QueryGeneralKeyshareRequest.id_type": + panic(fmt.Errorf("field id_type of message fairyring.keyshare.QueryGeneralKeyshareRequest is not mutable")) + case "fairyring.keyshare.QueryGeneralKeyshareRequest.id_value": + panic(fmt.Errorf("field id_value of message fairyring.keyshare.QueryGeneralKeyshareRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGeneralKeyShareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyshareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareRequest.validator": + case "fairyring.keyshare.QueryGeneralKeyshareRequest.validator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_type": + case "fairyring.keyshare.QueryGeneralKeyshareRequest.id_type": return protoreflect.ValueOfString("") - case "fairyring.keyshare.QueryGeneralKeyShareRequest.id_value": + case "fairyring.keyshare.QueryGeneralKeyshareRequest.id_value": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGeneralKeyShareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGeneralKeyshareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGeneralKeyShareRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGeneralKeyshareRequest", d.FullName())) } panic("unreachable") } @@ -11114,7 +11114,7 @@ func (x *fastReflection_QueryGeneralKeyShareRequest) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGeneralKeyShareRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGeneralKeyshareRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -11125,7 +11125,7 @@ func (x *fastReflection_QueryGeneralKeyShareRequest) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGeneralKeyShareRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGeneralKeyshareRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -11137,7 +11137,7 @@ func (x *fastReflection_QueryGeneralKeyShareRequest) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGeneralKeyShareRequest) IsValid() bool { +func (x *fastReflection_QueryGeneralKeyshareRequest) IsValid() bool { return x != nil } @@ -11147,9 +11147,9 @@ func (x *fastReflection_QueryGeneralKeyShareRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGeneralKeyShareRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGeneralKeyshareRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGeneralKeyShareRequest) + x := input.Message.Interface().(*QueryGeneralKeyshareRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11183,7 +11183,7 @@ func (x *fastReflection_QueryGeneralKeyShareRequest) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGeneralKeyShareRequest) + x := input.Message.Interface().(*QueryGeneralKeyshareRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11234,7 +11234,7 @@ func (x *fastReflection_QueryGeneralKeyShareRequest) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGeneralKeyShareRequest) + x := input.Message.Interface().(*QueryGeneralKeyshareRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11266,10 +11266,10 @@ func (x *fastReflection_QueryGeneralKeyShareRequest) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyShareRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyshareRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyshareRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -11404,25 +11404,25 @@ func (x *fastReflection_QueryGeneralKeyShareRequest) ProtoMethods() *protoiface. } var ( - md_QueryGeneralKeyShareResponse protoreflect.MessageDescriptor - fd_QueryGeneralKeyShareResponse_general_key_share protoreflect.FieldDescriptor + md_QueryGeneralKeyshareResponse protoreflect.MessageDescriptor + fd_QueryGeneralKeyshareResponse_general_keyshare protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryGeneralKeyShareResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGeneralKeyShareResponse") - fd_QueryGeneralKeyShareResponse_general_key_share = md_QueryGeneralKeyShareResponse.Fields().ByName("general_key_share") + md_QueryGeneralKeyshareResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGeneralKeyshareResponse") + fd_QueryGeneralKeyshareResponse_general_keyshare = md_QueryGeneralKeyshareResponse.Fields().ByName("general_keyshare") } -var _ protoreflect.Message = (*fastReflection_QueryGeneralKeyShareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGeneralKeyshareResponse)(nil) -type fastReflection_QueryGeneralKeyShareResponse QueryGeneralKeyShareResponse +type fastReflection_QueryGeneralKeyshareResponse QueryGeneralKeyshareResponse -func (x *QueryGeneralKeyShareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGeneralKeyShareResponse)(x) +func (x *QueryGeneralKeyshareResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGeneralKeyshareResponse)(x) } -func (x *QueryGeneralKeyShareResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryGeneralKeyshareResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11434,43 +11434,43 @@ func (x *QueryGeneralKeyShareResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryGeneralKeyShareResponse_messageType fastReflection_QueryGeneralKeyShareResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGeneralKeyShareResponse_messageType{} +var _fastReflection_QueryGeneralKeyshareResponse_messageType fastReflection_QueryGeneralKeyshareResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGeneralKeyshareResponse_messageType{} -type fastReflection_QueryGeneralKeyShareResponse_messageType struct{} +type fastReflection_QueryGeneralKeyshareResponse_messageType struct{} -func (x fastReflection_QueryGeneralKeyShareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGeneralKeyShareResponse)(nil) +func (x fastReflection_QueryGeneralKeyshareResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGeneralKeyshareResponse)(nil) } -func (x fastReflection_QueryGeneralKeyShareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGeneralKeyShareResponse) +func (x fastReflection_QueryGeneralKeyshareResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGeneralKeyshareResponse) } -func (x fastReflection_QueryGeneralKeyShareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGeneralKeyShareResponse +func (x fastReflection_QueryGeneralKeyshareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralKeyshareResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGeneralKeyShareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGeneralKeyShareResponse +func (x *fastReflection_QueryGeneralKeyshareResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralKeyshareResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGeneralKeyShareResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGeneralKeyShareResponse_messageType +func (x *fastReflection_QueryGeneralKeyshareResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGeneralKeyshareResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGeneralKeyShareResponse) New() protoreflect.Message { - return new(fastReflection_QueryGeneralKeyShareResponse) +func (x *fastReflection_QueryGeneralKeyshareResponse) New() protoreflect.Message { + return new(fastReflection_QueryGeneralKeyshareResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGeneralKeyShareResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGeneralKeyShareResponse)(x) +func (x *fastReflection_QueryGeneralKeyshareResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGeneralKeyshareResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -11478,10 +11478,10 @@ func (x *fastReflection_QueryGeneralKeyShareResponse) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGeneralKeyShareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.GeneralKeyShare != nil { - value := protoreflect.ValueOfMessage(x.GeneralKeyShare.ProtoReflect()) - if !f(fd_QueryGeneralKeyShareResponse_general_key_share, value) { +func (x *fastReflection_QueryGeneralKeyshareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.GeneralKeyshare != nil { + value := protoreflect.ValueOfMessage(x.GeneralKeyshare.ProtoReflect()) + if !f(fd_QueryGeneralKeyshareResponse_general_keyshare, value) { return } } @@ -11498,15 +11498,15 @@ func (x *fastReflection_QueryGeneralKeyShareResponse) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGeneralKeyShareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGeneralKeyshareResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareResponse.general_key_share": - return x.GeneralKeyShare != nil + case "fairyring.keyshare.QueryGeneralKeyshareResponse.general_keyshare": + return x.GeneralKeyshare != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareResponse does not contain field %s", fd.FullName())) } } @@ -11516,15 +11516,15 @@ func (x *fastReflection_QueryGeneralKeyShareResponse) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGeneralKeyShareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGeneralKeyshareResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareResponse.general_key_share": - x.GeneralKeyShare = nil + case "fairyring.keyshare.QueryGeneralKeyshareResponse.general_keyshare": + x.GeneralKeyshare = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareResponse does not contain field %s", fd.FullName())) } } @@ -11534,16 +11534,16 @@ func (x *fastReflection_QueryGeneralKeyShareResponse) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGeneralKeyShareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyshareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareResponse.general_key_share": - value := x.GeneralKeyShare + case "fairyring.keyshare.QueryGeneralKeyshareResponse.general_keyshare": + value := x.GeneralKeyshare return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareResponse does not contain field %s", descriptor.FullName())) } } @@ -11557,15 +11557,15 @@ func (x *fastReflection_QueryGeneralKeyShareResponse) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGeneralKeyShareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGeneralKeyshareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareResponse.general_key_share": - x.GeneralKeyShare = value.Message().Interface().(*GeneralKeyShare) + case "fairyring.keyshare.QueryGeneralKeyshareResponse.general_keyshare": + x.GeneralKeyshare = value.Message().Interface().(*GeneralKeyshare) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareResponse does not contain field %s", fd.FullName())) } } @@ -11579,44 +11579,44 @@ func (x *fastReflection_QueryGeneralKeyShareResponse) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGeneralKeyShareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyshareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareResponse.general_key_share": - if x.GeneralKeyShare == nil { - x.GeneralKeyShare = new(GeneralKeyShare) + case "fairyring.keyshare.QueryGeneralKeyshareResponse.general_keyshare": + if x.GeneralKeyshare == nil { + x.GeneralKeyshare = new(GeneralKeyshare) } - return protoreflect.ValueOfMessage(x.GeneralKeyShare.ProtoReflect()) + return protoreflect.ValueOfMessage(x.GeneralKeyshare.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGeneralKeyShareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyshareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareResponse.general_key_share": - m := new(GeneralKeyShare) + case "fairyring.keyshare.QueryGeneralKeyshareResponse.general_keyshare": + m := new(GeneralKeyshare) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGeneralKeyShareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGeneralKeyshareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGeneralKeyShareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGeneralKeyshareResponse", d.FullName())) } panic("unreachable") } @@ -11624,7 +11624,7 @@ func (x *fastReflection_QueryGeneralKeyShareResponse) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGeneralKeyShareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGeneralKeyshareResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -11635,7 +11635,7 @@ func (x *fastReflection_QueryGeneralKeyShareResponse) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGeneralKeyShareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGeneralKeyshareResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -11647,7 +11647,7 @@ func (x *fastReflection_QueryGeneralKeyShareResponse) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGeneralKeyShareResponse) IsValid() bool { +func (x *fastReflection_QueryGeneralKeyshareResponse) IsValid() bool { return x != nil } @@ -11657,9 +11657,9 @@ func (x *fastReflection_QueryGeneralKeyShareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGeneralKeyShareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGeneralKeyshareResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGeneralKeyShareResponse) + x := input.Message.Interface().(*QueryGeneralKeyshareResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11671,8 +11671,8 @@ func (x *fastReflection_QueryGeneralKeyShareResponse) ProtoMethods() *protoiface var n int var l int _ = l - if x.GeneralKeyShare != nil { - l = options.Size(x.GeneralKeyShare) + if x.GeneralKeyshare != nil { + l = options.Size(x.GeneralKeyshare) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -11685,7 +11685,7 @@ func (x *fastReflection_QueryGeneralKeyShareResponse) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGeneralKeyShareResponse) + x := input.Message.Interface().(*QueryGeneralKeyshareResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11704,8 +11704,8 @@ func (x *fastReflection_QueryGeneralKeyShareResponse) ProtoMethods() *protoiface i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.GeneralKeyShare != nil { - encoded, err := options.Marshal(x.GeneralKeyShare) + if x.GeneralKeyshare != nil { + encoded, err := options.Marshal(x.GeneralKeyshare) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11729,7 +11729,7 @@ func (x *fastReflection_QueryGeneralKeyShareResponse) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGeneralKeyShareResponse) + x := input.Message.Interface().(*QueryGeneralKeyshareResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11761,15 +11761,15 @@ func (x *fastReflection_QueryGeneralKeyShareResponse) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyShareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyshareResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GeneralKeyShare", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GeneralKeyshare", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -11796,10 +11796,10 @@ func (x *fastReflection_QueryGeneralKeyShareResponse) ProtoMethods() *protoiface if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.GeneralKeyShare == nil { - x.GeneralKeyShare = &GeneralKeyShare{} + if x.GeneralKeyshare == nil { + x.GeneralKeyshare = &GeneralKeyshare{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GeneralKeyShare); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GeneralKeyshare); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -11839,25 +11839,25 @@ func (x *fastReflection_QueryGeneralKeyShareResponse) ProtoMethods() *protoiface } var ( - md_QueryGeneralKeyShareAllRequest protoreflect.MessageDescriptor - fd_QueryGeneralKeyShareAllRequest_pagination protoreflect.FieldDescriptor + md_QueryGeneralKeyshareAllRequest protoreflect.MessageDescriptor + fd_QueryGeneralKeyshareAllRequest_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryGeneralKeyShareAllRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGeneralKeyShareAllRequest") - fd_QueryGeneralKeyShareAllRequest_pagination = md_QueryGeneralKeyShareAllRequest.Fields().ByName("pagination") + md_QueryGeneralKeyshareAllRequest = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGeneralKeyshareAllRequest") + fd_QueryGeneralKeyshareAllRequest_pagination = md_QueryGeneralKeyshareAllRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryGeneralKeyShareAllRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGeneralKeyshareAllRequest)(nil) -type fastReflection_QueryGeneralKeyShareAllRequest QueryGeneralKeyShareAllRequest +type fastReflection_QueryGeneralKeyshareAllRequest QueryGeneralKeyshareAllRequest -func (x *QueryGeneralKeyShareAllRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGeneralKeyShareAllRequest)(x) +func (x *QueryGeneralKeyshareAllRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGeneralKeyshareAllRequest)(x) } -func (x *QueryGeneralKeyShareAllRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryGeneralKeyshareAllRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11869,43 +11869,43 @@ func (x *QueryGeneralKeyShareAllRequest) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_QueryGeneralKeyShareAllRequest_messageType fastReflection_QueryGeneralKeyShareAllRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryGeneralKeyShareAllRequest_messageType{} +var _fastReflection_QueryGeneralKeyshareAllRequest_messageType fastReflection_QueryGeneralKeyshareAllRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGeneralKeyshareAllRequest_messageType{} -type fastReflection_QueryGeneralKeyShareAllRequest_messageType struct{} +type fastReflection_QueryGeneralKeyshareAllRequest_messageType struct{} -func (x fastReflection_QueryGeneralKeyShareAllRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGeneralKeyShareAllRequest)(nil) +func (x fastReflection_QueryGeneralKeyshareAllRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGeneralKeyshareAllRequest)(nil) } -func (x fastReflection_QueryGeneralKeyShareAllRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGeneralKeyShareAllRequest) +func (x fastReflection_QueryGeneralKeyshareAllRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGeneralKeyshareAllRequest) } -func (x fastReflection_QueryGeneralKeyShareAllRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGeneralKeyShareAllRequest +func (x fastReflection_QueryGeneralKeyshareAllRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralKeyshareAllRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGeneralKeyShareAllRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGeneralKeyShareAllRequest +func (x *fastReflection_QueryGeneralKeyshareAllRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralKeyshareAllRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGeneralKeyShareAllRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryGeneralKeyShareAllRequest_messageType +func (x *fastReflection_QueryGeneralKeyshareAllRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGeneralKeyshareAllRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGeneralKeyShareAllRequest) New() protoreflect.Message { - return new(fastReflection_QueryGeneralKeyShareAllRequest) +func (x *fastReflection_QueryGeneralKeyshareAllRequest) New() protoreflect.Message { + return new(fastReflection_QueryGeneralKeyshareAllRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGeneralKeyShareAllRequest) Interface() protoreflect.ProtoMessage { - return (*QueryGeneralKeyShareAllRequest)(x) +func (x *fastReflection_QueryGeneralKeyshareAllRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGeneralKeyshareAllRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -11913,10 +11913,10 @@ func (x *fastReflection_QueryGeneralKeyShareAllRequest) Interface() protoreflect // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGeneralKeyShareAllRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryGeneralKeyshareAllRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryGeneralKeyShareAllRequest_pagination, value) { + if !f(fd_QueryGeneralKeyshareAllRequest_pagination, value) { return } } @@ -11933,15 +11933,15 @@ func (x *fastReflection_QueryGeneralKeyShareAllRequest) Range(f func(protoreflec // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGeneralKeyShareAllRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGeneralKeyshareAllRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareAllRequest.pagination": + case "fairyring.keyshare.QueryGeneralKeyshareAllRequest.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareAllRequest does not contain field %s", fd.FullName())) } } @@ -11951,15 +11951,15 @@ func (x *fastReflection_QueryGeneralKeyShareAllRequest) Has(fd protoreflect.Fiel // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGeneralKeyShareAllRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGeneralKeyshareAllRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareAllRequest.pagination": + case "fairyring.keyshare.QueryGeneralKeyshareAllRequest.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareAllRequest does not contain field %s", fd.FullName())) } } @@ -11969,16 +11969,16 @@ func (x *fastReflection_QueryGeneralKeyShareAllRequest) Clear(fd protoreflect.Fi // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGeneralKeyShareAllRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyshareAllRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareAllRequest.pagination": + case "fairyring.keyshare.QueryGeneralKeyshareAllRequest.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareAllRequest does not contain field %s", descriptor.FullName())) } } @@ -11992,15 +11992,15 @@ func (x *fastReflection_QueryGeneralKeyShareAllRequest) Get(descriptor protorefl // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGeneralKeyShareAllRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGeneralKeyshareAllRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareAllRequest.pagination": + case "fairyring.keyshare.QueryGeneralKeyshareAllRequest.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareAllRequest does not contain field %s", fd.FullName())) } } @@ -12014,44 +12014,44 @@ func (x *fastReflection_QueryGeneralKeyShareAllRequest) Set(fd protoreflect.Fiel // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGeneralKeyShareAllRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyshareAllRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareAllRequest.pagination": + case "fairyring.keyshare.QueryGeneralKeyshareAllRequest.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareAllRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGeneralKeyShareAllRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyshareAllRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareAllRequest.pagination": + case "fairyring.keyshare.QueryGeneralKeyshareAllRequest.pagination": m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareAllRequest")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareAllRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGeneralKeyShareAllRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGeneralKeyshareAllRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGeneralKeyShareAllRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGeneralKeyshareAllRequest", d.FullName())) } panic("unreachable") } @@ -12059,7 +12059,7 @@ func (x *fastReflection_QueryGeneralKeyShareAllRequest) WhichOneof(d protoreflec // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGeneralKeyShareAllRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGeneralKeyshareAllRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -12070,7 +12070,7 @@ func (x *fastReflection_QueryGeneralKeyShareAllRequest) GetUnknown() protoreflec // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGeneralKeyShareAllRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGeneralKeyshareAllRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -12082,7 +12082,7 @@ func (x *fastReflection_QueryGeneralKeyShareAllRequest) SetUnknown(fields protor // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGeneralKeyShareAllRequest) IsValid() bool { +func (x *fastReflection_QueryGeneralKeyshareAllRequest) IsValid() bool { return x != nil } @@ -12092,9 +12092,9 @@ func (x *fastReflection_QueryGeneralKeyShareAllRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGeneralKeyShareAllRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGeneralKeyshareAllRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGeneralKeyShareAllRequest) + x := input.Message.Interface().(*QueryGeneralKeyshareAllRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12120,7 +12120,7 @@ func (x *fastReflection_QueryGeneralKeyShareAllRequest) ProtoMethods() *protoifa } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGeneralKeyShareAllRequest) + x := input.Message.Interface().(*QueryGeneralKeyshareAllRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12164,7 +12164,7 @@ func (x *fastReflection_QueryGeneralKeyShareAllRequest) ProtoMethods() *protoifa }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGeneralKeyShareAllRequest) + x := input.Message.Interface().(*QueryGeneralKeyshareAllRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12196,10 +12196,10 @@ func (x *fastReflection_QueryGeneralKeyShareAllRequest) ProtoMethods() *protoifa fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyShareAllRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyshareAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyShareAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyshareAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -12273,79 +12273,79 @@ func (x *fastReflection_QueryGeneralKeyShareAllRequest) ProtoMethods() *protoifa } } -var _ protoreflect.List = (*_QueryGeneralKeyShareAllResponse_1_list)(nil) +var _ protoreflect.List = (*_QueryGeneralKeyshareAllResponse_1_list)(nil) -type _QueryGeneralKeyShareAllResponse_1_list struct { - list *[]*GeneralKeyShare +type _QueryGeneralKeyshareAllResponse_1_list struct { + list *[]*GeneralKeyshare } -func (x *_QueryGeneralKeyShareAllResponse_1_list) Len() int { +func (x *_QueryGeneralKeyshareAllResponse_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryGeneralKeyShareAllResponse_1_list) Get(i int) protoreflect.Value { +func (x *_QueryGeneralKeyshareAllResponse_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryGeneralKeyShareAllResponse_1_list) Set(i int, value protoreflect.Value) { +func (x *_QueryGeneralKeyshareAllResponse_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GeneralKeyShare) + concreteValue := valueUnwrapped.Interface().(*GeneralKeyshare) (*x.list)[i] = concreteValue } -func (x *_QueryGeneralKeyShareAllResponse_1_list) Append(value protoreflect.Value) { +func (x *_QueryGeneralKeyshareAllResponse_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*GeneralKeyShare) + concreteValue := valueUnwrapped.Interface().(*GeneralKeyshare) *x.list = append(*x.list, concreteValue) } -func (x *_QueryGeneralKeyShareAllResponse_1_list) AppendMutable() protoreflect.Value { - v := new(GeneralKeyShare) +func (x *_QueryGeneralKeyshareAllResponse_1_list) AppendMutable() protoreflect.Value { + v := new(GeneralKeyshare) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryGeneralKeyShareAllResponse_1_list) Truncate(n int) { +func (x *_QueryGeneralKeyshareAllResponse_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryGeneralKeyShareAllResponse_1_list) NewElement() protoreflect.Value { - v := new(GeneralKeyShare) +func (x *_QueryGeneralKeyshareAllResponse_1_list) NewElement() protoreflect.Value { + v := new(GeneralKeyshare) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryGeneralKeyShareAllResponse_1_list) IsValid() bool { +func (x *_QueryGeneralKeyshareAllResponse_1_list) IsValid() bool { return x.list != nil } var ( - md_QueryGeneralKeyShareAllResponse protoreflect.MessageDescriptor - fd_QueryGeneralKeyShareAllResponse_general_key_share protoreflect.FieldDescriptor - fd_QueryGeneralKeyShareAllResponse_pagination protoreflect.FieldDescriptor + md_QueryGeneralKeyshareAllResponse protoreflect.MessageDescriptor + fd_QueryGeneralKeyshareAllResponse_general_keyshare protoreflect.FieldDescriptor + fd_QueryGeneralKeyshareAllResponse_pagination protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_query_proto_init() - md_QueryGeneralKeyShareAllResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGeneralKeyShareAllResponse") - fd_QueryGeneralKeyShareAllResponse_general_key_share = md_QueryGeneralKeyShareAllResponse.Fields().ByName("general_key_share") - fd_QueryGeneralKeyShareAllResponse_pagination = md_QueryGeneralKeyShareAllResponse.Fields().ByName("pagination") + md_QueryGeneralKeyshareAllResponse = File_fairyring_keyshare_query_proto.Messages().ByName("QueryGeneralKeyshareAllResponse") + fd_QueryGeneralKeyshareAllResponse_general_keyshare = md_QueryGeneralKeyshareAllResponse.Fields().ByName("general_keyshare") + fd_QueryGeneralKeyshareAllResponse_pagination = md_QueryGeneralKeyshareAllResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryGeneralKeyShareAllResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryGeneralKeyshareAllResponse)(nil) -type fastReflection_QueryGeneralKeyShareAllResponse QueryGeneralKeyShareAllResponse +type fastReflection_QueryGeneralKeyshareAllResponse QueryGeneralKeyshareAllResponse -func (x *QueryGeneralKeyShareAllResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryGeneralKeyShareAllResponse)(x) +func (x *QueryGeneralKeyshareAllResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGeneralKeyshareAllResponse)(x) } -func (x *QueryGeneralKeyShareAllResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryGeneralKeyshareAllResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_query_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -12357,43 +12357,43 @@ func (x *QueryGeneralKeyShareAllResponse) slowProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -var _fastReflection_QueryGeneralKeyShareAllResponse_messageType fastReflection_QueryGeneralKeyShareAllResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryGeneralKeyShareAllResponse_messageType{} +var _fastReflection_QueryGeneralKeyshareAllResponse_messageType fastReflection_QueryGeneralKeyshareAllResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGeneralKeyshareAllResponse_messageType{} -type fastReflection_QueryGeneralKeyShareAllResponse_messageType struct{} +type fastReflection_QueryGeneralKeyshareAllResponse_messageType struct{} -func (x fastReflection_QueryGeneralKeyShareAllResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryGeneralKeyShareAllResponse)(nil) +func (x fastReflection_QueryGeneralKeyshareAllResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGeneralKeyshareAllResponse)(nil) } -func (x fastReflection_QueryGeneralKeyShareAllResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryGeneralKeyShareAllResponse) +func (x fastReflection_QueryGeneralKeyshareAllResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGeneralKeyshareAllResponse) } -func (x fastReflection_QueryGeneralKeyShareAllResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGeneralKeyShareAllResponse +func (x fastReflection_QueryGeneralKeyshareAllResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralKeyshareAllResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryGeneralKeyShareAllResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryGeneralKeyShareAllResponse +func (x *fastReflection_QueryGeneralKeyshareAllResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGeneralKeyshareAllResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryGeneralKeyShareAllResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryGeneralKeyShareAllResponse_messageType +func (x *fastReflection_QueryGeneralKeyshareAllResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGeneralKeyshareAllResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryGeneralKeyShareAllResponse) New() protoreflect.Message { - return new(fastReflection_QueryGeneralKeyShareAllResponse) +func (x *fastReflection_QueryGeneralKeyshareAllResponse) New() protoreflect.Message { + return new(fastReflection_QueryGeneralKeyshareAllResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryGeneralKeyShareAllResponse) Interface() protoreflect.ProtoMessage { - return (*QueryGeneralKeyShareAllResponse)(x) +func (x *fastReflection_QueryGeneralKeyshareAllResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGeneralKeyshareAllResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -12401,16 +12401,16 @@ func (x *fastReflection_QueryGeneralKeyShareAllResponse) Interface() protoreflec // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryGeneralKeyShareAllResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.GeneralKeyShare) != 0 { - value := protoreflect.ValueOfList(&_QueryGeneralKeyShareAllResponse_1_list{list: &x.GeneralKeyShare}) - if !f(fd_QueryGeneralKeyShareAllResponse_general_key_share, value) { +func (x *fastReflection_QueryGeneralKeyshareAllResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.GeneralKeyshare) != 0 { + value := protoreflect.ValueOfList(&_QueryGeneralKeyshareAllResponse_1_list{list: &x.GeneralKeyshare}) + if !f(fd_QueryGeneralKeyshareAllResponse_general_keyshare, value) { return } } if x.Pagination != nil { value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryGeneralKeyShareAllResponse_pagination, value) { + if !f(fd_QueryGeneralKeyshareAllResponse_pagination, value) { return } } @@ -12427,17 +12427,17 @@ func (x *fastReflection_QueryGeneralKeyShareAllResponse) Range(f func(protorefle // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryGeneralKeyShareAllResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryGeneralKeyshareAllResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.general_key_share": - return len(x.GeneralKeyShare) != 0 - case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.pagination": + case "fairyring.keyshare.QueryGeneralKeyshareAllResponse.general_keyshare": + return len(x.GeneralKeyshare) != 0 + case "fairyring.keyshare.QueryGeneralKeyshareAllResponse.pagination": return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareAllResponse does not contain field %s", fd.FullName())) } } @@ -12447,17 +12447,17 @@ func (x *fastReflection_QueryGeneralKeyShareAllResponse) Has(fd protoreflect.Fie // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGeneralKeyShareAllResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryGeneralKeyshareAllResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.general_key_share": - x.GeneralKeyShare = nil - case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.pagination": + case "fairyring.keyshare.QueryGeneralKeyshareAllResponse.general_keyshare": + x.GeneralKeyshare = nil + case "fairyring.keyshare.QueryGeneralKeyshareAllResponse.pagination": x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareAllResponse does not contain field %s", fd.FullName())) } } @@ -12467,22 +12467,22 @@ func (x *fastReflection_QueryGeneralKeyShareAllResponse) Clear(fd protoreflect.F // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryGeneralKeyShareAllResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyshareAllResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.general_key_share": - if len(x.GeneralKeyShare) == 0 { - return protoreflect.ValueOfList(&_QueryGeneralKeyShareAllResponse_1_list{}) + case "fairyring.keyshare.QueryGeneralKeyshareAllResponse.general_keyshare": + if len(x.GeneralKeyshare) == 0 { + return protoreflect.ValueOfList(&_QueryGeneralKeyshareAllResponse_1_list{}) } - listValue := &_QueryGeneralKeyShareAllResponse_1_list{list: &x.GeneralKeyShare} + listValue := &_QueryGeneralKeyshareAllResponse_1_list{list: &x.GeneralKeyshare} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.pagination": + case "fairyring.keyshare.QueryGeneralKeyshareAllResponse.pagination": value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareAllResponse does not contain field %s", descriptor.FullName())) } } @@ -12496,19 +12496,19 @@ func (x *fastReflection_QueryGeneralKeyShareAllResponse) Get(descriptor protoref // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGeneralKeyShareAllResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryGeneralKeyshareAllResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.general_key_share": + case "fairyring.keyshare.QueryGeneralKeyshareAllResponse.general_keyshare": lv := value.List() - clv := lv.(*_QueryGeneralKeyShareAllResponse_1_list) - x.GeneralKeyShare = *clv.list - case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.pagination": + clv := lv.(*_QueryGeneralKeyshareAllResponse_1_list) + x.GeneralKeyshare = *clv.list + case "fairyring.keyshare.QueryGeneralKeyshareAllResponse.pagination": x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareAllResponse does not contain field %s", fd.FullName())) } } @@ -12522,53 +12522,53 @@ func (x *fastReflection_QueryGeneralKeyShareAllResponse) Set(fd protoreflect.Fie // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGeneralKeyShareAllResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyshareAllResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.general_key_share": - if x.GeneralKeyShare == nil { - x.GeneralKeyShare = []*GeneralKeyShare{} + case "fairyring.keyshare.QueryGeneralKeyshareAllResponse.general_keyshare": + if x.GeneralKeyshare == nil { + x.GeneralKeyshare = []*GeneralKeyshare{} } - value := &_QueryGeneralKeyShareAllResponse_1_list{list: &x.GeneralKeyShare} + value := &_QueryGeneralKeyshareAllResponse_1_list{list: &x.GeneralKeyshare} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.pagination": + case "fairyring.keyshare.QueryGeneralKeyshareAllResponse.pagination": if x.Pagination == nil { x.Pagination = new(v1beta1.PageResponse) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareAllResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryGeneralKeyShareAllResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryGeneralKeyshareAllResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.general_key_share": - list := []*GeneralKeyShare{} - return protoreflect.ValueOfList(&_QueryGeneralKeyShareAllResponse_1_list{list: &list}) - case "fairyring.keyshare.QueryGeneralKeyShareAllResponse.pagination": + case "fairyring.keyshare.QueryGeneralKeyshareAllResponse.general_keyshare": + list := []*GeneralKeyshare{} + return protoreflect.ValueOfList(&_QueryGeneralKeyshareAllResponse_1_list{list: &list}) + case "fairyring.keyshare.QueryGeneralKeyshareAllResponse.pagination": m := new(v1beta1.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyShareAllResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryGeneralKeyshareAllResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyShareAllResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueryGeneralKeyshareAllResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryGeneralKeyShareAllResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryGeneralKeyshareAllResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGeneralKeyShareAllResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueryGeneralKeyshareAllResponse", d.FullName())) } panic("unreachable") } @@ -12576,7 +12576,7 @@ func (x *fastReflection_QueryGeneralKeyShareAllResponse) WhichOneof(d protorefle // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryGeneralKeyShareAllResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryGeneralKeyshareAllResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -12587,7 +12587,7 @@ func (x *fastReflection_QueryGeneralKeyShareAllResponse) GetUnknown() protorefle // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryGeneralKeyShareAllResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryGeneralKeyshareAllResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -12599,7 +12599,7 @@ func (x *fastReflection_QueryGeneralKeyShareAllResponse) SetUnknown(fields proto // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryGeneralKeyShareAllResponse) IsValid() bool { +func (x *fastReflection_QueryGeneralKeyshareAllResponse) IsValid() bool { return x != nil } @@ -12609,9 +12609,9 @@ func (x *fastReflection_QueryGeneralKeyShareAllResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryGeneralKeyShareAllResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryGeneralKeyshareAllResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryGeneralKeyShareAllResponse) + x := input.Message.Interface().(*QueryGeneralKeyshareAllResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12623,8 +12623,8 @@ func (x *fastReflection_QueryGeneralKeyShareAllResponse) ProtoMethods() *protoif var n int var l int _ = l - if len(x.GeneralKeyShare) > 0 { - for _, e := range x.GeneralKeyShare { + if len(x.GeneralKeyshare) > 0 { + for _, e := range x.GeneralKeyshare { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -12643,7 +12643,7 @@ func (x *fastReflection_QueryGeneralKeyShareAllResponse) ProtoMethods() *protoif } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryGeneralKeyShareAllResponse) + x := input.Message.Interface().(*QueryGeneralKeyshareAllResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12676,9 +12676,9 @@ func (x *fastReflection_QueryGeneralKeyShareAllResponse) ProtoMethods() *protoif i-- dAtA[i] = 0x12 } - if len(x.GeneralKeyShare) > 0 { - for iNdEx := len(x.GeneralKeyShare) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.GeneralKeyShare[iNdEx]) + if len(x.GeneralKeyshare) > 0 { + for iNdEx := len(x.GeneralKeyshare) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.GeneralKeyshare[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12703,7 +12703,7 @@ func (x *fastReflection_QueryGeneralKeyShareAllResponse) ProtoMethods() *protoif }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryGeneralKeyShareAllResponse) + x := input.Message.Interface().(*QueryGeneralKeyshareAllResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12735,15 +12735,15 @@ func (x *fastReflection_QueryGeneralKeyShareAllResponse) ProtoMethods() *protoif fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyShareAllResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyshareAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyShareAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGeneralKeyshareAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GeneralKeyShare", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GeneralKeyshare", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -12770,8 +12770,8 @@ func (x *fastReflection_QueryGeneralKeyShareAllResponse) ProtoMethods() *protoif if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.GeneralKeyShare = append(x.GeneralKeyShare, &GeneralKeyShare{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GeneralKeyShare[len(x.GeneralKeyShare)-1]); err != nil { + x.GeneralKeyshare = append(x.GeneralKeyshare, &GeneralKeyshare{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GeneralKeyshare[len(x.GeneralKeyshare)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -13220,7 +13220,7 @@ func (x *QueryValidatorSetAllResponse) GetPagination() *v1beta1.PageResponse { } // QueryKeyShareRequest is request type for the Query/KeyShare RPC method. -type QueryKeyShareRequest struct { +type QueryKeyshareRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -13229,8 +13229,8 @@ type QueryKeyShareRequest struct { BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } -func (x *QueryKeyShareRequest) Reset() { - *x = QueryKeyShareRequest{} +func (x *QueryKeyshareRequest) Reset() { + *x = QueryKeyshareRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13238,25 +13238,25 @@ func (x *QueryKeyShareRequest) Reset() { } } -func (x *QueryKeyShareRequest) String() string { +func (x *QueryKeyshareRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryKeyShareRequest) ProtoMessage() {} +func (*QueryKeyshareRequest) ProtoMessage() {} -// Deprecated: Use QueryKeyShareRequest.ProtoReflect.Descriptor instead. -func (*QueryKeyShareRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryKeyshareRequest.ProtoReflect.Descriptor instead. +func (*QueryKeyshareRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{10} } -func (x *QueryKeyShareRequest) GetValidator() string { +func (x *QueryKeyshareRequest) GetValidator() string { if x != nil { return x.Validator } return "" } -func (x *QueryKeyShareRequest) GetBlockHeight() uint64 { +func (x *QueryKeyshareRequest) GetBlockHeight() uint64 { if x != nil { return x.BlockHeight } @@ -13264,16 +13264,16 @@ func (x *QueryKeyShareRequest) GetBlockHeight() uint64 { } // QueryKeyShareResponse is response type for the Query/KeyShare RPC method. -type QueryKeyShareResponse struct { +type QueryKeyshareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - KeyShare *KeyShare `protobuf:"bytes,1,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` + Keyshare *Keyshare `protobuf:"bytes,1,opt,name=keyshare,proto3" json:"keyshare,omitempty"` } -func (x *QueryKeyShareResponse) Reset() { - *x = QueryKeyShareResponse{} +func (x *QueryKeyshareResponse) Reset() { + *x = QueryKeyshareResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13281,26 +13281,26 @@ func (x *QueryKeyShareResponse) Reset() { } } -func (x *QueryKeyShareResponse) String() string { +func (x *QueryKeyshareResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryKeyShareResponse) ProtoMessage() {} +func (*QueryKeyshareResponse) ProtoMessage() {} -// Deprecated: Use QueryKeyShareResponse.ProtoReflect.Descriptor instead. -func (*QueryKeyShareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryKeyshareResponse.ProtoReflect.Descriptor instead. +func (*QueryKeyshareResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{11} } -func (x *QueryKeyShareResponse) GetKeyShare() *KeyShare { +func (x *QueryKeyshareResponse) GetKeyshare() *Keyshare { if x != nil { - return x.KeyShare + return x.Keyshare } return nil } // QueryKeyShareAllRequest is request type for the Query/KeyShareAll RPC method. -type QueryKeyShareAllRequest struct { +type QueryKeyshareAllRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -13308,8 +13308,8 @@ type QueryKeyShareAllRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryKeyShareAllRequest) Reset() { - *x = QueryKeyShareAllRequest{} +func (x *QueryKeyshareAllRequest) Reset() { + *x = QueryKeyshareAllRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13317,18 +13317,18 @@ func (x *QueryKeyShareAllRequest) Reset() { } } -func (x *QueryKeyShareAllRequest) String() string { +func (x *QueryKeyshareAllRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryKeyShareAllRequest) ProtoMessage() {} +func (*QueryKeyshareAllRequest) ProtoMessage() {} -// Deprecated: Use QueryKeyShareAllRequest.ProtoReflect.Descriptor instead. -func (*QueryKeyShareAllRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryKeyshareAllRequest.ProtoReflect.Descriptor instead. +func (*QueryKeyshareAllRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{12} } -func (x *QueryKeyShareAllRequest) GetPagination() *v1beta1.PageRequest { +func (x *QueryKeyshareAllRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination } @@ -13336,17 +13336,17 @@ func (x *QueryKeyShareAllRequest) GetPagination() *v1beta1.PageRequest { } // QueryKeyShareAllResponse is response type for the Query/KeyShareAll RPC method. -type QueryKeyShareAllResponse struct { +type QueryKeyshareAllResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - KeyShare []*KeyShare `protobuf:"bytes,1,rep,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` + Keyshare []*Keyshare `protobuf:"bytes,1,rep,name=keyshare,proto3" json:"keyshare,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryKeyShareAllResponse) Reset() { - *x = QueryKeyShareAllResponse{} +func (x *QueryKeyshareAllResponse) Reset() { + *x = QueryKeyshareAllResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13354,25 +13354,25 @@ func (x *QueryKeyShareAllResponse) Reset() { } } -func (x *QueryKeyShareAllResponse) String() string { +func (x *QueryKeyshareAllResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryKeyShareAllResponse) ProtoMessage() {} +func (*QueryKeyshareAllResponse) ProtoMessage() {} -// Deprecated: Use QueryKeyShareAllResponse.ProtoReflect.Descriptor instead. -func (*QueryKeyShareAllResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryKeyshareAllResponse.ProtoReflect.Descriptor instead. +func (*QueryKeyshareAllResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{13} } -func (x *QueryKeyShareAllResponse) GetKeyShare() []*KeyShare { +func (x *QueryKeyshareAllResponse) GetKeyshare() []*Keyshare { if x != nil { - return x.KeyShare + return x.Keyshare } return nil } -func (x *QueryKeyShareAllResponse) GetPagination() *v1beta1.PageResponse { +func (x *QueryKeyshareAllResponse) GetPagination() *v1beta1.PageResponse { if x != nil { return x.Pagination } @@ -13421,7 +13421,7 @@ type QueryDecryptionKeyResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DecryptionKey *AggregatedKeyShare `protobuf:"bytes,1,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key,omitempty"` + DecryptionKey *DecryptionKey `protobuf:"bytes,1,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key,omitempty"` } func (x *QueryDecryptionKeyResponse) Reset() { @@ -13444,7 +13444,7 @@ func (*QueryDecryptionKeyResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{15} } -func (x *QueryDecryptionKeyResponse) GetDecryptionKey() *AggregatedKeyShare { +func (x *QueryDecryptionKeyResponse) GetDecryptionKey() *DecryptionKey { if x != nil { return x.DecryptionKey } @@ -13493,7 +13493,7 @@ type QueryDecryptionKeyAllResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DecryptionKeys []*AggregatedKeyShare `protobuf:"bytes,1,rep,name=decryption_keys,json=decryptionKeys,proto3" json:"decryption_keys,omitempty"` + DecryptionKeys []*DecryptionKey `protobuf:"bytes,1,rep,name=decryption_keys,json=decryptionKeys,proto3" json:"decryption_keys,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -13517,7 +13517,7 @@ func (*QueryDecryptionKeyAllResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{17} } -func (x *QueryDecryptionKeyAllResponse) GetDecryptionKeys() []*AggregatedKeyShare { +func (x *QueryDecryptionKeyAllResponse) GetDecryptionKeys() []*DecryptionKey { if x != nil { return x.DecryptionKeys } @@ -13532,14 +13532,14 @@ func (x *QueryDecryptionKeyAllResponse) GetPagination() *v1beta1.PageResponse { } // QueryPubKeyRequest is request type for the Query/PubKey RPC method. -type QueryPubKeyRequest struct { +type QueryPubkeyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *QueryPubKeyRequest) Reset() { - *x = QueryPubKeyRequest{} +func (x *QueryPubkeyRequest) Reset() { + *x = QueryPubkeyRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13547,29 +13547,29 @@ func (x *QueryPubKeyRequest) Reset() { } } -func (x *QueryPubKeyRequest) String() string { +func (x *QueryPubkeyRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryPubKeyRequest) ProtoMessage() {} +func (*QueryPubkeyRequest) ProtoMessage() {} -// Deprecated: Use QueryPubKeyRequest.ProtoReflect.Descriptor instead. -func (*QueryPubKeyRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryPubkeyRequest.ProtoReflect.Descriptor instead. +func (*QueryPubkeyRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{18} } // QueryPubKeyResponse is response type for the Query/PubKey RPC method. -type QueryPubKeyResponse struct { +type QueryPubkeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ActivePubKey *ActivePubKey `protobuf:"bytes,1,opt,name=active_pub_key,json=activePubKey,proto3" json:"active_pub_key,omitempty"` - QueuedPubKey *QueuedPubKey `protobuf:"bytes,2,opt,name=queued_pub_key,json=queuedPubKey,proto3" json:"queued_pub_key,omitempty"` + ActivePubkey *ActivePubKey `protobuf:"bytes,1,opt,name=active_pubkey,json=activePubkey,proto3" json:"active_pubkey,omitempty"` + QueuedPubkey *QueuedPubKey `protobuf:"bytes,2,opt,name=queued_pubkey,json=queuedPubkey,proto3" json:"queued_pubkey,omitempty"` } -func (x *QueryPubKeyResponse) Reset() { - *x = QueryPubKeyResponse{} +func (x *QueryPubkeyResponse) Reset() { + *x = QueryPubkeyResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13577,27 +13577,27 @@ func (x *QueryPubKeyResponse) Reset() { } } -func (x *QueryPubKeyResponse) String() string { +func (x *QueryPubkeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryPubKeyResponse) ProtoMessage() {} +func (*QueryPubkeyResponse) ProtoMessage() {} -// Deprecated: Use QueryPubKeyResponse.ProtoReflect.Descriptor instead. -func (*QueryPubKeyResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryPubkeyResponse.ProtoReflect.Descriptor instead. +func (*QueryPubkeyResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{19} } -func (x *QueryPubKeyResponse) GetActivePubKey() *ActivePubKey { +func (x *QueryPubkeyResponse) GetActivePubkey() *ActivePubKey { if x != nil { - return x.ActivePubKey + return x.ActivePubkey } return nil } -func (x *QueryPubKeyResponse) GetQueuedPubKey() *QueuedPubKey { +func (x *QueryPubkeyResponse) GetQueuedPubkey() *QueuedPubKey { if x != nil { - return x.QueuedPubKey + return x.QueuedPubkey } return nil } @@ -13755,7 +13755,7 @@ func (x *QueryAuthorizedAddressAllResponse) GetPagination() *v1beta1.PageRespons } // QueryGeneralKeyShareRequest is request type for the Query/GeneralKeyShare RPC method. -type QueryGeneralKeyShareRequest struct { +type QueryGeneralKeyshareRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -13765,8 +13765,8 @@ type QueryGeneralKeyShareRequest struct { IdValue string `protobuf:"bytes,3,opt,name=id_value,json=idValue,proto3" json:"id_value,omitempty"` } -func (x *QueryGeneralKeyShareRequest) Reset() { - *x = QueryGeneralKeyShareRequest{} +func (x *QueryGeneralKeyshareRequest) Reset() { + *x = QueryGeneralKeyshareRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13774,32 +13774,32 @@ func (x *QueryGeneralKeyShareRequest) Reset() { } } -func (x *QueryGeneralKeyShareRequest) String() string { +func (x *QueryGeneralKeyshareRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGeneralKeyShareRequest) ProtoMessage() {} +func (*QueryGeneralKeyshareRequest) ProtoMessage() {} -// Deprecated: Use QueryGeneralKeyShareRequest.ProtoReflect.Descriptor instead. -func (*QueryGeneralKeyShareRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryGeneralKeyshareRequest.ProtoReflect.Descriptor instead. +func (*QueryGeneralKeyshareRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{24} } -func (x *QueryGeneralKeyShareRequest) GetValidator() string { +func (x *QueryGeneralKeyshareRequest) GetValidator() string { if x != nil { return x.Validator } return "" } -func (x *QueryGeneralKeyShareRequest) GetIdType() string { +func (x *QueryGeneralKeyshareRequest) GetIdType() string { if x != nil { return x.IdType } return "" } -func (x *QueryGeneralKeyShareRequest) GetIdValue() string { +func (x *QueryGeneralKeyshareRequest) GetIdValue() string { if x != nil { return x.IdValue } @@ -13807,16 +13807,16 @@ func (x *QueryGeneralKeyShareRequest) GetIdValue() string { } // QueryGeneralKeyShareResponse is response type for the Query/GeneralKeyShare RPC method. -type QueryGeneralKeyShareResponse struct { +type QueryGeneralKeyshareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - GeneralKeyShare *GeneralKeyShare `protobuf:"bytes,1,opt,name=general_key_share,json=generalKeyShare,proto3" json:"general_key_share,omitempty"` + GeneralKeyshare *GeneralKeyshare `protobuf:"bytes,1,opt,name=general_keyshare,json=generalKeyshare,proto3" json:"general_keyshare,omitempty"` } -func (x *QueryGeneralKeyShareResponse) Reset() { - *x = QueryGeneralKeyShareResponse{} +func (x *QueryGeneralKeyshareResponse) Reset() { + *x = QueryGeneralKeyshareResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13824,26 +13824,26 @@ func (x *QueryGeneralKeyShareResponse) Reset() { } } -func (x *QueryGeneralKeyShareResponse) String() string { +func (x *QueryGeneralKeyshareResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGeneralKeyShareResponse) ProtoMessage() {} +func (*QueryGeneralKeyshareResponse) ProtoMessage() {} -// Deprecated: Use QueryGeneralKeyShareResponse.ProtoReflect.Descriptor instead. -func (*QueryGeneralKeyShareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryGeneralKeyshareResponse.ProtoReflect.Descriptor instead. +func (*QueryGeneralKeyshareResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{25} } -func (x *QueryGeneralKeyShareResponse) GetGeneralKeyShare() *GeneralKeyShare { +func (x *QueryGeneralKeyshareResponse) GetGeneralKeyshare() *GeneralKeyshare { if x != nil { - return x.GeneralKeyShare + return x.GeneralKeyshare } return nil } // QueryGeneralKeyShareAllRequest is request type for the Query/GeneralKeyShareAll RPC method. -type QueryGeneralKeyShareAllRequest struct { +type QueryGeneralKeyshareAllRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -13851,8 +13851,8 @@ type QueryGeneralKeyShareAllRequest struct { Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryGeneralKeyShareAllRequest) Reset() { - *x = QueryGeneralKeyShareAllRequest{} +func (x *QueryGeneralKeyshareAllRequest) Reset() { + *x = QueryGeneralKeyshareAllRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13860,18 +13860,18 @@ func (x *QueryGeneralKeyShareAllRequest) Reset() { } } -func (x *QueryGeneralKeyShareAllRequest) String() string { +func (x *QueryGeneralKeyshareAllRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGeneralKeyShareAllRequest) ProtoMessage() {} +func (*QueryGeneralKeyshareAllRequest) ProtoMessage() {} -// Deprecated: Use QueryGeneralKeyShareAllRequest.ProtoReflect.Descriptor instead. -func (*QueryGeneralKeyShareAllRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryGeneralKeyshareAllRequest.ProtoReflect.Descriptor instead. +func (*QueryGeneralKeyshareAllRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{26} } -func (x *QueryGeneralKeyShareAllRequest) GetPagination() *v1beta1.PageRequest { +func (x *QueryGeneralKeyshareAllRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination } @@ -13879,17 +13879,17 @@ func (x *QueryGeneralKeyShareAllRequest) GetPagination() *v1beta1.PageRequest { } // QueryGeneralKeyShareAllResponse is response type for the Query/GeneralKeyShareAll RPC method. -type QueryGeneralKeyShareAllResponse struct { +type QueryGeneralKeyshareAllResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - GeneralKeyShare []*GeneralKeyShare `protobuf:"bytes,1,rep,name=general_key_share,json=generalKeyShare,proto3" json:"general_key_share,omitempty"` + GeneralKeyshare []*GeneralKeyshare `protobuf:"bytes,1,rep,name=general_keyshare,json=generalKeyshare,proto3" json:"general_keyshare,omitempty"` Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (x *QueryGeneralKeyShareAllResponse) Reset() { - *x = QueryGeneralKeyShareAllResponse{} +func (x *QueryGeneralKeyshareAllResponse) Reset() { + *x = QueryGeneralKeyshareAllResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_query_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -13897,25 +13897,25 @@ func (x *QueryGeneralKeyShareAllResponse) Reset() { } } -func (x *QueryGeneralKeyShareAllResponse) String() string { +func (x *QueryGeneralKeyshareAllResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryGeneralKeyShareAllResponse) ProtoMessage() {} +func (*QueryGeneralKeyshareAllResponse) ProtoMessage() {} -// Deprecated: Use QueryGeneralKeyShareAllResponse.ProtoReflect.Descriptor instead. -func (*QueryGeneralKeyShareAllResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryGeneralKeyshareAllResponse.ProtoReflect.Descriptor instead. +func (*QueryGeneralKeyshareAllResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{27} } -func (x *QueryGeneralKeyShareAllResponse) GetGeneralKeyShare() []*GeneralKeyShare { +func (x *QueryGeneralKeyshareAllResponse) GetGeneralKeyshare() []*GeneralKeyshare { if x != nil { - return x.GeneralKeyShare + return x.GeneralKeyshare } return nil } -func (x *QueryGeneralKeyShareAllResponse) GetPagination() *v1beta1.PageResponse { +func (x *QueryGeneralKeyshareAllResponse) GetPagination() *v1beta1.PageResponse { if x != nil { return x.Pagination } @@ -13929,375 +13929,373 @@ var file_fairyring_keyshare_query_proto_rawDesc = []byte{ 0x68, 0x61, 0x72, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, - 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x22, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, - 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x24, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, - 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x22, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, - 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x59, 0x0a, 0x21, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, - 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, - 0x73, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x54, 0x0a, - 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, - 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xba, - 0x01, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x12, 0x61, - 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x11, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, - 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x4e, 0x0a, 0x12, 0x71, - 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x11, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, - 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x30, 0x0a, 0x18, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x68, 0x0a, - 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, - 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0d, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, - 0x53, 0x65, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x22, 0x65, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, + 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x2b, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, + 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x24, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x64, 0x65, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x21, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, + 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, + 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, + 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0x22, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x61, + 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x22, 0x59, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x65, 0x72, + 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x61, 0x6e, + 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, + 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x75, + 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x22, + 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x54, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, + 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xba, 0x01, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x12, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x52, 0x11, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x12, 0x4e, 0x0a, 0x12, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x52, 0x11, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x22, 0x30, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x69, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x68, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, + 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x22, + 0x65, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x53, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, + 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, + 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb4, 0x01, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb4, - 0x01, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x53, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x4b, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x47, 0x0a, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x57, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, - 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, - 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x58, - 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, - 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, - 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x22, 0x61, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, - 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa4, 0x01, 0x0a, 0x18, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2e, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, - 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x33, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x71, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0e, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0d, 0x64, 0x65, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x22, 0x66, 0x0a, 0x1c, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, + 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, + 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x53, 0x65, 0x74, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x57, 0x0a, + 0x14, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x6f, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x57, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x3e, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, + 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, + 0x61, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0xbf, 0x01, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x0f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0e, 0x64, 0x65, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, + 0x6f, 0x6e, 0x22, 0xa3, 0x01, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x3e, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, + 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, + 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, + 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, + 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x33, 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x6c, 0x0a, + 0x1a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, 0x0a, 0x0e, 0x64, + 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0d, 0x64, 0x65, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x22, 0x66, 0x0a, 0x1c, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, + 0x79, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, + 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, - 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xb1, 0x01, 0x0a, 0x13, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x75, 0x62, - 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, - 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, - 0x12, 0x4c, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, - 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, - 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, - 0x52, 0x0c, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x22, 0x37, - 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, - 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0x7c, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x12, 0x61, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x04, 0xc8, 0xde, - 0x1f, 0x00, 0x52, 0x11, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x6a, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, - 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0xc8, 0x01, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x12, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, - 0x52, 0x11, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0xba, 0x01, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x0f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, + 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x2e, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, + 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0e, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xaf, 0x01, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, + 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x4b, 0x0a, 0x0d, 0x71, + 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, + 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x75, + 0x65, 0x64, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x22, 0x37, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x22, 0x7c, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x12, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, + 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, + 0x6a, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, + 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6f, 0x0a, 0x1b, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x64, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x64, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x75, 0x0a, - 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, - 0x11, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x22, 0x68, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc1, - 0x01, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, - 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x55, 0x0a, 0x11, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, - 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, + 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc8, 0x01, 0x0a, 0x21, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x5a, 0x0a, 0x12, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, - 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x32, 0xfa, 0x11, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x7d, 0x0a, 0x06, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, + 0x72, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, + 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6f, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, + 0x69, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x69, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x74, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0f, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x22, 0x68, 0x0a, + 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, + 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, + 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc0, 0x01, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x67, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, + 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, + 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, + 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xf5, 0x11, 0x0a, 0x05, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x12, 0x7d, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, - 0x1a, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x91, 0x01, 0x0a, 0x0b, - 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x12, 0x91, 0x01, 0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x9e, 0x01, 0x0a, 0x0c, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, - 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, - 0x9e, 0x01, 0x0a, 0x0c, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, - 0x12, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x2f, 0x7b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x7d, - 0x12, 0x9f, 0x01, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, - 0x74, 0x41, 0x6c, 0x6c, 0x12, 0x2f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, - 0x21, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, - 0x65, 0x74, 0x12, 0xa1, 0x01, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, - 0x28, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, - 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x12, 0x38, 0x2f, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x7b, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x7d, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0x8f, 0x01, 0x0a, 0x0b, 0x4b, 0x65, 0x79, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, - 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x6b, - 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0xa3, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x2d, 0x2e, 0x66, 0x61, 0x69, + 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, + 0x2f, 0x7b, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x7d, 0x12, 0x9f, 0x01, 0x0a, 0x0f, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x12, 0x2f, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, + 0x53, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, + 0x72, 0x53, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x12, 0xa0, 0x01, 0x0a, 0x08, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x28, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x29, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3f, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x39, 0x12, 0x37, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x7d, 0x2f, 0x7b, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0x8e, 0x01, + 0x0a, 0x0b, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x2b, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, - 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, + 0x12, 0x1c, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0xa3, + 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, + 0x12, 0x2d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x64, 0x65, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x2f, 0x7b, 0x68, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x7d, 0x12, 0xa3, 0x01, 0x0a, 0x10, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x41, 0x6c, 0x6c, 0x12, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x2d, 0x12, 0x2b, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x2f, 0x7b, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xa3, - 0x01, 0x0a, 0x10, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, - 0x41, 0x6c, 0x6c, 0x12, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x41, 0x6c, 0x6c, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x41, 0x6c, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, - 0x12, 0x22, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x6b, 0x65, 0x79, 0x12, 0x7e, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x26, + 0x79, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x4b, 0x65, 0x79, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x64, 0x65, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x12, 0x7d, 0x0a, 0x06, 0x50, 0x75, + 0x62, 0x6b, 0x65, 0x79, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x75, 0x62, 0x6b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0xb3, 0x01, 0x0a, 0x11, 0x41, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x31, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, + 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x7d, 0x12, + 0xb3, 0x01, 0x0a, 0x14, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x12, 0x34, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x75, 0x62, - 0x5f, 0x6b, 0x65, 0x79, 0x12, 0xb3, 0x01, 0x0a, 0x11, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x31, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, - 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x7d, 0x12, 0xb3, 0x01, 0x0a, 0x14, 0x41, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x41, 0x6c, 0x6c, 0x12, 0x34, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, - 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0xc3, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x61, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x12, 0xc4, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x12, 0x2f, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x12, - 0x46, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, - 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, - 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x7d, 0x12, 0xac, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x32, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, - 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, + 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x47, 0x12, 0x45, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, + 0x2f, 0x7b, 0x69, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x7d, 0x12, 0xab, 0x01, 0x0a, 0x12, + 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x41, + 0x6c, 0x6c, 0x12, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, - 0x25, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, - 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0xb6, 0x01, 0x0a, 0x14, 0x56, 0x65, 0x72, 0x69, 0x66, - 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x12, - 0x34, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, - 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, - 0x6e, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, - 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x42, - 0xb2, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, - 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, - 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x41, 0x6c, 0x6c, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, + 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, + 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0xb6, 0x01, 0x0a, 0x14, 0x56, 0x65, + 0x72, 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, + 0x73, 0x73, 0x12, 0x34, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x65, 0x72, + 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x61, 0x6e, + 0x64, 0x6f, 0x6d, 0x6e, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x65, 0x72, + 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x6e, 0x65, + 0x73, 0x73, 0x42, 0xb2, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x0a, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -14324,35 +14322,35 @@ var file_fairyring_keyshare_query_proto_goTypes = []interface{}{ (*QueryValidatorSetResponse)(nil), // 7: fairyring.keyshare.QueryValidatorSetResponse (*QueryValidatorSetAllRequest)(nil), // 8: fairyring.keyshare.QueryValidatorSetAllRequest (*QueryValidatorSetAllResponse)(nil), // 9: fairyring.keyshare.QueryValidatorSetAllResponse - (*QueryKeyShareRequest)(nil), // 10: fairyring.keyshare.QueryKeyShareRequest - (*QueryKeyShareResponse)(nil), // 11: fairyring.keyshare.QueryKeyShareResponse - (*QueryKeyShareAllRequest)(nil), // 12: fairyring.keyshare.QueryKeyShareAllRequest - (*QueryKeyShareAllResponse)(nil), // 13: fairyring.keyshare.QueryKeyShareAllResponse + (*QueryKeyshareRequest)(nil), // 10: fairyring.keyshare.QueryKeyshareRequest + (*QueryKeyshareResponse)(nil), // 11: fairyring.keyshare.QueryKeyshareResponse + (*QueryKeyshareAllRequest)(nil), // 12: fairyring.keyshare.QueryKeyshareAllRequest + (*QueryKeyshareAllResponse)(nil), // 13: fairyring.keyshare.QueryKeyshareAllResponse (*QueryDecryptionKeyRequest)(nil), // 14: fairyring.keyshare.QueryDecryptionKeyRequest (*QueryDecryptionKeyResponse)(nil), // 15: fairyring.keyshare.QueryDecryptionKeyResponse (*QueryDecryptionKeyAllRequest)(nil), // 16: fairyring.keyshare.QueryDecryptionKeyAllRequest (*QueryDecryptionKeyAllResponse)(nil), // 17: fairyring.keyshare.QueryDecryptionKeyAllResponse - (*QueryPubKeyRequest)(nil), // 18: fairyring.keyshare.QueryPubKeyRequest - (*QueryPubKeyResponse)(nil), // 19: fairyring.keyshare.QueryPubKeyResponse + (*QueryPubkeyRequest)(nil), // 18: fairyring.keyshare.QueryPubkeyRequest + (*QueryPubkeyResponse)(nil), // 19: fairyring.keyshare.QueryPubkeyResponse (*QueryAuthorizedAddressRequest)(nil), // 20: fairyring.keyshare.QueryAuthorizedAddressRequest (*QueryAuthorizedAddressResponse)(nil), // 21: fairyring.keyshare.QueryAuthorizedAddressResponse (*QueryAuthorizedAddressAllRequest)(nil), // 22: fairyring.keyshare.QueryAuthorizedAddressAllRequest (*QueryAuthorizedAddressAllResponse)(nil), // 23: fairyring.keyshare.QueryAuthorizedAddressAllResponse - (*QueryGeneralKeyShareRequest)(nil), // 24: fairyring.keyshare.QueryGeneralKeyShareRequest - (*QueryGeneralKeyShareResponse)(nil), // 25: fairyring.keyshare.QueryGeneralKeyShareResponse - (*QueryGeneralKeyShareAllRequest)(nil), // 26: fairyring.keyshare.QueryGeneralKeyShareAllRequest - (*QueryGeneralKeyShareAllResponse)(nil), // 27: fairyring.keyshare.QueryGeneralKeyShareAllResponse + (*QueryGeneralKeyshareRequest)(nil), // 24: fairyring.keyshare.QueryGeneralKeyshareRequest + (*QueryGeneralKeyshareResponse)(nil), // 25: fairyring.keyshare.QueryGeneralKeyshareResponse + (*QueryGeneralKeyshareAllRequest)(nil), // 26: fairyring.keyshare.QueryGeneralKeyshareAllRequest + (*QueryGeneralKeyshareAllResponse)(nil), // 27: fairyring.keyshare.QueryGeneralKeyshareAllResponse (*Params)(nil), // 28: fairyring.keyshare.Params (*Commitments)(nil), // 29: fairyring.keyshare.Commitments (*ValidatorSet)(nil), // 30: fairyring.keyshare.ValidatorSet (*v1beta1.PageRequest)(nil), // 31: cosmos.base.query.v1beta1.PageRequest (*v1beta1.PageResponse)(nil), // 32: cosmos.base.query.v1beta1.PageResponse - (*KeyShare)(nil), // 33: fairyring.keyshare.KeyShare - (*AggregatedKeyShare)(nil), // 34: fairyring.keyshare.AggregatedKeyShare + (*Keyshare)(nil), // 33: fairyring.keyshare.Keyshare + (*DecryptionKey)(nil), // 34: fairyring.keyshare.DecryptionKey (*ActivePubKey)(nil), // 35: fairyring.keyshare.ActivePubKey (*QueuedPubKey)(nil), // 36: fairyring.keyshare.QueuedPubKey (*AuthorizedAddress)(nil), // 37: fairyring.keyshare.AuthorizedAddress - (*GeneralKeyShare)(nil), // 38: fairyring.keyshare.GeneralKeyShare + (*GeneralKeyshare)(nil), // 38: fairyring.keyshare.GeneralKeyshare } var file_fairyring_keyshare_query_proto_depIdxs = []int32{ 28, // 0: fairyring.keyshare.QueryParamsResponse.params:type_name -> fairyring.keyshare.Params @@ -14362,51 +14360,51 @@ var file_fairyring_keyshare_query_proto_depIdxs = []int32{ 31, // 4: fairyring.keyshare.QueryValidatorSetAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 30, // 5: fairyring.keyshare.QueryValidatorSetAllResponse.validator_set:type_name -> fairyring.keyshare.ValidatorSet 32, // 6: fairyring.keyshare.QueryValidatorSetAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 33, // 7: fairyring.keyshare.QueryKeyShareResponse.key_share:type_name -> fairyring.keyshare.KeyShare - 31, // 8: fairyring.keyshare.QueryKeyShareAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 33, // 9: fairyring.keyshare.QueryKeyShareAllResponse.key_share:type_name -> fairyring.keyshare.KeyShare - 32, // 10: fairyring.keyshare.QueryKeyShareAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 34, // 11: fairyring.keyshare.QueryDecryptionKeyResponse.decryption_key:type_name -> fairyring.keyshare.AggregatedKeyShare + 33, // 7: fairyring.keyshare.QueryKeyshareResponse.keyshare:type_name -> fairyring.keyshare.Keyshare + 31, // 8: fairyring.keyshare.QueryKeyshareAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 33, // 9: fairyring.keyshare.QueryKeyshareAllResponse.keyshare:type_name -> fairyring.keyshare.Keyshare + 32, // 10: fairyring.keyshare.QueryKeyshareAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 34, // 11: fairyring.keyshare.QueryDecryptionKeyResponse.decryption_key:type_name -> fairyring.keyshare.DecryptionKey 31, // 12: fairyring.keyshare.QueryDecryptionKeyAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 34, // 13: fairyring.keyshare.QueryDecryptionKeyAllResponse.decryption_keys:type_name -> fairyring.keyshare.AggregatedKeyShare + 34, // 13: fairyring.keyshare.QueryDecryptionKeyAllResponse.decryption_keys:type_name -> fairyring.keyshare.DecryptionKey 32, // 14: fairyring.keyshare.QueryDecryptionKeyAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 35, // 15: fairyring.keyshare.QueryPubKeyResponse.active_pub_key:type_name -> fairyring.keyshare.ActivePubKey - 36, // 16: fairyring.keyshare.QueryPubKeyResponse.queued_pub_key:type_name -> fairyring.keyshare.QueuedPubKey + 35, // 15: fairyring.keyshare.QueryPubkeyResponse.active_pubkey:type_name -> fairyring.keyshare.ActivePubKey + 36, // 16: fairyring.keyshare.QueryPubkeyResponse.queued_pubkey:type_name -> fairyring.keyshare.QueuedPubKey 37, // 17: fairyring.keyshare.QueryAuthorizedAddressResponse.authorized_address:type_name -> fairyring.keyshare.AuthorizedAddress 31, // 18: fairyring.keyshare.QueryAuthorizedAddressAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 37, // 19: fairyring.keyshare.QueryAuthorizedAddressAllResponse.authorized_address:type_name -> fairyring.keyshare.AuthorizedAddress 32, // 20: fairyring.keyshare.QueryAuthorizedAddressAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 38, // 21: fairyring.keyshare.QueryGeneralKeyShareResponse.general_key_share:type_name -> fairyring.keyshare.GeneralKeyShare - 31, // 22: fairyring.keyshare.QueryGeneralKeyShareAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 38, // 23: fairyring.keyshare.QueryGeneralKeyShareAllResponse.general_key_share:type_name -> fairyring.keyshare.GeneralKeyShare - 32, // 24: fairyring.keyshare.QueryGeneralKeyShareAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 38, // 21: fairyring.keyshare.QueryGeneralKeyshareResponse.general_keyshare:type_name -> fairyring.keyshare.GeneralKeyshare + 31, // 22: fairyring.keyshare.QueryGeneralKeyshareAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 38, // 23: fairyring.keyshare.QueryGeneralKeyshareAllResponse.general_keyshare:type_name -> fairyring.keyshare.GeneralKeyshare + 32, // 24: fairyring.keyshare.QueryGeneralKeyshareAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse 2, // 25: fairyring.keyshare.Query.Params:input_type -> fairyring.keyshare.QueryParamsRequest 4, // 26: fairyring.keyshare.Query.Commitments:input_type -> fairyring.keyshare.QueryCommitmentsRequest 6, // 27: fairyring.keyshare.Query.ValidatorSet:input_type -> fairyring.keyshare.QueryValidatorSetRequest 8, // 28: fairyring.keyshare.Query.ValidatorSetAll:input_type -> fairyring.keyshare.QueryValidatorSetAllRequest - 10, // 29: fairyring.keyshare.Query.KeyShare:input_type -> fairyring.keyshare.QueryKeyShareRequest - 12, // 30: fairyring.keyshare.Query.KeyShareAll:input_type -> fairyring.keyshare.QueryKeyShareAllRequest + 10, // 29: fairyring.keyshare.Query.Keyshare:input_type -> fairyring.keyshare.QueryKeyshareRequest + 12, // 30: fairyring.keyshare.Query.KeyshareAll:input_type -> fairyring.keyshare.QueryKeyshareAllRequest 14, // 31: fairyring.keyshare.Query.DecryptionKey:input_type -> fairyring.keyshare.QueryDecryptionKeyRequest 16, // 32: fairyring.keyshare.Query.DecryptionKeyAll:input_type -> fairyring.keyshare.QueryDecryptionKeyAllRequest - 18, // 33: fairyring.keyshare.Query.PubKey:input_type -> fairyring.keyshare.QueryPubKeyRequest + 18, // 33: fairyring.keyshare.Query.Pubkey:input_type -> fairyring.keyshare.QueryPubkeyRequest 20, // 34: fairyring.keyshare.Query.AuthorizedAddress:input_type -> fairyring.keyshare.QueryAuthorizedAddressRequest 22, // 35: fairyring.keyshare.Query.AuthorizedAddressAll:input_type -> fairyring.keyshare.QueryAuthorizedAddressAllRequest - 24, // 36: fairyring.keyshare.Query.GeneralKeyShare:input_type -> fairyring.keyshare.QueryGeneralKeyShareRequest - 26, // 37: fairyring.keyshare.Query.GeneralKeyShareAll:input_type -> fairyring.keyshare.QueryGeneralKeyShareAllRequest + 24, // 36: fairyring.keyshare.Query.GeneralKeyshare:input_type -> fairyring.keyshare.QueryGeneralKeyshareRequest + 26, // 37: fairyring.keyshare.Query.GeneralKeyshareAll:input_type -> fairyring.keyshare.QueryGeneralKeyshareAllRequest 0, // 38: fairyring.keyshare.Query.VerifiableRandomness:input_type -> fairyring.keyshare.QueryVerifiableRandomnessRequest 3, // 39: fairyring.keyshare.Query.Params:output_type -> fairyring.keyshare.QueryParamsResponse 5, // 40: fairyring.keyshare.Query.Commitments:output_type -> fairyring.keyshare.QueryCommitmentsResponse 7, // 41: fairyring.keyshare.Query.ValidatorSet:output_type -> fairyring.keyshare.QueryValidatorSetResponse 9, // 42: fairyring.keyshare.Query.ValidatorSetAll:output_type -> fairyring.keyshare.QueryValidatorSetAllResponse - 11, // 43: fairyring.keyshare.Query.KeyShare:output_type -> fairyring.keyshare.QueryKeyShareResponse - 13, // 44: fairyring.keyshare.Query.KeyShareAll:output_type -> fairyring.keyshare.QueryKeyShareAllResponse + 11, // 43: fairyring.keyshare.Query.Keyshare:output_type -> fairyring.keyshare.QueryKeyshareResponse + 13, // 44: fairyring.keyshare.Query.KeyshareAll:output_type -> fairyring.keyshare.QueryKeyshareAllResponse 15, // 45: fairyring.keyshare.Query.DecryptionKey:output_type -> fairyring.keyshare.QueryDecryptionKeyResponse 17, // 46: fairyring.keyshare.Query.DecryptionKeyAll:output_type -> fairyring.keyshare.QueryDecryptionKeyAllResponse - 19, // 47: fairyring.keyshare.Query.PubKey:output_type -> fairyring.keyshare.QueryPubKeyResponse + 19, // 47: fairyring.keyshare.Query.Pubkey:output_type -> fairyring.keyshare.QueryPubkeyResponse 21, // 48: fairyring.keyshare.Query.AuthorizedAddress:output_type -> fairyring.keyshare.QueryAuthorizedAddressResponse 23, // 49: fairyring.keyshare.Query.AuthorizedAddressAll:output_type -> fairyring.keyshare.QueryAuthorizedAddressAllResponse - 25, // 50: fairyring.keyshare.Query.GeneralKeyShare:output_type -> fairyring.keyshare.QueryGeneralKeyShareResponse - 27, // 51: fairyring.keyshare.Query.GeneralKeyShareAll:output_type -> fairyring.keyshare.QueryGeneralKeyShareAllResponse + 25, // 50: fairyring.keyshare.Query.GeneralKeyshare:output_type -> fairyring.keyshare.QueryGeneralKeyshareResponse + 27, // 51: fairyring.keyshare.Query.GeneralKeyshareAll:output_type -> fairyring.keyshare.QueryGeneralKeyshareAllResponse 1, // 52: fairyring.keyshare.Query.VerifiableRandomness:output_type -> fairyring.keyshare.QueryVerifiableRandomnessResponse 39, // [39:53] is the sub-list for method output_type 25, // [25:39] is the sub-list for method input_type @@ -14420,13 +14418,13 @@ func file_fairyring_keyshare_query_proto_init() { if File_fairyring_keyshare_query_proto != nil { return } - file_fairyring_keyshare_params_proto_init() - file_fairyring_keyshare_validator_set_proto_init() - file_fairyring_keyshare_key_share_proto_init() - file_fairyring_keyshare_aggregated_key_share_proto_init() - file_fairyring_keyshare_pub_key_proto_init() file_fairyring_keyshare_authorized_address_proto_init() file_fairyring_keyshare_commitments_proto_init() + file_fairyring_keyshare_decryption_key_proto_init() + file_fairyring_keyshare_keyshare_proto_init() + file_fairyring_keyshare_params_proto_init() + file_fairyring_keyshare_pubkey_proto_init() + file_fairyring_keyshare_validator_set_proto_init() if !protoimpl.UnsafeEnabled { file_fairyring_keyshare_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryVerifiableRandomnessRequest); i { @@ -14549,7 +14547,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryKeyShareRequest); i { + switch v := v.(*QueryKeyshareRequest); i { case 0: return &v.state case 1: @@ -14561,7 +14559,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryKeyShareResponse); i { + switch v := v.(*QueryKeyshareResponse); i { case 0: return &v.state case 1: @@ -14573,7 +14571,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryKeyShareAllRequest); i { + switch v := v.(*QueryKeyshareAllRequest); i { case 0: return &v.state case 1: @@ -14585,7 +14583,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryKeyShareAllResponse); i { + switch v := v.(*QueryKeyshareAllResponse); i { case 0: return &v.state case 1: @@ -14645,7 +14643,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryPubKeyRequest); i { + switch v := v.(*QueryPubkeyRequest); i { case 0: return &v.state case 1: @@ -14657,7 +14655,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryPubKeyResponse); i { + switch v := v.(*QueryPubkeyResponse); i { case 0: return &v.state case 1: @@ -14717,7 +14715,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGeneralKeyShareRequest); i { + switch v := v.(*QueryGeneralKeyshareRequest); i { case 0: return &v.state case 1: @@ -14729,7 +14727,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGeneralKeyShareResponse); i { + switch v := v.(*QueryGeneralKeyshareResponse); i { case 0: return &v.state case 1: @@ -14741,7 +14739,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGeneralKeyShareAllRequest); i { + switch v := v.(*QueryGeneralKeyshareAllRequest); i { case 0: return &v.state case 1: @@ -14753,7 +14751,7 @@ func file_fairyring_keyshare_query_proto_init() { } } file_fairyring_keyshare_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryGeneralKeyShareAllResponse); i { + switch v := v.(*QueryGeneralKeyshareAllResponse); i { case 0: return &v.state case 1: diff --git a/api/fairyring/keyshare/query_grpc.pb.go b/api/fairyring/keyshare/query_grpc.pb.go index 22f58680..9dd91661 100644 --- a/api/fairyring/keyshare/query_grpc.pb.go +++ b/api/fairyring/keyshare/query_grpc.pb.go @@ -23,15 +23,15 @@ const ( Query_Commitments_FullMethodName = "/fairyring.keyshare.Query/Commitments" Query_ValidatorSet_FullMethodName = "/fairyring.keyshare.Query/ValidatorSet" Query_ValidatorSetAll_FullMethodName = "/fairyring.keyshare.Query/ValidatorSetAll" - Query_KeyShare_FullMethodName = "/fairyring.keyshare.Query/KeyShare" - Query_KeyShareAll_FullMethodName = "/fairyring.keyshare.Query/KeyShareAll" + Query_Keyshare_FullMethodName = "/fairyring.keyshare.Query/Keyshare" + Query_KeyshareAll_FullMethodName = "/fairyring.keyshare.Query/KeyshareAll" Query_DecryptionKey_FullMethodName = "/fairyring.keyshare.Query/DecryptionKey" Query_DecryptionKeyAll_FullMethodName = "/fairyring.keyshare.Query/DecryptionKeyAll" - Query_PubKey_FullMethodName = "/fairyring.keyshare.Query/PubKey" + Query_Pubkey_FullMethodName = "/fairyring.keyshare.Query/Pubkey" Query_AuthorizedAddress_FullMethodName = "/fairyring.keyshare.Query/AuthorizedAddress" Query_AuthorizedAddressAll_FullMethodName = "/fairyring.keyshare.Query/AuthorizedAddressAll" - Query_GeneralKeyShare_FullMethodName = "/fairyring.keyshare.Query/GeneralKeyShare" - Query_GeneralKeyShareAll_FullMethodName = "/fairyring.keyshare.Query/GeneralKeyShareAll" + Query_GeneralKeyshare_FullMethodName = "/fairyring.keyshare.Query/GeneralKeyshare" + Query_GeneralKeyshareAll_FullMethodName = "/fairyring.keyshare.Query/GeneralKeyshareAll" Query_VerifiableRandomness_FullMethodName = "/fairyring.keyshare.Query/VerifiableRandomness" ) @@ -47,24 +47,24 @@ type QueryClient interface { ValidatorSet(ctx context.Context, in *QueryValidatorSetRequest, opts ...grpc.CallOption) (*QueryValidatorSetResponse, error) // Queries a list of ValidatorSet items. ValidatorSetAll(ctx context.Context, in *QueryValidatorSetAllRequest, opts ...grpc.CallOption) (*QueryValidatorSetAllResponse, error) - // Queries a KeyShare by index. - KeyShare(ctx context.Context, in *QueryKeyShareRequest, opts ...grpc.CallOption) (*QueryKeyShareResponse, error) - // Queries a list of KeyShare items. - KeyShareAll(ctx context.Context, in *QueryKeyShareAllRequest, opts ...grpc.CallOption) (*QueryKeyShareAllResponse, error) + // Queries a Keyshare by index. + Keyshare(ctx context.Context, in *QueryKeyshareRequest, opts ...grpc.CallOption) (*QueryKeyshareResponse, error) + // Queries a list of Keyshare items. + KeyshareAll(ctx context.Context, in *QueryKeyshareAllRequest, opts ...grpc.CallOption) (*QueryKeyshareAllResponse, error) // DecryptionKey queries a DecryptionKey item by height. DecryptionKey(ctx context.Context, in *QueryDecryptionKeyRequest, opts ...grpc.CallOption) (*QueryDecryptionKeyResponse, error) // DecryptionKeyAll Queries a list of DecryptionKey items. DecryptionKeyAll(ctx context.Context, in *QueryDecryptionKeyAllRequest, opts ...grpc.CallOption) (*QueryDecryptionKeyAllResponse, error) // Queries the public keys - PubKey(ctx context.Context, in *QueryPubKeyRequest, opts ...grpc.CallOption) (*QueryPubKeyResponse, error) + Pubkey(ctx context.Context, in *QueryPubkeyRequest, opts ...grpc.CallOption) (*QueryPubkeyResponse, error) // Queries a AuthorizedAddress item by target. AuthorizedAddress(ctx context.Context, in *QueryAuthorizedAddressRequest, opts ...grpc.CallOption) (*QueryAuthorizedAddressResponse, error) // Queries a list of AuthorizedAddress items AuthorizedAddressAll(ctx context.Context, in *QueryAuthorizedAddressAllRequest, opts ...grpc.CallOption) (*QueryAuthorizedAddressAllResponse, error) // Queries a GeneralKeyShare item by validator address and identity. - GeneralKeyShare(ctx context.Context, in *QueryGeneralKeyShareRequest, opts ...grpc.CallOption) (*QueryGeneralKeyShareResponse, error) + GeneralKeyshare(ctx context.Context, in *QueryGeneralKeyshareRequest, opts ...grpc.CallOption) (*QueryGeneralKeyshareResponse, error) // Queries a list of GeneralKeyShare items - GeneralKeyShareAll(ctx context.Context, in *QueryGeneralKeyShareAllRequest, opts ...grpc.CallOption) (*QueryGeneralKeyShareAllResponse, error) + GeneralKeyshareAll(ctx context.Context, in *QueryGeneralKeyshareAllRequest, opts ...grpc.CallOption) (*QueryGeneralKeyshareAllResponse, error) // Queries verifiable randomness VerifiableRandomness(ctx context.Context, in *QueryVerifiableRandomnessRequest, opts ...grpc.CallOption) (*QueryVerifiableRandomnessResponse, error) } @@ -113,18 +113,18 @@ func (c *queryClient) ValidatorSetAll(ctx context.Context, in *QueryValidatorSet return out, nil } -func (c *queryClient) KeyShare(ctx context.Context, in *QueryKeyShareRequest, opts ...grpc.CallOption) (*QueryKeyShareResponse, error) { - out := new(QueryKeyShareResponse) - err := c.cc.Invoke(ctx, Query_KeyShare_FullMethodName, in, out, opts...) +func (c *queryClient) Keyshare(ctx context.Context, in *QueryKeyshareRequest, opts ...grpc.CallOption) (*QueryKeyshareResponse, error) { + out := new(QueryKeyshareResponse) + err := c.cc.Invoke(ctx, Query_Keyshare_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) KeyShareAll(ctx context.Context, in *QueryKeyShareAllRequest, opts ...grpc.CallOption) (*QueryKeyShareAllResponse, error) { - out := new(QueryKeyShareAllResponse) - err := c.cc.Invoke(ctx, Query_KeyShareAll_FullMethodName, in, out, opts...) +func (c *queryClient) KeyshareAll(ctx context.Context, in *QueryKeyshareAllRequest, opts ...grpc.CallOption) (*QueryKeyshareAllResponse, error) { + out := new(QueryKeyshareAllResponse) + err := c.cc.Invoke(ctx, Query_KeyshareAll_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -149,9 +149,9 @@ func (c *queryClient) DecryptionKeyAll(ctx context.Context, in *QueryDecryptionK return out, nil } -func (c *queryClient) PubKey(ctx context.Context, in *QueryPubKeyRequest, opts ...grpc.CallOption) (*QueryPubKeyResponse, error) { - out := new(QueryPubKeyResponse) - err := c.cc.Invoke(ctx, Query_PubKey_FullMethodName, in, out, opts...) +func (c *queryClient) Pubkey(ctx context.Context, in *QueryPubkeyRequest, opts ...grpc.CallOption) (*QueryPubkeyResponse, error) { + out := new(QueryPubkeyResponse) + err := c.cc.Invoke(ctx, Query_Pubkey_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -176,18 +176,18 @@ func (c *queryClient) AuthorizedAddressAll(ctx context.Context, in *QueryAuthori return out, nil } -func (c *queryClient) GeneralKeyShare(ctx context.Context, in *QueryGeneralKeyShareRequest, opts ...grpc.CallOption) (*QueryGeneralKeyShareResponse, error) { - out := new(QueryGeneralKeyShareResponse) - err := c.cc.Invoke(ctx, Query_GeneralKeyShare_FullMethodName, in, out, opts...) +func (c *queryClient) GeneralKeyshare(ctx context.Context, in *QueryGeneralKeyshareRequest, opts ...grpc.CallOption) (*QueryGeneralKeyshareResponse, error) { + out := new(QueryGeneralKeyshareResponse) + err := c.cc.Invoke(ctx, Query_GeneralKeyshare_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) GeneralKeyShareAll(ctx context.Context, in *QueryGeneralKeyShareAllRequest, opts ...grpc.CallOption) (*QueryGeneralKeyShareAllResponse, error) { - out := new(QueryGeneralKeyShareAllResponse) - err := c.cc.Invoke(ctx, Query_GeneralKeyShareAll_FullMethodName, in, out, opts...) +func (c *queryClient) GeneralKeyshareAll(ctx context.Context, in *QueryGeneralKeyshareAllRequest, opts ...grpc.CallOption) (*QueryGeneralKeyshareAllResponse, error) { + out := new(QueryGeneralKeyshareAllResponse) + err := c.cc.Invoke(ctx, Query_GeneralKeyshareAll_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -215,24 +215,24 @@ type QueryServer interface { ValidatorSet(context.Context, *QueryValidatorSetRequest) (*QueryValidatorSetResponse, error) // Queries a list of ValidatorSet items. ValidatorSetAll(context.Context, *QueryValidatorSetAllRequest) (*QueryValidatorSetAllResponse, error) - // Queries a KeyShare by index. - KeyShare(context.Context, *QueryKeyShareRequest) (*QueryKeyShareResponse, error) - // Queries a list of KeyShare items. - KeyShareAll(context.Context, *QueryKeyShareAllRequest) (*QueryKeyShareAllResponse, error) + // Queries a Keyshare by index. + Keyshare(context.Context, *QueryKeyshareRequest) (*QueryKeyshareResponse, error) + // Queries a list of Keyshare items. + KeyshareAll(context.Context, *QueryKeyshareAllRequest) (*QueryKeyshareAllResponse, error) // DecryptionKey queries a DecryptionKey item by height. DecryptionKey(context.Context, *QueryDecryptionKeyRequest) (*QueryDecryptionKeyResponse, error) // DecryptionKeyAll Queries a list of DecryptionKey items. DecryptionKeyAll(context.Context, *QueryDecryptionKeyAllRequest) (*QueryDecryptionKeyAllResponse, error) // Queries the public keys - PubKey(context.Context, *QueryPubKeyRequest) (*QueryPubKeyResponse, error) + Pubkey(context.Context, *QueryPubkeyRequest) (*QueryPubkeyResponse, error) // Queries a AuthorizedAddress item by target. AuthorizedAddress(context.Context, *QueryAuthorizedAddressRequest) (*QueryAuthorizedAddressResponse, error) // Queries a list of AuthorizedAddress items AuthorizedAddressAll(context.Context, *QueryAuthorizedAddressAllRequest) (*QueryAuthorizedAddressAllResponse, error) // Queries a GeneralKeyShare item by validator address and identity. - GeneralKeyShare(context.Context, *QueryGeneralKeyShareRequest) (*QueryGeneralKeyShareResponse, error) + GeneralKeyshare(context.Context, *QueryGeneralKeyshareRequest) (*QueryGeneralKeyshareResponse, error) // Queries a list of GeneralKeyShare items - GeneralKeyShareAll(context.Context, *QueryGeneralKeyShareAllRequest) (*QueryGeneralKeyShareAllResponse, error) + GeneralKeyshareAll(context.Context, *QueryGeneralKeyshareAllRequest) (*QueryGeneralKeyshareAllResponse, error) // Queries verifiable randomness VerifiableRandomness(context.Context, *QueryVerifiableRandomnessRequest) (*QueryVerifiableRandomnessResponse, error) mustEmbedUnimplementedQueryServer() @@ -254,11 +254,11 @@ func (UnimplementedQueryServer) ValidatorSet(context.Context, *QueryValidatorSet func (UnimplementedQueryServer) ValidatorSetAll(context.Context, *QueryValidatorSetAllRequest) (*QueryValidatorSetAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValidatorSetAll not implemented") } -func (UnimplementedQueryServer) KeyShare(context.Context, *QueryKeyShareRequest) (*QueryKeyShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KeyShare not implemented") +func (UnimplementedQueryServer) Keyshare(context.Context, *QueryKeyshareRequest) (*QueryKeyshareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Keyshare not implemented") } -func (UnimplementedQueryServer) KeyShareAll(context.Context, *QueryKeyShareAllRequest) (*QueryKeyShareAllResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KeyShareAll not implemented") +func (UnimplementedQueryServer) KeyshareAll(context.Context, *QueryKeyshareAllRequest) (*QueryKeyshareAllResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KeyshareAll not implemented") } func (UnimplementedQueryServer) DecryptionKey(context.Context, *QueryDecryptionKeyRequest) (*QueryDecryptionKeyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DecryptionKey not implemented") @@ -266,8 +266,8 @@ func (UnimplementedQueryServer) DecryptionKey(context.Context, *QueryDecryptionK func (UnimplementedQueryServer) DecryptionKeyAll(context.Context, *QueryDecryptionKeyAllRequest) (*QueryDecryptionKeyAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DecryptionKeyAll not implemented") } -func (UnimplementedQueryServer) PubKey(context.Context, *QueryPubKeyRequest) (*QueryPubKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PubKey not implemented") +func (UnimplementedQueryServer) Pubkey(context.Context, *QueryPubkeyRequest) (*QueryPubkeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Pubkey not implemented") } func (UnimplementedQueryServer) AuthorizedAddress(context.Context, *QueryAuthorizedAddressRequest) (*QueryAuthorizedAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AuthorizedAddress not implemented") @@ -275,11 +275,11 @@ func (UnimplementedQueryServer) AuthorizedAddress(context.Context, *QueryAuthori func (UnimplementedQueryServer) AuthorizedAddressAll(context.Context, *QueryAuthorizedAddressAllRequest) (*QueryAuthorizedAddressAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AuthorizedAddressAll not implemented") } -func (UnimplementedQueryServer) GeneralKeyShare(context.Context, *QueryGeneralKeyShareRequest) (*QueryGeneralKeyShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GeneralKeyShare not implemented") +func (UnimplementedQueryServer) GeneralKeyshare(context.Context, *QueryGeneralKeyshareRequest) (*QueryGeneralKeyshareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GeneralKeyshare not implemented") } -func (UnimplementedQueryServer) GeneralKeyShareAll(context.Context, *QueryGeneralKeyShareAllRequest) (*QueryGeneralKeyShareAllResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GeneralKeyShareAll not implemented") +func (UnimplementedQueryServer) GeneralKeyshareAll(context.Context, *QueryGeneralKeyshareAllRequest) (*QueryGeneralKeyshareAllResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GeneralKeyshareAll not implemented") } func (UnimplementedQueryServer) VerifiableRandomness(context.Context, *QueryVerifiableRandomnessRequest) (*QueryVerifiableRandomnessResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method VerifiableRandomness not implemented") @@ -369,38 +369,38 @@ func _Query_ValidatorSetAll_Handler(srv interface{}, ctx context.Context, dec fu return interceptor(ctx, in, info, handler) } -func _Query_KeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryKeyShareRequest) +func _Query_Keyshare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryKeyshareRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).KeyShare(ctx, in) + return srv.(QueryServer).Keyshare(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_KeyShare_FullMethodName, + FullMethod: Query_Keyshare_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).KeyShare(ctx, req.(*QueryKeyShareRequest)) + return srv.(QueryServer).Keyshare(ctx, req.(*QueryKeyshareRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_KeyShareAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryKeyShareAllRequest) +func _Query_KeyshareAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryKeyshareAllRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).KeyShareAll(ctx, in) + return srv.(QueryServer).KeyshareAll(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_KeyShareAll_FullMethodName, + FullMethod: Query_KeyshareAll_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).KeyShareAll(ctx, req.(*QueryKeyShareAllRequest)) + return srv.(QueryServer).KeyshareAll(ctx, req.(*QueryKeyshareAllRequest)) } return interceptor(ctx, in, info, handler) } @@ -441,20 +441,20 @@ func _Query_DecryptionKeyAll_Handler(srv interface{}, ctx context.Context, dec f return interceptor(ctx, in, info, handler) } -func _Query_PubKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryPubKeyRequest) +func _Query_Pubkey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPubkeyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).PubKey(ctx, in) + return srv.(QueryServer).Pubkey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_PubKey_FullMethodName, + FullMethod: Query_Pubkey_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PubKey(ctx, req.(*QueryPubKeyRequest)) + return srv.(QueryServer).Pubkey(ctx, req.(*QueryPubkeyRequest)) } return interceptor(ctx, in, info, handler) } @@ -495,38 +495,38 @@ func _Query_AuthorizedAddressAll_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } -func _Query_GeneralKeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGeneralKeyShareRequest) +func _Query_GeneralKeyshare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGeneralKeyshareRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).GeneralKeyShare(ctx, in) + return srv.(QueryServer).GeneralKeyshare(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_GeneralKeyShare_FullMethodName, + FullMethod: Query_GeneralKeyshare_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GeneralKeyShare(ctx, req.(*QueryGeneralKeyShareRequest)) + return srv.(QueryServer).GeneralKeyshare(ctx, req.(*QueryGeneralKeyshareRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_GeneralKeyShareAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGeneralKeyShareAllRequest) +func _Query_GeneralKeyshareAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGeneralKeyshareAllRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).GeneralKeyShareAll(ctx, in) + return srv.(QueryServer).GeneralKeyshareAll(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_GeneralKeyShareAll_FullMethodName, + FullMethod: Query_GeneralKeyshareAll_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GeneralKeyShareAll(ctx, req.(*QueryGeneralKeyShareAllRequest)) + return srv.(QueryServer).GeneralKeyshareAll(ctx, req.(*QueryGeneralKeyshareAllRequest)) } return interceptor(ctx, in, info, handler) } @@ -573,12 +573,12 @@ var Query_ServiceDesc = grpc.ServiceDesc{ Handler: _Query_ValidatorSetAll_Handler, }, { - MethodName: "KeyShare", - Handler: _Query_KeyShare_Handler, + MethodName: "Keyshare", + Handler: _Query_Keyshare_Handler, }, { - MethodName: "KeyShareAll", - Handler: _Query_KeyShareAll_Handler, + MethodName: "KeyshareAll", + Handler: _Query_KeyshareAll_Handler, }, { MethodName: "DecryptionKey", @@ -589,8 +589,8 @@ var Query_ServiceDesc = grpc.ServiceDesc{ Handler: _Query_DecryptionKeyAll_Handler, }, { - MethodName: "PubKey", - Handler: _Query_PubKey_Handler, + MethodName: "Pubkey", + Handler: _Query_Pubkey_Handler, }, { MethodName: "AuthorizedAddress", @@ -601,12 +601,12 @@ var Query_ServiceDesc = grpc.ServiceDesc{ Handler: _Query_AuthorizedAddressAll_Handler, }, { - MethodName: "GeneralKeyShare", - Handler: _Query_GeneralKeyShare_Handler, + MethodName: "GeneralKeyshare", + Handler: _Query_GeneralKeyshare_Handler, }, { - MethodName: "GeneralKeyShareAll", - Handler: _Query_GeneralKeyShareAll_Handler, + MethodName: "GeneralKeyshareAll", + Handler: _Query_GeneralKeyshareAll_Handler, }, { MethodName: "VerifiableRandomness", diff --git a/api/fairyring/keyshare/requested_decryption_key.pulsar.go b/api/fairyring/keyshare/requested_decryption_key.pulsar.go index d29ac919..ccc70c56 100644 --- a/api/fairyring/keyshare/requested_decryption_key.pulsar.go +++ b/api/fairyring/keyshare/requested_decryption_key.pulsar.go @@ -2,7 +2,7 @@ package keyshare import ( - common "cosmossdk.io/api/fairyring/common" + common "github.com/Fairblock/fairyring/api/fairyring/common" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" protoreflect "google.golang.org/protobuf/reflect/protoreflect" diff --git a/api/fairyring/keyshare/tx.pulsar.go b/api/fairyring/keyshare/tx.pulsar.go index 7586a297..4e073515 100644 --- a/api/fairyring/keyshare/tx.pulsar.go +++ b/api/fairyring/keyshare/tx.pulsar.go @@ -2552,11 +2552,11 @@ func (x *fastReflection_MsgDeRegisterValidatorResponse) ProtoMethods() *protoifa } var ( - md_MsgSendKeyshare protoreflect.MessageDescriptor - fd_MsgSendKeyshare_creator protoreflect.FieldDescriptor - fd_MsgSendKeyshare_message protoreflect.FieldDescriptor - fd_MsgSendKeyshare_key_share_index protoreflect.FieldDescriptor - fd_MsgSendKeyshare_block_height protoreflect.FieldDescriptor + md_MsgSendKeyshare protoreflect.MessageDescriptor + fd_MsgSendKeyshare_creator protoreflect.FieldDescriptor + fd_MsgSendKeyshare_message protoreflect.FieldDescriptor + fd_MsgSendKeyshare_keyshare_index protoreflect.FieldDescriptor + fd_MsgSendKeyshare_block_height protoreflect.FieldDescriptor ) func init() { @@ -2564,7 +2564,7 @@ func init() { md_MsgSendKeyshare = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgSendKeyshare") fd_MsgSendKeyshare_creator = md_MsgSendKeyshare.Fields().ByName("creator") fd_MsgSendKeyshare_message = md_MsgSendKeyshare.Fields().ByName("message") - fd_MsgSendKeyshare_key_share_index = md_MsgSendKeyshare.Fields().ByName("key_share_index") + fd_MsgSendKeyshare_keyshare_index = md_MsgSendKeyshare.Fields().ByName("keyshare_index") fd_MsgSendKeyshare_block_height = md_MsgSendKeyshare.Fields().ByName("block_height") } @@ -2645,9 +2645,9 @@ func (x *fastReflection_MsgSendKeyshare) Range(f func(protoreflect.FieldDescript return } } - if x.KeyShareIndex != uint64(0) { - value := protoreflect.ValueOfUint64(x.KeyShareIndex) - if !f(fd_MsgSendKeyshare_key_share_index, value) { + if x.KeyshareIndex != uint64(0) { + value := protoreflect.ValueOfUint64(x.KeyshareIndex) + if !f(fd_MsgSendKeyshare_keyshare_index, value) { return } } @@ -2676,8 +2676,8 @@ func (x *fastReflection_MsgSendKeyshare) Has(fd protoreflect.FieldDescriptor) bo return x.Creator != "" case "fairyring.keyshare.MsgSendKeyshare.message": return x.Message != "" - case "fairyring.keyshare.MsgSendKeyshare.key_share_index": - return x.KeyShareIndex != uint64(0) + case "fairyring.keyshare.MsgSendKeyshare.keyshare_index": + return x.KeyshareIndex != uint64(0) case "fairyring.keyshare.MsgSendKeyshare.block_height": return x.BlockHeight != uint64(0) default: @@ -2700,8 +2700,8 @@ func (x *fastReflection_MsgSendKeyshare) Clear(fd protoreflect.FieldDescriptor) x.Creator = "" case "fairyring.keyshare.MsgSendKeyshare.message": x.Message = "" - case "fairyring.keyshare.MsgSendKeyshare.key_share_index": - x.KeyShareIndex = uint64(0) + case "fairyring.keyshare.MsgSendKeyshare.keyshare_index": + x.KeyshareIndex = uint64(0) case "fairyring.keyshare.MsgSendKeyshare.block_height": x.BlockHeight = uint64(0) default: @@ -2726,8 +2726,8 @@ func (x *fastReflection_MsgSendKeyshare) Get(descriptor protoreflect.FieldDescri case "fairyring.keyshare.MsgSendKeyshare.message": value := x.Message return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgSendKeyshare.key_share_index": - value := x.KeyShareIndex + case "fairyring.keyshare.MsgSendKeyshare.keyshare_index": + value := x.KeyshareIndex return protoreflect.ValueOfUint64(value) case "fairyring.keyshare.MsgSendKeyshare.block_height": value := x.BlockHeight @@ -2756,8 +2756,8 @@ func (x *fastReflection_MsgSendKeyshare) Set(fd protoreflect.FieldDescriptor, va x.Creator = value.Interface().(string) case "fairyring.keyshare.MsgSendKeyshare.message": x.Message = value.Interface().(string) - case "fairyring.keyshare.MsgSendKeyshare.key_share_index": - x.KeyShareIndex = value.Uint() + case "fairyring.keyshare.MsgSendKeyshare.keyshare_index": + x.KeyshareIndex = value.Uint() case "fairyring.keyshare.MsgSendKeyshare.block_height": x.BlockHeight = value.Uint() default: @@ -2784,8 +2784,8 @@ func (x *fastReflection_MsgSendKeyshare) Mutable(fd protoreflect.FieldDescriptor panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgSendKeyshare is not mutable")) case "fairyring.keyshare.MsgSendKeyshare.message": panic(fmt.Errorf("field message of message fairyring.keyshare.MsgSendKeyshare is not mutable")) - case "fairyring.keyshare.MsgSendKeyshare.key_share_index": - panic(fmt.Errorf("field key_share_index of message fairyring.keyshare.MsgSendKeyshare is not mutable")) + case "fairyring.keyshare.MsgSendKeyshare.keyshare_index": + panic(fmt.Errorf("field keyshare_index of message fairyring.keyshare.MsgSendKeyshare is not mutable")) case "fairyring.keyshare.MsgSendKeyshare.block_height": panic(fmt.Errorf("field block_height of message fairyring.keyshare.MsgSendKeyshare is not mutable")) default: @@ -2805,7 +2805,7 @@ func (x *fastReflection_MsgSendKeyshare) NewField(fd protoreflect.FieldDescripto return protoreflect.ValueOfString("") case "fairyring.keyshare.MsgSendKeyshare.message": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgSendKeyshare.key_share_index": + case "fairyring.keyshare.MsgSendKeyshare.keyshare_index": return protoreflect.ValueOfUint64(uint64(0)) case "fairyring.keyshare.MsgSendKeyshare.block_height": return protoreflect.ValueOfUint64(uint64(0)) @@ -2886,8 +2886,8 @@ func (x *fastReflection_MsgSendKeyshare) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.KeyShareIndex != 0 { - n += 1 + runtime.Sov(uint64(x.KeyShareIndex)) + if x.KeyshareIndex != 0 { + n += 1 + runtime.Sov(uint64(x.KeyshareIndex)) } if x.BlockHeight != 0 { n += 1 + runtime.Sov(uint64(x.BlockHeight)) @@ -2926,8 +2926,8 @@ func (x *fastReflection_MsgSendKeyshare) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x20 } - if x.KeyShareIndex != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyShareIndex)) + if x.KeyshareIndex != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyshareIndex)) i-- dAtA[i] = 0x18 } @@ -3060,9 +3060,9 @@ func (x *fastReflection_MsgSendKeyshare) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 3: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyshareIndex", wireType) } - x.KeyShareIndex = 0 + x.KeyshareIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -3072,7 +3072,7 @@ func (x *fastReflection_MsgSendKeyshare) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.KeyShareIndex |= uint64(b&0x7F) << shift + x.KeyshareIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -3926,7 +3926,7 @@ func (x *_MsgCreateLatestPubKey_3_list) IsValid() bool { var _ protoreflect.List = (*_MsgCreateLatestPubKey_5_list)(nil) type _MsgCreateLatestPubKey_5_list struct { - list *[]*EncryptedKeyShare + list *[]*EncryptedKeyshare } func (x *_MsgCreateLatestPubKey_5_list) Len() int { @@ -3942,18 +3942,18 @@ func (x *_MsgCreateLatestPubKey_5_list) Get(i int) protoreflect.Value { func (x *_MsgCreateLatestPubKey_5_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*EncryptedKeyShare) + concreteValue := valueUnwrapped.Interface().(*EncryptedKeyshare) (*x.list)[i] = concreteValue } func (x *_MsgCreateLatestPubKey_5_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*EncryptedKeyShare) + concreteValue := valueUnwrapped.Interface().(*EncryptedKeyshare) *x.list = append(*x.list, concreteValue) } func (x *_MsgCreateLatestPubKey_5_list) AppendMutable() protoreflect.Value { - v := new(EncryptedKeyShare) + v := new(EncryptedKeyshare) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -3966,7 +3966,7 @@ func (x *_MsgCreateLatestPubKey_5_list) Truncate(n int) { } func (x *_MsgCreateLatestPubKey_5_list) NewElement() protoreflect.Value { - v := new(EncryptedKeyShare) + v := new(EncryptedKeyshare) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -3980,7 +3980,7 @@ var ( fd_MsgCreateLatestPubKey_public_key protoreflect.FieldDescriptor fd_MsgCreateLatestPubKey_commitments protoreflect.FieldDescriptor fd_MsgCreateLatestPubKey_number_of_validators protoreflect.FieldDescriptor - fd_MsgCreateLatestPubKey_encrypted_key_shares protoreflect.FieldDescriptor + fd_MsgCreateLatestPubKey_encrypted_keyshares protoreflect.FieldDescriptor ) func init() { @@ -3990,7 +3990,7 @@ func init() { fd_MsgCreateLatestPubKey_public_key = md_MsgCreateLatestPubKey.Fields().ByName("public_key") fd_MsgCreateLatestPubKey_commitments = md_MsgCreateLatestPubKey.Fields().ByName("commitments") fd_MsgCreateLatestPubKey_number_of_validators = md_MsgCreateLatestPubKey.Fields().ByName("number_of_validators") - fd_MsgCreateLatestPubKey_encrypted_key_shares = md_MsgCreateLatestPubKey.Fields().ByName("encrypted_key_shares") + fd_MsgCreateLatestPubKey_encrypted_keyshares = md_MsgCreateLatestPubKey.Fields().ByName("encrypted_keyshares") } var _ protoreflect.Message = (*fastReflection_MsgCreateLatestPubKey)(nil) @@ -4082,9 +4082,9 @@ func (x *fastReflection_MsgCreateLatestPubKey) Range(f func(protoreflect.FieldDe return } } - if len(x.EncryptedKeyShares) != 0 { - value := protoreflect.ValueOfList(&_MsgCreateLatestPubKey_5_list{list: &x.EncryptedKeyShares}) - if !f(fd_MsgCreateLatestPubKey_encrypted_key_shares, value) { + if len(x.EncryptedKeyshares) != 0 { + value := protoreflect.ValueOfList(&_MsgCreateLatestPubKey_5_list{list: &x.EncryptedKeyshares}) + if !f(fd_MsgCreateLatestPubKey_encrypted_keyshares, value) { return } } @@ -4111,8 +4111,8 @@ func (x *fastReflection_MsgCreateLatestPubKey) Has(fd protoreflect.FieldDescript return len(x.Commitments) != 0 case "fairyring.keyshare.MsgCreateLatestPubKey.number_of_validators": return x.NumberOfValidators != uint64(0) - case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_key_shares": - return len(x.EncryptedKeyShares) != 0 + case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_keyshares": + return len(x.EncryptedKeyshares) != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubKey")) @@ -4137,8 +4137,8 @@ func (x *fastReflection_MsgCreateLatestPubKey) Clear(fd protoreflect.FieldDescri x.Commitments = nil case "fairyring.keyshare.MsgCreateLatestPubKey.number_of_validators": x.NumberOfValidators = uint64(0) - case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_key_shares": - x.EncryptedKeyShares = nil + case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_keyshares": + x.EncryptedKeyshares = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubKey")) @@ -4170,11 +4170,11 @@ func (x *fastReflection_MsgCreateLatestPubKey) Get(descriptor protoreflect.Field case "fairyring.keyshare.MsgCreateLatestPubKey.number_of_validators": value := x.NumberOfValidators return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_key_shares": - if len(x.EncryptedKeyShares) == 0 { + case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_keyshares": + if len(x.EncryptedKeyshares) == 0 { return protoreflect.ValueOfList(&_MsgCreateLatestPubKey_5_list{}) } - listValue := &_MsgCreateLatestPubKey_5_list{list: &x.EncryptedKeyShares} + listValue := &_MsgCreateLatestPubKey_5_list{list: &x.EncryptedKeyshares} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { @@ -4206,10 +4206,10 @@ func (x *fastReflection_MsgCreateLatestPubKey) Set(fd protoreflect.FieldDescript x.Commitments = *clv.list case "fairyring.keyshare.MsgCreateLatestPubKey.number_of_validators": x.NumberOfValidators = value.Uint() - case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_key_shares": + case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_keyshares": lv := value.List() clv := lv.(*_MsgCreateLatestPubKey_5_list) - x.EncryptedKeyShares = *clv.list + x.EncryptedKeyshares = *clv.list default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubKey")) @@ -4236,11 +4236,11 @@ func (x *fastReflection_MsgCreateLatestPubKey) Mutable(fd protoreflect.FieldDesc } value := &_MsgCreateLatestPubKey_3_list{list: &x.Commitments} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_key_shares": - if x.EncryptedKeyShares == nil { - x.EncryptedKeyShares = []*EncryptedKeyShare{} + case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_keyshares": + if x.EncryptedKeyshares == nil { + x.EncryptedKeyshares = []*EncryptedKeyshare{} } - value := &_MsgCreateLatestPubKey_5_list{list: &x.EncryptedKeyShares} + value := &_MsgCreateLatestPubKey_5_list{list: &x.EncryptedKeyshares} return protoreflect.ValueOfList(value) case "fairyring.keyshare.MsgCreateLatestPubKey.creator": panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgCreateLatestPubKey is not mutable")) @@ -4270,8 +4270,8 @@ func (x *fastReflection_MsgCreateLatestPubKey) NewField(fd protoreflect.FieldDes return protoreflect.ValueOfList(&_MsgCreateLatestPubKey_3_list{list: &list}) case "fairyring.keyshare.MsgCreateLatestPubKey.number_of_validators": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_key_shares": - list := []*EncryptedKeyShare{} + case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_keyshares": + list := []*EncryptedKeyshare{} return protoreflect.ValueOfList(&_MsgCreateLatestPubKey_5_list{list: &list}) default: if fd.IsExtension() { @@ -4359,8 +4359,8 @@ func (x *fastReflection_MsgCreateLatestPubKey) ProtoMethods() *protoiface.Method if x.NumberOfValidators != 0 { n += 1 + runtime.Sov(uint64(x.NumberOfValidators)) } - if len(x.EncryptedKeyShares) > 0 { - for _, e := range x.EncryptedKeyShares { + if len(x.EncryptedKeyshares) > 0 { + for _, e := range x.EncryptedKeyshares { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -4394,9 +4394,9 @@ func (x *fastReflection_MsgCreateLatestPubKey) ProtoMethods() *protoiface.Method i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.EncryptedKeyShares) > 0 { - for iNdEx := len(x.EncryptedKeyShares) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.EncryptedKeyShares[iNdEx]) + if len(x.EncryptedKeyshares) > 0 { + for iNdEx := len(x.EncryptedKeyshares) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.EncryptedKeyshares[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4604,7 +4604,7 @@ func (x *fastReflection_MsgCreateLatestPubKey) ProtoMethods() *protoiface.Method } case 5: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyShares", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyshares", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4631,8 +4631,8 @@ func (x *fastReflection_MsgCreateLatestPubKey) ProtoMethods() *protoiface.Method if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.EncryptedKeyShares = append(x.EncryptedKeyShares, &EncryptedKeyShare{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EncryptedKeyShares[len(x.EncryptedKeyShares)-1]); err != nil { + x.EncryptedKeyshares = append(x.EncryptedKeyshares, &EncryptedKeyshare{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EncryptedKeyshares[len(x.EncryptedKeyshares)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -5076,7 +5076,7 @@ func (x *_MsgOverrideLatestPubKey_3_list) IsValid() bool { var _ protoreflect.List = (*_MsgOverrideLatestPubKey_5_list)(nil) type _MsgOverrideLatestPubKey_5_list struct { - list *[]*EncryptedKeyShare + list *[]*EncryptedKeyshare } func (x *_MsgOverrideLatestPubKey_5_list) Len() int { @@ -5092,18 +5092,18 @@ func (x *_MsgOverrideLatestPubKey_5_list) Get(i int) protoreflect.Value { func (x *_MsgOverrideLatestPubKey_5_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*EncryptedKeyShare) + concreteValue := valueUnwrapped.Interface().(*EncryptedKeyshare) (*x.list)[i] = concreteValue } func (x *_MsgOverrideLatestPubKey_5_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*EncryptedKeyShare) + concreteValue := valueUnwrapped.Interface().(*EncryptedKeyshare) *x.list = append(*x.list, concreteValue) } func (x *_MsgOverrideLatestPubKey_5_list) AppendMutable() protoreflect.Value { - v := new(EncryptedKeyShare) + v := new(EncryptedKeyshare) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -5116,7 +5116,7 @@ func (x *_MsgOverrideLatestPubKey_5_list) Truncate(n int) { } func (x *_MsgOverrideLatestPubKey_5_list) NewElement() protoreflect.Value { - v := new(EncryptedKeyShare) + v := new(EncryptedKeyshare) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -5130,7 +5130,7 @@ var ( fd_MsgOverrideLatestPubKey_public_key protoreflect.FieldDescriptor fd_MsgOverrideLatestPubKey_commitments protoreflect.FieldDescriptor fd_MsgOverrideLatestPubKey_number_of_validators protoreflect.FieldDescriptor - fd_MsgOverrideLatestPubKey_encrypted_key_shares protoreflect.FieldDescriptor + fd_MsgOverrideLatestPubKey_encrypted_keyshares protoreflect.FieldDescriptor ) func init() { @@ -5140,7 +5140,7 @@ func init() { fd_MsgOverrideLatestPubKey_public_key = md_MsgOverrideLatestPubKey.Fields().ByName("public_key") fd_MsgOverrideLatestPubKey_commitments = md_MsgOverrideLatestPubKey.Fields().ByName("commitments") fd_MsgOverrideLatestPubKey_number_of_validators = md_MsgOverrideLatestPubKey.Fields().ByName("number_of_validators") - fd_MsgOverrideLatestPubKey_encrypted_key_shares = md_MsgOverrideLatestPubKey.Fields().ByName("encrypted_key_shares") + fd_MsgOverrideLatestPubKey_encrypted_keyshares = md_MsgOverrideLatestPubKey.Fields().ByName("encrypted_keyshares") } var _ protoreflect.Message = (*fastReflection_MsgOverrideLatestPubKey)(nil) @@ -5232,9 +5232,9 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Range(f func(protoreflect.Field return } } - if len(x.EncryptedKeyShares) != 0 { - value := protoreflect.ValueOfList(&_MsgOverrideLatestPubKey_5_list{list: &x.EncryptedKeyShares}) - if !f(fd_MsgOverrideLatestPubKey_encrypted_key_shares, value) { + if len(x.EncryptedKeyshares) != 0 { + value := protoreflect.ValueOfList(&_MsgOverrideLatestPubKey_5_list{list: &x.EncryptedKeyshares}) + if !f(fd_MsgOverrideLatestPubKey_encrypted_keyshares, value) { return } } @@ -5261,8 +5261,8 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Has(fd protoreflect.FieldDescri return len(x.Commitments) != 0 case "fairyring.keyshare.MsgOverrideLatestPubKey.number_of_validators": return x.NumberOfValidators != uint64(0) - case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_key_shares": - return len(x.EncryptedKeyShares) != 0 + case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_keyshares": + return len(x.EncryptedKeyshares) != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubKey")) @@ -5287,8 +5287,8 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Clear(fd protoreflect.FieldDesc x.Commitments = nil case "fairyring.keyshare.MsgOverrideLatestPubKey.number_of_validators": x.NumberOfValidators = uint64(0) - case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_key_shares": - x.EncryptedKeyShares = nil + case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_keyshares": + x.EncryptedKeyshares = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubKey")) @@ -5320,11 +5320,11 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Get(descriptor protoreflect.Fie case "fairyring.keyshare.MsgOverrideLatestPubKey.number_of_validators": value := x.NumberOfValidators return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_key_shares": - if len(x.EncryptedKeyShares) == 0 { + case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_keyshares": + if len(x.EncryptedKeyshares) == 0 { return protoreflect.ValueOfList(&_MsgOverrideLatestPubKey_5_list{}) } - listValue := &_MsgOverrideLatestPubKey_5_list{list: &x.EncryptedKeyShares} + listValue := &_MsgOverrideLatestPubKey_5_list{list: &x.EncryptedKeyshares} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { @@ -5356,10 +5356,10 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Set(fd protoreflect.FieldDescri x.Commitments = *clv.list case "fairyring.keyshare.MsgOverrideLatestPubKey.number_of_validators": x.NumberOfValidators = value.Uint() - case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_key_shares": + case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_keyshares": lv := value.List() clv := lv.(*_MsgOverrideLatestPubKey_5_list) - x.EncryptedKeyShares = *clv.list + x.EncryptedKeyshares = *clv.list default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubKey")) @@ -5386,11 +5386,11 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Mutable(fd protoreflect.FieldDe } value := &_MsgOverrideLatestPubKey_3_list{list: &x.Commitments} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_key_shares": - if x.EncryptedKeyShares == nil { - x.EncryptedKeyShares = []*EncryptedKeyShare{} + case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_keyshares": + if x.EncryptedKeyshares == nil { + x.EncryptedKeyshares = []*EncryptedKeyshare{} } - value := &_MsgOverrideLatestPubKey_5_list{list: &x.EncryptedKeyShares} + value := &_MsgOverrideLatestPubKey_5_list{list: &x.EncryptedKeyshares} return protoreflect.ValueOfList(value) case "fairyring.keyshare.MsgOverrideLatestPubKey.creator": panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgOverrideLatestPubKey is not mutable")) @@ -5420,8 +5420,8 @@ func (x *fastReflection_MsgOverrideLatestPubKey) NewField(fd protoreflect.FieldD return protoreflect.ValueOfList(&_MsgOverrideLatestPubKey_3_list{list: &list}) case "fairyring.keyshare.MsgOverrideLatestPubKey.number_of_validators": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_key_shares": - list := []*EncryptedKeyShare{} + case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_keyshares": + list := []*EncryptedKeyshare{} return protoreflect.ValueOfList(&_MsgOverrideLatestPubKey_5_list{list: &list}) default: if fd.IsExtension() { @@ -5509,8 +5509,8 @@ func (x *fastReflection_MsgOverrideLatestPubKey) ProtoMethods() *protoiface.Meth if x.NumberOfValidators != 0 { n += 1 + runtime.Sov(uint64(x.NumberOfValidators)) } - if len(x.EncryptedKeyShares) > 0 { - for _, e := range x.EncryptedKeyShares { + if len(x.EncryptedKeyshares) > 0 { + for _, e := range x.EncryptedKeyshares { l = options.Size(e) n += 1 + l + runtime.Sov(uint64(l)) } @@ -5544,9 +5544,9 @@ func (x *fastReflection_MsgOverrideLatestPubKey) ProtoMethods() *protoiface.Meth i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.EncryptedKeyShares) > 0 { - for iNdEx := len(x.EncryptedKeyShares) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.EncryptedKeyShares[iNdEx]) + if len(x.EncryptedKeyshares) > 0 { + for iNdEx := len(x.EncryptedKeyshares) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.EncryptedKeyshares[iNdEx]) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5754,7 +5754,7 @@ func (x *fastReflection_MsgOverrideLatestPubKey) ProtoMethods() *protoiface.Meth } case 5: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyShares", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyshares", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5781,8 +5781,8 @@ func (x *fastReflection_MsgOverrideLatestPubKey) ProtoMethods() *protoiface.Meth if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.EncryptedKeyShares = append(x.EncryptedKeyShares, &EncryptedKeyShare{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EncryptedKeyShares[len(x.EncryptedKeyShares)-1]); err != nil { + x.EncryptedKeyshares = append(x.EncryptedKeyshares, &EncryptedKeyshare{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.EncryptedKeyshares[len(x.EncryptedKeyshares)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -8752,37 +8752,37 @@ func (x *fastReflection_MsgDeleteAuthorizedAddressResponse) ProtoMethods() *prot } var ( - md_MsgSubmitGeneralKeyShare protoreflect.MessageDescriptor - fd_MsgSubmitGeneralKeyShare_creator protoreflect.FieldDescriptor - fd_MsgSubmitGeneralKeyShare_id_type protoreflect.FieldDescriptor - fd_MsgSubmitGeneralKeyShare_id_value protoreflect.FieldDescriptor - fd_MsgSubmitGeneralKeyShare_key_share protoreflect.FieldDescriptor - fd_MsgSubmitGeneralKeyShare_key_share_index protoreflect.FieldDescriptor - fd_MsgSubmitGeneralKeyShare_received_timestamp protoreflect.FieldDescriptor - fd_MsgSubmitGeneralKeyShare_received_block_height protoreflect.FieldDescriptor + md_MsgSubmitGeneralKeyshare protoreflect.MessageDescriptor + fd_MsgSubmitGeneralKeyshare_creator protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyshare_id_type protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyshare_id_value protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyshare_keyshare protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyshare_keyshare_index protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyshare_received_timestamp protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyshare_received_block_height protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_tx_proto_init() - md_MsgSubmitGeneralKeyShare = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgSubmitGeneralKeyShare") - fd_MsgSubmitGeneralKeyShare_creator = md_MsgSubmitGeneralKeyShare.Fields().ByName("creator") - fd_MsgSubmitGeneralKeyShare_id_type = md_MsgSubmitGeneralKeyShare.Fields().ByName("id_type") - fd_MsgSubmitGeneralKeyShare_id_value = md_MsgSubmitGeneralKeyShare.Fields().ByName("id_value") - fd_MsgSubmitGeneralKeyShare_key_share = md_MsgSubmitGeneralKeyShare.Fields().ByName("key_share") - fd_MsgSubmitGeneralKeyShare_key_share_index = md_MsgSubmitGeneralKeyShare.Fields().ByName("key_share_index") - fd_MsgSubmitGeneralKeyShare_received_timestamp = md_MsgSubmitGeneralKeyShare.Fields().ByName("received_timestamp") - fd_MsgSubmitGeneralKeyShare_received_block_height = md_MsgSubmitGeneralKeyShare.Fields().ByName("received_block_height") + md_MsgSubmitGeneralKeyshare = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgSubmitGeneralKeyshare") + fd_MsgSubmitGeneralKeyshare_creator = md_MsgSubmitGeneralKeyshare.Fields().ByName("creator") + fd_MsgSubmitGeneralKeyshare_id_type = md_MsgSubmitGeneralKeyshare.Fields().ByName("id_type") + fd_MsgSubmitGeneralKeyshare_id_value = md_MsgSubmitGeneralKeyshare.Fields().ByName("id_value") + fd_MsgSubmitGeneralKeyshare_keyshare = md_MsgSubmitGeneralKeyshare.Fields().ByName("keyshare") + fd_MsgSubmitGeneralKeyshare_keyshare_index = md_MsgSubmitGeneralKeyshare.Fields().ByName("keyshare_index") + fd_MsgSubmitGeneralKeyshare_received_timestamp = md_MsgSubmitGeneralKeyshare.Fields().ByName("received_timestamp") + fd_MsgSubmitGeneralKeyshare_received_block_height = md_MsgSubmitGeneralKeyshare.Fields().ByName("received_block_height") } -var _ protoreflect.Message = (*fastReflection_MsgSubmitGeneralKeyShare)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSubmitGeneralKeyshare)(nil) -type fastReflection_MsgSubmitGeneralKeyShare MsgSubmitGeneralKeyShare +type fastReflection_MsgSubmitGeneralKeyshare MsgSubmitGeneralKeyshare -func (x *MsgSubmitGeneralKeyShare) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSubmitGeneralKeyShare)(x) +func (x *MsgSubmitGeneralKeyshare) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSubmitGeneralKeyshare)(x) } -func (x *MsgSubmitGeneralKeyShare) slowProtoReflect() protoreflect.Message { +func (x *MsgSubmitGeneralKeyshare) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_tx_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8794,43 +8794,43 @@ func (x *MsgSubmitGeneralKeyShare) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgSubmitGeneralKeyShare_messageType fastReflection_MsgSubmitGeneralKeyShare_messageType -var _ protoreflect.MessageType = fastReflection_MsgSubmitGeneralKeyShare_messageType{} +var _fastReflection_MsgSubmitGeneralKeyshare_messageType fastReflection_MsgSubmitGeneralKeyshare_messageType +var _ protoreflect.MessageType = fastReflection_MsgSubmitGeneralKeyshare_messageType{} -type fastReflection_MsgSubmitGeneralKeyShare_messageType struct{} +type fastReflection_MsgSubmitGeneralKeyshare_messageType struct{} -func (x fastReflection_MsgSubmitGeneralKeyShare_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSubmitGeneralKeyShare)(nil) +func (x fastReflection_MsgSubmitGeneralKeyshare_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSubmitGeneralKeyshare)(nil) } -func (x fastReflection_MsgSubmitGeneralKeyShare_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSubmitGeneralKeyShare) +func (x fastReflection_MsgSubmitGeneralKeyshare_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSubmitGeneralKeyshare) } -func (x fastReflection_MsgSubmitGeneralKeyShare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSubmitGeneralKeyShare +func (x fastReflection_MsgSubmitGeneralKeyshare_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitGeneralKeyshare } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgSubmitGeneralKeyShare) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSubmitGeneralKeyShare +func (x *fastReflection_MsgSubmitGeneralKeyshare) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitGeneralKeyshare } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgSubmitGeneralKeyShare) Type() protoreflect.MessageType { - return _fastReflection_MsgSubmitGeneralKeyShare_messageType +func (x *fastReflection_MsgSubmitGeneralKeyshare) Type() protoreflect.MessageType { + return _fastReflection_MsgSubmitGeneralKeyshare_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSubmitGeneralKeyShare) New() protoreflect.Message { - return new(fastReflection_MsgSubmitGeneralKeyShare) +func (x *fastReflection_MsgSubmitGeneralKeyshare) New() protoreflect.Message { + return new(fastReflection_MsgSubmitGeneralKeyshare) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSubmitGeneralKeyShare) Interface() protoreflect.ProtoMessage { - return (*MsgSubmitGeneralKeyShare)(x) +func (x *fastReflection_MsgSubmitGeneralKeyshare) Interface() protoreflect.ProtoMessage { + return (*MsgSubmitGeneralKeyshare)(x) } // Range iterates over every populated field in an undefined order, @@ -8838,46 +8838,46 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgSubmitGeneralKeyShare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgSubmitGeneralKeyshare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgSubmitGeneralKeyShare_creator, value) { + if !f(fd_MsgSubmitGeneralKeyshare_creator, value) { return } } if x.IdType != "" { value := protoreflect.ValueOfString(x.IdType) - if !f(fd_MsgSubmitGeneralKeyShare_id_type, value) { + if !f(fd_MsgSubmitGeneralKeyshare_id_type, value) { return } } if x.IdValue != "" { value := protoreflect.ValueOfString(x.IdValue) - if !f(fd_MsgSubmitGeneralKeyShare_id_value, value) { + if !f(fd_MsgSubmitGeneralKeyshare_id_value, value) { return } } - if x.KeyShare != "" { - value := protoreflect.ValueOfString(x.KeyShare) - if !f(fd_MsgSubmitGeneralKeyShare_key_share, value) { + if x.Keyshare != "" { + value := protoreflect.ValueOfString(x.Keyshare) + if !f(fd_MsgSubmitGeneralKeyshare_keyshare, value) { return } } - if x.KeyShareIndex != uint64(0) { - value := protoreflect.ValueOfUint64(x.KeyShareIndex) - if !f(fd_MsgSubmitGeneralKeyShare_key_share_index, value) { + if x.KeyshareIndex != uint64(0) { + value := protoreflect.ValueOfUint64(x.KeyshareIndex) + if !f(fd_MsgSubmitGeneralKeyshare_keyshare_index, value) { return } } if x.ReceivedTimestamp != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedTimestamp) - if !f(fd_MsgSubmitGeneralKeyShare_received_timestamp, value) { + if !f(fd_MsgSubmitGeneralKeyshare_received_timestamp, value) { return } } if x.ReceivedBlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedBlockHeight) - if !f(fd_MsgSubmitGeneralKeyShare_received_block_height, value) { + if !f(fd_MsgSubmitGeneralKeyshare_received_block_height, value) { return } } @@ -8894,27 +8894,27 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) Range(f func(protoreflect.Fiel // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSubmitGeneralKeyShare) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgSubmitGeneralKeyshare) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.creator": return x.Creator != "" - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.id_type": return x.IdType != "" - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.id_value": return x.IdValue != "" - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share": - return x.KeyShare != "" - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share_index": - return x.KeyShareIndex != uint64(0) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_timestamp": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.keyshare": + return x.Keyshare != "" + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.keyshare_index": + return x.KeyshareIndex != uint64(0) + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.received_timestamp": return x.ReceivedTimestamp != uint64(0) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.received_block_height": return x.ReceivedBlockHeight != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyshare does not contain field %s", fd.FullName())) } } @@ -8924,27 +8924,27 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitGeneralKeyShare) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgSubmitGeneralKeyshare) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.creator": x.Creator = "" - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.id_type": x.IdType = "" - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.id_value": x.IdValue = "" - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share": - x.KeyShare = "" - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share_index": - x.KeyShareIndex = uint64(0) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_timestamp": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.keyshare": + x.Keyshare = "" + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.keyshare_index": + x.KeyshareIndex = uint64(0) + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.received_timestamp": x.ReceivedTimestamp = uint64(0) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.received_block_height": x.ReceivedBlockHeight = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyshare does not contain field %s", fd.FullName())) } } @@ -8954,34 +8954,34 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) Clear(fd protoreflect.FieldDes // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgSubmitGeneralKeyShare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitGeneralKeyshare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.id_type": value := x.IdType return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.id_value": value := x.IdValue return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share": - value := x.KeyShare + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.keyshare": + value := x.Keyshare return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share_index": - value := x.KeyShareIndex + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.keyshare_index": + value := x.KeyshareIndex return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_timestamp": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.received_timestamp": value := x.ReceivedTimestamp return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.received_block_height": value := x.ReceivedBlockHeight return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShare does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyshare does not contain field %s", descriptor.FullName())) } } @@ -8995,27 +8995,27 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitGeneralKeyShare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgSubmitGeneralKeyshare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.creator": x.Creator = value.Interface().(string) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.id_type": x.IdType = value.Interface().(string) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.id_value": x.IdValue = value.Interface().(string) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share": - x.KeyShare = value.Interface().(string) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share_index": - x.KeyShareIndex = value.Uint() - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_timestamp": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.keyshare": + x.Keyshare = value.Interface().(string) + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.keyshare_index": + x.KeyshareIndex = value.Uint() + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.received_timestamp": x.ReceivedTimestamp = value.Uint() - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.received_block_height": x.ReceivedBlockHeight = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyshare does not contain field %s", fd.FullName())) } } @@ -9029,64 +9029,64 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitGeneralKeyShare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitGeneralKeyshare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.creator": - panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgSubmitGeneralKeyShare is not mutable")) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_type": - panic(fmt.Errorf("field id_type of message fairyring.keyshare.MsgSubmitGeneralKeyShare is not mutable")) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_value": - panic(fmt.Errorf("field id_value of message fairyring.keyshare.MsgSubmitGeneralKeyShare is not mutable")) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share": - panic(fmt.Errorf("field key_share of message fairyring.keyshare.MsgSubmitGeneralKeyShare is not mutable")) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share_index": - panic(fmt.Errorf("field key_share_index of message fairyring.keyshare.MsgSubmitGeneralKeyShare is not mutable")) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_timestamp": - panic(fmt.Errorf("field received_timestamp of message fairyring.keyshare.MsgSubmitGeneralKeyShare is not mutable")) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_block_height": - panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.MsgSubmitGeneralKeyShare is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.creator": + panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgSubmitGeneralKeyshare is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.id_type": + panic(fmt.Errorf("field id_type of message fairyring.keyshare.MsgSubmitGeneralKeyshare is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.id_value": + panic(fmt.Errorf("field id_value of message fairyring.keyshare.MsgSubmitGeneralKeyshare is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.keyshare": + panic(fmt.Errorf("field keyshare of message fairyring.keyshare.MsgSubmitGeneralKeyshare is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.keyshare_index": + panic(fmt.Errorf("field keyshare_index of message fairyring.keyshare.MsgSubmitGeneralKeyshare is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.received_timestamp": + panic(fmt.Errorf("field received_timestamp of message fairyring.keyshare.MsgSubmitGeneralKeyshare is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.received_block_height": + panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.MsgSubmitGeneralKeyshare is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyshare does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgSubmitGeneralKeyShare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitGeneralKeyshare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.creator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.id_type": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.id_value": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.keyshare": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.key_share_index": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.keyshare_index": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_timestamp": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.received_timestamp": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgSubmitGeneralKeyShare.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyshare.received_block_height": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyshare")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyshare does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgSubmitGeneralKeyShare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgSubmitGeneralKeyshare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.MsgSubmitGeneralKeyShare", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.MsgSubmitGeneralKeyshare", d.FullName())) } panic("unreachable") } @@ -9094,7 +9094,7 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) WhichOneof(d protoreflect.Oneo // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgSubmitGeneralKeyShare) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgSubmitGeneralKeyshare) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9105,7 +9105,7 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitGeneralKeyShare) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgSubmitGeneralKeyshare) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9117,7 +9117,7 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) SetUnknown(fields protoreflect // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgSubmitGeneralKeyShare) IsValid() bool { +func (x *fastReflection_MsgSubmitGeneralKeyshare) IsValid() bool { return x != nil } @@ -9127,9 +9127,9 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgSubmitGeneralKeyShare) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgSubmitGeneralKeyshare) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSubmitGeneralKeyShare) + x := input.Message.Interface().(*MsgSubmitGeneralKeyshare) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9153,12 +9153,12 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) ProtoMethods() *protoiface.Met if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.KeyShare) + l = len(x.Keyshare) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.KeyShareIndex != 0 { - n += 1 + runtime.Sov(uint64(x.KeyShareIndex)) + if x.KeyshareIndex != 0 { + n += 1 + runtime.Sov(uint64(x.KeyshareIndex)) } if x.ReceivedTimestamp != 0 { n += 1 + runtime.Sov(uint64(x.ReceivedTimestamp)) @@ -9176,7 +9176,7 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSubmitGeneralKeyShare) + x := input.Message.Interface().(*MsgSubmitGeneralKeyshare) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9205,15 +9205,15 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) ProtoMethods() *protoiface.Met i-- dAtA[i] = 0x30 } - if x.KeyShareIndex != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyShareIndex)) + if x.KeyshareIndex != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyshareIndex)) i-- dAtA[i] = 0x28 } - if len(x.KeyShare) > 0 { - i -= len(x.KeyShare) - copy(dAtA[i:], x.KeyShare) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.KeyShare))) + if len(x.Keyshare) > 0 { + i -= len(x.Keyshare) + copy(dAtA[i:], x.Keyshare) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Keyshare))) i-- dAtA[i] = 0x22 } @@ -9249,7 +9249,7 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSubmitGeneralKeyShare) + x := input.Message.Interface().(*MsgSubmitGeneralKeyshare) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9281,10 +9281,10 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitGeneralKeyShare: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitGeneralKeyshare: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitGeneralKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitGeneralKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9385,7 +9385,7 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) ProtoMethods() *protoiface.Met iNdEx = postIndex case 4: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Keyshare", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -9413,13 +9413,13 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) ProtoMethods() *protoiface.Met if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.KeyShare = string(dAtA[iNdEx:postIndex]) + x.Keyshare = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyshareIndex", wireType) } - x.KeyShareIndex = 0 + x.KeyshareIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -9429,7 +9429,7 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) ProtoMethods() *protoiface.Met } b := dAtA[iNdEx] iNdEx++ - x.KeyShareIndex |= uint64(b&0x7F) << shift + x.KeyshareIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9508,39 +9508,39 @@ func (x *fastReflection_MsgSubmitGeneralKeyShare) ProtoMethods() *protoiface.Met } var ( - md_MsgSubmitGeneralKeyShareResponse protoreflect.MessageDescriptor - fd_MsgSubmitGeneralKeyShareResponse_creator protoreflect.FieldDescriptor - fd_MsgSubmitGeneralKeyShareResponse_id_type protoreflect.FieldDescriptor - fd_MsgSubmitGeneralKeyShareResponse_id_value protoreflect.FieldDescriptor - fd_MsgSubmitGeneralKeyShareResponse_key_share protoreflect.FieldDescriptor - fd_MsgSubmitGeneralKeyShareResponse_key_share_index protoreflect.FieldDescriptor - fd_MsgSubmitGeneralKeyShareResponse_received_block_height protoreflect.FieldDescriptor - fd_MsgSubmitGeneralKeyShareResponse_success protoreflect.FieldDescriptor - fd_MsgSubmitGeneralKeyShareResponse_error_message protoreflect.FieldDescriptor + md_MsgSubmitGeneralKeyshareResponse protoreflect.MessageDescriptor + fd_MsgSubmitGeneralKeyshareResponse_creator protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyshareResponse_id_type protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyshareResponse_id_value protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyshareResponse_keyshare protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyshareResponse_keyshare_index protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyshareResponse_received_block_height protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyshareResponse_success protoreflect.FieldDescriptor + fd_MsgSubmitGeneralKeyshareResponse_error_message protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_tx_proto_init() - md_MsgSubmitGeneralKeyShareResponse = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgSubmitGeneralKeyShareResponse") - fd_MsgSubmitGeneralKeyShareResponse_creator = md_MsgSubmitGeneralKeyShareResponse.Fields().ByName("creator") - fd_MsgSubmitGeneralKeyShareResponse_id_type = md_MsgSubmitGeneralKeyShareResponse.Fields().ByName("id_type") - fd_MsgSubmitGeneralKeyShareResponse_id_value = md_MsgSubmitGeneralKeyShareResponse.Fields().ByName("id_value") - fd_MsgSubmitGeneralKeyShareResponse_key_share = md_MsgSubmitGeneralKeyShareResponse.Fields().ByName("key_share") - fd_MsgSubmitGeneralKeyShareResponse_key_share_index = md_MsgSubmitGeneralKeyShareResponse.Fields().ByName("key_share_index") - fd_MsgSubmitGeneralKeyShareResponse_received_block_height = md_MsgSubmitGeneralKeyShareResponse.Fields().ByName("received_block_height") - fd_MsgSubmitGeneralKeyShareResponse_success = md_MsgSubmitGeneralKeyShareResponse.Fields().ByName("success") - fd_MsgSubmitGeneralKeyShareResponse_error_message = md_MsgSubmitGeneralKeyShareResponse.Fields().ByName("error_message") + md_MsgSubmitGeneralKeyshareResponse = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgSubmitGeneralKeyshareResponse") + fd_MsgSubmitGeneralKeyshareResponse_creator = md_MsgSubmitGeneralKeyshareResponse.Fields().ByName("creator") + fd_MsgSubmitGeneralKeyshareResponse_id_type = md_MsgSubmitGeneralKeyshareResponse.Fields().ByName("id_type") + fd_MsgSubmitGeneralKeyshareResponse_id_value = md_MsgSubmitGeneralKeyshareResponse.Fields().ByName("id_value") + fd_MsgSubmitGeneralKeyshareResponse_keyshare = md_MsgSubmitGeneralKeyshareResponse.Fields().ByName("keyshare") + fd_MsgSubmitGeneralKeyshareResponse_keyshare_index = md_MsgSubmitGeneralKeyshareResponse.Fields().ByName("keyshare_index") + fd_MsgSubmitGeneralKeyshareResponse_received_block_height = md_MsgSubmitGeneralKeyshareResponse.Fields().ByName("received_block_height") + fd_MsgSubmitGeneralKeyshareResponse_success = md_MsgSubmitGeneralKeyshareResponse.Fields().ByName("success") + fd_MsgSubmitGeneralKeyshareResponse_error_message = md_MsgSubmitGeneralKeyshareResponse.Fields().ByName("error_message") } -var _ protoreflect.Message = (*fastReflection_MsgSubmitGeneralKeyShareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSubmitGeneralKeyshareResponse)(nil) -type fastReflection_MsgSubmitGeneralKeyShareResponse MsgSubmitGeneralKeyShareResponse +type fastReflection_MsgSubmitGeneralKeyshareResponse MsgSubmitGeneralKeyshareResponse -func (x *MsgSubmitGeneralKeyShareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgSubmitGeneralKeyShareResponse)(x) +func (x *MsgSubmitGeneralKeyshareResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSubmitGeneralKeyshareResponse)(x) } -func (x *MsgSubmitGeneralKeyShareResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgSubmitGeneralKeyshareResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_tx_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9552,43 +9552,43 @@ func (x *MsgSubmitGeneralKeyShareResponse) slowProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -var _fastReflection_MsgSubmitGeneralKeyShareResponse_messageType fastReflection_MsgSubmitGeneralKeyShareResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgSubmitGeneralKeyShareResponse_messageType{} +var _fastReflection_MsgSubmitGeneralKeyshareResponse_messageType fastReflection_MsgSubmitGeneralKeyshareResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSubmitGeneralKeyshareResponse_messageType{} -type fastReflection_MsgSubmitGeneralKeyShareResponse_messageType struct{} +type fastReflection_MsgSubmitGeneralKeyshareResponse_messageType struct{} -func (x fastReflection_MsgSubmitGeneralKeyShareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgSubmitGeneralKeyShareResponse)(nil) +func (x fastReflection_MsgSubmitGeneralKeyshareResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSubmitGeneralKeyshareResponse)(nil) } -func (x fastReflection_MsgSubmitGeneralKeyShareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgSubmitGeneralKeyShareResponse) +func (x fastReflection_MsgSubmitGeneralKeyshareResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSubmitGeneralKeyshareResponse) } -func (x fastReflection_MsgSubmitGeneralKeyShareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSubmitGeneralKeyShareResponse +func (x fastReflection_MsgSubmitGeneralKeyshareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitGeneralKeyshareResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgSubmitGeneralKeyShareResponse +func (x *fastReflection_MsgSubmitGeneralKeyshareResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitGeneralKeyshareResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgSubmitGeneralKeyShareResponse_messageType +func (x *fastReflection_MsgSubmitGeneralKeyshareResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSubmitGeneralKeyshareResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) New() protoreflect.Message { - return new(fastReflection_MsgSubmitGeneralKeyShareResponse) +func (x *fastReflection_MsgSubmitGeneralKeyshareResponse) New() protoreflect.Message { + return new(fastReflection_MsgSubmitGeneralKeyshareResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Interface() protoreflect.ProtoMessage { - return (*MsgSubmitGeneralKeyShareResponse)(x) +func (x *fastReflection_MsgSubmitGeneralKeyshareResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSubmitGeneralKeyshareResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -9596,52 +9596,52 @@ func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Interface() protorefle // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgSubmitGeneralKeyshareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgSubmitGeneralKeyShareResponse_creator, value) { + if !f(fd_MsgSubmitGeneralKeyshareResponse_creator, value) { return } } if x.IdType != "" { value := protoreflect.ValueOfString(x.IdType) - if !f(fd_MsgSubmitGeneralKeyShareResponse_id_type, value) { + if !f(fd_MsgSubmitGeneralKeyshareResponse_id_type, value) { return } } if x.IdValue != "" { value := protoreflect.ValueOfString(x.IdValue) - if !f(fd_MsgSubmitGeneralKeyShareResponse_id_value, value) { + if !f(fd_MsgSubmitGeneralKeyshareResponse_id_value, value) { return } } - if x.KeyShare != "" { - value := protoreflect.ValueOfString(x.KeyShare) - if !f(fd_MsgSubmitGeneralKeyShareResponse_key_share, value) { + if x.Keyshare != "" { + value := protoreflect.ValueOfString(x.Keyshare) + if !f(fd_MsgSubmitGeneralKeyshareResponse_keyshare, value) { return } } - if x.KeyShareIndex != uint64(0) { - value := protoreflect.ValueOfUint64(x.KeyShareIndex) - if !f(fd_MsgSubmitGeneralKeyShareResponse_key_share_index, value) { + if x.KeyshareIndex != uint64(0) { + value := protoreflect.ValueOfUint64(x.KeyshareIndex) + if !f(fd_MsgSubmitGeneralKeyshareResponse_keyshare_index, value) { return } } if x.ReceivedBlockHeight != uint64(0) { value := protoreflect.ValueOfUint64(x.ReceivedBlockHeight) - if !f(fd_MsgSubmitGeneralKeyShareResponse_received_block_height, value) { + if !f(fd_MsgSubmitGeneralKeyshareResponse_received_block_height, value) { return } } if x.Success != false { value := protoreflect.ValueOfBool(x.Success) - if !f(fd_MsgSubmitGeneralKeyShareResponse_success, value) { + if !f(fd_MsgSubmitGeneralKeyshareResponse_success, value) { return } } if x.ErrorMessage != "" { value := protoreflect.ValueOfString(x.ErrorMessage) - if !f(fd_MsgSubmitGeneralKeyShareResponse_error_message, value) { + if !f(fd_MsgSubmitGeneralKeyshareResponse_error_message, value) { return } } @@ -9658,29 +9658,29 @@ func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Range(f func(protorefl // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgSubmitGeneralKeyshareResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.creator": return x.Creator != "" - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.id_type": return x.IdType != "" - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.id_value": return x.IdValue != "" - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share": - return x.KeyShare != "" - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share_index": - return x.KeyShareIndex != uint64(0) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.keyshare": + return x.Keyshare != "" + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.keyshare_index": + return x.KeyshareIndex != uint64(0) + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.received_block_height": return x.ReceivedBlockHeight != uint64(0) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.success": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.success": return x.Success != false - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.error_message": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.error_message": return x.ErrorMessage != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyshareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyshareResponse does not contain field %s", fd.FullName())) } } @@ -9690,29 +9690,29 @@ func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Has(fd protoreflect.Fi // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgSubmitGeneralKeyshareResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.creator": x.Creator = "" - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.id_type": x.IdType = "" - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.id_value": x.IdValue = "" - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share": - x.KeyShare = "" - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share_index": - x.KeyShareIndex = uint64(0) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.keyshare": + x.Keyshare = "" + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.keyshare_index": + x.KeyshareIndex = uint64(0) + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.received_block_height": x.ReceivedBlockHeight = uint64(0) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.success": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.success": x.Success = false - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.error_message": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.error_message": x.ErrorMessage = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyshareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyshareResponse does not contain field %s", fd.FullName())) } } @@ -9722,37 +9722,37 @@ func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Clear(fd protoreflect. // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitGeneralKeyshareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.id_type": value := x.IdType return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.id_value": value := x.IdValue return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share": - value := x.KeyShare + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.keyshare": + value := x.Keyshare return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share_index": - value := x.KeyShareIndex + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.keyshare_index": + value := x.KeyshareIndex return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.received_block_height": value := x.ReceivedBlockHeight return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.success": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.success": value := x.Success return protoreflect.ValueOfBool(value) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.error_message": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.error_message": value := x.ErrorMessage return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyshareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyshareResponse does not contain field %s", descriptor.FullName())) } } @@ -9766,29 +9766,29 @@ func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Get(descriptor protore // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgSubmitGeneralKeyshareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.creator": x.Creator = value.Interface().(string) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.id_type": x.IdType = value.Interface().(string) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.id_value": x.IdValue = value.Interface().(string) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share": - x.KeyShare = value.Interface().(string) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share_index": - x.KeyShareIndex = value.Uint() - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.keyshare": + x.Keyshare = value.Interface().(string) + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.keyshare_index": + x.KeyshareIndex = value.Uint() + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.received_block_height": x.ReceivedBlockHeight = value.Uint() - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.success": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.success": x.Success = value.Bool() - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.error_message": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.error_message": x.ErrorMessage = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyshareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyshareResponse does not contain field %s", fd.FullName())) } } @@ -9802,68 +9802,68 @@ func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Set(fd protoreflect.Fi // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitGeneralKeyshareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.creator": - panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_type": - panic(fmt.Errorf("field id_type of message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_value": - panic(fmt.Errorf("field id_value of message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share": - panic(fmt.Errorf("field key_share of message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share_index": - panic(fmt.Errorf("field key_share_index of message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.received_block_height": - panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.success": - panic(fmt.Errorf("field success of message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse is not mutable")) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.error_message": - panic(fmt.Errorf("field error_message of message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.creator": + panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgSubmitGeneralKeyshareResponse is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.id_type": + panic(fmt.Errorf("field id_type of message fairyring.keyshare.MsgSubmitGeneralKeyshareResponse is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.id_value": + panic(fmt.Errorf("field id_value of message fairyring.keyshare.MsgSubmitGeneralKeyshareResponse is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.keyshare": + panic(fmt.Errorf("field keyshare of message fairyring.keyshare.MsgSubmitGeneralKeyshareResponse is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.keyshare_index": + panic(fmt.Errorf("field keyshare_index of message fairyring.keyshare.MsgSubmitGeneralKeyshareResponse is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.received_block_height": + panic(fmt.Errorf("field received_block_height of message fairyring.keyshare.MsgSubmitGeneralKeyshareResponse is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.success": + panic(fmt.Errorf("field success of message fairyring.keyshare.MsgSubmitGeneralKeyshareResponse is not mutable")) + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.error_message": + panic(fmt.Errorf("field error_message of message fairyring.keyshare.MsgSubmitGeneralKeyshareResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyshareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyshareResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitGeneralKeyshareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.creator": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.creator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_type": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.id_type": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.id_value": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.id_value": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.keyshare": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.key_share_index": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.keyshare_index": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.received_block_height": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.received_block_height": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.success": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.success": return protoreflect.ValueOfBool(false) - case "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse.error_message": + case "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse.error_message": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgSubmitGeneralKeyshareResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgSubmitGeneralKeyshareResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgSubmitGeneralKeyshareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.MsgSubmitGeneralKeyShareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.MsgSubmitGeneralKeyshareResponse", d.FullName())) } panic("unreachable") } @@ -9871,7 +9871,7 @@ func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) WhichOneof(d protorefl // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgSubmitGeneralKeyshareResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9882,7 +9882,7 @@ func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) GetUnknown() protorefl // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgSubmitGeneralKeyshareResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9894,7 +9894,7 @@ func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) SetUnknown(fields prot // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) IsValid() bool { +func (x *fastReflection_MsgSubmitGeneralKeyshareResponse) IsValid() bool { return x != nil } @@ -9904,9 +9904,9 @@ func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgSubmitGeneralKeyshareResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgSubmitGeneralKeyShareResponse) + x := input.Message.Interface().(*MsgSubmitGeneralKeyshareResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9930,12 +9930,12 @@ func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) ProtoMethods() *protoi if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.KeyShare) + l = len(x.Keyshare) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.KeyShareIndex != 0 { - n += 1 + runtime.Sov(uint64(x.KeyShareIndex)) + if x.KeyshareIndex != 0 { + n += 1 + runtime.Sov(uint64(x.KeyshareIndex)) } if x.ReceivedBlockHeight != 0 { n += 1 + runtime.Sov(uint64(x.ReceivedBlockHeight)) @@ -9957,7 +9957,7 @@ func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) ProtoMethods() *protoi } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgSubmitGeneralKeyShareResponse) + x := input.Message.Interface().(*MsgSubmitGeneralKeyshareResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9998,15 +9998,15 @@ func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) ProtoMethods() *protoi i-- dAtA[i] = 0x30 } - if x.KeyShareIndex != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyShareIndex)) + if x.KeyshareIndex != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyshareIndex)) i-- dAtA[i] = 0x28 } - if len(x.KeyShare) > 0 { - i -= len(x.KeyShare) - copy(dAtA[i:], x.KeyShare) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.KeyShare))) + if len(x.Keyshare) > 0 { + i -= len(x.Keyshare) + copy(dAtA[i:], x.Keyshare) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Keyshare))) i-- dAtA[i] = 0x22 } @@ -10042,7 +10042,7 @@ func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) ProtoMethods() *protoi }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgSubmitGeneralKeyShareResponse) + x := input.Message.Interface().(*MsgSubmitGeneralKeyshareResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10074,10 +10074,10 @@ func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) ProtoMethods() *protoi fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitGeneralKeyShareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitGeneralKeyshareResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitGeneralKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitGeneralKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -10178,7 +10178,7 @@ func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) ProtoMethods() *protoi iNdEx = postIndex case 4: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Keyshare", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10206,13 +10206,13 @@ func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) ProtoMethods() *protoi if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.KeyShare = string(dAtA[iNdEx:postIndex]) + x.Keyshare = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyshareIndex", wireType) } - x.KeyShareIndex = 0 + x.KeyshareIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -10222,7 +10222,7 @@ func (x *fastReflection_MsgSubmitGeneralKeyShareResponse) ProtoMethods() *protoi } b := dAtA[iNdEx] iNdEx++ - x.KeyShareIndex |= uint64(b&0x7F) << shift + x.KeyshareIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10338,7 +10338,7 @@ var ( fd_MsgSubmitEncryptedKeyshare_creator protoreflect.FieldDescriptor fd_MsgSubmitEncryptedKeyshare_identity protoreflect.FieldDescriptor fd_MsgSubmitEncryptedKeyshare_encrypted_keyshare protoreflect.FieldDescriptor - fd_MsgSubmitEncryptedKeyshare_key_share_index protoreflect.FieldDescriptor + fd_MsgSubmitEncryptedKeyshare_keyshare_index protoreflect.FieldDescriptor fd_MsgSubmitEncryptedKeyshare_received_timestamp protoreflect.FieldDescriptor fd_MsgSubmitEncryptedKeyshare_received_block_height protoreflect.FieldDescriptor fd_MsgSubmitEncryptedKeyshare_requester protoreflect.FieldDescriptor @@ -10350,7 +10350,7 @@ func init() { fd_MsgSubmitEncryptedKeyshare_creator = md_MsgSubmitEncryptedKeyshare.Fields().ByName("creator") fd_MsgSubmitEncryptedKeyshare_identity = md_MsgSubmitEncryptedKeyshare.Fields().ByName("identity") fd_MsgSubmitEncryptedKeyshare_encrypted_keyshare = md_MsgSubmitEncryptedKeyshare.Fields().ByName("encrypted_keyshare") - fd_MsgSubmitEncryptedKeyshare_key_share_index = md_MsgSubmitEncryptedKeyshare.Fields().ByName("key_share_index") + fd_MsgSubmitEncryptedKeyshare_keyshare_index = md_MsgSubmitEncryptedKeyshare.Fields().ByName("keyshare_index") fd_MsgSubmitEncryptedKeyshare_received_timestamp = md_MsgSubmitEncryptedKeyshare.Fields().ByName("received_timestamp") fd_MsgSubmitEncryptedKeyshare_received_block_height = md_MsgSubmitEncryptedKeyshare.Fields().ByName("received_block_height") fd_MsgSubmitEncryptedKeyshare_requester = md_MsgSubmitEncryptedKeyshare.Fields().ByName("requester") @@ -10439,9 +10439,9 @@ func (x *fastReflection_MsgSubmitEncryptedKeyshare) Range(f func(protoreflect.Fi return } } - if x.KeyShareIndex != uint64(0) { - value := protoreflect.ValueOfUint64(x.KeyShareIndex) - if !f(fd_MsgSubmitEncryptedKeyshare_key_share_index, value) { + if x.KeyshareIndex != uint64(0) { + value := protoreflect.ValueOfUint64(x.KeyshareIndex) + if !f(fd_MsgSubmitEncryptedKeyshare_keyshare_index, value) { return } } @@ -10484,8 +10484,8 @@ func (x *fastReflection_MsgSubmitEncryptedKeyshare) Has(fd protoreflect.FieldDes return x.Identity != "" case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.encrypted_keyshare": return x.EncryptedKeyshare != "" - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.key_share_index": - return x.KeyShareIndex != uint64(0) + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.keyshare_index": + return x.KeyshareIndex != uint64(0) case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_timestamp": return x.ReceivedTimestamp != uint64(0) case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_block_height": @@ -10514,8 +10514,8 @@ func (x *fastReflection_MsgSubmitEncryptedKeyshare) Clear(fd protoreflect.FieldD x.Identity = "" case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.encrypted_keyshare": x.EncryptedKeyshare = "" - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.key_share_index": - x.KeyShareIndex = uint64(0) + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.keyshare_index": + x.KeyshareIndex = uint64(0) case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_timestamp": x.ReceivedTimestamp = uint64(0) case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_block_height": @@ -10547,8 +10547,8 @@ func (x *fastReflection_MsgSubmitEncryptedKeyshare) Get(descriptor protoreflect. case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.encrypted_keyshare": value := x.EncryptedKeyshare return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.key_share_index": - value := x.KeyShareIndex + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.keyshare_index": + value := x.KeyshareIndex return protoreflect.ValueOfUint64(value) case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_timestamp": value := x.ReceivedTimestamp @@ -10585,8 +10585,8 @@ func (x *fastReflection_MsgSubmitEncryptedKeyshare) Set(fd protoreflect.FieldDes x.Identity = value.Interface().(string) case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.encrypted_keyshare": x.EncryptedKeyshare = value.Interface().(string) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.key_share_index": - x.KeyShareIndex = value.Uint() + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.keyshare_index": + x.KeyshareIndex = value.Uint() case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_timestamp": x.ReceivedTimestamp = value.Uint() case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_block_height": @@ -10619,8 +10619,8 @@ func (x *fastReflection_MsgSubmitEncryptedKeyshare) Mutable(fd protoreflect.Fiel panic(fmt.Errorf("field identity of message fairyring.keyshare.MsgSubmitEncryptedKeyshare is not mutable")) case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.encrypted_keyshare": panic(fmt.Errorf("field encrypted_keyshare of message fairyring.keyshare.MsgSubmitEncryptedKeyshare is not mutable")) - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.key_share_index": - panic(fmt.Errorf("field key_share_index of message fairyring.keyshare.MsgSubmitEncryptedKeyshare is not mutable")) + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.keyshare_index": + panic(fmt.Errorf("field keyshare_index of message fairyring.keyshare.MsgSubmitEncryptedKeyshare is not mutable")) case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_timestamp": panic(fmt.Errorf("field received_timestamp of message fairyring.keyshare.MsgSubmitEncryptedKeyshare is not mutable")) case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_block_height": @@ -10646,7 +10646,7 @@ func (x *fastReflection_MsgSubmitEncryptedKeyshare) NewField(fd protoreflect.Fie return protoreflect.ValueOfString("") case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.encrypted_keyshare": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.key_share_index": + case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.keyshare_index": return protoreflect.ValueOfUint64(uint64(0)) case "fairyring.keyshare.MsgSubmitEncryptedKeyshare.received_timestamp": return protoreflect.ValueOfUint64(uint64(0)) @@ -10735,8 +10735,8 @@ func (x *fastReflection_MsgSubmitEncryptedKeyshare) ProtoMethods() *protoiface.M if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.KeyShareIndex != 0 { - n += 1 + runtime.Sov(uint64(x.KeyShareIndex)) + if x.KeyshareIndex != 0 { + n += 1 + runtime.Sov(uint64(x.KeyshareIndex)) } if x.ReceivedTimestamp != 0 { n += 1 + runtime.Sov(uint64(x.ReceivedTimestamp)) @@ -10794,8 +10794,8 @@ func (x *fastReflection_MsgSubmitEncryptedKeyshare) ProtoMethods() *protoiface.M i-- dAtA[i] = 0x28 } - if x.KeyShareIndex != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyShareIndex)) + if x.KeyshareIndex != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.KeyshareIndex)) i-- dAtA[i] = 0x20 } @@ -10967,9 +10967,9 @@ func (x *fastReflection_MsgSubmitEncryptedKeyshare) ProtoMethods() *protoiface.M iNdEx = postIndex case 4: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field KeyshareIndex", wireType) } - x.KeyShareIndex = 0 + x.KeyshareIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -10979,7 +10979,7 @@ func (x *fastReflection_MsgSubmitEncryptedKeyshare) ProtoMethods() *protoiface.M } b := dAtA[iNdEx] iNdEx++ - x.KeyShareIndex |= uint64(b&0x7F) << shift + x.KeyshareIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11685,7 +11685,7 @@ type MsgSendKeyshare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,3,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + KeyshareIndex uint64 `protobuf:"varint,3,opt,name=keyshare_index,json=keyshareIndex,proto3" json:"keyshare_index,omitempty"` BlockHeight uint64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } @@ -11723,9 +11723,9 @@ func (x *MsgSendKeyshare) GetMessage() string { return "" } -func (x *MsgSendKeyshare) GetKeyShareIndex() uint64 { +func (x *MsgSendKeyshare) GetKeyshareIndex() uint64 { if x != nil { - return x.KeyShareIndex + return x.KeyshareIndex } return 0 } @@ -11832,7 +11832,7 @@ type MsgCreateLatestPubKey struct { PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Commitments []string `protobuf:"bytes,3,rep,name=commitments,proto3" json:"commitments,omitempty"` NumberOfValidators uint64 `protobuf:"varint,4,opt,name=number_of_validators,json=numberOfValidators,proto3" json:"number_of_validators,omitempty"` - EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encrypted_key_shares,json=encryptedKeyShares,proto3" json:"encrypted_key_shares,omitempty"` + EncryptedKeyshares []*EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` } func (x *MsgCreateLatestPubKey) Reset() { @@ -11883,9 +11883,9 @@ func (x *MsgCreateLatestPubKey) GetNumberOfValidators() uint64 { return 0 } -func (x *MsgCreateLatestPubKey) GetEncryptedKeyShares() []*EncryptedKeyShare { +func (x *MsgCreateLatestPubKey) GetEncryptedKeyshares() []*EncryptedKeyshare { if x != nil { - return x.EncryptedKeyShares + return x.EncryptedKeyshares } return nil } @@ -11928,7 +11928,7 @@ type MsgOverrideLatestPubKey struct { PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Commitments []string `protobuf:"bytes,3,rep,name=commitments,proto3" json:"commitments,omitempty"` NumberOfValidators uint64 `protobuf:"varint,4,opt,name=number_of_validators,json=numberOfValidators,proto3" json:"number_of_validators,omitempty"` - EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encrypted_key_shares,json=encryptedKeyShares,proto3" json:"encrypted_key_shares,omitempty"` + EncryptedKeyshares []*EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` } func (x *MsgOverrideLatestPubKey) Reset() { @@ -11979,9 +11979,9 @@ func (x *MsgOverrideLatestPubKey) GetNumberOfValidators() uint64 { return 0 } -func (x *MsgOverrideLatestPubKey) GetEncryptedKeyShares() []*EncryptedKeyShare { +func (x *MsgOverrideLatestPubKey) GetEncryptedKeyshares() []*EncryptedKeyshare { if x != nil { - return x.EncryptedKeyShares + return x.EncryptedKeyshares } return nil } @@ -12239,7 +12239,7 @@ func (*MsgDeleteAuthorizedAddressResponse) Descriptor() ([]byte, []int) { } // MsgSubmitGeneralKeyShare is the Msg/CreateGeneralKeyShare request type. -type MsgSubmitGeneralKeyShare struct { +type MsgSubmitGeneralKeyshare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -12247,14 +12247,14 @@ type MsgSubmitGeneralKeyShare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` IdValue string `protobuf:"bytes,3,opt,name=id_value,json=idValue,proto3" json:"id_value,omitempty"` - KeyShare string `protobuf:"bytes,4,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,5,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + Keyshare string `protobuf:"bytes,4,opt,name=keyshare,proto3" json:"keyshare,omitempty"` + KeyshareIndex uint64 `protobuf:"varint,5,opt,name=keyshare_index,json=keyshareIndex,proto3" json:"keyshare_index,omitempty"` ReceivedTimestamp uint64 `protobuf:"varint,6,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` ReceivedBlockHeight uint64 `protobuf:"varint,7,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` } -func (x *MsgSubmitGeneralKeyShare) Reset() { - *x = MsgSubmitGeneralKeyShare{} +func (x *MsgSubmitGeneralKeyshare) Reset() { + *x = MsgSubmitGeneralKeyshare{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_tx_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -12262,60 +12262,60 @@ func (x *MsgSubmitGeneralKeyShare) Reset() { } } -func (x *MsgSubmitGeneralKeyShare) String() string { +func (x *MsgSubmitGeneralKeyshare) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgSubmitGeneralKeyShare) ProtoMessage() {} +func (*MsgSubmitGeneralKeyshare) ProtoMessage() {} -// Deprecated: Use MsgSubmitGeneralKeyShare.ProtoReflect.Descriptor instead. -func (*MsgSubmitGeneralKeyShare) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgSubmitGeneralKeyshare.ProtoReflect.Descriptor instead. +func (*MsgSubmitGeneralKeyshare) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_tx_proto_rawDescGZIP(), []int{18} } -func (x *MsgSubmitGeneralKeyShare) GetCreator() string { +func (x *MsgSubmitGeneralKeyshare) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgSubmitGeneralKeyShare) GetIdType() string { +func (x *MsgSubmitGeneralKeyshare) GetIdType() string { if x != nil { return x.IdType } return "" } -func (x *MsgSubmitGeneralKeyShare) GetIdValue() string { +func (x *MsgSubmitGeneralKeyshare) GetIdValue() string { if x != nil { return x.IdValue } return "" } -func (x *MsgSubmitGeneralKeyShare) GetKeyShare() string { +func (x *MsgSubmitGeneralKeyshare) GetKeyshare() string { if x != nil { - return x.KeyShare + return x.Keyshare } return "" } -func (x *MsgSubmitGeneralKeyShare) GetKeyShareIndex() uint64 { +func (x *MsgSubmitGeneralKeyshare) GetKeyshareIndex() uint64 { if x != nil { - return x.KeyShareIndex + return x.KeyshareIndex } return 0 } -func (x *MsgSubmitGeneralKeyShare) GetReceivedTimestamp() uint64 { +func (x *MsgSubmitGeneralKeyshare) GetReceivedTimestamp() uint64 { if x != nil { return x.ReceivedTimestamp } return 0 } -func (x *MsgSubmitGeneralKeyShare) GetReceivedBlockHeight() uint64 { +func (x *MsgSubmitGeneralKeyshare) GetReceivedBlockHeight() uint64 { if x != nil { return x.ReceivedBlockHeight } @@ -12324,7 +12324,7 @@ func (x *MsgSubmitGeneralKeyShare) GetReceivedBlockHeight() uint64 { // MsgSubmitGeneralKeyShareResponse defines the response structure for // executing a MsgSubmitGeneralKeyShare message. -type MsgSubmitGeneralKeyShareResponse struct { +type MsgSubmitGeneralKeyshareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -12332,15 +12332,15 @@ type MsgSubmitGeneralKeyShareResponse struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` IdValue string `protobuf:"bytes,3,opt,name=id_value,json=idValue,proto3" json:"id_value,omitempty"` - KeyShare string `protobuf:"bytes,4,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,5,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + Keyshare string `protobuf:"bytes,4,opt,name=keyshare,proto3" json:"keyshare,omitempty"` + KeyshareIndex uint64 `protobuf:"varint,5,opt,name=keyshare_index,json=keyshareIndex,proto3" json:"keyshare_index,omitempty"` ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` Success bool `protobuf:"varint,7,opt,name=success,proto3" json:"success,omitempty"` ErrorMessage string `protobuf:"bytes,8,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` } -func (x *MsgSubmitGeneralKeyShareResponse) Reset() { - *x = MsgSubmitGeneralKeyShareResponse{} +func (x *MsgSubmitGeneralKeyshareResponse) Reset() { + *x = MsgSubmitGeneralKeyshareResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_tx_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -12348,67 +12348,67 @@ func (x *MsgSubmitGeneralKeyShareResponse) Reset() { } } -func (x *MsgSubmitGeneralKeyShareResponse) String() string { +func (x *MsgSubmitGeneralKeyshareResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgSubmitGeneralKeyShareResponse) ProtoMessage() {} +func (*MsgSubmitGeneralKeyshareResponse) ProtoMessage() {} -// Deprecated: Use MsgSubmitGeneralKeyShareResponse.ProtoReflect.Descriptor instead. -func (*MsgSubmitGeneralKeyShareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgSubmitGeneralKeyshareResponse.ProtoReflect.Descriptor instead. +func (*MsgSubmitGeneralKeyshareResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_tx_proto_rawDescGZIP(), []int{19} } -func (x *MsgSubmitGeneralKeyShareResponse) GetCreator() string { +func (x *MsgSubmitGeneralKeyshareResponse) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgSubmitGeneralKeyShareResponse) GetIdType() string { +func (x *MsgSubmitGeneralKeyshareResponse) GetIdType() string { if x != nil { return x.IdType } return "" } -func (x *MsgSubmitGeneralKeyShareResponse) GetIdValue() string { +func (x *MsgSubmitGeneralKeyshareResponse) GetIdValue() string { if x != nil { return x.IdValue } return "" } -func (x *MsgSubmitGeneralKeyShareResponse) GetKeyShare() string { +func (x *MsgSubmitGeneralKeyshareResponse) GetKeyshare() string { if x != nil { - return x.KeyShare + return x.Keyshare } return "" } -func (x *MsgSubmitGeneralKeyShareResponse) GetKeyShareIndex() uint64 { +func (x *MsgSubmitGeneralKeyshareResponse) GetKeyshareIndex() uint64 { if x != nil { - return x.KeyShareIndex + return x.KeyshareIndex } return 0 } -func (x *MsgSubmitGeneralKeyShareResponse) GetReceivedBlockHeight() uint64 { +func (x *MsgSubmitGeneralKeyshareResponse) GetReceivedBlockHeight() uint64 { if x != nil { return x.ReceivedBlockHeight } return 0 } -func (x *MsgSubmitGeneralKeyShareResponse) GetSuccess() bool { +func (x *MsgSubmitGeneralKeyshareResponse) GetSuccess() bool { if x != nil { return x.Success } return false } -func (x *MsgSubmitGeneralKeyShareResponse) GetErrorMessage() string { +func (x *MsgSubmitGeneralKeyshareResponse) GetErrorMessage() string { if x != nil { return x.ErrorMessage } @@ -12424,7 +12424,7 @@ type MsgSubmitEncryptedKeyshare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` EncryptedKeyshare string `protobuf:"bytes,3,opt,name=encrypted_keyshare,json=encryptedKeyshare,proto3" json:"encrypted_keyshare,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,4,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + KeyshareIndex uint64 `protobuf:"varint,4,opt,name=keyshare_index,json=keyshareIndex,proto3" json:"keyshare_index,omitempty"` ReceivedTimestamp uint64 `protobuf:"varint,5,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` Requester string `protobuf:"bytes,7,opt,name=requester,proto3" json:"requester,omitempty"` @@ -12471,9 +12471,9 @@ func (x *MsgSubmitEncryptedKeyshare) GetEncryptedKeyshare() string { return "" } -func (x *MsgSubmitEncryptedKeyshare) GetKeyShareIndex() uint64 { +func (x *MsgSubmitEncryptedKeyshare) GetKeyshareIndex() uint64 { if x != nil { - return x.KeyShareIndex + return x.KeyshareIndex } return 0 } @@ -12537,288 +12537,287 @@ var file_fairyring_keyshare_tx_proto_rawDesc = []byte{ 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x20, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xc1, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, - 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, - 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x3d, 0x0a, - 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, - 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x37, 0x82, 0xe7, - 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, - 0x24, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x78, 0x2f, 0x6b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x3e, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x22, 0x38, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x75, + 0x62, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0xc1, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x3d, 0x0a, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, + 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x37, 0x82, 0xe7, 0xb0, + 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x24, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x78, 0x2f, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x3e, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, + 0x38, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x40, 0x0a, 0x16, 0x4d, 0x73, 0x67, + 0x44, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x0c, 0x82, + 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x3a, 0x0a, 0x1e, 0x4d, + 0x73, 0x67, 0x44, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x9d, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x53, + 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, + 0x25, 0x0a, 0x0e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x8c, 0x02, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x53, + 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1a, 0x0a, + 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, + 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x8a, 0x02, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x40, 0x0a, 0x16, 0x4d, 0x73, - 0x67, 0x44, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x0c, - 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x3a, 0x0a, 0x1e, - 0x4d, 0x73, 0x67, 0x44, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x9e, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, - 0x53, 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x12, 0x26, 0x0a, 0x0f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x6e, - 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x53, 0x68, - 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, - 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x8c, 0x02, 0x0a, 0x17, 0x4d, 0x73, - 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, - 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, - 0x65, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, - 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x8b, 0x02, 0x0a, 0x15, 0x4d, 0x73, 0x67, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, - 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, - 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x63, - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x30, 0x0a, - 0x14, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x6e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, - 0x57, 0x0a, 0x14, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, - 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, - 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8d, 0x02, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x4f, - 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, - 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, - 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x0b, - 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x30, - 0x0a, 0x14, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x6e, 0x75, - 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, - 0x12, 0x57, 0x0a, 0x14, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, - 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, - 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x21, 0x0a, 0x1f, 0x4d, 0x73, 0x67, 0x4f, 0x76, - 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, - 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x0a, 0x1a, 0x4d, 0x73, - 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, - 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x81, - 0x01, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, - 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x73, 0x5f, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, - 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, + 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x6e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x6e, 0x75, 0x6d, 0x62, 0x65, + 0x72, 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x56, 0x0a, + 0x13, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, + 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x6f, 0x72, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8c, 0x02, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x4f, 0x76, 0x65, 0x72, + 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, + 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x6e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x12, 0x6e, 0x75, 0x6d, 0x62, 0x65, + 0x72, 0x4f, 0x66, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x56, 0x0a, + 0x13, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, + 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x6f, 0x72, 0x22, 0x21, 0x0a, 0x1f, 0x4d, 0x73, 0x67, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, + 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x81, 0x01, 0x0a, 0x1a, 0x4d, + 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, + 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x73, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, + 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x41, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x24, + 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, + 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x18, - 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9e, 0x02, 0x0a, - 0x18, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, - 0x69, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x69, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, - 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2d, 0x0a, 0x12, - 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, - 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x72, - 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, - 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3a, - 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xa8, 0x02, - 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, - 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x07, - 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, - 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x26, 0x0a, - 0x0f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, - 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9c, 0x02, 0x0a, 0x18, 0x4d, 0x73, 0x67, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, + 0x17, 0x0a, 0x07, 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x69, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x64, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, + 0x25, 0x0a, 0x0e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, + 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xb8, 0x02, 0x0a, 0x1a, 0x4d, 0x73, 0x67, - 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x2d, 0x0a, - 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x65, 0x6e, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x26, 0x0a, 0x0f, - 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x49, - 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x65, 0x72, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, - 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xb3, 0x0a, 0x0a, 0x03, 0x4d, 0x73, - 0x67, 0x12, 0x60, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x12, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, - 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x11, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x28, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xa6, 0x02, 0x0a, 0x20, 0x4d, 0x73, 0x67, 0x53, + 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x64, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x19, 0x0a, 0x08, 0x69, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x69, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, + 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x32, 0x0a, + 0x15, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x22, 0xb7, 0x02, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x2d, 0x0a, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x11, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, + 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2d, 0x0a, 0x12, 0x72, + 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, + 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x72, 0x65, 0x63, 0x65, 0x69, + 0x76, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1c, + 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x3a, 0x0c, 0x82, 0xe7, + 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x22, 0x4d, 0x73, + 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, + 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x32, 0xb3, 0x0a, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x60, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, - 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, - 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x13, 0x44, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x2a, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x2b, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x11, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, + 0x28, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, + 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, + 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, 0x13, 0x44, + 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x6f, 0x72, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x1a, 0x32, + 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, + 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x60, 0x0a, 0x0c, 0x53, 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x12, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, - 0x44, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, 0x0a, 0x0c, 0x53, - 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x23, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x1a, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, - 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, - 0x4b, 0x65, 0x79, 0x12, 0x29, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x1a, 0x31, + 0x53, 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, + 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x29, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, + 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, + 0x75, 0x62, 0x4b, 0x65, 0x79, 0x1a, 0x31, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x14, 0x4f, 0x76, 0x65, 0x72, + 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, + 0x12, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, + 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x1a, 0x33, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, + 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, - 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x78, 0x0a, 0x14, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, 0x74, - 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, - 0x73, 0x67, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, - 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x1a, 0x33, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x4f, - 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, - 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x17, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x1a, 0x36, + 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x1a, 0x36, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x17, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x1a, 0x36, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, + 0x0a, 0x15, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x1a, 0x36, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x34, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, + 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, + 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x17, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x12, 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x81, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2e, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x1a, 0x36, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, - 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x1a, - 0x36, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x15, 0x53, 0x75, 0x62, 0x6d, 0x69, - 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x12, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x34, - 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x17, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, - 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x12, 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, - 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x1a, 0x36, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, - 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, - 0xaf, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, - 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, - 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, - 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x1a, 0x36, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, + 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, + 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xaf, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, + 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -12853,17 +12852,17 @@ var file_fairyring_keyshare_tx_proto_goTypes = []interface{}{ (*MsgUpdateAuthorizedAddressResponse)(nil), // 15: fairyring.keyshare.MsgUpdateAuthorizedAddressResponse (*MsgDeleteAuthorizedAddress)(nil), // 16: fairyring.keyshare.MsgDeleteAuthorizedAddress (*MsgDeleteAuthorizedAddressResponse)(nil), // 17: fairyring.keyshare.MsgDeleteAuthorizedAddressResponse - (*MsgSubmitGeneralKeyShare)(nil), // 18: fairyring.keyshare.MsgSubmitGeneralKeyShare - (*MsgSubmitGeneralKeyShareResponse)(nil), // 19: fairyring.keyshare.MsgSubmitGeneralKeyShareResponse + (*MsgSubmitGeneralKeyshare)(nil), // 18: fairyring.keyshare.MsgSubmitGeneralKeyshare + (*MsgSubmitGeneralKeyshareResponse)(nil), // 19: fairyring.keyshare.MsgSubmitGeneralKeyshareResponse (*MsgSubmitEncryptedKeyshare)(nil), // 20: fairyring.keyshare.MsgSubmitEncryptedKeyshare (*MsgSubmitEncryptedKeyshareResponse)(nil), // 21: fairyring.keyshare.MsgSubmitEncryptedKeyshareResponse (*Params)(nil), // 22: fairyring.keyshare.Params - (*EncryptedKeyShare)(nil), // 23: fairyring.keyshare.EncryptedKeyShare + (*EncryptedKeyshare)(nil), // 23: fairyring.keyshare.EncryptedKeyshare } var file_fairyring_keyshare_tx_proto_depIdxs = []int32{ 22, // 0: fairyring.keyshare.MsgUpdateParams.params:type_name -> fairyring.keyshare.Params - 23, // 1: fairyring.keyshare.MsgCreateLatestPubKey.encrypted_key_shares:type_name -> fairyring.keyshare.EncryptedKeyShare - 23, // 2: fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_key_shares:type_name -> fairyring.keyshare.EncryptedKeyShare + 23, // 1: fairyring.keyshare.MsgCreateLatestPubKey.encrypted_keyshares:type_name -> fairyring.keyshare.EncryptedKeyshare + 23, // 2: fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_keyshares:type_name -> fairyring.keyshare.EncryptedKeyshare 0, // 3: fairyring.keyshare.Msg.UpdateParams:input_type -> fairyring.keyshare.MsgUpdateParams 2, // 4: fairyring.keyshare.Msg.RegisterValidator:input_type -> fairyring.keyshare.MsgRegisterValidator 4, // 5: fairyring.keyshare.Msg.DeRegisterValidator:input_type -> fairyring.keyshare.MsgDeRegisterValidator @@ -12873,7 +12872,7 @@ var file_fairyring_keyshare_tx_proto_depIdxs = []int32{ 12, // 9: fairyring.keyshare.Msg.CreateAuthorizedAddress:input_type -> fairyring.keyshare.MsgCreateAuthorizedAddress 14, // 10: fairyring.keyshare.Msg.UpdateAuthorizedAddress:input_type -> fairyring.keyshare.MsgUpdateAuthorizedAddress 16, // 11: fairyring.keyshare.Msg.DeleteAuthorizedAddress:input_type -> fairyring.keyshare.MsgDeleteAuthorizedAddress - 18, // 12: fairyring.keyshare.Msg.SubmitGeneralKeyShare:input_type -> fairyring.keyshare.MsgSubmitGeneralKeyShare + 18, // 12: fairyring.keyshare.Msg.SubmitGeneralKeyshare:input_type -> fairyring.keyshare.MsgSubmitGeneralKeyshare 20, // 13: fairyring.keyshare.Msg.SubmitEncryptedKeyshare:input_type -> fairyring.keyshare.MsgSubmitEncryptedKeyshare 1, // 14: fairyring.keyshare.Msg.UpdateParams:output_type -> fairyring.keyshare.MsgUpdateParamsResponse 3, // 15: fairyring.keyshare.Msg.RegisterValidator:output_type -> fairyring.keyshare.MsgRegisterValidatorResponse @@ -12884,7 +12883,7 @@ var file_fairyring_keyshare_tx_proto_depIdxs = []int32{ 13, // 20: fairyring.keyshare.Msg.CreateAuthorizedAddress:output_type -> fairyring.keyshare.MsgCreateAuthorizedAddressResponse 15, // 21: fairyring.keyshare.Msg.UpdateAuthorizedAddress:output_type -> fairyring.keyshare.MsgUpdateAuthorizedAddressResponse 17, // 22: fairyring.keyshare.Msg.DeleteAuthorizedAddress:output_type -> fairyring.keyshare.MsgDeleteAuthorizedAddressResponse - 19, // 23: fairyring.keyshare.Msg.SubmitGeneralKeyShare:output_type -> fairyring.keyshare.MsgSubmitGeneralKeyShareResponse + 19, // 23: fairyring.keyshare.Msg.SubmitGeneralKeyshare:output_type -> fairyring.keyshare.MsgSubmitGeneralKeyshareResponse 21, // 24: fairyring.keyshare.Msg.SubmitEncryptedKeyshare:output_type -> fairyring.keyshare.MsgSubmitEncryptedKeyshareResponse 14, // [14:25] is the sub-list for method output_type 3, // [3:14] is the sub-list for method input_type @@ -12899,7 +12898,7 @@ func file_fairyring_keyshare_tx_proto_init() { return } file_fairyring_keyshare_params_proto_init() - file_fairyring_keyshare_pub_key_proto_init() + file_fairyring_keyshare_pubkey_proto_init() if !protoimpl.UnsafeEnabled { file_fairyring_keyshare_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateParams); i { @@ -13118,7 +13117,7 @@ func file_fairyring_keyshare_tx_proto_init() { } } file_fairyring_keyshare_tx_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSubmitGeneralKeyShare); i { + switch v := v.(*MsgSubmitGeneralKeyshare); i { case 0: return &v.state case 1: @@ -13130,7 +13129,7 @@ func file_fairyring_keyshare_tx_proto_init() { } } file_fairyring_keyshare_tx_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgSubmitGeneralKeyShareResponse); i { + switch v := v.(*MsgSubmitGeneralKeyshareResponse); i { case 0: return &v.state case 1: diff --git a/api/fairyring/keyshare/tx_grpc.pb.go b/api/fairyring/keyshare/tx_grpc.pb.go index 756565ed..1a77f58d 100644 --- a/api/fairyring/keyshare/tx_grpc.pb.go +++ b/api/fairyring/keyshare/tx_grpc.pb.go @@ -28,7 +28,7 @@ const ( Msg_CreateAuthorizedAddress_FullMethodName = "/fairyring.keyshare.Msg/CreateAuthorizedAddress" Msg_UpdateAuthorizedAddress_FullMethodName = "/fairyring.keyshare.Msg/UpdateAuthorizedAddress" Msg_DeleteAuthorizedAddress_FullMethodName = "/fairyring.keyshare.Msg/DeleteAuthorizedAddress" - Msg_SubmitGeneralKeyShare_FullMethodName = "/fairyring.keyshare.Msg/SubmitGeneralKeyShare" + Msg_SubmitGeneralKeyshare_FullMethodName = "/fairyring.keyshare.Msg/SubmitGeneralKeyshare" Msg_SubmitEncryptedKeyshare_FullMethodName = "/fairyring.keyshare.Msg/SubmitEncryptedKeyshare" ) @@ -64,7 +64,7 @@ type MsgClient interface { DeleteAuthorizedAddress(ctx context.Context, in *MsgDeleteAuthorizedAddress, opts ...grpc.CallOption) (*MsgDeleteAuthorizedAddressResponse, error) // SubmitGeneralKeyShare defines an operation to submit a // general keyshare from a registered validator - SubmitGeneralKeyShare(ctx context.Context, in *MsgSubmitGeneralKeyShare, opts ...grpc.CallOption) (*MsgSubmitGeneralKeyShareResponse, error) + SubmitGeneralKeyshare(ctx context.Context, in *MsgSubmitGeneralKeyshare, opts ...grpc.CallOption) (*MsgSubmitGeneralKeyshareResponse, error) // SubmitEncryptedKeyshare defines an operation to submit // an encrypted keyshare from a registered validator SubmitEncryptedKeyshare(ctx context.Context, in *MsgSubmitEncryptedKeyshare, opts ...grpc.CallOption) (*MsgSubmitEncryptedKeyshareResponse, error) @@ -159,9 +159,9 @@ func (c *msgClient) DeleteAuthorizedAddress(ctx context.Context, in *MsgDeleteAu return out, nil } -func (c *msgClient) SubmitGeneralKeyShare(ctx context.Context, in *MsgSubmitGeneralKeyShare, opts ...grpc.CallOption) (*MsgSubmitGeneralKeyShareResponse, error) { - out := new(MsgSubmitGeneralKeyShareResponse) - err := c.cc.Invoke(ctx, Msg_SubmitGeneralKeyShare_FullMethodName, in, out, opts...) +func (c *msgClient) SubmitGeneralKeyshare(ctx context.Context, in *MsgSubmitGeneralKeyshare, opts ...grpc.CallOption) (*MsgSubmitGeneralKeyshareResponse, error) { + out := new(MsgSubmitGeneralKeyshareResponse) + err := c.cc.Invoke(ctx, Msg_SubmitGeneralKeyshare_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -209,7 +209,7 @@ type MsgServer interface { DeleteAuthorizedAddress(context.Context, *MsgDeleteAuthorizedAddress) (*MsgDeleteAuthorizedAddressResponse, error) // SubmitGeneralKeyShare defines an operation to submit a // general keyshare from a registered validator - SubmitGeneralKeyShare(context.Context, *MsgSubmitGeneralKeyShare) (*MsgSubmitGeneralKeyShareResponse, error) + SubmitGeneralKeyshare(context.Context, *MsgSubmitGeneralKeyshare) (*MsgSubmitGeneralKeyshareResponse, error) // SubmitEncryptedKeyshare defines an operation to submit // an encrypted keyshare from a registered validator SubmitEncryptedKeyshare(context.Context, *MsgSubmitEncryptedKeyshare) (*MsgSubmitEncryptedKeyshareResponse, error) @@ -247,8 +247,8 @@ func (UnimplementedMsgServer) UpdateAuthorizedAddress(context.Context, *MsgUpdat func (UnimplementedMsgServer) DeleteAuthorizedAddress(context.Context, *MsgDeleteAuthorizedAddress) (*MsgDeleteAuthorizedAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteAuthorizedAddress not implemented") } -func (UnimplementedMsgServer) SubmitGeneralKeyShare(context.Context, *MsgSubmitGeneralKeyShare) (*MsgSubmitGeneralKeyShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SubmitGeneralKeyShare not implemented") +func (UnimplementedMsgServer) SubmitGeneralKeyshare(context.Context, *MsgSubmitGeneralKeyshare) (*MsgSubmitGeneralKeyshareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SubmitGeneralKeyshare not implemented") } func (UnimplementedMsgServer) SubmitEncryptedKeyshare(context.Context, *MsgSubmitEncryptedKeyshare) (*MsgSubmitEncryptedKeyshareResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SubmitEncryptedKeyshare not implemented") @@ -428,20 +428,20 @@ func _Msg_DeleteAuthorizedAddress_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } -func _Msg_SubmitGeneralKeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSubmitGeneralKeyShare) +func _Msg_SubmitGeneralKeyshare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSubmitGeneralKeyshare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).SubmitGeneralKeyShare(ctx, in) + return srv.(MsgServer).SubmitGeneralKeyshare(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Msg_SubmitGeneralKeyShare_FullMethodName, + FullMethod: Msg_SubmitGeneralKeyshare_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SubmitGeneralKeyShare(ctx, req.(*MsgSubmitGeneralKeyShare)) + return srv.(MsgServer).SubmitGeneralKeyshare(ctx, req.(*MsgSubmitGeneralKeyshare)) } return interceptor(ctx, in, info, handler) } @@ -508,8 +508,8 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ Handler: _Msg_DeleteAuthorizedAddress_Handler, }, { - MethodName: "SubmitGeneralKeyShare", - Handler: _Msg_SubmitGeneralKeyShare_Handler, + MethodName: "SubmitGeneralKeyshare", + Handler: _Msg_SubmitGeneralKeyshare_Handler, }, { MethodName: "SubmitEncryptedKeyshare", diff --git a/api/fairyring/pep/genesis.pulsar.go b/api/fairyring/pep/genesis.pulsar.go index e142f7f1..9e64e388 100644 --- a/api/fairyring/pep/genesis.pulsar.go +++ b/api/fairyring/pep/genesis.pulsar.go @@ -3,7 +3,7 @@ package pep import ( _ "cosmossdk.io/api/amino" - common "cosmossdk.io/api/fairyring/common" + common "github.com/Fairblock/fairyring/api/fairyring/common" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" diff --git a/api/fairyring/pep/query.pulsar.go b/api/fairyring/pep/query.pulsar.go index 3fae1dc4..11a86146 100644 --- a/api/fairyring/pep/query.pulsar.go +++ b/api/fairyring/pep/query.pulsar.go @@ -4,7 +4,7 @@ package pep import ( _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" - common "cosmossdk.io/api/fairyring/common" + common "github.com/Fairblock/fairyring/api/fairyring/common" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -8029,23 +8029,23 @@ func (x *fastReflection_QueryPepNonceAllResponse) ProtoMethods() *protoiface.Met } var ( - md_QueryPubKeyRequest protoreflect.MessageDescriptor + md_QueryPubkeyRequest protoreflect.MessageDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryPubKeyRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryPubKeyRequest") + md_QueryPubkeyRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryPubkeyRequest") } -var _ protoreflect.Message = (*fastReflection_QueryPubKeyRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPubkeyRequest)(nil) -type fastReflection_QueryPubKeyRequest QueryPubKeyRequest +type fastReflection_QueryPubkeyRequest QueryPubkeyRequest -func (x *QueryPubKeyRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryPubKeyRequest)(x) +func (x *QueryPubkeyRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPubkeyRequest)(x) } -func (x *QueryPubKeyRequest) slowProtoReflect() protoreflect.Message { +func (x *QueryPubkeyRequest) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8057,43 +8057,43 @@ func (x *QueryPubKeyRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryPubKeyRequest_messageType fastReflection_QueryPubKeyRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryPubKeyRequest_messageType{} +var _fastReflection_QueryPubkeyRequest_messageType fastReflection_QueryPubkeyRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryPubkeyRequest_messageType{} -type fastReflection_QueryPubKeyRequest_messageType struct{} +type fastReflection_QueryPubkeyRequest_messageType struct{} -func (x fastReflection_QueryPubKeyRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryPubKeyRequest)(nil) +func (x fastReflection_QueryPubkeyRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPubkeyRequest)(nil) } -func (x fastReflection_QueryPubKeyRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryPubKeyRequest) +func (x fastReflection_QueryPubkeyRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPubkeyRequest) } -func (x fastReflection_QueryPubKeyRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPubKeyRequest +func (x fastReflection_QueryPubkeyRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPubkeyRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryPubKeyRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPubKeyRequest +func (x *fastReflection_QueryPubkeyRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPubkeyRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryPubKeyRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryPubKeyRequest_messageType +func (x *fastReflection_QueryPubkeyRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryPubkeyRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryPubKeyRequest) New() protoreflect.Message { - return new(fastReflection_QueryPubKeyRequest) +func (x *fastReflection_QueryPubkeyRequest) New() protoreflect.Message { + return new(fastReflection_QueryPubkeyRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryPubKeyRequest) Interface() protoreflect.ProtoMessage { - return (*QueryPubKeyRequest)(x) +func (x *fastReflection_QueryPubkeyRequest) Interface() protoreflect.ProtoMessage { + return (*QueryPubkeyRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -8101,7 +8101,7 @@ func (x *fastReflection_QueryPubKeyRequest) Interface() protoreflect.ProtoMessag // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryPubKeyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryPubkeyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -8115,13 +8115,13 @@ func (x *fastReflection_QueryPubKeyRequest) Range(f func(protoreflect.FieldDescr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryPubKeyRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPubkeyRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubkeyRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryPubKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPubkeyRequest does not contain field %s", fd.FullName())) } } @@ -8131,13 +8131,13 @@ func (x *fastReflection_QueryPubKeyRequest) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPubKeyRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPubkeyRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubkeyRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryPubKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPubkeyRequest does not contain field %s", fd.FullName())) } } @@ -8147,13 +8147,13 @@ func (x *fastReflection_QueryPubKeyRequest) Clear(fd protoreflect.FieldDescripto // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryPubKeyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPubkeyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubkeyRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryPubKeyRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPubkeyRequest does not contain field %s", descriptor.FullName())) } } @@ -8167,13 +8167,13 @@ func (x *fastReflection_QueryPubKeyRequest) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPubKeyRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPubkeyRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubkeyRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryPubKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPubkeyRequest does not contain field %s", fd.FullName())) } } @@ -8187,36 +8187,36 @@ func (x *fastReflection_QueryPubKeyRequest) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPubKeyRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPubkeyRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubkeyRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryPubKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPubkeyRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryPubKeyRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPubkeyRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubkeyRequest")) } - panic(fmt.Errorf("message fairyring.pep.QueryPubKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPubkeyRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryPubKeyRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPubkeyRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryPubKeyRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryPubkeyRequest", d.FullName())) } panic("unreachable") } @@ -8224,7 +8224,7 @@ func (x *fastReflection_QueryPubKeyRequest) WhichOneof(d protoreflect.OneofDescr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryPubKeyRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPubkeyRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8235,7 +8235,7 @@ func (x *fastReflection_QueryPubKeyRequest) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPubKeyRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPubkeyRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8247,7 +8247,7 @@ func (x *fastReflection_QueryPubKeyRequest) SetUnknown(fields protoreflect.RawFi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryPubKeyRequest) IsValid() bool { +func (x *fastReflection_QueryPubkeyRequest) IsValid() bool { return x != nil } @@ -8257,9 +8257,9 @@ func (x *fastReflection_QueryPubKeyRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryPubKeyRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPubkeyRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryPubKeyRequest) + x := input.Message.Interface().(*QueryPubkeyRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8281,7 +8281,7 @@ func (x *fastReflection_QueryPubKeyRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryPubKeyRequest) + x := input.Message.Interface().(*QueryPubkeyRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8311,7 +8311,7 @@ func (x *fastReflection_QueryPubKeyRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryPubKeyRequest) + x := input.Message.Interface().(*QueryPubkeyRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8343,10 +8343,10 @@ func (x *fastReflection_QueryPubKeyRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPubKeyRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPubkeyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPubKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPubkeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -8385,27 +8385,27 @@ func (x *fastReflection_QueryPubKeyRequest) ProtoMethods() *protoiface.Methods { } var ( - md_QueryPubKeyResponse protoreflect.MessageDescriptor - fd_QueryPubKeyResponse_active_pub_key protoreflect.FieldDescriptor - fd_QueryPubKeyResponse_queued_pub_key protoreflect.FieldDescriptor + md_QueryPubkeyResponse protoreflect.MessageDescriptor + fd_QueryPubkeyResponse_active_pubkey protoreflect.FieldDescriptor + fd_QueryPubkeyResponse_queued_pubkey protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_query_proto_init() - md_QueryPubKeyResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryPubKeyResponse") - fd_QueryPubKeyResponse_active_pub_key = md_QueryPubKeyResponse.Fields().ByName("active_pub_key") - fd_QueryPubKeyResponse_queued_pub_key = md_QueryPubKeyResponse.Fields().ByName("queued_pub_key") + md_QueryPubkeyResponse = File_fairyring_pep_query_proto.Messages().ByName("QueryPubkeyResponse") + fd_QueryPubkeyResponse_active_pubkey = md_QueryPubkeyResponse.Fields().ByName("active_pubkey") + fd_QueryPubkeyResponse_queued_pubkey = md_QueryPubkeyResponse.Fields().ByName("queued_pubkey") } -var _ protoreflect.Message = (*fastReflection_QueryPubKeyResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPubkeyResponse)(nil) -type fastReflection_QueryPubKeyResponse QueryPubKeyResponse +type fastReflection_QueryPubkeyResponse QueryPubkeyResponse -func (x *QueryPubKeyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryPubKeyResponse)(x) +func (x *QueryPubkeyResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPubkeyResponse)(x) } -func (x *QueryPubKeyResponse) slowProtoReflect() protoreflect.Message { +func (x *QueryPubkeyResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_query_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -8417,43 +8417,43 @@ func (x *QueryPubKeyResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryPubKeyResponse_messageType fastReflection_QueryPubKeyResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryPubKeyResponse_messageType{} +var _fastReflection_QueryPubkeyResponse_messageType fastReflection_QueryPubkeyResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryPubkeyResponse_messageType{} -type fastReflection_QueryPubKeyResponse_messageType struct{} +type fastReflection_QueryPubkeyResponse_messageType struct{} -func (x fastReflection_QueryPubKeyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryPubKeyResponse)(nil) +func (x fastReflection_QueryPubkeyResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPubkeyResponse)(nil) } -func (x fastReflection_QueryPubKeyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryPubKeyResponse) +func (x fastReflection_QueryPubkeyResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPubkeyResponse) } -func (x fastReflection_QueryPubKeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPubKeyResponse +func (x fastReflection_QueryPubkeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPubkeyResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryPubKeyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPubKeyResponse +func (x *fastReflection_QueryPubkeyResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPubkeyResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryPubKeyResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryPubKeyResponse_messageType +func (x *fastReflection_QueryPubkeyResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryPubkeyResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryPubKeyResponse) New() protoreflect.Message { - return new(fastReflection_QueryPubKeyResponse) +func (x *fastReflection_QueryPubkeyResponse) New() protoreflect.Message { + return new(fastReflection_QueryPubkeyResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryPubKeyResponse) Interface() protoreflect.ProtoMessage { - return (*QueryPubKeyResponse)(x) +func (x *fastReflection_QueryPubkeyResponse) Interface() protoreflect.ProtoMessage { + return (*QueryPubkeyResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -8461,16 +8461,16 @@ func (x *fastReflection_QueryPubKeyResponse) Interface() protoreflect.ProtoMessa // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryPubKeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ActivePubKey != nil { - value := protoreflect.ValueOfMessage(x.ActivePubKey.ProtoReflect()) - if !f(fd_QueryPubKeyResponse_active_pub_key, value) { +func (x *fastReflection_QueryPubkeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ActivePubkey != nil { + value := protoreflect.ValueOfMessage(x.ActivePubkey.ProtoReflect()) + if !f(fd_QueryPubkeyResponse_active_pubkey, value) { return } } - if x.QueuedPubKey != nil { - value := protoreflect.ValueOfMessage(x.QueuedPubKey.ProtoReflect()) - if !f(fd_QueryPubKeyResponse_queued_pub_key, value) { + if x.QueuedPubkey != nil { + value := protoreflect.ValueOfMessage(x.QueuedPubkey.ProtoReflect()) + if !f(fd_QueryPubkeyResponse_queued_pubkey, value) { return } } @@ -8487,17 +8487,17 @@ func (x *fastReflection_QueryPubKeyResponse) Range(f func(protoreflect.FieldDesc // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryPubKeyResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPubkeyResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.QueryPubKeyResponse.active_pub_key": - return x.ActivePubKey != nil - case "fairyring.pep.QueryPubKeyResponse.queued_pub_key": - return x.QueuedPubKey != nil + case "fairyring.pep.QueryPubkeyResponse.active_pubkey": + return x.ActivePubkey != nil + case "fairyring.pep.QueryPubkeyResponse.queued_pubkey": + return x.QueuedPubkey != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPubkeyResponse does not contain field %s", fd.FullName())) } } @@ -8507,17 +8507,17 @@ func (x *fastReflection_QueryPubKeyResponse) Has(fd protoreflect.FieldDescriptor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPubKeyResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPubkeyResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.QueryPubKeyResponse.active_pub_key": - x.ActivePubKey = nil - case "fairyring.pep.QueryPubKeyResponse.queued_pub_key": - x.QueuedPubKey = nil + case "fairyring.pep.QueryPubkeyResponse.active_pubkey": + x.ActivePubkey = nil + case "fairyring.pep.QueryPubkeyResponse.queued_pubkey": + x.QueuedPubkey = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPubkeyResponse does not contain field %s", fd.FullName())) } } @@ -8527,19 +8527,19 @@ func (x *fastReflection_QueryPubKeyResponse) Clear(fd protoreflect.FieldDescript // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryPubKeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPubkeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.QueryPubKeyResponse.active_pub_key": - value := x.ActivePubKey + case "fairyring.pep.QueryPubkeyResponse.active_pubkey": + value := x.ActivePubkey return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.pep.QueryPubKeyResponse.queued_pub_key": - value := x.QueuedPubKey + case "fairyring.pep.QueryPubkeyResponse.queued_pubkey": + value := x.QueuedPubkey return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryPubKeyResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPubkeyResponse does not contain field %s", descriptor.FullName())) } } @@ -8553,17 +8553,17 @@ func (x *fastReflection_QueryPubKeyResponse) Get(descriptor protoreflect.FieldDe // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPubKeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPubkeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.QueryPubKeyResponse.active_pub_key": - x.ActivePubKey = value.Message().Interface().(*common.ActivePublicKey) - case "fairyring.pep.QueryPubKeyResponse.queued_pub_key": - x.QueuedPubKey = value.Message().Interface().(*common.QueuedPublicKey) + case "fairyring.pep.QueryPubkeyResponse.active_pubkey": + x.ActivePubkey = value.Message().Interface().(*common.ActivePublicKey) + case "fairyring.pep.QueryPubkeyResponse.queued_pubkey": + x.QueuedPubkey = value.Message().Interface().(*common.QueuedPublicKey) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPubkeyResponse does not contain field %s", fd.FullName())) } } @@ -8577,52 +8577,52 @@ func (x *fastReflection_QueryPubKeyResponse) Set(fd protoreflect.FieldDescriptor // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPubKeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPubkeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryPubKeyResponse.active_pub_key": - if x.ActivePubKey == nil { - x.ActivePubKey = new(common.ActivePublicKey) + case "fairyring.pep.QueryPubkeyResponse.active_pubkey": + if x.ActivePubkey == nil { + x.ActivePubkey = new(common.ActivePublicKey) } - return protoreflect.ValueOfMessage(x.ActivePubKey.ProtoReflect()) - case "fairyring.pep.QueryPubKeyResponse.queued_pub_key": - if x.QueuedPubKey == nil { - x.QueuedPubKey = new(common.QueuedPublicKey) + return protoreflect.ValueOfMessage(x.ActivePubkey.ProtoReflect()) + case "fairyring.pep.QueryPubkeyResponse.queued_pubkey": + if x.QueuedPubkey == nil { + x.QueuedPubkey = new(common.QueuedPublicKey) } - return protoreflect.ValueOfMessage(x.QueuedPubKey.ProtoReflect()) + return protoreflect.ValueOfMessage(x.QueuedPubkey.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPubkeyResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryPubKeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPubkeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.QueryPubKeyResponse.active_pub_key": + case "fairyring.pep.QueryPubkeyResponse.active_pubkey": m := new(common.ActivePublicKey) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.pep.QueryPubKeyResponse.queued_pub_key": + case "fairyring.pep.QueryPubkeyResponse.queued_pubkey": m := new(common.QueuedPublicKey) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.QueryPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.QueryPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.QueryPubkeyResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryPubKeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPubkeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryPubKeyResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.QueryPubkeyResponse", d.FullName())) } panic("unreachable") } @@ -8630,7 +8630,7 @@ func (x *fastReflection_QueryPubKeyResponse) WhichOneof(d protoreflect.OneofDesc // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryPubKeyResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPubkeyResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8641,7 +8641,7 @@ func (x *fastReflection_QueryPubKeyResponse) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPubKeyResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPubkeyResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8653,7 +8653,7 @@ func (x *fastReflection_QueryPubKeyResponse) SetUnknown(fields protoreflect.RawF // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryPubKeyResponse) IsValid() bool { +func (x *fastReflection_QueryPubkeyResponse) IsValid() bool { return x != nil } @@ -8663,9 +8663,9 @@ func (x *fastReflection_QueryPubKeyResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPubkeyResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryPubKeyResponse) + x := input.Message.Interface().(*QueryPubkeyResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8677,12 +8677,12 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods var n int var l int _ = l - if x.ActivePubKey != nil { - l = options.Size(x.ActivePubKey) + if x.ActivePubkey != nil { + l = options.Size(x.ActivePubkey) n += 1 + l + runtime.Sov(uint64(l)) } - if x.QueuedPubKey != nil { - l = options.Size(x.QueuedPubKey) + if x.QueuedPubkey != nil { + l = options.Size(x.QueuedPubkey) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -8695,7 +8695,7 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryPubKeyResponse) + x := input.Message.Interface().(*QueryPubkeyResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8714,8 +8714,8 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.QueuedPubKey != nil { - encoded, err := options.Marshal(x.QueuedPubKey) + if x.QueuedPubkey != nil { + encoded, err := options.Marshal(x.QueuedPubkey) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8728,8 +8728,8 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods i-- dAtA[i] = 0x12 } - if x.ActivePubKey != nil { - encoded, err := options.Marshal(x.ActivePubKey) + if x.ActivePubkey != nil { + encoded, err := options.Marshal(x.ActivePubkey) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8753,7 +8753,7 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryPubKeyResponse) + x := input.Message.Interface().(*QueryPubkeyResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8785,15 +8785,15 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPubKeyResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPubkeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPubKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPubkeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActivePubKey", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActivePubkey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8820,16 +8820,16 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.ActivePubKey == nil { - x.ActivePubKey = &common.ActivePublicKey{} + if x.ActivePubkey == nil { + x.ActivePubkey = &common.ActivePublicKey{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ActivePubKey); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ActivePubkey); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueuedPubKey", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueuedPubkey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8856,10 +8856,10 @@ func (x *fastReflection_QueryPubKeyResponse) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.QueuedPubKey == nil { - x.QueuedPubKey = &common.QueuedPublicKey{} + if x.QueuedPubkey == nil { + x.QueuedPubkey = &common.QueuedPublicKey{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.QueuedPubKey); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.QueuedPubkey); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -10007,7 +10007,7 @@ func (x *fastReflection_QueryPrivateIdentityResponse) ProtoMethods() *protoiface var ( md_QueryDecryptDataRequest protoreflect.MessageDescriptor fd_QueryDecryptDataRequest_pubkey protoreflect.FieldDescriptor - fd_QueryDecryptDataRequest_aggr_keyshare protoreflect.FieldDescriptor + fd_QueryDecryptDataRequest_decryption_key protoreflect.FieldDescriptor fd_QueryDecryptDataRequest_encrypted_data protoreflect.FieldDescriptor ) @@ -10015,7 +10015,7 @@ func init() { file_fairyring_pep_query_proto_init() md_QueryDecryptDataRequest = File_fairyring_pep_query_proto.Messages().ByName("QueryDecryptDataRequest") fd_QueryDecryptDataRequest_pubkey = md_QueryDecryptDataRequest.Fields().ByName("pubkey") - fd_QueryDecryptDataRequest_aggr_keyshare = md_QueryDecryptDataRequest.Fields().ByName("aggr_keyshare") + fd_QueryDecryptDataRequest_decryption_key = md_QueryDecryptDataRequest.Fields().ByName("decryption_key") fd_QueryDecryptDataRequest_encrypted_data = md_QueryDecryptDataRequest.Fields().ByName("encrypted_data") } @@ -10090,9 +10090,9 @@ func (x *fastReflection_QueryDecryptDataRequest) Range(f func(protoreflect.Field return } } - if x.AggrKeyshare != "" { - value := protoreflect.ValueOfString(x.AggrKeyshare) - if !f(fd_QueryDecryptDataRequest_aggr_keyshare, value) { + if x.DecryptionKey != "" { + value := protoreflect.ValueOfString(x.DecryptionKey) + if !f(fd_QueryDecryptDataRequest_decryption_key, value) { return } } @@ -10119,8 +10119,8 @@ func (x *fastReflection_QueryDecryptDataRequest) Has(fd protoreflect.FieldDescri switch fd.FullName() { case "fairyring.pep.QueryDecryptDataRequest.pubkey": return x.Pubkey != "" - case "fairyring.pep.QueryDecryptDataRequest.aggr_keyshare": - return x.AggrKeyshare != "" + case "fairyring.pep.QueryDecryptDataRequest.decryption_key": + return x.DecryptionKey != "" case "fairyring.pep.QueryDecryptDataRequest.encrypted_data": return x.EncryptedData != "" default: @@ -10141,8 +10141,8 @@ func (x *fastReflection_QueryDecryptDataRequest) Clear(fd protoreflect.FieldDesc switch fd.FullName() { case "fairyring.pep.QueryDecryptDataRequest.pubkey": x.Pubkey = "" - case "fairyring.pep.QueryDecryptDataRequest.aggr_keyshare": - x.AggrKeyshare = "" + case "fairyring.pep.QueryDecryptDataRequest.decryption_key": + x.DecryptionKey = "" case "fairyring.pep.QueryDecryptDataRequest.encrypted_data": x.EncryptedData = "" default: @@ -10164,8 +10164,8 @@ func (x *fastReflection_QueryDecryptDataRequest) Get(descriptor protoreflect.Fie case "fairyring.pep.QueryDecryptDataRequest.pubkey": value := x.Pubkey return protoreflect.ValueOfString(value) - case "fairyring.pep.QueryDecryptDataRequest.aggr_keyshare": - value := x.AggrKeyshare + case "fairyring.pep.QueryDecryptDataRequest.decryption_key": + value := x.DecryptionKey return protoreflect.ValueOfString(value) case "fairyring.pep.QueryDecryptDataRequest.encrypted_data": value := x.EncryptedData @@ -10192,8 +10192,8 @@ func (x *fastReflection_QueryDecryptDataRequest) Set(fd protoreflect.FieldDescri switch fd.FullName() { case "fairyring.pep.QueryDecryptDataRequest.pubkey": x.Pubkey = value.Interface().(string) - case "fairyring.pep.QueryDecryptDataRequest.aggr_keyshare": - x.AggrKeyshare = value.Interface().(string) + case "fairyring.pep.QueryDecryptDataRequest.decryption_key": + x.DecryptionKey = value.Interface().(string) case "fairyring.pep.QueryDecryptDataRequest.encrypted_data": x.EncryptedData = value.Interface().(string) default: @@ -10218,8 +10218,8 @@ func (x *fastReflection_QueryDecryptDataRequest) Mutable(fd protoreflect.FieldDe switch fd.FullName() { case "fairyring.pep.QueryDecryptDataRequest.pubkey": panic(fmt.Errorf("field pubkey of message fairyring.pep.QueryDecryptDataRequest is not mutable")) - case "fairyring.pep.QueryDecryptDataRequest.aggr_keyshare": - panic(fmt.Errorf("field aggr_keyshare of message fairyring.pep.QueryDecryptDataRequest is not mutable")) + case "fairyring.pep.QueryDecryptDataRequest.decryption_key": + panic(fmt.Errorf("field decryption_key of message fairyring.pep.QueryDecryptDataRequest is not mutable")) case "fairyring.pep.QueryDecryptDataRequest.encrypted_data": panic(fmt.Errorf("field encrypted_data of message fairyring.pep.QueryDecryptDataRequest is not mutable")) default: @@ -10237,7 +10237,7 @@ func (x *fastReflection_QueryDecryptDataRequest) NewField(fd protoreflect.FieldD switch fd.FullName() { case "fairyring.pep.QueryDecryptDataRequest.pubkey": return protoreflect.ValueOfString("") - case "fairyring.pep.QueryDecryptDataRequest.aggr_keyshare": + case "fairyring.pep.QueryDecryptDataRequest.decryption_key": return protoreflect.ValueOfString("") case "fairyring.pep.QueryDecryptDataRequest.encrypted_data": return protoreflect.ValueOfString("") @@ -10314,7 +10314,7 @@ func (x *fastReflection_QueryDecryptDataRequest) ProtoMethods() *protoiface.Meth if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.AggrKeyshare) + l = len(x.DecryptionKey) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -10358,10 +10358,10 @@ func (x *fastReflection_QueryDecryptDataRequest) ProtoMethods() *protoiface.Meth i-- dAtA[i] = 0x1a } - if len(x.AggrKeyshare) > 0 { - i -= len(x.AggrKeyshare) - copy(dAtA[i:], x.AggrKeyshare) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AggrKeyshare))) + if len(x.DecryptionKey) > 0 { + i -= len(x.DecryptionKey) + copy(dAtA[i:], x.DecryptionKey) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DecryptionKey))) i-- dAtA[i] = 0x12 } @@ -10455,7 +10455,7 @@ func (x *fastReflection_QueryDecryptDataRequest) ProtoMethods() *protoiface.Meth iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AggrKeyshare", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DecryptionKey", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10483,7 +10483,7 @@ func (x *fastReflection_QueryDecryptDataRequest) ProtoMethods() *protoiface.Meth if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.AggrKeyshare = string(dAtA[iNdEx:postIndex]) + x.DecryptionKey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -11649,14 +11649,14 @@ func (x *QueryPepNonceAllResponse) GetPagination() *v1beta1.PageResponse { } // QueryPubKeyRequest is request type for the Query/PubKey RPC method. -type QueryPubKeyRequest struct { +type QueryPubkeyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *QueryPubKeyRequest) Reset() { - *x = QueryPubKeyRequest{} +func (x *QueryPubkeyRequest) Reset() { + *x = QueryPubkeyRequest{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11664,29 +11664,29 @@ func (x *QueryPubKeyRequest) Reset() { } } -func (x *QueryPubKeyRequest) String() string { +func (x *QueryPubkeyRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryPubKeyRequest) ProtoMessage() {} +func (*QueryPubkeyRequest) ProtoMessage() {} -// Deprecated: Use QueryPubKeyRequest.ProtoReflect.Descriptor instead. -func (*QueryPubKeyRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryPubkeyRequest.ProtoReflect.Descriptor instead. +func (*QueryPubkeyRequest) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{18} } // QueryPubKeyResponse is response type for the Query/PubKey RPC method. -type QueryPubKeyResponse struct { +type QueryPubkeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ActivePubKey *common.ActivePublicKey `protobuf:"bytes,1,opt,name=active_pub_key,json=activePubKey,proto3" json:"active_pub_key,omitempty"` - QueuedPubKey *common.QueuedPublicKey `protobuf:"bytes,2,opt,name=queued_pub_key,json=queuedPubKey,proto3" json:"queued_pub_key,omitempty"` + ActivePubkey *common.ActivePublicKey `protobuf:"bytes,1,opt,name=active_pubkey,json=activePubkey,proto3" json:"active_pubkey,omitempty"` + QueuedPubkey *common.QueuedPublicKey `protobuf:"bytes,2,opt,name=queued_pubkey,json=queuedPubkey,proto3" json:"queued_pubkey,omitempty"` } -func (x *QueryPubKeyResponse) Reset() { - *x = QueryPubKeyResponse{} +func (x *QueryPubkeyResponse) Reset() { + *x = QueryPubkeyResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_query_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11694,27 +11694,27 @@ func (x *QueryPubKeyResponse) Reset() { } } -func (x *QueryPubKeyResponse) String() string { +func (x *QueryPubkeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryPubKeyResponse) ProtoMessage() {} +func (*QueryPubkeyResponse) ProtoMessage() {} -// Deprecated: Use QueryPubKeyResponse.ProtoReflect.Descriptor instead. -func (*QueryPubKeyResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use QueryPubkeyResponse.ProtoReflect.Descriptor instead. +func (*QueryPubkeyResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{19} } -func (x *QueryPubKeyResponse) GetActivePubKey() *common.ActivePublicKey { +func (x *QueryPubkeyResponse) GetActivePubkey() *common.ActivePublicKey { if x != nil { - return x.ActivePubKey + return x.ActivePubkey } return nil } -func (x *QueryPubKeyResponse) GetQueuedPubKey() *common.QueuedPublicKey { +func (x *QueryPubkeyResponse) GetQueuedPubkey() *common.QueuedPublicKey { if x != nil { - return x.QueuedPubKey + return x.QueuedPubkey } return nil } @@ -11822,7 +11822,7 @@ type QueryDecryptDataRequest struct { unknownFields protoimpl.UnknownFields Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - AggrKeyshare string `protobuf:"bytes,2,opt,name=aggr_keyshare,json=aggrKeyshare,proto3" json:"aggr_keyshare,omitempty"` + DecryptionKey string `protobuf:"bytes,2,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key,omitempty"` EncryptedData string `protobuf:"bytes,3,opt,name=encrypted_data,json=encryptedData,proto3" json:"encrypted_data,omitempty"` } @@ -11853,9 +11853,9 @@ func (x *QueryDecryptDataRequest) GetPubkey() string { return "" } -func (x *QueryDecryptDataRequest) GetAggrKeyshare() string { +func (x *QueryDecryptDataRequest) GetDecryptionKey() string { if x != nil { - return x.AggrKeyshare + return x.DecryptionKey } return "" } @@ -11909,21 +11909,21 @@ var file_fairyring_pep_query_proto_rawDesc = []byte{ 0x0a, 0x19, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, - 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, - 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x5f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x65, 0x70, 0x5f, 0x6e, - 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x65, 0x6e, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x1a, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x65, 0x70, 0x5f, + 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, + 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, + 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4f, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, @@ -12032,41 +12032,41 @@ var file_fairyring_pep_query_proto_rawDesc = []byte{ 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, - 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xb3, 0x01, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, - 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, - 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, - 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, - 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x4d, 0x0a, 0x0e, - 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, + 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xb1, 0x01, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x75, 0x62, 0x6b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, + 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, - 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x22, 0x34, 0x0a, 0x1b, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, - 0x71, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, - 0x64, 0x22, 0xc7, 0x01, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, - 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, - 0x71, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x5e, 0x0a, 0x17, 0x70, - 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, - 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x15, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x7d, 0x0a, 0x17, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x23, - 0x0a, 0x0d, 0x61, 0x67, 0x67, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x67, 0x67, 0x72, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x4c, 0x0a, 0x0d, 0x71, + 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, + 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x22, 0x34, 0x0a, 0x1b, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, + 0xc7, 0x01, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, + 0x71, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, + 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x5e, 0x0a, 0x17, 0x70, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x6b, 0x65, 0x79, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, + 0x65, 0x79, 0x52, 0x15, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x7f, 0x0a, 0x17, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x0e, + 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x4b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x22, 0x41, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, @@ -12136,55 +12136,55 @@ var file_fairyring_pep_query_proto_rawDesc = []byte{ 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x65, 0x70, 0x5f, 0x6e, 0x6f, 0x6e, - 0x63, 0x65, 0x12, 0x6f, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x21, 0x2e, 0x66, + 0x63, 0x65, 0x12, 0x6e, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x72, 0x79, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x75, 0x62, 0x5f, - 0x6b, 0x65, 0x79, 0x12, 0x9c, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, - 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x7b, 0x72, 0x65, 0x71, 0x5f, 0x69, - 0x64, 0x7d, 0x12, 0x9c, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x41, 0x6c, 0x6c, 0x12, 0x2d, 0x2e, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x41, 0x6c, - 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x75, 0x62, 0x6b, + 0x65, 0x79, 0x12, 0x9c, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, + 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2f, 0x7b, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, + 0x7d, 0x12, 0x9c, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x41, 0x6c, 0x6c, 0x12, 0x2d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x41, 0x6c, 0x6c, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, - 0x12, 0x1f, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, - 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x12, 0xa6, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, - 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, - 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x46, 0x61, 0x69, 0x72, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, - 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x2f, 0x7b, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xb7, 0x01, 0x0a, 0x0b, 0x44, - 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, - 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, - 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x57, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x51, 0x12, 0x4f, 0x2f, 0x46, 0x61, 0x69, 0x72, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x64, 0x65, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x75, 0x62, 0x6b, - 0x65, 0x79, 0x7d, 0x2f, 0x7b, 0x61, 0x67, 0x67, 0x72, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, - 0x72, 0x65, 0x7d, 0x2f, 0x7b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x41, 0x6c, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, + 0x1f, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, + 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x12, 0xa6, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x46, 0x61, 0x69, 0x72, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x2f, 0x7b, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xb8, 0x01, 0x0a, 0x0b, 0x44, 0x65, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, + 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, + 0x70, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x58, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x52, 0x12, 0x50, 0x2f, 0x46, 0x61, 0x69, 0x72, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x64, 0x65, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x75, 0x62, 0x6b, 0x65, + 0x79, 0x7d, 0x2f, 0x7b, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, + 0x65, 0x79, 0x7d, 0x2f, 0x7b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x42, 0x94, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, @@ -12230,8 +12230,8 @@ var file_fairyring_pep_query_proto_goTypes = []interface{}{ (*QueryPepNonceResponse)(nil), // 15: fairyring.pep.QueryPepNonceResponse (*QueryPepNonceAllRequest)(nil), // 16: fairyring.pep.QueryPepNonceAllRequest (*QueryPepNonceAllResponse)(nil), // 17: fairyring.pep.QueryPepNonceAllResponse - (*QueryPubKeyRequest)(nil), // 18: fairyring.pep.QueryPubKeyRequest - (*QueryPubKeyResponse)(nil), // 19: fairyring.pep.QueryPubKeyResponse + (*QueryPubkeyRequest)(nil), // 18: fairyring.pep.QueryPubkeyRequest + (*QueryPubkeyResponse)(nil), // 19: fairyring.pep.QueryPubkeyResponse (*QueryPrivateIdentityRequest)(nil), // 20: fairyring.pep.QueryPrivateIdentityRequest (*QueryPrivateIdentityResponse)(nil), // 21: fairyring.pep.QueryPrivateIdentityResponse (*QueryDecryptDataRequest)(nil), // 22: fairyring.pep.QueryDecryptDataRequest @@ -12262,8 +12262,8 @@ var file_fairyring_pep_query_proto_depIdxs = []int32{ 26, // 11: fairyring.pep.QueryPepNonceAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 30, // 12: fairyring.pep.QueryPepNonceAllResponse.pep_nonce:type_name -> fairyring.pep.PepNonce 27, // 13: fairyring.pep.QueryPepNonceAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 31, // 14: fairyring.pep.QueryPubKeyResponse.active_pub_key:type_name -> fairyring.common.ActivePublicKey - 32, // 15: fairyring.pep.QueryPubKeyResponse.queued_pub_key:type_name -> fairyring.common.QueuedPublicKey + 31, // 14: fairyring.pep.QueryPubkeyResponse.active_pubkey:type_name -> fairyring.common.ActivePublicKey + 32, // 15: fairyring.pep.QueryPubkeyResponse.queued_pubkey:type_name -> fairyring.common.QueuedPublicKey 33, // 16: fairyring.pep.QueryPrivateIdentityResponse.private_decryption_keys:type_name -> fairyring.common.PrivateDecryptionKey 0, // 17: fairyring.pep.Query.Params:input_type -> fairyring.pep.QueryParamsRequest 6, // 18: fairyring.pep.Query.EncryptedTx:input_type -> fairyring.pep.QueryEncryptedTxRequest @@ -12272,7 +12272,7 @@ var file_fairyring_pep_query_proto_depIdxs = []int32{ 12, // 21: fairyring.pep.Query.LatestHeight:input_type -> fairyring.pep.QueryLatestHeightRequest 14, // 22: fairyring.pep.Query.PepNonce:input_type -> fairyring.pep.QueryPepNonceRequest 16, // 23: fairyring.pep.Query.PepNonceAll:input_type -> fairyring.pep.QueryPepNonceAllRequest - 18, // 24: fairyring.pep.Query.PubKey:input_type -> fairyring.pep.QueryPubKeyRequest + 18, // 24: fairyring.pep.Query.Pubkey:input_type -> fairyring.pep.QueryPubkeyRequest 2, // 25: fairyring.pep.Query.GeneralIdentity:input_type -> fairyring.pep.QueryGeneralIdentityRequest 4, // 26: fairyring.pep.Query.GeneralIdentityAll:input_type -> fairyring.pep.QueryGeneralIdentityAllRequest 20, // 27: fairyring.pep.Query.PrivateIdentity:input_type -> fairyring.pep.QueryPrivateIdentityRequest @@ -12284,7 +12284,7 @@ var file_fairyring_pep_query_proto_depIdxs = []int32{ 13, // 33: fairyring.pep.Query.LatestHeight:output_type -> fairyring.pep.QueryLatestHeightResponse 15, // 34: fairyring.pep.Query.PepNonce:output_type -> fairyring.pep.QueryPepNonceResponse 17, // 35: fairyring.pep.Query.PepNonceAll:output_type -> fairyring.pep.QueryPepNonceAllResponse - 19, // 36: fairyring.pep.Query.PubKey:output_type -> fairyring.pep.QueryPubKeyResponse + 19, // 36: fairyring.pep.Query.Pubkey:output_type -> fairyring.pep.QueryPubkeyResponse 3, // 37: fairyring.pep.Query.GeneralIdentity:output_type -> fairyring.pep.QueryGeneralIdentityResponse 5, // 38: fairyring.pep.Query.GeneralIdentityAll:output_type -> fairyring.pep.QueryGeneralIdentityAllResponse 21, // 39: fairyring.pep.Query.PrivateIdentity:output_type -> fairyring.pep.QueryPrivateIdentityResponse @@ -12301,8 +12301,8 @@ func file_fairyring_pep_query_proto_init() { if File_fairyring_pep_query_proto != nil { return } - file_fairyring_pep_params_proto_init() file_fairyring_pep_encrypted_tx_proto_init() + file_fairyring_pep_params_proto_init() file_fairyring_pep_pep_nonce_proto_init() if !protoimpl.UnsafeEnabled { file_fairyring_pep_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { @@ -12522,7 +12522,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryPubKeyRequest); i { + switch v := v.(*QueryPubkeyRequest); i { case 0: return &v.state case 1: @@ -12534,7 +12534,7 @@ func file_fairyring_pep_query_proto_init() { } } file_fairyring_pep_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryPubKeyResponse); i { + switch v := v.(*QueryPubkeyResponse); i { case 0: return &v.state case 1: diff --git a/api/fairyring/pep/query_grpc.pb.go b/api/fairyring/pep/query_grpc.pb.go index e513ddc4..8446d0d1 100644 --- a/api/fairyring/pep/query_grpc.pb.go +++ b/api/fairyring/pep/query_grpc.pb.go @@ -26,7 +26,7 @@ const ( Query_LatestHeight_FullMethodName = "/fairyring.pep.Query/LatestHeight" Query_PepNonce_FullMethodName = "/fairyring.pep.Query/PepNonce" Query_PepNonceAll_FullMethodName = "/fairyring.pep.Query/PepNonceAll" - Query_PubKey_FullMethodName = "/fairyring.pep.Query/PubKey" + Query_Pubkey_FullMethodName = "/fairyring.pep.Query/Pubkey" Query_GeneralIdentity_FullMethodName = "/fairyring.pep.Query/GeneralIdentity" Query_GeneralIdentityAll_FullMethodName = "/fairyring.pep.Query/GeneralIdentityAll" Query_PrivateIdentity_FullMethodName = "/fairyring.pep.Query/PrivateIdentity" @@ -52,7 +52,7 @@ type QueryClient interface { // Queries a list of PepNonce items. PepNonceAll(ctx context.Context, in *QueryPepNonceAllRequest, opts ...grpc.CallOption) (*QueryPepNonceAllResponse, error) // Queries the public keys - PubKey(ctx context.Context, in *QueryPubKeyRequest, opts ...grpc.CallOption) (*QueryPubKeyResponse, error) + Pubkey(ctx context.Context, in *QueryPubkeyRequest, opts ...grpc.CallOption) (*QueryPubkeyResponse, error) // Queries a General Identity request by request id GeneralIdentity(ctx context.Context, in *QueryGeneralIdentityRequest, opts ...grpc.CallOption) (*QueryGeneralIdentityResponse, error) // Queries a list of General Identity requests @@ -134,9 +134,9 @@ func (c *queryClient) PepNonceAll(ctx context.Context, in *QueryPepNonceAllReque return out, nil } -func (c *queryClient) PubKey(ctx context.Context, in *QueryPubKeyRequest, opts ...grpc.CallOption) (*QueryPubKeyResponse, error) { - out := new(QueryPubKeyResponse) - err := c.cc.Invoke(ctx, Query_PubKey_FullMethodName, in, out, opts...) +func (c *queryClient) Pubkey(ctx context.Context, in *QueryPubkeyRequest, opts ...grpc.CallOption) (*QueryPubkeyResponse, error) { + out := new(QueryPubkeyResponse) + err := c.cc.Invoke(ctx, Query_Pubkey_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -198,7 +198,7 @@ type QueryServer interface { // Queries a list of PepNonce items. PepNonceAll(context.Context, *QueryPepNonceAllRequest) (*QueryPepNonceAllResponse, error) // Queries the public keys - PubKey(context.Context, *QueryPubKeyRequest) (*QueryPubKeyResponse, error) + Pubkey(context.Context, *QueryPubkeyRequest) (*QueryPubkeyResponse, error) // Queries a General Identity request by request id GeneralIdentity(context.Context, *QueryGeneralIdentityRequest) (*QueryGeneralIdentityResponse, error) // Queries a list of General Identity requests @@ -235,8 +235,8 @@ func (UnimplementedQueryServer) PepNonce(context.Context, *QueryPepNonceRequest) func (UnimplementedQueryServer) PepNonceAll(context.Context, *QueryPepNonceAllRequest) (*QueryPepNonceAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PepNonceAll not implemented") } -func (UnimplementedQueryServer) PubKey(context.Context, *QueryPubKeyRequest) (*QueryPubKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PubKey not implemented") +func (UnimplementedQueryServer) Pubkey(context.Context, *QueryPubkeyRequest) (*QueryPubkeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Pubkey not implemented") } func (UnimplementedQueryServer) GeneralIdentity(context.Context, *QueryGeneralIdentityRequest) (*QueryGeneralIdentityResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GeneralIdentity not implemented") @@ -389,20 +389,20 @@ func _Query_PepNonceAll_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } -func _Query_PubKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryPubKeyRequest) +func _Query_Pubkey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPubkeyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).PubKey(ctx, in) + return srv.(QueryServer).Pubkey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_PubKey_FullMethodName, + FullMethod: Query_Pubkey_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PubKey(ctx, req.(*QueryPubKeyRequest)) + return srv.(QueryServer).Pubkey(ctx, req.(*QueryPubkeyRequest)) } return interceptor(ctx, in, info, handler) } @@ -515,8 +515,8 @@ var Query_ServiceDesc = grpc.ServiceDesc{ Handler: _Query_PepNonceAll_Handler, }, { - MethodName: "PubKey", - Handler: _Query_PubKey_Handler, + MethodName: "Pubkey", + Handler: _Query_Pubkey_Handler, }, { MethodName: "GeneralIdentity", diff --git a/api/fairyring/pep/request_id.pulsar.go b/api/fairyring/pep/request_id.pulsar.go index 8312a39d..1bca54c5 100644 --- a/api/fairyring/pep/request_id.pulsar.go +++ b/api/fairyring/pep/request_id.pulsar.go @@ -2,7 +2,7 @@ package pep import ( - common "cosmossdk.io/api/fairyring/common" + common "github.com/Fairblock/fairyring/api/fairyring/common" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" diff --git a/api/fairyring/pep/tx.pulsar.go b/api/fairyring/pep/tx.pulsar.go index 5466f5da..6d1c24f7 100644 --- a/api/fairyring/pep/tx.pulsar.go +++ b/api/fairyring/pep/tx.pulsar.go @@ -2665,29 +2665,29 @@ func (x *fastReflection_MsgSubmitGeneralEncryptedTxResponse) ProtoMethods() *pro } var ( - md_MsgCreateAggregatedKeyShare protoreflect.MessageDescriptor - fd_MsgCreateAggregatedKeyShare_creator protoreflect.FieldDescriptor - fd_MsgCreateAggregatedKeyShare_height protoreflect.FieldDescriptor - fd_MsgCreateAggregatedKeyShare_data protoreflect.FieldDescriptor + md_MsgSubmitDecryptionKey protoreflect.MessageDescriptor + fd_MsgSubmitDecryptionKey_creator protoreflect.FieldDescriptor + fd_MsgSubmitDecryptionKey_height protoreflect.FieldDescriptor + fd_MsgSubmitDecryptionKey_data protoreflect.FieldDescriptor ) func init() { file_fairyring_pep_tx_proto_init() - md_MsgCreateAggregatedKeyShare = File_fairyring_pep_tx_proto.Messages().ByName("MsgCreateAggregatedKeyShare") - fd_MsgCreateAggregatedKeyShare_creator = md_MsgCreateAggregatedKeyShare.Fields().ByName("creator") - fd_MsgCreateAggregatedKeyShare_height = md_MsgCreateAggregatedKeyShare.Fields().ByName("height") - fd_MsgCreateAggregatedKeyShare_data = md_MsgCreateAggregatedKeyShare.Fields().ByName("data") + md_MsgSubmitDecryptionKey = File_fairyring_pep_tx_proto.Messages().ByName("MsgSubmitDecryptionKey") + fd_MsgSubmitDecryptionKey_creator = md_MsgSubmitDecryptionKey.Fields().ByName("creator") + fd_MsgSubmitDecryptionKey_height = md_MsgSubmitDecryptionKey.Fields().ByName("height") + fd_MsgSubmitDecryptionKey_data = md_MsgSubmitDecryptionKey.Fields().ByName("data") } -var _ protoreflect.Message = (*fastReflection_MsgCreateAggregatedKeyShare)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSubmitDecryptionKey)(nil) -type fastReflection_MsgCreateAggregatedKeyShare MsgCreateAggregatedKeyShare +type fastReflection_MsgSubmitDecryptionKey MsgSubmitDecryptionKey -func (x *MsgCreateAggregatedKeyShare) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateAggregatedKeyShare)(x) +func (x *MsgSubmitDecryptionKey) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSubmitDecryptionKey)(x) } -func (x *MsgCreateAggregatedKeyShare) slowProtoReflect() protoreflect.Message { +func (x *MsgSubmitDecryptionKey) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_tx_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2699,43 +2699,43 @@ func (x *MsgCreateAggregatedKeyShare) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgCreateAggregatedKeyShare_messageType fastReflection_MsgCreateAggregatedKeyShare_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateAggregatedKeyShare_messageType{} +var _fastReflection_MsgSubmitDecryptionKey_messageType fastReflection_MsgSubmitDecryptionKey_messageType +var _ protoreflect.MessageType = fastReflection_MsgSubmitDecryptionKey_messageType{} -type fastReflection_MsgCreateAggregatedKeyShare_messageType struct{} +type fastReflection_MsgSubmitDecryptionKey_messageType struct{} -func (x fastReflection_MsgCreateAggregatedKeyShare_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateAggregatedKeyShare)(nil) +func (x fastReflection_MsgSubmitDecryptionKey_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSubmitDecryptionKey)(nil) } -func (x fastReflection_MsgCreateAggregatedKeyShare_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateAggregatedKeyShare) +func (x fastReflection_MsgSubmitDecryptionKey_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSubmitDecryptionKey) } -func (x fastReflection_MsgCreateAggregatedKeyShare_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateAggregatedKeyShare +func (x fastReflection_MsgSubmitDecryptionKey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitDecryptionKey } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgCreateAggregatedKeyShare) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateAggregatedKeyShare +func (x *fastReflection_MsgSubmitDecryptionKey) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitDecryptionKey } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgCreateAggregatedKeyShare) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateAggregatedKeyShare_messageType +func (x *fastReflection_MsgSubmitDecryptionKey) Type() protoreflect.MessageType { + return _fastReflection_MsgSubmitDecryptionKey_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateAggregatedKeyShare) New() protoreflect.Message { - return new(fastReflection_MsgCreateAggregatedKeyShare) +func (x *fastReflection_MsgSubmitDecryptionKey) New() protoreflect.Message { + return new(fastReflection_MsgSubmitDecryptionKey) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCreateAggregatedKeyShare) Interface() protoreflect.ProtoMessage { - return (*MsgCreateAggregatedKeyShare)(x) +func (x *fastReflection_MsgSubmitDecryptionKey) Interface() protoreflect.ProtoMessage { + return (*MsgSubmitDecryptionKey)(x) } // Range iterates over every populated field in an undefined order, @@ -2743,22 +2743,22 @@ func (x *fastReflection_MsgCreateAggregatedKeyShare) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgCreateAggregatedKeyShare) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgSubmitDecryptionKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCreateAggregatedKeyShare_creator, value) { + if !f(fd_MsgSubmitDecryptionKey_creator, value) { return } } if x.Height != uint64(0) { value := protoreflect.ValueOfUint64(x.Height) - if !f(fd_MsgCreateAggregatedKeyShare_height, value) { + if !f(fd_MsgSubmitDecryptionKey_height, value) { return } } if x.Data != "" { value := protoreflect.ValueOfString(x.Data) - if !f(fd_MsgCreateAggregatedKeyShare_data, value) { + if !f(fd_MsgSubmitDecryptionKey_data, value) { return } } @@ -2775,19 +2775,19 @@ func (x *fastReflection_MsgCreateAggregatedKeyShare) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCreateAggregatedKeyShare) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgSubmitDecryptionKey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.pep.MsgCreateAggregatedKeyShare.creator": + case "fairyring.pep.MsgSubmitDecryptionKey.creator": return x.Creator != "" - case "fairyring.pep.MsgCreateAggregatedKeyShare.height": + case "fairyring.pep.MsgSubmitDecryptionKey.height": return x.Height != uint64(0) - case "fairyring.pep.MsgCreateAggregatedKeyShare.data": + case "fairyring.pep.MsgSubmitDecryptionKey.data": return x.Data != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgCreateAggregatedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitDecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.MsgCreateAggregatedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgSubmitDecryptionKey does not contain field %s", fd.FullName())) } } @@ -2797,19 +2797,19 @@ func (x *fastReflection_MsgCreateAggregatedKeyShare) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateAggregatedKeyShare) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgSubmitDecryptionKey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.pep.MsgCreateAggregatedKeyShare.creator": + case "fairyring.pep.MsgSubmitDecryptionKey.creator": x.Creator = "" - case "fairyring.pep.MsgCreateAggregatedKeyShare.height": + case "fairyring.pep.MsgSubmitDecryptionKey.height": x.Height = uint64(0) - case "fairyring.pep.MsgCreateAggregatedKeyShare.data": + case "fairyring.pep.MsgSubmitDecryptionKey.data": x.Data = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgCreateAggregatedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitDecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.MsgCreateAggregatedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgSubmitDecryptionKey does not contain field %s", fd.FullName())) } } @@ -2819,22 +2819,22 @@ func (x *fastReflection_MsgCreateAggregatedKeyShare) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgCreateAggregatedKeyShare) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitDecryptionKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.pep.MsgCreateAggregatedKeyShare.creator": + case "fairyring.pep.MsgSubmitDecryptionKey.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.pep.MsgCreateAggregatedKeyShare.height": + case "fairyring.pep.MsgSubmitDecryptionKey.height": value := x.Height return protoreflect.ValueOfUint64(value) - case "fairyring.pep.MsgCreateAggregatedKeyShare.data": + case "fairyring.pep.MsgSubmitDecryptionKey.data": value := x.Data return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgCreateAggregatedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitDecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.MsgCreateAggregatedKeyShare does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgSubmitDecryptionKey does not contain field %s", descriptor.FullName())) } } @@ -2848,19 +2848,19 @@ func (x *fastReflection_MsgCreateAggregatedKeyShare) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateAggregatedKeyShare) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgSubmitDecryptionKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.pep.MsgCreateAggregatedKeyShare.creator": + case "fairyring.pep.MsgSubmitDecryptionKey.creator": x.Creator = value.Interface().(string) - case "fairyring.pep.MsgCreateAggregatedKeyShare.height": + case "fairyring.pep.MsgSubmitDecryptionKey.height": x.Height = value.Uint() - case "fairyring.pep.MsgCreateAggregatedKeyShare.data": + case "fairyring.pep.MsgSubmitDecryptionKey.data": x.Data = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgCreateAggregatedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitDecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.MsgCreateAggregatedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgSubmitDecryptionKey does not contain field %s", fd.FullName())) } } @@ -2874,48 +2874,48 @@ func (x *fastReflection_MsgCreateAggregatedKeyShare) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateAggregatedKeyShare) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitDecryptionKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.MsgCreateAggregatedKeyShare.creator": - panic(fmt.Errorf("field creator of message fairyring.pep.MsgCreateAggregatedKeyShare is not mutable")) - case "fairyring.pep.MsgCreateAggregatedKeyShare.height": - panic(fmt.Errorf("field height of message fairyring.pep.MsgCreateAggregatedKeyShare is not mutable")) - case "fairyring.pep.MsgCreateAggregatedKeyShare.data": - panic(fmt.Errorf("field data of message fairyring.pep.MsgCreateAggregatedKeyShare is not mutable")) + case "fairyring.pep.MsgSubmitDecryptionKey.creator": + panic(fmt.Errorf("field creator of message fairyring.pep.MsgSubmitDecryptionKey is not mutable")) + case "fairyring.pep.MsgSubmitDecryptionKey.height": + panic(fmt.Errorf("field height of message fairyring.pep.MsgSubmitDecryptionKey is not mutable")) + case "fairyring.pep.MsgSubmitDecryptionKey.data": + panic(fmt.Errorf("field data of message fairyring.pep.MsgSubmitDecryptionKey is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgCreateAggregatedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitDecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.MsgCreateAggregatedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgSubmitDecryptionKey does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgCreateAggregatedKeyShare) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitDecryptionKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.pep.MsgCreateAggregatedKeyShare.creator": + case "fairyring.pep.MsgSubmitDecryptionKey.creator": return protoreflect.ValueOfString("") - case "fairyring.pep.MsgCreateAggregatedKeyShare.height": + case "fairyring.pep.MsgSubmitDecryptionKey.height": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.pep.MsgCreateAggregatedKeyShare.data": + case "fairyring.pep.MsgSubmitDecryptionKey.data": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgCreateAggregatedKeyShare")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitDecryptionKey")) } - panic(fmt.Errorf("message fairyring.pep.MsgCreateAggregatedKeyShare does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgSubmitDecryptionKey does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgCreateAggregatedKeyShare) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgSubmitDecryptionKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgCreateAggregatedKeyShare", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgSubmitDecryptionKey", d.FullName())) } panic("unreachable") } @@ -2923,7 +2923,7 @@ func (x *fastReflection_MsgCreateAggregatedKeyShare) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgCreateAggregatedKeyShare) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgSubmitDecryptionKey) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2934,7 +2934,7 @@ func (x *fastReflection_MsgCreateAggregatedKeyShare) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateAggregatedKeyShare) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgSubmitDecryptionKey) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2946,7 +2946,7 @@ func (x *fastReflection_MsgCreateAggregatedKeyShare) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgCreateAggregatedKeyShare) IsValid() bool { +func (x *fastReflection_MsgSubmitDecryptionKey) IsValid() bool { return x != nil } @@ -2956,9 +2956,9 @@ func (x *fastReflection_MsgCreateAggregatedKeyShare) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCreateAggregatedKeyShare) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgSubmitDecryptionKey) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateAggregatedKeyShare) + x := input.Message.Interface().(*MsgSubmitDecryptionKey) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2991,7 +2991,7 @@ func (x *fastReflection_MsgCreateAggregatedKeyShare) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateAggregatedKeyShare) + x := input.Message.Interface().(*MsgSubmitDecryptionKey) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3040,7 +3040,7 @@ func (x *fastReflection_MsgCreateAggregatedKeyShare) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateAggregatedKeyShare) + x := input.Message.Interface().(*MsgSubmitDecryptionKey) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3072,10 +3072,10 @@ func (x *fastReflection_MsgCreateAggregatedKeyShare) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateAggregatedKeyShare: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitDecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateAggregatedKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitDecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3197,23 +3197,23 @@ func (x *fastReflection_MsgCreateAggregatedKeyShare) ProtoMethods() *protoiface. } var ( - md_MsgCreateAggregatedKeyShareResponse protoreflect.MessageDescriptor + md_MsgSubmitDecryptionKeyResponse protoreflect.MessageDescriptor ) func init() { file_fairyring_pep_tx_proto_init() - md_MsgCreateAggregatedKeyShareResponse = File_fairyring_pep_tx_proto.Messages().ByName("MsgCreateAggregatedKeyShareResponse") + md_MsgSubmitDecryptionKeyResponse = File_fairyring_pep_tx_proto.Messages().ByName("MsgSubmitDecryptionKeyResponse") } -var _ protoreflect.Message = (*fastReflection_MsgCreateAggregatedKeyShareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgSubmitDecryptionKeyResponse)(nil) -type fastReflection_MsgCreateAggregatedKeyShareResponse MsgCreateAggregatedKeyShareResponse +type fastReflection_MsgSubmitDecryptionKeyResponse MsgSubmitDecryptionKeyResponse -func (x *MsgCreateAggregatedKeyShareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateAggregatedKeyShareResponse)(x) +func (x *MsgSubmitDecryptionKeyResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgSubmitDecryptionKeyResponse)(x) } -func (x *MsgCreateAggregatedKeyShareResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgSubmitDecryptionKeyResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_pep_tx_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3225,43 +3225,43 @@ func (x *MsgCreateAggregatedKeyShareResponse) slowProtoReflect() protoreflect.Me return mi.MessageOf(x) } -var _fastReflection_MsgCreateAggregatedKeyShareResponse_messageType fastReflection_MsgCreateAggregatedKeyShareResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateAggregatedKeyShareResponse_messageType{} +var _fastReflection_MsgSubmitDecryptionKeyResponse_messageType fastReflection_MsgSubmitDecryptionKeyResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgSubmitDecryptionKeyResponse_messageType{} -type fastReflection_MsgCreateAggregatedKeyShareResponse_messageType struct{} +type fastReflection_MsgSubmitDecryptionKeyResponse_messageType struct{} -func (x fastReflection_MsgCreateAggregatedKeyShareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateAggregatedKeyShareResponse)(nil) +func (x fastReflection_MsgSubmitDecryptionKeyResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgSubmitDecryptionKeyResponse)(nil) } -func (x fastReflection_MsgCreateAggregatedKeyShareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateAggregatedKeyShareResponse) +func (x fastReflection_MsgSubmitDecryptionKeyResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgSubmitDecryptionKeyResponse) } -func (x fastReflection_MsgCreateAggregatedKeyShareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateAggregatedKeyShareResponse +func (x fastReflection_MsgSubmitDecryptionKeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitDecryptionKeyResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateAggregatedKeyShareResponse +func (x *fastReflection_MsgSubmitDecryptionKeyResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgSubmitDecryptionKeyResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateAggregatedKeyShareResponse_messageType +func (x *fastReflection_MsgSubmitDecryptionKeyResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgSubmitDecryptionKeyResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) New() protoreflect.Message { - return new(fastReflection_MsgCreateAggregatedKeyShareResponse) +func (x *fastReflection_MsgSubmitDecryptionKeyResponse) New() protoreflect.Message { + return new(fastReflection_MsgSubmitDecryptionKeyResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCreateAggregatedKeyShareResponse)(x) +func (x *fastReflection_MsgSubmitDecryptionKeyResponse) Interface() protoreflect.ProtoMessage { + return (*MsgSubmitDecryptionKeyResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -3269,7 +3269,7 @@ func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) Interface() protore // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgSubmitDecryptionKeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -3283,13 +3283,13 @@ func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) Range(f func(protor // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgSubmitDecryptionKeyResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgCreateAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgCreateAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgSubmitDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -3299,13 +3299,13 @@ func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) Has(fd protoreflect // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgSubmitDecryptionKeyResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgCreateAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgCreateAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgSubmitDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -3315,13 +3315,13 @@ func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) Clear(fd protorefle // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitDecryptionKeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgCreateAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgCreateAggregatedKeyShareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgSubmitDecryptionKeyResponse does not contain field %s", descriptor.FullName())) } } @@ -3335,13 +3335,13 @@ func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) Get(descriptor prot // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgSubmitDecryptionKeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgCreateAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgCreateAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgSubmitDecryptionKeyResponse does not contain field %s", fd.FullName())) } } @@ -3355,36 +3355,36 @@ func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) Set(fd protoreflect // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitDecryptionKeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgCreateAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgCreateAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgSubmitDecryptionKeyResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgSubmitDecryptionKeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgCreateAggregatedKeyShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.pep.MsgSubmitDecryptionKeyResponse")) } - panic(fmt.Errorf("message fairyring.pep.MsgCreateAggregatedKeyShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.pep.MsgSubmitDecryptionKeyResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgSubmitDecryptionKeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgCreateAggregatedKeyShareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.pep.MsgSubmitDecryptionKeyResponse", d.FullName())) } panic("unreachable") } @@ -3392,7 +3392,7 @@ func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) WhichOneof(d protor // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgSubmitDecryptionKeyResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3403,7 +3403,7 @@ func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) GetUnknown() protor // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgSubmitDecryptionKeyResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3415,7 +3415,7 @@ func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) SetUnknown(fields p // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) IsValid() bool { +func (x *fastReflection_MsgSubmitDecryptionKeyResponse) IsValid() bool { return x != nil } @@ -3425,9 +3425,9 @@ func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgSubmitDecryptionKeyResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateAggregatedKeyShareResponse) + x := input.Message.Interface().(*MsgSubmitDecryptionKeyResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3449,7 +3449,7 @@ func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) ProtoMethods() *pro } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateAggregatedKeyShareResponse) + x := input.Message.Interface().(*MsgSubmitDecryptionKeyResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3479,7 +3479,7 @@ func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) ProtoMethods() *pro }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateAggregatedKeyShareResponse) + x := input.Message.Interface().(*MsgSubmitDecryptionKeyResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3511,10 +3511,10 @@ func (x *fastReflection_MsgCreateAggregatedKeyShareResponse) ProtoMethods() *pro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateAggregatedKeyShareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitDecryptionKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateAggregatedKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgSubmitDecryptionKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -9239,7 +9239,7 @@ func (*MsgSubmitGeneralEncryptedTxResponse) Descriptor() ([]byte, []int) { } // MsgCreateAggregatedKeyShare is the Msg/CreateAggregatedKeyShare request type. -type MsgCreateAggregatedKeyShare struct { +type MsgSubmitDecryptionKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -9249,8 +9249,8 @@ type MsgCreateAggregatedKeyShare struct { Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` } -func (x *MsgCreateAggregatedKeyShare) Reset() { - *x = MsgCreateAggregatedKeyShare{} +func (x *MsgSubmitDecryptionKey) Reset() { + *x = MsgSubmitDecryptionKey{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_tx_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9258,48 +9258,48 @@ func (x *MsgCreateAggregatedKeyShare) Reset() { } } -func (x *MsgCreateAggregatedKeyShare) String() string { +func (x *MsgSubmitDecryptionKey) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCreateAggregatedKeyShare) ProtoMessage() {} +func (*MsgSubmitDecryptionKey) ProtoMessage() {} -// Deprecated: Use MsgCreateAggregatedKeyShare.ProtoReflect.Descriptor instead. -func (*MsgCreateAggregatedKeyShare) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgSubmitDecryptionKey.ProtoReflect.Descriptor instead. +func (*MsgSubmitDecryptionKey) Descriptor() ([]byte, []int) { return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{6} } -func (x *MsgCreateAggregatedKeyShare) GetCreator() string { +func (x *MsgSubmitDecryptionKey) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgCreateAggregatedKeyShare) GetHeight() uint64 { +func (x *MsgSubmitDecryptionKey) GetHeight() uint64 { if x != nil { return x.Height } return 0 } -func (x *MsgCreateAggregatedKeyShare) GetData() string { +func (x *MsgSubmitDecryptionKey) GetData() string { if x != nil { return x.Data } return "" } -// MsgCreateAggregatedKeyShareResponse defines the response structure for executing a -// MsgCreateAggregatedKeyShare message. -type MsgCreateAggregatedKeyShareResponse struct { +// MsgSubmitDecryptionKeyResponse defines the response structure for executing a +// MsgSubmitDecryptionKey message. +type MsgSubmitDecryptionKeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgCreateAggregatedKeyShareResponse) Reset() { - *x = MsgCreateAggregatedKeyShareResponse{} +func (x *MsgSubmitDecryptionKeyResponse) Reset() { + *x = MsgSubmitDecryptionKeyResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_pep_tx_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -9307,14 +9307,14 @@ func (x *MsgCreateAggregatedKeyShareResponse) Reset() { } } -func (x *MsgCreateAggregatedKeyShareResponse) String() string { +func (x *MsgSubmitDecryptionKeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCreateAggregatedKeyShareResponse) ProtoMessage() {} +func (*MsgSubmitDecryptionKeyResponse) ProtoMessage() {} -// Deprecated: Use MsgCreateAggregatedKeyShareResponse.ProtoReflect.Descriptor instead. -func (*MsgCreateAggregatedKeyShareResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgSubmitDecryptionKeyResponse.ProtoReflect.Descriptor instead. +func (*MsgSubmitDecryptionKeyResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{7} } @@ -9809,12 +9809,12 @@ var file_fairyring_pep_tx_proto_rawDesc = []byte{ 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, - 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, - 0x70, 0x65, 0x70, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcc, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, @@ -9849,163 +9849,162 @@ var file_fairyring_pep_tx_proto_rawDesc = []byte{ 0x71, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x25, 0x0a, 0x23, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x71, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, - 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x0c, 0x82, - 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x25, 0x0a, 0x23, 0x4d, - 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, - 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0xa4, 0x01, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x48, 0x0a, 0x0f, 0x65, 0x73, - 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, - 0x98, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x65, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x44, - 0x65, 0x6c, 0x61, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, - 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x3a, 0x0a, 0x21, 0x4d, 0x73, 0x67, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6c, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x53, + 0x75, 0x62, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, + 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x68, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, + 0x6d, 0x69, 0x74, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa4, 0x01, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, - 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0x5f, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x28, 0x0a, 0x26, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x44, 0x65, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x5a, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, - 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, + 0x12, 0x48, 0x0a, 0x0f, 0x65, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x65, + 0x6c, 0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x04, 0x98, 0xdf, 0x1f, 0x01, 0x52, 0x0e, 0x65, 0x73, 0x74, 0x69, + 0x6d, 0x61, 0x74, 0x65, 0x64, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, + 0x71, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, + 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, + 0x3a, 0x0a, 0x21, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0x5f, 0x0a, 0x1e, 0x4d, + 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, + 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x3a, 0x0c, - 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x3a, 0x0a, 0x21, - 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0x80, 0x01, 0x0a, 0x1e, 0x4d, 0x73, 0x67, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, - 0x73, 0x65, 0x63, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x70, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x3a, 0x0c, 0x82, - 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x28, 0x0a, 0x26, 0x4d, - 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, - 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x84, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x18, 0x0a, - 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x3a, 0x0c, - 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1d, 0x0a, 0x1b, + 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x28, 0x0a, 0x26, + 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x6c, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5a, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, + 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, + 0x65, 0x71, 0x49, 0x64, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x22, 0x3a, 0x0a, 0x21, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x65, 0x71, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, 0x49, 0x64, 0x22, 0x80, + 0x01, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, + 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x72, + 0x65, 0x71, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x71, + 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x63, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, + 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x63, 0x70, 0x50, 0x75, 0x62, + 0x6b, 0x65, 0x79, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, + 0x72, 0x22, 0x28, 0x0a, 0x26, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x84, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x86, 0x01, 0x0a, 0x15, - 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, - 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, - 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x89, 0x09, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x56, 0x0a, - 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1e, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, - 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x26, 0x2e, - 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, - 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x11, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, - 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x23, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, - 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x1a, - 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, - 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x18, - 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, - 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x54, 0x78, 0x1a, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, - 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x1a, 0x32, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, - 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, - 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x16, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, - 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x28, + 0x61, 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x29, 0x0a, + 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x6f, 0x72, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, + 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x86, 0x01, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x3a, 0x0c, 0x82, 0xe7, + 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, + 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xfa, 0x08, 0x0a, 0x03, + 0x4d, 0x73, 0x67, 0x12, 0x56, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x12, 0x1e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x1a, 0x26, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x11, 0x53, + 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, + 0x12, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, + 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, + 0x74, 0x65, 0x64, 0x54, 0x78, 0x1a, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x45, + 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x18, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x12, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, - 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x83, 0x01, 0x0a, 0x1b, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x44, 0x65, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x2d, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x44, 0x65, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x1a, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x44, 0x65, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x74, 0x0a, 0x16, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x28, 0x2e, 0x66, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x1a, 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, - 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x83, 0x01, 0x0a, 0x1b, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x2d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x1a, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, + 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x1a, 0x32, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, + 0x62, 0x6d, 0x69, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x45, 0x6e, 0x63, 0x72, 0x79, + 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, + 0x0a, 0x13, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x44, + 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x1a, 0x2d, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x16, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x28, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x10, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x12, 0x22, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, - 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, - 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x68, 0x0a, 0x12, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, - 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x24, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2c, 0x2e, 0x66, + 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, + 0x30, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, + 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x83, 0x01, 0x0a, 0x1b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x6c, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, + 0x79, 0x12, 0x2d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, + 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x6c, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, + 0x1a, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, + 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x47, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x6c, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x16, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x12, 0x28, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, + 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x1a, 0x30, 0x2e, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x83, 0x01, + 0x0a, 0x1b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x2d, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, + 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, + 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x1a, 0x35, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, - 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, - 0x01, 0x42, 0x91, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, - 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, - 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x44, 0x65, + 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x22, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x1a, 0x2a, 0x2e, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x12, 0x55, 0x6e, 0x72, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x12, 0x24, 0x2e, + 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, + 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, + 0x70, 0x65, 0x70, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, + 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0x91, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, + 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x07, + 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, + 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, + 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, 0xca, + 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0xe2, + 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -10028,8 +10027,8 @@ var file_fairyring_pep_tx_proto_goTypes = []interface{}{ (*MsgSubmitEncryptedTxResponse)(nil), // 3: fairyring.pep.MsgSubmitEncryptedTxResponse (*MsgSubmitGeneralEncryptedTx)(nil), // 4: fairyring.pep.MsgSubmitGeneralEncryptedTx (*MsgSubmitGeneralEncryptedTxResponse)(nil), // 5: fairyring.pep.MsgSubmitGeneralEncryptedTxResponse - (*MsgCreateAggregatedKeyShare)(nil), // 6: fairyring.pep.MsgCreateAggregatedKeyShare - (*MsgCreateAggregatedKeyShareResponse)(nil), // 7: fairyring.pep.MsgCreateAggregatedKeyShareResponse + (*MsgSubmitDecryptionKey)(nil), // 6: fairyring.pep.MsgSubmitDecryptionKey + (*MsgSubmitDecryptionKeyResponse)(nil), // 7: fairyring.pep.MsgSubmitDecryptionKeyResponse (*MsgRequestGeneralIdentity)(nil), // 8: fairyring.pep.MsgRequestGeneralIdentity (*MsgRequestGeneralIdentityResponse)(nil), // 9: fairyring.pep.MsgRequestGeneralIdentityResponse (*MsgRequestGeneralDecryptionKey)(nil), // 10: fairyring.pep.MsgRequestGeneralDecryptionKey @@ -10051,7 +10050,7 @@ var file_fairyring_pep_tx_proto_depIdxs = []int32{ 0, // 2: fairyring.pep.Msg.UpdateParams:input_type -> fairyring.pep.MsgUpdateParams 2, // 3: fairyring.pep.Msg.SubmitEncryptedTx:input_type -> fairyring.pep.MsgSubmitEncryptedTx 4, // 4: fairyring.pep.Msg.SubmitGeneralEncryptedTx:input_type -> fairyring.pep.MsgSubmitGeneralEncryptedTx - 6, // 5: fairyring.pep.Msg.CreateAggregatedKeyShare:input_type -> fairyring.pep.MsgCreateAggregatedKeyShare + 6, // 5: fairyring.pep.Msg.SubmitDecryptionKey:input_type -> fairyring.pep.MsgSubmitDecryptionKey 8, // 6: fairyring.pep.Msg.RequestGeneralIdentity:input_type -> fairyring.pep.MsgRequestGeneralIdentity 10, // 7: fairyring.pep.Msg.RequestGeneralDecryptionKey:input_type -> fairyring.pep.MsgRequestGeneralDecryptionKey 12, // 8: fairyring.pep.Msg.RequestPrivateIdentity:input_type -> fairyring.pep.MsgRequestPrivateIdentity @@ -10061,7 +10060,7 @@ var file_fairyring_pep_tx_proto_depIdxs = []int32{ 1, // 12: fairyring.pep.Msg.UpdateParams:output_type -> fairyring.pep.MsgUpdateParamsResponse 3, // 13: fairyring.pep.Msg.SubmitEncryptedTx:output_type -> fairyring.pep.MsgSubmitEncryptedTxResponse 5, // 14: fairyring.pep.Msg.SubmitGeneralEncryptedTx:output_type -> fairyring.pep.MsgSubmitGeneralEncryptedTxResponse - 7, // 15: fairyring.pep.Msg.CreateAggregatedKeyShare:output_type -> fairyring.pep.MsgCreateAggregatedKeyShareResponse + 7, // 15: fairyring.pep.Msg.SubmitDecryptionKey:output_type -> fairyring.pep.MsgSubmitDecryptionKeyResponse 9, // 16: fairyring.pep.Msg.RequestGeneralIdentity:output_type -> fairyring.pep.MsgRequestGeneralIdentityResponse 11, // 17: fairyring.pep.Msg.RequestGeneralDecryptionKey:output_type -> fairyring.pep.MsgRequestGeneralDecryptionKeyResponse 13, // 18: fairyring.pep.Msg.RequestPrivateIdentity:output_type -> fairyring.pep.MsgRequestPrivateIdentityResponse @@ -10155,7 +10154,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCreateAggregatedKeyShare); i { + switch v := v.(*MsgSubmitDecryptionKey); i { case 0: return &v.state case 1: @@ -10167,7 +10166,7 @@ func file_fairyring_pep_tx_proto_init() { } } file_fairyring_pep_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCreateAggregatedKeyShareResponse); i { + switch v := v.(*MsgSubmitDecryptionKeyResponse); i { case 0: return &v.state case 1: diff --git a/api/fairyring/pep/tx_grpc.pb.go b/api/fairyring/pep/tx_grpc.pb.go index 91a5dc43..69567965 100644 --- a/api/fairyring/pep/tx_grpc.pb.go +++ b/api/fairyring/pep/tx_grpc.pb.go @@ -22,7 +22,7 @@ const ( Msg_UpdateParams_FullMethodName = "/fairyring.pep.Msg/UpdateParams" Msg_SubmitEncryptedTx_FullMethodName = "/fairyring.pep.Msg/SubmitEncryptedTx" Msg_SubmitGeneralEncryptedTx_FullMethodName = "/fairyring.pep.Msg/SubmitGeneralEncryptedTx" - Msg_CreateAggregatedKeyShare_FullMethodName = "/fairyring.pep.Msg/CreateAggregatedKeyShare" + Msg_SubmitDecryptionKey_FullMethodName = "/fairyring.pep.Msg/SubmitDecryptionKey" Msg_RequestGeneralIdentity_FullMethodName = "/fairyring.pep.Msg/RequestGeneralIdentity" Msg_RequestGeneralDecryptionKey_FullMethodName = "/fairyring.pep.Msg/RequestGeneralDecryptionKey" Msg_RequestPrivateIdentity_FullMethodName = "/fairyring.pep.Msg/RequestPrivateIdentity" @@ -44,9 +44,9 @@ type MsgClient interface { // SubmitGeneralEncryptedTx defines an operation to submit an // encrypted transaction for a particular identity SubmitGeneralEncryptedTx(ctx context.Context, in *MsgSubmitGeneralEncryptedTx, opts ...grpc.CallOption) (*MsgSubmitGeneralEncryptedTxResponse, error) - // CreateAggregatedKeyShare defines an operation to submit an - // aggregated keyshare to a destination chain - CreateAggregatedKeyShare(ctx context.Context, in *MsgCreateAggregatedKeyShare, opts ...grpc.CallOption) (*MsgCreateAggregatedKeyShareResponse, error) + // SubmitDecryptionKey defines an operation to submit a + // decryption to a destination chain + SubmitDecryptionKey(ctx context.Context, in *MsgSubmitDecryptionKey, opts ...grpc.CallOption) (*MsgSubmitDecryptionKeyResponse, error) // RequestGeneralIdentity defines an operation to request the // creation of a new identity to which validators will be required // to submit keyshares @@ -106,9 +106,9 @@ func (c *msgClient) SubmitGeneralEncryptedTx(ctx context.Context, in *MsgSubmitG return out, nil } -func (c *msgClient) CreateAggregatedKeyShare(ctx context.Context, in *MsgCreateAggregatedKeyShare, opts ...grpc.CallOption) (*MsgCreateAggregatedKeyShareResponse, error) { - out := new(MsgCreateAggregatedKeyShareResponse) - err := c.cc.Invoke(ctx, Msg_CreateAggregatedKeyShare_FullMethodName, in, out, opts...) +func (c *msgClient) SubmitDecryptionKey(ctx context.Context, in *MsgSubmitDecryptionKey, opts ...grpc.CallOption) (*MsgSubmitDecryptionKeyResponse, error) { + out := new(MsgSubmitDecryptionKeyResponse) + err := c.cc.Invoke(ctx, Msg_SubmitDecryptionKey_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -182,9 +182,9 @@ type MsgServer interface { // SubmitGeneralEncryptedTx defines an operation to submit an // encrypted transaction for a particular identity SubmitGeneralEncryptedTx(context.Context, *MsgSubmitGeneralEncryptedTx) (*MsgSubmitGeneralEncryptedTxResponse, error) - // CreateAggregatedKeyShare defines an operation to submit an - // aggregated keyshare to a destination chain - CreateAggregatedKeyShare(context.Context, *MsgCreateAggregatedKeyShare) (*MsgCreateAggregatedKeyShareResponse, error) + // SubmitDecryptionKey defines an operation to submit a + // decryption to a destination chain + SubmitDecryptionKey(context.Context, *MsgSubmitDecryptionKey) (*MsgSubmitDecryptionKeyResponse, error) // RequestGeneralIdentity defines an operation to request the // creation of a new identity to which validators will be required // to submit keyshares @@ -223,8 +223,8 @@ func (UnimplementedMsgServer) SubmitEncryptedTx(context.Context, *MsgSubmitEncry func (UnimplementedMsgServer) SubmitGeneralEncryptedTx(context.Context, *MsgSubmitGeneralEncryptedTx) (*MsgSubmitGeneralEncryptedTxResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SubmitGeneralEncryptedTx not implemented") } -func (UnimplementedMsgServer) CreateAggregatedKeyShare(context.Context, *MsgCreateAggregatedKeyShare) (*MsgCreateAggregatedKeyShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateAggregatedKeyShare not implemented") +func (UnimplementedMsgServer) SubmitDecryptionKey(context.Context, *MsgSubmitDecryptionKey) (*MsgSubmitDecryptionKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SubmitDecryptionKey not implemented") } func (UnimplementedMsgServer) RequestGeneralIdentity(context.Context, *MsgRequestGeneralIdentity) (*MsgRequestGeneralIdentityResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RequestGeneralIdentity not implemented") @@ -311,20 +311,20 @@ func _Msg_SubmitGeneralEncryptedTx_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } -func _Msg_CreateAggregatedKeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreateAggregatedKeyShare) +func _Msg_SubmitDecryptionKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSubmitDecryptionKey) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).CreateAggregatedKeyShare(ctx, in) + return srv.(MsgServer).SubmitDecryptionKey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Msg_CreateAggregatedKeyShare_FullMethodName, + FullMethod: Msg_SubmitDecryptionKey_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateAggregatedKeyShare(ctx, req.(*MsgCreateAggregatedKeyShare)) + return srv.(MsgServer).SubmitDecryptionKey(ctx, req.(*MsgSubmitDecryptionKey)) } return interceptor(ctx, in, info, handler) } @@ -457,8 +457,8 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ Handler: _Msg_SubmitGeneralEncryptedTx_Handler, }, { - MethodName: "CreateAggregatedKeyShare", - Handler: _Msg_CreateAggregatedKeyShare_Handler, + MethodName: "SubmitDecryptionKey", + Handler: _Msg_SubmitDecryptionKey_Handler, }, { MethodName: "RequestGeneralIdentity", diff --git a/cmd/fairyringd/cmd/aggregator/private_keyshare_aggregator.go b/cmd/fairyringd/cmd/aggregator/private_keyshare_aggregator.go index d94a26e5..4dfebb22 100644 --- a/cmd/fairyringd/cmd/aggregator/private_keyshare_aggregator.go +++ b/cmd/fairyringd/cmd/aggregator/private_keyshare_aggregator.go @@ -62,9 +62,9 @@ func AggregateCmd() *cobra.Command { queryClient := types.NewQueryClient(clientCtx) - res, err := queryClient.PrivateKeyshareReq( + res, err := queryClient.PrivateIdentity( context.Background(), - &types.QueryPrivateKeyshareReqRequest{ + &types.QueryPrivateIdentityRequest{ ReqId: identity, }, ) @@ -72,13 +72,13 @@ func AggregateCmd() *cobra.Command { return err } - if len(res.EncryptedKeyshares) == 0 { + if len(res.PrivateDecryptionKeys) == 0 { return errors.New("no encrypted keyshares found for request") } found := false - for _, requester := range res.EncryptedKeyshares { + for _, requester := range res.PrivateDecryptionKeys { if requester.Requester == reqAddr { found = true for _, val := range requester.PrivateKeyshares { diff --git a/cmd/fairyringd/cmd/encrypter/encrypter.go b/cmd/fairyringd/cmd/encrypter/encrypter.go index 4b046696..569f1564 100644 --- a/cmd/fairyringd/cmd/encrypter/encrypter.go +++ b/cmd/fairyringd/cmd/encrypter/encrypter.go @@ -30,16 +30,16 @@ func EncryptCmd() *cobra.Command { if pubkey == "" { queryClient := types.NewQueryClient(clientCtx) - res, err := queryClient.PubKey(context.Background(), &types.QueryPubKeyRequest{}) + res, err := queryClient.Pubkey(context.Background(), &types.QueryPubkeyRequest{}) if err != nil { return err } - if len(res.ActivePubKey.PublicKey) == 0 { + if len(res.ActivePubkey.PublicKey) == 0 { return errors.New("active public key not found") } - pubkey = res.ActivePubKey.PublicKey + pubkey = res.ActivePubkey.PublicKey } suite := bls.NewBLS12381Suite() diff --git a/go.mod b/go.mod index 9eefcaa8..463126a2 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,8 @@ go 1.22.4 replace ( cosmossdk.io/api => github.com/Fairblock/cosmossdk-api v0.7.5 github.com/CosmWasm/wasmd => github.com/Fairblock/wasmd v0.50.6-fairyring - github.com/cosmos/cosmos-sdk => github.com/Fairblock/cosmos-sdk v0.50.8-fairyring + // github.com/cosmos/cosmos-sdk => github.com/Fairblock/cosmos-sdk v0.50.8-fairyring + github.com/cosmos/cosmos-sdk => ../cosmos-sdk // fix upstream GHSA-h395-qcrw-5vmq vulnerability. github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.7.0 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 diff --git a/go.sum b/go.sum index c91347ba..92a9b17f 100644 --- a/go.sum +++ b/go.sum @@ -239,8 +239,6 @@ github.com/DataDog/zstd v1.5.5 h1:oWf5W7GtOLgp6bciQYDmhHHjdhYkALu6S/5Ni9ZgSvQ= github.com/DataDog/zstd v1.5.5/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= github.com/FairBlock/DistributedIBE v0.0.0-20231211202607-d457df6869db h1:wmRvJRPDm8nXZzRjzgPzbhGHhEX5TbXUBiZkAieUNMA= github.com/FairBlock/DistributedIBE v0.0.0-20231211202607-d457df6869db/go.mod h1:qXpLBzZiSdWoweJkE/lAIPedf6GOl7WsYM8rxrZCCDk= -github.com/Fairblock/cosmos-sdk v0.50.8-fairyring h1:b/nFqDT2lHXtam2KdN0s9RLVsYHDFlvnSXRukEV3LfI= -github.com/Fairblock/cosmos-sdk v0.50.8-fairyring/go.mod h1:ep1ZTLXL8h62Xi6l6lJdto/Xt8CYlP+GW9MudPCT05w= github.com/Fairblock/cosmossdk-api v0.7.5 h1:2NON/rKYquaTpISPn5sOZTP80a2moKg7YN+HI7wi5Wk= github.com/Fairblock/cosmossdk-api v0.7.5/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= github.com/Fairblock/wasmd v0.50.6-fairyring h1:P5bEeEQbyLew8dD/kXP1JSjBB6ersyhORcnuYQp3+nI= diff --git a/lanes/keyshare/abci.go b/lanes/keyshare/abci.go index 90e92089..7b84d0fd 100644 --- a/lanes/keyshare/abci.go +++ b/lanes/keyshare/abci.go @@ -67,7 +67,7 @@ func (h *ProposalHandler) PrepareLaneHandler() base.PrepareLaneHandler { } // Build the partial proposal by selecting the keyshare transaction - keyshareInfo, err := h.factory.GetKeyShareInfo(tmpKeyshareTx) + keyshareInfo, err := h.factory.GetDecryptionKeyInfo(tmpKeyshareTx) if keyshareInfo == nil || err != nil { txsToRemove = append(txsToRemove, tmpKeyshareTx) continue @@ -114,7 +114,7 @@ func (h *ProposalHandler) ProcessLaneHandler() base.ProcessLaneHandler { } } } else { - _, err := h.factory.GetKeyShareInfo(keyshareTx) + _, err := h.factory.GetDecryptionKeyInfo(keyshareTx) if err != nil { return nil, nil, fmt.Errorf("failed to get keyshare info for lane %s: %w", h.lane.Name(), err) } @@ -134,7 +134,7 @@ func (h *ProposalHandler) ProcessLaneHandler() base.ProcessLaneHandler { // VerifyTx will verify that the keyshare transaction is valid. // It will return an error if the transaction is invalid. func (h *ProposalHandler) VerifyTx(ctx sdk.Context, keyshareTx sdk.Tx) error { - _, err := h.factory.GetKeyShareInfo(keyshareTx) + _, err := h.factory.GetDecryptionKeyInfo(keyshareTx) if err != nil { return fmt.Errorf("failed to get keyshare info: %w", err) } diff --git a/lanes/keyshare/factory.go b/lanes/keyshare/factory.go index ddf50739..30434137 100644 --- a/lanes/keyshare/factory.go +++ b/lanes/keyshare/factory.go @@ -19,8 +19,8 @@ type ( // IsKeyshareTx defines a function that checks if a transaction qualifies as AggregateKeyshare Tx. IsKeyshareTx(tx sdk.Tx) bool - // GetKeyShareInfo defines a function that returns the Aggregated KeyShare info from the Tx - GetKeyShareInfo(tx sdk.Tx) (*peptypes.AggregatedKeyShare, error) + // GetDecryptionKeyInfo defines a function that returns the Aggregated KeyShare info from the Tx + GetDecryptionKeyInfo(tx sdk.Tx) (*peptypes.DecryptionKey, error) // MatchHandler defines a function that checks if a transaction matches the keyshare lane. MatchHandler() base.MatchHandler @@ -59,38 +59,38 @@ func (config *DefaultKeyshareFactory) IsKeyshareTx(tx sdk.Tx) bool { } switch msgs[0].(type) { - case *peptypes.MsgCreateAggregatedKeyShare: + case *peptypes.MsgSubmitDecryptionKey: return true } return false } -func (config *DefaultKeyshareFactory) GetKeyShareInfo(tx sdk.Tx) (*peptypes.AggregatedKeyShare, error) { - msg, err := GetAggregateKeyshareMsgFromTx(tx) +func (config *DefaultKeyshareFactory) GetDecryptionKeyInfo(tx sdk.Tx) (*peptypes.DecryptionKey, error) { + msg, err := GetSubmitDecryptionKeyMsgFromTx(tx) if err != nil { return nil, err } - return &peptypes.AggregatedKeyShare{ + return &peptypes.DecryptionKey{ Height: msg.Height, Data: msg.Data, Creator: msg.Creator, }, nil } -func GetAggregateKeyshareMsgFromTx(tx sdk.Tx) (*peptypes.MsgCreateAggregatedKeyShare, error) { +func GetSubmitDecryptionKeyMsgFromTx(tx sdk.Tx) (*peptypes.MsgSubmitDecryptionKey, error) { msgs := tx.GetMsgs() if len(msgs) != 1 { - return nil, errors.New("invalid MsgCreateAggregatedKeyShare transaction") + return nil, errors.New("invalid MsgSubmitDecryptionKey transaction") } - t, ok := msgs[0].(*peptypes.MsgCreateAggregatedKeyShare) + t, ok := msgs[0].(*peptypes.MsgSubmitDecryptionKey) if ok { return t, nil } - return nil, errors.New("invalid MsgCreateAggregatedKeyShare transaction") + return nil, errors.New("invalid MsgSubmitDecryptionKey transaction") } // GetTimeoutHeight returns the timeout height of the transaction. @@ -106,7 +106,7 @@ func (config *DefaultKeyshareFactory) GetTimeoutHeight(tx sdk.Tx) (uint64, error // MatchHandler defines a default function that checks if a transaction matches the keyshare lane. func (config *DefaultKeyshareFactory) MatchHandler() base.MatchHandler { return func(ctx sdk.Context, tx sdk.Tx) bool { - ksInfo, err := config.GetKeyShareInfo(tx) + ksInfo, err := config.GetDecryptionKeyInfo(tx) return ksInfo != nil && err == nil } } diff --git a/lanes/keyshare/mempool.go b/lanes/keyshare/mempool.go index d7eb6a63..8f292139 100644 --- a/lanes/keyshare/mempool.go +++ b/lanes/keyshare/mempool.go @@ -14,7 +14,7 @@ import ( func TxPriority(config Factory) base.TxPriority[string] { return base.TxPriority[string]{ GetTxPriority: func(goCtx context.Context, tx sdk.Tx) string { - ksInfo, err := config.GetKeyShareInfo(tx) + ksInfo, err := config.GetDecryptionKeyInfo(tx) if err != nil { panic(err) } diff --git a/proto/fairyring/keyshare/query.proto b/proto/fairyring/keyshare/query.proto index de63ed8a..0a36d2be 100644 --- a/proto/fairyring/keyshare/query.proto +++ b/proto/fairyring/keyshare/query.proto @@ -59,7 +59,7 @@ service Query { } // Queries the public keys - rpc PubKey(QueryPubkeyRequest) returns (QueryPubkeyResponse) { + rpc Pubkey(QueryPubkeyRequest) returns (QueryPubkeyResponse) { option (google.api.http).get = "/fairyring/keyshare/pubkey"; } diff --git a/proto/fairyring/pep/query.proto b/proto/fairyring/pep/query.proto index b3769ce5..7d147fa6 100644 --- a/proto/fairyring/pep/query.proto +++ b/proto/fairyring/pep/query.proto @@ -51,7 +51,7 @@ service Query { } // Queries the public keys - rpc PubKey(QueryPubkeyRequest) returns (QueryPubkeyResponse) { + rpc Pubkey(QueryPubkeyRequest) returns (QueryPubkeyResponse) { option (google.api.http).get = "/fairyring/pep/pubkey"; } diff --git a/testutil/random/pubkey.go b/testutil/random/pubkey.go index 32bc3b15..9334921d 100644 --- a/testutil/random/pubkey.go +++ b/testutil/random/pubkey.go @@ -3,14 +3,15 @@ package random import ( "encoding/base64" "encoding/hex" + "math" + "math/big" + distIBE "github.com/FairBlock/DistributedIBE" "github.com/Fairblock/fairyring/testutil/sample" "github.com/Fairblock/fairyring/x/keyshare/types" dcrdSecp256k1 "github.com/decred/dcrd/dcrec/secp256k1" "github.com/drand/kyber" bls "github.com/drand/kyber-bls12381" - "math" - "math/big" ) type GeneratedShare struct { @@ -24,7 +25,7 @@ type GeneratedShare struct { type GenerateResult struct { GeneratedShare []*GeneratedShare - KeyShareEncryptedKeyShares []*types.EncryptedKeyShare + KeyShareEncryptedKeyShares []*types.EncryptedKeyshare Commitments []string MasterPublicKey string } @@ -85,12 +86,12 @@ func GeneratePubKeyAndShares(totalNumberOfValidator uint32) (*GenerateResult, er n := len(sharesList) - encShares := make([]*types.EncryptedKeyShare, n) + encShares := make([]*types.EncryptedKeyshare, n) for _, v := range sharesList { indexByte, _ := hex.DecodeString(v.Index.String()) indexInt := big.NewInt(0).SetBytes(indexByte).Uint64() - encShares[indexInt-1] = &types.EncryptedKeyShare{ + encShares[indexInt-1] = &types.EncryptedKeyshare{ Data: v.EncShare, Validator: v.ValidatorAddress, } diff --git a/x/common/types/shared_types.pb.go b/x/common/types/shared_types.pb.go index 164e4e8a..0f693952 100644 --- a/x/common/types/shared_types.pb.go +++ b/x/common/types/shared_types.pb.go @@ -33,7 +33,6 @@ type RequestDecryptionKey struct { // id can either be a request id or a proposal id // // Types that are valid to be assigned to Id: - // // *RequestDecryptionKey_ProposalId // *RequestDecryptionKey_RequestId Id isRequestDecryptionKey_Id `protobuf_oneof:"id"` @@ -187,7 +186,7 @@ func (m *RequestDecryptionKeyResponse) GetPubkey() string { // GetDecryptionKey defines a struct for the data payload type GetDecryptionKey struct { - // id can either be a rwquest id or a proposal id + // id can either be a request id or a proposal id // // Types that are valid to be assigned to Id: // @@ -737,45 +736,45 @@ func init() { } var fileDescriptor_b708507d1b3951ff = []byte{ - // 601 bytes of a gzipped FileDescriptorProto + // 600 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x54, 0x4f, 0x4f, 0xd4, 0x40, 0x14, 0xdf, 0x59, 0x36, 0x28, 0x6f, 0x13, 0xc1, 0x86, 0x60, 0x5d, 0xa1, 0x8b, 0xeb, 0x85, 0x98, 0xd8, 0x26, 0x78, 0xd1, 0xa3, 0x04, 0x05, 0xc2, 0x05, 0x7b, 0xc0, 0xc4, 0xcb, 0xa6, 0xed, 0x3c, 0xca, 0x84, 0xd2, 0x19, 0xa7, 0x53, 0xb2, 0xfd, 0x10, 0x1a, 0x13, 0x2f, 0x7e, 0x20, 0x0f, 0x1e, - 0x39, 0x7a, 0xd3, 0xc0, 0x17, 0x31, 0x6d, 0xa7, 0xdd, 0x6d, 0xd9, 0x8d, 0x27, 0x6f, 0x7d, 0x7f, - 0x7e, 0xf3, 0xde, 0xef, 0xf7, 0x5e, 0x1f, 0x3c, 0x3b, 0xf3, 0x98, 0xcc, 0x24, 0x8b, 0x43, 0x27, - 0xe0, 0x97, 0x97, 0x3c, 0x76, 0x92, 0x73, 0x4f, 0x22, 0x1d, 0xab, 0x4c, 0x60, 0x62, 0x0b, 0xc9, - 0x15, 0x37, 0xd6, 0xea, 0x24, 0xbb, 0x4c, 0x1a, 0x58, 0x21, 0xe7, 0x61, 0x84, 0x4e, 0x11, 0xf7, - 0xd3, 0x33, 0x87, 0xa6, 0xd2, 0x53, 0x8c, 0xc7, 0x25, 0x62, 0xb0, 0x1e, 0xf2, 0x90, 0x17, 0x9f, - 0x4e, 0xfe, 0x55, 0x7a, 0x47, 0x3f, 0x08, 0xac, 0xbb, 0xf8, 0x29, 0xc5, 0x44, 0xed, 0x63, 0x20, - 0x33, 0x91, 0x23, 0x8e, 0x31, 0x33, 0x4c, 0xb8, 0x17, 0x48, 0xf4, 0x14, 0x97, 0x26, 0xd9, 0x26, - 0x3b, 0x2b, 0x6e, 0x65, 0x1a, 0x4f, 0xa1, 0x2f, 0x24, 0x17, 0x3c, 0xf1, 0xa2, 0x31, 0xa3, 0x66, - 0x37, 0x8f, 0x1e, 0x76, 0x5c, 0xa8, 0x9c, 0x47, 0xd4, 0x18, 0x02, 0xc8, 0xf2, 0xd1, 0x3c, 0x63, - 0x49, 0x67, 0xac, 0x68, 0xdf, 0x11, 0x35, 0x0e, 0x61, 0x15, 0x13, 0xc5, 0x2e, 0x3d, 0x85, 0x74, - 0x4c, 0x31, 0xf2, 0x32, 0xb3, 0xb7, 0x4d, 0x76, 0xfa, 0xbb, 0x8f, 0xed, 0x92, 0x86, 0x5d, 0xd1, - 0xb0, 0xf7, 0x35, 0x8d, 0xbd, 0xde, 0xf7, 0xdf, 0x43, 0xe2, 0x3e, 0xa8, 0x71, 0xfb, 0x39, 0x6c, - 0xaf, 0x07, 0x5d, 0x46, 0x47, 0x2e, 0x6c, 0xce, 0x63, 0xe1, 0x62, 0x22, 0x78, 0x9c, 0xa0, 0x31, - 0x80, 0xfb, 0x8c, 0x62, 0xac, 0x98, 0xca, 0x34, 0x9d, 0xda, 0x36, 0x36, 0x60, 0x59, 0xa4, 0xfe, - 0x05, 0x66, 0x25, 0x15, 0x57, 0x5b, 0xa3, 0x09, 0xac, 0x1d, 0x60, 0x4b, 0x95, 0x16, 0x77, 0xf2, - 0x4f, 0xee, 0xdd, 0xbb, 0xdc, 0x67, 0x7b, 0x59, 0x6a, 0xf6, 0xa2, 0xd9, 0x0c, 0xc0, 0x6c, 0x57, - 0xae, 0x98, 0x8c, 0xbe, 0x11, 0x78, 0x74, 0x80, 0xea, 0x44, 0xb2, 0x2b, 0x4f, 0x61, 0xb3, 0xbb, - 0xad, 0x46, 0xe9, 0x92, 0xe7, 0x82, 0xc2, 0xdd, 0x96, 0x08, 0x9b, 0x50, 0x25, 0xa2, 0xd4, 0x5d, - 0x4d, 0x1d, 0xc6, 0x10, 0xfa, 0x09, 0x06, 0x62, 0xac, 0x75, 0xea, 0x15, 0x71, 0xc8, 0x5d, 0x27, - 0xa5, 0x56, 0xaf, 0x61, 0xb8, 0xa0, 0xa9, 0x7a, 0x04, 0x53, 0x99, 0x49, 0x43, 0x66, 0x1f, 0x56, - 0xdf, 0x04, 0x8a, 0x5d, 0xe1, 0x49, 0xea, 0x47, 0x2c, 0xd0, 0x3c, 0x44, 0x61, 0x8c, 0xa7, 0xe9, - 0x2b, 0xa2, 0x0e, 0xcf, 0xac, 0x66, 0xb7, 0xb9, 0x9a, 0x1b, 0xb0, 0x8c, 0x13, 0xc1, 0x64, 0x29, - 0x6c, 0xcf, 0xd5, 0x56, 0x5e, 0xe3, 0x7d, 0x8a, 0x29, 0xd2, 0xff, 0x58, 0xe3, 0x14, 0x9e, 0xe8, - 0x15, 0x9c, 0x3b, 0x9b, 0xc5, 0xff, 0xd3, 0xd6, 0xdd, 0x85, 0x99, 0x99, 0xda, 0xe8, 0x33, 0x81, - 0xf5, 0xb9, 0x2f, 0x36, 0x46, 0x46, 0xda, 0x23, 0xfb, 0x00, 0x0f, 0x45, 0x89, 0xca, 0x09, 0x16, - 0x17, 0x24, 0x31, 0xbb, 0xdb, 0x4b, 0x3b, 0xfd, 0xdd, 0xe7, 0x76, 0xfb, 0x78, 0xd8, 0x47, 0x31, - 0xc5, 0x09, 0xd2, 0xb7, 0x71, 0x51, 0x00, 0xe9, 0xb1, 0x86, 0xb8, 0x6b, 0xfa, 0x91, 0xca, 0x91, - 0x8c, 0xbe, 0x10, 0x30, 0x17, 0xa5, 0x1b, 0xaf, 0xc0, 0xc4, 0xca, 0x59, 0xd7, 0x1d, 0x5f, 0x79, - 0x51, 0x8a, 0xba, 0xc5, 0x0d, 0x6c, 0x83, 0x4e, 0xf3, 0xe8, 0x02, 0x24, 0xcb, 0x0b, 0x15, 0x9a, - 0xf4, 0xe6, 0x20, 0x8b, 0x36, 0xf6, 0x0e, 0x7e, 0xde, 0x58, 0xe4, 0xfa, 0xc6, 0x22, 0x7f, 0x6e, - 0x2c, 0xf2, 0xf5, 0xd6, 0xea, 0x5c, 0xdf, 0x5a, 0x9d, 0x5f, 0xb7, 0x56, 0xe7, 0xe3, 0x8b, 0x90, - 0xa9, 0xf3, 0xd4, 0xcf, 0x49, 0x3a, 0xef, 0x3c, 0x26, 0xfd, 0x88, 0x07, 0x17, 0xce, 0xf4, 0xbc, - 0x4e, 0xaa, 0x03, 0x5b, 0x5c, 0x56, 0x7f, 0xb9, 0xb8, 0x39, 0x2f, 0xff, 0x06, 0x00, 0x00, 0xff, - 0xff, 0x8e, 0x1d, 0x00, 0xe3, 0x81, 0x05, 0x00, 0x00, + 0x39, 0x7a, 0xd3, 0xc0, 0x17, 0x31, 0x6d, 0xa7, 0xdd, 0x6d, 0xd9, 0x8d, 0x27, 0x6f, 0x7d, 0xff, + 0xe6, 0xfd, 0x7e, 0xbf, 0xf7, 0xfa, 0xe0, 0xd9, 0x99, 0xc7, 0x64, 0x26, 0x59, 0x1c, 0x3a, 0x01, + 0xbf, 0xbc, 0xe4, 0xb1, 0x93, 0x9c, 0x7b, 0x12, 0xe9, 0x58, 0x65, 0x02, 0x13, 0x5b, 0x48, 0xae, + 0xb8, 0xb1, 0x56, 0x27, 0xd9, 0x65, 0xd2, 0x60, 0x3d, 0xe4, 0x21, 0x2f, 0x82, 0x4e, 0xfe, 0x55, + 0xe6, 0x0d, 0xac, 0x90, 0xf3, 0x30, 0x42, 0xa7, 0xb0, 0xfc, 0xf4, 0xcc, 0xa1, 0xa9, 0xf4, 0x14, + 0xe3, 0x71, 0x19, 0x1f, 0xfd, 0x20, 0xb0, 0xee, 0xe2, 0xa7, 0x14, 0x13, 0xb5, 0x8f, 0x81, 0xcc, + 0x44, 0x1e, 0x3b, 0xc6, 0xcc, 0x30, 0xe1, 0x5e, 0x20, 0xd1, 0x53, 0x5c, 0x9a, 0x64, 0x9b, 0xec, + 0xac, 0xb8, 0x95, 0x69, 0x3c, 0x85, 0xbe, 0x90, 0x5c, 0xf0, 0xc4, 0x8b, 0xc6, 0x8c, 0x9a, 0xdd, + 0x3c, 0x7a, 0xd8, 0x71, 0xa1, 0x72, 0x1e, 0x51, 0x63, 0x08, 0x20, 0xcb, 0x47, 0xf3, 0x8c, 0x25, + 0x9d, 0xb1, 0xa2, 0x7d, 0x47, 0xd4, 0x38, 0x84, 0x55, 0x4c, 0x14, 0xbb, 0xf4, 0x14, 0xd2, 0x31, + 0xc5, 0xc8, 0xcb, 0xcc, 0xde, 0x36, 0xd9, 0xe9, 0xef, 0x3e, 0xb6, 0x4b, 0xc0, 0x76, 0x05, 0xd8, + 0xde, 0xd7, 0x80, 0xf7, 0x7a, 0xdf, 0x7f, 0x0f, 0x89, 0xfb, 0xa0, 0xae, 0xdb, 0xcf, 0xcb, 0xf6, + 0x7a, 0xd0, 0x65, 0x74, 0xe4, 0xc2, 0xe6, 0x3c, 0x16, 0x2e, 0x26, 0x82, 0xc7, 0x09, 0x1a, 0x03, + 0xb8, 0xcf, 0x28, 0xc6, 0x8a, 0xa9, 0x4c, 0xd3, 0xa9, 0x6d, 0x63, 0x03, 0x96, 0x45, 0xea, 0x5f, + 0x60, 0x56, 0x52, 0x71, 0xb5, 0x35, 0x9a, 0xc0, 0xda, 0x01, 0xb6, 0x54, 0x69, 0x71, 0x27, 0xff, + 0xe4, 0xde, 0xbd, 0xcb, 0x7d, 0x16, 0xcb, 0x52, 0x13, 0x8b, 0x66, 0x33, 0x00, 0xb3, 0xdd, 0xb9, + 0x62, 0x32, 0xfa, 0x46, 0xe0, 0xd1, 0x01, 0xaa, 0x13, 0xc9, 0xae, 0x3c, 0x85, 0x4d, 0x74, 0x5b, + 0x8d, 0xd6, 0x25, 0xcf, 0x05, 0x8d, 0xbb, 0x2d, 0x11, 0x36, 0xa1, 0x4a, 0x44, 0xa9, 0x51, 0x4d, + 0x1d, 0xc6, 0x10, 0xfa, 0x09, 0x06, 0x62, 0xac, 0x75, 0xea, 0x15, 0x71, 0xc8, 0x5d, 0x27, 0xa5, + 0x56, 0xaf, 0x61, 0xb8, 0x00, 0x54, 0x3d, 0x82, 0xa9, 0xcc, 0xa4, 0x21, 0xb3, 0x0f, 0xab, 0x6f, + 0x02, 0xc5, 0xae, 0xf0, 0x24, 0xf5, 0x23, 0x16, 0x68, 0x1e, 0xa2, 0x30, 0xc6, 0xd3, 0xf4, 0x15, + 0x51, 0x87, 0x67, 0x56, 0xb3, 0xdb, 0x5c, 0xcd, 0x0d, 0x58, 0xc6, 0x89, 0x60, 0xb2, 0x14, 0xb6, + 0xe7, 0x6a, 0x2b, 0xef, 0xf1, 0x3e, 0xc5, 0x14, 0xe9, 0x7f, 0xec, 0x71, 0x0a, 0x4f, 0xf4, 0x0a, + 0xce, 0x9d, 0xcd, 0xe2, 0xff, 0x69, 0xeb, 0xee, 0xc2, 0xcc, 0x4c, 0x6d, 0xf4, 0x99, 0xc0, 0xfa, + 0xdc, 0x17, 0x1b, 0x23, 0x23, 0xed, 0x91, 0x7d, 0x80, 0x87, 0xa2, 0xac, 0xca, 0x09, 0x16, 0x17, + 0x24, 0x31, 0xbb, 0xdb, 0x4b, 0x3b, 0xfd, 0xdd, 0xe7, 0x76, 0xfb, 0x78, 0xd8, 0x47, 0x31, 0xc5, + 0x09, 0xd2, 0xb7, 0x71, 0xd1, 0x00, 0xe9, 0xb1, 0x2e, 0x71, 0xd7, 0xf4, 0x23, 0x95, 0x23, 0x19, + 0x7d, 0x21, 0x60, 0x2e, 0x4a, 0x37, 0x5e, 0x81, 0x89, 0x95, 0xb3, 0xee, 0x3b, 0xbe, 0xf2, 0xa2, + 0x14, 0x35, 0xc4, 0x0d, 0x6c, 0x17, 0x9d, 0xe6, 0xd1, 0x05, 0x95, 0x2c, 0x6f, 0x54, 0x68, 0xd2, + 0x9b, 0x53, 0x59, 0xc0, 0xd8, 0x3b, 0xf8, 0x79, 0x63, 0x91, 0xeb, 0x1b, 0x8b, 0xfc, 0xb9, 0xb1, + 0xc8, 0xd7, 0x5b, 0xab, 0x73, 0x7d, 0x6b, 0x75, 0x7e, 0xdd, 0x5a, 0x9d, 0x8f, 0x2f, 0x42, 0xa6, + 0xce, 0x53, 0x3f, 0x27, 0xe9, 0xbc, 0xf3, 0x98, 0xf4, 0x23, 0x1e, 0x5c, 0x38, 0xd3, 0xf3, 0x3a, + 0xa9, 0x0e, 0x6c, 0x71, 0x59, 0xfd, 0xe5, 0xe2, 0xe6, 0xbc, 0xfc, 0x1b, 0x00, 0x00, 0xff, 0xff, + 0x8d, 0xbe, 0x14, 0xca, 0x81, 0x05, 0x00, 0x00, } func (m *RequestDecryptionKey) Marshal() (dAtA []byte, err error) { diff --git a/x/keyshare/client/cli/tx.go b/x/keyshare/client/cli/tx.go index e18c585b..7b161dab 100644 --- a/x/keyshare/client/cli/tx.go +++ b/x/keyshare/client/cli/tx.go @@ -32,9 +32,8 @@ func GetTxCmd() *cobra.Command { cmd.AddCommand(CmdCreateAuthorizedAddress()) cmd.AddCommand(CmdUpdateAuthorizedAddress()) cmd.AddCommand(CmdDeleteAuthorizedAddress()) - - cmd.AddCommand(CmdCreateGeneralKeyShare()) - cmd.AddCommand(CmdOverrideLatestPubKey()) + cmd.AddCommand(CmdSubmitGeneralKeyshare()) + cmd.AddCommand(CmdOverrideLatestPubkey()) cmd.AddCommand(CmdSubmitEncryptedKeyShare()) // this line is used by starport scaffolding # 1 diff --git a/x/keyshare/client/cli/tx_general_key_share.go b/x/keyshare/client/cli/tx_general_key_share.go index 86809e36..75270a79 100644 --- a/x/keyshare/client/cli/tx_general_key_share.go +++ b/x/keyshare/client/cli/tx_general_key_share.go @@ -9,10 +9,10 @@ import ( "github.com/spf13/cobra" ) -func CmdCreateGeneralKeyShare() *cobra.Command { +func CmdSubmitGeneralKeyshare() *cobra.Command { cmd := &cobra.Command{ - Use: "create-general-key-share [id-type] [id-value] [key-share] [key-share-index]", - Short: "Create a new GeneralKeyShare", + Use: "submit-general-keyshare [id-type] [id-value] [keyshare] [keyshare-index]", + Short: "submit a new GeneralKeyShare", Args: cobra.ExactArgs(4), RunE: func(cmd *cobra.Command, args []string) (err error) { // Get indexes @@ -31,7 +31,7 @@ func CmdCreateGeneralKeyShare() *cobra.Command { return err } - msg := types.NewMsgCreateGeneralKeyShare( + msg := types.NewMsgSubmitGeneralKeyshare( clientCtx.GetFromAddress().String(), indexIdType, indexIdValue, diff --git a/x/keyshare/client/cli/tx_latest_pub_key.go b/x/keyshare/client/cli/tx_latest_pub_key.go index e3eb54df..7a85cd34 100644 --- a/x/keyshare/client/cli/tx_latest_pub_key.go +++ b/x/keyshare/client/cli/tx_latest_pub_key.go @@ -15,7 +15,7 @@ import ( func CmdCreateLatestPubKey() *cobra.Command { cmd := &cobra.Command{ - Use: "create-latest-pub-key [public-key] [commitments] [number-of-validators] [encrypted-key-shares]", + Use: "create-latest-pubkey [public-key] [commitments] [number-of-validators] [encrypted-keyshares]", Short: "Create a latest public key", Args: cobra.ExactArgs(4), RunE: func(cmd *cobra.Command, args []string) (err error) { @@ -31,7 +31,7 @@ func CmdCreateLatestPubKey() *cobra.Command { return err } - encryptedShares := make([]*types.EncryptedKeyShare, numberOfValidators) + encryptedShares := make([]*types.EncryptedKeyshare, numberOfValidators) if err := json.Unmarshal([]byte(args[3]), &encryptedShares); err != nil { return err diff --git a/x/keyshare/client/cli/tx_override_pub_key.go b/x/keyshare/client/cli/tx_override_pub_key.go index 5e836377..903176c7 100644 --- a/x/keyshare/client/cli/tx_override_pub_key.go +++ b/x/keyshare/client/cli/tx_override_pub_key.go @@ -13,9 +13,9 @@ import ( "github.com/spf13/cobra" ) -func CmdOverrideLatestPubKey() *cobra.Command { +func CmdOverrideLatestPubkey() *cobra.Command { cmd := &cobra.Command{ - Use: "override-latest-pub-key [public-key] [commitments] [number-of-validators] [encrypted-key-shares]", + Use: "override-latest-pubkey [public-key] [commitments] [number-of-validators] [encrypted-keyshares]", Short: "Override a latest public key", Args: cobra.ExactArgs(4), RunE: func(cmd *cobra.Command, args []string) (err error) { @@ -31,7 +31,7 @@ func CmdOverrideLatestPubKey() *cobra.Command { return err } - encryptedShares := make([]*types.EncryptedKeyShare, numberOfValidators) + encryptedShares := make([]*types.EncryptedKeyshare, numberOfValidators) if err := json.Unmarshal([]byte(args[3]), &encryptedShares); err != nil { return err diff --git a/x/keyshare/keeper/aggregated_key_share.go b/x/keyshare/keeper/aggregated_key_share.go index c49d802d..0fe75609 100644 --- a/x/keyshare/keeper/aggregated_key_share.go +++ b/x/keyshare/keeper/aggregated_key_share.go @@ -12,7 +12,7 @@ import ( ) // SetAggregatedKeyShare set a specific aggregatedKeyShare in the store from its index -func (k Keeper) SetAggregatedKeyShare(ctx sdk.Context, aggregatedKeyShare types.AggregatedKeyShare) { +func (k Keeper) SetAggregatedKeyShare(ctx sdk.Context, aggregatedKeyShare types.DecryptionKey) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.AggregatedKeyShareKeyPrefix)) @@ -27,7 +27,7 @@ func (k Keeper) GetAggregatedKeyShare( ctx sdk.Context, height uint64, -) (val types.AggregatedKeyShare, found bool) { +) (val types.DecryptionKey, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.AggregatedKeyShareKeyPrefix)) @@ -57,7 +57,7 @@ func (k Keeper) RemoveAggregatedKeyShare( } // GetAllAggregatedKeyShare returns all aggregatedKeyShare -func (k Keeper) GetAllAggregatedKeyShare(ctx sdk.Context) (list []types.AggregatedKeyShare) { +func (k Keeper) GetAllAggregatedKeyShare(ctx sdk.Context) (list []types.DecryptionKey) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.AggregatedKeyShareKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) @@ -65,7 +65,7 @@ func (k Keeper) GetAllAggregatedKeyShare(ctx sdk.Context) (list []types.Aggregat defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - var val types.AggregatedKeyShare + var val types.DecryptionKey k.cdc.MustUnmarshal(iterator.Value(), &val) list = append(list, val) } diff --git a/x/keyshare/keeper/aggregated_key_share_request.go b/x/keyshare/keeper/aggregated_key_share_request.go index 598b3fe6..56b16096 100644 --- a/x/keyshare/keeper/aggregated_key_share_request.go +++ b/x/keyshare/keeper/aggregated_key_share_request.go @@ -11,9 +11,9 @@ import ( ) // SetKeyShareRequest set a specific keyShare request in the store by its index -func (k Keeper) SetKeyShareRequest(ctx context.Context, KeyShareRequest types.KeyShareRequest) { +func (k Keeper) SetKeyShareRequest(ctx context.Context, KeyShareRequest types.DecryptionKeyRequest) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.KeyShareRequestKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DecryptionKeyRequestKeyPrefix)) key := []byte(KeyShareRequest.Identity) b := k.cdc.MustMarshal(&KeyShareRequest) store.Set(key, b) @@ -24,9 +24,9 @@ func (k Keeper) GetKeyShareRequest( ctx context.Context, identity string, -) (val types.KeyShareRequest, found bool) { +) (val types.DecryptionKeyRequest, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.KeyShareRequestKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DecryptionKeyRequestKeyPrefix)) b := store.Get([]byte(identity)) if b == nil { @@ -44,20 +44,20 @@ func (k Keeper) RemoveKeyShareRequest( ) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.KeyShareRequestKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DecryptionKeyRequestKeyPrefix)) store.Delete([]byte(identity)) } // GetAllKeyShareRequests returns all keyShare requests -func (k Keeper) GetAllKeyShareRequests(ctx context.Context) (list []types.KeyShareRequest) { +func (k Keeper) GetAllKeyShareRequests(ctx context.Context) (list []types.DecryptionKeyRequest) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.KeyShareRequestKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DecryptionKeyRequestKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - var val types.KeyShareRequest + var val types.DecryptionKeyRequest k.cdc.MustUnmarshal(iterator.Value(), &val) list = append(list, val) } @@ -66,9 +66,9 @@ func (k Keeper) GetAllKeyShareRequests(ctx context.Context) (list []types.KeySha } // SetPrivateKeyShareRequest set a specific private keyShare request in the store by its index -func (k Keeper) SetPrivateKeyShareRequest(ctx context.Context, KeyShareRequest types.PrivateKeyshareRequest) { +func (k Keeper) SetPrivateKeyShareRequest(ctx context.Context, KeyShareRequest types.PrivateDecryptionKeyRequest) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateKeyShareRequestKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateDecryptionKeyRequestKeyPrefix)) key := []byte(KeyShareRequest.Identity) b := k.cdc.MustMarshal(&KeyShareRequest) store.Set(key, b) @@ -78,9 +78,9 @@ func (k Keeper) SetPrivateKeyShareRequest(ctx context.Context, KeyShareRequest t func (k Keeper) GetPrivateKeyShareRequest( ctx context.Context, identity string, -) (val types.PrivateKeyshareRequest, found bool) { +) (val types.PrivateDecryptionKeyRequest, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateKeyShareRequestKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateDecryptionKeyRequestKeyPrefix)) b := store.Get([]byte(identity)) if b == nil { @@ -97,20 +97,20 @@ func (k Keeper) RemovePrivateKeyShareRequest( identity string, ) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateKeyShareRequestKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateDecryptionKeyRequestKeyPrefix)) store.Delete([]byte(identity)) } // GetAllPrivateKeyShareRequests returns all private keyShare requests -func (k Keeper) GetAllPrivateKeyShareRequests(ctx context.Context) (list []types.PrivateKeyshareRequest) { +func (k Keeper) GetAllPrivateKeyShareRequests(ctx context.Context) (list []types.PrivateDecryptionKeyRequest) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateKeyShareRequestKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateDecryptionKeyRequestKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - var val types.PrivateKeyshareRequest + var val types.PrivateDecryptionKeyRequest k.cdc.MustUnmarshal(iterator.Value(), &val) list = append(list, val) } diff --git a/x/keyshare/keeper/aggregated_key_share_request_test.go b/x/keyshare/keeper/aggregated_key_share_request_test.go index 418b0581..592ce4df 100644 --- a/x/keyshare/keeper/aggregated_key_share_request_test.go +++ b/x/keyshare/keeper/aggregated_key_share_request_test.go @@ -2,17 +2,18 @@ package keeper_test import ( "fmt" + "testing" + keepertest "github.com/Fairblock/fairyring/testutil/keeper" "github.com/Fairblock/fairyring/testutil/nullify" "github.com/Fairblock/fairyring/x/keyshare/keeper" "github.com/Fairblock/fairyring/x/keyshare/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - "testing" ) -func createNKeyshareRequest(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.KeyShareRequest { - items := make([]types.KeyShareRequest, n) +func createNKeyshareRequest(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.DecryptionKeyRequest { + items := make([]types.DecryptionKeyRequest, n) for i := range items { items[i].RequestId = fmt.Sprintf("%d/rq", i) items[i].Identity = fmt.Sprintf("%d/rq", i) diff --git a/x/keyshare/keeper/aggregated_key_share_test.go b/x/keyshare/keeper/aggregated_key_share_test.go index 9647e4a6..26ab305e 100644 --- a/x/keyshare/keeper/aggregated_key_share_test.go +++ b/x/keyshare/keeper/aggregated_key_share_test.go @@ -16,8 +16,8 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func createNAggregatedKeyShare(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.AggregatedKeyShare { - items := make([]types.AggregatedKeyShare, n) +func createNAggregatedKeyShare(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.DecryptionKey { + items := make([]types.DecryptionKey, n) for i := range items { items[i].Height = uint64(i) diff --git a/x/keyshare/keeper/general_key_share.go b/x/keyshare/keeper/general_key_share.go index adbec890..7717412c 100644 --- a/x/keyshare/keeper/general_key_share.go +++ b/x/keyshare/keeper/general_key_share.go @@ -10,7 +10,7 @@ import ( ) // SetGeneralKeyShare set a specific generalKeyShare in the store from its index -func (k Keeper) SetGeneralKeyShare(ctx context.Context, generalKeyShare types.GeneralKeyShare) { +func (k Keeper) SetGeneralKeyShare(ctx context.Context, generalKeyShare types.GeneralKeyshare) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GeneralKeyShareKeyPrefix)) @@ -28,7 +28,7 @@ func (k Keeper) GetGeneralKeyShare( validator string, idType string, idValue string, -) (val types.GeneralKeyShare, found bool) { +) (val types.GeneralKeyshare, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GeneralKeyShareKeyPrefix)) @@ -63,7 +63,7 @@ func (k Keeper) RemoveGeneralKeyShare( } // GetAllGeneralKeyShare returns all generalKeyShare -func (k Keeper) GetAllGeneralKeyShare(ctx context.Context) (list []types.GeneralKeyShare) { +func (k Keeper) GetAllGeneralKeyShare(ctx context.Context) (list []types.GeneralKeyshare) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GeneralKeyShareKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) @@ -71,7 +71,7 @@ func (k Keeper) GetAllGeneralKeyShare(ctx context.Context) (list []types.General defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - var val types.GeneralKeyShare + var val types.GeneralKeyshare k.cdc.MustUnmarshal(iterator.Value(), &val) list = append(list, val) } @@ -80,7 +80,7 @@ func (k Keeper) GetAllGeneralKeyShare(ctx context.Context) (list []types.General } // SetPrivateKeyShare set a specific private KeyShare in the store from its index -func (k Keeper) SetPrivateKeyShare(ctx context.Context, encKeyShare types.ValidatorEncryptedKeyShare) { +func (k Keeper) SetPrivateKeyShare(ctx context.Context, encKeyShare types.ValidatorEncryptedKeyshare) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.EncryptedKeyShareKeyPrefix)) @@ -98,7 +98,7 @@ func (k Keeper) GetPrivateKeyShare( validator string, identity string, requester string, -) (val types.ValidatorEncryptedKeyShare, found bool) { +) (val types.ValidatorEncryptedKeyshare, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.EncryptedKeyShareKeyPrefix)) @@ -132,7 +132,7 @@ func (k Keeper) RemovePrivateKeyShare( } // GetAllPrivateKeyShare returns all private KeyShares -func (k Keeper) GetAllPrivateKeyShare(ctx context.Context) (list []types.ValidatorEncryptedKeyShare) { +func (k Keeper) GetAllPrivateKeyShare(ctx context.Context) (list []types.ValidatorEncryptedKeyshare) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.EncryptedKeyShareKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) @@ -140,7 +140,7 @@ func (k Keeper) GetAllPrivateKeyShare(ctx context.Context) (list []types.Validat defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - var val types.ValidatorEncryptedKeyShare + var val types.ValidatorEncryptedKeyshare k.cdc.MustUnmarshal(iterator.Value(), &val) list = append(list, val) } diff --git a/x/keyshare/keeper/general_key_share_test.go b/x/keyshare/keeper/general_key_share_test.go index e663814a..40100b02 100644 --- a/x/keyshare/keeper/general_key_share_test.go +++ b/x/keyshare/keeper/general_key_share_test.go @@ -2,9 +2,10 @@ package keeper_test import ( "fmt" + "testing" + "github.com/Fairblock/fairyring/testutil/random" "github.com/Fairblock/fairyring/testutil/sample" - "testing" keepertest "github.com/Fairblock/fairyring/testutil/keeper" "github.com/Fairblock/fairyring/testutil/nullify" @@ -14,13 +15,13 @@ import ( "github.com/stretchr/testify/require" ) -func createNGeneralKeyShares(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.GeneralKeyShare { - items := make([]types.GeneralKeyShare, n) +func createNGeneralKeyShares(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.GeneralKeyshare { + items := make([]types.GeneralKeyshare, n) for i := range items { items[i].Validator = sample.AccAddress() items[i].IdValue = fmt.Sprintf("testing/%d", i) items[i].IdType = "testing" - items[i].KeyShare = random.RandHex(10) + items[i].Keyshare = random.RandHex(10) keeper.SetGeneralKeyShare(ctx, items[i]) } return items diff --git a/x/keyshare/keeper/get_decryption_key.go b/x/keyshare/keeper/get_decryption_key.go index 000881ef..fce0079d 100644 --- a/x/keyshare/keeper/get_decryption_key.go +++ b/x/keyshare/keeper/get_decryption_key.go @@ -42,7 +42,7 @@ func (k Keeper) OnRecvGetDecryptionKeyPacket( return packetAck, err } - if keyshareReq.AggrKeyshare == "" { + if keyshareReq.DecryptionKey == "" { k.Logger().Info("Got OnRecvGetAggrKeysharePacket") @@ -95,14 +95,14 @@ func (k Keeper) OnRecvGetPrivateDecryptionKeyPacket( PortId: packet.SourcePort, } - keyshareReq.EncryptedKeyshares = make([]*commontypes.GetDecryptionKey, 0) + keyshareReq.PrivateDecryptionKeys = make([]*commontypes.PrivateDecryptionKey, 0) keyshareReq.RequestId = data.Identity keyshareReq.Sent = false k.SetPrivateKeyShareRequest(ctx, keyshareReq) } - if len(keyshareReq.EncryptedKeyshares) == 0 { + if len(keyshareReq.PrivateDecryptionKeys) == 0 { k.Logger().Info("Got OnRecvGetPrivateKeysharePacket") ctx.EventManager().EmitEvent( diff --git a/x/keyshare/keeper/key_share.go b/x/keyshare/keeper/key_share.go index 48371711..093f0f65 100644 --- a/x/keyshare/keeper/key_share.go +++ b/x/keyshare/keeper/key_share.go @@ -11,7 +11,7 @@ import ( ) // SetKeyShare set a specific keyShare in the store from its index -func (k Keeper) SetKeyShare(ctx context.Context, keyShare types.KeyShare) { +func (k Keeper) SetKeyShare(ctx context.Context, keyShare types.Keyshare) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.KeyShareKeyPrefix)) b := k.cdc.MustMarshal(&keyShare) @@ -27,7 +27,7 @@ func (k Keeper) GetKeyShare( validator string, blockHeight uint64, -) (val types.KeyShare, found bool) { +) (val types.Keyshare, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.KeyShareKeyPrefix)) @@ -59,7 +59,7 @@ func (k Keeper) RemoveKeyShare( } // GetAllKeyShare returns all keyShare -func (k Keeper) GetAllKeyShare(ctx context.Context) (list []types.KeyShare) { +func (k Keeper) GetAllKeyShare(ctx context.Context) (list []types.Keyshare) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.KeyShareKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) @@ -67,7 +67,7 @@ func (k Keeper) GetAllKeyShare(ctx context.Context) (list []types.KeyShare) { defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - var val types.KeyShare + var val types.Keyshare k.cdc.MustUnmarshal(iterator.Value(), &val) list = append(list, val) } diff --git a/x/keyshare/keeper/key_share_test.go b/x/keyshare/keeper/key_share_test.go index c8c38aef..1abb80e0 100644 --- a/x/keyshare/keeper/key_share_test.go +++ b/x/keyshare/keeper/key_share_test.go @@ -1,9 +1,10 @@ package keeper_test import ( + "testing" + "github.com/Fairblock/fairyring/testutil/random" "github.com/Fairblock/fairyring/testutil/sample" - "testing" keepertest "github.com/Fairblock/fairyring/testutil/keeper" "github.com/Fairblock/fairyring/testutil/nullify" @@ -13,11 +14,11 @@ import ( "github.com/stretchr/testify/require" ) -func createNKeyShares(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.KeyShare { - items := make([]types.KeyShare, n) +func createNKeyShares(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.Keyshare { + items := make([]types.Keyshare, n) for i := range items { items[i].Validator = sample.AccAddress() - items[i].KeyShare = random.RandHex(10) + items[i].Keyshare = random.RandHex(10) items[i].BlockHeight = uint64(i) keeper.SetKeyShare(ctx, items[i]) } diff --git a/x/keyshare/keeper/msg_create_general_key_share.go b/x/keyshare/keeper/msg_create_general_key_share.go index 0b7ff543..7e046a89 100644 --- a/x/keyshare/keeper/msg_create_general_key_share.go +++ b/x/keyshare/keeper/msg_create_general_key_share.go @@ -25,7 +25,10 @@ const ( var SupportedIDTypes = []string{PrivateGovIdentity} -func (k msgServer) CreateGeneralKeyShare(goCtx context.Context, msg *types.MsgCreateGeneralKeyShare) (*types.MsgCreateGeneralKeyShareResponse, error) { +func (k msgServer) SubmitGeneralKeyshare( + goCtx context.Context, + msg *types.MsgSubmitGeneralKeyshare, +) (*types.MsgSubmitGeneralKeyshareResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) // check if validator is registered @@ -66,13 +69,13 @@ func (k msgServer) CreateGeneralKeyShare(goCtx context.Context, msg *types.MsgCr if !found { return nil, types.ErrKeyShareRequestNotFound.Wrapf(", got id value: %s", msg.IdValue) } - if keyShareReq.AggrKeyshare != "" { - return &types.MsgCreateGeneralKeyShareResponse{ + if keyShareReq.DecryptionKey != "" { + return &types.MsgSubmitGeneralKeyshareResponse{ Creator: msg.Creator, IdType: msg.IdType, IdValue: msg.IdValue, - KeyShare: msg.KeyShare, - KeyShareIndex: msg.KeyShareIndex, + Keyshare: msg.Keyshare, + KeyshareIndex: msg.KeyshareIndex, ReceivedBlockHeight: uint64(ctx.BlockHeight()), Success: true, }, nil @@ -89,15 +92,15 @@ func (k msgServer) CreateGeneralKeyShare(goCtx context.Context, msg *types.MsgCr } commitmentsLen := uint64(len(commitments.Commitments)) - if msg.KeyShareIndex > commitmentsLen { - return nil, types.ErrInvalidKeyShareIndex.Wrap(fmt.Sprintf("Expect Index within: %d, got: %d", commitmentsLen, msg.KeyShareIndex)) + if msg.KeyshareIndex > commitmentsLen { + return nil, types.ErrInvalidKeyShareIndex.Wrap(fmt.Sprintf("Expect Index within: %d, got: %d", commitmentsLen, msg.KeyshareIndex)) } // Parse the keyshare & commitment then verify it - _, _, err := parseKeyShareCommitment(suite, msg.KeyShare, commitments.Commitments[msg.KeyShareIndex-1], uint32(msg.KeyShareIndex), msg.IdValue) + _, _, err := parseKeyShareCommitment(suite, msg.Keyshare, commitments.Commitments[msg.KeyshareIndex-1], uint32(msg.KeyshareIndex), msg.IdValue) if err != nil { k.Logger().Error(fmt.Sprintf("Error in parsing & verifying general keyshare & commitment: %s", err.Error())) - k.Logger().Error(fmt.Sprintf("General KeyShare is: %v | Commitment is: %v | Index: %d", msg.KeyShare, commitments.Commitments, msg.KeyShareIndex)) + k.Logger().Error(fmt.Sprintf("General KeyShare is: %v | Commitment is: %v | Index: %d", msg.Keyshare, commitments.Commitments, msg.KeyshareIndex)) // Invalid Share, slash validator var consAddr sdk.ConsAddress @@ -118,24 +121,24 @@ func (k msgServer) CreateGeneralKeyShare(goCtx context.Context, msg *types.MsgCr ctx.BlockHeight()-1, ) - return &types.MsgCreateGeneralKeyShareResponse{ + return &types.MsgSubmitGeneralKeyshareResponse{ Creator: msg.Creator, IdType: msg.IdType, IdValue: msg.IdValue, - KeyShare: msg.KeyShare, - KeyShareIndex: msg.KeyShareIndex, + Keyshare: msg.Keyshare, + KeyshareIndex: msg.KeyshareIndex, ReceivedBlockHeight: uint64(ctx.BlockHeight()), Success: false, ErrorMessage: "Invalid General KeyShare", }, nil } - generalKeyShare := types.GeneralKeyShare{ + generalKeyShare := types.GeneralKeyshare{ Validator: msg.Creator, IdType: msg.IdType, IdValue: msg.IdValue, - KeyShare: msg.KeyShare, - KeyShareIndex: msg.KeyShareIndex, + Keyshare: msg.Keyshare, + KeyshareIndex: msg.KeyshareIndex, ReceivedTimestamp: uint64(ctx.BlockTime().Unix()), ReceivedBlockHeight: uint64(ctx.BlockHeight()), } @@ -147,7 +150,7 @@ func (k msgServer) CreateGeneralKeyShare(goCtx context.Context, msg *types.MsgCr validatorList := k.GetAllValidatorSet(ctx) // Get all the general key shares for the provided id value & id type - var stateGeneralKeyShares []types.GeneralKeyShare + var stateGeneralKeyShares []types.GeneralKeyshare for _, eachValidator := range validatorList { eachGeneralKeyShare, found := k.GetGeneralKeyShare(ctx, eachValidator.Validator, msg.IdType, msg.IdValue) @@ -174,8 +177,8 @@ func (k msgServer) CreateGeneralKeyShare(goCtx context.Context, msg *types.MsgCr sdk.NewEvent(types.SendGeneralKeyshareEventType, sdk.NewAttribute(types.SendGeneralKeyshareEventValidator, msg.Creator), sdk.NewAttribute(types.SendGeneralKeyshareEventReceivedBlockHeight, strconv.FormatInt(ctx.BlockHeight(), 10)), - sdk.NewAttribute(types.SendGeneralKeyshareEventMessage, msg.KeyShare), - sdk.NewAttribute(types.SendGeneralKeyshareEventIndex, strconv.FormatUint(msg.KeyShareIndex, 10)), + sdk.NewAttribute(types.SendGeneralKeyshareEventMessage, msg.Keyshare), + sdk.NewAttribute(types.SendGeneralKeyshareEventIndex, strconv.FormatUint(msg.KeyshareIndex, 10)), sdk.NewAttribute(types.SendGeneralKeyshareEventIDType, msg.IdType), sdk.NewAttribute(types.SendGeneralKeyshareEventIdValue, msg.IdValue), ), @@ -184,12 +187,12 @@ func (k msgServer) CreateGeneralKeyShare(goCtx context.Context, msg *types.MsgCr // If there is not enough keyshares to aggregate OR there is already an aggregated key // Only continue the code if there is enough keyshare to aggregate & no aggregated key for current height if int64(len(stateGeneralKeyShares)) < expectedThreshold { - return &types.MsgCreateGeneralKeyShareResponse{ + return &types.MsgSubmitGeneralKeyshareResponse{ Creator: msg.Creator, IdType: msg.IdType, IdValue: msg.IdValue, - KeyShare: msg.KeyShare, - KeyShareIndex: msg.KeyShareIndex, + Keyshare: msg.Keyshare, + KeyshareIndex: msg.KeyshareIndex, ReceivedBlockHeight: uint64(ctx.BlockHeight()), Success: true, }, nil @@ -203,13 +206,13 @@ func (k msgServer) CreateGeneralKeyShare(goCtx context.Context, msg *types.MsgCr return nil, types.ErrKeyShareRequestNotFound.Wrapf(", got id value: %s", msg.IdValue) } - if keyShareReq.AggrKeyshare != "" { - return &types.MsgCreateGeneralKeyShareResponse{ + if keyShareReq.DecryptionKey != "" { + return &types.MsgSubmitGeneralKeyshareResponse{ Creator: msg.Creator, IdType: msg.IdType, IdValue: msg.IdValue, - KeyShare: msg.KeyShare, - KeyShareIndex: msg.KeyShareIndex, + Keyshare: msg.Keyshare, + KeyshareIndex: msg.KeyshareIndex, ReceivedBlockHeight: uint64(ctx.BlockHeight()), Success: true, }, nil @@ -221,11 +224,11 @@ func (k msgServer) CreateGeneralKeyShare(goCtx context.Context, msg *types.MsgCr var listOfCommitment []distIBE.Commitment for _, eachKeyShare := range stateGeneralKeyShares { - if eachKeyShare.KeyShareIndex > commitmentsLen { - k.Logger().Error(fmt.Sprintf("KeyShareIndex: %d should not higher or equals to commitments length: %d", eachKeyShare.KeyShareIndex, commitmentsLen)) + if eachKeyShare.KeyshareIndex > commitmentsLen { + k.Logger().Error(fmt.Sprintf("KeyShareIndex: %d should not higher or equals to commitments length: %d", eachKeyShare.KeyshareIndex, commitmentsLen)) continue } - keyShare, commitment, err := parseKeyShareCommitment(suite, eachKeyShare.KeyShare, commitments.Commitments[eachKeyShare.KeyShareIndex-1], uint32(eachKeyShare.KeyShareIndex), msg.IdValue) + keyShare, commitment, err := parseKeyShareCommitment(suite, eachKeyShare.Keyshare, commitments.Commitments[eachKeyShare.KeyshareIndex-1], uint32(eachKeyShare.KeyshareIndex), msg.IdValue) if err != nil { k.Logger().Error(err.Error()) continue @@ -262,37 +265,37 @@ func (k msgServer) CreateGeneralKeyShare(goCtx context.Context, msg *types.MsgCr switch msg.IdType { case PrivateGovIdentity: - val := types.MsgCreateGeneralKeyShareResponse{ + val := types.MsgSubmitGeneralKeyshareResponse{ Creator: msg.Creator, IdType: msg.IdType, IdValue: msg.IdValue, - KeyShare: msg.KeyShare, - KeyShareIndex: msg.KeyShareIndex, + Keyshare: msg.Keyshare, + KeyshareIndex: msg.KeyshareIndex, ReceivedBlockHeight: uint64(ctx.BlockHeight()), } keyShareReq, found := k.GetKeyShareRequest(ctx, msg.IdValue) if !found { return nil, types.ErrKeyShareRequestNotFound.Wrapf(", got id value: %s", msg.IdValue) } - if keyShareReq.AggrKeyshare != "" { - return nil, types.ErrAggKeyAlreadyExists.Wrapf(", identity: %s, Aggregated key: %s", msg.IdValue, keyShareReq.AggrKeyshare) + if keyShareReq.DecryptionKey != "" { + return nil, types.ErrAggKeyAlreadyExists.Wrapf(", identity: %s, Aggregated key: %s", msg.IdValue, keyShareReq.DecryptionKey) } - keyShareReq.AggrKeyshare = skHex + keyShareReq.DecryptionKey = skHex k.SetKeyShareRequest(ctx, keyShareReq) timeoutTimestamp := ctx.BlockTime().Add(time.Second * 20).UnixNano() if keyShareReq.IbcInfo != nil { if keyShareReq.IbcInfo.ChannelId != "" { - _, err := k.TransmitAggrKeyshareDataPacket( + _, err := k.TransmitDecryptionKeyDataPacket( ctx, - types.AggrKeyshareDataPacketData{ - Identity: keyShareReq.Identity, - Pubkey: keyShareReq.Pubkey, - AggrKeyshare: keyShareReq.AggrKeyshare, - AggrHeight: strconv.FormatInt(ctx.BlockHeight(), 10), - ProposalId: keyShareReq.ProposalId, - RequestId: keyShareReq.RequestId, - Retries: 0, + types.DecryptionKeyDataPacketData{ + Identity: keyShareReq.Identity, + Pubkey: keyShareReq.Pubkey, + DecryptionKey: keyShareReq.DecryptionKey, + AggrHeight: strconv.FormatInt(ctx.BlockHeight(), 10), + ProposalId: keyShareReq.ProposalId, + RequestId: keyShareReq.RequestId, + Retries: 0, }, keyShareReq.IbcInfo.PortId, keyShareReq.IbcInfo.ChannelId, @@ -318,23 +321,23 @@ func (k msgServer) CreateGeneralKeyShare(goCtx context.Context, msg *types.MsgCr return &val, errors.New("proposal not found") } - proposal.AggrKeyshare = keyShareReq.AggrKeyshare + proposal.DecryptionKey = keyShareReq.DecryptionKey k.govKeeper.SetProposal(ctx, proposal) } else { val, _ := k.pepKeeper.GetEntry(ctx, keyShareReq.RequestId) - val.AggrKeyshare = keyShareReq.AggrKeyshare + val.DecryptionKey = keyShareReq.DecryptionKey k.pepKeeper.SetExecutionQueueEntry(ctx, val) k.pepKeeper.SetEntry(ctx, val) } } } - return &types.MsgCreateGeneralKeyShareResponse{ + return &types.MsgSubmitGeneralKeyshareResponse{ Creator: msg.Creator, IdType: msg.IdType, IdValue: msg.IdValue, - KeyShare: msg.KeyShare, - KeyShareIndex: msg.KeyShareIndex, + Keyshare: msg.Keyshare, + KeyshareIndex: msg.KeyshareIndex, ReceivedBlockHeight: uint64(ctx.BlockHeight()), Success: true, }, nil diff --git a/x/keyshare/keeper/msg_create_general_key_share_test.go b/x/keyshare/keeper/msg_create_general_key_share_test.go index 6e58cb1d..8178f444 100644 --- a/x/keyshare/keeper/msg_create_general_key_share_test.go +++ b/x/keyshare/keeper/msg_create_general_key_share_test.go @@ -37,7 +37,7 @@ func SetupTestGeneralKeyShare(t *testing.T, ctx sdk.Context, k keeper.Keeper, nu Creator: creator, Expiry: 123456, NumberOfValidators: pubkeyNumberOfValidator, - EncryptedKeyShares: out.KeyShareEncryptedKeyShares, + EncryptedKeyshares: out.KeyShareEncryptedKeyShares, }) k.SetActiveCommitments(ctx, types.Commitments{ @@ -59,36 +59,36 @@ func TestGeneralKeyShareMsgServerCreateAggregated(t *testing.T) { idVal := random.RandHex(32) - k.SetKeyShareRequest(wctx, types.KeyShareRequest{ - Identity: idVal, - Pubkey: out.MasterPublicKey, - IbcInfo: nil, - Counterparty: nil, - AggrKeyshare: "", - ProposalId: "", - RequestId: idVal, - Sent: false, + k.SetKeyShareRequest(wctx, types.DecryptionKeyRequest{ + Identity: idVal, + Pubkey: out.MasterPublicKey, + IbcInfo: nil, + Counterparty: nil, + DecryptionKey: "", + ProposalId: "", + RequestId: idVal, + Sent: false, }) - pk.SetEntry(wctx, types2.IdentityExecutionQueue{ - Creator: creator, - RequestId: idVal, - Identity: idVal, - Pubkey: out.MasterPublicKey, - TxList: nil, - AggrKeyshare: "", + pk.SetEntry(wctx, types2.IdentityExecutionEntry{ + Creator: creator, + RequestId: idVal, + Identity: idVal, + Pubkey: out.MasterPublicKey, + TxList: nil, + DecryptionKey: "", }) derived, err := shares.DeriveShare(out.GeneratedShare[0].Share, 1, idVal) require.NoError(t, err) - expected := &types.MsgCreateGeneralKeyShare{Creator: creator, + expected := &types.MsgSubmitGeneralKeyshare{Creator: creator, IdType: keeper.PrivateGovIdentity, IdValue: idVal, - KeyShareIndex: 1, - KeyShare: derived, + KeyshareIndex: 1, + Keyshare: derived, } - _, err = srv.CreateGeneralKeyShare(wctx, expected) + _, err = srv.SubmitGeneralKeyshare(wctx, expected) require.NoError(t, err) rst, found := k.GetGeneralKeyShare(wctx, @@ -101,7 +101,7 @@ func TestGeneralKeyShareMsgServerCreateAggregated(t *testing.T) { entry, found := k.GetKeyShareRequest(ctx, idVal) require.True(t, found) - require.NotEmpty(t, entry.AggrKeyshare) + require.NotEmpty(t, entry.DecryptionKey) } } @@ -117,36 +117,36 @@ func TestGeneralKeyShareMsgServerCreateNotAggregated(t *testing.T) { idVal := random.RandHex(32) - k.SetKeyShareRequest(wctx, types.KeyShareRequest{ - Identity: idVal, - Pubkey: out.MasterPublicKey, - IbcInfo: nil, - Counterparty: nil, - AggrKeyshare: "", - ProposalId: "", - RequestId: idVal, - Sent: false, + k.SetKeyShareRequest(wctx, types.DecryptionKeyRequest{ + Identity: idVal, + Pubkey: out.MasterPublicKey, + IbcInfo: nil, + Counterparty: nil, + DecryptionKey: "", + ProposalId: "", + RequestId: idVal, + Sent: false, }) - pk.SetEntry(wctx, types2.IdentityExecutionQueue{ - Creator: creator, - RequestId: idVal, - Identity: idVal, - Pubkey: out.MasterPublicKey, - TxList: nil, - AggrKeyshare: "", + pk.SetEntry(wctx, types2.IdentityExecutionEntry{ + Creator: creator, + RequestId: idVal, + Identity: idVal, + Pubkey: out.MasterPublicKey, + TxList: nil, + DecryptionKey: "", }) derived, err := shares.DeriveShare(out.GeneratedShare[0].Share, 1, idVal) require.NoError(t, err) - expected := &types.MsgCreateGeneralKeyShare{Creator: creator, + expected := &types.MsgSubmitGeneralKeyshare{Creator: creator, IdType: keeper.PrivateGovIdentity, IdValue: idVal, - KeyShareIndex: 1, - KeyShare: derived, + KeyshareIndex: 1, + Keyshare: derived, } - _, err = srv.CreateGeneralKeyShare(wctx, expected) + _, err = srv.SubmitGeneralKeyshare(wctx, expected) require.NoError(t, err) rst, found := k.GetGeneralKeyShare(wctx, @@ -159,7 +159,7 @@ func TestGeneralKeyShareMsgServerCreateNotAggregated(t *testing.T) { entry, found := k.GetKeyShareRequest(ctx, idVal) require.True(t, found) - require.Empty(t, entry.AggrKeyshare) + require.Empty(t, entry.DecryptionKey) } } @@ -171,28 +171,28 @@ func TestGeneralKeyShareMsgServerFailCases(t *testing.T) { out, creator := SetupTestGeneralKeyShare(t, wctx, k, 1, 1) onlyIdVal := random.RandHex(32) - pk.SetEntry(wctx, types2.IdentityExecutionQueue{ - Creator: creator, - RequestId: onlyIdVal, - Identity: onlyIdVal, - Pubkey: out.MasterPublicKey, - TxList: nil, - AggrKeyshare: "", + pk.SetEntry(wctx, types2.IdentityExecutionEntry{ + Creator: creator, + RequestId: onlyIdVal, + Identity: onlyIdVal, + Pubkey: out.MasterPublicKey, + TxList: nil, + DecryptionKey: "", }) for _, tc := range []struct { desc string - request *types.MsgCreateGeneralKeyShare + request *types.MsgSubmitGeneralKeyshare err error }{ { desc: "Unauthorized", - request: &types.MsgCreateGeneralKeyShare{Creator: "B"}, + request: &types.MsgSubmitGeneralKeyshare{Creator: "B"}, err: types.ErrAddrIsNotValidatorOrAuthorized, }, { desc: "NotSupportedIDType", - request: &types.MsgCreateGeneralKeyShare{ + request: &types.MsgSubmitGeneralKeyshare{ Creator: creator, IdType: "not_exists", }, @@ -200,7 +200,7 @@ func TestGeneralKeyShareMsgServerFailCases(t *testing.T) { }, { desc: "KeyShareRequestNotFound", - request: &types.MsgCreateGeneralKeyShare{ + request: &types.MsgSubmitGeneralKeyshare{ Creator: creator, IdType: keeper.PrivateGovIdentity, IdValue: random.RandHex(32), @@ -209,31 +209,31 @@ func TestGeneralKeyShareMsgServerFailCases(t *testing.T) { }, { desc: "InvalidKeyShareIndex", - request: &types.MsgCreateGeneralKeyShare{ + request: &types.MsgSubmitGeneralKeyshare{ Creator: creator, IdType: keeper.PrivateGovIdentity, IdValue: onlyIdVal, - KeyShareIndex: 10, + KeyshareIndex: 10, }, err: types.ErrInvalidKeyShareIndex, }, } { t.Run(tc.desc, func(t *testing.T) { - _, err := srv.CreateGeneralKeyShare(wctx, tc.request) + _, err := srv.SubmitGeneralKeyshare(wctx, tc.request) require.ErrorIs(t, err, tc.err) if tc.desc == "KeyShareRequestNotFound" { - k.SetKeyShareRequest(wctx, types.KeyShareRequest{ - Identity: onlyIdVal, - Pubkey: out.MasterPublicKey, - IbcInfo: nil, - Counterparty: nil, - AggrKeyshare: "", - ProposalId: "", - RequestId: onlyIdVal, - Sent: false, + k.SetKeyShareRequest(wctx, types.DecryptionKeyRequest{ + Identity: onlyIdVal, + Pubkey: out.MasterPublicKey, + IbcInfo: nil, + Counterparty: nil, + DecryptionKey: "", + ProposalId: "", + RequestId: onlyIdVal, + Sent: false, }) } }) diff --git a/x/keyshare/keeper/msg_create_pub_key.go b/x/keyshare/keeper/msg_create_pub_key.go index 4ac7856d..ce83dcb3 100644 --- a/x/keyshare/keeper/msg_create_pub_key.go +++ b/x/keyshare/keeper/msg_create_pub_key.go @@ -42,10 +42,10 @@ func (k msgServer) CreateLatestPubKey(goCtx context.Context, msg *types.MsgCreat PublicKey: msg.PublicKey, Expiry: expHeight, NumberOfValidators: msg.NumberOfValidators, - EncryptedKeyShares: msg.EncryptedKeyShares, + EncryptedKeyshares: msg.EncryptedKeyshares, } - encryptedKeyShares, err := json.Marshal(msg.EncryptedKeyShares) + encryptedKeyShares, err := json.Marshal(msg.EncryptedKeyshares) if err != nil { return nil, err } @@ -60,7 +60,7 @@ func (k msgServer) CreateLatestPubKey(goCtx context.Context, msg *types.MsgCreat queuedPubKey, ) - k.pepKeeper.SetQueuedPubKey( + k.pepKeeper.SetQueuedPubkey( ctx, commontypes.QueuedPublicKey{ Creator: msg.Creator, diff --git a/x/keyshare/keeper/msg_create_pub_key_test.go b/x/keyshare/keeper/msg_create_pub_key_test.go index a5770365..23a7e544 100644 --- a/x/keyshare/keeper/msg_create_pub_key_test.go +++ b/x/keyshare/keeper/msg_create_pub_key_test.go @@ -1,10 +1,11 @@ package keeper_test import ( - "github.com/Fairblock/fairyring/testutil/random" "strconv" "testing" + "github.com/Fairblock/fairyring/testutil/random" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" @@ -36,7 +37,7 @@ func TestLatestPubKeyMsgServerCreate(t *testing.T) { Creator: creator, Expiry: 123456, NumberOfValidators: 1, - EncryptedKeyShares: out.KeyShareEncryptedKeyShares, + EncryptedKeyshares: out.KeyShareEncryptedKeyShares, }) for _, tc := range []struct { @@ -62,7 +63,7 @@ func TestLatestPubKeyMsgServerCreate(t *testing.T) { PublicKey: out.MasterPublicKey, Creator: creator, NumberOfValidators: 1, - EncryptedKeyShares: out.KeyShareEncryptedKeyShares, + EncryptedKeyshares: out.KeyShareEncryptedKeyShares, }, }, } { diff --git a/x/keyshare/keeper/msg_override_pub_key.go b/x/keyshare/keeper/msg_override_pub_key.go index 8ab26645..75e82f28 100644 --- a/x/keyshare/keeper/msg_override_pub_key.go +++ b/x/keyshare/keeper/msg_override_pub_key.go @@ -36,7 +36,7 @@ func (k msgServer) OverrideLatestPubKey(goCtx context.Context, msg *types.MsgOve k.DeleteQueuedPubKey(ctx) } - encryptedKeyShares, err := json.Marshal(msg.EncryptedKeyShares) + encryptedKeyShares, err := json.Marshal(msg.EncryptedKeyshares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ func (k msgServer) OverrideLatestPubKey(goCtx context.Context, msg *types.MsgOve allValidatorSet := k.GetAllValidatorSet(ctx) encSharesExistsValidators := make(map[string]bool, 0) - for _, encShare := range msg.EncryptedKeyShares { + for _, encShare := range msg.EncryptedKeyshares { encSharesExistsValidators[encShare.Validator] = true } @@ -66,11 +66,11 @@ func (k msgServer) OverrideLatestPubKey(goCtx context.Context, msg *types.MsgOve PublicKey: msg.PublicKey, Expiry: expHeight, NumberOfValidators: msg.NumberOfValidators, - EncryptedKeyShares: msg.EncryptedKeyShares, + EncryptedKeyshares: msg.EncryptedKeyshares, }, ) - k.pepKeeper.SetActivePubKey( + k.pepKeeper.SetActivePubkey( ctx, commontypes.ActivePublicKey{ Creator: msg.Creator, diff --git a/x/keyshare/keeper/msg_override_pub_key_test.go b/x/keyshare/keeper/msg_override_pub_key_test.go index 2784a248..4bf8f9fe 100644 --- a/x/keyshare/keeper/msg_override_pub_key_test.go +++ b/x/keyshare/keeper/msg_override_pub_key_test.go @@ -1,10 +1,11 @@ package keeper_test import ( - "github.com/Fairblock/fairyring/testutil/random" "strconv" "testing" + "github.com/Fairblock/fairyring/testutil/random" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" @@ -48,7 +49,7 @@ func TestOverrideLatestPubKeyMsgServer(t *testing.T) { Creator: creator, Commitments: out.Commitments, NumberOfValidators: 1, - EncryptedKeyShares: out.KeyShareEncryptedKeyShares, + EncryptedKeyshares: out.KeyShareEncryptedKeyShares, }, }, } { diff --git a/x/keyshare/keeper/msg_send_key_share.go b/x/keyshare/keeper/msg_send_key_share.go index e4e1f645..5a8c7218 100644 --- a/x/keyshare/keeper/msg_send_key_share.go +++ b/x/keyshare/keeper/msg_send_key_share.go @@ -63,16 +63,16 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar } commitmentsLen := uint64(len(commitments.Commitments)) - if msg.KeyShareIndex > commitmentsLen { - return nil, types.ErrInvalidKeyShareIndex.Wrap(fmt.Sprintf("Expect Index within: %d, got: %d", commitmentsLen, msg.KeyShareIndex)) + if msg.KeyshareIndex > commitmentsLen { + return nil, types.ErrInvalidKeyShareIndex.Wrap(fmt.Sprintf("Expect Index within: %d, got: %d", commitmentsLen, msg.KeyshareIndex)) } // Parse the keyshare & commitment then verify it - _, _, err := parseKeyShareCommitment(suite, msg.Message, commitments.Commitments[msg.KeyShareIndex-1], uint32(msg.KeyShareIndex), ibeID) + _, _, err := parseKeyShareCommitment(suite, msg.Message, commitments.Commitments[msg.KeyshareIndex-1], uint32(msg.KeyshareIndex), ibeID) if err != nil { defer telemetry.IncrCounter(1, types.KeyTotalInvalidKeyShareSubmitted) k.Logger().Error(fmt.Sprintf("Error in parsing & verifying keyshare & commitment: %s", err.Error())) - k.Logger().Error(fmt.Sprintf("KeyShare is: %v | Commitment is: %v | Index: %d", msg.Message, commitments.Commitments, msg.KeyShareIndex)) + k.Logger().Error(fmt.Sprintf("KeyShare is: %v | Commitment is: %v | Index: %d", msg.Message, commitments.Commitments, msg.KeyshareIndex)) // Invalid Share, slash validator var consAddr sdk.ConsAddress @@ -96,7 +96,7 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar return &types.MsgSendKeyshareResponse{ Creator: msg.Creator, Keyshare: msg.Message, - KeyshareIndex: msg.KeyShareIndex, + KeyshareIndex: msg.KeyshareIndex, ReceivedBlockHeight: uint64(ctx.BlockHeight()), BlockHeight: msg.BlockHeight, Success: false, @@ -104,11 +104,11 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar }, nil } - keyShare := types.KeyShare{ + keyShare := types.Keyshare{ Validator: msg.Creator, BlockHeight: msg.BlockHeight, - KeyShare: msg.Message, - KeyShareIndex: msg.KeyShareIndex, + Keyshare: msg.Message, + KeyshareIndex: msg.KeyshareIndex, ReceivedTimestamp: uint64(ctx.BlockTime().Unix()), ReceivedBlockHeight: uint64(ctx.BlockHeight()), } @@ -121,7 +121,7 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar validatorList := k.GetAllValidatorSet(ctx) // Get all the keyshares for the provided block height in state - var stateKeyShares []types.KeyShare + var stateKeyShares []types.Keyshare for _, eachValidator := range validatorList { eachKeyShare, found := k.GetKeyShare(ctx, eachValidator.Validator, msg.BlockHeight) @@ -150,7 +150,7 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar sdk.NewAttribute(types.SendKeyshareEventKeyshareBlockHeight, strconv.FormatUint(msg.BlockHeight, 10)), sdk.NewAttribute(types.SendKeyshareEventReceivedBlockHeight, strconv.FormatInt(ctx.BlockHeight(), 10)), sdk.NewAttribute(types.SendKeyshareEventMessage, msg.Message), - sdk.NewAttribute(types.SendKeyshareEventIndex, strconv.FormatUint(msg.KeyShareIndex, 10)), + sdk.NewAttribute(types.SendKeyshareEventIndex, strconv.FormatUint(msg.KeyshareIndex, 10)), ), ) @@ -164,7 +164,7 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar return &types.MsgSendKeyshareResponse{ Creator: msg.Creator, Keyshare: msg.Message, - KeyshareIndex: msg.KeyShareIndex, + KeyshareIndex: msg.KeyshareIndex, ReceivedBlockHeight: uint64(ctx.BlockHeight()), BlockHeight: msg.BlockHeight, Success: true, @@ -176,11 +176,11 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar var listOfCommitment []distIBE.Commitment for _, eachKeyShare := range stateKeyShares { - if eachKeyShare.KeyShareIndex > commitmentsLen { - k.Logger().Error(fmt.Sprintf("KeyShareIndex: %d should not higher or equals to commitments length: %d", eachKeyShare.KeyShareIndex, commitmentsLen)) + if eachKeyShare.KeyshareIndex > commitmentsLen { + k.Logger().Error(fmt.Sprintf("KeyShareIndex: %d should not higher or equals to commitments length: %d", eachKeyShare.KeyshareIndex, commitmentsLen)) continue } - keyShare, commitment, err := parseKeyShareCommitment(suite, eachKeyShare.KeyShare, commitments.Commitments[eachKeyShare.KeyShareIndex-1], uint32(eachKeyShare.KeyShareIndex), ibeID) + keyShare, commitment, err := parseKeyShareCommitment(suite, eachKeyShare.Keyshare, commitments.Commitments[eachKeyShare.KeyshareIndex-1], uint32(eachKeyShare.KeyshareIndex), ibeID) if err != nil { k.Logger().Error(err.Error()) continue @@ -204,7 +204,7 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar } skHex := hex.EncodeToString(skByte) - k.SetAggregatedKeyShare(ctx, types.AggregatedKeyShare{ + k.SetAggregatedKeyShare(ctx, types.DecryptionKey{ Height: msg.BlockHeight, Data: skHex, }) @@ -223,9 +223,9 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar ), ) - k.pepKeeper.SetAggregatedKeyShare( + k.pepKeeper.SetDecryptionKey( ctx, - peptypes.AggregatedKeyShare{ + peptypes.DecryptionKey{ Height: msg.BlockHeight, Data: skHex, }, @@ -245,7 +245,7 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar return &types.MsgSendKeyshareResponse{ Creator: msg.Creator, Keyshare: msg.Message, - KeyshareIndex: msg.KeyShareIndex, + KeyshareIndex: msg.KeyshareIndex, ReceivedBlockHeight: uint64(ctx.BlockHeight()), BlockHeight: msg.BlockHeight, Success: true, diff --git a/x/keyshare/keeper/msg_send_key_share_test.go b/x/keyshare/keeper/msg_send_key_share_test.go index cf783323..9dfe08d2 100644 --- a/x/keyshare/keeper/msg_send_key_share_test.go +++ b/x/keyshare/keeper/msg_send_key_share_test.go @@ -1,10 +1,11 @@ package keeper_test import ( - "github.com/Fairblock/fairyring/testutil/shares" "strconv" "testing" + "github.com/Fairblock/fairyring/testutil/shares" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" @@ -31,7 +32,7 @@ func TestSendKeyShareMsgServerCreateAggregated(t *testing.T) { expected := &types.MsgSendKeyshare{Creator: creator, Message: derived, - KeyShareIndex: idUint, + KeyshareIndex: idUint, BlockHeight: idUint, } @@ -65,7 +66,7 @@ func TestSendKeyShareMsgServerCreateNotAggregated(t *testing.T) { expected := &types.MsgSendKeyshare{Creator: creator, Message: derived, - KeyShareIndex: idUint, + KeyshareIndex: idUint, BlockHeight: idUint, } @@ -112,7 +113,7 @@ func TestSendKeyShareMsgServerFailCases(t *testing.T) { desc: "InvalidKeyShareIndex", request: &types.MsgSendKeyshare{ Creator: creator, - KeyShareIndex: 999, + KeyshareIndex: 999, }, err: types.ErrInvalidKeyShareIndex, }, diff --git a/x/keyshare/keeper/msg_submit_encrypted_keyshare.go b/x/keyshare/keeper/msg_submit_encrypted_keyshare.go index 7f7026f8..0257983f 100644 --- a/x/keyshare/keeper/msg_submit_encrypted_keyshare.go +++ b/x/keyshare/keeper/msg_submit_encrypted_keyshare.go @@ -46,15 +46,15 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg } commitmentsLen := uint64(len(commitments.Commitments)) - if msg.KeyShareIndex > commitmentsLen { - return nil, types.ErrInvalidKeyShareIndex.Wrap(fmt.Sprintf("Expect Index within: %d, got: %d", commitmentsLen, msg.KeyShareIndex)) + if msg.KeyshareIndex > commitmentsLen { + return nil, types.ErrInvalidKeyShareIndex.Wrap(fmt.Sprintf("Expect Index within: %d, got: %d", commitmentsLen, msg.KeyshareIndex)) } - valEncKeyshare := types.ValidatorEncryptedKeyShare{ + valEncKeyshare := types.ValidatorEncryptedKeyshare{ Validator: msg.Creator, Requester: msg.Requester, - KeyShare: msg.EncryptedKeyshare, - KeyShareIndex: msg.KeyShareIndex, + Keyshare: msg.EncryptedKeyshare, + KeyshareIndex: msg.KeyshareIndex, ReceivedTimestamp: msg.ReceivedTimestamp, ReceivedBlockHeight: msg.ReceivedBlockHeight, Identity: msg.Identity, @@ -67,7 +67,7 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg validatorList := k.GetAllValidatorSet(ctx) // Get all the private keyshares for the provided id value & id type - var stateEncryptedKeyShares []types.ValidatorEncryptedKeyShare + var stateEncryptedKeyShares []types.ValidatorEncryptedKeyshare for _, eachValidator := range validatorList { eachEncKeyShare, found := k.GetPrivateKeyShare(ctx, eachValidator.Validator, msg.Identity, msg.Requester) @@ -95,7 +95,7 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg sdk.NewAttribute(types.SendGeneralKeyshareEventValidator, msg.Creator), sdk.NewAttribute(types.SendGeneralKeyshareEventReceivedBlockHeight, strconv.FormatInt(ctx.BlockHeight(), 10)), sdk.NewAttribute(types.SendGeneralKeyshareEventMessage, msg.EncryptedKeyshare), - sdk.NewAttribute(types.SendGeneralKeyshareEventIndex, strconv.FormatUint(msg.KeyShareIndex, 10)), + sdk.NewAttribute(types.SendGeneralKeyshareEventIndex, strconv.FormatUint(msg.KeyshareIndex, 10)), sdk.NewAttribute(types.SendGeneralKeyshareEventIdValue, msg.Identity), ), ) @@ -106,38 +106,38 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg return &types.MsgSubmitEncryptedKeyshareResponse{}, nil } - if len(keyShareReq.EncryptedKeyshares) != 0 { - for _, entry := range keyShareReq.EncryptedKeyshares { + if len(keyShareReq.PrivateDecryptionKeys) != 0 { + for _, entry := range keyShareReq.PrivateDecryptionKeys { if entry.Requester == msg.Requester && len(entry.PrivateKeyshares) != 0 { return &types.MsgSubmitEncryptedKeyshareResponse{}, nil } } } - var kslist commontypes.EncryptedKeyshare + var kslist commontypes.PrivateDecryptionKey kslist.PrivateKeyshares = make([]*commontypes.IndexedEncryptedKeyshare, 0) for _, eachKeyShare := range stateEncryptedKeyShares { var indexedKeyshare commontypes.IndexedEncryptedKeyshare - indexedKeyshare.EncryptedKeyshareValue = eachKeyShare.KeyShare - indexedKeyshare.EncryptedKeyshareIndex = eachKeyShare.KeyShareIndex + indexedKeyshare.EncryptedKeyshareValue = eachKeyShare.Keyshare + indexedKeyshare.EncryptedKeyshareIndex = eachKeyShare.KeyshareIndex kslist.PrivateKeyshares = append(kslist.PrivateKeyshares, &indexedKeyshare) } kslist.Requester = msg.Requester - keyShareReq.EncryptedKeyshares = append(keyShareReq.EncryptedKeyshares, &kslist) + keyShareReq.PrivateDecryptionKeys = append(keyShareReq.PrivateDecryptionKeys, &kslist) k.SetPrivateKeyShareRequest(ctx, keyShareReq) timeoutTimestamp := ctx.BlockTime().Add(time.Second * 20).UnixNano() if keyShareReq.IbcInfo != nil { if keyShareReq.IbcInfo.ChannelId != "" { - _, err := k.TransmitEncryptedKeyshareDataPacket( + _, err := k.TransmitPrivateDecryptionKeyDataPacket( ctx, - types.EncryptedKeysharesPacketData{ - Identity: keyShareReq.Identity, - Pubkey: keyShareReq.Pubkey, - RequestId: keyShareReq.RequestId, - EncryptedKeyshares: keyShareReq.EncryptedKeyshares, + types.PrivateDecryptionKeyDataPacketData{ + Identity: keyShareReq.Identity, + Pubkey: keyShareReq.Pubkey, + RequestId: keyShareReq.RequestId, + PrivateDecryptionKey: keyShareReq.PrivateDecryptionKeys, }, keyShareReq.IbcInfo.PortId, keyShareReq.IbcInfo.ChannelId, @@ -150,7 +150,7 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg } } else { entry, _ := k.pepKeeper.GetPrivateRequest(ctx, keyShareReq.RequestId) - entry.EncryptedKeyshares = keyShareReq.EncryptedKeyshares + entry.PrivateDecryptionKeys = keyShareReq.PrivateDecryptionKeys k.pepKeeper.SetPrivateRequest(ctx, entry) } diff --git a/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go b/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go index e14c54f9..a5cacb3a 100644 --- a/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go +++ b/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go @@ -34,22 +34,22 @@ func TestEncryptedlKeyShareMsgServerCreate(t *testing.T) { idVal := random.RandHex(32) - k.SetPrivateKeyShareRequest(wctx, types.PrivateKeyshareRequest{ - Identity: idVal, - Pubkey: out.MasterPublicKey, - IbcInfo: nil, - Counterparty: nil, - RequestId: idVal, - Sent: false, - EncryptedKeyshares: make([]*commontypes.EncryptedKeyshare, 0), + k.SetPrivateKeyShareRequest(wctx, types.PrivateDecryptionKeyRequest{ + Identity: idVal, + Pubkey: out.MasterPublicKey, + IbcInfo: nil, + Counterparty: nil, + RequestId: idVal, + Sent: false, + PrivateDecryptionKeys: make([]*commontypes.PrivateDecryptionKey, 0), }) pk.SetPrivateRequest(wctx, types2.PrivateRequest{ - Creator: creator, - ReqId: idVal, - Pubkey: out.MasterPublicKey, - EncryptedKeyshares: make([]*commontypes.EncryptedKeyshare, 0), + Creator: creator, + ReqId: idVal, + Pubkey: out.MasterPublicKey, + PrivateDecryptionKeys: make([]*commontypes.PrivateDecryptionKey, 0), }) - pk.SetPrivateReqQueueEntry(wctx, commontypes.RequestEncryptedKeyshare{ + pk.SetPrivateReqQueueEntry(wctx, commontypes.RequestPrivateDecryptionKey{ Creator: creator, RequestId: idVal, }) @@ -61,7 +61,7 @@ func TestEncryptedlKeyShareMsgServerCreate(t *testing.T) { require.NoError(t, err) expected := &types.MsgSubmitEncryptedKeyshare{Creator: creator, - KeyShareIndex: 1, + KeyshareIndex: 1, Identity: idVal, EncryptedKeyshare: encryptedShare, Requester: creator, @@ -91,7 +91,7 @@ func TestEncryptedKeyShareMsgServerFailCases(t *testing.T) { out, creator := SetupTestGeneralKeyShare(t, wctx, k, 1, 1) onlyIdVal := random.RandHex(32) - pk.SetPrivateReqQueueEntry(wctx, commontypes.RequestEncryptedKeyshare{ + pk.SetPrivateReqQueueEntry(wctx, commontypes.RequestPrivateDecryptionKey{ Creator: creator, RequestId: onlyIdVal, }) @@ -119,7 +119,7 @@ func TestEncryptedKeyShareMsgServerFailCases(t *testing.T) { request: &types.MsgSubmitEncryptedKeyshare{ Creator: creator, Identity: onlyIdVal, - KeyShareIndex: 10, + KeyshareIndex: 10, }, err: types.ErrInvalidKeyShareIndex, }, @@ -131,20 +131,20 @@ func TestEncryptedKeyShareMsgServerFailCases(t *testing.T) { require.ErrorIs(t, err, tc.err) if tc.desc == "KeyShareRequestNotFound" { - k.SetPrivateKeyShareRequest(wctx, types.PrivateKeyshareRequest{ - Identity: onlyIdVal, - Pubkey: out.MasterPublicKey, - IbcInfo: nil, - Counterparty: nil, - RequestId: onlyIdVal, - Sent: false, - EncryptedKeyshares: make([]*commontypes.EncryptedKeyshare, 0), + k.SetPrivateKeyShareRequest(wctx, types.PrivateDecryptionKeyRequest{ + Identity: onlyIdVal, + Pubkey: out.MasterPublicKey, + IbcInfo: nil, + Counterparty: nil, + RequestId: onlyIdVal, + Sent: false, + PrivateDecryptionKeys: make([]*commontypes.PrivateDecryptionKey, 0), }) pk.SetPrivateRequest(wctx, types2.PrivateRequest{ - Creator: creator, - ReqId: onlyIdVal, - Pubkey: out.MasterPublicKey, - EncryptedKeyshares: make([]*commontypes.EncryptedKeyshare, 0), + Creator: creator, + ReqId: onlyIdVal, + Pubkey: out.MasterPublicKey, + PrivateDecryptionKeys: make([]*commontypes.PrivateDecryptionKey, 0), }) } }) diff --git a/x/keyshare/keeper/process_queues.go b/x/keyshare/keeper/process_queues.go index 9ed05dc4..4e1f6d3b 100644 --- a/x/keyshare/keeper/process_queues.go +++ b/x/keyshare/keeper/process_queues.go @@ -47,17 +47,17 @@ func (k Keeper) ProcessPepRequestQueue(ctx sdk.Context) error { id := req.GetRequestId() - var keyshareRequest types.KeyShareRequest + var keyshareRequest types.DecryptionKeyRequest keyshareRequest.Identity = id keyshareRequest.Pubkey = activePubKey.PublicKey - keyshareRequest.AggrKeyshare = "" + keyshareRequest.DecryptionKey = "" keyshareRequest.RequestId = req.GetRequestId() k.SetKeyShareRequest(ctx, keyshareRequest) - entry := peptypes.IdentityExecutionQueue{ + entry := peptypes.IdentityExecutionEntry{ Creator: req.Creator, RequestId: req.GetRequestId(), Identity: keyshareRequest.Identity, @@ -94,7 +94,7 @@ func (k Keeper) ProcessPepSignalQueue(ctx sdk.Context) error { continue } - if keyshareReq.AggrKeyshare == "" { + if keyshareReq.DecryptionKey == "" { ctx.EventManager().EmitEvent( sdk.NewEvent(types.StartSendGeneralKeyShareEventType, sdk.NewAttribute(types.StartSendGeneralKeyShareEventIdentity, req.Identity), @@ -118,12 +118,12 @@ func (k Keeper) ProcessPrivateRequestQueue(ctx sdk.Context) error { for _, req := range reqs { id := req.GetRequestId() - var keyshareRequest types.PrivateKeyshareRequest + var keyshareRequest types.PrivateDecryptionKeyRequest keyshareRequest.Identity = id keyshareRequest.Pubkey = activePubKey.PublicKey - keyshareRequest.EncryptedKeyshares = make([]*common.EncryptedKeyshare, 0) + keyshareRequest.PrivateDecryptionKeys = make([]*common.PrivateDecryptionKey, 0) keyshareRequest.RequestId = req.GetRequestId() k.SetPrivateKeyShareRequest(ctx, keyshareRequest) @@ -153,12 +153,12 @@ func (k Keeper) ProcessPrivateSignalQueue(ctx sdk.Context) error { if req.Identity != "" { keyshareReq, found := k.GetPrivateKeyShareRequest(ctx, req.Identity) if !found { - var keyshareRequest types.PrivateKeyshareRequest + var keyshareRequest types.PrivateDecryptionKeyRequest keyshareRequest.Identity = req.Identity keyshareRequest.Pubkey = activePubKey.PublicKey - keyshareRequest.EncryptedKeyshares = make([]*common.EncryptedKeyshare, 0) + keyshareRequest.PrivateDecryptionKeys = make([]*common.PrivateDecryptionKey, 0) keyshareRequest.RequestId = req.GetRequestId() k.SetPrivateKeyShareRequest(ctx, keyshareRequest) @@ -173,7 +173,7 @@ func (k Keeper) ProcessPrivateSignalQueue(ctx sdk.Context) error { } - if len(keyshareReq.EncryptedKeyshares) == 0 { + if len(keyshareReq.PrivateDecryptionKeys) == 0 { ctx.EventManager().EmitEvent( sdk.NewEvent(types.StartSendEncryptedKeyShareEventType, sdk.NewAttribute(types.StartSendGeneralKeyShareEventIdentity, req.Identity), @@ -221,12 +221,12 @@ func (k Keeper) ProcessGovRequestQueue(ctx sdk.Context) error { id := types.IdentityFromRequestCount(reqCount) - var keyshareRequest types.KeyShareRequest + var keyshareRequest types.DecryptionKeyRequest keyshareRequest.Identity = id keyshareRequest.Pubkey = activePubKey.PublicKey - keyshareRequest.AggrKeyshare = "" + keyshareRequest.DecryptionKey = "" keyshareRequest.ProposalId = req.GetProposalId() k.SetKeyShareRequest(ctx, keyshareRequest) @@ -273,7 +273,7 @@ func (k Keeper) ProcessGovSignalQueue(ctx sdk.Context) error { continue } - if keyshareReq.AggrKeyshare == "" { + if keyshareReq.DecryptionKey == "" { ctx.EventManager().EmitEvent( sdk.NewEvent(types.StartSendGeneralKeyShareEventType, sdk.NewAttribute(types.StartSendGeneralKeyShareEventIdentity, req.Identity), diff --git a/x/keyshare/keeper/query_decryption_key.go b/x/keyshare/keeper/query_decryption_key.go index e882b745..e0ce8cfa 100644 --- a/x/keyshare/keeper/query_decryption_key.go +++ b/x/keyshare/keeper/query_decryption_key.go @@ -23,7 +23,7 @@ func (k Keeper) DecryptionKeyAll( return nil, status.Error(codes.InvalidArgument, "invalid request") } - var aggregatedKeyShares []types.AggregatedKeyShare + var aggregatedKeyShares []types.DecryptionKey ctx := sdk.UnwrapSDKContext(goCtx) storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) @@ -31,7 +31,7 @@ func (k Keeper) DecryptionKeyAll( aggregatedKeyShareStore := prefix.NewStore(store, types.KeyPrefix(types.AggregatedKeyShareKeyPrefix)) pageRes, err := query.Paginate(aggregatedKeyShareStore, req.Pagination, func(key []byte, value []byte) error { - var aggregatedKeyShare types.AggregatedKeyShare + var aggregatedKeyShare types.DecryptionKey if err := k.cdc.Unmarshal(value, &aggregatedKeyShare); err != nil { return err } diff --git a/x/keyshare/keeper/query_general_key_share.go b/x/keyshare/keeper/query_general_key_share.go index d774fd1d..0642739d 100644 --- a/x/keyshare/keeper/query_general_key_share.go +++ b/x/keyshare/keeper/query_general_key_share.go @@ -13,15 +13,15 @@ import ( "google.golang.org/grpc/status" ) -func (k Keeper) GeneralKeyShareAll( +func (k Keeper) GeneralKeyshareAll( goCtx context.Context, - req *types.QueryGeneralKeyShareAllRequest, -) (*types.QueryGeneralKeyShareAllResponse, error) { + req *types.QueryGeneralKeyshareAllRequest, +) (*types.QueryGeneralKeyshareAllResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } - var generalKeyShares []types.GeneralKeyShare + var generalKeyshares []types.GeneralKeyshare ctx := sdk.UnwrapSDKContext(goCtx) storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) @@ -29,12 +29,12 @@ func (k Keeper) GeneralKeyShareAll( generalKeyShareStore := prefix.NewStore(store, types.KeyPrefix(types.GeneralKeyShareKeyPrefix)) pageRes, err := query.Paginate(generalKeyShareStore, req.Pagination, func(key []byte, value []byte) error { - var generalKeyShare types.GeneralKeyShare + var generalKeyShare types.GeneralKeyshare if err := k.cdc.Unmarshal(value, &generalKeyShare); err != nil { return err } - generalKeyShares = append(generalKeyShares, generalKeyShare) + generalKeyshares = append(generalKeyshares, generalKeyShare) return nil }) @@ -42,16 +42,16 @@ func (k Keeper) GeneralKeyShareAll( return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryGeneralKeyShareAllResponse{ - GeneralKeyShare: generalKeyShares, + return &types.QueryGeneralKeyshareAllResponse{ + GeneralKeyshare: generalKeyshares, Pagination: pageRes, }, nil } -func (k Keeper) GeneralKeyShare( +func (k Keeper) GeneralKeyshare( goCtx context.Context, - req *types.QueryGeneralKeyShareRequest, -) (*types.QueryGeneralKeyShareResponse, error) { + req *types.QueryGeneralKeyshareRequest, +) (*types.QueryGeneralKeyshareResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -67,5 +67,5 @@ func (k Keeper) GeneralKeyShare( return nil, status.Error(codes.NotFound, "not found") } - return &types.QueryGeneralKeyShareResponse{GeneralKeyShare: val}, nil + return &types.QueryGeneralKeyshareResponse{GeneralKeyshare: val}, nil } diff --git a/x/keyshare/keeper/query_general_key_share_test.go b/x/keyshare/keeper/query_general_key_share_test.go index 5611301a..627df862 100644 --- a/x/keyshare/keeper/query_general_key_share_test.go +++ b/x/keyshare/keeper/query_general_key_share_test.go @@ -24,31 +24,31 @@ func TestGeneralKeyShareQuerySingle(t *testing.T) { msgs := createNGeneralKeyShares(&keeper, ctx, 2) for _, tc := range []struct { desc string - request *types.QueryGeneralKeyShareRequest - response *types.QueryGeneralKeyShareResponse + request *types.QueryGeneralKeyshareRequest + response *types.QueryGeneralKeyshareResponse err error }{ { desc: "First", - request: &types.QueryGeneralKeyShareRequest{ + request: &types.QueryGeneralKeyshareRequest{ Validator: msgs[0].Validator, IdType: msgs[0].IdType, IdValue: msgs[0].IdValue, }, - response: &types.QueryGeneralKeyShareResponse{GeneralKeyShare: msgs[0]}, + response: &types.QueryGeneralKeyshareResponse{GeneralKeyshare: msgs[0]}, }, { desc: "Second", - request: &types.QueryGeneralKeyShareRequest{ + request: &types.QueryGeneralKeyshareRequest{ Validator: msgs[1].Validator, IdType: msgs[1].IdType, IdValue: msgs[1].IdValue, }, - response: &types.QueryGeneralKeyShareResponse{GeneralKeyShare: msgs[1]}, + response: &types.QueryGeneralKeyshareResponse{GeneralKeyshare: msgs[1]}, }, { desc: "KeyNotFound", - request: &types.QueryGeneralKeyShareRequest{ + request: &types.QueryGeneralKeyshareRequest{ Validator: strconv.Itoa(100000), IdType: strconv.Itoa(100000), IdValue: strconv.Itoa(100000), @@ -61,7 +61,7 @@ func TestGeneralKeyShareQuerySingle(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.GeneralKeyShare(wctx, tc.request) + response, err := keeper.GeneralKeyshare(wctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) } else { @@ -81,13 +81,13 @@ func TestGeneralKeyShareQueryAllNoPagination(t *testing.T) { msgs := createNGeneralKeyShares(&keeper, ctx, 10) for _, tc := range []struct { desc string - request *types.QueryGeneralKeyShareAllRequest - response *types.QueryGeneralKeyShareAllResponse + request *types.QueryGeneralKeyshareAllRequest + response *types.QueryGeneralKeyshareAllResponse err error }{ { desc: "QueryAllGeneralKeyShare", - request: &types.QueryGeneralKeyShareAllRequest{ + request: &types.QueryGeneralKeyshareAllRequest{ Pagination: &query.PageRequest{ Key: nil, Offset: 0, @@ -96,8 +96,8 @@ func TestGeneralKeyShareQueryAllNoPagination(t *testing.T) { Reverse: false, }, }, - response: &types.QueryGeneralKeyShareAllResponse{ - GeneralKeyShare: msgs, + response: &types.QueryGeneralKeyshareAllResponse{ + GeneralKeyshare: msgs, Pagination: &query.PageResponse{ NextKey: nil, Total: 10, @@ -106,7 +106,7 @@ func TestGeneralKeyShareQueryAllNoPagination(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.GeneralKeyShareAll(wctx, tc.request) + response, err := keeper.GeneralKeyshareAll(wctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) } else { @@ -130,8 +130,8 @@ func TestGeneralKeyShareQueryPaginated(t *testing.T) { offset, limit uint64, total bool, - ) *types.QueryGeneralKeyShareAllRequest { - return &types.QueryGeneralKeyShareAllRequest{ + ) *types.QueryGeneralKeyshareAllRequest { + return &types.QueryGeneralKeyshareAllRequest{ Pagination: &query.PageRequest{ Key: next, Offset: offset, @@ -143,12 +143,12 @@ func TestGeneralKeyShareQueryPaginated(t *testing.T) { t.Run("ByOffset", func(t *testing.T) { step := 2 for i := 0; i < len(msgs); i += step { - resp, err := keeper.GeneralKeyShareAll(wctx, request(nil, uint64(i), uint64(step), false)) + resp, err := keeper.GeneralKeyshareAll(wctx, request(nil, uint64(i), uint64(step), false)) require.NoError(t, err) - require.LessOrEqual(t, len(resp.GeneralKeyShare), step) + require.LessOrEqual(t, len(resp.GeneralKeyshare), step) require.Subset(t, nullify.Fill(msgs), - nullify.Fill(resp.GeneralKeyShare), + nullify.Fill(resp.GeneralKeyshare), ) } }) @@ -156,27 +156,27 @@ func TestGeneralKeyShareQueryPaginated(t *testing.T) { step := 2 var next []byte for i := 0; i < len(msgs); i += step { - resp, err := keeper.GeneralKeyShareAll(wctx, request(next, 0, uint64(step), false)) + resp, err := keeper.GeneralKeyshareAll(wctx, request(next, 0, uint64(step), false)) require.NoError(t, err) - require.LessOrEqual(t, len(resp.GeneralKeyShare), step) + require.LessOrEqual(t, len(resp.GeneralKeyshare), step) require.Subset(t, nullify.Fill(msgs), - nullify.Fill(resp.GeneralKeyShare), + nullify.Fill(resp.GeneralKeyshare), ) next = resp.Pagination.NextKey } }) t.Run("Total", func(t *testing.T) { - resp, err := keeper.GeneralKeyShareAll(wctx, request(nil, 0, 0, true)) + resp, err := keeper.GeneralKeyshareAll(wctx, request(nil, 0, 0, true)) require.NoError(t, err) require.Equal(t, len(msgs), int(resp.Pagination.Total)) require.ElementsMatch(t, nullify.Fill(msgs), - nullify.Fill(resp.GeneralKeyShare), + nullify.Fill(resp.GeneralKeyshare), ) }) t.Run("InvalidRequest", func(t *testing.T) { - _, err := keeper.GeneralKeyShareAll(wctx, nil) + _, err := keeper.GeneralKeyshareAll(wctx, nil) require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) }) } diff --git a/x/keyshare/keeper/query_key_share.go b/x/keyshare/keeper/query_key_share.go index 36dabfb8..629a9845 100644 --- a/x/keyshare/keeper/query_key_share.go +++ b/x/keyshare/keeper/query_key_share.go @@ -15,15 +15,15 @@ import ( ) // KeyShareAll returns the list of all keyshares submitted -func (k Keeper) KeyShareAll( +func (k Keeper) KeyshareAll( c context.Context, - req *types.QueryKeyShareAllRequest, -) (*types.QueryKeyShareAllResponse, error) { + req *types.QueryKeyshareAllRequest, +) (*types.QueryKeyshareAllResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } - var keyShares []types.KeyShare + var keyShares []types.Keyshare ctx := sdk.UnwrapSDKContext(c) storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) @@ -31,7 +31,7 @@ func (k Keeper) KeyShareAll( keyShareStore := prefix.NewStore(store, types.KeyPrefix(types.KeyShareKeyPrefix)) pageRes, err := query.Paginate(keyShareStore, req.Pagination, func(key []byte, value []byte) error { - var keyShare types.KeyShare + var keyShare types.Keyshare if err := k.cdc.Unmarshal(value, &keyShare); err != nil { return err } @@ -44,14 +44,14 @@ func (k Keeper) KeyShareAll( return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryKeyShareAllResponse{KeyShare: keyShares, Pagination: pageRes}, nil + return &types.QueryKeyshareAllResponse{Keyshare: keyShares, Pagination: pageRes}, nil } // KeyShare returns a single keyshare submitted by a particular validator for a particular block height -func (k Keeper) KeyShare( +func (k Keeper) Keyshare( c context.Context, - req *types.QueryKeyShareRequest, -) (*types.QueryKeyShareResponse, error) { + req *types.QueryKeyshareRequest, +) (*types.QueryKeyshareResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -66,5 +66,5 @@ func (k Keeper) KeyShare( return nil, status.Error(codes.NotFound, "not found") } - return &types.QueryKeyShareResponse{KeyShare: val}, nil + return &types.QueryKeyshareResponse{Keyshare: val}, nil } diff --git a/x/keyshare/keeper/query_key_share_test.go b/x/keyshare/keeper/query_key_share_test.go index 1d0b2151..13e6cd15 100644 --- a/x/keyshare/keeper/query_key_share_test.go +++ b/x/keyshare/keeper/query_key_share_test.go @@ -27,29 +27,29 @@ func TestKeyShareQuerySingle(t *testing.T) { msgs := createNKeyShares(&keeper, ctx, 2) for _, tc := range []struct { desc string - request *types.QueryKeyShareRequest - response *types.QueryKeyShareResponse + request *types.QueryKeyshareRequest + response *types.QueryKeyshareResponse err error }{ { desc: "First", - request: &types.QueryKeyShareRequest{ + request: &types.QueryKeyshareRequest{ Validator: msgs[0].Validator, BlockHeight: msgs[0].BlockHeight, }, - response: &types.QueryKeyShareResponse{KeyShare: msgs[0]}, + response: &types.QueryKeyshareResponse{Keyshare: msgs[0]}, }, { desc: "Second", - request: &types.QueryKeyShareRequest{ + request: &types.QueryKeyshareRequest{ Validator: msgs[1].Validator, BlockHeight: msgs[1].BlockHeight, }, - response: &types.QueryKeyShareResponse{KeyShare: msgs[1]}, + response: &types.QueryKeyshareResponse{Keyshare: msgs[1]}, }, { desc: "KeyNotFound", - request: &types.QueryKeyShareRequest{ + request: &types.QueryKeyshareRequest{ Validator: sample.AccAddress(), BlockHeight: rand.Uint64(), }, @@ -61,7 +61,7 @@ func TestKeyShareQuerySingle(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.KeyShare(wctx, tc.request) + response, err := keeper.Keyshare(wctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) } else { @@ -81,13 +81,13 @@ func TestKeyShareQueryAllNoPagination(t *testing.T) { msgs := createNKeyShares(&keeper, ctx, 10) for _, tc := range []struct { desc string - request *types.QueryKeyShareAllRequest - response *types.QueryKeyShareAllResponse + request *types.QueryKeyshareAllRequest + response *types.QueryKeyshareAllResponse err error }{ { desc: "QueryAllKeyShare", - request: &types.QueryKeyShareAllRequest{ + request: &types.QueryKeyshareAllRequest{ Pagination: &query.PageRequest{ Key: nil, Offset: 0, @@ -96,8 +96,8 @@ func TestKeyShareQueryAllNoPagination(t *testing.T) { Reverse: false, }, }, - response: &types.QueryKeyShareAllResponse{ - KeyShare: msgs, + response: &types.QueryKeyshareAllResponse{ + Keyshare: msgs, Pagination: &query.PageResponse{ NextKey: nil, Total: 10, @@ -106,7 +106,7 @@ func TestKeyShareQueryAllNoPagination(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.KeyShareAll(wctx, tc.request) + response, err := keeper.KeyshareAll(wctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) } else { @@ -130,8 +130,8 @@ func TestKeyShareQueryPaginated(t *testing.T) { offset, limit uint64, total bool, - ) *types.QueryKeyShareAllRequest { - return &types.QueryKeyShareAllRequest{ + ) *types.QueryKeyshareAllRequest { + return &types.QueryKeyshareAllRequest{ Pagination: &query.PageRequest{ Key: next, Offset: offset, @@ -143,12 +143,12 @@ func TestKeyShareQueryPaginated(t *testing.T) { t.Run("ByOffset", func(t *testing.T) { step := 2 for i := 0; i < len(msgs); i += step { - resp, err := keeper.KeyShareAll(wctx, request(nil, uint64(i), uint64(step), false)) + resp, err := keeper.KeyshareAll(wctx, request(nil, uint64(i), uint64(step), false)) require.NoError(t, err) - require.LessOrEqual(t, len(resp.KeyShare), step) + require.LessOrEqual(t, len(resp.Keyshare), step) require.Subset(t, nullify.Fill(msgs), - nullify.Fill(resp.KeyShare), + nullify.Fill(resp.Keyshare), ) } }) @@ -156,27 +156,27 @@ func TestKeyShareQueryPaginated(t *testing.T) { step := 2 var next []byte for i := 0; i < len(msgs); i += step { - resp, err := keeper.KeyShareAll(wctx, request(next, 0, uint64(step), false)) + resp, err := keeper.KeyshareAll(wctx, request(next, 0, uint64(step), false)) require.NoError(t, err) - require.LessOrEqual(t, len(resp.KeyShare), step) + require.LessOrEqual(t, len(resp.Keyshare), step) require.Subset(t, nullify.Fill(msgs), - nullify.Fill(resp.KeyShare), + nullify.Fill(resp.Keyshare), ) next = resp.Pagination.NextKey } }) t.Run("Total", func(t *testing.T) { - resp, err := keeper.KeyShareAll(wctx, request(nil, 0, 0, true)) + resp, err := keeper.KeyshareAll(wctx, request(nil, 0, 0, true)) require.NoError(t, err) require.Equal(t, len(msgs), int(resp.Pagination.Total)) require.ElementsMatch(t, nullify.Fill(msgs), - nullify.Fill(resp.KeyShare), + nullify.Fill(resp.Keyshare), ) }) t.Run("InvalidRequest", func(t *testing.T) { - _, err := keeper.KeyShareAll(wctx, nil) + _, err := keeper.KeyshareAll(wctx, nil) require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) }) } diff --git a/x/keyshare/keeper/query_pub_key.go b/x/keyshare/keeper/query_pub_key.go index 5f5c174b..98a43835 100644 --- a/x/keyshare/keeper/query_pub_key.go +++ b/x/keyshare/keeper/query_pub_key.go @@ -13,7 +13,7 @@ import ( ) // PubKey returns the lates public keys -func (k Keeper) PubKey(goCtx context.Context, req *types.QueryPubKeyRequest) (*types.QueryPubKeyResponse, error) { +func (k Keeper) Pubkey(goCtx context.Context, req *types.QueryPubkeyRequest) (*types.QueryPubkeyResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) if req == nil { @@ -36,5 +36,5 @@ func (k Keeper) PubKey(goCtx context.Context, req *types.QueryPubKeyRequest) (*t k.cdc.MustUnmarshal(b, &queuedPubKey) } - return &types.QueryPubKeyResponse{ActivePubKey: activePubKey, QueuedPubKey: queuedPubKey}, nil + return &types.QueryPubkeyResponse{ActivePubkey: activePubKey, QueuedPubkey: queuedPubKey}, nil } diff --git a/x/keyshare/keeper/query_pub_key_test.go b/x/keyshare/keeper/query_pub_key_test.go index 6cac3ee5..37892a66 100644 --- a/x/keyshare/keeper/query_pub_key_test.go +++ b/x/keyshare/keeper/query_pub_key_test.go @@ -1,6 +1,8 @@ package keeper_test import ( + "testing" + keepertest "github.com/Fairblock/fairyring/testutil/keeper" "github.com/Fairblock/fairyring/testutil/nullify" "github.com/Fairblock/fairyring/x/keyshare/types" @@ -8,7 +10,6 @@ import ( "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "testing" ) func TestPubKeyQuery(t *testing.T) { @@ -18,16 +19,16 @@ func TestPubKeyQuery(t *testing.T) { queuedPubKey := createQueuedPubKeys(&keeper, wctx) for _, tc := range []struct { desc string - request *types.QueryPubKeyRequest - response *types.QueryPubKeyResponse + request *types.QueryPubkeyRequest + response *types.QueryPubkeyResponse err error }{ { desc: "QueryPubKey", - request: &types.QueryPubKeyRequest{}, - response: &types.QueryPubKeyResponse{ - ActivePubKey: activePubKey, - QueuedPubKey: queuedPubKey, + request: &types.QueryPubkeyRequest{}, + response: &types.QueryPubkeyResponse{ + ActivePubkey: activePubKey, + QueuedPubkey: queuedPubKey, }, }, { diff --git a/x/keyshare/keeper/query_verifiable_randomness_test.go b/x/keyshare/keeper/query_verifiable_randomness_test.go index dd1122c2..3619c45a 100644 --- a/x/keyshare/keeper/query_verifiable_randomness_test.go +++ b/x/keyshare/keeper/query_verifiable_randomness_test.go @@ -52,7 +52,7 @@ func TestVerifiableRandomnessQuery(t *testing.T) { randomHeight := rand.Uint64() - keeper.SetAggregatedKeyShare(ctx, types.AggregatedKeyShare{ + keeper.SetAggregatedKeyShare(ctx, types.DecryptionKey{ Height: randomHeight, Data: "NotHexString", }) @@ -96,7 +96,7 @@ func TestVerifiableRandomnessQuery(t *testing.T) { ) } }) - keeper.SetAggregatedKeyShare(ctx, types.AggregatedKeyShare{ + keeper.SetAggregatedKeyShare(ctx, types.DecryptionKey{ Height: randomHeight + 1, Data: randomData, }) diff --git a/x/keyshare/module/autocli.go b/x/keyshare/module/autocli.go index 81a95502..d25b3cc1 100644 --- a/x/keyshare/module/autocli.go +++ b/x/keyshare/module/autocli.go @@ -29,29 +29,29 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "index"}}, }, { - RpcMethod: "KeyShareAll", - Use: "list-key-share", + RpcMethod: "KeyshareAll", + Use: "list-keyshares", Short: "List all key shares of all validators", }, { - RpcMethod: "KeyShare", - Use: "show-key-share [validator] [block-height]", + RpcMethod: "Keyshare", + Use: "show-keyshare [validator] [block-height]", Short: "Show the key share of a particular validator for a particular block height", PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "validator"}, {ProtoField: "block_height"}}, }, { - RpcMethod: "AggregatedKeyShareAll", - Use: "list-aggregated-key-share", - Short: "List all aggregated key shares for all blocks", + RpcMethod: "DecryptionKeyAll", + Use: "list-decryption-keys", + Short: "List all decryption keys for all blocks", }, { - RpcMethod: "AggregatedKeyShare", - Use: "show-aggregated-key-share [height]", - Short: "Shows a aggregated key share for a particular block", + RpcMethod: "DecryptionKey", + Use: "show-decryption-key [height]", + Short: "Shows a decryption key for a particular block", PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "height"}}, }, { - RpcMethod: "PubKey", + RpcMethod: "Pubkey", Use: "show-active-pub-key", Short: "Show the active and queued public key", }, @@ -67,13 +67,13 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "target"}}, }, { - RpcMethod: "GeneralKeyShareAll", - Use: "list-general-key-share", + RpcMethod: "GeneralKeyshareAll", + Use: "list-general-keyshares", Short: "List all GeneralKeyShare", }, { - RpcMethod: "GeneralKeyShare", - Use: "show-general-key-share [validator] [id-type] [id-value]", + RpcMethod: "GeneralKeyshare", + Use: "show-general-keyshare [validator] [id-type] [id-value]", Short: "Shows a General Key Share", PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "validator"}, {ProtoField: "id_type"}, {ProtoField: "id_value"}}, }, diff --git a/x/keyshare/module/genesis.go b/x/keyshare/module/genesis.go index 50e6d8a5..17c43cc7 100644 --- a/x/keyshare/module/genesis.go +++ b/x/keyshare/module/genesis.go @@ -16,11 +16,11 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) k.SetValidatorSet(ctx, elem) } // Set all the keyShare - for _, elem := range genState.KeyShareList { + for _, elem := range genState.KeyshareList { k.SetKeyShare(ctx, elem) } // Set all the aggregatedKeyShare - for _, elem := range genState.AggregatedKeyShareList { + for _, elem := range genState.DecryptionKeyList { k.SetAggregatedKeyShare(ctx, elem) } // Set actuve public key @@ -33,7 +33,7 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) k.SetAuthorizedAddress(ctx, elem) } // Set all the generalKeyShare - for _, elem := range genState.GeneralKeyShareList { + for _, elem := range genState.GeneralKeyshareList { k.SetGeneralKeyShare(ctx, elem) } @@ -63,8 +63,8 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { genesis.PortId = k.GetPort(ctx) genesis.ValidatorSetList = k.GetAllValidatorSet(ctx) - genesis.KeyShareList = k.GetAllKeyShare(ctx) - genesis.AggregatedKeyShareList = k.GetAllAggregatedKeyShare(ctx) + genesis.KeyshareList = k.GetAllKeyShare(ctx) + genesis.DecryptionKeyList = k.GetAllAggregatedKeyShare(ctx) akey, found := k.GetActivePubKey(ctx) if found { @@ -76,7 +76,7 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { } genesis.AuthorizedAddressList = k.GetAllAuthorizedAddress(ctx) - genesis.GeneralKeyShareList = k.GetAllGeneralKeyShare(ctx) + genesis.GeneralKeyshareList = k.GetAllGeneralKeyShare(ctx) // this line is used by starport scaffolding # genesis/module/export genesis.RequestCount, _ = strconv.ParseUint(k.GetRequestCount(ctx), 10, 64) diff --git a/x/keyshare/module/genesis_test.go b/x/keyshare/module/genesis_test.go index f51956c4..5785060e 100644 --- a/x/keyshare/module/genesis_test.go +++ b/x/keyshare/module/genesis_test.go @@ -15,7 +15,7 @@ func TestGenesis(t *testing.T) { genesisState := types.GenesisState{ Params: types.DefaultParams(), PortId: types.PortID, - AggregatedKeyShareList: []types.AggregatedKeyShare{ + DecryptionKeyList: []types.DecryptionKey{ { Height: 0, }, @@ -36,6 +36,6 @@ func TestGenesis(t *testing.T) { require.Equal(t, genesisState.PortId, got.PortId) - require.ElementsMatch(t, genesisState.AggregatedKeyShareList, got.AggregatedKeyShareList) + require.ElementsMatch(t, genesisState.DecryptionKeyList, got.DecryptionKeyList) // this line is used by starport scaffolding # genesis/test/assert } diff --git a/x/keyshare/module/module.go b/x/keyshare/module/module.go index f08d5eb1..cd41764b 100644 --- a/x/keyshare/module/module.go +++ b/x/keyshare/module/module.go @@ -205,7 +205,7 @@ func (am AppModule) BeginBlock(cctx context.Context) error { qc, foundQc := am.keeper.GetQueuedCommitments(ctx) if foundAk { - am.pepKeeper.SetActivePubKey(ctx, commontypes.ActivePublicKey{ + am.pepKeeper.SetActivePubkey(ctx, commontypes.ActivePublicKey{ PublicKey: ak.PublicKey, Creator: ak.Creator, Expiry: ak.Expiry, @@ -213,11 +213,11 @@ func (am AppModule) BeginBlock(cctx context.Context) error { if ak.Expiry <= height { am.keeper.DeleteActivePubKey(ctx) - am.pepKeeper.DeleteActivePubKey(ctx) + am.pepKeeper.DeleteActivePubkey(ctx) am.keeper.DeleteActiveCommitments(ctx) } else { if foundQk { - am.pepKeeper.SetQueuedPubKey(ctx, commontypes.QueuedPublicKey{ + am.pepKeeper.SetQueuedPubkey(ctx, commontypes.QueuedPublicKey{ PublicKey: qk.PublicKey, Creator: qk.Creator, Expiry: qk.Expiry, @@ -230,7 +230,7 @@ func (am AppModule) BeginBlock(cctx context.Context) error { if foundQk { if qk.Expiry > height { am.keeper.SetActivePubKey(ctx, types.ActivePubKey(qk)) - am.pepKeeper.SetActivePubKey(ctx, commontypes.ActivePublicKey{ + am.pepKeeper.SetActivePubkey(ctx, commontypes.ActivePublicKey{ PublicKey: qk.PublicKey, Creator: qk.Creator, Expiry: qk.Expiry, @@ -240,7 +240,7 @@ func (am AppModule) BeginBlock(cctx context.Context) error { } } am.keeper.DeleteQueuedPubKey(ctx) - am.pepKeeper.DeleteQueuedPubKey(ctx) + am.pepKeeper.DeleteQueuedPubkey(ctx) if foundQc { am.keeper.DeleteQueuedCommitments(ctx) } diff --git a/x/keyshare/module/module_ibc.go b/x/keyshare/module/module_ibc.go index 4bad5be8..032cd354 100644 --- a/x/keyshare/module/module_ibc.go +++ b/x/keyshare/module/module_ibc.go @@ -152,7 +152,7 @@ func (im IBCModule) OnRecvPacket( switch packet := modulePacketData.Packet.(type) { case *types.KeysharePacketData_RequestDecryptionKeyPacket: - packetAck, err := im.keeper.OnRecvRequestAggrKeysharePacket(ctx, modulePacket, *packet.RequestDecryptionKeyPacket) + packetAck, err := im.keeper.OnRecvRequestDecryptionKeyPacket(ctx, modulePacket, *packet.RequestDecryptionKeyPacket) if err != nil { ack = channeltypes.NewErrorAcknowledgement(err) } else { @@ -171,7 +171,7 @@ func (im IBCModule) OnRecvPacket( ) case *types.KeysharePacketData_RequestPrivateDecryptionKeyPacket: - packetAck, err := im.keeper.OnRecvRequestPrivateKeysharePacket(ctx, modulePacket, *packet.RequestPrivateDecryptionKeyPacket) + packetAck, err := im.keeper.OnRecvRequestPrivateDecryptionKeyPacket(ctx, modulePacket, *packet.RequestPrivateDecryptionKeyPacket) if err != nil { ack = channeltypes.NewErrorAcknowledgement(err) } else { @@ -190,7 +190,7 @@ func (im IBCModule) OnRecvPacket( ) case *types.KeysharePacketData_GetPrivateDecryptionKeyPacket: - packetAck, err := im.keeper.OnRecvGetPrivateKeysharePacket(ctx, modulePacket, *packet.GetPrivateDecryptionKeyPacket) + packetAck, err := im.keeper.OnRecvGetPrivateDecryptionKeyPacket(ctx, modulePacket, *packet.GetPrivateDecryptionKeyPacket) if err != nil { ack = channeltypes.NewErrorAcknowledgement(err) } else { @@ -206,7 +206,7 @@ func (im IBCModule) OnRecvPacket( ), ) case *types.KeysharePacketData_GetDecryptionKeyPacket: - packetAck, err := im.keeper.OnRecvGetAggrKeysharePacket(ctx, modulePacket, *packet.GetDecryptionKeyPacket) + packetAck, err := im.keeper.OnRecvGetDecryptionKeyPacket(ctx, modulePacket, *packet.GetDecryptionKeyPacket) if err != nil { ack = channeltypes.NewErrorAcknowledgement(err) } else { @@ -274,7 +274,7 @@ func (im IBCModule) OnAcknowledgementPacket( switch packet := modulePacketData.Packet.(type) { case *types.KeysharePacketData_DecryptionKeyDataPacket: - err := im.keeper.OnAcknowledgementAggrKeyshareDataPacket(ctx, modulePacket, *packet.DecryptionKeyDataPacket, ack) + err := im.keeper.OnAcknowledgementDecryptionKeyDataPacket(ctx, modulePacket, *packet.DecryptionKeyDataPacket, ack) if err != nil { return err } @@ -328,19 +328,19 @@ func (im IBCModule) OnTimeoutPacket( switch packet := modulePacketData.Packet.(type) { case *types.KeysharePacketData_RequestDecryptionKeyPacket: - err := im.keeper.OnTimeoutRequestAggrKeysharePacket(ctx, modulePacket, *packet.RequestDecryptionKeyPacket) + err := im.keeper.OnTimeoutRequestDecryptionKeyPacket(ctx, modulePacket, *packet.RequestDecryptionKeyPacket) if err != nil { return err } case *types.KeysharePacketData_GetDecryptionKeyPacket: - err := im.keeper.OnTimeoutGetAggrKeysharePacket(ctx, modulePacket, *packet.GetDecryptionKeyPacket) + err := im.keeper.OnTimeoutGetDecryptionKeyPacket(ctx, modulePacket, *packet.GetDecryptionKeyPacket) if err != nil { return err } case *types.KeysharePacketData_DecryptionKeyDataPacket: - err := im.keeper.OnTimeoutAggrKeyshareDataPacket(ctx, modulePacket, *packet.DecryptionKeyDataPacket) + err := im.keeper.OnTimeoutDecryptionKeyDataPacket(ctx, modulePacket, *packet.DecryptionKeyDataPacket) if err != nil { return err } diff --git a/x/keyshare/types/authorized_address.pb.go b/x/keyshare/types/authorized_address.pb.go index b4429a59..f6b6ef3e 100644 --- a/x/keyshare/types/authorized_address.pb.go +++ b/x/keyshare/types/authorized_address.pb.go @@ -22,7 +22,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// AuthorizedAddress defines if an address is authorized to submit pubkeys +// AuthorizedAddress defines if an address is authorized to submit keyshares type AuthorizedAddress struct { Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` IsAuthorized bool `protobuf:"varint,2,opt,name=is_authorized,json=isAuthorized,proto3" json:"is_authorized,omitempty"` diff --git a/x/keyshare/types/codec.go b/x/keyshare/types/codec.go index 7e1191b0..f911ac81 100644 --- a/x/keyshare/types/codec.go +++ b/x/keyshare/types/codec.go @@ -28,7 +28,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgDeleteAuthorizedAddress{}, ) registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgSubmitGeneralKeyShare{}, + &MsgSubmitGeneralKeyshare{}, ) registry.RegisterImplementations((*sdk.Msg)(nil), &MsgOverrideLatestPubKey{}, diff --git a/x/keyshare/types/aggregated_key_share.pb.go b/x/keyshare/types/decryption_key.pb.go similarity index 52% rename from x/keyshare/types/aggregated_key_share.pb.go rename to x/keyshare/types/decryption_key.pb.go index 1b42cd94..6d9fa778 100644 --- a/x/keyshare/types/aggregated_key_share.pb.go +++ b/x/keyshare/types/decryption_key.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fairyring/keyshare/aggregated_key_share.proto +// source: fairyring/keyshare/decryption_key.proto package types @@ -22,24 +22,24 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// AggregatedKeyShare defines the structure and height for an aggregated keyshare -type AggregatedKeyShare struct { +// Decryption key defines the structure and height for a decryption key +type DecryptionKey struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` } -func (m *AggregatedKeyShare) Reset() { *m = AggregatedKeyShare{} } -func (m *AggregatedKeyShare) String() string { return proto.CompactTextString(m) } -func (*AggregatedKeyShare) ProtoMessage() {} -func (*AggregatedKeyShare) Descriptor() ([]byte, []int) { - return fileDescriptor_9b3cffdc2704870f, []int{0} +func (m *DecryptionKey) Reset() { *m = DecryptionKey{} } +func (m *DecryptionKey) String() string { return proto.CompactTextString(m) } +func (*DecryptionKey) ProtoMessage() {} +func (*DecryptionKey) Descriptor() ([]byte, []int) { + return fileDescriptor_e56832c246acc99a, []int{0} } -func (m *AggregatedKeyShare) XXX_Unmarshal(b []byte) error { +func (m *DecryptionKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *AggregatedKeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *DecryptionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_AggregatedKeyShare.Marshal(b, m, deterministic) + return xxx_messageInfo_DecryptionKey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -49,26 +49,26 @@ func (m *AggregatedKeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *AggregatedKeyShare) XXX_Merge(src proto.Message) { - xxx_messageInfo_AggregatedKeyShare.Merge(m, src) +func (m *DecryptionKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_DecryptionKey.Merge(m, src) } -func (m *AggregatedKeyShare) XXX_Size() int { +func (m *DecryptionKey) XXX_Size() int { return m.Size() } -func (m *AggregatedKeyShare) XXX_DiscardUnknown() { - xxx_messageInfo_AggregatedKeyShare.DiscardUnknown(m) +func (m *DecryptionKey) XXX_DiscardUnknown() { + xxx_messageInfo_DecryptionKey.DiscardUnknown(m) } -var xxx_messageInfo_AggregatedKeyShare proto.InternalMessageInfo +var xxx_messageInfo_DecryptionKey proto.InternalMessageInfo -func (m *AggregatedKeyShare) GetHeight() uint64 { +func (m *DecryptionKey) GetHeight() uint64 { if m != nil { return m.Height } return 0 } -func (m *AggregatedKeyShare) GetData() string { +func (m *DecryptionKey) GetData() string { if m != nil { return m.Data } @@ -76,30 +76,30 @@ func (m *AggregatedKeyShare) GetData() string { } func init() { - proto.RegisterType((*AggregatedKeyShare)(nil), "fairyring.keyshare.AggregatedKeyShare") + proto.RegisterType((*DecryptionKey)(nil), "fairyring.keyshare.DecryptionKey") } func init() { - proto.RegisterFile("fairyring/keyshare/aggregated_key_share.proto", fileDescriptor_9b3cffdc2704870f) + proto.RegisterFile("fairyring/keyshare/decryption_key.proto", fileDescriptor_e56832c246acc99a) } -var fileDescriptor_9b3cffdc2704870f = []byte{ - // 190 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4d, 0x4b, 0xcc, 0x2c, +var fileDescriptor_e56832c246acc99a = []byte{ + // 184 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4f, 0x4b, 0xcc, 0x2c, 0xaa, 0x2c, 0xca, 0xcc, 0x4b, 0xd7, 0xcf, 0x4e, 0xad, 0x2c, 0xce, 0x48, 0x2c, 0x4a, 0xd5, 0x4f, - 0x4c, 0x4f, 0x2f, 0x4a, 0x4d, 0x4f, 0x2c, 0x49, 0x4d, 0x89, 0xcf, 0x4e, 0xad, 0x8c, 0x07, 0x0b, - 0xea, 0x15, 0x14, 0xe5, 0x97, 0xe4, 0x0b, 0x09, 0xc1, 0x95, 0xeb, 0xc1, 0x94, 0x2b, 0x39, 0x70, - 0x09, 0x39, 0xc2, 0x75, 0x78, 0xa7, 0x56, 0x06, 0x83, 0x44, 0x85, 0xc4, 0xb8, 0xd8, 0x32, 0x52, - 0x33, 0xd3, 0x33, 0x4a, 0x24, 0x18, 0x15, 0x18, 0x35, 0x58, 0x82, 0xa0, 0x3c, 0x21, 0x21, 0x2e, - 0x96, 0x94, 0xc4, 0x92, 0x44, 0x09, 0x26, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x30, 0xdb, 0xc9, 0xf3, - 0xc4, 0x23, 0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, - 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xf4, 0xd3, 0x33, 0x4b, 0x32, 0x4a, - 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xdd, 0x12, 0x33, 0x8b, 0x92, 0x72, 0xf2, 0x93, 0xb3, 0xf5, - 0x11, 0x6e, 0xae, 0x40, 0xb8, 0xba, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0xec, 0x4e, 0x63, - 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x4e, 0x9a, 0x8f, 0xd8, 0x00, 0x00, 0x00, + 0x49, 0x4d, 0x2e, 0xaa, 0x2c, 0x28, 0xc9, 0xcc, 0xcf, 0x8b, 0xcf, 0x4e, 0xad, 0xd4, 0x2b, 0x28, + 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x82, 0x2b, 0xd4, 0x83, 0x29, 0x54, 0xb2, 0xe6, 0xe2, 0x75, 0x81, + 0xab, 0xf5, 0x4e, 0xad, 0x14, 0x12, 0xe3, 0x62, 0xcb, 0x48, 0xcd, 0x4c, 0xcf, 0x28, 0x91, 0x60, + 0x54, 0x60, 0xd4, 0x60, 0x09, 0x82, 0xf2, 0x84, 0x84, 0xb8, 0x58, 0x52, 0x12, 0x4b, 0x12, 0x25, + 0x98, 0x14, 0x18, 0x35, 0x38, 0x83, 0xc0, 0x6c, 0x27, 0xcf, 0x13, 0x8f, 0xe4, 0x18, 0x2f, 0x3c, + 0x92, 0x63, 0x7c, 0xf0, 0x48, 0x8e, 0x71, 0xc2, 0x63, 0x39, 0x86, 0x0b, 0x8f, 0xe5, 0x18, 0x6e, + 0x3c, 0x96, 0x63, 0x88, 0xd2, 0x4f, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, + 0x77, 0x4b, 0xcc, 0x2c, 0x4a, 0xca, 0xc9, 0x4f, 0xce, 0xd6, 0x47, 0x38, 0xb4, 0x02, 0xe1, 0xd4, + 0x92, 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0xb0, 0x13, 0x8d, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, + 0x3d, 0xe7, 0x93, 0x1c, 0xcd, 0x00, 0x00, 0x00, } -func (m *AggregatedKeyShare) Marshal() (dAtA []byte, err error) { +func (m *DecryptionKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -109,12 +109,12 @@ func (m *AggregatedKeyShare) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *AggregatedKeyShare) MarshalTo(dAtA []byte) (int, error) { +func (m *DecryptionKey) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *AggregatedKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *DecryptionKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -122,20 +122,20 @@ func (m *AggregatedKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Data) > 0 { i -= len(m.Data) copy(dAtA[i:], m.Data) - i = encodeVarintAggregatedKeyShare(dAtA, i, uint64(len(m.Data))) + i = encodeVarintDecryptionKey(dAtA, i, uint64(len(m.Data))) i-- dAtA[i] = 0x12 } if m.Height != 0 { - i = encodeVarintAggregatedKeyShare(dAtA, i, uint64(m.Height)) + i = encodeVarintDecryptionKey(dAtA, i, uint64(m.Height)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func encodeVarintAggregatedKeyShare(dAtA []byte, offset int, v uint64) int { - offset -= sovAggregatedKeyShare(v) +func encodeVarintDecryptionKey(dAtA []byte, offset int, v uint64) int { + offset -= sovDecryptionKey(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -145,29 +145,29 @@ func encodeVarintAggregatedKeyShare(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *AggregatedKeyShare) Size() (n int) { +func (m *DecryptionKey) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Height != 0 { - n += 1 + sovAggregatedKeyShare(uint64(m.Height)) + n += 1 + sovDecryptionKey(uint64(m.Height)) } l = len(m.Data) if l > 0 { - n += 1 + l + sovAggregatedKeyShare(uint64(l)) + n += 1 + l + sovDecryptionKey(uint64(l)) } return n } -func sovAggregatedKeyShare(x uint64) (n int) { +func sovDecryptionKey(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozAggregatedKeyShare(x uint64) (n int) { - return sovAggregatedKeyShare(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozDecryptionKey(x uint64) (n int) { + return sovDecryptionKey(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *AggregatedKeyShare) Unmarshal(dAtA []byte) error { +func (m *DecryptionKey) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -175,7 +175,7 @@ func (m *AggregatedKeyShare) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowAggregatedKeyShare + return ErrIntOverflowDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -190,10 +190,10 @@ func (m *AggregatedKeyShare) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AggregatedKeyShare: wiretype end group for non-group") + return fmt.Errorf("proto: DecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AggregatedKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -203,7 +203,7 @@ func (m *AggregatedKeyShare) Unmarshal(dAtA []byte) error { m.Height = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowAggregatedKeyShare + return ErrIntOverflowDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -222,7 +222,7 @@ func (m *AggregatedKeyShare) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowAggregatedKeyShare + return ErrIntOverflowDecryptionKey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -236,11 +236,11 @@ func (m *AggregatedKeyShare) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthAggregatedKeyShare + return ErrInvalidLengthDecryptionKey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthAggregatedKeyShare + return ErrInvalidLengthDecryptionKey } if postIndex > l { return io.ErrUnexpectedEOF @@ -249,12 +249,12 @@ func (m *AggregatedKeyShare) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipAggregatedKeyShare(dAtA[iNdEx:]) + skippy, err := skipDecryptionKey(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthAggregatedKeyShare + return ErrInvalidLengthDecryptionKey } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -268,7 +268,7 @@ func (m *AggregatedKeyShare) Unmarshal(dAtA []byte) error { } return nil } -func skipAggregatedKeyShare(dAtA []byte) (n int, err error) { +func skipDecryptionKey(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -276,7 +276,7 @@ func skipAggregatedKeyShare(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowAggregatedKeyShare + return 0, ErrIntOverflowDecryptionKey } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -293,7 +293,7 @@ func skipAggregatedKeyShare(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowAggregatedKeyShare + return 0, ErrIntOverflowDecryptionKey } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -309,7 +309,7 @@ func skipAggregatedKeyShare(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowAggregatedKeyShare + return 0, ErrIntOverflowDecryptionKey } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -322,14 +322,14 @@ func skipAggregatedKeyShare(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthAggregatedKeyShare + return 0, ErrInvalidLengthDecryptionKey } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupAggregatedKeyShare + return 0, ErrUnexpectedEndOfGroupDecryptionKey } depth-- case 5: @@ -338,7 +338,7 @@ func skipAggregatedKeyShare(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthAggregatedKeyShare + return 0, ErrInvalidLengthDecryptionKey } if depth == 0 { return iNdEx, nil @@ -348,7 +348,7 @@ func skipAggregatedKeyShare(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthAggregatedKeyShare = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowAggregatedKeyShare = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupAggregatedKeyShare = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthDecryptionKey = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDecryptionKey = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDecryptionKey = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/keyshare/types/expected_keepers.go b/x/keyshare/types/expected_keepers.go index 46fbd2a8..41e81121 100644 --- a/x/keyshare/types/expected_keepers.go +++ b/x/keyshare/types/expected_keepers.go @@ -58,12 +58,12 @@ type GovKeeper interface { // PepKeeper defines the expected interface needed to get and set active and queued public keys type PepKeeper interface { - SetActivePubKey(ctx context.Context, activePubKey commontypes.ActivePublicKey) - SetQueuedPubKey(ctx context.Context, queuedPubKey commontypes.QueuedPublicKey) - GetActivePubKey(ctx context.Context) (val commontypes.ActivePublicKey, found bool) - GetQueuedPubKey(ctx context.Context) (val commontypes.QueuedPublicKey, found bool) - DeleteActivePubKey(ctx context.Context) - DeleteQueuedPubKey(ctx context.Context) + SetActivePubkey(ctx context.Context, activePubKey commontypes.ActivePublicKey) + SetQueuedPubkey(ctx context.Context, queuedPubKey commontypes.QueuedPublicKey) + GetActivePubkey(ctx context.Context) (val commontypes.ActivePublicKey, found bool) + GetQueuedPubkey(ctx context.Context) (val commontypes.QueuedPublicKey, found bool) + DeleteActivePubkey(ctx context.Context) + DeleteQueuedPubkey(ctx context.Context) SetEntry(ctx context.Context, val peptypes.IdentityExecutionEntry) GetEntry(ctx context.Context, reqID string) (val peptypes.IdentityExecutionEntry, found bool) RemoveEntry(ctx context.Context, reqID string) @@ -91,8 +91,8 @@ type PepKeeper interface { SetPrivateRequest(ctx context.Context, request peptypes.PrivateRequest) GetPrivateRequest(ctx context.Context, reqID string) (val peptypes.PrivateRequest, found bool) GetAllPrivateRequest(ctx context.Context) (list []peptypes.PrivateRequest) - GetAggregatedKeyShare(ctx context.Context, height uint64) (val peptypes.DecryptionKey, found bool) - SetAggregatedKeyShare(ctx context.Context, aggregatedKeyShare peptypes.DecryptionKey) + GetDecryptionKey(ctx context.Context, height uint64) (val peptypes.DecryptionKey, found bool) + SetDecryptionKey(ctx context.Context, aggregatedKeyShare peptypes.DecryptionKey) GetLatestHeight(ctx context.Context) string SetLatestHeight(ctx context.Context, height string) } diff --git a/x/keyshare/types/genesis.go b/x/keyshare/types/genesis.go index bdafacaf..4f984699 100644 --- a/x/keyshare/types/genesis.go +++ b/x/keyshare/types/genesis.go @@ -12,12 +12,12 @@ const DefaultIndex uint64 = 1 // DefaultGenesis returns the default genesis state func DefaultGenesis() *GenesisState { return &GenesisState{ - PortId: PortID, - AggregatedKeyShareList: []AggregatedKeyShare{}, - ValidatorSetList: []ValidatorSet{}, - KeyShareList: []KeyShare{}, - AuthorizedAddressList: []AuthorizedAddress{}, - GeneralKeyShareList: []GeneralKeyShare{}, + PortId: PortID, + DecryptionKeyList: []DecryptionKey{}, + ValidatorSetList: []ValidatorSet{}, + KeyshareList: []Keyshare{}, + AuthorizedAddressList: []AuthorizedAddress{}, + GeneralKeyshareList: []GeneralKeyshare{}, // this line is used by starport scaffolding # genesis/types/default Params: DefaultParams(), } @@ -32,7 +32,7 @@ func (gs GenesisState) Validate() error { // Check for duplicated index in aggregatedKeyShare aggregatedKeyShareIndexMap := make(map[string]struct{}) - for _, elem := range gs.AggregatedKeyShareList { + for _, elem := range gs.DecryptionKeyList { index := string(AggregatedKeyShareKey(elem.Height)) if _, ok := aggregatedKeyShareIndexMap[index]; ok { return fmt.Errorf("duplicated index for aggregatedKeyShare") @@ -66,7 +66,7 @@ func (gs GenesisState) Validate() error { // Check for duplicated index in keyShare keyShareIndexMap := make(map[string]struct{}) - for _, elem := range gs.KeyShareList { + for _, elem := range gs.KeyshareList { index := string(KeyShareKey(elem.Validator, elem.BlockHeight)) if _, ok := keyShareIndexMap[index]; ok { return fmt.Errorf("duplicated index for keyShare") @@ -87,7 +87,7 @@ func (gs GenesisState) Validate() error { // Check for duplicated index in generalKeyShare generalKeyShareIndexMap := make(map[string]struct{}) - for _, elem := range gs.GeneralKeyShareList { + for _, elem := range gs.GeneralKeyshareList { index := string(GeneralKeyShareKey(elem.Validator, elem.IdType, elem.IdValue)) if _, ok := generalKeyShareIndexMap[index]; ok { return fmt.Errorf("duplicated index for generalKeyShare") diff --git a/x/keyshare/types/genesis.pb.go b/x/keyshare/types/genesis.pb.go index 6ddd6c10..47334e51 100644 --- a/x/keyshare/types/genesis.pb.go +++ b/x/keyshare/types/genesis.pb.go @@ -27,16 +27,16 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // GenesisState defines the keyshare module's genesis state. type GenesisState struct { // params defines all the parameters of the module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - ValidatorSetList []ValidatorSet `protobuf:"bytes,3,rep,name=validator_set_list,json=validatorSetList,proto3" json:"validator_set_list"` - KeyShareList []KeyShare `protobuf:"bytes,4,rep,name=key_share_list,json=keyShareList,proto3" json:"key_share_list"` - AggregatedKeyShareList []AggregatedKeyShare `protobuf:"bytes,5,rep,name=aggregated_key_share_list,json=aggregatedKeyShareList,proto3" json:"aggregated_key_share_list"` - ActivePubKey ActivePubKey `protobuf:"bytes,6,opt,name=active_pub_key,json=activePubKey,proto3" json:"active_pub_key"` - QueuedPubKey QueuedPubKey `protobuf:"bytes,7,opt,name=queued_pub_key,json=queuedPubKey,proto3" json:"queued_pub_key"` - AuthorizedAddressList []AuthorizedAddress `protobuf:"bytes,8,rep,name=authorized_address_list,json=authorizedAddressList,proto3" json:"authorized_address_list"` - RequestCount uint64 `protobuf:"varint,9,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"` - GeneralKeyShareList []GeneralKeyShare `protobuf:"bytes,10,rep,name=general_key_share_list,json=generalKeyShareList,proto3" json:"general_key_share_list"` + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` + ValidatorSetList []ValidatorSet `protobuf:"bytes,3,rep,name=validator_set_list,json=validatorSetList,proto3" json:"validator_set_list"` + KeyshareList []Keyshare `protobuf:"bytes,4,rep,name=keyshare_list,json=keyshareList,proto3" json:"keyshare_list"` + DecryptionKeyList []DecryptionKey `protobuf:"bytes,5,rep,name=decryption_key_list,json=decryptionKeyList,proto3" json:"decryption_key_list"` + ActivePubKey ActivePubKey `protobuf:"bytes,6,opt,name=active_pub_key,json=activePubKey,proto3" json:"active_pub_key"` + QueuedPubKey QueuedPubKey `protobuf:"bytes,7,opt,name=queued_pub_key,json=queuedPubKey,proto3" json:"queued_pub_key"` + AuthorizedAddressList []AuthorizedAddress `protobuf:"bytes,8,rep,name=authorized_address_list,json=authorizedAddressList,proto3" json:"authorized_address_list"` + RequestCount uint64 `protobuf:"varint,9,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"` + GeneralKeyshareList []GeneralKeyshare `protobuf:"bytes,10,rep,name=general_keyshare_list,json=generalKeyshareList,proto3" json:"general_keyshare_list"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -93,16 +93,16 @@ func (m *GenesisState) GetValidatorSetList() []ValidatorSet { return nil } -func (m *GenesisState) GetKeyShareList() []KeyShare { +func (m *GenesisState) GetKeyshareList() []Keyshare { if m != nil { - return m.KeyShareList + return m.KeyshareList } return nil } -func (m *GenesisState) GetAggregatedKeyShareList() []AggregatedKeyShare { +func (m *GenesisState) GetDecryptionKeyList() []DecryptionKey { if m != nil { - return m.AggregatedKeyShareList + return m.DecryptionKeyList } return nil } @@ -135,9 +135,9 @@ func (m *GenesisState) GetRequestCount() uint64 { return 0 } -func (m *GenesisState) GetGeneralKeyShareList() []GeneralKeyShare { +func (m *GenesisState) GetGeneralKeyshareList() []GeneralKeyshare { if m != nil { - return m.GeneralKeyShareList + return m.GeneralKeyshareList } return nil } @@ -149,41 +149,40 @@ func init() { func init() { proto.RegisterFile("fairyring/keyshare/genesis.proto", fileDescriptor_6629804056e1ba8d) } var fileDescriptor_6629804056e1ba8d = []byte{ - // 534 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0xcf, 0x6e, 0xd3, 0x4e, - 0x10, 0xc7, 0xe3, 0x5f, 0xd3, 0xf4, 0x97, 0x6d, 0xa8, 0xc0, 0x40, 0x1b, 0x22, 0xe4, 0x5a, 0xad, - 0xa8, 0x22, 0x10, 0xb6, 0x54, 0xce, 0x1c, 0x12, 0x24, 0x4a, 0xd5, 0x1e, 0x4a, 0x82, 0x38, 0x70, - 0xc0, 0x5a, 0xdb, 0xc3, 0x66, 0x95, 0x3f, 0xeb, 0xac, 0xd7, 0x11, 0xe6, 0x29, 0x78, 0x0c, 0x8e, - 0x3c, 0x46, 0x8f, 0x3d, 0x72, 0x42, 0x28, 0x39, 0xf0, 0x04, 0xdc, 0x91, 0xd7, 0x1b, 0x37, 0x71, - 0x96, 0x8b, 0x35, 0x3b, 0xfb, 0x9d, 0xcf, 0xce, 0x7e, 0xd7, 0x83, 0xec, 0x4f, 0x98, 0xf2, 0x94, - 0xd3, 0x09, 0x71, 0x87, 0x90, 0xc6, 0x03, 0xcc, 0xc1, 0x25, 0x30, 0x81, 0x98, 0xc6, 0x4e, 0xc4, - 0x99, 0x60, 0xa6, 0x59, 0x28, 0x9c, 0xa5, 0xa2, 0x75, 0x0f, 0x8f, 0xe9, 0x84, 0xb9, 0xf2, 0x9b, - 0xcb, 0x5a, 0x0f, 0x08, 0x23, 0x4c, 0x86, 0x6e, 0x16, 0xa9, 0xec, 0xa1, 0x06, 0x1f, 0x61, 0x8e, - 0xc7, 0x8a, 0xde, 0x3a, 0xd1, 0x08, 0x66, 0x78, 0x44, 0x43, 0x2c, 0x18, 0xf7, 0x62, 0x10, 0x4a, - 0x77, 0xa4, 0xd1, 0x0d, 0x21, 0xf5, 0x64, 0xa4, 0x34, 0xcf, 0x35, 0x1a, 0x4c, 0x08, 0x07, 0x82, - 0x05, 0x84, 0x5e, 0x59, 0xae, 0xbb, 0x7a, 0x94, 0xf8, 0x99, 0x4e, 0x29, 0x9e, 0xe9, 0x80, 0x89, - 0x18, 0x30, 0x4e, 0xbf, 0x40, 0xe8, 0xe1, 0x30, 0xe4, 0x10, 0xab, 0x9b, 0x1c, 0xfd, 0xd9, 0x46, - 0x8d, 0xb3, 0xdc, 0xb9, 0xbe, 0xc0, 0x02, 0xcc, 0x97, 0xa8, 0x96, 0x5f, 0xb5, 0x69, 0xd8, 0x46, - 0x7b, 0xf7, 0xb4, 0xe5, 0x6c, 0x3a, 0xe9, 0x5c, 0x49, 0x45, 0xb7, 0x7e, 0xfd, 0xf3, 0xb0, 0xf2, - 0xed, 0xf7, 0xf7, 0xa7, 0x46, 0x4f, 0x15, 0x99, 0x07, 0x68, 0x27, 0x62, 0x5c, 0x78, 0x34, 0x6c, - 0xfe, 0x67, 0x1b, 0xed, 0x7a, 0xaf, 0x96, 0x2d, 0xcf, 0x43, 0xf3, 0x1d, 0x32, 0xd7, 0x1c, 0xf2, - 0x46, 0x34, 0x16, 0xcd, 0x2d, 0x7b, 0xab, 0xbd, 0x7b, 0x6a, 0xeb, 0xce, 0x78, 0xbf, 0x54, 0xf7, - 0x41, 0x74, 0xab, 0xd9, 0x49, 0xbd, 0xbb, 0xb3, 0x95, 0xdc, 0x25, 0x8d, 0x85, 0xf9, 0x06, 0xed, - 0x15, 0x06, 0xe5, 0xc4, 0xaa, 0x24, 0x3e, 0xd6, 0x11, 0x2f, 0x20, 0xed, 0x67, 0x81, 0xa2, 0x35, - 0x86, 0x6a, 0x2d, 0x49, 0x04, 0x3d, 0xd2, 0xb9, 0x9e, 0x43, 0xb7, 0x25, 0xf4, 0x44, 0x07, 0xed, - 0x14, 0x45, 0x25, 0xfc, 0x3e, 0xde, 0xd8, 0x91, 0x07, 0x5d, 0xa2, 0x3d, 0x1c, 0x08, 0x3a, 0x03, - 0x4f, 0x3d, 0x5b, 0xb3, 0x26, 0x8d, 0xd6, 0x9a, 0xd0, 0x91, 0xca, 0xab, 0xc4, 0xbf, 0x80, 0x74, - 0xd9, 0x36, 0x5e, 0xc9, 0x65, 0xb4, 0x69, 0x02, 0x09, 0x84, 0x05, 0x6d, 0xe7, 0xdf, 0xb4, 0xb7, - 0x52, 0xb9, 0x4e, 0x9b, 0xae, 0xe4, 0xcc, 0x00, 0x1d, 0x6c, 0xfe, 0x29, 0xb9, 0x05, 0xff, 0x4b, - 0x0b, 0x9e, 0x68, 0x9b, 0x2c, 0x4a, 0x3a, 0x79, 0x85, 0x62, 0x3f, 0xc4, 0xe5, 0x0d, 0x69, 0xc0, - 0x31, 0xba, 0xc3, 0x61, 0x9a, 0x40, 0x2c, 0xbc, 0x80, 0x25, 0x13, 0xd1, 0xac, 0xdb, 0x46, 0xbb, - 0xda, 0x6b, 0xa8, 0xe4, 0xab, 0x2c, 0x67, 0x7e, 0x44, 0xfb, 0xd9, 0x40, 0x73, 0x3c, 0x2a, 0xbf, - 0x05, 0x92, 0x8d, 0x1c, 0xeb, 0x1a, 0x39, 0xcb, 0x2b, 0x4a, 0x0f, 0x71, 0x9f, 0xac, 0xa7, 0xb3, - 0x26, 0xba, 0xe7, 0xd7, 0x73, 0xcb, 0xb8, 0x99, 0x5b, 0xc6, 0xaf, 0xb9, 0x65, 0x7c, 0x5d, 0x58, - 0x95, 0x9b, 0x85, 0x55, 0xf9, 0xb1, 0xb0, 0x2a, 0x1f, 0x5c, 0x42, 0xc5, 0x20, 0xf1, 0x9d, 0x80, - 0x8d, 0xdd, 0xd7, 0x98, 0x72, 0x7f, 0xc4, 0x82, 0xa1, 0x7b, 0x3b, 0x53, 0x9f, 0x6f, 0xa7, 0x4a, - 0xa4, 0x11, 0xc4, 0x7e, 0x4d, 0x4e, 0xd2, 0x8b, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd6, 0xa3, - 0x22, 0x09, 0x95, 0x04, 0x00, 0x00, + // 527 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0xc1, 0x6e, 0xd3, 0x30, + 0x18, 0xc7, 0x1b, 0xd6, 0x75, 0xd4, 0xeb, 0x10, 0xcb, 0x98, 0x16, 0x55, 0x28, 0xcb, 0x98, 0x80, + 0x0a, 0xa4, 0x44, 0x1a, 0x67, 0x0e, 0x2b, 0x88, 0x6a, 0xda, 0x0e, 0xa3, 0x43, 0x20, 0x21, 0xa1, + 0xc8, 0x49, 0x4c, 0x6a, 0xb5, 0x8d, 0x53, 0xdb, 0xa9, 0x08, 0x4f, 0xc1, 0x63, 0x70, 0xe4, 0x31, + 0x76, 0xdc, 0x91, 0x13, 0x42, 0xed, 0x81, 0xd7, 0x40, 0xb1, 0x9d, 0xb6, 0x59, 0x0d, 0x97, 0xca, + 0xfd, 0xfb, 0xf7, 0xfd, 0xfc, 0xd9, 0x8e, 0x81, 0xf3, 0x19, 0x62, 0x9a, 0x53, 0x9c, 0xc4, 0xde, + 0x10, 0xe5, 0x6c, 0x00, 0x29, 0xf2, 0x62, 0x94, 0x20, 0x86, 0x99, 0x9b, 0x52, 0xc2, 0x89, 0x69, + 0x2e, 0x08, 0xb7, 0x24, 0xda, 0xbb, 0x70, 0x8c, 0x13, 0xe2, 0x89, 0x5f, 0x89, 0xb5, 0x9f, 0x6b, + 0x44, 0x30, 0xe3, 0x03, 0x42, 0xf1, 0x57, 0x14, 0xf9, 0x30, 0x8a, 0x28, 0x62, 0xca, 0xd9, 0x7e, + 0xaa, 0x81, 0x23, 0x14, 0xd2, 0x3c, 0xe5, 0x98, 0x24, 0xfe, 0x10, 0xe5, 0x0a, 0x3c, 0xd2, 0x80, + 0xe5, 0x40, 0x21, 0x87, 0x1a, 0x24, 0x85, 0x14, 0x8e, 0xd9, 0xff, 0x80, 0x2c, 0x58, 0x2e, 0xf2, + 0x44, 0x03, 0x4c, 0xe1, 0x08, 0x47, 0x90, 0x13, 0xea, 0x33, 0xc4, 0x15, 0xf7, 0x20, 0x26, 0x31, + 0x11, 0x43, 0xaf, 0x18, 0xc9, 0xf4, 0xd1, 0x7c, 0x13, 0xb4, 0x7a, 0xf2, 0xc4, 0xae, 0x38, 0xe4, + 0xc8, 0x7c, 0x09, 0x1a, 0x72, 0x7d, 0xcb, 0x70, 0x8c, 0xce, 0xf6, 0x49, 0xdb, 0x5d, 0x3f, 0x41, + 0xf7, 0x52, 0x10, 0xdd, 0xe6, 0xf5, 0xaf, 0xc3, 0xda, 0xf7, 0x3f, 0x3f, 0x9e, 0x19, 0x7d, 0x55, + 0x64, 0x1e, 0x80, 0xad, 0x94, 0x50, 0xee, 0xe3, 0xc8, 0xba, 0xe3, 0x18, 0x9d, 0x66, 0xbf, 0x51, + 0xfc, 0x3d, 0x8b, 0xcc, 0x77, 0xc0, 0xac, 0x74, 0xe5, 0x8f, 0x30, 0xe3, 0xd6, 0x86, 0xb3, 0xd1, + 0xd9, 0x3e, 0x71, 0x74, 0x6b, 0xbc, 0x2f, 0xe9, 0x2b, 0xc4, 0xbb, 0xf5, 0x62, 0xa5, 0xfe, 0xfd, + 0xe9, 0x4a, 0x76, 0x81, 0x19, 0x37, 0x7b, 0x60, 0xa7, 0x2c, 0x90, 0xc2, 0xba, 0x10, 0x3e, 0xd4, + 0x09, 0xcf, 0xd5, 0x40, 0xc9, 0x5a, 0xe5, 0x84, 0x10, 0x7d, 0x00, 0x7b, 0xd5, 0x2b, 0x94, 0xba, + 0x4d, 0xa1, 0x3b, 0xd2, 0xe9, 0x5e, 0x2f, 0xf0, 0x73, 0x94, 0x2b, 0xe7, 0x6e, 0xb4, 0x1a, 0x0a, + 0xf1, 0x05, 0xb8, 0x07, 0x43, 0x8e, 0xa7, 0xc8, 0x4f, 0xb3, 0xa0, 0x10, 0x5b, 0x0d, 0x71, 0xae, + 0xda, 0x3d, 0x9f, 0x0a, 0xf2, 0x32, 0x0b, 0x96, 0xca, 0x16, 0x5c, 0xc9, 0x0a, 0xdb, 0x24, 0x43, + 0x19, 0x8a, 0x16, 0xb6, 0xad, 0x7f, 0xdb, 0xde, 0x0a, 0xb2, 0x6a, 0x9b, 0xac, 0x64, 0x66, 0x08, + 0x0e, 0xd6, 0x3f, 0x72, 0xb9, 0xf1, 0xbb, 0x62, 0xe3, 0x8f, 0xb5, 0x4d, 0x2e, 0x4a, 0x4e, 0x65, + 0x85, 0x72, 0xef, 0xc3, 0xdb, 0x13, 0xe2, 0x00, 0x8e, 0xc1, 0x0e, 0x45, 0x93, 0x0c, 0x31, 0xee, + 0x87, 0x24, 0x4b, 0xb8, 0xd5, 0x74, 0x8c, 0x4e, 0xbd, 0xdf, 0x52, 0xe1, 0xab, 0x22, 0x33, 0x3f, + 0x81, 0xfd, 0xe2, 0xdd, 0x52, 0x38, 0xf2, 0xab, 0xf7, 0x09, 0x44, 0x1f, 0xc7, 0xba, 0x3e, 0x7a, + 0xb2, 0xe0, 0xd6, 0xb5, 0xee, 0xc5, 0xd5, 0xb8, 0xe8, 0xa1, 0x7b, 0x76, 0x3d, 0xb3, 0x8d, 0x9b, + 0x99, 0x6d, 0xfc, 0x9e, 0xd9, 0xc6, 0xb7, 0xb9, 0x5d, 0xbb, 0x99, 0xdb, 0xb5, 0x9f, 0x73, 0xbb, + 0xf6, 0xd1, 0x8b, 0x31, 0x1f, 0x64, 0x81, 0x1b, 0x92, 0xb1, 0xf7, 0x06, 0x62, 0x1a, 0x8c, 0x48, + 0x38, 0xf4, 0x96, 0x4f, 0xea, 0xcb, 0xf2, 0x51, 0xf1, 0x3c, 0x45, 0x2c, 0x68, 0x88, 0x77, 0xf3, + 0xe2, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xed, 0x29, 0x75, 0x1e, 0x7b, 0x04, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -206,10 +205,10 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.GeneralKeyShareList) > 0 { - for iNdEx := len(m.GeneralKeyShareList) - 1; iNdEx >= 0; iNdEx-- { + if len(m.GeneralKeyshareList) > 0 { + for iNdEx := len(m.GeneralKeyshareList) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.GeneralKeyShareList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.GeneralKeyshareList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -259,10 +258,10 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i-- dAtA[i] = 0x32 - if len(m.AggregatedKeyShareList) > 0 { - for iNdEx := len(m.AggregatedKeyShareList) - 1; iNdEx >= 0; iNdEx-- { + if len(m.DecryptionKeyList) > 0 { + for iNdEx := len(m.DecryptionKeyList) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.AggregatedKeyShareList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.DecryptionKeyList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -273,10 +272,10 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x2a } } - if len(m.KeyShareList) > 0 { - for iNdEx := len(m.KeyShareList) - 1; iNdEx >= 0; iNdEx-- { + if len(m.KeyshareList) > 0 { + for iNdEx := len(m.KeyshareList) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.KeyShareList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.KeyshareList[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -350,14 +349,14 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } - if len(m.KeyShareList) > 0 { - for _, e := range m.KeyShareList { + if len(m.KeyshareList) > 0 { + for _, e := range m.KeyshareList { l = e.Size() n += 1 + l + sovGenesis(uint64(l)) } } - if len(m.AggregatedKeyShareList) > 0 { - for _, e := range m.AggregatedKeyShareList { + if len(m.DecryptionKeyList) > 0 { + for _, e := range m.DecryptionKeyList { l = e.Size() n += 1 + l + sovGenesis(uint64(l)) } @@ -375,8 +374,8 @@ func (m *GenesisState) Size() (n int) { if m.RequestCount != 0 { n += 1 + sovGenesis(uint64(m.RequestCount)) } - if len(m.GeneralKeyShareList) > 0 { - for _, e := range m.GeneralKeyShareList { + if len(m.GeneralKeyshareList) > 0 { + for _, e := range m.GeneralKeyshareList { l = e.Size() n += 1 + l + sovGenesis(uint64(l)) } @@ -520,7 +519,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShareList", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyshareList", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -547,14 +546,14 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.KeyShareList = append(m.KeyShareList, KeyShare{}) - if err := m.KeyShareList[len(m.KeyShareList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.KeyshareList = append(m.KeyshareList, Keyshare{}) + if err := m.KeyshareList[len(m.KeyshareList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AggregatedKeyShareList", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DecryptionKeyList", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -581,8 +580,8 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AggregatedKeyShareList = append(m.AggregatedKeyShareList, AggregatedKeyShare{}) - if err := m.AggregatedKeyShareList[len(m.AggregatedKeyShareList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.DecryptionKeyList = append(m.DecryptionKeyList, DecryptionKey{}) + if err := m.DecryptionKeyList[len(m.DecryptionKeyList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -707,7 +706,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { } case 10: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GeneralKeyShareList", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GeneralKeyshareList", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -734,8 +733,8 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.GeneralKeyShareList = append(m.GeneralKeyShareList, GeneralKeyShare{}) - if err := m.GeneralKeyShareList[len(m.GeneralKeyShareList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.GeneralKeyshareList = append(m.GeneralKeyshareList, GeneralKeyshare{}) + if err := m.GeneralKeyshareList[len(m.GeneralKeyshareList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/keyshare/types/genesis_test.go b/x/keyshare/types/genesis_test.go index f9da8b39..e1dce6f7 100644 --- a/x/keyshare/types/genesis_test.go +++ b/x/keyshare/types/genesis_test.go @@ -23,7 +23,7 @@ func TestGenesisState_Validate(t *testing.T) { desc: "valid genesis state", genState: &types.GenesisState{ PortId: types.PortID, - AggregatedKeyShareList: []types.AggregatedKeyShare{ + DecryptionKeyList: []types.DecryptionKey{ { Height: 0, }, @@ -38,7 +38,7 @@ func TestGenesisState_Validate(t *testing.T) { { desc: "duplicated aggregatedKeyShare", genState: &types.GenesisState{ - AggregatedKeyShareList: []types.AggregatedKeyShare{ + DecryptionKeyList: []types.DecryptionKey{ { Height: 0, }, diff --git a/x/keyshare/types/key_key_share_request.go b/x/keyshare/types/key_key_share_request.go index 0f89b3e9..050b25ee 100644 --- a/x/keyshare/types/key_key_share_request.go +++ b/x/keyshare/types/key_key_share_request.go @@ -9,8 +9,8 @@ var _ binary.ByteOrder const ( // KeyShareRequestKeyPrefix is the prefix to retrieve all Keyshare requests - KeyShareRequestKeyPrefix = "KeyshareRequest/value/" - PrivateKeyShareRequestKeyPrefix = "PrivateKeyshareRequest/value/" + DecryptionKeyRequestKeyPrefix = "DecryptionKeyRequest/value/" + PrivateDecryptionKeyRequestKeyPrefix = "PrivateDecryptionKeyRequest/value/" ) func IdentityFromRequestCount( diff --git a/x/keyshare/types/key_share.pb.go b/x/keyshare/types/keyshare.pb.go similarity index 58% rename from x/keyshare/types/key_share.pb.go rename to x/keyshare/types/keyshare.pb.go index 778b7135..f1904056 100644 --- a/x/keyshare/types/key_share.pb.go +++ b/x/keyshare/types/keyshare.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fairyring/keyshare/key_share.proto +// source: fairyring/keyshare/keyshare.proto package types @@ -22,29 +22,29 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// KeyShare defines the structure for submitting +// Keyshare defines the structure for submitting // blockwise keyshares by validators -type KeyShare struct { +type Keyshare struct { Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` - KeyShare string `protobuf:"bytes,3,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,4,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + Keyshare string `protobuf:"bytes,3,opt,name=keyshare,proto3" json:"keyshare,omitempty"` + KeyshareIndex uint64 `protobuf:"varint,4,opt,name=keyshare_index,json=keyshareIndex,proto3" json:"keyshare_index,omitempty"` ReceivedTimestamp uint64 `protobuf:"varint,5,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` } -func (m *KeyShare) Reset() { *m = KeyShare{} } -func (m *KeyShare) String() string { return proto.CompactTextString(m) } -func (*KeyShare) ProtoMessage() {} -func (*KeyShare) Descriptor() ([]byte, []int) { - return fileDescriptor_cb45212b5123dd29, []int{0} +func (m *Keyshare) Reset() { *m = Keyshare{} } +func (m *Keyshare) String() string { return proto.CompactTextString(m) } +func (*Keyshare) ProtoMessage() {} +func (*Keyshare) Descriptor() ([]byte, []int) { + return fileDescriptor_44d78e6cc547ef99, []int{0} } -func (m *KeyShare) XXX_Unmarshal(b []byte) error { +func (m *Keyshare) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *KeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *Keyshare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_KeyShare.Marshal(b, m, deterministic) + return xxx_messageInfo_Keyshare.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -54,84 +54,84 @@ func (m *KeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *KeyShare) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyShare.Merge(m, src) +func (m *Keyshare) XXX_Merge(src proto.Message) { + xxx_messageInfo_Keyshare.Merge(m, src) } -func (m *KeyShare) XXX_Size() int { +func (m *Keyshare) XXX_Size() int { return m.Size() } -func (m *KeyShare) XXX_DiscardUnknown() { - xxx_messageInfo_KeyShare.DiscardUnknown(m) +func (m *Keyshare) XXX_DiscardUnknown() { + xxx_messageInfo_Keyshare.DiscardUnknown(m) } -var xxx_messageInfo_KeyShare proto.InternalMessageInfo +var xxx_messageInfo_Keyshare proto.InternalMessageInfo -func (m *KeyShare) GetValidator() string { +func (m *Keyshare) GetValidator() string { if m != nil { return m.Validator } return "" } -func (m *KeyShare) GetBlockHeight() uint64 { +func (m *Keyshare) GetBlockHeight() uint64 { if m != nil { return m.BlockHeight } return 0 } -func (m *KeyShare) GetKeyShare() string { +func (m *Keyshare) GetKeyshare() string { if m != nil { - return m.KeyShare + return m.Keyshare } return "" } -func (m *KeyShare) GetKeyShareIndex() uint64 { +func (m *Keyshare) GetKeyshareIndex() uint64 { if m != nil { - return m.KeyShareIndex + return m.KeyshareIndex } return 0 } -func (m *KeyShare) GetReceivedTimestamp() uint64 { +func (m *Keyshare) GetReceivedTimestamp() uint64 { if m != nil { return m.ReceivedTimestamp } return 0 } -func (m *KeyShare) GetReceivedBlockHeight() uint64 { +func (m *Keyshare) GetReceivedBlockHeight() uint64 { if m != nil { return m.ReceivedBlockHeight } return 0 } -// GeneralKeyShare defines the structure for submitting +// GeneralKeyshare defines the structure for submitting // general keyshares by validators -type GeneralKeyShare struct { +type GeneralKeyshare struct { Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` IdValue string `protobuf:"bytes,3,opt,name=id_value,json=idValue,proto3" json:"id_value,omitempty"` - KeyShare string `protobuf:"bytes,4,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,5,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + Keyshare string `protobuf:"bytes,4,opt,name=keyshare,proto3" json:"keyshare,omitempty"` + KeyshareIndex uint64 `protobuf:"varint,5,opt,name=keyshare_index,json=keyshareIndex,proto3" json:"keyshare_index,omitempty"` ReceivedTimestamp uint64 `protobuf:"varint,6,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` ReceivedBlockHeight uint64 `protobuf:"varint,7,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` } -func (m *GeneralKeyShare) Reset() { *m = GeneralKeyShare{} } -func (m *GeneralKeyShare) String() string { return proto.CompactTextString(m) } -func (*GeneralKeyShare) ProtoMessage() {} -func (*GeneralKeyShare) Descriptor() ([]byte, []int) { - return fileDescriptor_cb45212b5123dd29, []int{1} +func (m *GeneralKeyshare) Reset() { *m = GeneralKeyshare{} } +func (m *GeneralKeyshare) String() string { return proto.CompactTextString(m) } +func (*GeneralKeyshare) ProtoMessage() {} +func (*GeneralKeyshare) Descriptor() ([]byte, []int) { + return fileDescriptor_44d78e6cc547ef99, []int{1} } -func (m *GeneralKeyShare) XXX_Unmarshal(b []byte) error { +func (m *GeneralKeyshare) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *GeneralKeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *GeneralKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_GeneralKeyShare.Marshal(b, m, deterministic) + return xxx_messageInfo_GeneralKeyshare.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -141,91 +141,91 @@ func (m *GeneralKeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } -func (m *GeneralKeyShare) XXX_Merge(src proto.Message) { - xxx_messageInfo_GeneralKeyShare.Merge(m, src) +func (m *GeneralKeyshare) XXX_Merge(src proto.Message) { + xxx_messageInfo_GeneralKeyshare.Merge(m, src) } -func (m *GeneralKeyShare) XXX_Size() int { +func (m *GeneralKeyshare) XXX_Size() int { return m.Size() } -func (m *GeneralKeyShare) XXX_DiscardUnknown() { - xxx_messageInfo_GeneralKeyShare.DiscardUnknown(m) +func (m *GeneralKeyshare) XXX_DiscardUnknown() { + xxx_messageInfo_GeneralKeyshare.DiscardUnknown(m) } -var xxx_messageInfo_GeneralKeyShare proto.InternalMessageInfo +var xxx_messageInfo_GeneralKeyshare proto.InternalMessageInfo -func (m *GeneralKeyShare) GetValidator() string { +func (m *GeneralKeyshare) GetValidator() string { if m != nil { return m.Validator } return "" } -func (m *GeneralKeyShare) GetIdType() string { +func (m *GeneralKeyshare) GetIdType() string { if m != nil { return m.IdType } return "" } -func (m *GeneralKeyShare) GetIdValue() string { +func (m *GeneralKeyshare) GetIdValue() string { if m != nil { return m.IdValue } return "" } -func (m *GeneralKeyShare) GetKeyShare() string { +func (m *GeneralKeyshare) GetKeyshare() string { if m != nil { - return m.KeyShare + return m.Keyshare } return "" } -func (m *GeneralKeyShare) GetKeyShareIndex() uint64 { +func (m *GeneralKeyshare) GetKeyshareIndex() uint64 { if m != nil { - return m.KeyShareIndex + return m.KeyshareIndex } return 0 } -func (m *GeneralKeyShare) GetReceivedTimestamp() uint64 { +func (m *GeneralKeyshare) GetReceivedTimestamp() uint64 { if m != nil { return m.ReceivedTimestamp } return 0 } -func (m *GeneralKeyShare) GetReceivedBlockHeight() uint64 { +func (m *GeneralKeyshare) GetReceivedBlockHeight() uint64 { if m != nil { return m.ReceivedBlockHeight } return 0 } -// ValidatorEncryptedKeyShare defines the structure for +// ValidatorEncryptedKeyshare defines the structure for // submitting encrypted keyshares by validators -type ValidatorEncryptedKeyShare struct { +type ValidatorEncryptedKeyshare struct { Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` Requester string `protobuf:"bytes,2,opt,name=requester,proto3" json:"requester,omitempty"` - KeyShare string `protobuf:"bytes,3,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,4,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + Keyshare string `protobuf:"bytes,3,opt,name=keyshare,proto3" json:"keyshare,omitempty"` + KeyshareIndex uint64 `protobuf:"varint,4,opt,name=keyshare_index,json=keyshareIndex,proto3" json:"keyshare_index,omitempty"` ReceivedTimestamp uint64 `protobuf:"varint,5,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` Identity string `protobuf:"bytes,7,opt,name=identity,proto3" json:"identity,omitempty"` } -func (m *ValidatorEncryptedKeyShare) Reset() { *m = ValidatorEncryptedKeyShare{} } -func (m *ValidatorEncryptedKeyShare) String() string { return proto.CompactTextString(m) } -func (*ValidatorEncryptedKeyShare) ProtoMessage() {} -func (*ValidatorEncryptedKeyShare) Descriptor() ([]byte, []int) { - return fileDescriptor_cb45212b5123dd29, []int{2} +func (m *ValidatorEncryptedKeyshare) Reset() { *m = ValidatorEncryptedKeyshare{} } +func (m *ValidatorEncryptedKeyshare) String() string { return proto.CompactTextString(m) } +func (*ValidatorEncryptedKeyshare) ProtoMessage() {} +func (*ValidatorEncryptedKeyshare) Descriptor() ([]byte, []int) { + return fileDescriptor_44d78e6cc547ef99, []int{2} } -func (m *ValidatorEncryptedKeyShare) XXX_Unmarshal(b []byte) error { +func (m *ValidatorEncryptedKeyshare) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *ValidatorEncryptedKeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ValidatorEncryptedKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_ValidatorEncryptedKeyShare.Marshal(b, m, deterministic) + return xxx_messageInfo_ValidatorEncryptedKeyshare.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -235,61 +235,61 @@ func (m *ValidatorEncryptedKeyShare) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *ValidatorEncryptedKeyShare) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidatorEncryptedKeyShare.Merge(m, src) +func (m *ValidatorEncryptedKeyshare) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidatorEncryptedKeyshare.Merge(m, src) } -func (m *ValidatorEncryptedKeyShare) XXX_Size() int { +func (m *ValidatorEncryptedKeyshare) XXX_Size() int { return m.Size() } -func (m *ValidatorEncryptedKeyShare) XXX_DiscardUnknown() { - xxx_messageInfo_ValidatorEncryptedKeyShare.DiscardUnknown(m) +func (m *ValidatorEncryptedKeyshare) XXX_DiscardUnknown() { + xxx_messageInfo_ValidatorEncryptedKeyshare.DiscardUnknown(m) } -var xxx_messageInfo_ValidatorEncryptedKeyShare proto.InternalMessageInfo +var xxx_messageInfo_ValidatorEncryptedKeyshare proto.InternalMessageInfo -func (m *ValidatorEncryptedKeyShare) GetValidator() string { +func (m *ValidatorEncryptedKeyshare) GetValidator() string { if m != nil { return m.Validator } return "" } -func (m *ValidatorEncryptedKeyShare) GetRequester() string { +func (m *ValidatorEncryptedKeyshare) GetRequester() string { if m != nil { return m.Requester } return "" } -func (m *ValidatorEncryptedKeyShare) GetKeyShare() string { +func (m *ValidatorEncryptedKeyshare) GetKeyshare() string { if m != nil { - return m.KeyShare + return m.Keyshare } return "" } -func (m *ValidatorEncryptedKeyShare) GetKeyShareIndex() uint64 { +func (m *ValidatorEncryptedKeyshare) GetKeyshareIndex() uint64 { if m != nil { - return m.KeyShareIndex + return m.KeyshareIndex } return 0 } -func (m *ValidatorEncryptedKeyShare) GetReceivedTimestamp() uint64 { +func (m *ValidatorEncryptedKeyshare) GetReceivedTimestamp() uint64 { if m != nil { return m.ReceivedTimestamp } return 0 } -func (m *ValidatorEncryptedKeyShare) GetReceivedBlockHeight() uint64 { +func (m *ValidatorEncryptedKeyshare) GetReceivedBlockHeight() uint64 { if m != nil { return m.ReceivedBlockHeight } return 0 } -func (m *ValidatorEncryptedKeyShare) GetIdentity() string { +func (m *ValidatorEncryptedKeyshare) GetIdentity() string { if m != nil { return m.Identity } @@ -297,45 +297,42 @@ func (m *ValidatorEncryptedKeyShare) GetIdentity() string { } func init() { - proto.RegisterType((*KeyShare)(nil), "fairyring.keyshare.KeyShare") - proto.RegisterType((*GeneralKeyShare)(nil), "fairyring.keyshare.GeneralKeyShare") - proto.RegisterType((*ValidatorEncryptedKeyShare)(nil), "fairyring.keyshare.ValidatorEncryptedKeyShare") + proto.RegisterType((*Keyshare)(nil), "fairyring.keyshare.Keyshare") + proto.RegisterType((*GeneralKeyshare)(nil), "fairyring.keyshare.GeneralKeyshare") + proto.RegisterType((*ValidatorEncryptedKeyshare)(nil), "fairyring.keyshare.ValidatorEncryptedKeyshare") } -func init() { - proto.RegisterFile("fairyring/keyshare/key_share.proto", fileDescriptor_cb45212b5123dd29) -} +func init() { proto.RegisterFile("fairyring/keyshare/keyshare.proto", fileDescriptor_44d78e6cc547ef99) } -var fileDescriptor_cb45212b5123dd29 = []byte{ - // 392 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x93, 0xcf, 0x4e, 0xea, 0x40, - 0x14, 0xc6, 0x29, 0x17, 0x0a, 0x9d, 0x7b, 0x6f, 0xc8, 0x9d, 0x1b, 0x63, 0x45, 0xd2, 0x20, 0x0b, - 0xc3, 0x46, 0x9a, 0xe8, 0x1b, 0x90, 0xf8, 0x87, 0xb8, 0xab, 0x84, 0x85, 0x9b, 0x66, 0xe8, 0x1c, - 0xe9, 0x84, 0xd2, 0xd6, 0xe9, 0x40, 0xe8, 0x33, 0xb8, 0xf1, 0x01, 0x7c, 0x20, 0x97, 0x2c, 0x5d, - 0x1a, 0x78, 0x04, 0x5f, 0xc0, 0x74, 0xe2, 0xb4, 0x61, 0x61, 0xc4, 0xa5, 0xbb, 0x39, 0xdf, 0xf9, - 0x7a, 0x66, 0xce, 0xaf, 0xe7, 0xa0, 0xce, 0x1d, 0x61, 0x3c, 0xe5, 0x2c, 0x9c, 0xd8, 0x53, 0x48, - 0x13, 0x9f, 0x70, 0xc8, 0x0e, 0xae, 0x3c, 0xf5, 0x62, 0x1e, 0x89, 0x08, 0xe3, 0xdc, 0xd3, 0x53, - 0x9e, 0xce, 0x9b, 0x86, 0xea, 0xd7, 0x90, 0xde, 0x64, 0x01, 0x6e, 0x21, 0x63, 0x41, 0x02, 0x46, - 0x89, 0x88, 0xb8, 0xa9, 0xb5, 0xb5, 0xae, 0xe1, 0x14, 0x02, 0x3e, 0x42, 0x7f, 0xc6, 0x41, 0xe4, - 0x4d, 0x5d, 0x1f, 0xd8, 0xc4, 0x17, 0x66, 0xb9, 0xad, 0x75, 0x2b, 0xce, 0x6f, 0xa9, 0x5d, 0x49, - 0x09, 0x1f, 0x22, 0x23, 0xbf, 0xd4, 0xfc, 0x25, 0x0b, 0xd4, 0xa7, 0xaa, 0xfa, 0x31, 0x6a, 0xe4, - 0x49, 0x97, 0x85, 0x14, 0x96, 0x66, 0x45, 0x96, 0xf8, 0xab, 0x2c, 0x83, 0x4c, 0xc4, 0x27, 0x08, - 0x73, 0xf0, 0x80, 0x2d, 0x80, 0xba, 0x82, 0xcd, 0x20, 0x11, 0x64, 0x16, 0x9b, 0x55, 0x69, 0xfd, - 0xa7, 0x32, 0x43, 0x95, 0xc0, 0xa7, 0x68, 0x2f, 0xb7, 0x6f, 0xbd, 0x4f, 0x97, 0x5f, 0xfc, 0x57, - 0xc9, 0x7e, 0xf1, 0xce, 0xce, 0x43, 0x19, 0x35, 0x2e, 0x21, 0x04, 0x4e, 0x82, 0x1d, 0x9b, 0xdf, - 0x47, 0x35, 0x46, 0x5d, 0x91, 0xc6, 0x20, 0xfb, 0x36, 0x1c, 0x9d, 0xd1, 0x61, 0x1a, 0x03, 0x3e, - 0x40, 0x75, 0x46, 0xdd, 0x05, 0x09, 0xe6, 0xaa, 0xe3, 0x1a, 0xa3, 0xa3, 0x2c, 0xdc, 0xa6, 0x51, - 0xf9, 0x9a, 0x46, 0x75, 0x77, 0x1a, 0xfa, 0xb7, 0x69, 0xd4, 0x3e, 0xa7, 0xf1, 0x54, 0x46, 0xcd, - 0x91, 0xea, 0xf4, 0x3c, 0xf4, 0x78, 0x1a, 0x0b, 0xa0, 0x3b, 0x82, 0x69, 0x21, 0x83, 0xc3, 0xfd, - 0x1c, 0x12, 0x01, 0xfc, 0x03, 0x4d, 0x21, 0xfc, 0x94, 0x81, 0xc0, 0xcd, 0xec, 0x2f, 0x42, 0x28, - 0x98, 0x48, 0x25, 0x29, 0xc3, 0xc9, 0xe3, 0xfe, 0xe0, 0x79, 0x6d, 0x69, 0xab, 0xb5, 0xa5, 0xbd, - 0xae, 0x2d, 0xed, 0x71, 0x63, 0x95, 0x56, 0x1b, 0xab, 0xf4, 0xb2, 0xb1, 0x4a, 0xb7, 0xf6, 0x84, - 0x09, 0x7f, 0x3e, 0xee, 0x79, 0xd1, 0xcc, 0xbe, 0x20, 0x8c, 0xcb, 0xdb, 0xec, 0x62, 0x13, 0x97, - 0xc5, 0x2e, 0x66, 0x93, 0x93, 0x8c, 0x75, 0xb9, 0x88, 0x67, 0xef, 0x01, 0x00, 0x00, 0xff, 0xff, - 0xe9, 0x20, 0xe4, 0xae, 0xae, 0x03, 0x00, 0x00, +var fileDescriptor_44d78e6cc547ef99 = []byte{ + // 383 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x93, 0xcf, 0x4e, 0xfa, 0x40, + 0x10, 0xc7, 0x29, 0x3f, 0x28, 0x74, 0x7f, 0xff, 0xe2, 0x1a, 0x63, 0x25, 0xa4, 0x01, 0x12, 0x13, + 0x2e, 0xd2, 0x44, 0xdf, 0x80, 0xc4, 0x3f, 0xc4, 0x5b, 0x43, 0x38, 0x78, 0x69, 0x96, 0xee, 0x48, + 0x37, 0x94, 0xb6, 0x6e, 0x17, 0x42, 0x1f, 0xc1, 0x9b, 0x67, 0x9f, 0xc8, 0x23, 0x47, 0x8f, 0x06, + 0x9e, 0xc0, 0x37, 0x30, 0xdd, 0xb0, 0x6d, 0x38, 0x18, 0xf1, 0xe8, 0x6d, 0xe7, 0x3b, 0xb3, 0xbb, + 0xf3, 0xfd, 0x64, 0x06, 0xb5, 0xef, 0x09, 0xe3, 0x29, 0x67, 0xe1, 0xc4, 0x9e, 0x42, 0x9a, 0xf8, + 0x84, 0x43, 0x7e, 0xe8, 0xc5, 0x3c, 0x12, 0x11, 0xc6, 0x79, 0x49, 0x4f, 0x65, 0x3a, 0xef, 0x1a, + 0xaa, 0xdf, 0x6e, 0x03, 0xdc, 0x44, 0xc6, 0x82, 0x04, 0x8c, 0x12, 0x11, 0x71, 0x53, 0x6b, 0x69, + 0x5d, 0xc3, 0x29, 0x04, 0xdc, 0x46, 0x7f, 0xc6, 0x41, 0xe4, 0x4d, 0x5d, 0x1f, 0xd8, 0xc4, 0x17, + 0x66, 0xb9, 0xa5, 0x75, 0x2b, 0xce, 0x6f, 0xa9, 0xdd, 0x48, 0x09, 0x37, 0x50, 0x5d, 0xbd, 0x6c, + 0xfe, 0x92, 0xf7, 0xf3, 0x18, 0x9f, 0xa2, 0x7f, 0xea, 0xec, 0xb2, 0x90, 0xc2, 0xd2, 0xac, 0xc8, + 0x07, 0xfe, 0x2a, 0x75, 0x90, 0x89, 0xf8, 0x0c, 0x61, 0x0e, 0x1e, 0xb0, 0x05, 0x50, 0x57, 0xb0, + 0x19, 0x24, 0x82, 0xcc, 0x62, 0xb3, 0x2a, 0x4b, 0x0f, 0x54, 0x66, 0xa8, 0x12, 0xf8, 0x1c, 0x1d, + 0xe5, 0xe5, 0x3b, 0xdd, 0xe9, 0xf2, 0xc6, 0xa1, 0x4a, 0xf6, 0x8b, 0x2e, 0x3b, 0x8f, 0x65, 0xf4, + 0xff, 0x1a, 0x42, 0xe0, 0x24, 0xd8, 0xd3, 0xfa, 0x31, 0xaa, 0x31, 0xea, 0x8a, 0x34, 0x06, 0xe9, + 0xda, 0x70, 0x74, 0x46, 0x87, 0x69, 0x0c, 0xf8, 0x04, 0xd5, 0x19, 0x75, 0x17, 0x24, 0x98, 0x2b, + 0xc3, 0x35, 0x46, 0x47, 0x59, 0xb8, 0xc3, 0xa2, 0xf2, 0x25, 0x8b, 0xea, 0xfe, 0x2c, 0xf4, 0x6f, + 0xb3, 0xa8, 0x7d, 0xce, 0xe2, 0xb9, 0x8c, 0x1a, 0x23, 0xe5, 0xf3, 0x32, 0xf4, 0x78, 0x1a, 0x0b, + 0xa0, 0x7b, 0x62, 0x69, 0x22, 0x83, 0xc3, 0xc3, 0x1c, 0x12, 0x01, 0x7c, 0x0b, 0xa6, 0x10, 0x7e, + 0xc6, 0x30, 0x64, 0x5d, 0x32, 0x0a, 0xa1, 0x60, 0x22, 0x95, 0x9c, 0x0c, 0x27, 0x8f, 0xfb, 0x83, + 0x97, 0xb5, 0xa5, 0xad, 0xd6, 0x96, 0xf6, 0xb6, 0xb6, 0xb4, 0xa7, 0x8d, 0x55, 0x5a, 0x6d, 0xac, + 0xd2, 0xeb, 0xc6, 0x2a, 0xdd, 0xd9, 0x13, 0x26, 0xfc, 0xf9, 0xb8, 0xe7, 0x45, 0x33, 0xfb, 0x8a, + 0x30, 0x2e, 0x7f, 0xb3, 0x8b, 0x15, 0x5c, 0x16, 0x4b, 0x98, 0x4d, 0x4d, 0x32, 0xd6, 0xe5, 0x0a, + 0x5e, 0x7c, 0x04, 0x00, 0x00, 0xff, 0xff, 0x1e, 0x8c, 0xff, 0x2c, 0xa7, 0x03, 0x00, 0x00, } -func (m *KeyShare) Marshal() (dAtA []byte, err error) { +func (m *Keyshare) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -345,54 +342,54 @@ func (m *KeyShare) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *KeyShare) MarshalTo(dAtA []byte) (int, error) { +func (m *Keyshare) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *KeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *Keyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.ReceivedBlockHeight != 0 { - i = encodeVarintKeyShare(dAtA, i, uint64(m.ReceivedBlockHeight)) + i = encodeVarintKeyshare(dAtA, i, uint64(m.ReceivedBlockHeight)) i-- dAtA[i] = 0x30 } if m.ReceivedTimestamp != 0 { - i = encodeVarintKeyShare(dAtA, i, uint64(m.ReceivedTimestamp)) + i = encodeVarintKeyshare(dAtA, i, uint64(m.ReceivedTimestamp)) i-- dAtA[i] = 0x28 } - if m.KeyShareIndex != 0 { - i = encodeVarintKeyShare(dAtA, i, uint64(m.KeyShareIndex)) + if m.KeyshareIndex != 0 { + i = encodeVarintKeyshare(dAtA, i, uint64(m.KeyshareIndex)) i-- dAtA[i] = 0x20 } - if len(m.KeyShare) > 0 { - i -= len(m.KeyShare) - copy(dAtA[i:], m.KeyShare) - i = encodeVarintKeyShare(dAtA, i, uint64(len(m.KeyShare))) + if len(m.Keyshare) > 0 { + i -= len(m.Keyshare) + copy(dAtA[i:], m.Keyshare) + i = encodeVarintKeyshare(dAtA, i, uint64(len(m.Keyshare))) i-- dAtA[i] = 0x1a } if m.BlockHeight != 0 { - i = encodeVarintKeyShare(dAtA, i, uint64(m.BlockHeight)) + i = encodeVarintKeyshare(dAtA, i, uint64(m.BlockHeight)) i-- dAtA[i] = 0x10 } if len(m.Validator) > 0 { i -= len(m.Validator) copy(dAtA[i:], m.Validator) - i = encodeVarintKeyShare(dAtA, i, uint64(len(m.Validator))) + i = encodeVarintKeyshare(dAtA, i, uint64(len(m.Validator))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *GeneralKeyShare) Marshal() (dAtA []byte, err error) { +func (m *GeneralKeyshare) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -402,63 +399,63 @@ func (m *GeneralKeyShare) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GeneralKeyShare) MarshalTo(dAtA []byte) (int, error) { +func (m *GeneralKeyshare) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GeneralKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GeneralKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.ReceivedBlockHeight != 0 { - i = encodeVarintKeyShare(dAtA, i, uint64(m.ReceivedBlockHeight)) + i = encodeVarintKeyshare(dAtA, i, uint64(m.ReceivedBlockHeight)) i-- dAtA[i] = 0x38 } if m.ReceivedTimestamp != 0 { - i = encodeVarintKeyShare(dAtA, i, uint64(m.ReceivedTimestamp)) + i = encodeVarintKeyshare(dAtA, i, uint64(m.ReceivedTimestamp)) i-- dAtA[i] = 0x30 } - if m.KeyShareIndex != 0 { - i = encodeVarintKeyShare(dAtA, i, uint64(m.KeyShareIndex)) + if m.KeyshareIndex != 0 { + i = encodeVarintKeyshare(dAtA, i, uint64(m.KeyshareIndex)) i-- dAtA[i] = 0x28 } - if len(m.KeyShare) > 0 { - i -= len(m.KeyShare) - copy(dAtA[i:], m.KeyShare) - i = encodeVarintKeyShare(dAtA, i, uint64(len(m.KeyShare))) + if len(m.Keyshare) > 0 { + i -= len(m.Keyshare) + copy(dAtA[i:], m.Keyshare) + i = encodeVarintKeyshare(dAtA, i, uint64(len(m.Keyshare))) i-- dAtA[i] = 0x22 } if len(m.IdValue) > 0 { i -= len(m.IdValue) copy(dAtA[i:], m.IdValue) - i = encodeVarintKeyShare(dAtA, i, uint64(len(m.IdValue))) + i = encodeVarintKeyshare(dAtA, i, uint64(len(m.IdValue))) i-- dAtA[i] = 0x1a } if len(m.IdType) > 0 { i -= len(m.IdType) copy(dAtA[i:], m.IdType) - i = encodeVarintKeyShare(dAtA, i, uint64(len(m.IdType))) + i = encodeVarintKeyshare(dAtA, i, uint64(len(m.IdType))) i-- dAtA[i] = 0x12 } if len(m.Validator) > 0 { i -= len(m.Validator) copy(dAtA[i:], m.Validator) - i = encodeVarintKeyShare(dAtA, i, uint64(len(m.Validator))) + i = encodeVarintKeyshare(dAtA, i, uint64(len(m.Validator))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *ValidatorEncryptedKeyShare) Marshal() (dAtA []byte, err error) { +func (m *ValidatorEncryptedKeyshare) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -468,12 +465,12 @@ func (m *ValidatorEncryptedKeyShare) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ValidatorEncryptedKeyShare) MarshalTo(dAtA []byte) (int, error) { +func (m *ValidatorEncryptedKeyshare) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ValidatorEncryptedKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ValidatorEncryptedKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -481,51 +478,51 @@ func (m *ValidatorEncryptedKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, err if len(m.Identity) > 0 { i -= len(m.Identity) copy(dAtA[i:], m.Identity) - i = encodeVarintKeyShare(dAtA, i, uint64(len(m.Identity))) + i = encodeVarintKeyshare(dAtA, i, uint64(len(m.Identity))) i-- dAtA[i] = 0x3a } if m.ReceivedBlockHeight != 0 { - i = encodeVarintKeyShare(dAtA, i, uint64(m.ReceivedBlockHeight)) + i = encodeVarintKeyshare(dAtA, i, uint64(m.ReceivedBlockHeight)) i-- dAtA[i] = 0x30 } if m.ReceivedTimestamp != 0 { - i = encodeVarintKeyShare(dAtA, i, uint64(m.ReceivedTimestamp)) + i = encodeVarintKeyshare(dAtA, i, uint64(m.ReceivedTimestamp)) i-- dAtA[i] = 0x28 } - if m.KeyShareIndex != 0 { - i = encodeVarintKeyShare(dAtA, i, uint64(m.KeyShareIndex)) + if m.KeyshareIndex != 0 { + i = encodeVarintKeyshare(dAtA, i, uint64(m.KeyshareIndex)) i-- dAtA[i] = 0x20 } - if len(m.KeyShare) > 0 { - i -= len(m.KeyShare) - copy(dAtA[i:], m.KeyShare) - i = encodeVarintKeyShare(dAtA, i, uint64(len(m.KeyShare))) + if len(m.Keyshare) > 0 { + i -= len(m.Keyshare) + copy(dAtA[i:], m.Keyshare) + i = encodeVarintKeyshare(dAtA, i, uint64(len(m.Keyshare))) i-- dAtA[i] = 0x1a } if len(m.Requester) > 0 { i -= len(m.Requester) copy(dAtA[i:], m.Requester) - i = encodeVarintKeyShare(dAtA, i, uint64(len(m.Requester))) + i = encodeVarintKeyshare(dAtA, i, uint64(len(m.Requester))) i-- dAtA[i] = 0x12 } if len(m.Validator) > 0 { i -= len(m.Validator) copy(dAtA[i:], m.Validator) - i = encodeVarintKeyShare(dAtA, i, uint64(len(m.Validator))) + i = encodeVarintKeyshare(dAtA, i, uint64(len(m.Validator))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarintKeyShare(dAtA []byte, offset int, v uint64) int { - offset -= sovKeyShare(v) +func encodeVarintKeyshare(dAtA []byte, offset int, v uint64) int { + offset -= sovKeyshare(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -535,7 +532,7 @@ func encodeVarintKeyShare(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *KeyShare) Size() (n int) { +func (m *Keyshare) Size() (n int) { if m == nil { return 0 } @@ -543,28 +540,28 @@ func (m *KeyShare) Size() (n int) { _ = l l = len(m.Validator) if l > 0 { - n += 1 + l + sovKeyShare(uint64(l)) + n += 1 + l + sovKeyshare(uint64(l)) } if m.BlockHeight != 0 { - n += 1 + sovKeyShare(uint64(m.BlockHeight)) + n += 1 + sovKeyshare(uint64(m.BlockHeight)) } - l = len(m.KeyShare) + l = len(m.Keyshare) if l > 0 { - n += 1 + l + sovKeyShare(uint64(l)) + n += 1 + l + sovKeyshare(uint64(l)) } - if m.KeyShareIndex != 0 { - n += 1 + sovKeyShare(uint64(m.KeyShareIndex)) + if m.KeyshareIndex != 0 { + n += 1 + sovKeyshare(uint64(m.KeyshareIndex)) } if m.ReceivedTimestamp != 0 { - n += 1 + sovKeyShare(uint64(m.ReceivedTimestamp)) + n += 1 + sovKeyshare(uint64(m.ReceivedTimestamp)) } if m.ReceivedBlockHeight != 0 { - n += 1 + sovKeyShare(uint64(m.ReceivedBlockHeight)) + n += 1 + sovKeyshare(uint64(m.ReceivedBlockHeight)) } return n } -func (m *GeneralKeyShare) Size() (n int) { +func (m *GeneralKeyshare) Size() (n int) { if m == nil { return 0 } @@ -572,33 +569,33 @@ func (m *GeneralKeyShare) Size() (n int) { _ = l l = len(m.Validator) if l > 0 { - n += 1 + l + sovKeyShare(uint64(l)) + n += 1 + l + sovKeyshare(uint64(l)) } l = len(m.IdType) if l > 0 { - n += 1 + l + sovKeyShare(uint64(l)) + n += 1 + l + sovKeyshare(uint64(l)) } l = len(m.IdValue) if l > 0 { - n += 1 + l + sovKeyShare(uint64(l)) + n += 1 + l + sovKeyshare(uint64(l)) } - l = len(m.KeyShare) + l = len(m.Keyshare) if l > 0 { - n += 1 + l + sovKeyShare(uint64(l)) + n += 1 + l + sovKeyshare(uint64(l)) } - if m.KeyShareIndex != 0 { - n += 1 + sovKeyShare(uint64(m.KeyShareIndex)) + if m.KeyshareIndex != 0 { + n += 1 + sovKeyshare(uint64(m.KeyshareIndex)) } if m.ReceivedTimestamp != 0 { - n += 1 + sovKeyShare(uint64(m.ReceivedTimestamp)) + n += 1 + sovKeyshare(uint64(m.ReceivedTimestamp)) } if m.ReceivedBlockHeight != 0 { - n += 1 + sovKeyShare(uint64(m.ReceivedBlockHeight)) + n += 1 + sovKeyshare(uint64(m.ReceivedBlockHeight)) } return n } -func (m *ValidatorEncryptedKeyShare) Size() (n int) { +func (m *ValidatorEncryptedKeyshare) Size() (n int) { if m == nil { return 0 } @@ -606,39 +603,39 @@ func (m *ValidatorEncryptedKeyShare) Size() (n int) { _ = l l = len(m.Validator) if l > 0 { - n += 1 + l + sovKeyShare(uint64(l)) + n += 1 + l + sovKeyshare(uint64(l)) } l = len(m.Requester) if l > 0 { - n += 1 + l + sovKeyShare(uint64(l)) + n += 1 + l + sovKeyshare(uint64(l)) } - l = len(m.KeyShare) + l = len(m.Keyshare) if l > 0 { - n += 1 + l + sovKeyShare(uint64(l)) + n += 1 + l + sovKeyshare(uint64(l)) } - if m.KeyShareIndex != 0 { - n += 1 + sovKeyShare(uint64(m.KeyShareIndex)) + if m.KeyshareIndex != 0 { + n += 1 + sovKeyshare(uint64(m.KeyshareIndex)) } if m.ReceivedTimestamp != 0 { - n += 1 + sovKeyShare(uint64(m.ReceivedTimestamp)) + n += 1 + sovKeyshare(uint64(m.ReceivedTimestamp)) } if m.ReceivedBlockHeight != 0 { - n += 1 + sovKeyShare(uint64(m.ReceivedBlockHeight)) + n += 1 + sovKeyshare(uint64(m.ReceivedBlockHeight)) } l = len(m.Identity) if l > 0 { - n += 1 + l + sovKeyShare(uint64(l)) + n += 1 + l + sovKeyshare(uint64(l)) } return n } -func sovKeyShare(x uint64) (n int) { +func sovKeyshare(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozKeyShare(x uint64) (n int) { - return sovKeyShare(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozKeyshare(x uint64) (n int) { + return sovKeyshare(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *KeyShare) Unmarshal(dAtA []byte) error { +func (m *Keyshare) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -646,7 +643,7 @@ func (m *KeyShare) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -661,10 +658,10 @@ func (m *KeyShare) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: KeyShare: wiretype end group for non-group") + return fmt.Errorf("proto: Keyshare: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: KeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Keyshare: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -674,7 +671,7 @@ func (m *KeyShare) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -688,11 +685,11 @@ func (m *KeyShare) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } if postIndex > l { return io.ErrUnexpectedEOF @@ -706,7 +703,7 @@ func (m *KeyShare) Unmarshal(dAtA []byte) error { m.BlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -720,12 +717,12 @@ func (m *KeyShare) Unmarshal(dAtA []byte) error { } case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyshare", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -739,32 +736,32 @@ func (m *KeyShare) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } if postIndex > l { return io.ErrUnexpectedEOF } - m.KeyShare = string(dAtA[iNdEx:postIndex]) + m.Keyshare = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyshareIndex", wireType) } - m.KeyShareIndex = 0 + m.KeyshareIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ - m.KeyShareIndex |= uint64(b&0x7F) << shift + m.KeyshareIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -776,7 +773,7 @@ func (m *KeyShare) Unmarshal(dAtA []byte) error { m.ReceivedTimestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -795,7 +792,7 @@ func (m *KeyShare) Unmarshal(dAtA []byte) error { m.ReceivedBlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -809,12 +806,12 @@ func (m *KeyShare) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipKeyShare(dAtA[iNdEx:]) + skippy, err := skipKeyshare(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -828,7 +825,7 @@ func (m *KeyShare) Unmarshal(dAtA []byte) error { } return nil } -func (m *GeneralKeyShare) Unmarshal(dAtA []byte) error { +func (m *GeneralKeyshare) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -836,7 +833,7 @@ func (m *GeneralKeyShare) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -851,10 +848,10 @@ func (m *GeneralKeyShare) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GeneralKeyShare: wiretype end group for non-group") + return fmt.Errorf("proto: GeneralKeyshare: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GeneralKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GeneralKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -864,7 +861,7 @@ func (m *GeneralKeyShare) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -878,11 +875,11 @@ func (m *GeneralKeyShare) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } if postIndex > l { return io.ErrUnexpectedEOF @@ -896,7 +893,7 @@ func (m *GeneralKeyShare) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -910,11 +907,11 @@ func (m *GeneralKeyShare) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } if postIndex > l { return io.ErrUnexpectedEOF @@ -928,7 +925,7 @@ func (m *GeneralKeyShare) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -942,11 +939,11 @@ func (m *GeneralKeyShare) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } if postIndex > l { return io.ErrUnexpectedEOF @@ -955,12 +952,12 @@ func (m *GeneralKeyShare) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyshare", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -974,32 +971,32 @@ func (m *GeneralKeyShare) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } if postIndex > l { return io.ErrUnexpectedEOF } - m.KeyShare = string(dAtA[iNdEx:postIndex]) + m.Keyshare = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyshareIndex", wireType) } - m.KeyShareIndex = 0 + m.KeyshareIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ - m.KeyShareIndex |= uint64(b&0x7F) << shift + m.KeyshareIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1011,7 +1008,7 @@ func (m *GeneralKeyShare) Unmarshal(dAtA []byte) error { m.ReceivedTimestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1030,7 +1027,7 @@ func (m *GeneralKeyShare) Unmarshal(dAtA []byte) error { m.ReceivedBlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1044,12 +1041,12 @@ func (m *GeneralKeyShare) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipKeyShare(dAtA[iNdEx:]) + skippy, err := skipKeyshare(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1063,7 +1060,7 @@ func (m *GeneralKeyShare) Unmarshal(dAtA []byte) error { } return nil } -func (m *ValidatorEncryptedKeyShare) Unmarshal(dAtA []byte) error { +func (m *ValidatorEncryptedKeyshare) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1071,7 +1068,7 @@ func (m *ValidatorEncryptedKeyShare) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1086,10 +1083,10 @@ func (m *ValidatorEncryptedKeyShare) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ValidatorEncryptedKeyShare: wiretype end group for non-group") + return fmt.Errorf("proto: ValidatorEncryptedKeyshare: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ValidatorEncryptedKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidatorEncryptedKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1099,7 +1096,7 @@ func (m *ValidatorEncryptedKeyShare) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1113,11 +1110,11 @@ func (m *ValidatorEncryptedKeyShare) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } if postIndex > l { return io.ErrUnexpectedEOF @@ -1131,7 +1128,7 @@ func (m *ValidatorEncryptedKeyShare) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1145,11 +1142,11 @@ func (m *ValidatorEncryptedKeyShare) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } if postIndex > l { return io.ErrUnexpectedEOF @@ -1158,12 +1155,12 @@ func (m *ValidatorEncryptedKeyShare) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyshare", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1177,32 +1174,32 @@ func (m *ValidatorEncryptedKeyShare) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } if postIndex > l { return io.ErrUnexpectedEOF } - m.KeyShare = string(dAtA[iNdEx:postIndex]) + m.Keyshare = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyshareIndex", wireType) } - m.KeyShareIndex = 0 + m.KeyshareIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ - m.KeyShareIndex |= uint64(b&0x7F) << shift + m.KeyshareIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1214,7 +1211,7 @@ func (m *ValidatorEncryptedKeyShare) Unmarshal(dAtA []byte) error { m.ReceivedTimestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1233,7 +1230,7 @@ func (m *ValidatorEncryptedKeyShare) Unmarshal(dAtA []byte) error { m.ReceivedBlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1252,7 +1249,7 @@ func (m *ValidatorEncryptedKeyShare) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowKeyShare + return ErrIntOverflowKeyshare } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1266,11 +1263,11 @@ func (m *ValidatorEncryptedKeyShare) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } if postIndex > l { return io.ErrUnexpectedEOF @@ -1279,12 +1276,12 @@ func (m *ValidatorEncryptedKeyShare) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipKeyShare(dAtA[iNdEx:]) + skippy, err := skipKeyshare(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthKeyShare + return ErrInvalidLengthKeyshare } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1298,7 +1295,7 @@ func (m *ValidatorEncryptedKeyShare) Unmarshal(dAtA []byte) error { } return nil } -func skipKeyShare(dAtA []byte) (n int, err error) { +func skipKeyshare(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -1306,7 +1303,7 @@ func skipKeyShare(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowKeyShare + return 0, ErrIntOverflowKeyshare } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1323,7 +1320,7 @@ func skipKeyShare(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowKeyShare + return 0, ErrIntOverflowKeyshare } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1339,7 +1336,7 @@ func skipKeyShare(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowKeyShare + return 0, ErrIntOverflowKeyshare } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1352,14 +1349,14 @@ func skipKeyShare(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthKeyShare + return 0, ErrInvalidLengthKeyshare } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupKeyShare + return 0, ErrUnexpectedEndOfGroupKeyshare } depth-- case 5: @@ -1368,7 +1365,7 @@ func skipKeyShare(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthKeyShare + return 0, ErrInvalidLengthKeyshare } if depth == 0 { return iNdEx, nil @@ -1378,7 +1375,7 @@ func skipKeyShare(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthKeyShare = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowKeyShare = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupKeyShare = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthKeyshare = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowKeyshare = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupKeyshare = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/keyshare/types/msg_general_key_share.go b/x/keyshare/types/msg_general_key_share.go index a9eac008..1367a809 100644 --- a/x/keyshare/types/msg_general_key_share.go +++ b/x/keyshare/types/msg_general_key_share.go @@ -6,25 +6,25 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -var _ sdk.Msg = &MsgSubmitGeneralKeyShare{} +var _ sdk.Msg = &MsgSubmitGeneralKeyshare{} -func NewMsgSubmitGeneralKeyShare( +func NewMsgSubmitGeneralKeyshare( creator string, idType string, idValue string, - keyShare string, - keyShareIndex uint64, -) *MsgSubmitGeneralKeyShare { - return &MsgSubmitGeneralKeyShare{ + keyshare string, + keyshareIndex uint64, +) *MsgSubmitGeneralKeyshare { + return &MsgSubmitGeneralKeyshare{ Creator: creator, IdType: idType, IdValue: idValue, - KeyShare: keyShare, - KeyShareIndex: keyShareIndex, + Keyshare: keyshare, + KeyshareIndex: keyshareIndex, } } -func (msg *MsgSubmitGeneralKeyShare) ValidateBasic() error { +func (msg *MsgSubmitGeneralKeyshare) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { return sdkioerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) diff --git a/x/keyshare/types/msg_latest_pub_key.go b/x/keyshare/types/msg_latest_pub_key.go index 169bd099..af5f3d4b 100644 --- a/x/keyshare/types/msg_latest_pub_key.go +++ b/x/keyshare/types/msg_latest_pub_key.go @@ -21,14 +21,14 @@ func NewMsgCreateLatestPubKey( publicKey string, commitments []string, numberOfValidators uint64, - encryptedKeyShares []*EncryptedKeyShare, + encryptedKeyshares []*EncryptedKeyshare, ) *MsgCreateLatestPubKey { return &MsgCreateLatestPubKey{ Creator: creator, PublicKey: publicKey, Commitments: commitments, NumberOfValidators: numberOfValidators, - EncryptedKeyShares: encryptedKeyShares, + EncryptedKeyshares: encryptedKeyshares, } } @@ -52,8 +52,8 @@ func (msg *MsgCreateLatestPubKey) ValidateBasic() error { if msg.NumberOfValidators != uint64(len(msg.Commitments)) { return ErrNotMatchNumOfCommits.Wrapf("expected number of validators: %d, match number of commitments: %d", msg.NumberOfValidators, len(msg.Commitments)) } - if len(msg.EncryptedKeyShares) != len(msg.Commitments) { - return ErrNotMatchNumOfEncryptedKeyShares.Wrapf("expected number of encrypted key shares: %d, match number of commitments: %d", len(msg.EncryptedKeyShares), len(msg.Commitments)) + if len(msg.EncryptedKeyshares) != len(msg.Commitments) { + return ErrNotMatchNumOfEncryptedKeyShares.Wrapf("expected number of encrypted key shares: %d, match number of commitments: %d", len(msg.EncryptedKeyshares), len(msg.Commitments)) } for _, c := range msg.Commitments { @@ -65,7 +65,7 @@ func (msg *MsgCreateLatestPubKey) ValidateBasic() error { } } - for i, v := range msg.EncryptedKeyShares { + for i, v := range msg.EncryptedKeyshares { if v == nil { return ErrEmptyEncryptedShares } diff --git a/x/keyshare/types/msg_override_pub_key.go b/x/keyshare/types/msg_override_pub_key.go index b47ac89c..3afac0d5 100644 --- a/x/keyshare/types/msg_override_pub_key.go +++ b/x/keyshare/types/msg_override_pub_key.go @@ -16,14 +16,14 @@ func NewMsgOverrideLatestPubKey( publicKey string, commitments []string, numberOfValidators uint64, - encryptedKeyShares []*EncryptedKeyShare, + encryptedKeyshares []*EncryptedKeyshare, ) *MsgOverrideLatestPubKey { return &MsgOverrideLatestPubKey{ Creator: creator, PublicKey: publicKey, Commitments: commitments, NumberOfValidators: numberOfValidators, - EncryptedKeyShares: encryptedKeyShares, + EncryptedKeyshares: encryptedKeyshares, } } @@ -47,8 +47,8 @@ func (msg *MsgOverrideLatestPubKey) ValidateBasic() error { if msg.NumberOfValidators != uint64(len(msg.Commitments)) { return ErrNotMatchNumOfCommits.Wrapf("expected number of validators: %d, match number of commitments: %d", msg.NumberOfValidators, len(msg.Commitments)) } - if len(msg.EncryptedKeyShares) != len(msg.Commitments) { - return ErrNotMatchNumOfEncryptedKeyShares.Wrapf("expected number of encrypted key shares: %d, match number of commitments: %d", len(msg.EncryptedKeyShares), len(msg.Commitments)) + if len(msg.EncryptedKeyshares) != len(msg.Commitments) { + return ErrNotMatchNumOfEncryptedKeyShares.Wrapf("expected number of encrypted key shares: %d, match number of commitments: %d", len(msg.EncryptedKeyshares), len(msg.Commitments)) } for _, c := range msg.Commitments { @@ -60,7 +60,7 @@ func (msg *MsgOverrideLatestPubKey) ValidateBasic() error { } } - for i, v := range msg.EncryptedKeyShares { + for i, v := range msg.EncryptedKeyshares { if v == nil { return ErrEmptyEncryptedShares } diff --git a/x/keyshare/types/msg_send_key_share.go b/x/keyshare/types/msg_send_key_share.go index 305f2746..c2c29c38 100644 --- a/x/keyshare/types/msg_send_key_share.go +++ b/x/keyshare/types/msg_send_key_share.go @@ -18,7 +18,7 @@ func NewMsgSendKeyshare(creator string, message string, keyShareIndex uint64, bl return &MsgSendKeyshare{ Creator: creator, Message: message, - KeyShareIndex: keyShareIndex, + KeyshareIndex: keyShareIndex, BlockHeight: blockHeight, } } @@ -34,8 +34,8 @@ func (msg *MsgSendKeyshare) ValidateBasic() error { if _, err = hex.DecodeString(msg.Message); err != nil { return ErrInvalidShare.Wrapf("expected hex encoded key share, got: %s", msg.Message) } - if msg.KeyShareIndex < 1 { - return ErrInvalidShare.Wrapf("expected key share index to be at least 1, got: %d", msg.KeyShareIndex) + if msg.KeyshareIndex < 1 { + return ErrInvalidShare.Wrapf("expected key share index to be at least 1, got: %d", msg.KeyshareIndex) } return nil } diff --git a/x/keyshare/types/msg_submit_encrypted_keyshare.go b/x/keyshare/types/msg_submit_encrypted_keyshare.go index e2c1e599..fdd485ce 100644 --- a/x/keyshare/types/msg_submit_encrypted_keyshare.go +++ b/x/keyshare/types/msg_submit_encrypted_keyshare.go @@ -21,7 +21,7 @@ func NewMsgSubmitEncryptedKeyshare( Creator: creator, Identity: identity, EncryptedKeyshare: encryptedKeyshare, - KeyShareIndex: keyshareIndex, + KeyshareIndex: keyshareIndex, Requester: requester, } } diff --git a/x/keyshare/types/pub_key.pb.go b/x/keyshare/types/pubkey.pb.go similarity index 69% rename from x/keyshare/types/pub_key.pb.go rename to x/keyshare/types/pubkey.pb.go index bb0644c1..e71303e4 100644 --- a/x/keyshare/types/pub_key.pb.go +++ b/x/keyshare/types/pubkey.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fairyring/keyshare/pub_key.proto +// source: fairyring/keyshare/pubkey.proto package types @@ -22,25 +22,25 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// EncryptedKeyShare defines the structure for storing -// blockwise keyshares submitted by validators -type EncryptedKeyShare struct { +// EncryptedKeyshare defines the structure for storing +// the keyshare of the master secret key distributed to the validators +type EncryptedKeyshare struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"` } -func (m *EncryptedKeyShare) Reset() { *m = EncryptedKeyShare{} } -func (m *EncryptedKeyShare) String() string { return proto.CompactTextString(m) } -func (*EncryptedKeyShare) ProtoMessage() {} -func (*EncryptedKeyShare) Descriptor() ([]byte, []int) { - return fileDescriptor_2c1c9675c7c2f3c4, []int{0} +func (m *EncryptedKeyshare) Reset() { *m = EncryptedKeyshare{} } +func (m *EncryptedKeyshare) String() string { return proto.CompactTextString(m) } +func (*EncryptedKeyshare) ProtoMessage() {} +func (*EncryptedKeyshare) Descriptor() ([]byte, []int) { + return fileDescriptor_78068a78bf5008ef, []int{0} } -func (m *EncryptedKeyShare) XXX_Unmarshal(b []byte) error { +func (m *EncryptedKeyshare) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *EncryptedKeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EncryptedKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_EncryptedKeyShare.Marshal(b, m, deterministic) + return xxx_messageInfo_EncryptedKeyshare.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -50,26 +50,26 @@ func (m *EncryptedKeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *EncryptedKeyShare) XXX_Merge(src proto.Message) { - xxx_messageInfo_EncryptedKeyShare.Merge(m, src) +func (m *EncryptedKeyshare) XXX_Merge(src proto.Message) { + xxx_messageInfo_EncryptedKeyshare.Merge(m, src) } -func (m *EncryptedKeyShare) XXX_Size() int { +func (m *EncryptedKeyshare) XXX_Size() int { return m.Size() } -func (m *EncryptedKeyShare) XXX_DiscardUnknown() { - xxx_messageInfo_EncryptedKeyShare.DiscardUnknown(m) +func (m *EncryptedKeyshare) XXX_DiscardUnknown() { + xxx_messageInfo_EncryptedKeyshare.DiscardUnknown(m) } -var xxx_messageInfo_EncryptedKeyShare proto.InternalMessageInfo +var xxx_messageInfo_EncryptedKeyshare proto.InternalMessageInfo -func (m *EncryptedKeyShare) GetData() string { +func (m *EncryptedKeyshare) GetData() string { if m != nil { return m.Data } return "" } -func (m *EncryptedKeyShare) GetValidator() string { +func (m *EncryptedKeyshare) GetValidator() string { if m != nil { return m.Validator } @@ -82,14 +82,14 @@ type ActivePubKey struct { Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` Expiry uint64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` NumberOfValidators uint64 `protobuf:"varint,4,opt,name=number_of_validators,json=numberOfValidators,proto3" json:"number_of_validators,omitempty"` - EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encrypted_key_shares,json=encryptedKeyShares,proto3" json:"encrypted_key_shares,omitempty"` + EncryptedKeyshares []*EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` } func (m *ActivePubKey) Reset() { *m = ActivePubKey{} } func (m *ActivePubKey) String() string { return proto.CompactTextString(m) } func (*ActivePubKey) ProtoMessage() {} func (*ActivePubKey) Descriptor() ([]byte, []int) { - return fileDescriptor_2c1c9675c7c2f3c4, []int{1} + return fileDescriptor_78068a78bf5008ef, []int{1} } func (m *ActivePubKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -146,9 +146,9 @@ func (m *ActivePubKey) GetNumberOfValidators() uint64 { return 0 } -func (m *ActivePubKey) GetEncryptedKeyShares() []*EncryptedKeyShare { +func (m *ActivePubKey) GetEncryptedKeyshares() []*EncryptedKeyshare { if m != nil { - return m.EncryptedKeyShares + return m.EncryptedKeyshares } return nil } @@ -159,14 +159,14 @@ type QueuedPubKey struct { Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` Expiry uint64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` NumberOfValidators uint64 `protobuf:"varint,4,opt,name=number_of_validators,json=numberOfValidators,proto3" json:"number_of_validators,omitempty"` - EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encrypted_key_shares,json=encryptedKeyShares,proto3" json:"encrypted_key_shares,omitempty"` + EncryptedKeyshares []*EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` } func (m *QueuedPubKey) Reset() { *m = QueuedPubKey{} } func (m *QueuedPubKey) String() string { return proto.CompactTextString(m) } func (*QueuedPubKey) ProtoMessage() {} func (*QueuedPubKey) Descriptor() ([]byte, []int) { - return fileDescriptor_2c1c9675c7c2f3c4, []int{2} + return fileDescriptor_78068a78bf5008ef, []int{2} } func (m *QueuedPubKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -223,47 +223,46 @@ func (m *QueuedPubKey) GetNumberOfValidators() uint64 { return 0 } -func (m *QueuedPubKey) GetEncryptedKeyShares() []*EncryptedKeyShare { +func (m *QueuedPubKey) GetEncryptedKeyshares() []*EncryptedKeyshare { if m != nil { - return m.EncryptedKeyShares + return m.EncryptedKeyshares } return nil } func init() { - proto.RegisterType((*EncryptedKeyShare)(nil), "fairyring.keyshare.EncryptedKeyShare") + proto.RegisterType((*EncryptedKeyshare)(nil), "fairyring.keyshare.EncryptedKeyshare") proto.RegisterType((*ActivePubKey)(nil), "fairyring.keyshare.ActivePubKey") proto.RegisterType((*QueuedPubKey)(nil), "fairyring.keyshare.QueuedPubKey") } -func init() { proto.RegisterFile("fairyring/keyshare/pub_key.proto", fileDescriptor_2c1c9675c7c2f3c4) } +func init() { proto.RegisterFile("fairyring/keyshare/pubkey.proto", fileDescriptor_78068a78bf5008ef) } -var fileDescriptor_2c1c9675c7c2f3c4 = []byte{ - // 322 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x52, 0xcd, 0x4a, 0x33, 0x31, - 0x14, 0x6d, 0xbe, 0xf6, 0xab, 0x34, 0xba, 0x31, 0x14, 0x99, 0x85, 0x0e, 0x43, 0x41, 0xe8, 0x6a, - 0x46, 0xf4, 0x09, 0x14, 0x2a, 0x48, 0x17, 0x6a, 0x05, 0x05, 0x37, 0x43, 0x92, 0xb9, 0x6d, 0x43, - 0x7f, 0x12, 0x32, 0x49, 0x69, 0xde, 0xc2, 0xc7, 0x72, 0xd9, 0xa5, 0x4b, 0x69, 0x77, 0x3e, 0x85, - 0x4c, 0xfa, 0x33, 0x62, 0xdf, 0xc0, 0x5d, 0xee, 0x39, 0x87, 0x7b, 0x73, 0x0e, 0x07, 0x47, 0x7d, - 0x2a, 0xb4, 0xd3, 0x62, 0x3a, 0x48, 0x46, 0xe0, 0xf2, 0x21, 0xd5, 0x90, 0x28, 0xcb, 0xd2, 0x11, - 0xb8, 0x58, 0x69, 0x69, 0x24, 0x21, 0x3b, 0x45, 0xbc, 0x55, 0xb4, 0x3a, 0xf8, 0xb8, 0x33, 0xe5, - 0xda, 0x29, 0x03, 0x59, 0x17, 0xdc, 0x53, 0x01, 0x12, 0x82, 0x6b, 0x19, 0x35, 0x34, 0x40, 0x11, - 0x6a, 0x37, 0x7a, 0xfe, 0x4d, 0x4e, 0x71, 0x63, 0x46, 0xc7, 0x22, 0xa3, 0x46, 0xea, 0xe0, 0x9f, - 0x27, 0x4a, 0xa0, 0xf5, 0x85, 0xf0, 0xd1, 0x35, 0x37, 0x62, 0x06, 0x0f, 0x96, 0x75, 0xc1, 0x91, - 0x33, 0x8c, 0x95, 0x65, 0x63, 0xc1, 0x8b, 0xfb, 0x9b, 0x45, 0x8d, 0x35, 0x52, 0xd0, 0x01, 0x3e, - 0xe0, 0x1a, 0x7e, 0xec, 0xda, 0x8e, 0xe4, 0x04, 0xd7, 0x61, 0xae, 0x84, 0x76, 0x41, 0x35, 0x42, - 0xed, 0x5a, 0x6f, 0x33, 0x91, 0x0b, 0xdc, 0x9c, 0xda, 0x09, 0x03, 0x9d, 0xca, 0x7e, 0xba, 0x3b, - 0x9c, 0x07, 0x35, 0xaf, 0x22, 0x6b, 0xee, 0xbe, 0xff, 0xbc, 0x63, 0xc8, 0x0b, 0x6e, 0xc2, 0xd6, - 0x5a, 0xf1, 0x8b, 0xd4, 0x3b, 0xce, 0x83, 0xff, 0x51, 0xb5, 0x7d, 0x78, 0x79, 0x1e, 0xef, 0xa7, - 0x11, 0xef, 0x45, 0xd1, 0x23, 0xf0, 0x1b, 0xca, 0xbd, 0xd9, 0x47, 0x0b, 0x16, 0xb2, 0xbf, 0x6f, - 0xf6, 0xe6, 0xee, 0x7d, 0x19, 0xa2, 0xc5, 0x32, 0x44, 0x9f, 0xcb, 0x10, 0xbd, 0xad, 0xc2, 0xca, - 0x62, 0x15, 0x56, 0x3e, 0x56, 0x61, 0xe5, 0x35, 0x19, 0x08, 0x33, 0xb4, 0x2c, 0xe6, 0x72, 0x92, - 0xdc, 0x52, 0xa1, 0xd9, 0x58, 0xf2, 0x51, 0x52, 0xb6, 0x70, 0x5e, 0xf6, 0xd0, 0x38, 0x05, 0x39, - 0xab, 0xfb, 0x1a, 0x5e, 0x7d, 0x07, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x0f, 0x30, 0x51, 0xaa, 0x02, - 0x00, 0x00, +var fileDescriptor_78068a78bf5008ef = []byte{ + // 317 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x92, 0x41, 0x4e, 0x02, 0x31, + 0x14, 0x86, 0xa9, 0x20, 0x86, 0xea, 0xc6, 0x6a, 0xcc, 0x2c, 0xb4, 0x12, 0x12, 0x13, 0x56, 0x33, + 0x46, 0x4f, 0xa0, 0x09, 0x26, 0x86, 0x85, 0xca, 0x82, 0x85, 0x9b, 0x49, 0xdb, 0x79, 0x40, 0x33, + 0x40, 0x9b, 0x4e, 0x4b, 0xe8, 0x2d, 0x3c, 0x96, 0x4b, 0x96, 0x2e, 0x0d, 0xac, 0xbc, 0x85, 0x71, + 0x60, 0x18, 0x23, 0x37, 0x70, 0xd7, 0xf7, 0xff, 0x7f, 0x5e, 0xf3, 0xbd, 0xfc, 0xf8, 0x72, 0xc0, + 0xa4, 0xf1, 0x46, 0x4e, 0x87, 0x51, 0x0a, 0x3e, 0x1b, 0x31, 0x03, 0x91, 0x76, 0x3c, 0x05, 0x1f, + 0x6a, 0xa3, 0xac, 0x22, 0x64, 0x1b, 0x08, 0x8b, 0x40, 0xab, 0x83, 0x8f, 0x3b, 0x53, 0x61, 0xbc, + 0xb6, 0x90, 0x74, 0x37, 0x22, 0x21, 0xb8, 0x96, 0x30, 0xcb, 0x02, 0xd4, 0x44, 0xed, 0x46, 0x2f, + 0x7f, 0x93, 0x73, 0xdc, 0x98, 0xb1, 0xb1, 0x4c, 0x98, 0x55, 0x26, 0xd8, 0xcb, 0x8d, 0x52, 0x68, + 0x7d, 0x21, 0x7c, 0x74, 0x27, 0xac, 0x9c, 0xc1, 0xb3, 0xe3, 0x5d, 0xf0, 0xe4, 0x02, 0x63, 0xed, + 0xf8, 0x58, 0x8a, 0x38, 0x05, 0xbf, 0x59, 0xd4, 0x58, 0x2b, 0x3f, 0x76, 0x80, 0x0f, 0x84, 0x81, + 0x5f, 0xbb, 0x8a, 0x91, 0x9c, 0xe1, 0x3a, 0xcc, 0xb5, 0x34, 0x3e, 0xa8, 0x36, 0x51, 0xbb, 0xd6, + 0xdb, 0x4c, 0xe4, 0x1a, 0x9f, 0x4e, 0xdd, 0x84, 0x83, 0x89, 0xd5, 0x20, 0xde, 0x7e, 0x9c, 0x05, + 0xb5, 0x3c, 0x45, 0xd6, 0xde, 0xd3, 0xa0, 0xbf, 0x75, 0x48, 0x1f, 0x9f, 0x40, 0x81, 0x16, 0x17, + 0xc0, 0x59, 0xb0, 0xdf, 0xac, 0xb6, 0x0f, 0x6f, 0xae, 0xc2, 0xdd, 0x63, 0x84, 0x3b, 0x97, 0xe8, + 0x11, 0xf8, 0x2b, 0x65, 0x39, 0xeb, 0x8b, 0x03, 0x07, 0xc9, 0xbf, 0x67, 0xbd, 0x7f, 0x7c, 0x5f, + 0x52, 0xb4, 0x58, 0x52, 0xf4, 0xb9, 0xa4, 0xe8, 0x6d, 0x45, 0x2b, 0x8b, 0x15, 0xad, 0x7c, 0xac, + 0x68, 0xe5, 0x35, 0x1a, 0x4a, 0x3b, 0x72, 0x3c, 0x14, 0x6a, 0x12, 0x3d, 0x30, 0x69, 0xf8, 0x58, + 0x89, 0x34, 0x2a, 0x2b, 0x38, 0x2f, 0x4b, 0x68, 0xbd, 0x86, 0x8c, 0xd7, 0xf3, 0x12, 0xde, 0x7e, + 0x07, 0x00, 0x00, 0xff, 0xff, 0x28, 0xcb, 0x57, 0xbe, 0xa7, 0x02, 0x00, 0x00, } -func (m *EncryptedKeyShare) Marshal() (dAtA []byte, err error) { +func (m *EncryptedKeyshare) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -273,12 +272,12 @@ func (m *EncryptedKeyShare) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EncryptedKeyShare) MarshalTo(dAtA []byte) (int, error) { +func (m *EncryptedKeyshare) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *EncryptedKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EncryptedKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -286,14 +285,14 @@ func (m *EncryptedKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Validator) > 0 { i -= len(m.Validator) copy(dAtA[i:], m.Validator) - i = encodeVarintPubKey(dAtA, i, uint64(len(m.Validator))) + i = encodeVarintPubkey(dAtA, i, uint64(len(m.Validator))) i-- dAtA[i] = 0x12 } if len(m.Data) > 0 { i -= len(m.Data) copy(dAtA[i:], m.Data) - i = encodeVarintPubKey(dAtA, i, uint64(len(m.Data))) + i = encodeVarintPubkey(dAtA, i, uint64(len(m.Data))) i-- dAtA[i] = 0xa } @@ -320,41 +319,41 @@ func (m *ActivePubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.EncryptedKeyShares) > 0 { - for iNdEx := len(m.EncryptedKeyShares) - 1; iNdEx >= 0; iNdEx-- { + if len(m.EncryptedKeyshares) > 0 { + for iNdEx := len(m.EncryptedKeyshares) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.EncryptedKeyShares[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.EncryptedKeyshares[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size - i = encodeVarintPubKey(dAtA, i, uint64(size)) + i = encodeVarintPubkey(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a } } if m.NumberOfValidators != 0 { - i = encodeVarintPubKey(dAtA, i, uint64(m.NumberOfValidators)) + i = encodeVarintPubkey(dAtA, i, uint64(m.NumberOfValidators)) i-- dAtA[i] = 0x20 } if m.Expiry != 0 { - i = encodeVarintPubKey(dAtA, i, uint64(m.Expiry)) + i = encodeVarintPubkey(dAtA, i, uint64(m.Expiry)) i-- dAtA[i] = 0x18 } if len(m.Creator) > 0 { i -= len(m.Creator) copy(dAtA[i:], m.Creator) - i = encodeVarintPubKey(dAtA, i, uint64(len(m.Creator))) + i = encodeVarintPubkey(dAtA, i, uint64(len(m.Creator))) i-- dAtA[i] = 0x12 } if len(m.PublicKey) > 0 { i -= len(m.PublicKey) copy(dAtA[i:], m.PublicKey) - i = encodeVarintPubKey(dAtA, i, uint64(len(m.PublicKey))) + i = encodeVarintPubkey(dAtA, i, uint64(len(m.PublicKey))) i-- dAtA[i] = 0xa } @@ -381,49 +380,49 @@ func (m *QueuedPubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.EncryptedKeyShares) > 0 { - for iNdEx := len(m.EncryptedKeyShares) - 1; iNdEx >= 0; iNdEx-- { + if len(m.EncryptedKeyshares) > 0 { + for iNdEx := len(m.EncryptedKeyshares) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.EncryptedKeyShares[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.EncryptedKeyshares[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size - i = encodeVarintPubKey(dAtA, i, uint64(size)) + i = encodeVarintPubkey(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x2a } } if m.NumberOfValidators != 0 { - i = encodeVarintPubKey(dAtA, i, uint64(m.NumberOfValidators)) + i = encodeVarintPubkey(dAtA, i, uint64(m.NumberOfValidators)) i-- dAtA[i] = 0x20 } if m.Expiry != 0 { - i = encodeVarintPubKey(dAtA, i, uint64(m.Expiry)) + i = encodeVarintPubkey(dAtA, i, uint64(m.Expiry)) i-- dAtA[i] = 0x18 } if len(m.Creator) > 0 { i -= len(m.Creator) copy(dAtA[i:], m.Creator) - i = encodeVarintPubKey(dAtA, i, uint64(len(m.Creator))) + i = encodeVarintPubkey(dAtA, i, uint64(len(m.Creator))) i-- dAtA[i] = 0x12 } if len(m.PublicKey) > 0 { i -= len(m.PublicKey) copy(dAtA[i:], m.PublicKey) - i = encodeVarintPubKey(dAtA, i, uint64(len(m.PublicKey))) + i = encodeVarintPubkey(dAtA, i, uint64(len(m.PublicKey))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarintPubKey(dAtA []byte, offset int, v uint64) int { - offset -= sovPubKey(v) +func encodeVarintPubkey(dAtA []byte, offset int, v uint64) int { + offset -= sovPubkey(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -433,7 +432,7 @@ func encodeVarintPubKey(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *EncryptedKeyShare) Size() (n int) { +func (m *EncryptedKeyshare) Size() (n int) { if m == nil { return 0 } @@ -441,11 +440,11 @@ func (m *EncryptedKeyShare) Size() (n int) { _ = l l = len(m.Data) if l > 0 { - n += 1 + l + sovPubKey(uint64(l)) + n += 1 + l + sovPubkey(uint64(l)) } l = len(m.Validator) if l > 0 { - n += 1 + l + sovPubKey(uint64(l)) + n += 1 + l + sovPubkey(uint64(l)) } return n } @@ -458,22 +457,22 @@ func (m *ActivePubKey) Size() (n int) { _ = l l = len(m.PublicKey) if l > 0 { - n += 1 + l + sovPubKey(uint64(l)) + n += 1 + l + sovPubkey(uint64(l)) } l = len(m.Creator) if l > 0 { - n += 1 + l + sovPubKey(uint64(l)) + n += 1 + l + sovPubkey(uint64(l)) } if m.Expiry != 0 { - n += 1 + sovPubKey(uint64(m.Expiry)) + n += 1 + sovPubkey(uint64(m.Expiry)) } if m.NumberOfValidators != 0 { - n += 1 + sovPubKey(uint64(m.NumberOfValidators)) + n += 1 + sovPubkey(uint64(m.NumberOfValidators)) } - if len(m.EncryptedKeyShares) > 0 { - for _, e := range m.EncryptedKeyShares { + if len(m.EncryptedKeyshares) > 0 { + for _, e := range m.EncryptedKeyshares { l = e.Size() - n += 1 + l + sovPubKey(uint64(l)) + n += 1 + l + sovPubkey(uint64(l)) } } return n @@ -487,34 +486,34 @@ func (m *QueuedPubKey) Size() (n int) { _ = l l = len(m.PublicKey) if l > 0 { - n += 1 + l + sovPubKey(uint64(l)) + n += 1 + l + sovPubkey(uint64(l)) } l = len(m.Creator) if l > 0 { - n += 1 + l + sovPubKey(uint64(l)) + n += 1 + l + sovPubkey(uint64(l)) } if m.Expiry != 0 { - n += 1 + sovPubKey(uint64(m.Expiry)) + n += 1 + sovPubkey(uint64(m.Expiry)) } if m.NumberOfValidators != 0 { - n += 1 + sovPubKey(uint64(m.NumberOfValidators)) + n += 1 + sovPubkey(uint64(m.NumberOfValidators)) } - if len(m.EncryptedKeyShares) > 0 { - for _, e := range m.EncryptedKeyShares { + if len(m.EncryptedKeyshares) > 0 { + for _, e := range m.EncryptedKeyshares { l = e.Size() - n += 1 + l + sovPubKey(uint64(l)) + n += 1 + l + sovPubkey(uint64(l)) } } return n } -func sovPubKey(x uint64) (n int) { +func sovPubkey(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozPubKey(x uint64) (n int) { - return sovPubKey(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozPubkey(x uint64) (n int) { + return sovPubkey(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *EncryptedKeyShare) Unmarshal(dAtA []byte) error { +func (m *EncryptedKeyshare) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -522,7 +521,7 @@ func (m *EncryptedKeyShare) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowPubKey + return ErrIntOverflowPubkey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -537,10 +536,10 @@ func (m *EncryptedKeyShare) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EncryptedKeyShare: wiretype end group for non-group") + return fmt.Errorf("proto: EncryptedKeyshare: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EncryptedKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EncryptedKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -550,7 +549,7 @@ func (m *EncryptedKeyShare) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowPubKey + return ErrIntOverflowPubkey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -564,11 +563,11 @@ func (m *EncryptedKeyShare) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } if postIndex > l { return io.ErrUnexpectedEOF @@ -582,7 +581,7 @@ func (m *EncryptedKeyShare) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowPubKey + return ErrIntOverflowPubkey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -596,11 +595,11 @@ func (m *EncryptedKeyShare) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } if postIndex > l { return io.ErrUnexpectedEOF @@ -609,12 +608,12 @@ func (m *EncryptedKeyShare) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipPubKey(dAtA[iNdEx:]) + skippy, err := skipPubkey(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -636,7 +635,7 @@ func (m *ActivePubKey) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowPubKey + return ErrIntOverflowPubkey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -664,7 +663,7 @@ func (m *ActivePubKey) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowPubKey + return ErrIntOverflowPubkey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -678,11 +677,11 @@ func (m *ActivePubKey) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } if postIndex > l { return io.ErrUnexpectedEOF @@ -696,7 +695,7 @@ func (m *ActivePubKey) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowPubKey + return ErrIntOverflowPubkey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -710,11 +709,11 @@ func (m *ActivePubKey) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } if postIndex > l { return io.ErrUnexpectedEOF @@ -728,7 +727,7 @@ func (m *ActivePubKey) Unmarshal(dAtA []byte) error { m.Expiry = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowPubKey + return ErrIntOverflowPubkey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -747,7 +746,7 @@ func (m *ActivePubKey) Unmarshal(dAtA []byte) error { m.NumberOfValidators = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowPubKey + return ErrIntOverflowPubkey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -761,12 +760,12 @@ func (m *ActivePubKey) Unmarshal(dAtA []byte) error { } case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyShares", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyshares", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowPubKey + return ErrIntOverflowPubkey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -779,28 +778,28 @@ func (m *ActivePubKey) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } if postIndex > l { return io.ErrUnexpectedEOF } - m.EncryptedKeyShares = append(m.EncryptedKeyShares, &EncryptedKeyShare{}) - if err := m.EncryptedKeyShares[len(m.EncryptedKeyShares)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.EncryptedKeyshares = append(m.EncryptedKeyshares, &EncryptedKeyshare{}) + if err := m.EncryptedKeyshares[len(m.EncryptedKeyshares)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipPubKey(dAtA[iNdEx:]) + skippy, err := skipPubkey(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -822,7 +821,7 @@ func (m *QueuedPubKey) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowPubKey + return ErrIntOverflowPubkey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -850,7 +849,7 @@ func (m *QueuedPubKey) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowPubKey + return ErrIntOverflowPubkey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -864,11 +863,11 @@ func (m *QueuedPubKey) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } if postIndex > l { return io.ErrUnexpectedEOF @@ -882,7 +881,7 @@ func (m *QueuedPubKey) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowPubKey + return ErrIntOverflowPubkey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -896,11 +895,11 @@ func (m *QueuedPubKey) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } if postIndex > l { return io.ErrUnexpectedEOF @@ -914,7 +913,7 @@ func (m *QueuedPubKey) Unmarshal(dAtA []byte) error { m.Expiry = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowPubKey + return ErrIntOverflowPubkey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -933,7 +932,7 @@ func (m *QueuedPubKey) Unmarshal(dAtA []byte) error { m.NumberOfValidators = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowPubKey + return ErrIntOverflowPubkey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -947,12 +946,12 @@ func (m *QueuedPubKey) Unmarshal(dAtA []byte) error { } case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyShares", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyshares", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowPubKey + return ErrIntOverflowPubkey } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -965,28 +964,28 @@ func (m *QueuedPubKey) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } if postIndex > l { return io.ErrUnexpectedEOF } - m.EncryptedKeyShares = append(m.EncryptedKeyShares, &EncryptedKeyShare{}) - if err := m.EncryptedKeyShares[len(m.EncryptedKeyShares)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.EncryptedKeyshares = append(m.EncryptedKeyshares, &EncryptedKeyshare{}) + if err := m.EncryptedKeyshares[len(m.EncryptedKeyshares)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipPubKey(dAtA[iNdEx:]) + skippy, err := skipPubkey(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthPubKey + return ErrInvalidLengthPubkey } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1000,7 +999,7 @@ func (m *QueuedPubKey) Unmarshal(dAtA []byte) error { } return nil } -func skipPubKey(dAtA []byte) (n int, err error) { +func skipPubkey(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -1008,7 +1007,7 @@ func skipPubKey(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowPubKey + return 0, ErrIntOverflowPubkey } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1025,7 +1024,7 @@ func skipPubKey(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowPubKey + return 0, ErrIntOverflowPubkey } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1041,7 +1040,7 @@ func skipPubKey(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowPubKey + return 0, ErrIntOverflowPubkey } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -1054,14 +1053,14 @@ func skipPubKey(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthPubKey + return 0, ErrInvalidLengthPubkey } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupPubKey + return 0, ErrUnexpectedEndOfGroupPubkey } depth-- case 5: @@ -1070,7 +1069,7 @@ func skipPubKey(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthPubKey + return 0, ErrInvalidLengthPubkey } if depth == 0 { return iNdEx, nil @@ -1080,7 +1079,7 @@ func skipPubKey(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthPubKey = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowPubKey = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupPubKey = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthPubkey = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPubkey = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupPubkey = fmt.Errorf("proto: unexpected end of group") ) diff --git a/x/keyshare/types/query.pb.go b/x/keyshare/types/query.pb.go index dd9f401e..79615a87 100644 --- a/x/keyshare/types/query.pb.go +++ b/x/keyshare/types/query.pb.go @@ -485,23 +485,23 @@ func (m *QueryValidatorSetAllResponse) GetPagination() *query.PageResponse { } // QueryKeyShareRequest is request type for the Query/KeyShare RPC method. -type QueryKeyShareRequest struct { +type QueryKeyshareRequest struct { Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } -func (m *QueryKeyShareRequest) Reset() { *m = QueryKeyShareRequest{} } -func (m *QueryKeyShareRequest) String() string { return proto.CompactTextString(m) } -func (*QueryKeyShareRequest) ProtoMessage() {} -func (*QueryKeyShareRequest) Descriptor() ([]byte, []int) { +func (m *QueryKeyshareRequest) Reset() { *m = QueryKeyshareRequest{} } +func (m *QueryKeyshareRequest) String() string { return proto.CompactTextString(m) } +func (*QueryKeyshareRequest) ProtoMessage() {} +func (*QueryKeyshareRequest) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{10} } -func (m *QueryKeyShareRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryKeyshareRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryKeyShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryKeyshareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryKeyShareRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryKeyshareRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -511,26 +511,26 @@ func (m *QueryKeyShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *QueryKeyShareRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryKeyShareRequest.Merge(m, src) +func (m *QueryKeyshareRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryKeyshareRequest.Merge(m, src) } -func (m *QueryKeyShareRequest) XXX_Size() int { +func (m *QueryKeyshareRequest) XXX_Size() int { return m.Size() } -func (m *QueryKeyShareRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryKeyShareRequest.DiscardUnknown(m) +func (m *QueryKeyshareRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryKeyshareRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryKeyShareRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryKeyshareRequest proto.InternalMessageInfo -func (m *QueryKeyShareRequest) GetValidator() string { +func (m *QueryKeyshareRequest) GetValidator() string { if m != nil { return m.Validator } return "" } -func (m *QueryKeyShareRequest) GetBlockHeight() uint64 { +func (m *QueryKeyshareRequest) GetBlockHeight() uint64 { if m != nil { return m.BlockHeight } @@ -538,22 +538,22 @@ func (m *QueryKeyShareRequest) GetBlockHeight() uint64 { } // QueryKeyShareResponse is response type for the Query/KeyShare RPC method. -type QueryKeyShareResponse struct { - KeyShare KeyShare `protobuf:"bytes,1,opt,name=key_share,json=keyShare,proto3" json:"key_share"` +type QueryKeyshareResponse struct { + Keyshare Keyshare `protobuf:"bytes,1,opt,name=keyshare,proto3" json:"keyshare"` } -func (m *QueryKeyShareResponse) Reset() { *m = QueryKeyShareResponse{} } -func (m *QueryKeyShareResponse) String() string { return proto.CompactTextString(m) } -func (*QueryKeyShareResponse) ProtoMessage() {} -func (*QueryKeyShareResponse) Descriptor() ([]byte, []int) { +func (m *QueryKeyshareResponse) Reset() { *m = QueryKeyshareResponse{} } +func (m *QueryKeyshareResponse) String() string { return proto.CompactTextString(m) } +func (*QueryKeyshareResponse) ProtoMessage() {} +func (*QueryKeyshareResponse) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{11} } -func (m *QueryKeyShareResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryKeyshareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryKeyshareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryKeyShareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryKeyshareResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -563,42 +563,42 @@ func (m *QueryKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *QueryKeyShareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryKeyShareResponse.Merge(m, src) +func (m *QueryKeyshareResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryKeyshareResponse.Merge(m, src) } -func (m *QueryKeyShareResponse) XXX_Size() int { +func (m *QueryKeyshareResponse) XXX_Size() int { return m.Size() } -func (m *QueryKeyShareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryKeyShareResponse.DiscardUnknown(m) +func (m *QueryKeyshareResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryKeyshareResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryKeyShareResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryKeyshareResponse proto.InternalMessageInfo -func (m *QueryKeyShareResponse) GetKeyShare() KeyShare { +func (m *QueryKeyshareResponse) GetKeyshare() Keyshare { if m != nil { - return m.KeyShare + return m.Keyshare } - return KeyShare{} + return Keyshare{} } // QueryKeyShareAllRequest is request type for the Query/KeyShareAll RPC method. -type QueryKeyShareAllRequest struct { +type QueryKeyshareAllRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryKeyShareAllRequest) Reset() { *m = QueryKeyShareAllRequest{} } -func (m *QueryKeyShareAllRequest) String() string { return proto.CompactTextString(m) } -func (*QueryKeyShareAllRequest) ProtoMessage() {} -func (*QueryKeyShareAllRequest) Descriptor() ([]byte, []int) { +func (m *QueryKeyshareAllRequest) Reset() { *m = QueryKeyshareAllRequest{} } +func (m *QueryKeyshareAllRequest) String() string { return proto.CompactTextString(m) } +func (*QueryKeyshareAllRequest) ProtoMessage() {} +func (*QueryKeyshareAllRequest) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{12} } -func (m *QueryKeyShareAllRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryKeyshareAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryKeyShareAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryKeyshareAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryKeyShareAllRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryKeyshareAllRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -608,19 +608,19 @@ func (m *QueryKeyShareAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *QueryKeyShareAllRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryKeyShareAllRequest.Merge(m, src) +func (m *QueryKeyshareAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryKeyshareAllRequest.Merge(m, src) } -func (m *QueryKeyShareAllRequest) XXX_Size() int { +func (m *QueryKeyshareAllRequest) XXX_Size() int { return m.Size() } -func (m *QueryKeyShareAllRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryKeyShareAllRequest.DiscardUnknown(m) +func (m *QueryKeyshareAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryKeyshareAllRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryKeyShareAllRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryKeyshareAllRequest proto.InternalMessageInfo -func (m *QueryKeyShareAllRequest) GetPagination() *query.PageRequest { +func (m *QueryKeyshareAllRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } @@ -628,23 +628,23 @@ func (m *QueryKeyShareAllRequest) GetPagination() *query.PageRequest { } // QueryKeyShareAllResponse is response type for the Query/KeyShareAll RPC method. -type QueryKeyShareAllResponse struct { - KeyShare []KeyShare `protobuf:"bytes,1,rep,name=key_share,json=keyShare,proto3" json:"key_share"` +type QueryKeyshareAllResponse struct { + Keyshare []Keyshare `protobuf:"bytes,1,rep,name=keyshare,proto3" json:"keyshare"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryKeyShareAllResponse) Reset() { *m = QueryKeyShareAllResponse{} } -func (m *QueryKeyShareAllResponse) String() string { return proto.CompactTextString(m) } -func (*QueryKeyShareAllResponse) ProtoMessage() {} -func (*QueryKeyShareAllResponse) Descriptor() ([]byte, []int) { +func (m *QueryKeyshareAllResponse) Reset() { *m = QueryKeyshareAllResponse{} } +func (m *QueryKeyshareAllResponse) String() string { return proto.CompactTextString(m) } +func (*QueryKeyshareAllResponse) ProtoMessage() {} +func (*QueryKeyshareAllResponse) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{13} } -func (m *QueryKeyShareAllResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryKeyshareAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryKeyShareAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryKeyshareAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryKeyShareAllResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryKeyshareAllResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -654,26 +654,26 @@ func (m *QueryKeyShareAllResponse) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *QueryKeyShareAllResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryKeyShareAllResponse.Merge(m, src) +func (m *QueryKeyshareAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryKeyshareAllResponse.Merge(m, src) } -func (m *QueryKeyShareAllResponse) XXX_Size() int { +func (m *QueryKeyshareAllResponse) XXX_Size() int { return m.Size() } -func (m *QueryKeyShareAllResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryKeyShareAllResponse.DiscardUnknown(m) +func (m *QueryKeyshareAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryKeyshareAllResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryKeyShareAllResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryKeyshareAllResponse proto.InternalMessageInfo -func (m *QueryKeyShareAllResponse) GetKeyShare() []KeyShare { +func (m *QueryKeyshareAllResponse) GetKeyshare() []Keyshare { if m != nil { - return m.KeyShare + return m.Keyshare } return nil } -func (m *QueryKeyShareAllResponse) GetPagination() *query.PageResponse { +func (m *QueryKeyshareAllResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } @@ -727,7 +727,7 @@ func (m *QueryDecryptionKeyRequest) GetHeight() uint64 { // QueryDecryptionKeyResponse is response type for the Query/DecryptionKey RPC method. type QueryDecryptionKeyResponse struct { - DecryptionKey AggregatedKeyShare `protobuf:"bytes,1,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key"` + DecryptionKey DecryptionKey `protobuf:"bytes,1,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key"` } func (m *QueryDecryptionKeyResponse) Reset() { *m = QueryDecryptionKeyResponse{} } @@ -763,11 +763,11 @@ func (m *QueryDecryptionKeyResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryDecryptionKeyResponse proto.InternalMessageInfo -func (m *QueryDecryptionKeyResponse) GetDecryptionKey() AggregatedKeyShare { +func (m *QueryDecryptionKeyResponse) GetDecryptionKey() DecryptionKey { if m != nil { return m.DecryptionKey } - return AggregatedKeyShare{} + return DecryptionKey{} } // QueryDecryptionKeyAllRequest is request type for the Query/DecryptionKeyAll RPC method. @@ -817,8 +817,8 @@ func (m *QueryDecryptionKeyAllRequest) GetPagination() *query.PageRequest { // QueryAggregatedKeyShareAllResponse is response type for the Query/DecryptionKeyAll RPC method. type QueryDecryptionKeyAllResponse struct { - DecryptionKeys []AggregatedKeyShare `protobuf:"bytes,1,rep,name=decryption_keys,json=decryptionKeys,proto3" json:"decryption_keys"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + DecryptionKeys []DecryptionKey `protobuf:"bytes,1,rep,name=decryption_keys,json=decryptionKeys,proto3" json:"decryption_keys"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (m *QueryDecryptionKeyAllResponse) Reset() { *m = QueryDecryptionKeyAllResponse{} } @@ -854,7 +854,7 @@ func (m *QueryDecryptionKeyAllResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryDecryptionKeyAllResponse proto.InternalMessageInfo -func (m *QueryDecryptionKeyAllResponse) GetDecryptionKeys() []AggregatedKeyShare { +func (m *QueryDecryptionKeyAllResponse) GetDecryptionKeys() []DecryptionKey { if m != nil { return m.DecryptionKeys } @@ -869,21 +869,21 @@ func (m *QueryDecryptionKeyAllResponse) GetPagination() *query.PageResponse { } // QueryPubKeyRequest is request type for the Query/PubKey RPC method. -type QueryPubKeyRequest struct { +type QueryPubkeyRequest struct { } -func (m *QueryPubKeyRequest) Reset() { *m = QueryPubKeyRequest{} } -func (m *QueryPubKeyRequest) String() string { return proto.CompactTextString(m) } -func (*QueryPubKeyRequest) ProtoMessage() {} -func (*QueryPubKeyRequest) Descriptor() ([]byte, []int) { +func (m *QueryPubkeyRequest) Reset() { *m = QueryPubkeyRequest{} } +func (m *QueryPubkeyRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPubkeyRequest) ProtoMessage() {} +func (*QueryPubkeyRequest) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{18} } -func (m *QueryPubKeyRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryPubkeyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryPubKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPubkeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryPubKeyRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPubkeyRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -893,36 +893,36 @@ func (m *QueryPubKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *QueryPubKeyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPubKeyRequest.Merge(m, src) +func (m *QueryPubkeyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPubkeyRequest.Merge(m, src) } -func (m *QueryPubKeyRequest) XXX_Size() int { +func (m *QueryPubkeyRequest) XXX_Size() int { return m.Size() } -func (m *QueryPubKeyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPubKeyRequest.DiscardUnknown(m) +func (m *QueryPubkeyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPubkeyRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryPubKeyRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryPubkeyRequest proto.InternalMessageInfo // QueryPubKeyResponse is response type for the Query/PubKey RPC method. -type QueryPubKeyResponse struct { - ActivePubKey ActivePubKey `protobuf:"bytes,1,opt,name=active_pub_key,json=activePubKey,proto3" json:"active_pub_key"` - QueuedPubKey QueuedPubKey `protobuf:"bytes,2,opt,name=queued_pub_key,json=queuedPubKey,proto3" json:"queued_pub_key"` +type QueryPubkeyResponse struct { + ActivePubkey ActivePubKey `protobuf:"bytes,1,opt,name=active_pubkey,json=activePubkey,proto3" json:"active_pubkey"` + QueuedPubkey QueuedPubKey `protobuf:"bytes,2,opt,name=queued_pubkey,json=queuedPubkey,proto3" json:"queued_pubkey"` } -func (m *QueryPubKeyResponse) Reset() { *m = QueryPubKeyResponse{} } -func (m *QueryPubKeyResponse) String() string { return proto.CompactTextString(m) } -func (*QueryPubKeyResponse) ProtoMessage() {} -func (*QueryPubKeyResponse) Descriptor() ([]byte, []int) { +func (m *QueryPubkeyResponse) Reset() { *m = QueryPubkeyResponse{} } +func (m *QueryPubkeyResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPubkeyResponse) ProtoMessage() {} +func (*QueryPubkeyResponse) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{19} } -func (m *QueryPubKeyResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryPubkeyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryPubKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPubkeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryPubKeyResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPubkeyResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -932,28 +932,28 @@ func (m *QueryPubKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *QueryPubKeyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPubKeyResponse.Merge(m, src) +func (m *QueryPubkeyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPubkeyResponse.Merge(m, src) } -func (m *QueryPubKeyResponse) XXX_Size() int { +func (m *QueryPubkeyResponse) XXX_Size() int { return m.Size() } -func (m *QueryPubKeyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPubKeyResponse.DiscardUnknown(m) +func (m *QueryPubkeyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPubkeyResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryPubKeyResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryPubkeyResponse proto.InternalMessageInfo -func (m *QueryPubKeyResponse) GetActivePubKey() ActivePubKey { +func (m *QueryPubkeyResponse) GetActivePubkey() ActivePubKey { if m != nil { - return m.ActivePubKey + return m.ActivePubkey } return ActivePubKey{} } -func (m *QueryPubKeyResponse) GetQueuedPubKey() QueuedPubKey { +func (m *QueryPubkeyResponse) GetQueuedPubkey() QueuedPubKey { if m != nil { - return m.QueuedPubKey + return m.QueuedPubkey } return QueuedPubKey{} } @@ -1147,24 +1147,24 @@ func (m *QueryAuthorizedAddressAllResponse) GetPagination() *query.PageResponse } // QueryGeneralKeyShareRequest is request type for the Query/GeneralKeyShare RPC method. -type QueryGeneralKeyShareRequest struct { +type QueryGeneralKeyshareRequest struct { Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` IdValue string `protobuf:"bytes,3,opt,name=id_value,json=idValue,proto3" json:"id_value,omitempty"` } -func (m *QueryGeneralKeyShareRequest) Reset() { *m = QueryGeneralKeyShareRequest{} } -func (m *QueryGeneralKeyShareRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGeneralKeyShareRequest) ProtoMessage() {} -func (*QueryGeneralKeyShareRequest) Descriptor() ([]byte, []int) { +func (m *QueryGeneralKeyshareRequest) Reset() { *m = QueryGeneralKeyshareRequest{} } +func (m *QueryGeneralKeyshareRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGeneralKeyshareRequest) ProtoMessage() {} +func (*QueryGeneralKeyshareRequest) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{24} } -func (m *QueryGeneralKeyShareRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryGeneralKeyshareRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGeneralKeyShareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGeneralKeyshareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGeneralKeyShareRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGeneralKeyshareRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1174,33 +1174,33 @@ func (m *QueryGeneralKeyShareRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryGeneralKeyShareRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGeneralKeyShareRequest.Merge(m, src) +func (m *QueryGeneralKeyshareRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGeneralKeyshareRequest.Merge(m, src) } -func (m *QueryGeneralKeyShareRequest) XXX_Size() int { +func (m *QueryGeneralKeyshareRequest) XXX_Size() int { return m.Size() } -func (m *QueryGeneralKeyShareRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGeneralKeyShareRequest.DiscardUnknown(m) +func (m *QueryGeneralKeyshareRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGeneralKeyshareRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryGeneralKeyShareRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryGeneralKeyshareRequest proto.InternalMessageInfo -func (m *QueryGeneralKeyShareRequest) GetValidator() string { +func (m *QueryGeneralKeyshareRequest) GetValidator() string { if m != nil { return m.Validator } return "" } -func (m *QueryGeneralKeyShareRequest) GetIdType() string { +func (m *QueryGeneralKeyshareRequest) GetIdType() string { if m != nil { return m.IdType } return "" } -func (m *QueryGeneralKeyShareRequest) GetIdValue() string { +func (m *QueryGeneralKeyshareRequest) GetIdValue() string { if m != nil { return m.IdValue } @@ -1208,22 +1208,22 @@ func (m *QueryGeneralKeyShareRequest) GetIdValue() string { } // QueryGeneralKeyShareResponse is response type for the Query/GeneralKeyShare RPC method. -type QueryGeneralKeyShareResponse struct { - GeneralKeyShare GeneralKeyShare `protobuf:"bytes,1,opt,name=general_key_share,json=generalKeyShare,proto3" json:"general_key_share"` +type QueryGeneralKeyshareResponse struct { + GeneralKeyshare GeneralKeyshare `protobuf:"bytes,1,opt,name=general_keyshare,json=generalKeyshare,proto3" json:"general_keyshare"` } -func (m *QueryGeneralKeyShareResponse) Reset() { *m = QueryGeneralKeyShareResponse{} } -func (m *QueryGeneralKeyShareResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGeneralKeyShareResponse) ProtoMessage() {} -func (*QueryGeneralKeyShareResponse) Descriptor() ([]byte, []int) { +func (m *QueryGeneralKeyshareResponse) Reset() { *m = QueryGeneralKeyshareResponse{} } +func (m *QueryGeneralKeyshareResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGeneralKeyshareResponse) ProtoMessage() {} +func (*QueryGeneralKeyshareResponse) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{25} } -func (m *QueryGeneralKeyShareResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryGeneralKeyshareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGeneralKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGeneralKeyshareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGeneralKeyShareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGeneralKeyshareResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1233,42 +1233,42 @@ func (m *QueryGeneralKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryGeneralKeyShareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGeneralKeyShareResponse.Merge(m, src) +func (m *QueryGeneralKeyshareResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGeneralKeyshareResponse.Merge(m, src) } -func (m *QueryGeneralKeyShareResponse) XXX_Size() int { +func (m *QueryGeneralKeyshareResponse) XXX_Size() int { return m.Size() } -func (m *QueryGeneralKeyShareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGeneralKeyShareResponse.DiscardUnknown(m) +func (m *QueryGeneralKeyshareResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGeneralKeyshareResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryGeneralKeyShareResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryGeneralKeyshareResponse proto.InternalMessageInfo -func (m *QueryGeneralKeyShareResponse) GetGeneralKeyShare() GeneralKeyShare { +func (m *QueryGeneralKeyshareResponse) GetGeneralKeyshare() GeneralKeyshare { if m != nil { - return m.GeneralKeyShare + return m.GeneralKeyshare } - return GeneralKeyShare{} + return GeneralKeyshare{} } // QueryGeneralKeyShareAllRequest is request type for the Query/GeneralKeyShareAll RPC method. -type QueryGeneralKeyShareAllRequest struct { +type QueryGeneralKeyshareAllRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryGeneralKeyShareAllRequest) Reset() { *m = QueryGeneralKeyShareAllRequest{} } -func (m *QueryGeneralKeyShareAllRequest) String() string { return proto.CompactTextString(m) } -func (*QueryGeneralKeyShareAllRequest) ProtoMessage() {} -func (*QueryGeneralKeyShareAllRequest) Descriptor() ([]byte, []int) { +func (m *QueryGeneralKeyshareAllRequest) Reset() { *m = QueryGeneralKeyshareAllRequest{} } +func (m *QueryGeneralKeyshareAllRequest) String() string { return proto.CompactTextString(m) } +func (*QueryGeneralKeyshareAllRequest) ProtoMessage() {} +func (*QueryGeneralKeyshareAllRequest) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{26} } -func (m *QueryGeneralKeyShareAllRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryGeneralKeyshareAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGeneralKeyShareAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGeneralKeyshareAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGeneralKeyShareAllRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGeneralKeyshareAllRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1278,19 +1278,19 @@ func (m *QueryGeneralKeyShareAllRequest) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *QueryGeneralKeyShareAllRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGeneralKeyShareAllRequest.Merge(m, src) +func (m *QueryGeneralKeyshareAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGeneralKeyshareAllRequest.Merge(m, src) } -func (m *QueryGeneralKeyShareAllRequest) XXX_Size() int { +func (m *QueryGeneralKeyshareAllRequest) XXX_Size() int { return m.Size() } -func (m *QueryGeneralKeyShareAllRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGeneralKeyShareAllRequest.DiscardUnknown(m) +func (m *QueryGeneralKeyshareAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGeneralKeyshareAllRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryGeneralKeyShareAllRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryGeneralKeyshareAllRequest proto.InternalMessageInfo -func (m *QueryGeneralKeyShareAllRequest) GetPagination() *query.PageRequest { +func (m *QueryGeneralKeyshareAllRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } @@ -1298,23 +1298,23 @@ func (m *QueryGeneralKeyShareAllRequest) GetPagination() *query.PageRequest { } // QueryGeneralKeyShareAllResponse is response type for the Query/GeneralKeyShareAll RPC method. -type QueryGeneralKeyShareAllResponse struct { - GeneralKeyShare []GeneralKeyShare `protobuf:"bytes,1,rep,name=general_key_share,json=generalKeyShare,proto3" json:"general_key_share"` +type QueryGeneralKeyshareAllResponse struct { + GeneralKeyshare []GeneralKeyshare `protobuf:"bytes,1,rep,name=general_keyshare,json=generalKeyshare,proto3" json:"general_keyshare"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryGeneralKeyShareAllResponse) Reset() { *m = QueryGeneralKeyShareAllResponse{} } -func (m *QueryGeneralKeyShareAllResponse) String() string { return proto.CompactTextString(m) } -func (*QueryGeneralKeyShareAllResponse) ProtoMessage() {} -func (*QueryGeneralKeyShareAllResponse) Descriptor() ([]byte, []int) { +func (m *QueryGeneralKeyshareAllResponse) Reset() { *m = QueryGeneralKeyshareAllResponse{} } +func (m *QueryGeneralKeyshareAllResponse) String() string { return proto.CompactTextString(m) } +func (*QueryGeneralKeyshareAllResponse) ProtoMessage() {} +func (*QueryGeneralKeyshareAllResponse) Descriptor() ([]byte, []int) { return fileDescriptor_572603c2d521bf14, []int{27} } -func (m *QueryGeneralKeyShareAllResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryGeneralKeyshareAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryGeneralKeyShareAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryGeneralKeyshareAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryGeneralKeyShareAllResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryGeneralKeyshareAllResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1324,26 +1324,26 @@ func (m *QueryGeneralKeyShareAllResponse) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (m *QueryGeneralKeyShareAllResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryGeneralKeyShareAllResponse.Merge(m, src) +func (m *QueryGeneralKeyshareAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryGeneralKeyshareAllResponse.Merge(m, src) } -func (m *QueryGeneralKeyShareAllResponse) XXX_Size() int { +func (m *QueryGeneralKeyshareAllResponse) XXX_Size() int { return m.Size() } -func (m *QueryGeneralKeyShareAllResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryGeneralKeyShareAllResponse.DiscardUnknown(m) +func (m *QueryGeneralKeyshareAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryGeneralKeyshareAllResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryGeneralKeyShareAllResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryGeneralKeyshareAllResponse proto.InternalMessageInfo -func (m *QueryGeneralKeyShareAllResponse) GetGeneralKeyShare() []GeneralKeyShare { +func (m *QueryGeneralKeyshareAllResponse) GetGeneralKeyshare() []GeneralKeyshare { if m != nil { - return m.GeneralKeyShare + return m.GeneralKeyshare } return nil } -func (m *QueryGeneralKeyShareAllResponse) GetPagination() *query.PageResponse { +func (m *QueryGeneralKeyshareAllResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } @@ -1361,121 +1361,119 @@ func init() { proto.RegisterType((*QueryValidatorSetResponse)(nil), "fairyring.keyshare.QueryValidatorSetResponse") proto.RegisterType((*QueryValidatorSetAllRequest)(nil), "fairyring.keyshare.QueryValidatorSetAllRequest") proto.RegisterType((*QueryValidatorSetAllResponse)(nil), "fairyring.keyshare.QueryValidatorSetAllResponse") - proto.RegisterType((*QueryKeyShareRequest)(nil), "fairyring.keyshare.QueryKeyShareRequest") - proto.RegisterType((*QueryKeyShareResponse)(nil), "fairyring.keyshare.QueryKeyShareResponse") - proto.RegisterType((*QueryKeyShareAllRequest)(nil), "fairyring.keyshare.QueryKeyShareAllRequest") - proto.RegisterType((*QueryKeyShareAllResponse)(nil), "fairyring.keyshare.QueryKeyShareAllResponse") + proto.RegisterType((*QueryKeyshareRequest)(nil), "fairyring.keyshare.QueryKeyshareRequest") + proto.RegisterType((*QueryKeyshareResponse)(nil), "fairyring.keyshare.QueryKeyshareResponse") + proto.RegisterType((*QueryKeyshareAllRequest)(nil), "fairyring.keyshare.QueryKeyshareAllRequest") + proto.RegisterType((*QueryKeyshareAllResponse)(nil), "fairyring.keyshare.QueryKeyshareAllResponse") proto.RegisterType((*QueryDecryptionKeyRequest)(nil), "fairyring.keyshare.QueryDecryptionKeyRequest") proto.RegisterType((*QueryDecryptionKeyResponse)(nil), "fairyring.keyshare.QueryDecryptionKeyResponse") proto.RegisterType((*QueryDecryptionKeyAllRequest)(nil), "fairyring.keyshare.QueryDecryptionKeyAllRequest") proto.RegisterType((*QueryDecryptionKeyAllResponse)(nil), "fairyring.keyshare.QueryDecryptionKeyAllResponse") - proto.RegisterType((*QueryPubKeyRequest)(nil), "fairyring.keyshare.QueryPubKeyRequest") - proto.RegisterType((*QueryPubKeyResponse)(nil), "fairyring.keyshare.QueryPubKeyResponse") + proto.RegisterType((*QueryPubkeyRequest)(nil), "fairyring.keyshare.QueryPubkeyRequest") + proto.RegisterType((*QueryPubkeyResponse)(nil), "fairyring.keyshare.QueryPubkeyResponse") proto.RegisterType((*QueryAuthorizedAddressRequest)(nil), "fairyring.keyshare.QueryAuthorizedAddressRequest") proto.RegisterType((*QueryAuthorizedAddressResponse)(nil), "fairyring.keyshare.QueryAuthorizedAddressResponse") proto.RegisterType((*QueryAuthorizedAddressAllRequest)(nil), "fairyring.keyshare.QueryAuthorizedAddressAllRequest") proto.RegisterType((*QueryAuthorizedAddressAllResponse)(nil), "fairyring.keyshare.QueryAuthorizedAddressAllResponse") - proto.RegisterType((*QueryGeneralKeyShareRequest)(nil), "fairyring.keyshare.QueryGeneralKeyShareRequest") - proto.RegisterType((*QueryGeneralKeyShareResponse)(nil), "fairyring.keyshare.QueryGeneralKeyShareResponse") - proto.RegisterType((*QueryGeneralKeyShareAllRequest)(nil), "fairyring.keyshare.QueryGeneralKeyShareAllRequest") - proto.RegisterType((*QueryGeneralKeyShareAllResponse)(nil), "fairyring.keyshare.QueryGeneralKeyShareAllResponse") + proto.RegisterType((*QueryGeneralKeyshareRequest)(nil), "fairyring.keyshare.QueryGeneralKeyshareRequest") + proto.RegisterType((*QueryGeneralKeyshareResponse)(nil), "fairyring.keyshare.QueryGeneralKeyshareResponse") + proto.RegisterType((*QueryGeneralKeyshareAllRequest)(nil), "fairyring.keyshare.QueryGeneralKeyshareAllRequest") + proto.RegisterType((*QueryGeneralKeyshareAllResponse)(nil), "fairyring.keyshare.QueryGeneralKeyshareAllResponse") } func init() { proto.RegisterFile("fairyring/keyshare/query.proto", fileDescriptor_572603c2d521bf14) } var fileDescriptor_572603c2d521bf14 = []byte{ - // 1445 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcf, 0x6f, 0xdc, 0xc4, - 0x17, 0xcf, 0x24, 0x6d, 0xda, 0x4c, 0xda, 0xe6, 0x9b, 0xf9, 0x06, 0x9a, 0x6e, 0xd3, 0x4d, 0x32, - 0x6d, 0x93, 0xb4, 0x21, 0x3b, 0x4d, 0x02, 0x2a, 0x42, 0x42, 0x90, 0x82, 0xda, 0xa2, 0xa2, 0xaa, - 0xdd, 0x96, 0x02, 0xbd, 0xac, 0x66, 0xe3, 0xa9, 0xd7, 0x64, 0xd7, 0xde, 0xd8, 0xde, 0xa8, 0x4b, - 0x58, 0x0e, 0xfc, 0x03, 0x80, 0xb8, 0x83, 0x50, 0x39, 0x70, 0xe0, 0x00, 0x02, 0x71, 0xe0, 0x82, - 0x90, 0x38, 0xf4, 0x58, 0x89, 0x0b, 0x27, 0x84, 0x5a, 0x24, 0xfe, 0x07, 0x4e, 0xc8, 0xe3, 0x67, - 0xaf, 0xed, 0x1d, 0x7b, 0xbd, 0x34, 0xb9, 0xac, 0xd6, 0x33, 0xef, 0xc7, 0xe7, 0xfd, 0x98, 0x37, - 0x1f, 0x1b, 0x17, 0xef, 0x71, 0xc3, 0x6e, 0xdb, 0x86, 0xa9, 0xb3, 0x2d, 0xd1, 0x76, 0x6a, 0xdc, - 0x16, 0x6c, 0xbb, 0x25, 0xec, 0x76, 0xa9, 0x69, 0x5b, 0xae, 0x45, 0x48, 0xb8, 0x5f, 0x0a, 0xf6, - 0x0b, 0x93, 0xbc, 0x61, 0x98, 0x16, 0x93, 0xbf, 0xbe, 0x58, 0x61, 0x4a, 0xb7, 0x74, 0x4b, 0xfe, - 0x65, 0xde, 0x3f, 0x58, 0x9d, 0xd1, 0x2d, 0x4b, 0xaf, 0x0b, 0xc6, 0x9b, 0x06, 0xe3, 0xa6, 0x69, - 0xb9, 0xdc, 0x35, 0x2c, 0xd3, 0x81, 0xdd, 0xf3, 0x9b, 0x96, 0xd3, 0xb0, 0x1c, 0x56, 0xe5, 0x0e, - 0xf8, 0x64, 0x3b, 0xab, 0x55, 0xe1, 0xf2, 0x55, 0xd6, 0xe4, 0xba, 0x61, 0x4a, 0x61, 0x90, 0x9d, - 0x55, 0xc0, 0x6c, 0x72, 0x9b, 0x37, 0x02, 0x63, 0x0b, 0x0a, 0x81, 0x1d, 0x5e, 0x37, 0x34, 0xee, - 0x5a, 0x76, 0xc5, 0x11, 0x2e, 0xc8, 0x51, 0x85, 0xdc, 0x96, 0x68, 0x57, 0xe4, 0x3f, 0x90, 0x59, - 0x51, 0xc8, 0x70, 0x5d, 0xb7, 0x85, 0xce, 0x5d, 0xa1, 0x55, 0x92, 0xe2, 0x73, 0x2a, 0x6c, 0xad, - 0xaa, 0x27, 0x07, 0x12, 0xcb, 0x2a, 0x83, 0x2d, 0xb7, 0x66, 0xd9, 0xc6, 0xfb, 0x42, 0xab, 0x70, - 0x4d, 0xb3, 0x85, 0x13, 0x44, 0x72, 0x46, 0x21, 0xbc, 0x69, 0x35, 0x1a, 0x86, 0xdb, 0x10, 0xa6, - 0x0b, 0x52, 0x94, 0xe2, 0xb9, 0x9b, 0x5e, 0xca, 0xee, 0x08, 0xdb, 0xb8, 0x67, 0xf0, 0x6a, 0x5d, - 0x94, 0xb9, 0xa9, 0x59, 0x0d, 0x53, 0x38, 0x4e, 0x59, 0x6c, 0xb7, 0x84, 0xe3, 0xd2, 0x77, 0xf1, - 0x7c, 0x86, 0x8c, 0xd3, 0xb4, 0x4c, 0x47, 0x90, 0x22, 0xc6, 0x76, 0xb8, 0x3a, 0x8d, 0xe6, 0xd0, - 0xd2, 0x58, 0x39, 0xb2, 0x42, 0xa6, 0xf0, 0x41, 0xdb, 0x6a, 0x99, 0xda, 0xf4, 0xf0, 0x1c, 0x5a, - 0x3a, 0x50, 0xf6, 0x1f, 0xe8, 0x14, 0x26, 0xd2, 0xf4, 0x0d, 0x59, 0x83, 0xc0, 0xe1, 0x6d, 0xfc, - 0xff, 0xd8, 0x2a, 0xb8, 0x78, 0x19, 0x8f, 0xfa, 0xb5, 0x92, 0xe6, 0xc7, 0xd7, 0x0a, 0xa5, 0xde, - 0xa6, 0x2a, 0xf9, 0x3a, 0x97, 0xc6, 0x1e, 0xfe, 0x31, 0x3b, 0xf4, 0xf5, 0xdf, 0xdf, 0x9e, 0x47, - 0x65, 0x50, 0xa2, 0x27, 0xf0, 0x71, 0x69, 0xf5, 0xb5, 0x6e, 0x12, 0x02, 0x87, 0x3f, 0x21, 0x3c, - 0xdd, 0xbb, 0x07, 0x6e, 0xaf, 0x63, 0xc2, 0x37, 0x5d, 0x63, 0x47, 0x54, 0x22, 0xe9, 0x03, 0x08, - 0xb3, 0x2a, 0x08, 0x51, 0x23, 0x93, 0xbe, 0x6a, 0x64, 0xc9, 0xb3, 0xb7, 0xdd, 0x12, 0x2d, 0xa1, - 0xc5, 0xec, 0x0d, 0xe7, 0xb4, 0xe7, 0xab, 0x46, 0x96, 0xe8, 0x05, 0xc0, 0x7e, 0x27, 0x68, 0xd3, - 0x5b, 0xc2, 0x85, 0xc0, 0xbc, 0xac, 0x1b, 0xa6, 0x26, 0xee, 0x43, 0x41, 0xfc, 0x07, 0x5a, 0xc3, - 0x27, 0x14, 0x1a, 0x10, 0xee, 0x35, 0x7c, 0x34, 0xd6, 0xf0, 0x10, 0xe9, 0x9c, 0x0a, 0x59, 0xd4, - 0xc0, 0xa5, 0x03, 0x5e, 0xca, 0xcb, 0x47, 0x76, 0x22, 0x6b, 0x54, 0xe0, 0x93, 0x3d, 0x9e, 0x36, - 0xea, 0xf5, 0x00, 0xde, 0x65, 0x8c, 0xbb, 0x47, 0x14, 0x1c, 0x2d, 0x94, 0xfc, 0xf3, 0x5c, 0xf2, - 0xce, 0x73, 0xc9, 0x9f, 0x21, 0x70, 0x9e, 0x4b, 0x37, 0xb8, 0x2e, 0x40, 0xb7, 0x1c, 0xd1, 0xa4, - 0x3f, 0x20, 0x3c, 0xa3, 0xf6, 0x93, 0x1e, 0xd4, 0xc8, 0x7f, 0x0d, 0x8a, 0x5c, 0x89, 0xa1, 0xf6, - 0x0b, 0xb7, 0xd8, 0x17, 0xb5, 0x8f, 0x24, 0x06, 0xfb, 0x6d, 0x3c, 0x25, 0x51, 0x5f, 0x13, 0xed, - 0x5b, 0x9e, 0xeb, 0x20, 0x2d, 0x33, 0x78, 0x2c, 0x74, 0x08, 0x95, 0xeb, 0x2e, 0x90, 0x79, 0x7c, - 0xa4, 0x5a, 0xb7, 0x36, 0xb7, 0x2a, 0x35, 0x61, 0xe8, 0x35, 0x17, 0x0e, 0xd4, 0xb8, 0x5c, 0xbb, - 0x2a, 0x97, 0xe8, 0x3b, 0xf8, 0x99, 0x84, 0x61, 0xc8, 0xc3, 0x2b, 0x78, 0x2c, 0x1c, 0x3b, 0x90, - 0xef, 0x19, 0x55, 0x0e, 0x02, 0x45, 0x88, 0xff, 0xf0, 0x16, 0x3c, 0x53, 0x0e, 0x87, 0x28, 0x10, - 0xd8, 0x87, 0x62, 0x7e, 0x15, 0x1c, 0xc6, 0x98, 0x0f, 0x75, 0x00, 0x23, 0x83, 0x06, 0xb0, 0x77, - 0xc5, 0x5b, 0x87, 0x43, 0xf4, 0xba, 0xd8, 0xb4, 0xdb, 0x4d, 0x6f, 0xe9, 0x9a, 0x68, 0x07, 0xb9, - 0x78, 0x16, 0x8f, 0x42, 0x75, 0x90, 0xac, 0x0e, 0x3c, 0xd1, 0x6d, 0x5c, 0x50, 0x29, 0x41, 0x70, - 0xb7, 0xf0, 0x31, 0x2d, 0xdc, 0xf0, 0xe6, 0x7e, 0x98, 0x45, 0x45, 0x84, 0x1b, 0xe1, 0x4d, 0x92, - 0x88, 0xf5, 0xa8, 0x16, 0x35, 0x4e, 0xef, 0xc1, 0xd1, 0x88, 0xb9, 0xdc, 0x87, 0xb2, 0xfd, 0x8c, - 0xf0, 0xa9, 0x14, 0x47, 0x10, 0xde, 0x5b, 0x78, 0x22, 0x1e, 0x9e, 0x03, 0x15, 0x1c, 0x2c, 0xbe, - 0x63, 0xb1, 0xf8, 0x9c, 0xbd, 0xab, 0x68, 0x78, 0x19, 0xb5, 0xaa, 0xdd, 0x52, 0xd2, 0xef, 0x50, - 0x70, 0x1b, 0xc1, 0x32, 0x44, 0xf3, 0x26, 0x3e, 0x06, 0xd7, 0x02, 0x5c, 0xd2, 0x59, 0x83, 0x72, - 0x43, 0x4a, 0xfa, 0x16, 0x82, 0x99, 0xc2, 0x23, 0x6b, 0x9e, 0x35, 0xb8, 0x14, 0x02, 0x6b, 0xc3, - 0xe9, 0xd6, 0x6e, 0x4a, 0xc9, 0xb8, 0xb5, 0xed, 0xc8, 0x1a, 0xbd, 0x08, 0xa5, 0xd8, 0x08, 0xc9, - 0xc1, 0x86, 0xcf, 0x0d, 0x22, 0xfd, 0xe9, 0x72, 0x5b, 0x87, 0xe9, 0x3e, 0x56, 0x86, 0x27, 0xfa, - 0x01, 0x2e, 0xa6, 0x29, 0x42, 0xd8, 0x77, 0x31, 0xe9, 0xa5, 0x1c, 0x10, 0xfa, 0x59, 0x65, 0xe8, - 0x49, 0x53, 0x80, 0x78, 0x92, 0x27, 0x37, 0xe8, 0x7b, 0x40, 0x46, 0x7a, 0x54, 0xf6, 0xa1, 0x5d, - 0x1f, 0x22, 0x60, 0x35, 0x6a, 0x67, 0x7d, 0xa2, 0x1d, 0x79, 0xfa, 0x68, 0xf7, 0xae, 0x6f, 0x2d, - 0xb8, 0x64, 0xaf, 0x08, 0x53, 0xd8, 0xbc, 0x3e, 0xd8, 0x6d, 0x72, 0x1c, 0x1f, 0x32, 0xb4, 0x8a, - 0xdb, 0x6e, 0x0a, 0x09, 0x61, 0xac, 0x3c, 0x6a, 0x68, 0xb7, 0xdb, 0x4d, 0x41, 0x4e, 0xe0, 0xc3, - 0x86, 0x56, 0xd9, 0xe1, 0xf5, 0x96, 0x98, 0x1e, 0x91, 0x3b, 0x87, 0x0c, 0xed, 0x8e, 0xf7, 0x48, - 0x5b, 0x30, 0x52, 0x7a, 0x1c, 0x86, 0x07, 0x7d, 0x52, 0xf7, 0xb7, 0x2a, 0xc9, 0xdb, 0xe6, 0xb4, - 0x2a, 0x69, 0x09, 0x3b, 0x90, 0xb2, 0x09, 0x3d, 0xbe, 0x4c, 0x6b, 0xd0, 0x9c, 0x09, 0xf1, 0x7d, - 0x68, 0x8e, 0x5f, 0x10, 0x9e, 0x4d, 0x75, 0x95, 0x1d, 0xe4, 0xc8, 0xd3, 0x05, 0xb9, 0x67, 0x5d, - 0xb1, 0xf6, 0xcf, 0x24, 0x3e, 0x28, 0x63, 0x20, 0x1d, 0x3c, 0xea, 0xb3, 0x62, 0xb2, 0x90, 0x32, - 0x4d, 0x12, 0x04, 0xbc, 0xb0, 0xd8, 0x57, 0xce, 0x77, 0x48, 0xe9, 0x47, 0xbf, 0xfd, 0xf5, 0xd9, - 0xf0, 0x0c, 0x29, 0xb0, 0xd4, 0x17, 0x2b, 0xf2, 0x29, 0xc2, 0xe3, 0x51, 0xfe, 0xbb, 0x9c, 0x6a, - 0xbc, 0x97, 0x99, 0x17, 0x9e, 0xcb, 0x27, 0x0c, 0x70, 0x16, 0x25, 0x9c, 0x79, 0x32, 0xcb, 0xb2, - 0x5f, 0x7e, 0xc8, 0xe7, 0x08, 0x1f, 0x89, 0xf2, 0x3c, 0x92, 0xee, 0x47, 0x41, 0xab, 0x0b, 0x2b, - 0x39, 0xa5, 0x01, 0xd6, 0xaa, 0x84, 0xb5, 0x4c, 0xce, 0xb1, 0x7e, 0x6f, 0x97, 0x6c, 0x57, 0x32, - 0xf4, 0x0e, 0xf9, 0x02, 0xe1, 0x89, 0x04, 0x99, 0x25, 0x2c, 0x97, 0xd7, 0xee, 0x71, 0x28, 0x5c, - 0xc8, 0xaf, 0x00, 0x48, 0xcf, 0x49, 0xa4, 0xa7, 0xc9, 0x7c, 0x5f, 0xa4, 0xe4, 0x4b, 0x84, 0x0f, - 0x87, 0x5d, 0xbb, 0x94, 0xea, 0x29, 0x31, 0x8d, 0x0a, 0xe7, 0x72, 0x48, 0x02, 0x98, 0x57, 0x25, - 0x98, 0x97, 0xc8, 0x8b, 0x2c, 0xeb, 0x65, 0x9b, 0xed, 0x86, 0xb8, 0x3a, 0x6c, 0x37, 0xca, 0x8c, - 0x3b, 0xe4, 0x63, 0x84, 0xc7, 0x23, 0x67, 0x37, 0xa3, 0xf5, 0x7a, 0x87, 0x49, 0x46, 0xeb, 0x29, - 0xc6, 0x01, 0x3d, 0x2b, 0xc1, 0xce, 0x92, 0x53, 0x99, 0x60, 0xc9, 0x03, 0x84, 0x8f, 0xc6, 0x08, - 0x12, 0x49, 0xef, 0x25, 0x15, 0xb3, 0x2c, 0x94, 0xf2, 0x8a, 0x03, 0xae, 0x75, 0x89, 0x6b, 0x85, - 0x2c, 0xab, 0x70, 0xc5, 0xe9, 0x18, 0xdb, 0x0d, 0xf2, 0xf6, 0x00, 0xe1, 0xff, 0x25, 0x69, 0x1c, - 0xb9, 0x90, 0xcf, 0x73, 0x24, 0x83, 0xab, 0x03, 0x68, 0x00, 0xdc, 0xf3, 0x12, 0xee, 0x19, 0x42, - 0xfb, 0xc3, 0x25, 0x1f, 0xe2, 0x51, 0x60, 0x4f, 0x19, 0x73, 0x2d, 0xca, 0xe5, 0xb2, 0xe6, 0x5a, - 0x8c, 0xdc, 0xd1, 0xd3, 0x12, 0xc6, 0x29, 0x72, 0x92, 0xa5, 0x7f, 0x94, 0x21, 0xdf, 0x23, 0x3c, - 0xd9, 0x73, 0xdf, 0x93, 0xf4, 0xa0, 0xd3, 0xd8, 0x58, 0x61, 0x6d, 0x10, 0x15, 0x40, 0x78, 0x51, - 0x22, 0x5c, 0x25, 0x8c, 0xe5, 0xfa, 0x28, 0xc4, 0x76, 0x7d, 0x86, 0xd7, 0xf1, 0x50, 0x4f, 0xa9, - 0x38, 0x0f, 0x79, 0x3e, 0x3f, 0x8a, 0x48, 0x8d, 0x5f, 0x18, 0x50, 0x0b, 0xe0, 0x97, 0x24, 0xfc, - 0x25, 0xb2, 0x90, 0x0f, 0x3e, 0xf9, 0x15, 0xe1, 0x89, 0xc4, 0x0d, 0x9a, 0x31, 0x0f, 0xd5, 0x4c, - 0x28, 0x63, 0x1e, 0xa6, 0x30, 0x19, 0x7a, 0x5d, 0xc2, 0xbc, 0x4a, 0x2e, 0xab, 0x60, 0xf6, 0x5c, - 0xff, 0xf1, 0x51, 0x04, 0xb4, 0xca, 0xff, 0x27, 0x79, 0x54, 0x87, 0x7c, 0x83, 0x30, 0xe9, 0xe5, - 0x14, 0x64, 0x2d, 0x2f, 0xb0, 0x48, 0xe2, 0xd7, 0x07, 0xd2, 0x81, 0x78, 0x56, 0x64, 0x3c, 0x8b, - 0xe4, 0x6c, 0xae, 0x78, 0xc8, 0x8f, 0x08, 0x4f, 0xa9, 0xbe, 0xfa, 0x65, 0xf4, 0x4a, 0xc6, 0x87, - 0xc4, 0x8c, 0x5e, 0xc9, 0xfa, 0xb4, 0xd8, 0xe7, 0xfa, 0x0c, 0x35, 0x2b, 0xdd, 0xaf, 0x8d, 0x97, - 0xde, 0x78, 0xf8, 0xb8, 0x88, 0x1e, 0x3d, 0x2e, 0xa2, 0x3f, 0x1f, 0x17, 0xd1, 0x27, 0x4f, 0x8a, - 0x43, 0x8f, 0x9e, 0x14, 0x87, 0x7e, 0x7f, 0x52, 0x1c, 0xba, 0xcb, 0x74, 0xc3, 0xad, 0xb5, 0xaa, - 0xa5, 0x4d, 0xab, 0xc1, 0x2e, 0x73, 0xc3, 0x96, 0x17, 0x46, 0xc4, 0xf0, 0xfd, 0xae, 0x69, 0xaf, - 0x7a, 0x4e, 0x75, 0x54, 0x7e, 0x28, 0x5d, 0xff, 0x37, 0x00, 0x00, 0xff, 0xff, 0x74, 0xa3, 0xd1, - 0x9d, 0xe2, 0x16, 0x00, 0x00, + // 1421 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4f, 0x6f, 0x1b, 0x45, + 0x14, 0xcf, 0x24, 0x6d, 0xda, 0x4c, 0xd2, 0xa6, 0x19, 0x0c, 0x4d, 0x17, 0xe3, 0xc4, 0xdb, 0x90, + 0xa4, 0x4d, 0xeb, 0x69, 0x12, 0x50, 0xc5, 0x01, 0x50, 0x0a, 0xb4, 0xa0, 0x0a, 0x94, 0x9a, 0xaa, + 0x15, 0xbd, 0x58, 0x63, 0xef, 0x64, 0xbd, 0xc4, 0xde, 0x75, 0x76, 0xd7, 0x51, 0x4d, 0xf0, 0x85, + 0x0f, 0x80, 0x40, 0xdc, 0x01, 0x29, 0x17, 0x24, 0x0e, 0x20, 0x81, 0x38, 0xf4, 0x84, 0xc4, 0x25, + 0xc7, 0x4a, 0x5c, 0x38, 0x21, 0x94, 0x20, 0xf1, 0x09, 0xb8, 0x23, 0xcf, 0xbe, 0xb5, 0x77, 0xd7, + 0xb3, 0xeb, 0x35, 0x4d, 0x2e, 0x96, 0xf7, 0xed, 0xfb, 0xf3, 0x7b, 0x7f, 0xe6, 0xbd, 0xb7, 0x83, + 0x73, 0x5b, 0xcc, 0xb0, 0x5b, 0xb6, 0x61, 0xea, 0x74, 0x9b, 0xb7, 0x9c, 0x2a, 0xb3, 0x39, 0xdd, + 0x69, 0x72, 0xbb, 0x55, 0x68, 0xd8, 0x96, 0x6b, 0x11, 0xd2, 0x7d, 0x5f, 0xf0, 0xdf, 0x2b, 0x33, + 0xac, 0x6e, 0x98, 0x16, 0x15, 0xbf, 0x1e, 0x9b, 0x72, 0xb5, 0x62, 0x39, 0x75, 0xcb, 0xa1, 0x65, + 0xe6, 0x80, 0x3c, 0xdd, 0x5d, 0x2d, 0x73, 0x97, 0xad, 0xd2, 0x06, 0xd3, 0x0d, 0x93, 0xb9, 0x86, + 0x65, 0x02, 0xef, 0x8a, 0xc4, 0x24, 0x6b, 0xba, 0x55, 0xcb, 0x36, 0x3e, 0xe1, 0x5a, 0x89, 0x69, + 0x9a, 0xcd, 0x1d, 0x07, 0x98, 0x17, 0x24, 0xcc, 0x15, 0xab, 0x5e, 0x37, 0xdc, 0x3a, 0x37, 0x5d, + 0x9f, 0x6b, 0x49, 0xc2, 0xa5, 0xf1, 0x8a, 0xdd, 0x6a, 0x74, 0xec, 0x96, 0xb6, 0x39, 0xb8, 0xa3, + 0xe4, 0x25, 0x8c, 0xfe, 0x1f, 0x60, 0x99, 0x93, 0xb0, 0x34, 0x98, 0xcd, 0xea, 0x4e, 0x12, 0x43, + 0xb3, 0xdc, 0x33, 0xb2, 0x28, 0x61, 0xd8, 0x65, 0x35, 0x43, 0x63, 0xae, 0x65, 0x97, 0x1c, 0xee, + 0x02, 0x5f, 0x46, 0xb7, 0x74, 0x4b, 0xfc, 0xa5, 0x9d, 0x7f, 0x40, 0xcd, 0xea, 0x96, 0xa5, 0xd7, + 0x38, 0x65, 0x0d, 0x83, 0x32, 0xd3, 0xb4, 0x5c, 0x11, 0x3b, 0x30, 0xae, 0xaa, 0x78, 0xfe, 0x5e, + 0x27, 0xbc, 0x0f, 0xb8, 0x6d, 0x6c, 0x19, 0xac, 0x5c, 0xe3, 0x45, 0x66, 0x6a, 0x56, 0xdd, 0xe4, + 0x8e, 0x53, 0xe4, 0x3b, 0x4d, 0xee, 0xb8, 0xea, 0x47, 0x38, 0x9f, 0xc0, 0xe3, 0x34, 0x2c, 0xd3, + 0xe1, 0x24, 0x87, 0xb1, 0xdd, 0xa5, 0xce, 0xa2, 0x79, 0xb4, 0x3c, 0x51, 0x0c, 0x50, 0x48, 0x06, + 0x9f, 0xb6, 0xad, 0xa6, 0xa9, 0xcd, 0x8e, 0xce, 0xa3, 0xe5, 0x53, 0x45, 0xef, 0x41, 0xcd, 0x60, + 0x22, 0x54, 0x6f, 0x8a, 0x80, 0xf8, 0x06, 0xef, 0xe3, 0xe7, 0x42, 0x54, 0x30, 0xf1, 0x3a, 0x1e, + 0xf7, 0x02, 0x27, 0xd4, 0x4f, 0xae, 0x29, 0x85, 0xfe, 0x62, 0x2a, 0x78, 0x32, 0xb7, 0x26, 0x0e, + 0xfe, 0x9c, 0x1b, 0xf9, 0xee, 0x9f, 0x1f, 0xaf, 0xa2, 0x22, 0x08, 0xa9, 0x97, 0xf0, 0x45, 0xa1, + 0xf5, 0xad, 0x5e, 0xba, 0x7d, 0x83, 0x4f, 0x10, 0x9e, 0xed, 0x7f, 0x07, 0x66, 0x3f, 0xc0, 0x84, + 0x55, 0x5c, 0x63, 0x97, 0x97, 0x02, 0x85, 0x02, 0x10, 0xe6, 0x64, 0x10, 0x82, 0x4a, 0x66, 0x3c, + 0xd1, 0x00, 0xa9, 0xa3, 0x6f, 0xa7, 0xc9, 0x9b, 0x5c, 0x0b, 0xe9, 0x1b, 0x4d, 0xa9, 0xcf, 0x13, + 0x0d, 0x90, 0xd4, 0x1b, 0x80, 0xfd, 0x81, 0x5f, 0x12, 0x1f, 0x72, 0x17, 0x1c, 0xeb, 0x44, 0xdd, + 0x30, 0x35, 0xfe, 0x18, 0x12, 0xe2, 0x3d, 0xa8, 0x55, 0x7c, 0x49, 0x22, 0x01, 0xee, 0xde, 0xc5, + 0xe7, 0x42, 0xc5, 0x05, 0x9e, 0xce, 0xcb, 0x90, 0x05, 0x15, 0xdc, 0x3a, 0xd5, 0x09, 0x79, 0x71, + 0x6a, 0x37, 0x40, 0x53, 0x39, 0x7e, 0xb1, 0xcf, 0xd2, 0x46, 0xad, 0xe6, 0xc3, 0xbb, 0x8d, 0x71, + 0xef, 0x38, 0x83, 0xa1, 0xc5, 0x82, 0x77, 0xf6, 0x0b, 0x9d, 0xb3, 0x5f, 0xf0, 0x7a, 0x07, 0x9c, + 0xfd, 0xc2, 0x26, 0xd3, 0x39, 0xc8, 0x16, 0x03, 0x92, 0xea, 0xcf, 0x08, 0x67, 0xe5, 0x76, 0xe2, + 0x9d, 0x1a, 0xfb, 0xbf, 0x4e, 0x91, 0x3b, 0x21, 0xd4, 0x5e, 0xe2, 0x96, 0x06, 0xa2, 0xf6, 0x90, + 0x84, 0x60, 0x3f, 0xc4, 0x19, 0x81, 0xfa, 0x2e, 0x98, 0xf6, 0xc3, 0x92, 0xc5, 0x13, 0x5d, 0x83, + 0x90, 0xb9, 0x1e, 0x81, 0xe4, 0xf1, 0x54, 0xb9, 0x66, 0x55, 0xb6, 0x4b, 0x55, 0x6e, 0xe8, 0x55, + 0x17, 0x0e, 0xd4, 0xa4, 0xa0, 0xbd, 0x2b, 0x48, 0xea, 0x43, 0xfc, 0x7c, 0x44, 0x31, 0xc4, 0xe1, + 0x0d, 0x7c, 0xd6, 0xf7, 0x13, 0xc2, 0x9d, 0x95, 0x85, 0xc0, 0x97, 0x03, 0xf7, 0xbb, 0x32, 0x2a, + 0x83, 0x33, 0xe4, 0x33, 0x9c, 0x40, 0x2e, 0xf7, 0xfd, 0xb3, 0x18, 0xb2, 0x21, 0xc5, 0x3f, 0x36, + 0x2c, 0xfe, 0xe3, 0x4b, 0xdd, 0x3a, 0x1c, 0xa1, 0xb7, 0xbb, 0x53, 0xe1, 0x2e, 0x6f, 0xf9, 0xa1, + 0x78, 0x01, 0x8f, 0x43, 0x6e, 0x90, 0xc8, 0x0d, 0x3c, 0xa9, 0x35, 0xac, 0xc8, 0x84, 0xba, 0x7d, + 0xe6, 0x7c, 0x78, 0xc6, 0x40, 0x10, 0xf3, 0x32, 0x0f, 0x43, 0x2a, 0xc0, 0xcd, 0x73, 0x5a, 0x90, + 0xa8, 0x6e, 0xc1, 0x99, 0x08, 0xb1, 0x9e, 0x40, 0xc2, 0x9e, 0x20, 0xfc, 0x52, 0x8c, 0x21, 0xf0, + 0x6c, 0x13, 0x4f, 0x87, 0x3d, 0x73, 0x20, 0x79, 0xa9, 0x5d, 0x3b, 0x1f, 0x72, 0xcd, 0x39, 0xbe, + 0x3c, 0x76, 0x07, 0x90, 0x18, 0xb8, 0xfe, 0x3c, 0xf8, 0x01, 0xf9, 0x13, 0x08, 0xc8, 0xbd, 0x36, + 0x02, 0xa3, 0xc0, 0x1b, 0xd0, 0x49, 0xbd, 0x71, 0x43, 0x30, 0x6e, 0x36, 0xcb, 0x3d, 0x2f, 0xa6, + 0x98, 0x4f, 0xdb, 0xe6, 0xad, 0x8e, 0x32, 0x98, 0x03, 0xa0, 0x6c, 0x34, 0x5e, 0xd9, 0x3d, 0xc1, + 0x18, 0x56, 0xb6, 0xe3, 0xd3, 0xb6, 0x79, 0x4b, 0xbd, 0x09, 0x39, 0xd8, 0xe8, 0x2e, 0x3e, 0x1b, + 0xde, 0xde, 0x13, 0xa8, 0x49, 0x97, 0xd9, 0x3a, 0xf4, 0xf3, 0x89, 0x22, 0x3c, 0xa9, 0x9f, 0xe2, + 0x5c, 0x9c, 0x20, 0x38, 0xfd, 0x08, 0x93, 0xfe, 0x75, 0x0a, 0x3c, 0x7f, 0x59, 0xea, 0x79, 0x54, + 0x15, 0x20, 0x9e, 0x61, 0xd1, 0x17, 0xea, 0xc7, 0xb0, 0x7e, 0xf4, 0x89, 0x9c, 0x40, 0x9d, 0x1e, + 0x20, 0xd8, 0x63, 0xe4, 0xc6, 0x06, 0x78, 0x3b, 0xf6, 0xec, 0xde, 0x1e, 0x5f, 0xd5, 0x5a, 0x30, + 0x56, 0xef, 0x70, 0x93, 0xdb, 0xac, 0x36, 0xdc, 0xfc, 0xb8, 0x88, 0xcf, 0x18, 0x5a, 0xc9, 0x6d, + 0x35, 0xb8, 0x80, 0x30, 0x51, 0x1c, 0x37, 0xb4, 0xfb, 0xad, 0x06, 0x27, 0x97, 0xf0, 0x59, 0x43, + 0x2b, 0xed, 0xb2, 0x5a, 0x93, 0xcf, 0x8e, 0x89, 0x37, 0x67, 0x0c, 0xed, 0x41, 0xe7, 0x51, 0x75, + 0xa1, 0x97, 0xf4, 0x19, 0x84, 0xa8, 0xdd, 0xc7, 0x17, 0x74, 0xef, 0x55, 0x29, 0x32, 0x5f, 0x2e, + 0xcb, 0x62, 0x16, 0x51, 0x03, 0x11, 0x9b, 0xd6, 0xc3, 0x64, 0xb5, 0x0a, 0xb5, 0x19, 0x61, 0x3f, + 0x81, 0xda, 0xf8, 0x15, 0xe1, 0xb9, 0x58, 0x53, 0x89, 0x3e, 0x8e, 0x3d, 0x9b, 0x8f, 0xc7, 0x56, + 0x13, 0x6b, 0xff, 0xce, 0xe0, 0xd3, 0xc2, 0x05, 0xd2, 0xc6, 0xe3, 0xde, 0x16, 0x4c, 0x16, 0x63, + 0x7a, 0x49, 0x64, 0xe1, 0x56, 0x96, 0x06, 0xf2, 0x79, 0x06, 0x55, 0xf5, 0xb3, 0xdf, 0xff, 0xfe, + 0x6a, 0x34, 0x4b, 0x14, 0x1a, 0xfb, 0x55, 0x43, 0xbe, 0x44, 0x78, 0x32, 0xb8, 0xef, 0xae, 0xc4, + 0x2a, 0xef, 0xdf, 0xc4, 0x95, 0x6b, 0xe9, 0x98, 0x01, 0xce, 0x92, 0x80, 0x93, 0x27, 0x73, 0x34, + 0xf9, 0xb3, 0x8e, 0x7c, 0x8d, 0xf0, 0x54, 0x70, 0xaf, 0x23, 0xf1, 0x76, 0x24, 0x6b, 0xb4, 0x72, + 0x3d, 0x25, 0x37, 0xc0, 0x5a, 0x15, 0xb0, 0x56, 0xc8, 0x15, 0x3a, 0xe8, 0xcb, 0x8d, 0xee, 0x89, + 0x8d, 0xbc, 0x4d, 0xbe, 0x41, 0x78, 0x3a, 0xb2, 0xbc, 0x12, 0x9a, 0xca, 0x6a, 0xef, 0x34, 0x28, + 0x37, 0xd2, 0x0b, 0x00, 0xd2, 0x2b, 0x02, 0xe9, 0x65, 0x92, 0x1f, 0x88, 0x94, 0x7c, 0x8b, 0xf0, + 0xd9, 0x6e, 0xd5, 0x2e, 0xc7, 0x5a, 0x8a, 0xf4, 0x22, 0xe5, 0x4a, 0x0a, 0x4e, 0x00, 0xf3, 0xa6, + 0x00, 0xf3, 0x1a, 0xb9, 0x49, 0x13, 0xbe, 0xaa, 0xe9, 0x5e, 0x17, 0x56, 0x9b, 0xee, 0x05, 0x17, + 0xe1, 0x36, 0xf9, 0x1c, 0xe1, 0xc9, 0xc0, 0xc9, 0x4d, 0xa8, 0xbc, 0xfe, 0x56, 0x92, 0x50, 0x79, + 0x92, 0x66, 0xa0, 0x2e, 0x08, 0xac, 0x39, 0x92, 0x4d, 0xc2, 0x4a, 0xf6, 0x11, 0x3e, 0x17, 0x5a, + 0x67, 0x48, 0x7c, 0x25, 0xc9, 0x36, 0x49, 0xa5, 0x90, 0x96, 0x1d, 0x60, 0xad, 0x0b, 0x58, 0xd7, + 0xc9, 0x0a, 0x1d, 0x78, 0x83, 0x41, 0xf7, 0xfc, 0xb0, 0xed, 0x23, 0x7c, 0x21, 0xba, 0xbb, 0x91, + 0x1b, 0xe9, 0x2c, 0x07, 0x02, 0xb8, 0x3a, 0x84, 0x04, 0xc0, 0xbd, 0x2a, 0xe0, 0x2e, 0x10, 0x75, + 0x30, 0x5c, 0xd1, 0xd5, 0xbc, 0xc5, 0x29, 0xa1, 0xab, 0x05, 0xb7, 0xb8, 0xa4, 0xae, 0x16, 0x5a, + 0xeb, 0x06, 0x74, 0x35, 0xcf, 0xe8, 0x4f, 0x08, 0xcf, 0xf4, 0x8d, 0x7a, 0x12, 0xef, 0x73, 0xdc, + 0x22, 0xa6, 0xac, 0x0d, 0x23, 0x02, 0x00, 0x6f, 0x0a, 0x80, 0xab, 0x84, 0xd2, 0x54, 0x77, 0x5d, + 0x74, 0xcf, 0x5b, 0xee, 0xda, 0x1d, 0xd4, 0x19, 0xd9, 0xba, 0x43, 0x5e, 0x49, 0x8f, 0x22, 0x90, + 0xe2, 0x57, 0x87, 0x94, 0x02, 0xf8, 0x05, 0x01, 0x7f, 0x99, 0x2c, 0xa6, 0x83, 0x4f, 0x7e, 0x43, + 0x78, 0x3a, 0x32, 0x3e, 0x13, 0x9a, 0xa1, 0x7c, 0x09, 0x4a, 0x68, 0x86, 0x31, 0x4b, 0x8c, 0xfa, + 0xbe, 0x80, 0x79, 0x87, 0xbc, 0x23, 0x83, 0x19, 0x1d, 0xfd, 0xe1, 0x3e, 0x04, 0x0b, 0x95, 0xf7, + 0x4f, 0x6c, 0x50, 0x6d, 0xf2, 0x3d, 0xc2, 0xa4, 0x7f, 0x9d, 0x20, 0x6b, 0x69, 0x71, 0x05, 0xe2, + 0xbe, 0x3e, 0x94, 0x0c, 0xb8, 0x73, 0x4d, 0xb8, 0xb3, 0x48, 0x16, 0xd2, 0xb8, 0x43, 0x7e, 0x41, + 0x38, 0x23, 0xbb, 0xe0, 0x4b, 0xa8, 0x94, 0x84, 0x3b, 0xc3, 0x84, 0x4a, 0x49, 0xba, 0x45, 0x1c, + 0x30, 0x39, 0xbb, 0x92, 0xa5, 0xde, 0xc5, 0xe2, 0xad, 0xf7, 0x0e, 0x0e, 0x73, 0xe8, 0xe9, 0x61, + 0x0e, 0xfd, 0x75, 0x98, 0x43, 0x5f, 0x1c, 0xe5, 0x46, 0x9e, 0x1e, 0xe5, 0x46, 0xfe, 0x38, 0xca, + 0x8d, 0x3c, 0xa2, 0xba, 0xe1, 0x56, 0x9b, 0xe5, 0x42, 0xc5, 0xaa, 0xd3, 0xdb, 0xcc, 0xb0, 0xc5, + 0xb0, 0x08, 0x28, 0x7e, 0xdc, 0x53, 0xdd, 0x49, 0x9e, 0x53, 0x1e, 0x17, 0x77, 0xa2, 0xeb, 0xff, + 0x05, 0x00, 0x00, 0xff, 0xff, 0x24, 0x76, 0x99, 0x96, 0xc5, 0x16, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1498,24 +1496,24 @@ type QueryClient interface { ValidatorSet(ctx context.Context, in *QueryValidatorSetRequest, opts ...grpc.CallOption) (*QueryValidatorSetResponse, error) // Queries a list of ValidatorSet items. ValidatorSetAll(ctx context.Context, in *QueryValidatorSetAllRequest, opts ...grpc.CallOption) (*QueryValidatorSetAllResponse, error) - // Queries a KeyShare by index. - KeyShare(ctx context.Context, in *QueryKeyShareRequest, opts ...grpc.CallOption) (*QueryKeyShareResponse, error) - // Queries a list of KeyShare items. - KeyShareAll(ctx context.Context, in *QueryKeyShareAllRequest, opts ...grpc.CallOption) (*QueryKeyShareAllResponse, error) + // Queries a Keyshare by index. + Keyshare(ctx context.Context, in *QueryKeyshareRequest, opts ...grpc.CallOption) (*QueryKeyshareResponse, error) + // Queries a list of Keyshare items. + KeyshareAll(ctx context.Context, in *QueryKeyshareAllRequest, opts ...grpc.CallOption) (*QueryKeyshareAllResponse, error) // DecryptionKey queries a DecryptionKey item by height. DecryptionKey(ctx context.Context, in *QueryDecryptionKeyRequest, opts ...grpc.CallOption) (*QueryDecryptionKeyResponse, error) // DecryptionKeyAll Queries a list of DecryptionKey items. DecryptionKeyAll(ctx context.Context, in *QueryDecryptionKeyAllRequest, opts ...grpc.CallOption) (*QueryDecryptionKeyAllResponse, error) // Queries the public keys - PubKey(ctx context.Context, in *QueryPubKeyRequest, opts ...grpc.CallOption) (*QueryPubKeyResponse, error) + Pubkey(ctx context.Context, in *QueryPubkeyRequest, opts ...grpc.CallOption) (*QueryPubkeyResponse, error) // Queries a AuthorizedAddress item by target. AuthorizedAddress(ctx context.Context, in *QueryAuthorizedAddressRequest, opts ...grpc.CallOption) (*QueryAuthorizedAddressResponse, error) // Queries a list of AuthorizedAddress items AuthorizedAddressAll(ctx context.Context, in *QueryAuthorizedAddressAllRequest, opts ...grpc.CallOption) (*QueryAuthorizedAddressAllResponse, error) // Queries a GeneralKeyShare item by validator address and identity. - GeneralKeyShare(ctx context.Context, in *QueryGeneralKeyShareRequest, opts ...grpc.CallOption) (*QueryGeneralKeyShareResponse, error) + GeneralKeyshare(ctx context.Context, in *QueryGeneralKeyshareRequest, opts ...grpc.CallOption) (*QueryGeneralKeyshareResponse, error) // Queries a list of GeneralKeyShare items - GeneralKeyShareAll(ctx context.Context, in *QueryGeneralKeyShareAllRequest, opts ...grpc.CallOption) (*QueryGeneralKeyShareAllResponse, error) + GeneralKeyshareAll(ctx context.Context, in *QueryGeneralKeyshareAllRequest, opts ...grpc.CallOption) (*QueryGeneralKeyshareAllResponse, error) // Queries verifiable randomness VerifiableRandomness(ctx context.Context, in *QueryVerifiableRandomnessRequest, opts ...grpc.CallOption) (*QueryVerifiableRandomnessResponse, error) } @@ -1564,18 +1562,18 @@ func (c *queryClient) ValidatorSetAll(ctx context.Context, in *QueryValidatorSet return out, nil } -func (c *queryClient) KeyShare(ctx context.Context, in *QueryKeyShareRequest, opts ...grpc.CallOption) (*QueryKeyShareResponse, error) { - out := new(QueryKeyShareResponse) - err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/KeyShare", in, out, opts...) +func (c *queryClient) Keyshare(ctx context.Context, in *QueryKeyshareRequest, opts ...grpc.CallOption) (*QueryKeyshareResponse, error) { + out := new(QueryKeyshareResponse) + err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/Keyshare", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) KeyShareAll(ctx context.Context, in *QueryKeyShareAllRequest, opts ...grpc.CallOption) (*QueryKeyShareAllResponse, error) { - out := new(QueryKeyShareAllResponse) - err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/KeyShareAll", in, out, opts...) +func (c *queryClient) KeyshareAll(ctx context.Context, in *QueryKeyshareAllRequest, opts ...grpc.CallOption) (*QueryKeyshareAllResponse, error) { + out := new(QueryKeyshareAllResponse) + err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/KeyshareAll", in, out, opts...) if err != nil { return nil, err } @@ -1600,9 +1598,9 @@ func (c *queryClient) DecryptionKeyAll(ctx context.Context, in *QueryDecryptionK return out, nil } -func (c *queryClient) PubKey(ctx context.Context, in *QueryPubKeyRequest, opts ...grpc.CallOption) (*QueryPubKeyResponse, error) { - out := new(QueryPubKeyResponse) - err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/PubKey", in, out, opts...) +func (c *queryClient) Pubkey(ctx context.Context, in *QueryPubkeyRequest, opts ...grpc.CallOption) (*QueryPubkeyResponse, error) { + out := new(QueryPubkeyResponse) + err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/Pubkey", in, out, opts...) if err != nil { return nil, err } @@ -1627,18 +1625,18 @@ func (c *queryClient) AuthorizedAddressAll(ctx context.Context, in *QueryAuthori return out, nil } -func (c *queryClient) GeneralKeyShare(ctx context.Context, in *QueryGeneralKeyShareRequest, opts ...grpc.CallOption) (*QueryGeneralKeyShareResponse, error) { - out := new(QueryGeneralKeyShareResponse) - err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/GeneralKeyShare", in, out, opts...) +func (c *queryClient) GeneralKeyshare(ctx context.Context, in *QueryGeneralKeyshareRequest, opts ...grpc.CallOption) (*QueryGeneralKeyshareResponse, error) { + out := new(QueryGeneralKeyshareResponse) + err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/GeneralKeyshare", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) GeneralKeyShareAll(ctx context.Context, in *QueryGeneralKeyShareAllRequest, opts ...grpc.CallOption) (*QueryGeneralKeyShareAllResponse, error) { - out := new(QueryGeneralKeyShareAllResponse) - err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/GeneralKeyShareAll", in, out, opts...) +func (c *queryClient) GeneralKeyshareAll(ctx context.Context, in *QueryGeneralKeyshareAllRequest, opts ...grpc.CallOption) (*QueryGeneralKeyshareAllResponse, error) { + out := new(QueryGeneralKeyshareAllResponse) + err := c.cc.Invoke(ctx, "/fairyring.keyshare.Query/GeneralKeyshareAll", in, out, opts...) if err != nil { return nil, err } @@ -1664,24 +1662,24 @@ type QueryServer interface { ValidatorSet(context.Context, *QueryValidatorSetRequest) (*QueryValidatorSetResponse, error) // Queries a list of ValidatorSet items. ValidatorSetAll(context.Context, *QueryValidatorSetAllRequest) (*QueryValidatorSetAllResponse, error) - // Queries a KeyShare by index. - KeyShare(context.Context, *QueryKeyShareRequest) (*QueryKeyShareResponse, error) - // Queries a list of KeyShare items. - KeyShareAll(context.Context, *QueryKeyShareAllRequest) (*QueryKeyShareAllResponse, error) + // Queries a Keyshare by index. + Keyshare(context.Context, *QueryKeyshareRequest) (*QueryKeyshareResponse, error) + // Queries a list of Keyshare items. + KeyshareAll(context.Context, *QueryKeyshareAllRequest) (*QueryKeyshareAllResponse, error) // DecryptionKey queries a DecryptionKey item by height. DecryptionKey(context.Context, *QueryDecryptionKeyRequest) (*QueryDecryptionKeyResponse, error) // DecryptionKeyAll Queries a list of DecryptionKey items. DecryptionKeyAll(context.Context, *QueryDecryptionKeyAllRequest) (*QueryDecryptionKeyAllResponse, error) // Queries the public keys - PubKey(context.Context, *QueryPubKeyRequest) (*QueryPubKeyResponse, error) + Pubkey(context.Context, *QueryPubkeyRequest) (*QueryPubkeyResponse, error) // Queries a AuthorizedAddress item by target. AuthorizedAddress(context.Context, *QueryAuthorizedAddressRequest) (*QueryAuthorizedAddressResponse, error) // Queries a list of AuthorizedAddress items AuthorizedAddressAll(context.Context, *QueryAuthorizedAddressAllRequest) (*QueryAuthorizedAddressAllResponse, error) // Queries a GeneralKeyShare item by validator address and identity. - GeneralKeyShare(context.Context, *QueryGeneralKeyShareRequest) (*QueryGeneralKeyShareResponse, error) + GeneralKeyshare(context.Context, *QueryGeneralKeyshareRequest) (*QueryGeneralKeyshareResponse, error) // Queries a list of GeneralKeyShare items - GeneralKeyShareAll(context.Context, *QueryGeneralKeyShareAllRequest) (*QueryGeneralKeyShareAllResponse, error) + GeneralKeyshareAll(context.Context, *QueryGeneralKeyshareAllRequest) (*QueryGeneralKeyshareAllResponse, error) // Queries verifiable randomness VerifiableRandomness(context.Context, *QueryVerifiableRandomnessRequest) (*QueryVerifiableRandomnessResponse, error) } @@ -1702,11 +1700,11 @@ func (*UnimplementedQueryServer) ValidatorSet(ctx context.Context, req *QueryVal func (*UnimplementedQueryServer) ValidatorSetAll(ctx context.Context, req *QueryValidatorSetAllRequest) (*QueryValidatorSetAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValidatorSetAll not implemented") } -func (*UnimplementedQueryServer) KeyShare(ctx context.Context, req *QueryKeyShareRequest) (*QueryKeyShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KeyShare not implemented") +func (*UnimplementedQueryServer) Keyshare(ctx context.Context, req *QueryKeyshareRequest) (*QueryKeyshareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Keyshare not implemented") } -func (*UnimplementedQueryServer) KeyShareAll(ctx context.Context, req *QueryKeyShareAllRequest) (*QueryKeyShareAllResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method KeyShareAll not implemented") +func (*UnimplementedQueryServer) KeyshareAll(ctx context.Context, req *QueryKeyshareAllRequest) (*QueryKeyshareAllResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method KeyshareAll not implemented") } func (*UnimplementedQueryServer) DecryptionKey(ctx context.Context, req *QueryDecryptionKeyRequest) (*QueryDecryptionKeyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DecryptionKey not implemented") @@ -1714,8 +1712,8 @@ func (*UnimplementedQueryServer) DecryptionKey(ctx context.Context, req *QueryDe func (*UnimplementedQueryServer) DecryptionKeyAll(ctx context.Context, req *QueryDecryptionKeyAllRequest) (*QueryDecryptionKeyAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DecryptionKeyAll not implemented") } -func (*UnimplementedQueryServer) PubKey(ctx context.Context, req *QueryPubKeyRequest) (*QueryPubKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PubKey not implemented") +func (*UnimplementedQueryServer) Pubkey(ctx context.Context, req *QueryPubkeyRequest) (*QueryPubkeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Pubkey not implemented") } func (*UnimplementedQueryServer) AuthorizedAddress(ctx context.Context, req *QueryAuthorizedAddressRequest) (*QueryAuthorizedAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AuthorizedAddress not implemented") @@ -1723,11 +1721,11 @@ func (*UnimplementedQueryServer) AuthorizedAddress(ctx context.Context, req *Que func (*UnimplementedQueryServer) AuthorizedAddressAll(ctx context.Context, req *QueryAuthorizedAddressAllRequest) (*QueryAuthorizedAddressAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AuthorizedAddressAll not implemented") } -func (*UnimplementedQueryServer) GeneralKeyShare(ctx context.Context, req *QueryGeneralKeyShareRequest) (*QueryGeneralKeyShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GeneralKeyShare not implemented") +func (*UnimplementedQueryServer) GeneralKeyshare(ctx context.Context, req *QueryGeneralKeyshareRequest) (*QueryGeneralKeyshareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GeneralKeyshare not implemented") } -func (*UnimplementedQueryServer) GeneralKeyShareAll(ctx context.Context, req *QueryGeneralKeyShareAllRequest) (*QueryGeneralKeyShareAllResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GeneralKeyShareAll not implemented") +func (*UnimplementedQueryServer) GeneralKeyshareAll(ctx context.Context, req *QueryGeneralKeyshareAllRequest) (*QueryGeneralKeyshareAllResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GeneralKeyshareAll not implemented") } func (*UnimplementedQueryServer) VerifiableRandomness(ctx context.Context, req *QueryVerifiableRandomnessRequest) (*QueryVerifiableRandomnessResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method VerifiableRandomness not implemented") @@ -1809,38 +1807,38 @@ func _Query_ValidatorSetAll_Handler(srv interface{}, ctx context.Context, dec fu return interceptor(ctx, in, info, handler) } -func _Query_KeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryKeyShareRequest) +func _Query_Keyshare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryKeyshareRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).KeyShare(ctx, in) + return srv.(QueryServer).Keyshare(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.keyshare.Query/KeyShare", + FullMethod: "/fairyring.keyshare.Query/Keyshare", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).KeyShare(ctx, req.(*QueryKeyShareRequest)) + return srv.(QueryServer).Keyshare(ctx, req.(*QueryKeyshareRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_KeyShareAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryKeyShareAllRequest) +func _Query_KeyshareAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryKeyshareAllRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).KeyShareAll(ctx, in) + return srv.(QueryServer).KeyshareAll(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.keyshare.Query/KeyShareAll", + FullMethod: "/fairyring.keyshare.Query/KeyshareAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).KeyShareAll(ctx, req.(*QueryKeyShareAllRequest)) + return srv.(QueryServer).KeyshareAll(ctx, req.(*QueryKeyshareAllRequest)) } return interceptor(ctx, in, info, handler) } @@ -1881,20 +1879,20 @@ func _Query_DecryptionKeyAll_Handler(srv interface{}, ctx context.Context, dec f return interceptor(ctx, in, info, handler) } -func _Query_PubKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryPubKeyRequest) +func _Query_Pubkey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPubkeyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).PubKey(ctx, in) + return srv.(QueryServer).Pubkey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.keyshare.Query/PubKey", + FullMethod: "/fairyring.keyshare.Query/Pubkey", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PubKey(ctx, req.(*QueryPubKeyRequest)) + return srv.(QueryServer).Pubkey(ctx, req.(*QueryPubkeyRequest)) } return interceptor(ctx, in, info, handler) } @@ -1935,38 +1933,38 @@ func _Query_AuthorizedAddressAll_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } -func _Query_GeneralKeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGeneralKeyShareRequest) +func _Query_GeneralKeyshare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGeneralKeyshareRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).GeneralKeyShare(ctx, in) + return srv.(QueryServer).GeneralKeyshare(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.keyshare.Query/GeneralKeyShare", + FullMethod: "/fairyring.keyshare.Query/GeneralKeyshare", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GeneralKeyShare(ctx, req.(*QueryGeneralKeyShareRequest)) + return srv.(QueryServer).GeneralKeyshare(ctx, req.(*QueryGeneralKeyshareRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_GeneralKeyShareAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryGeneralKeyShareAllRequest) +func _Query_GeneralKeyshareAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGeneralKeyshareAllRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).GeneralKeyShareAll(ctx, in) + return srv.(QueryServer).GeneralKeyshareAll(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.keyshare.Query/GeneralKeyShareAll", + FullMethod: "/fairyring.keyshare.Query/GeneralKeyshareAll", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GeneralKeyShareAll(ctx, req.(*QueryGeneralKeyShareAllRequest)) + return srv.(QueryServer).GeneralKeyshareAll(ctx, req.(*QueryGeneralKeyshareAllRequest)) } return interceptor(ctx, in, info, handler) } @@ -2010,12 +2008,12 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_ValidatorSetAll_Handler, }, { - MethodName: "KeyShare", - Handler: _Query_KeyShare_Handler, + MethodName: "Keyshare", + Handler: _Query_Keyshare_Handler, }, { - MethodName: "KeyShareAll", - Handler: _Query_KeyShareAll_Handler, + MethodName: "KeyshareAll", + Handler: _Query_KeyshareAll_Handler, }, { MethodName: "DecryptionKey", @@ -2026,8 +2024,8 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_DecryptionKeyAll_Handler, }, { - MethodName: "PubKey", - Handler: _Query_PubKey_Handler, + MethodName: "Pubkey", + Handler: _Query_Pubkey_Handler, }, { MethodName: "AuthorizedAddress", @@ -2038,12 +2036,12 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_AuthorizedAddressAll_Handler, }, { - MethodName: "GeneralKeyShare", - Handler: _Query_GeneralKeyShare_Handler, + MethodName: "GeneralKeyshare", + Handler: _Query_GeneralKeyshare_Handler, }, { - MethodName: "GeneralKeyShareAll", - Handler: _Query_GeneralKeyShareAll_Handler, + MethodName: "GeneralKeyshareAll", + Handler: _Query_GeneralKeyshareAll_Handler, }, { MethodName: "VerifiableRandomness", @@ -2385,7 +2383,7 @@ func (m *QueryValidatorSetAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *QueryKeyShareRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryKeyshareRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2395,12 +2393,12 @@ func (m *QueryKeyShareRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryKeyShareRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryKeyshareRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryKeyshareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2420,7 +2418,7 @@ func (m *QueryKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryKeyShareResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryKeyshareResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2430,18 +2428,18 @@ func (m *QueryKeyShareResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryKeyShareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryKeyshareResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryKeyshareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { - size, err := m.KeyShare.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Keyshare.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2453,7 +2451,7 @@ func (m *QueryKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryKeyShareAllRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryKeyshareAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2463,12 +2461,12 @@ func (m *QueryKeyShareAllRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryKeyShareAllRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryKeyshareAllRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryKeyShareAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryKeyshareAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2488,7 +2486,7 @@ func (m *QueryKeyShareAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *QueryKeyShareAllResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryKeyshareAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2498,12 +2496,12 @@ func (m *QueryKeyShareAllResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryKeyShareAllResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryKeyshareAllResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryKeyShareAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryKeyshareAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2520,10 +2518,10 @@ func (m *QueryKeyShareAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error i-- dAtA[i] = 0x12 } - if len(m.KeyShare) > 0 { - for iNdEx := len(m.KeyShare) - 1; iNdEx >= 0; iNdEx-- { + if len(m.Keyshare) > 0 { + for iNdEx := len(m.Keyshare) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.KeyShare[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Keyshare[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2682,7 +2680,7 @@ func (m *QueryDecryptionKeyAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *QueryPubKeyRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryPubkeyRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2692,12 +2690,12 @@ func (m *QueryPubKeyRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryPubKeyRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPubkeyRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryPubKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPubkeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2705,7 +2703,7 @@ func (m *QueryPubKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryPubKeyResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryPubkeyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2715,18 +2713,18 @@ func (m *QueryPubKeyResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryPubKeyResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPubkeyResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryPubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPubkeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { - size, err := m.QueuedPubKey.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.QueuedPubkey.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2736,7 +2734,7 @@ func (m *QueryPubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 { - size, err := m.ActivePubKey.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ActivePubkey.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2895,7 +2893,7 @@ func (m *QueryAuthorizedAddressAllResponse) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *QueryGeneralKeyShareRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryGeneralKeyshareRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2905,12 +2903,12 @@ func (m *QueryGeneralKeyShareRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGeneralKeyShareRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryGeneralKeyshareRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGeneralKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryGeneralKeyshareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2939,7 +2937,7 @@ func (m *QueryGeneralKeyShareRequest) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *QueryGeneralKeyShareResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryGeneralKeyshareResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2949,18 +2947,18 @@ func (m *QueryGeneralKeyShareResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGeneralKeyShareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryGeneralKeyshareResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGeneralKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryGeneralKeyshareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { - size, err := m.GeneralKeyShare.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.GeneralKeyshare.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2972,7 +2970,7 @@ func (m *QueryGeneralKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *QueryGeneralKeyShareAllRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryGeneralKeyshareAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2982,12 +2980,12 @@ func (m *QueryGeneralKeyShareAllRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGeneralKeyShareAllRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryGeneralKeyshareAllRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGeneralKeyShareAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryGeneralKeyshareAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3007,7 +3005,7 @@ func (m *QueryGeneralKeyShareAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *QueryGeneralKeyShareAllResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryGeneralKeyshareAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3017,12 +3015,12 @@ func (m *QueryGeneralKeyShareAllResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryGeneralKeyShareAllResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryGeneralKeyshareAllResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryGeneralKeyShareAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryGeneralKeyshareAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3039,10 +3037,10 @@ func (m *QueryGeneralKeyShareAllResponse) MarshalToSizedBuffer(dAtA []byte) (int i-- dAtA[i] = 0x12 } - if len(m.GeneralKeyShare) > 0 { - for iNdEx := len(m.GeneralKeyShare) - 1; iNdEx >= 0; iNdEx-- { + if len(m.GeneralKeyshare) > 0 { + for iNdEx := len(m.GeneralKeyshare) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.GeneralKeyShare[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.GeneralKeyshare[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -3194,7 +3192,7 @@ func (m *QueryValidatorSetAllResponse) Size() (n int) { return n } -func (m *QueryKeyShareRequest) Size() (n int) { +func (m *QueryKeyshareRequest) Size() (n int) { if m == nil { return 0 } @@ -3210,18 +3208,18 @@ func (m *QueryKeyShareRequest) Size() (n int) { return n } -func (m *QueryKeyShareResponse) Size() (n int) { +func (m *QueryKeyshareResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = m.KeyShare.Size() + l = m.Keyshare.Size() n += 1 + l + sovQuery(uint64(l)) return n } -func (m *QueryKeyShareAllRequest) Size() (n int) { +func (m *QueryKeyshareAllRequest) Size() (n int) { if m == nil { return 0 } @@ -3234,14 +3232,14 @@ func (m *QueryKeyShareAllRequest) Size() (n int) { return n } -func (m *QueryKeyShareAllResponse) Size() (n int) { +func (m *QueryKeyshareAllResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.KeyShare) > 0 { - for _, e := range m.KeyShare { + if len(m.Keyshare) > 0 { + for _, e := range m.Keyshare { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } @@ -3308,7 +3306,7 @@ func (m *QueryDecryptionKeyAllResponse) Size() (n int) { return n } -func (m *QueryPubKeyRequest) Size() (n int) { +func (m *QueryPubkeyRequest) Size() (n int) { if m == nil { return 0 } @@ -3317,15 +3315,15 @@ func (m *QueryPubKeyRequest) Size() (n int) { return n } -func (m *QueryPubKeyResponse) Size() (n int) { +func (m *QueryPubkeyResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = m.ActivePubKey.Size() + l = m.ActivePubkey.Size() n += 1 + l + sovQuery(uint64(l)) - l = m.QueuedPubKey.Size() + l = m.QueuedPubkey.Size() n += 1 + l + sovQuery(uint64(l)) return n } @@ -3386,7 +3384,7 @@ func (m *QueryAuthorizedAddressAllResponse) Size() (n int) { return n } -func (m *QueryGeneralKeyShareRequest) Size() (n int) { +func (m *QueryGeneralKeyshareRequest) Size() (n int) { if m == nil { return 0 } @@ -3407,18 +3405,18 @@ func (m *QueryGeneralKeyShareRequest) Size() (n int) { return n } -func (m *QueryGeneralKeyShareResponse) Size() (n int) { +func (m *QueryGeneralKeyshareResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = m.GeneralKeyShare.Size() + l = m.GeneralKeyshare.Size() n += 1 + l + sovQuery(uint64(l)) return n } -func (m *QueryGeneralKeyShareAllRequest) Size() (n int) { +func (m *QueryGeneralKeyshareAllRequest) Size() (n int) { if m == nil { return 0 } @@ -3431,14 +3429,14 @@ func (m *QueryGeneralKeyShareAllRequest) Size() (n int) { return n } -func (m *QueryGeneralKeyShareAllResponse) Size() (n int) { +func (m *QueryGeneralKeyshareAllResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.GeneralKeyShare) > 0 { - for _, e := range m.GeneralKeyShare { + if len(m.GeneralKeyshare) > 0 { + for _, e := range m.GeneralKeyshare { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } @@ -4283,7 +4281,7 @@ func (m *QueryValidatorSetAllResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryKeyShareRequest) Unmarshal(dAtA []byte) error { +func (m *QueryKeyshareRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4306,10 +4304,10 @@ func (m *QueryKeyShareRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryKeyShareRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryKeyshareRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryKeyshareRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4384,7 +4382,7 @@ func (m *QueryKeyShareRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryKeyShareResponse) Unmarshal(dAtA []byte) error { +func (m *QueryKeyshareResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4407,15 +4405,15 @@ func (m *QueryKeyShareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryKeyShareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryKeyshareResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyshare", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4442,7 +4440,7 @@ func (m *QueryKeyShareResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.KeyShare.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Keyshare.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4467,7 +4465,7 @@ func (m *QueryKeyShareResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryKeyShareAllRequest) Unmarshal(dAtA []byte) error { +func (m *QueryKeyshareAllRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4490,10 +4488,10 @@ func (m *QueryKeyShareAllRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryKeyShareAllRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryKeyshareAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryKeyShareAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryKeyshareAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4553,7 +4551,7 @@ func (m *QueryKeyShareAllRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryKeyShareAllResponse) Unmarshal(dAtA []byte) error { +func (m *QueryKeyshareAllResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4576,15 +4574,15 @@ func (m *QueryKeyShareAllResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryKeyShareAllResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryKeyshareAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryKeyShareAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryKeyshareAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyshare", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4611,8 +4609,8 @@ func (m *QueryKeyShareAllResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.KeyShare = append(m.KeyShare, KeyShare{}) - if err := m.KeyShare[len(m.KeyShare)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Keyshare = append(m.Keyshare, Keyshare{}) + if err := m.Keyshare[len(m.Keyshare)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4969,7 +4967,7 @@ func (m *QueryDecryptionKeyAllResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.DecryptionKeys = append(m.DecryptionKeys, AggregatedKeyShare{}) + m.DecryptionKeys = append(m.DecryptionKeys, DecryptionKey{}) if err := m.DecryptionKeys[len(m.DecryptionKeys)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -5031,7 +5029,7 @@ func (m *QueryDecryptionKeyAllResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryPubKeyRequest) Unmarshal(dAtA []byte) error { +func (m *QueryPubkeyRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5054,10 +5052,10 @@ func (m *QueryPubKeyRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPubKeyRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPubkeyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPubKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPubkeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -5081,7 +5079,7 @@ func (m *QueryPubKeyRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryPubKeyResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPubkeyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5104,15 +5102,15 @@ func (m *QueryPubKeyResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPubKeyResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPubkeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPubKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPubkeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivePubKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ActivePubkey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5139,13 +5137,13 @@ func (m *QueryPubKeyResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ActivePubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ActivePubkey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueuedPubKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field QueuedPubkey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5172,7 +5170,7 @@ func (m *QueryPubKeyResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.QueuedPubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.QueuedPubkey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -5568,7 +5566,7 @@ func (m *QueryAuthorizedAddressAllResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGeneralKeyShareRequest) Unmarshal(dAtA []byte) error { +func (m *QueryGeneralKeyshareRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5591,10 +5589,10 @@ func (m *QueryGeneralKeyShareRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGeneralKeyShareRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGeneralKeyshareRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGeneralKeyShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGeneralKeyshareRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5714,7 +5712,7 @@ func (m *QueryGeneralKeyShareRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGeneralKeyShareResponse) Unmarshal(dAtA []byte) error { +func (m *QueryGeneralKeyshareResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5737,15 +5735,15 @@ func (m *QueryGeneralKeyShareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGeneralKeyShareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGeneralKeyshareResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGeneralKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGeneralKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GeneralKeyShare", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GeneralKeyshare", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5772,7 +5770,7 @@ func (m *QueryGeneralKeyShareResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.GeneralKeyShare.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.GeneralKeyshare.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -5797,7 +5795,7 @@ func (m *QueryGeneralKeyShareResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGeneralKeyShareAllRequest) Unmarshal(dAtA []byte) error { +func (m *QueryGeneralKeyshareAllRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5820,10 +5818,10 @@ func (m *QueryGeneralKeyShareAllRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGeneralKeyShareAllRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGeneralKeyshareAllRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGeneralKeyShareAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGeneralKeyshareAllRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5883,7 +5881,7 @@ func (m *QueryGeneralKeyShareAllRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryGeneralKeyShareAllResponse) Unmarshal(dAtA []byte) error { +func (m *QueryGeneralKeyshareAllResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5906,15 +5904,15 @@ func (m *QueryGeneralKeyShareAllResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryGeneralKeyShareAllResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryGeneralKeyshareAllResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryGeneralKeyShareAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryGeneralKeyshareAllResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GeneralKeyShare", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GeneralKeyshare", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -5941,8 +5939,8 @@ func (m *QueryGeneralKeyShareAllResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.GeneralKeyShare = append(m.GeneralKeyShare, GeneralKeyShare{}) - if err := m.GeneralKeyShare[len(m.GeneralKeyShare)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.GeneralKeyshare = append(m.GeneralKeyshare, GeneralKeyshare{}) + if err := m.GeneralKeyshare[len(m.GeneralKeyshare)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/keyshare/types/query.pb.gw.go b/x/keyshare/types/query.pb.gw.go index 6b05ff25..c2aaf27e 100644 --- a/x/keyshare/types/query.pb.gw.go +++ b/x/keyshare/types/query.pb.gw.go @@ -159,8 +159,8 @@ func local_request_Query_ValidatorSetAll_0(ctx context.Context, marshaler runtim } -func request_Query_KeyShare_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryKeyShareRequest +func request_Query_Keyshare_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryKeyshareRequest var metadata runtime.ServerMetadata var ( @@ -192,13 +192,13 @@ func request_Query_KeyShare_0(ctx context.Context, marshaler runtime.Marshaler, return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "block_height", err) } - msg, err := client.KeyShare(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.Keyshare(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_KeyShare_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryKeyShareRequest +func local_request_Query_Keyshare_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryKeyshareRequest var metadata runtime.ServerMetadata var ( @@ -230,43 +230,43 @@ func local_request_Query_KeyShare_0(ctx context.Context, marshaler runtime.Marsh return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "block_height", err) } - msg, err := server.KeyShare(ctx, &protoReq) + msg, err := server.Keyshare(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_KeyShareAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_Query_KeyshareAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_Query_KeyShareAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryKeyShareAllRequest +func request_Query_KeyshareAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryKeyshareAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_KeyShareAll_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_KeyshareAll_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.KeyShareAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.KeyshareAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_KeyShareAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryKeyShareAllRequest +func local_request_Query_KeyshareAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryKeyshareAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_KeyShareAll_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_KeyshareAll_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.KeyShareAll(ctx, &protoReq) + msg, err := server.KeyshareAll(ctx, &protoReq) return msg, metadata, err } @@ -361,20 +361,20 @@ func local_request_Query_DecryptionKeyAll_0(ctx context.Context, marshaler runti } -func request_Query_PubKey_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryPubKeyRequest +func request_Query_Pubkey_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPubkeyRequest var metadata runtime.ServerMetadata - msg, err := client.PubKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.Pubkey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_PubKey_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryPubKeyRequest +func local_request_Query_Pubkey_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPubkeyRequest var metadata runtime.ServerMetadata - msg, err := server.PubKey(ctx, &protoReq) + msg, err := server.Pubkey(ctx, &protoReq) return msg, metadata, err } @@ -469,8 +469,8 @@ func local_request_Query_AuthorizedAddressAll_0(ctx context.Context, marshaler r } -func request_Query_GeneralKeyShare_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGeneralKeyShareRequest +func request_Query_GeneralKeyshare_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGeneralKeyshareRequest var metadata runtime.ServerMetadata var ( @@ -513,13 +513,13 @@ func request_Query_GeneralKeyShare_0(ctx context.Context, marshaler runtime.Mars return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id_value", err) } - msg, err := client.GeneralKeyShare(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.GeneralKeyshare(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_GeneralKeyShare_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGeneralKeyShareRequest +func local_request_Query_GeneralKeyshare_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGeneralKeyshareRequest var metadata runtime.ServerMetadata var ( @@ -562,43 +562,43 @@ func local_request_Query_GeneralKeyShare_0(ctx context.Context, marshaler runtim return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id_value", err) } - msg, err := server.GeneralKeyShare(ctx, &protoReq) + msg, err := server.GeneralKeyshare(ctx, &protoReq) return msg, metadata, err } var ( - filter_Query_GeneralKeyShareAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + filter_Query_GeneralKeyshareAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} ) -func request_Query_GeneralKeyShareAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGeneralKeyShareAllRequest +func request_Query_GeneralKeyshareAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGeneralKeyshareAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GeneralKeyShareAll_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GeneralKeyshareAll_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GeneralKeyShareAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.GeneralKeyshareAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_GeneralKeyShareAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryGeneralKeyShareAllRequest +func local_request_Query_GeneralKeyshareAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryGeneralKeyshareAllRequest var metadata runtime.ServerMetadata if err := req.ParseForm(); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GeneralKeyShareAll_0); err != nil { + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GeneralKeyshareAll_0); err != nil { return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GeneralKeyShareAll(ctx, &protoReq) + msg, err := server.GeneralKeyshareAll(ctx, &protoReq) return msg, metadata, err } @@ -719,7 +719,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_KeyShare_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Keyshare_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -730,7 +730,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_KeyShare_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_Keyshare_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -738,11 +738,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_KeyShare_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Keyshare_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_KeyShareAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_KeyshareAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -753,7 +753,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_KeyShareAll_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_KeyshareAll_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -761,7 +761,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_KeyShareAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_KeyshareAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -811,7 +811,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_PubKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Pubkey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -822,7 +822,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_PubKey_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_Pubkey_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -830,7 +830,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_PubKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Pubkey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -880,7 +880,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_GeneralKeyShare_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_GeneralKeyshare_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -891,7 +891,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_GeneralKeyShare_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_GeneralKeyshare_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -899,11 +899,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_GeneralKeyShare_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_GeneralKeyshare_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_GeneralKeyShareAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_GeneralKeyshareAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -914,7 +914,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_GeneralKeyShareAll_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_GeneralKeyshareAll_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -922,7 +922,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_GeneralKeyShareAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_GeneralKeyshareAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1070,7 +1070,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_KeyShare_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Keyshare_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -1079,18 +1079,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_KeyShare_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_Keyshare_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_KeyShare_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Keyshare_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_KeyShareAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_KeyshareAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -1099,14 +1099,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_KeyShareAll_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_KeyshareAll_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_KeyShareAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_KeyshareAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1150,7 +1150,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_PubKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Pubkey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -1159,14 +1159,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_PubKey_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_Pubkey_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_PubKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Pubkey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1210,7 +1210,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_GeneralKeyShare_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_GeneralKeyshare_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -1219,18 +1219,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_GeneralKeyShare_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_GeneralKeyshare_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_GeneralKeyShare_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_GeneralKeyshare_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_GeneralKeyShareAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_GeneralKeyshareAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -1239,14 +1239,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_GeneralKeyShareAll_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_GeneralKeyshareAll_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_GeneralKeyShareAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_GeneralKeyshareAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1282,23 +1282,23 @@ var ( pattern_Query_ValidatorSetAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "keyshare", "validator_set"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_KeyShare_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"fairyring", "keyshare", "key_share", "validator", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Keyshare_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 1, 1, 0, 4, 1, 5, 2, 1, 0, 4, 1, 5, 3}, []string{"fairyring", "keyshare", "validator", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_KeyShareAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "keyshare", "key_share"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_KeyshareAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 1}, []string{"fairyring", "keyshare"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_DecryptionKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"fairyring", "keyshare", "decryption_key", "height"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_DecryptionKeyAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "keyshare", "decryption_key"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PubKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "keyshare", "pub_key"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Pubkey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "keyshare", "pubkey"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_AuthorizedAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"fairyring", "keyshare", "authorized_address", "target"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_AuthorizedAddressAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "keyshare", "authorized_address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GeneralKeyShare_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"fairyring", "keyshare", "general_key_share", "validator", "id_type", "id_value"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GeneralKeyshare_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"fairyring", "keyshare", "general_keyshare", "validator", "id_type", "id_value"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GeneralKeyShareAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "keyshare", "general_key_share"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GeneralKeyshareAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "keyshare", "general_keyshare"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_VerifiableRandomness_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "keyshare", "verifiable_randomness"}, "", runtime.AssumeColonVerbOpt(false))) ) @@ -1312,23 +1312,23 @@ var ( forward_Query_ValidatorSetAll_0 = runtime.ForwardResponseMessage - forward_Query_KeyShare_0 = runtime.ForwardResponseMessage + forward_Query_Keyshare_0 = runtime.ForwardResponseMessage - forward_Query_KeyShareAll_0 = runtime.ForwardResponseMessage + forward_Query_KeyshareAll_0 = runtime.ForwardResponseMessage forward_Query_DecryptionKey_0 = runtime.ForwardResponseMessage forward_Query_DecryptionKeyAll_0 = runtime.ForwardResponseMessage - forward_Query_PubKey_0 = runtime.ForwardResponseMessage + forward_Query_Pubkey_0 = runtime.ForwardResponseMessage forward_Query_AuthorizedAddress_0 = runtime.ForwardResponseMessage forward_Query_AuthorizedAddressAll_0 = runtime.ForwardResponseMessage - forward_Query_GeneralKeyShare_0 = runtime.ForwardResponseMessage + forward_Query_GeneralKeyshare_0 = runtime.ForwardResponseMessage - forward_Query_GeneralKeyShareAll_0 = runtime.ForwardResponseMessage + forward_Query_GeneralKeyshareAll_0 = runtime.ForwardResponseMessage forward_Query_VerifiableRandomness_0 = runtime.ForwardResponseMessage ) diff --git a/x/keyshare/types/tx.pb.go b/x/keyshare/types/tx.pb.go index b425b86e..702eded0 100644 --- a/x/keyshare/types/tx.pb.go +++ b/x/keyshare/types/tx.pb.go @@ -309,7 +309,7 @@ func (m *MsgDeRegisterValidatorResponse) GetCreator() string { type MsgSendKeyshare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,3,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + KeyshareIndex uint64 `protobuf:"varint,3,opt,name=keyshare_index,json=keyshareIndex,proto3" json:"keyshare_index,omitempty"` BlockHeight uint64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } @@ -360,9 +360,9 @@ func (m *MsgSendKeyshare) GetMessage() string { return "" } -func (m *MsgSendKeyshare) GetKeyShareIndex() uint64 { +func (m *MsgSendKeyshare) GetKeyshareIndex() uint64 { if m != nil { - return m.KeyShareIndex + return m.KeyshareIndex } return 0 } @@ -474,7 +474,7 @@ type MsgCreateLatestPubKey struct { PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Commitments []string `protobuf:"bytes,3,rep,name=commitments,proto3" json:"commitments,omitempty"` NumberOfValidators uint64 `protobuf:"varint,4,opt,name=number_of_validators,json=numberOfValidators,proto3" json:"number_of_validators,omitempty"` - EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encrypted_key_shares,json=encryptedKeyShares,proto3" json:"encrypted_key_shares,omitempty"` + EncryptedKeyshares []*EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` } func (m *MsgCreateLatestPubKey) Reset() { *m = MsgCreateLatestPubKey{} } @@ -538,9 +538,9 @@ func (m *MsgCreateLatestPubKey) GetNumberOfValidators() uint64 { return 0 } -func (m *MsgCreateLatestPubKey) GetEncryptedKeyShares() []*EncryptedKeyShare { +func (m *MsgCreateLatestPubKey) GetEncryptedKeyshares() []*EncryptedKeyshare { if m != nil { - return m.EncryptedKeyShares + return m.EncryptedKeyshares } return nil } @@ -589,7 +589,7 @@ type MsgOverrideLatestPubKey struct { PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Commitments []string `protobuf:"bytes,3,rep,name=commitments,proto3" json:"commitments,omitempty"` NumberOfValidators uint64 `protobuf:"varint,4,opt,name=number_of_validators,json=numberOfValidators,proto3" json:"number_of_validators,omitempty"` - EncryptedKeyShares []*EncryptedKeyShare `protobuf:"bytes,5,rep,name=encrypted_key_shares,json=encryptedKeyShares,proto3" json:"encrypted_key_shares,omitempty"` + EncryptedKeyshares []*EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` } func (m *MsgOverrideLatestPubKey) Reset() { *m = MsgOverrideLatestPubKey{} } @@ -653,9 +653,9 @@ func (m *MsgOverrideLatestPubKey) GetNumberOfValidators() uint64 { return 0 } -func (m *MsgOverrideLatestPubKey) GetEncryptedKeyShares() []*EncryptedKeyShare { +func (m *MsgOverrideLatestPubKey) GetEncryptedKeyshares() []*EncryptedKeyshare { if m != nil { - return m.EncryptedKeyShares + return m.EncryptedKeyshares } return nil } @@ -980,28 +980,28 @@ func (m *MsgDeleteAuthorizedAddressResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgDeleteAuthorizedAddressResponse proto.InternalMessageInfo // MsgSubmitGeneralKeyShare is the Msg/CreateGeneralKeyShare request type. -type MsgSubmitGeneralKeyShare struct { +type MsgSubmitGeneralKeyshare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` IdValue string `protobuf:"bytes,3,opt,name=id_value,json=idValue,proto3" json:"id_value,omitempty"` - KeyShare string `protobuf:"bytes,4,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,5,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + Keyshare string `protobuf:"bytes,4,opt,name=keyshare,proto3" json:"keyshare,omitempty"` + KeyshareIndex uint64 `protobuf:"varint,5,opt,name=keyshare_index,json=keyshareIndex,proto3" json:"keyshare_index,omitempty"` ReceivedTimestamp uint64 `protobuf:"varint,6,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` ReceivedBlockHeight uint64 `protobuf:"varint,7,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` } -func (m *MsgSubmitGeneralKeyShare) Reset() { *m = MsgSubmitGeneralKeyShare{} } -func (m *MsgSubmitGeneralKeyShare) String() string { return proto.CompactTextString(m) } -func (*MsgSubmitGeneralKeyShare) ProtoMessage() {} -func (*MsgSubmitGeneralKeyShare) Descriptor() ([]byte, []int) { +func (m *MsgSubmitGeneralKeyshare) Reset() { *m = MsgSubmitGeneralKeyshare{} } +func (m *MsgSubmitGeneralKeyshare) String() string { return proto.CompactTextString(m) } +func (*MsgSubmitGeneralKeyshare) ProtoMessage() {} +func (*MsgSubmitGeneralKeyshare) Descriptor() ([]byte, []int) { return fileDescriptor_1f96ac6a55f1845c, []int{18} } -func (m *MsgSubmitGeneralKeyShare) XXX_Unmarshal(b []byte) error { +func (m *MsgSubmitGeneralKeyshare) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgSubmitGeneralKeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgSubmitGeneralKeyshare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgSubmitGeneralKeyShare.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgSubmitGeneralKeyshare.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1011,61 +1011,61 @@ func (m *MsgSubmitGeneralKeyShare) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *MsgSubmitGeneralKeyShare) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSubmitGeneralKeyShare.Merge(m, src) +func (m *MsgSubmitGeneralKeyshare) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSubmitGeneralKeyshare.Merge(m, src) } -func (m *MsgSubmitGeneralKeyShare) XXX_Size() int { +func (m *MsgSubmitGeneralKeyshare) XXX_Size() int { return m.Size() } -func (m *MsgSubmitGeneralKeyShare) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSubmitGeneralKeyShare.DiscardUnknown(m) +func (m *MsgSubmitGeneralKeyshare) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSubmitGeneralKeyshare.DiscardUnknown(m) } -var xxx_messageInfo_MsgSubmitGeneralKeyShare proto.InternalMessageInfo +var xxx_messageInfo_MsgSubmitGeneralKeyshare proto.InternalMessageInfo -func (m *MsgSubmitGeneralKeyShare) GetCreator() string { +func (m *MsgSubmitGeneralKeyshare) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *MsgSubmitGeneralKeyShare) GetIdType() string { +func (m *MsgSubmitGeneralKeyshare) GetIdType() string { if m != nil { return m.IdType } return "" } -func (m *MsgSubmitGeneralKeyShare) GetIdValue() string { +func (m *MsgSubmitGeneralKeyshare) GetIdValue() string { if m != nil { return m.IdValue } return "" } -func (m *MsgSubmitGeneralKeyShare) GetKeyShare() string { +func (m *MsgSubmitGeneralKeyshare) GetKeyshare() string { if m != nil { - return m.KeyShare + return m.Keyshare } return "" } -func (m *MsgSubmitGeneralKeyShare) GetKeyShareIndex() uint64 { +func (m *MsgSubmitGeneralKeyshare) GetKeyshareIndex() uint64 { if m != nil { - return m.KeyShareIndex + return m.KeyshareIndex } return 0 } -func (m *MsgSubmitGeneralKeyShare) GetReceivedTimestamp() uint64 { +func (m *MsgSubmitGeneralKeyshare) GetReceivedTimestamp() uint64 { if m != nil { return m.ReceivedTimestamp } return 0 } -func (m *MsgSubmitGeneralKeyShare) GetReceivedBlockHeight() uint64 { +func (m *MsgSubmitGeneralKeyshare) GetReceivedBlockHeight() uint64 { if m != nil { return m.ReceivedBlockHeight } @@ -1074,29 +1074,29 @@ func (m *MsgSubmitGeneralKeyShare) GetReceivedBlockHeight() uint64 { // MsgSubmitGeneralKeyShareResponse defines the response structure for // executing a MsgSubmitGeneralKeyShare message. -type MsgSubmitGeneralKeyShareResponse struct { +type MsgSubmitGeneralKeyshareResponse struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` IdValue string `protobuf:"bytes,3,opt,name=id_value,json=idValue,proto3" json:"id_value,omitempty"` - KeyShare string `protobuf:"bytes,4,opt,name=key_share,json=keyShare,proto3" json:"key_share,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,5,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + Keyshare string `protobuf:"bytes,4,opt,name=keyshare,proto3" json:"keyshare,omitempty"` + KeyshareIndex uint64 `protobuf:"varint,5,opt,name=keyshare_index,json=keyshareIndex,proto3" json:"keyshare_index,omitempty"` ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` Success bool `protobuf:"varint,7,opt,name=success,proto3" json:"success,omitempty"` ErrorMessage string `protobuf:"bytes,8,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` } -func (m *MsgSubmitGeneralKeyShareResponse) Reset() { *m = MsgSubmitGeneralKeyShareResponse{} } -func (m *MsgSubmitGeneralKeyShareResponse) String() string { return proto.CompactTextString(m) } -func (*MsgSubmitGeneralKeyShareResponse) ProtoMessage() {} -func (*MsgSubmitGeneralKeyShareResponse) Descriptor() ([]byte, []int) { +func (m *MsgSubmitGeneralKeyshareResponse) Reset() { *m = MsgSubmitGeneralKeyshareResponse{} } +func (m *MsgSubmitGeneralKeyshareResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSubmitGeneralKeyshareResponse) ProtoMessage() {} +func (*MsgSubmitGeneralKeyshareResponse) Descriptor() ([]byte, []int) { return fileDescriptor_1f96ac6a55f1845c, []int{19} } -func (m *MsgSubmitGeneralKeyShareResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgSubmitGeneralKeyshareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgSubmitGeneralKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgSubmitGeneralKeyshareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgSubmitGeneralKeyShareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgSubmitGeneralKeyshareResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1106,68 +1106,68 @@ func (m *MsgSubmitGeneralKeyShareResponse) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } -func (m *MsgSubmitGeneralKeyShareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgSubmitGeneralKeyShareResponse.Merge(m, src) +func (m *MsgSubmitGeneralKeyshareResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSubmitGeneralKeyshareResponse.Merge(m, src) } -func (m *MsgSubmitGeneralKeyShareResponse) XXX_Size() int { +func (m *MsgSubmitGeneralKeyshareResponse) XXX_Size() int { return m.Size() } -func (m *MsgSubmitGeneralKeyShareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgSubmitGeneralKeyShareResponse.DiscardUnknown(m) +func (m *MsgSubmitGeneralKeyshareResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSubmitGeneralKeyshareResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgSubmitGeneralKeyShareResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgSubmitGeneralKeyshareResponse proto.InternalMessageInfo -func (m *MsgSubmitGeneralKeyShareResponse) GetCreator() string { +func (m *MsgSubmitGeneralKeyshareResponse) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *MsgSubmitGeneralKeyShareResponse) GetIdType() string { +func (m *MsgSubmitGeneralKeyshareResponse) GetIdType() string { if m != nil { return m.IdType } return "" } -func (m *MsgSubmitGeneralKeyShareResponse) GetIdValue() string { +func (m *MsgSubmitGeneralKeyshareResponse) GetIdValue() string { if m != nil { return m.IdValue } return "" } -func (m *MsgSubmitGeneralKeyShareResponse) GetKeyShare() string { +func (m *MsgSubmitGeneralKeyshareResponse) GetKeyshare() string { if m != nil { - return m.KeyShare + return m.Keyshare } return "" } -func (m *MsgSubmitGeneralKeyShareResponse) GetKeyShareIndex() uint64 { +func (m *MsgSubmitGeneralKeyshareResponse) GetKeyshareIndex() uint64 { if m != nil { - return m.KeyShareIndex + return m.KeyshareIndex } return 0 } -func (m *MsgSubmitGeneralKeyShareResponse) GetReceivedBlockHeight() uint64 { +func (m *MsgSubmitGeneralKeyshareResponse) GetReceivedBlockHeight() uint64 { if m != nil { return m.ReceivedBlockHeight } return 0 } -func (m *MsgSubmitGeneralKeyShareResponse) GetSuccess() bool { +func (m *MsgSubmitGeneralKeyshareResponse) GetSuccess() bool { if m != nil { return m.Success } return false } -func (m *MsgSubmitGeneralKeyShareResponse) GetErrorMessage() string { +func (m *MsgSubmitGeneralKeyshareResponse) GetErrorMessage() string { if m != nil { return m.ErrorMessage } @@ -1179,7 +1179,7 @@ type MsgSubmitEncryptedKeyshare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` EncryptedKeyshare string `protobuf:"bytes,3,opt,name=encrypted_keyshare,json=encryptedKeyshare,proto3" json:"encrypted_keyshare,omitempty"` - KeyShareIndex uint64 `protobuf:"varint,4,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"` + KeyshareIndex uint64 `protobuf:"varint,4,opt,name=keyshare_index,json=keyshareIndex,proto3" json:"keyshare_index,omitempty"` ReceivedTimestamp uint64 `protobuf:"varint,5,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` ReceivedBlockHeight uint64 `protobuf:"varint,6,opt,name=received_block_height,json=receivedBlockHeight,proto3" json:"received_block_height,omitempty"` Requester string `protobuf:"bytes,7,opt,name=requester,proto3" json:"requester,omitempty"` @@ -1239,9 +1239,9 @@ func (m *MsgSubmitEncryptedKeyshare) GetEncryptedKeyshare() string { return "" } -func (m *MsgSubmitEncryptedKeyshare) GetKeyShareIndex() uint64 { +func (m *MsgSubmitEncryptedKeyshare) GetKeyshareIndex() uint64 { if m != nil { - return m.KeyShareIndex + return m.KeyshareIndex } return 0 } @@ -1324,8 +1324,8 @@ func init() { proto.RegisterType((*MsgUpdateAuthorizedAddressResponse)(nil), "fairyring.keyshare.MsgUpdateAuthorizedAddressResponse") proto.RegisterType((*MsgDeleteAuthorizedAddress)(nil), "fairyring.keyshare.MsgDeleteAuthorizedAddress") proto.RegisterType((*MsgDeleteAuthorizedAddressResponse)(nil), "fairyring.keyshare.MsgDeleteAuthorizedAddressResponse") - proto.RegisterType((*MsgSubmitGeneralKeyShare)(nil), "fairyring.keyshare.MsgSubmitGeneralKeyShare") - proto.RegisterType((*MsgSubmitGeneralKeyShareResponse)(nil), "fairyring.keyshare.MsgSubmitGeneralKeyShareResponse") + proto.RegisterType((*MsgSubmitGeneralKeyshare)(nil), "fairyring.keyshare.MsgSubmitGeneralKeyshare") + proto.RegisterType((*MsgSubmitGeneralKeyshareResponse)(nil), "fairyring.keyshare.MsgSubmitGeneralKeyshareResponse") proto.RegisterType((*MsgSubmitEncryptedKeyshare)(nil), "fairyring.keyshare.MsgSubmitEncryptedKeyshare") proto.RegisterType((*MsgSubmitEncryptedKeyshareResponse)(nil), "fairyring.keyshare.MsgSubmitEncryptedKeyshareResponse") } @@ -1333,82 +1333,80 @@ func init() { func init() { proto.RegisterFile("fairyring/keyshare/tx.proto", fileDescriptor_1f96ac6a55f1845c) } var fileDescriptor_1f96ac6a55f1845c = []byte{ - // 1186 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0xcd, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0xda, 0x89, 0x1d, 0xbf, 0xb8, 0x54, 0xd9, 0xba, 0x8d, 0xbb, 0x6d, 0x1d, 0xd7, 0x69, - 0x91, 0x09, 0xd4, 0x6e, 0x53, 0x54, 0x50, 0x24, 0x10, 0x0d, 0xe5, 0xa3, 0x0a, 0x56, 0xab, 0x4d, - 0x29, 0x12, 0x42, 0xda, 0xae, 0xbd, 0x2f, 0x9b, 0x51, 0xb2, 0x5e, 0x33, 0x33, 0x1b, 0xc5, 0x70, - 0xa1, 0x1c, 0xf9, 0x90, 0xf8, 0x0b, 0x7a, 0xee, 0x31, 0x12, 0x1c, 0xb8, 0x72, 0xeb, 0xb1, 0xe2, - 0xc4, 0x09, 0xa1, 0xe4, 0x90, 0x7f, 0x03, 0xed, 0xa7, 0xbf, 0x66, 0x6c, 0x07, 0x09, 0x71, 0xe1, - 0xd2, 0xee, 0xbc, 0xf9, 0xcd, 0x7b, 0xbf, 0xf9, 0xed, 0xdb, 0xf7, 0x5e, 0x0c, 0x97, 0xb6, 0x4d, - 0x42, 0xbb, 0x94, 0xb4, 0xed, 0xfa, 0x2e, 0x76, 0xd9, 0x8e, 0x49, 0xb1, 0xce, 0x0f, 0x6a, 0x1d, - 0xea, 0x72, 0x57, 0x55, 0x93, 0xcd, 0x5a, 0xbc, 0xa9, 0x2d, 0x9a, 0x0e, 0x69, 0xbb, 0xf5, 0xe0, - 0xdf, 0x10, 0xa6, 0x2d, 0xb5, 0x5c, 0xe6, 0xb8, 0xac, 0xee, 0x30, 0xbb, 0xbe, 0x7f, 0xcb, 0xff, - 0x2f, 0xda, 0xb8, 0x18, 0x6e, 0x18, 0xc1, 0xaa, 0x1e, 0x2e, 0xa2, 0xad, 0x82, 0xed, 0xda, 0x6e, - 0x68, 0xf7, 0x9f, 0x22, 0xeb, 0xb2, 0x80, 0x4d, 0xc7, 0xa4, 0xa6, 0x13, 0x1f, 0x2b, 0x8b, 0x00, - 0x5e, 0xd3, 0xd8, 0xc5, 0x6e, 0x88, 0xa8, 0xfc, 0xa6, 0xc0, 0xd9, 0x06, 0xb3, 0x3f, 0xed, 0x58, - 0x26, 0xc7, 0x87, 0xc1, 0x59, 0xf5, 0x0e, 0xe4, 0x4c, 0x8f, 0xef, 0xb8, 0x94, 0xf0, 0x6e, 0x51, - 0x29, 0x2b, 0xd5, 0xdc, 0x46, 0xf1, 0xf7, 0x5f, 0x6e, 0x14, 0x22, 0x46, 0x77, 0x2d, 0x8b, 0x22, - 0x63, 0x5b, 0xdc, 0xf7, 0xab, 0xf7, 0xa0, 0xea, 0x3b, 0x90, 0x09, 0xa3, 0x17, 0x53, 0x65, 0xa5, - 0xba, 0xb0, 0xa6, 0xd5, 0x46, 0x05, 0xa9, 0x85, 0x31, 0x36, 0x72, 0x2f, 0xfe, 0x5c, 0x9e, 0x79, - 0x7e, 0x72, 0xb8, 0xaa, 0xe8, 0xd1, 0xa1, 0xf5, 0xb7, 0xbe, 0x3d, 0x39, 0x5c, 0xed, 0xb9, 0xfb, - 0xee, 0xe4, 0x70, 0xf5, 0x5a, 0x8f, 0xff, 0x41, 0xef, 0x06, 0x43, 0x7c, 0x2b, 0x17, 0x61, 0x69, - 0xc8, 0xa4, 0x23, 0xeb, 0xb8, 0x6d, 0x86, 0x95, 0x77, 0xa1, 0xd0, 0x60, 0xb6, 0x8e, 0x36, 0x61, - 0x1c, 0xe9, 0x63, 0x73, 0x8f, 0x58, 0x26, 0x77, 0xa9, 0x5a, 0x84, 0x6c, 0x8b, 0xa2, 0xff, 0x18, - 0x5e, 0x50, 0x8f, 0x97, 0xeb, 0x79, 0x9f, 0x45, 0xbc, 0xaa, 0xbc, 0x0d, 0x97, 0x45, 0xe7, 0x63, - 0xff, 0x72, 0x3f, 0x95, 0xf7, 0xe0, 0x42, 0x83, 0xd9, 0xf7, 0xf0, 0x9f, 0xc7, 0x5e, 0x87, 0x92, - 0xd8, 0xc3, 0x14, 0xd1, 0x9f, 0x85, 0xaf, 0x75, 0x0b, 0xdb, 0xd6, 0x66, 0x24, 0x9b, 0x1c, 0xed, - 0xef, 0x38, 0xc8, 0x98, 0x69, 0x63, 0xf0, 0xe6, 0x72, 0x7a, 0xbc, 0x54, 0x5f, 0x85, 0xb3, 0xbb, - 0xd8, 0x35, 0x02, 0x07, 0x06, 0x69, 0x5b, 0x78, 0x50, 0x4c, 0x97, 0x95, 0xea, 0xac, 0x7e, 0x66, - 0x17, 0xbb, 0x5b, 0xbe, 0xf5, 0xbe, 0x6f, 0x54, 0xaf, 0x42, 0xbe, 0xb9, 0xe7, 0xb6, 0x76, 0x8d, - 0x1d, 0x24, 0xf6, 0x0e, 0x2f, 0xce, 0x06, 0xa0, 0x85, 0xc0, 0xf6, 0x71, 0x60, 0x1a, 0xba, 0xdc, - 0x0f, 0xa9, 0xe0, 0xa5, 0xf5, 0x13, 0x9c, 0x7c, 0x2d, 0x55, 0x83, 0xf9, 0x38, 0x0b, 0x22, 0xa6, - 0xc9, 0x5a, 0xbd, 0x0e, 0xaf, 0xc4, 0xcf, 0x23, 0x4c, 0xd9, 0x69, 0x98, 0xaa, 0x6b, 0x70, 0x9e, - 0x62, 0x0b, 0xc9, 0x3e, 0x5a, 0xc6, 0x00, 0x76, 0x2e, 0xc0, 0x9e, 0x8b, 0x37, 0x37, 0xfa, 0xce, - 0x14, 0x21, 0xcb, 0xbc, 0x56, 0x0b, 0x19, 0x2b, 0x66, 0xca, 0x4a, 0x75, 0x5e, 0x8f, 0x97, 0xea, - 0x0a, 0x9c, 0x41, 0x4a, 0x5d, 0x6a, 0xc4, 0x12, 0x67, 0x03, 0xe2, 0xf9, 0xc0, 0xd8, 0x08, 0x6d, - 0x95, 0xef, 0x53, 0x70, 0xbe, 0xc1, 0xec, 0xf7, 0xfd, 0x7b, 0xe2, 0x27, 0x26, 0x47, 0xc6, 0x1f, - 0x7a, 0xcd, 0x4d, 0xec, 0x8e, 0x11, 0xe3, 0x0a, 0x40, 0xc7, 0x6b, 0xee, 0x91, 0x96, 0xff, 0x39, - 0x47, 0x72, 0xe4, 0x42, 0x8b, 0x7f, 0xb0, 0x0c, 0x0b, 0x2d, 0xd7, 0x71, 0x08, 0x77, 0xb0, 0xcd, - 0x59, 0x31, 0x5d, 0x4e, 0x57, 0x73, 0x7a, 0xbf, 0x49, 0xbd, 0x09, 0x85, 0xb6, 0xe7, 0x34, 0x91, - 0x1a, 0xee, 0xb6, 0xb1, 0x1f, 0x67, 0x17, 0x8b, 0x24, 0x51, 0xc3, 0xbd, 0x07, 0xdb, 0x49, 0xde, - 0x31, 0xf5, 0x33, 0x28, 0x60, 0xbb, 0x45, 0xbb, 0x1d, 0x8e, 0x96, 0x91, 0x24, 0x06, 0x2b, 0xce, - 0x95, 0xd3, 0xd5, 0x85, 0xb5, 0xeb, 0xa2, 0xef, 0xfd, 0x83, 0x18, 0xbf, 0x19, 0x25, 0x8c, 0xae, - 0xe2, 0xb0, 0x89, 0x0d, 0x25, 0xc7, 0x32, 0x5c, 0x11, 0x8a, 0x91, 0x7c, 0xd6, 0x3f, 0x86, 0xd9, - 0xf3, 0x60, 0x1f, 0x29, 0x25, 0xd6, 0xff, 0x82, 0x5d, 0x85, 0x65, 0x89, 0x1c, 0x89, 0x64, 0x5f, - 0x80, 0x96, 0x68, 0x7a, 0x37, 0xac, 0xb1, 0x5f, 0xa1, 0x15, 0xd5, 0x72, 0xf5, 0x02, 0x64, 0xb8, - 0x49, 0x6d, 0xe4, 0x91, 0x66, 0xd1, 0xaa, 0x5f, 0xcc, 0xd4, 0xb8, 0x5a, 0x75, 0x0d, 0x2a, 0x72, - 0xef, 0x09, 0x87, 0xa7, 0x4a, 0x40, 0x22, 0xac, 0xd4, 0xd3, 0x93, 0x58, 0x81, 0x33, 0x84, 0x19, - 0x66, 0x82, 0x0f, 0xa8, 0xcc, 0xeb, 0x79, 0xc2, 0x7a, 0x3e, 0xfa, 0x99, 0xa6, 0x27, 0x33, 0x95, - 0x50, 0x18, 0x52, 0xeb, 0x1e, 0xee, 0xe1, 0xbf, 0xa7, 0x96, 0xc4, 0x7b, 0xc2, 0xe1, 0x59, 0x0a, - 0x8a, 0x7e, 0x89, 0xf4, 0x9a, 0x0e, 0xe1, 0x1f, 0x61, 0x1b, 0xa9, 0xb9, 0x17, 0x27, 0xc0, 0x98, - 0x2c, 0x5f, 0x82, 0x2c, 0xb1, 0x0c, 0xde, 0xed, 0xc4, 0x25, 0x32, 0x43, 0xac, 0x47, 0xdd, 0x0e, - 0xaa, 0x17, 0x61, 0x9e, 0x58, 0x7e, 0xda, 0x7a, 0x18, 0x4b, 0x44, 0xac, 0xc7, 0xfe, 0x52, 0xbd, - 0x04, 0xb9, 0x24, 0x39, 0x83, 0x6c, 0x0e, 0x0b, 0x6b, 0x18, 0x4a, 0xd0, 0x03, 0xe6, 0x44, 0x3d, - 0xe0, 0x06, 0xa8, 0x49, 0xd9, 0xe4, 0xc4, 0x41, 0xc6, 0x4d, 0xa7, 0x13, 0x54, 0xc3, 0x59, 0x7d, - 0x31, 0xde, 0x79, 0x14, 0x6f, 0xc8, 0xab, 0x6c, 0x56, 0x5a, 0x65, 0x87, 0x64, 0x7c, 0x9e, 0x82, - 0xb2, 0x4c, 0xa0, 0x29, 0x9a, 0xc9, 0x7f, 0x26, 0x94, 0xf4, 0xe6, 0x99, 0xa9, 0xfa, 0x4b, 0x76, - 0x42, 0x7f, 0x99, 0x17, 0xf4, 0x97, 0x5f, 0x53, 0x41, 0x42, 0x87, 0x52, 0xf5, 0x57, 0x98, 0x49, - 0xa3, 0x81, 0xe6, 0x6b, 0x81, 0x6d, 0xee, 0x8f, 0x82, 0x51, 0xc7, 0x8d, 0xd7, 0xfe, 0x0b, 0x1f, - 0x28, 0x6e, 0xa1, 0x2a, 0xa1, 0x62, 0x8b, 0x38, 0x12, 0x44, 0x20, 0xcf, 0xec, 0xf4, 0x79, 0x34, - 0x77, 0xea, 0x3c, 0x1a, 0xa3, 0xe6, 0x65, 0xc8, 0x51, 0xfc, 0xd2, 0x43, 0x7f, 0xac, 0x8a, 0xfa, - 0x71, 0xcf, 0x20, 0xfc, 0x58, 0x25, 0xca, 0xc5, 0x69, 0xb6, 0xf6, 0x33, 0x40, 0xba, 0xc1, 0x6c, - 0xf5, 0x09, 0xe4, 0x07, 0x66, 0xe9, 0x15, 0x51, 0x89, 0x1f, 0x9a, 0x56, 0xb5, 0xd7, 0xa7, 0x00, - 0x25, 0x09, 0xed, 0xc2, 0xe2, 0xe8, 0x4c, 0x59, 0x95, 0x78, 0x18, 0x41, 0x6a, 0x37, 0xa7, 0x45, - 0x26, 0x01, 0x3d, 0x38, 0x27, 0x1a, 0x63, 0x57, 0x25, 0x8e, 0x04, 0x58, 0x6d, 0x6d, 0x7a, 0x6c, - 0x12, 0xf6, 0x09, 0xe4, 0x07, 0xc6, 0x57, 0x99, 0x92, 0xfd, 0x20, 0xa9, 0x92, 0xc2, 0x39, 0x93, - 0x82, 0x2a, 0x18, 0xb8, 0x5e, 0x93, 0xb8, 0x18, 0x85, 0x6a, 0xb7, 0xa6, 0x86, 0x26, 0x31, 0x0f, - 0xa0, 0x20, 0x9c, 0x5a, 0x64, 0xc4, 0x45, 0x60, 0xed, 0xf6, 0x29, 0xc0, 0x49, 0xe4, 0xa7, 0x0a, - 0x2c, 0xc9, 0xda, 0x7f, 0x6d, 0xec, 0x45, 0x46, 0xf0, 0xda, 0x9d, 0xd3, 0xe1, 0x07, 0x38, 0xc8, - 0xba, 0x7f, 0x6d, 0xec, 0x47, 0x30, 0x3d, 0x87, 0x09, 0xad, 0x3d, 0xe0, 0x20, 0x6b, 0xec, 0x35, - 0x69, 0x9e, 0x0a, 0xf1, 0x52, 0x0e, 0x13, 0x5a, 0xbb, 0xfa, 0x35, 0x9c, 0x17, 0xb7, 0xf5, 0x37, - 0x64, 0xf9, 0x2b, 0x42, 0x6b, 0x6f, 0x9e, 0x06, 0x3d, 0x20, 0x80, 0xac, 0x11, 0xd4, 0xc6, 0x7a, - 0x1c, 0xc1, 0x4b, 0x05, 0x98, 0x50, 0x2e, 0xb5, 0xb9, 0x6f, 0xfc, 0x3f, 0xfd, 0x37, 0xee, 0xbf, - 0x38, 0x2a, 0x29, 0x2f, 0x8f, 0x4a, 0xca, 0x5f, 0x47, 0x25, 0xe5, 0xa7, 0xe3, 0xd2, 0xcc, 0xcb, - 0xe3, 0xd2, 0xcc, 0x1f, 0xc7, 0xa5, 0x99, 0xcf, 0xeb, 0x36, 0xe1, 0x3b, 0x5e, 0xb3, 0xd6, 0x72, - 0x9d, 0xfa, 0x87, 0x26, 0xa1, 0x41, 0x65, 0xaf, 0x0b, 0x7f, 0x0e, 0xf0, 0x3b, 0x38, 0x6b, 0x66, - 0x82, 0xdf, 0x33, 0x6e, 0xff, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x2b, 0x7b, 0x10, 0xa0, 0xa2, 0x11, - 0x00, 0x00, + // 1153 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xce, 0xda, 0x89, 0x1d, 0xbf, 0xb8, 0xa0, 0x6c, 0x92, 0x66, 0xb3, 0xb4, 0x8e, 0xeb, 0xb4, + 0x92, 0x09, 0xd4, 0x6e, 0x53, 0x54, 0x50, 0x24, 0x10, 0x0d, 0xe5, 0x47, 0x55, 0xac, 0x56, 0xdb, + 0x92, 0x03, 0x42, 0xda, 0xae, 0xbd, 0x2f, 0x9b, 0x51, 0xbc, 0x5e, 0x33, 0x33, 0x1b, 0xc5, 0x70, + 0xa1, 0x1c, 0x2b, 0x0e, 0xfc, 0x01, 0x70, 0x45, 0x1c, 0x23, 0x81, 0xc4, 0x99, 0x5b, 0x8f, 0x15, + 0x27, 0x4e, 0x08, 0x25, 0x87, 0xfc, 0x1b, 0x68, 0x7f, 0xfa, 0xd7, 0x8e, 0xbd, 0x41, 0x20, 0x0e, + 0x5c, 0x12, 0xcf, 0x9b, 0x6f, 0xdf, 0x7c, 0xf3, 0xcd, 0xdb, 0xef, 0x8d, 0x0d, 0xaf, 0xec, 0x19, + 0x84, 0xf6, 0x28, 0xe9, 0x58, 0xf5, 0x03, 0xec, 0xb1, 0x7d, 0x83, 0x62, 0x9d, 0x1f, 0xd5, 0xba, + 0xd4, 0xe1, 0x8e, 0x2c, 0xc7, 0x93, 0xb5, 0x68, 0x52, 0x5d, 0x34, 0x6c, 0xd2, 0x71, 0xea, 0xfe, + 0xdf, 0x00, 0xa6, 0xae, 0xb6, 0x1c, 0x66, 0x3b, 0xac, 0x6e, 0x33, 0xab, 0x7e, 0x78, 0xd3, 0xfb, + 0x17, 0x4e, 0xac, 0x05, 0x13, 0xba, 0x3f, 0xaa, 0x07, 0x83, 0x70, 0x6a, 0x3d, 0x61, 0xdd, 0xae, + 0x41, 0x0d, 0x7b, 0x22, 0xc0, 0x6d, 0x1e, 0x60, 0x2f, 0x04, 0x2c, 0x5b, 0x8e, 0xe5, 0x04, 0x99, + 0xbd, 0x4f, 0x41, 0xb4, 0xf2, 0xab, 0x04, 0x2f, 0x37, 0x98, 0xf5, 0x49, 0xd7, 0x34, 0x38, 0x3e, + 0xf4, 0x13, 0xca, 0xb7, 0xa1, 0x60, 0xb8, 0x7c, 0xdf, 0xa1, 0x84, 0xf7, 0x14, 0xa9, 0x2c, 0x55, + 0x0b, 0x3b, 0xca, 0x6f, 0x3f, 0x5f, 0x5f, 0x0e, 0x09, 0xdd, 0x31, 0x4d, 0x8a, 0x8c, 0x3d, 0xe2, + 0xde, 0x62, 0x5a, 0x1f, 0x2a, 0xbf, 0x0d, 0xb9, 0x80, 0x92, 0x92, 0x29, 0x4b, 0xd5, 0x85, 0x2d, + 0xb5, 0x36, 0xae, 0x47, 0x2d, 0x58, 0x63, 0xa7, 0xf0, 0xfc, 0x8f, 0xf5, 0x99, 0x1f, 0xcf, 0x8e, + 0x37, 0x25, 0x2d, 0x7c, 0x68, 0xfb, 0xcd, 0xaf, 0xcf, 0x8e, 0x37, 0xfb, 0xe9, 0x9e, 0x9d, 0x1d, + 0x6f, 0x5e, 0xed, 0x6f, 0xea, 0xa8, 0xbf, 0xad, 0x11, 0xbe, 0x95, 0x35, 0x58, 0x1d, 0x09, 0x69, + 0xc8, 0xba, 0x4e, 0x87, 0x61, 0xe5, 0x1d, 0x58, 0x6e, 0x30, 0x4b, 0x43, 0x8b, 0x30, 0x8e, 0x74, + 0xd7, 0x68, 0x13, 0xd3, 0xe0, 0x0e, 0x95, 0x15, 0xc8, 0xb7, 0x28, 0x7a, 0x1f, 0x83, 0x0d, 0x6a, + 0xd1, 0x70, 0xbb, 0xe8, 0xb1, 0x88, 0x46, 0x95, 0xb7, 0xe0, 0x52, 0xd2, 0xf3, 0x51, 0x7e, 0x71, + 0x9e, 0xca, 0xbb, 0x70, 0xb1, 0xc1, 0xac, 0xbb, 0xf8, 0xf7, 0xd7, 0xde, 0x86, 0x52, 0x72, 0x86, + 0x14, 0xab, 0x7f, 0x1f, 0x1c, 0xeb, 0x23, 0xec, 0x98, 0xf7, 0x43, 0xd9, 0xc4, 0x68, 0x6f, 0xc6, + 0x46, 0xc6, 0x0c, 0x0b, 0xfd, 0x93, 0x2b, 0x68, 0xd1, 0x50, 0xbe, 0x06, 0x2f, 0x45, 0xb2, 0xeb, + 0xa4, 0x63, 0xe2, 0x91, 0x92, 0x2d, 0x4b, 0xd5, 0x59, 0xed, 0x42, 0x14, 0xbd, 0xe7, 0x05, 0xe5, + 0x2b, 0x50, 0x6c, 0xb6, 0x9d, 0xd6, 0x81, 0xbe, 0x8f, 0xc4, 0xda, 0xe7, 0xca, 0xac, 0x0f, 0x5a, + 0xf0, 0x63, 0x1f, 0xf9, 0xa1, 0x91, 0xbd, 0x7d, 0x93, 0xf1, 0xcf, 0x6c, 0x90, 0xdf, 0xf4, 0x5d, + 0xc9, 0x2a, 0xcc, 0x47, 0xeb, 0x86, 0x44, 0xe3, 0xf1, 0x3f, 0xc7, 0x54, 0xde, 0x82, 0x15, 0x8a, + 0x2d, 0x24, 0x87, 0x68, 0xea, 0x43, 0xd8, 0x39, 0x1f, 0xbb, 0x14, 0x4d, 0xee, 0x0c, 0x3c, 0xa3, + 0x40, 0x9e, 0xb9, 0xad, 0x16, 0x32, 0xa6, 0xe4, 0xca, 0x52, 0x75, 0x5e, 0x8b, 0x86, 0xf2, 0x06, + 0x5c, 0x40, 0x4a, 0x1d, 0xaa, 0x47, 0x0a, 0xe7, 0x7d, 0xe2, 0x45, 0x3f, 0xd8, 0x08, 0x62, 0x95, + 0x67, 0x19, 0x58, 0x69, 0x30, 0xeb, 0x3d, 0x6f, 0x9f, 0xf8, 0xb1, 0xc1, 0x91, 0xf1, 0x87, 0x6e, + 0xf3, 0x3e, 0xf6, 0x26, 0x88, 0x71, 0x19, 0xa0, 0xeb, 0x36, 0xdb, 0xa4, 0xa5, 0x1f, 0x60, 0x2f, + 0x94, 0xa3, 0x10, 0x44, 0xbc, 0x07, 0xcb, 0xb0, 0xd0, 0x72, 0x6c, 0x9b, 0x70, 0x1b, 0x3b, 0x9c, + 0x29, 0xd9, 0x72, 0xb6, 0x5a, 0xd0, 0x06, 0x43, 0xf2, 0x0d, 0x58, 0xee, 0xb8, 0x76, 0x13, 0xa9, + 0xee, 0xec, 0xe9, 0x87, 0x51, 0x71, 0xb1, 0x50, 0x12, 0x39, 0x98, 0x7b, 0xb0, 0x17, 0x97, 0x1d, + 0x93, 0x77, 0x61, 0x09, 0x3b, 0x2d, 0xda, 0xeb, 0x72, 0x34, 0xf5, 0x48, 0x57, 0xa6, 0xcc, 0x95, + 0xb3, 0xd5, 0x85, 0xad, 0x6b, 0x49, 0x6f, 0xfb, 0xfb, 0x11, 0x3c, 0x3e, 0x65, 0x19, 0x47, 0x43, + 0x6c, 0xa4, 0x36, 0xd6, 0xe1, 0x72, 0xa2, 0x16, 0xf1, 0x4b, 0x1d, 0x16, 0xcf, 0x83, 0x43, 0xa4, + 0x94, 0x98, 0xff, 0x7b, 0xbd, 0xae, 0xc0, 0xba, 0x40, 0x8d, 0x58, 0xb1, 0xcf, 0x40, 0x8d, 0x25, + 0xbd, 0x13, 0x18, 0xec, 0x17, 0x68, 0x86, 0x46, 0x2e, 0x5f, 0x84, 0x1c, 0x37, 0xa8, 0x85, 0x3c, + 0x94, 0x2c, 0x1c, 0x0d, 0x6a, 0x99, 0x99, 0x64, 0x54, 0x57, 0xa1, 0x22, 0xce, 0x1e, 0x73, 0x78, + 0x2a, 0xf9, 0x24, 0x02, 0x9b, 0x4e, 0x4f, 0x62, 0x03, 0x2e, 0x10, 0xa6, 0x1b, 0x31, 0xde, 0xa7, + 0x32, 0xaf, 0x15, 0x09, 0xeb, 0xe7, 0x18, 0x64, 0x9a, 0x9d, 0xce, 0x54, 0x40, 0x61, 0x44, 0xad, + 0xbb, 0xd8, 0xc6, 0x7f, 0x4f, 0x2d, 0x41, 0xf6, 0x98, 0xc3, 0x77, 0x19, 0x50, 0x3c, 0x83, 0x74, + 0x9b, 0x36, 0xe1, 0x1f, 0x62, 0x07, 0xa9, 0xd1, 0x4e, 0xe1, 0xe4, 0xab, 0x90, 0x27, 0xa6, 0xce, + 0x7b, 0xdd, 0xc8, 0x20, 0x73, 0xc4, 0x7c, 0xdc, 0xeb, 0xa2, 0xbc, 0x06, 0xf3, 0xc4, 0xf4, 0xaa, + 0xd6, 0xc5, 0x48, 0x22, 0x62, 0xee, 0x7a, 0xc3, 0x21, 0x57, 0x9d, 0x9d, 0xea, 0xaa, 0x73, 0x49, + 0xae, 0x7a, 0x1d, 0xe4, 0xd8, 0x32, 0x39, 0xb1, 0x91, 0x71, 0xc3, 0xee, 0xfa, 0x4e, 0x38, 0xab, + 0x2d, 0x46, 0x33, 0x8f, 0xa3, 0x09, 0xb1, 0xc3, 0xe6, 0x85, 0x0e, 0x3b, 0x22, 0xe2, 0x0f, 0x19, + 0x28, 0x8b, 0xe4, 0x49, 0xd1, 0x48, 0xfe, 0x23, 0x99, 0x84, 0xfb, 0xce, 0xa5, 0xea, 0x2c, 0xf9, + 0x29, 0x9d, 0x65, 0x3e, 0xa1, 0xb3, 0xfc, 0x92, 0xf1, 0x8b, 0x39, 0x10, 0x6a, 0xcc, 0x5d, 0x26, + 0xf7, 0x5a, 0x62, 0x62, 0x87, 0x7b, 0x77, 0xc0, 0xb0, 0xd7, 0x46, 0x63, 0xef, 0xb8, 0xc7, 0x7d, + 0x2d, 0xd4, 0x6b, 0x71, 0xcc, 0xaf, 0x12, 0xd4, 0x99, 0x4d, 0x5f, 0x44, 0x73, 0xe7, 0x2e, 0xa2, + 0x09, 0x62, 0x5e, 0x82, 0x02, 0xc5, 0xcf, 0x5d, 0xf4, 0xae, 0x53, 0x61, 0x23, 0xee, 0x07, 0x12, + 0xdf, 0x53, 0x81, 0x70, 0x51, 0x8d, 0x6d, 0xfd, 0x04, 0x90, 0x6d, 0x30, 0x4b, 0x7e, 0x02, 0xc5, + 0xa1, 0x3b, 0xf4, 0x46, 0x92, 0xbb, 0x8f, 0xdc, 0x52, 0xd5, 0xd7, 0x52, 0x80, 0xe2, 0x6a, 0x76, + 0x60, 0x71, 0xfc, 0x2e, 0x59, 0x15, 0x64, 0x18, 0x43, 0xaa, 0x37, 0xd2, 0x22, 0xe3, 0x05, 0x5d, + 0x58, 0x4a, 0xba, 0xbe, 0x6e, 0x0a, 0x12, 0x25, 0x60, 0xd5, 0xad, 0xf4, 0xd8, 0x78, 0xd9, 0x27, + 0x50, 0x1c, 0xba, 0xb6, 0x8a, 0x94, 0x1c, 0x04, 0x09, 0x95, 0x4c, 0xbc, 0x60, 0x52, 0x90, 0x13, + 0x6e, 0x5a, 0xaf, 0x0a, 0x52, 0x8c, 0x43, 0xd5, 0x9b, 0xa9, 0xa1, 0xf1, 0x9a, 0x47, 0xb0, 0x9c, + 0x78, 0x5f, 0x11, 0x11, 0x4f, 0x02, 0xab, 0xb7, 0xce, 0x01, 0x8e, 0x57, 0x7e, 0x2a, 0xc1, 0xaa, + 0xa8, 0xf3, 0xd7, 0x26, 0x6e, 0x64, 0x0c, 0xaf, 0xde, 0x3e, 0x1f, 0x7e, 0x88, 0x83, 0xa8, 0xf1, + 0xd7, 0x26, 0xbe, 0x04, 0xe9, 0x39, 0x4c, 0xe9, 0xea, 0x3e, 0x07, 0x51, 0x4f, 0xaf, 0x09, 0xeb, + 0x34, 0x11, 0x2f, 0xe4, 0x30, 0xa5, 0xab, 0xcb, 0x5f, 0xc2, 0x4a, 0x72, 0x47, 0x7f, 0x5d, 0x54, + 0xbf, 0x49, 0x68, 0xf5, 0x8d, 0xf3, 0xa0, 0x87, 0x04, 0x10, 0xf5, 0x81, 0xda, 0xc4, 0x8c, 0x63, + 0x78, 0xa1, 0x00, 0x53, 0xec, 0x52, 0x9d, 0xfb, 0xca, 0xfb, 0xca, 0xbf, 0x73, 0xef, 0xf9, 0x49, + 0x49, 0x7a, 0x71, 0x52, 0x92, 0xfe, 0x3c, 0x29, 0x49, 0xdf, 0x9e, 0x96, 0x66, 0x5e, 0x9c, 0x96, + 0x66, 0x7e, 0x3f, 0x2d, 0xcd, 0x7c, 0x5a, 0xb7, 0x08, 0xdf, 0x77, 0x9b, 0xb5, 0x96, 0x63, 0xd7, + 0x3f, 0x30, 0x08, 0xf5, 0x9d, 0xbd, 0x9e, 0xf8, 0x33, 0x80, 0xd7, 0xbe, 0x59, 0x33, 0xe7, 0xff, + 0x8e, 0x71, 0xeb, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x76, 0xc6, 0xe6, 0xa7, 0x99, 0x11, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1451,7 +1449,7 @@ type MsgClient interface { DeleteAuthorizedAddress(ctx context.Context, in *MsgDeleteAuthorizedAddress, opts ...grpc.CallOption) (*MsgDeleteAuthorizedAddressResponse, error) // SubmitGeneralKeyShare defines an operation to submit a // general keyshare from a registered validator - SubmitGeneralKeyShare(ctx context.Context, in *MsgSubmitGeneralKeyShare, opts ...grpc.CallOption) (*MsgSubmitGeneralKeyShareResponse, error) + SubmitGeneralKeyshare(ctx context.Context, in *MsgSubmitGeneralKeyshare, opts ...grpc.CallOption) (*MsgSubmitGeneralKeyshareResponse, error) // SubmitEncryptedKeyshare defines an operation to submit // an encrypted keyshare from a registered validator SubmitEncryptedKeyshare(ctx context.Context, in *MsgSubmitEncryptedKeyshare, opts ...grpc.CallOption) (*MsgSubmitEncryptedKeyshareResponse, error) @@ -1546,9 +1544,9 @@ func (c *msgClient) DeleteAuthorizedAddress(ctx context.Context, in *MsgDeleteAu return out, nil } -func (c *msgClient) SubmitGeneralKeyShare(ctx context.Context, in *MsgSubmitGeneralKeyShare, opts ...grpc.CallOption) (*MsgSubmitGeneralKeyShareResponse, error) { - out := new(MsgSubmitGeneralKeyShareResponse) - err := c.cc.Invoke(ctx, "/fairyring.keyshare.Msg/SubmitGeneralKeyShare", in, out, opts...) +func (c *msgClient) SubmitGeneralKeyshare(ctx context.Context, in *MsgSubmitGeneralKeyshare, opts ...grpc.CallOption) (*MsgSubmitGeneralKeyshareResponse, error) { + out := new(MsgSubmitGeneralKeyshareResponse) + err := c.cc.Invoke(ctx, "/fairyring.keyshare.Msg/SubmitGeneralKeyshare", in, out, opts...) if err != nil { return nil, err } @@ -1594,7 +1592,7 @@ type MsgServer interface { DeleteAuthorizedAddress(context.Context, *MsgDeleteAuthorizedAddress) (*MsgDeleteAuthorizedAddressResponse, error) // SubmitGeneralKeyShare defines an operation to submit a // general keyshare from a registered validator - SubmitGeneralKeyShare(context.Context, *MsgSubmitGeneralKeyShare) (*MsgSubmitGeneralKeyShareResponse, error) + SubmitGeneralKeyshare(context.Context, *MsgSubmitGeneralKeyshare) (*MsgSubmitGeneralKeyshareResponse, error) // SubmitEncryptedKeyshare defines an operation to submit // an encrypted keyshare from a registered validator SubmitEncryptedKeyshare(context.Context, *MsgSubmitEncryptedKeyshare) (*MsgSubmitEncryptedKeyshareResponse, error) @@ -1631,8 +1629,8 @@ func (*UnimplementedMsgServer) UpdateAuthorizedAddress(ctx context.Context, req func (*UnimplementedMsgServer) DeleteAuthorizedAddress(ctx context.Context, req *MsgDeleteAuthorizedAddress) (*MsgDeleteAuthorizedAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteAuthorizedAddress not implemented") } -func (*UnimplementedMsgServer) SubmitGeneralKeyShare(ctx context.Context, req *MsgSubmitGeneralKeyShare) (*MsgSubmitGeneralKeyShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SubmitGeneralKeyShare not implemented") +func (*UnimplementedMsgServer) SubmitGeneralKeyshare(ctx context.Context, req *MsgSubmitGeneralKeyshare) (*MsgSubmitGeneralKeyshareResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SubmitGeneralKeyshare not implemented") } func (*UnimplementedMsgServer) SubmitEncryptedKeyshare(ctx context.Context, req *MsgSubmitEncryptedKeyshare) (*MsgSubmitEncryptedKeyshareResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SubmitEncryptedKeyshare not implemented") @@ -1804,20 +1802,20 @@ func _Msg_DeleteAuthorizedAddress_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } -func _Msg_SubmitGeneralKeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgSubmitGeneralKeyShare) +func _Msg_SubmitGeneralKeyshare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSubmitGeneralKeyshare) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).SubmitGeneralKeyShare(ctx, in) + return srv.(MsgServer).SubmitGeneralKeyshare(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.keyshare.Msg/SubmitGeneralKeyShare", + FullMethod: "/fairyring.keyshare.Msg/SubmitGeneralKeyshare", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).SubmitGeneralKeyShare(ctx, req.(*MsgSubmitGeneralKeyShare)) + return srv.(MsgServer).SubmitGeneralKeyshare(ctx, req.(*MsgSubmitGeneralKeyshare)) } return interceptor(ctx, in, info, handler) } @@ -1881,8 +1879,8 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ Handler: _Msg_DeleteAuthorizedAddress_Handler, }, { - MethodName: "SubmitGeneralKeyShare", - Handler: _Msg_SubmitGeneralKeyShare_Handler, + MethodName: "SubmitGeneralKeyshare", + Handler: _Msg_SubmitGeneralKeyshare_Handler, }, { MethodName: "SubmitEncryptedKeyshare", @@ -2101,8 +2099,8 @@ func (m *MsgSendKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x20 } - if m.KeyShareIndex != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.KeyShareIndex)) + if m.KeyshareIndex != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.KeyshareIndex)) i-- dAtA[i] = 0x18 } @@ -2212,10 +2210,10 @@ func (m *MsgCreateLatestPubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.EncryptedKeyShares) > 0 { - for iNdEx := len(m.EncryptedKeyShares) - 1; iNdEx >= 0; iNdEx-- { + if len(m.EncryptedKeyshares) > 0 { + for iNdEx := len(m.EncryptedKeyshares) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.EncryptedKeyShares[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.EncryptedKeyshares[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2300,10 +2298,10 @@ func (m *MsgOverrideLatestPubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) _ = i var l int _ = l - if len(m.EncryptedKeyShares) > 0 { - for iNdEx := len(m.EncryptedKeyShares) - 1; iNdEx >= 0; iNdEx-- { + if len(m.EncryptedKeyshares) > 0 { + for iNdEx := len(m.EncryptedKeyshares) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.EncryptedKeyShares[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.EncryptedKeyshares[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2558,7 +2556,7 @@ func (m *MsgDeleteAuthorizedAddressResponse) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } -func (m *MsgSubmitGeneralKeyShare) Marshal() (dAtA []byte, err error) { +func (m *MsgSubmitGeneralKeyshare) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2568,12 +2566,12 @@ func (m *MsgSubmitGeneralKeyShare) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgSubmitGeneralKeyShare) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgSubmitGeneralKeyshare) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgSubmitGeneralKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgSubmitGeneralKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2588,15 +2586,15 @@ func (m *MsgSubmitGeneralKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error i-- dAtA[i] = 0x30 } - if m.KeyShareIndex != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.KeyShareIndex)) + if m.KeyshareIndex != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.KeyshareIndex)) i-- dAtA[i] = 0x28 } - if len(m.KeyShare) > 0 { - i -= len(m.KeyShare) - copy(dAtA[i:], m.KeyShare) - i = encodeVarintTx(dAtA, i, uint64(len(m.KeyShare))) + if len(m.Keyshare) > 0 { + i -= len(m.Keyshare) + copy(dAtA[i:], m.Keyshare) + i = encodeVarintTx(dAtA, i, uint64(len(m.Keyshare))) i-- dAtA[i] = 0x22 } @@ -2624,7 +2622,7 @@ func (m *MsgSubmitGeneralKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *MsgSubmitGeneralKeyShareResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgSubmitGeneralKeyshareResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2634,12 +2632,12 @@ func (m *MsgSubmitGeneralKeyShareResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgSubmitGeneralKeyShareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgSubmitGeneralKeyshareResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgSubmitGeneralKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgSubmitGeneralKeyshareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2666,15 +2664,15 @@ func (m *MsgSubmitGeneralKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (in i-- dAtA[i] = 0x30 } - if m.KeyShareIndex != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.KeyShareIndex)) + if m.KeyshareIndex != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.KeyshareIndex)) i-- dAtA[i] = 0x28 } - if len(m.KeyShare) > 0 { - i -= len(m.KeyShare) - copy(dAtA[i:], m.KeyShare) - i = encodeVarintTx(dAtA, i, uint64(len(m.KeyShare))) + if len(m.Keyshare) > 0 { + i -= len(m.Keyshare) + copy(dAtA[i:], m.Keyshare) + i = encodeVarintTx(dAtA, i, uint64(len(m.Keyshare))) i-- dAtA[i] = 0x22 } @@ -2739,8 +2737,8 @@ func (m *MsgSubmitEncryptedKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, err i-- dAtA[i] = 0x28 } - if m.KeyShareIndex != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.KeyShareIndex)) + if m.KeyshareIndex != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.KeyshareIndex)) i-- dAtA[i] = 0x20 } @@ -2892,8 +2890,8 @@ func (m *MsgSendKeyshare) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.KeyShareIndex != 0 { - n += 1 + sovTx(uint64(m.KeyShareIndex)) + if m.KeyshareIndex != 0 { + n += 1 + sovTx(uint64(m.KeyshareIndex)) } if m.BlockHeight != 0 { n += 1 + sovTx(uint64(m.BlockHeight)) @@ -2957,8 +2955,8 @@ func (m *MsgCreateLatestPubKey) Size() (n int) { if m.NumberOfValidators != 0 { n += 1 + sovTx(uint64(m.NumberOfValidators)) } - if len(m.EncryptedKeyShares) > 0 { - for _, e := range m.EncryptedKeyShares { + if len(m.EncryptedKeyshares) > 0 { + for _, e := range m.EncryptedKeyshares { l = e.Size() n += 1 + l + sovTx(uint64(l)) } @@ -2998,8 +2996,8 @@ func (m *MsgOverrideLatestPubKey) Size() (n int) { if m.NumberOfValidators != 0 { n += 1 + sovTx(uint64(m.NumberOfValidators)) } - if len(m.EncryptedKeyShares) > 0 { - for _, e := range m.EncryptedKeyShares { + if len(m.EncryptedKeyshares) > 0 { + for _, e := range m.EncryptedKeyshares { l = e.Size() n += 1 + l + sovTx(uint64(l)) } @@ -3097,7 +3095,7 @@ func (m *MsgDeleteAuthorizedAddressResponse) Size() (n int) { return n } -func (m *MsgSubmitGeneralKeyShare) Size() (n int) { +func (m *MsgSubmitGeneralKeyshare) Size() (n int) { if m == nil { return 0 } @@ -3115,12 +3113,12 @@ func (m *MsgSubmitGeneralKeyShare) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.KeyShare) + l = len(m.Keyshare) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.KeyShareIndex != 0 { - n += 1 + sovTx(uint64(m.KeyShareIndex)) + if m.KeyshareIndex != 0 { + n += 1 + sovTx(uint64(m.KeyshareIndex)) } if m.ReceivedTimestamp != 0 { n += 1 + sovTx(uint64(m.ReceivedTimestamp)) @@ -3131,7 +3129,7 @@ func (m *MsgSubmitGeneralKeyShare) Size() (n int) { return n } -func (m *MsgSubmitGeneralKeyShareResponse) Size() (n int) { +func (m *MsgSubmitGeneralKeyshareResponse) Size() (n int) { if m == nil { return 0 } @@ -3149,12 +3147,12 @@ func (m *MsgSubmitGeneralKeyShareResponse) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.KeyShare) + l = len(m.Keyshare) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.KeyShareIndex != 0 { - n += 1 + sovTx(uint64(m.KeyShareIndex)) + if m.KeyshareIndex != 0 { + n += 1 + sovTx(uint64(m.KeyshareIndex)) } if m.ReceivedBlockHeight != 0 { n += 1 + sovTx(uint64(m.ReceivedBlockHeight)) @@ -3187,8 +3185,8 @@ func (m *MsgSubmitEncryptedKeyshare) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.KeyShareIndex != 0 { - n += 1 + sovTx(uint64(m.KeyShareIndex)) + if m.KeyshareIndex != 0 { + n += 1 + sovTx(uint64(m.KeyshareIndex)) } if m.ReceivedTimestamp != 0 { n += 1 + sovTx(uint64(m.ReceivedTimestamp)) @@ -3806,9 +3804,9 @@ func (m *MsgSendKeyshare) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 3: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyshareIndex", wireType) } - m.KeyShareIndex = 0 + m.KeyshareIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -3818,7 +3816,7 @@ func (m *MsgSendKeyshare) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyShareIndex |= uint64(b&0x7F) << shift + m.KeyshareIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -4232,7 +4230,7 @@ func (m *MsgCreateLatestPubKey) Unmarshal(dAtA []byte) error { } case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyShares", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyshares", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4259,8 +4257,8 @@ func (m *MsgCreateLatestPubKey) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EncryptedKeyShares = append(m.EncryptedKeyShares, &EncryptedKeyShare{}) - if err := m.EncryptedKeyShares[len(m.EncryptedKeyShares)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.EncryptedKeyshares = append(m.EncryptedKeyshares, &EncryptedKeyshare{}) + if err := m.EncryptedKeyshares[len(m.EncryptedKeyshares)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4481,7 +4479,7 @@ func (m *MsgOverrideLatestPubKey) Unmarshal(dAtA []byte) error { } case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyShares", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EncryptedKeyshares", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4508,8 +4506,8 @@ func (m *MsgOverrideLatestPubKey) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EncryptedKeyShares = append(m.EncryptedKeyShares, &EncryptedKeyShare{}) - if err := m.EncryptedKeyShares[len(m.EncryptedKeyShares)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.EncryptedKeyshares = append(m.EncryptedKeyshares, &EncryptedKeyshare{}) + if err := m.EncryptedKeyshares[len(m.EncryptedKeyshares)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -5096,7 +5094,7 @@ func (m *MsgDeleteAuthorizedAddressResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgSubmitGeneralKeyShare) Unmarshal(dAtA []byte) error { +func (m *MsgSubmitGeneralKeyshare) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5119,10 +5117,10 @@ func (m *MsgSubmitGeneralKeyShare) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgSubmitGeneralKeyShare: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSubmitGeneralKeyshare: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgSubmitGeneralKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSubmitGeneralKeyshare: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5223,7 +5221,7 @@ func (m *MsgSubmitGeneralKeyShare) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyshare", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5251,13 +5249,13 @@ func (m *MsgSubmitGeneralKeyShare) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.KeyShare = string(dAtA[iNdEx:postIndex]) + m.Keyshare = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyshareIndex", wireType) } - m.KeyShareIndex = 0 + m.KeyshareIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -5267,7 +5265,7 @@ func (m *MsgSubmitGeneralKeyShare) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyShareIndex |= uint64(b&0x7F) << shift + m.KeyshareIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5331,7 +5329,7 @@ func (m *MsgSubmitGeneralKeyShare) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgSubmitGeneralKeyShareResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSubmitGeneralKeyshareResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -5354,10 +5352,10 @@ func (m *MsgSubmitGeneralKeyShareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgSubmitGeneralKeyShareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSubmitGeneralKeyshareResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgSubmitGeneralKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSubmitGeneralKeyshareResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5458,7 +5456,7 @@ func (m *MsgSubmitGeneralKeyShareResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShare", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Keyshare", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5486,13 +5484,13 @@ func (m *MsgSubmitGeneralKeyShareResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.KeyShare = string(dAtA[iNdEx:postIndex]) + m.Keyshare = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyshareIndex", wireType) } - m.KeyShareIndex = 0 + m.KeyshareIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -5502,7 +5500,7 @@ func (m *MsgSubmitGeneralKeyShareResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyShareIndex |= uint64(b&0x7F) << shift + m.KeyshareIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5726,9 +5724,9 @@ func (m *MsgSubmitEncryptedKeyshare) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 4: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyShareIndex", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyshareIndex", wireType) } - m.KeyShareIndex = 0 + m.KeyshareIndex = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowTx @@ -5738,7 +5736,7 @@ func (m *MsgSubmitEncryptedKeyshare) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.KeyShareIndex |= uint64(b&0x7F) << shift + m.KeyshareIndex |= uint64(b&0x7F) << shift if b < 0x80 { break } diff --git a/x/pep/ante/ante.go b/x/pep/ante/ante.go index 98a89541..9c01ebf1 100644 --- a/x/pep/ante/ante.go +++ b/x/pep/ante/ante.go @@ -28,7 +28,7 @@ func NewPepDecorator(pk keeper.Keeper, txEncoder sdk.TxEncoder, lane KeyShareLan // AnteHandle validates that the keyshare is valid if one exists. func (pd PEPDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) { - ksInfo, err := pd.lane.GetKeyShareInfo(tx) + ksInfo, err := pd.lane.GetDecryptionKeyInfo(tx) if ksInfo == nil { return ctx, err } diff --git a/x/pep/ante/utils.go b/x/pep/ante/utils.go index c1242aaa..2bd3fae3 100644 --- a/x/pep/ante/utils.go +++ b/x/pep/ante/utils.go @@ -7,11 +7,5 @@ import ( // KeyshareLane is an interface that defines the methods required to interact with the keyshare lane. type KeyShareLane interface { - GetKeyShareInfo(tx sdk.Tx) (*peptypes.AggregatedKeyShare, error) + GetDecryptionKeyInfo(tx sdk.Tx) (*peptypes.DecryptionKey, error) } - -// // AuctionKeeper is an interface that defines the methods required to interact with the -// // auction keeper. -// type AuctionKeeper interface { -// ValidateBidInfo(ctx sdk.Context, highestBid sdk.Coin, bidInfo *types.BidInfo) error -// } diff --git a/x/pep/client/cli/tx.go b/x/pep/client/cli/tx.go index a27be67f..45c78d84 100644 --- a/x/pep/client/cli/tx.go +++ b/x/pep/client/cli/tx.go @@ -26,12 +26,12 @@ func GetTxCmd() *cobra.Command { } cmd.AddCommand(CmdSubmitEncryptedTx()) - cmd.AddCommand(CmdCreateAggregatedKeyShare()) - cmd.AddCommand(CmdRequestGeneralKeyshare()) - cmd.AddCommand(CmdGetGeneralKeyshare()) + cmd.AddCommand(CmdSubmitDecryptionKey()) + cmd.AddCommand(CmdRequestGeneralIdentity()) + cmd.AddCommand(CmdRequestGeneralDecryptionKey()) cmd.AddCommand(CmdSubmitGeneralEncryptedTx()) - cmd.AddCommand(CmdRequestPrivateKeyshare()) - cmd.AddCommand(CmdGetPrivateKeyshare()) + cmd.AddCommand(CmdRequestPrivateIdentity()) + cmd.AddCommand(CmdRequestPrivateDecryptionKey()) cmd.AddCommand(CmdRegisterContract()) cmd.AddCommand(CmdUnregisterContract()) // this line is used by starport scaffolding # 1 diff --git a/x/pep/client/cli/tx_get_general_keyshare.go b/x/pep/client/cli/tx_request_general_decryption_key.go similarity index 77% rename from x/pep/client/cli/tx_get_general_keyshare.go rename to x/pep/client/cli/tx_request_general_decryption_key.go index c4c9cbf6..ef9f33df 100644 --- a/x/pep/client/cli/tx_get_general_keyshare.go +++ b/x/pep/client/cli/tx_request_general_decryption_key.go @@ -12,10 +12,10 @@ import ( var _ = strconv.Itoa(0) -func CmdGetGeneralKeyshare() *cobra.Command { +func CmdRequestGeneralDecryptionKey() *cobra.Command { cmd := &cobra.Command{ - Use: "get-general-keyshare [req-id]", - Short: "Broadcast message get-general-keyshare", + Use: "request-general-decryption-key [req-id]", + Short: "Broadcast message request-general-decryption-key", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) (err error) { argReqId := args[0] @@ -25,7 +25,7 @@ func CmdGetGeneralKeyshare() *cobra.Command { return err } - msg := types.NewMsgGetGeneralKeyshare( + msg := types.NewMsgRequestGeneralDecryptionKey( clientCtx.GetFromAddress().String(), argReqId, ) diff --git a/x/pep/client/cli/tx_request_general_keyshare.go b/x/pep/client/cli/tx_request_general_identity.go similarity index 79% rename from x/pep/client/cli/tx_request_general_keyshare.go rename to x/pep/client/cli/tx_request_general_identity.go index 19b1f25a..981fd312 100644 --- a/x/pep/client/cli/tx_request_general_keyshare.go +++ b/x/pep/client/cli/tx_request_general_identity.go @@ -13,10 +13,10 @@ import ( var _ = strconv.Itoa(0) -func CmdRequestGeneralKeyshare() *cobra.Command { +func CmdRequestGeneralIdentity() *cobra.Command { cmd := &cobra.Command{ - Use: "request-general-keyshare [estimated-delay] [req-id]", - Short: "Broadcast message request-general-keyshare", + Use: "request-general-identity [estimated-delay] [req-id]", + Short: "Broadcast message request-general-identity", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) (err error) { argDelay, err := time.ParseDuration(args[0]) @@ -29,7 +29,7 @@ func CmdRequestGeneralKeyshare() *cobra.Command { return err } - msg := types.NewMsgRequestGeneralKeyshare( + msg := types.NewMsgRequestGeneralIdentity( clientCtx.GetFromAddress().String(), argDelay, args[1], diff --git a/x/pep/client/cli/tx_get_private_keyshare.go b/x/pep/client/cli/tx_request_private_decryption_key.go similarity index 76% rename from x/pep/client/cli/tx_get_private_keyshare.go rename to x/pep/client/cli/tx_request_private_decryption_key.go index 03809ddb..da11af38 100644 --- a/x/pep/client/cli/tx_get_private_keyshare.go +++ b/x/pep/client/cli/tx_request_private_decryption_key.go @@ -12,10 +12,10 @@ import ( var _ = strconv.Itoa(0) -func CmdGetPrivateKeyshare() *cobra.Command { +func CmdRequestPrivateDecryptionKey() *cobra.Command { cmd := &cobra.Command{ - Use: "get-private-keyshare [req-id] [secp-pubkey]", - Short: "Broadcast message get-general-keyshare", + Use: "request-private-decryption-key [req-id] [secp-pubkey]", + Short: "Broadcast message request-private-decryption-key", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) (err error) { argReqId := args[0] @@ -26,7 +26,7 @@ func CmdGetPrivateKeyshare() *cobra.Command { return err } - msg := types.NewMsgGetPrivateKeyshares( + msg := types.NewMsgRequestPrivateDecryptionKey( clientCtx.GetFromAddress().String(), argReqId, argPubkey, diff --git a/x/pep/client/cli/tx_request_private_keyshare.go b/x/pep/client/cli/tx_request_private_identity.go similarity index 83% rename from x/pep/client/cli/tx_request_private_keyshare.go rename to x/pep/client/cli/tx_request_private_identity.go index b8da95b8..72217af7 100644 --- a/x/pep/client/cli/tx_request_private_keyshare.go +++ b/x/pep/client/cli/tx_request_private_identity.go @@ -12,10 +12,10 @@ import ( var _ = strconv.Itoa(0) -func CmdRequestPrivateKeyshare() *cobra.Command { +func CmdRequestPrivateIdentity() *cobra.Command { cmd := &cobra.Command{ - Use: "request-private-keyshare [req-id]", - Short: "Broadcast message request-private-keyshare", + Use: "request-private-identity [req-id]", + Short: "Broadcast message request-private-identity", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) (err error) { clientCtx, err := client.GetClientTxContext(cmd) diff --git a/x/pep/client/cli/tx_aggregated_key_share.go b/x/pep/client/cli/tx_submit_decryption_key.go similarity index 84% rename from x/pep/client/cli/tx_aggregated_key_share.go rename to x/pep/client/cli/tx_submit_decryption_key.go index c8eb0daf..190b43fd 100644 --- a/x/pep/client/cli/tx_aggregated_key_share.go +++ b/x/pep/client/cli/tx_submit_decryption_key.go @@ -10,9 +10,9 @@ import ( "github.com/spf13/cobra" ) -func CmdCreateAggregatedKeyShare() *cobra.Command { +func CmdSubmitDecryptionKey() *cobra.Command { cmd := &cobra.Command{ - Use: "create-aggregated-key-share [height] [data]", + Use: "submit-decryption-key [height] [data]", Short: "Submit a new aggregated keyshare into a destination chain", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) (err error) { @@ -30,7 +30,7 @@ func CmdCreateAggregatedKeyShare() *cobra.Command { return err } - msg := types.NewMsgCreateAggregatedKeyShare( + msg := types.NewMsgSubmitDecryptionKey( clientCtx.GetFromAddress().String(), indexHeight, argData, diff --git a/x/pep/keeper/aggregated_key_share.go b/x/pep/keeper/aggregated_key_share.go index 8ceff4c7..bfa445c7 100644 --- a/x/pep/keeper/aggregated_key_share.go +++ b/x/pep/keeper/aggregated_key_share.go @@ -14,26 +14,26 @@ import ( channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" ) -// SetAggregatedKeyShare set a specific aggregatedKeyShare in the store from its index -func (k Keeper) SetAggregatedKeyShare(ctx context.Context, aggregatedKeyShare types.AggregatedKeyShare) { +// SetDecryptionKey set a specific decryption key in the store from its index +func (k Keeper) SetDecryptionKey(ctx context.Context, aggregatedKeyShare types.DecryptionKey) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.AggregatedKeyShareKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DecryptionKeyKeyPrefix)) b := k.cdc.MustMarshal(&aggregatedKeyShare) - store.Set(types.AggregatedKeyShareKey( + store.Set(types.DecryptionKeyKey( aggregatedKeyShare.Height, ), b) } -// GetAggregatedKeyShare returns a aggregatedKeyShare from its index -func (k Keeper) GetAggregatedKeyShare( +// GetDecryptionKey returns a decryption key from its index +func (k Keeper) GetDecryptionKey( ctx context.Context, height uint64, -) (val types.AggregatedKeyShare, found bool) { +) (val types.DecryptionKey, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.AggregatedKeyShareKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DecryptionKeyKeyPrefix)) - b := store.Get(types.AggregatedKeyShareKey( + b := store.Get(types.DecryptionKeyKey( height, )) if b == nil { @@ -44,29 +44,29 @@ func (k Keeper) GetAggregatedKeyShare( return val, true } -// RemoveAggregatedKeyShare removes a aggregatedKeyShare from the store -func (k Keeper) RemoveAggregatedKeyShare( +// RemoveDecryptionKey removes a decryption key from the store +func (k Keeper) RemoveDecryptionKey( ctx context.Context, height uint64, ) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.AggregatedKeyShareKeyPrefix)) - store.Delete(types.AggregatedKeyShareKey( + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DecryptionKeyKeyPrefix)) + store.Delete(types.DecryptionKeyKey( height, )) } -// GetAllAggregatedKeyShare returns all aggregatedKeyShare -func (k Keeper) GetAllAggregatedKeyShare(ctx context.Context) (list []types.AggregatedKeyShare) { +// GetAllDecryptionKeys returns all decryption keys +func (k Keeper) GetAllDecryptionKeys(ctx context.Context) (list []types.DecryptionKey) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.AggregatedKeyShareKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DecryptionKeyKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - var val types.AggregatedKeyShare + var val types.DecryptionKey k.cdc.MustUnmarshal(iterator.Value(), &val) list = append(list, val) } @@ -74,8 +74,12 @@ func (k Keeper) GetAllAggregatedKeyShare(ctx context.Context) (list []types.Aggr return } -// OnRecvAggrKeyshareDataPacket processes packet reception -func (k Keeper) OnRecvAggrKeyshareDataPacket(ctx context.Context, packet channeltypes.Packet, data kstypes.AggrKeyshareDataPacketData) (packetAck kstypes.AggrKeyshareDataPacketAck, err error) { +// OnRecvDecryptionKeyDataPacket processes packet reception +func (k Keeper) OnRecvDecryptionKeyDataPacket( + ctx context.Context, + packet channeltypes.Packet, + data kstypes.DecryptionKeyDataPacketData, +) (packetAck kstypes.DecryptionKeyPacketAck, err error) { // validate packet data upon receiving if err := data.ValidateBasic(); err != nil { return packetAck, err @@ -86,7 +90,7 @@ func (k Keeper) OnRecvAggrKeyshareDataPacket(ctx context.Context, packet channel return packetAck, errors.New("request not found for this id") } - entry.AggrKeyshare = data.AggrKeyshare + entry.DecryptionKey = data.DecryptionKey k.SetExecutionQueueEntry(ctx, entry) k.SetEntry(ctx, entry) @@ -95,11 +99,11 @@ func (k Keeper) OnRecvAggrKeyshareDataPacket(ctx context.Context, packet channel } // OnRecvEncKeyshareDataPacket processes packet reception -func (k Keeper) OnRecvEncKeyshareDataPacket( +func (k Keeper) OnRecvPrivDecryptionKeyDataPacket( ctx context.Context, packet channeltypes.Packet, - data kstypes.EncryptedKeysharesPacketData, -) (packetAck kstypes.EncryptedKeysharesPacketAck, err error) { + data kstypes.PrivateDecryptionKeyDataPacketData, +) (packetAck kstypes.PrivateDecryptionKeyPacketAck, err error) { // validate packet data upon receiving if err := data.ValidateBasic(); err != nil { return packetAck, err @@ -110,7 +114,7 @@ func (k Keeper) OnRecvEncKeyshareDataPacket( return packetAck, errors.New("request not found for this id") } - entry.EncryptedKeyshares = data.EncryptedKeyshares + entry.PrivateDecryptionKeys = data.PrivateDecryptionKey k.SetPrivateRequest(ctx, entry) return packetAck, nil diff --git a/x/pep/keeper/aggregated_key_share_test.go b/x/pep/keeper/aggregated_key_share_test.go index 3d157d44..8515b883 100644 --- a/x/pep/keeper/aggregated_key_share_test.go +++ b/x/pep/keeper/aggregated_key_share_test.go @@ -1,11 +1,12 @@ package keeper_test import ( - "github.com/Fairblock/fairyring/testutil/random" - "github.com/Fairblock/fairyring/testutil/sample" "strconv" "testing" + "github.com/Fairblock/fairyring/testutil/random" + "github.com/Fairblock/fairyring/testutil/sample" + keepertest "github.com/Fairblock/fairyring/testutil/keeper" "github.com/Fairblock/fairyring/testutil/nullify" "github.com/Fairblock/fairyring/x/pep/keeper" @@ -18,14 +19,14 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func createNAggregatedKeyShare(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.AggregatedKeyShare { - items := make([]types.AggregatedKeyShare, n) +func createNAggregatedKeyShare(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.DecryptionKey { + items := make([]types.DecryptionKey, n) for i := range items { items[i].Height = uint64(i) items[i].Data = random.RandHex(32) items[i].Creator = sample.AccAddress() - keeper.SetAggregatedKeyShare(ctx, items[i]) + keeper.SetDecryptionKey(ctx, items[i]) } return items } @@ -34,7 +35,7 @@ func TestAggregatedKeyShareGet(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) items := createNAggregatedKeyShare(&keeper, ctx, 10) for _, item := range items { - rst, found := keeper.GetAggregatedKeyShare(ctx, + rst, found := keeper.GetDecryptionKey(ctx, item.Height, ) require.True(t, found) @@ -48,10 +49,10 @@ func TestAggregatedKeyShareRemove(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) items := createNAggregatedKeyShare(&keeper, ctx, 10) for _, item := range items { - keeper.RemoveAggregatedKeyShare(ctx, + keeper.RemoveDecryptionKey(ctx, item.Height, ) - _, found := keeper.GetAggregatedKeyShare(ctx, + _, found := keeper.GetDecryptionKey(ctx, item.Height, ) require.False(t, found) @@ -63,6 +64,6 @@ func TestAggregatedKeyShareGetAll(t *testing.T) { items := createNAggregatedKeyShare(&keeper, ctx, 10) require.ElementsMatch(t, nullify.Fill(items), - nullify.Fill(keeper.GetAllAggregatedKeyShare(ctx)), + nullify.Fill(keeper.GetAllDecryptionKeys(ctx)), ) } diff --git a/x/pep/keeper/current_keys.go b/x/pep/keeper/current_keys.go index 9596f7f6..e92b92b6 100644 --- a/x/pep/keeper/current_keys.go +++ b/x/pep/keeper/current_keys.go @@ -120,12 +120,12 @@ func (k Keeper) OnAcknowledgementCurrentKeysPacket(ctx sdk.Context, packet chann return nil } - ak, found := k.GetActivePubKey(ctx) + ak, found := k.GetActivePubkey(ctx) if !found { - k.SetActivePubKey(ctx, *packetAck.ActiveKey) + k.SetActivePubkey(ctx, *packetAck.ActiveKey) } else { if ak.Expiry <= packetAck.ActiveKey.Expiry { - k.SetActivePubKey(ctx, *packetAck.ActiveKey) + k.SetActivePubkey(ctx, *packetAck.ActiveKey) } } @@ -134,12 +134,12 @@ func (k Keeper) OnAcknowledgementCurrentKeysPacket(ctx sdk.Context, packet chann return nil } - qk, found := k.GetQueuedPubKey(ctx) + qk, found := k.GetQueuedPubkey(ctx) if !found { - k.SetQueuedPubKey(ctx, *packetAck.QueuedKey) + k.SetQueuedPubkey(ctx, *packetAck.QueuedKey) } else { if qk.Expiry <= packetAck.QueuedKey.Expiry { - k.SetQueuedPubKey(ctx, *packetAck.QueuedKey) + k.SetQueuedPubkey(ctx, *packetAck.QueuedKey) } } diff --git a/x/pep/keeper/encrypted_tx.go b/x/pep/keeper/encrypted_tx.go index 12037f5a..2cbfe6e7 100644 --- a/x/pep/keeper/encrypted_tx.go +++ b/x/pep/keeper/encrypted_tx.go @@ -24,9 +24,9 @@ func (k Keeper) AppendEncryptedTx( k.cdc.MustUnmarshal(b, &allTxsFromHeight) - encryptedTx.Index = uint64(len(allTxsFromHeight.GetEncryptedTx())) + encryptedTx.Index = uint64(len(allTxsFromHeight.GetEncryptedTxs())) - allTxsFromHeight.EncryptedTx = append(allTxsFromHeight.EncryptedTx, encryptedTx) + allTxsFromHeight.EncryptedTxs = append(allTxsFromHeight.EncryptedTxs, encryptedTx) parsedEncryptedTxArr := k.cdc.MustMarshal(&allTxsFromHeight) @@ -61,11 +61,11 @@ func (k Keeper) SetEncryptedTxProcessedHeight( ) { arr := k.GetEncryptedTxAllFromHeight(ctx, height) - if index >= uint64(len(arr.EncryptedTx)) { + if index >= uint64(len(arr.EncryptedTxs)) { return } - arr.EncryptedTx[index].ProcessedAtChainHeight = processedHeight + arr.EncryptedTxs[index].ProcessedAtChainHeight = processedHeight k.SetEncryptedTx(ctx, height, arr) } @@ -76,8 +76,8 @@ func (k Keeper) SetAllEncryptedTxExpired( ) { arr := k.GetEncryptedTxAllFromHeight(ctx, height) - for i := range arr.EncryptedTx { - arr.EncryptedTx[i].Expired = true + for i := range arr.EncryptedTxs { + arr.EncryptedTxs[i].Expired = true } k.SetEncryptedTx(ctx, height, arr) @@ -103,11 +103,11 @@ func (k Keeper) GetEncryptedTx( var arr types.EncryptedTxArray k.cdc.MustUnmarshal(b, &arr) - if uint64(len(arr.GetEncryptedTx())) <= index { + if uint64(len(arr.GetEncryptedTxs())) <= index { return val, false } - return arr.GetEncryptedTx()[index], true + return arr.GetEncryptedTxs()[index], true } // GetEncryptedTxAllFromHeight returns all encryptedTx from the height provided diff --git a/x/pep/keeper/encrypted_tx_test.go b/x/pep/keeper/encrypted_tx_test.go index afe901bb..d4fd2e6e 100644 --- a/x/pep/keeper/encrypted_tx_test.go +++ b/x/pep/keeper/encrypted_tx_test.go @@ -1,12 +1,13 @@ package keeper_test import ( - "github.com/Fairblock/fairyring/testutil/random" - "github.com/Fairblock/fairyring/testutil/sample" "math/rand" "strconv" "testing" + "github.com/Fairblock/fairyring/testutil/random" + "github.com/Fairblock/fairyring/testutil/sample" + keepertest "github.com/Fairblock/fairyring/testutil/keeper" "github.com/Fairblock/fairyring/testutil/nullify" "github.com/Fairblock/fairyring/x/pep/keeper" @@ -22,12 +23,12 @@ var _ = strconv.IntSize func createNEncryptedTx(keeper *keeper.Keeper, ctx sdk.Context, n int) (items []types.EncryptedTxArray) { items = make([]types.EncryptedTxArray, n) for i := range items { // i is block height - items[i].EncryptedTx = make([]types.EncryptedTx, n) + items[i].EncryptedTxs = make([]types.EncryptedTx, n) for j := 0; j < n; j++ { // j is encrypted tx index - items[i].EncryptedTx[j].Creator = sample.AccAddress() - items[i].EncryptedTx[j].Data = random.RandHex(32) - items[i].EncryptedTx[j].TargetHeight = uint64(i) - items[i].EncryptedTx[j].Index = uint64(j) + items[i].EncryptedTxs[j].Creator = sample.AccAddress() + items[i].EncryptedTxs[j].Data = random.RandHex(32) + items[i].EncryptedTxs[j].TargetHeight = uint64(i) + items[i].EncryptedTxs[j].Index = uint64(j) } keeper.SetEncryptedTx(ctx, uint64(i), items[i]) } @@ -63,14 +64,14 @@ func TestEncryptedTxAppend(t *testing.T) { arr := keeper.GetEncryptedTxAllFromHeight(ctx, appendTx1.TargetHeight) require.Equal(t, nullify.Fill(2), - nullify.Fill(len(arr.EncryptedTx))) + nullify.Fill(len(arr.EncryptedTxs))) } func TestEncryptedTxGet(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) items := createNEncryptedTx(&keeper, ctx, 10) for _, encryptedTxs := range items { - for _, item := range encryptedTxs.EncryptedTx { + for _, item := range encryptedTxs.EncryptedTxs { rst, found := keeper.GetEncryptedTx(ctx, item.TargetHeight, item.Index, @@ -96,14 +97,14 @@ func TestEncryptedTxRemoveAllFromHeight(t *testing.T) { ) require.Equal(t, nullify.Fill(0), - nullify.Fill(len(arr.EncryptedTx))) + nullify.Fill(len(arr.EncryptedTxs))) } } func TestEncryptedTxSetProcessedHeight(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) items := createNEncryptedTx(&keeper, ctx, 10) for i, encryptedTxs := range items { - for _, item := range encryptedTxs.EncryptedTx { + for _, item := range encryptedTxs.EncryptedTxs { keeper.SetEncryptedTxProcessedHeight(ctx, item.TargetHeight, item.Index, @@ -125,7 +126,7 @@ func TestEncryptedTxSetAllExpired(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) items := createNEncryptedTx(&keeper, ctx, 10) for _, encryptedTxs := range items { - for _, item := range encryptedTxs.EncryptedTx { + for _, item := range encryptedTxs.EncryptedTxs { keeper.SetAllEncryptedTxExpired(ctx, item.TargetHeight, ) diff --git a/x/pep/keeper/gen_enc_tx.go b/x/pep/keeper/gen_enc_tx.go index 3fb72bf4..1b821cbb 100644 --- a/x/pep/keeper/gen_enc_tx.go +++ b/x/pep/keeper/gen_enc_tx.go @@ -14,7 +14,7 @@ import ( func (k Keeper) GetEntry( ctx context.Context, reqID string, -) (val types.IdentityExecutionQueue, found bool) { +) (val types.IdentityExecutionEntry, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxKeyPrefix)) @@ -32,7 +32,7 @@ func (k Keeper) GetEntry( // SetEntry sets a queue entry by its identity func (k Keeper) SetEntry( ctx context.Context, - val types.IdentityExecutionQueue, + val types.IdentityExecutionEntry, ) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxKeyPrefix)) @@ -55,7 +55,7 @@ func (k Keeper) RemoveEntry( } // GetAllGenEncTxEntry returns all GenEncTxQueue entries -func (k Keeper) GetAllGenEncTxEntry(ctx context.Context) (list []types.IdentityExecutionQueue) { +func (k Keeper) GetAllGenEncTxEntry(ctx context.Context) (list []types.IdentityExecutionEntry) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) @@ -63,7 +63,7 @@ func (k Keeper) GetAllGenEncTxEntry(ctx context.Context) (list []types.IdentityE defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - var val types.IdentityExecutionQueue + var val types.IdentityExecutionEntry k.cdc.MustUnmarshal(iterator.Value(), &val) list = append(list, val) } @@ -79,11 +79,11 @@ func (k Keeper) AppendTxToEntry( var index uint64 = 0 var list types.GeneralEncryptedTxArray if val.TxList != nil { - index = uint64(len(val.TxList.EncryptedTx)) + index = uint64(len(val.TxList.EncryptedTxs)) list = *val.TxList } encTx.Index = index - list.EncryptedTx = append(list.EncryptedTx, encTx) + list.EncryptedTxs = append(list.EncryptedTxs, encTx) val.TxList = &list k.SetEntry(ctx, val) @@ -94,7 +94,7 @@ func (k Keeper) AppendTxToEntry( func (k Keeper) GetRequestQueueEntry( ctx context.Context, reqID string, -) (val commontypes.RequestAggrKeyshare, found bool) { +) (val commontypes.RequestDecryptionKey, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxReqQueueKeyPrefix)) @@ -112,7 +112,7 @@ func (k Keeper) GetRequestQueueEntry( // SetQueueEntry sets a queue entry by its identity func (k Keeper) SetReqQueueEntry( ctx context.Context, - val commontypes.RequestAggrKeyshare, + val commontypes.RequestDecryptionKey, ) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxReqQueueKeyPrefix)) @@ -137,7 +137,7 @@ func (k Keeper) RemoveReqQueueEntry( // GetAllGenEncTxQueueEntry returns all GenEncTxQueue entries func (k Keeper) GetAllGenEncTxReqQueueEntry( ctx context.Context, -) (list []commontypes.RequestAggrKeyshare) { +) (list []commontypes.RequestDecryptionKey) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxReqQueueKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) @@ -145,7 +145,7 @@ func (k Keeper) GetAllGenEncTxReqQueueEntry( defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - var val commontypes.RequestAggrKeyshare + var val commontypes.RequestDecryptionKey k.cdc.MustUnmarshal(iterator.Value(), &val) list = append(list, val) } @@ -156,7 +156,7 @@ func (k Keeper) GetAllGenEncTxReqQueueEntry( func (k Keeper) GetSignalQueueEntry( ctx context.Context, reqID string, -) (val commontypes.GetAggrKeyshare, found bool) { +) (val commontypes.GetDecryptionKey, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxSignalQueueKeyPrefix)) @@ -174,7 +174,7 @@ func (k Keeper) GetSignalQueueEntry( // SetQueueEntry sets a queue entry by its identity func (k Keeper) SetSignalQueueEntry( ctx context.Context, - val commontypes.GetAggrKeyshare, + val commontypes.GetDecryptionKey, ) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxSignalQueueKeyPrefix)) @@ -199,7 +199,7 @@ func (k Keeper) RemoveSignalQueueEntry( // GetAllGenEncTxQueueEntry returns all GenEncTxQueue entries func (k Keeper) GetAllGenEncTxSignalQueueEntry( ctx context.Context, -) (list []commontypes.GetAggrKeyshare) { +) (list []commontypes.GetDecryptionKey) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxSignalQueueKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) @@ -207,7 +207,7 @@ func (k Keeper) GetAllGenEncTxSignalQueueEntry( defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - var val commontypes.GetAggrKeyshare + var val commontypes.GetDecryptionKey k.cdc.MustUnmarshal(iterator.Value(), &val) list = append(list, val) } @@ -218,7 +218,7 @@ func (k Keeper) GetAllGenEncTxSignalQueueEntry( func (k Keeper) GetExecutionQueueEntry( ctx context.Context, reqID string, -) (val types.IdentityExecutionQueue, found bool) { +) (val types.IdentityExecutionEntry, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxExeQueueKeyPrefix)) @@ -236,7 +236,7 @@ func (k Keeper) GetExecutionQueueEntry( // SetQueueEntry sets a queue entry by its identity func (k Keeper) SetExecutionQueueEntry( ctx context.Context, - val types.IdentityExecutionQueue, + val types.IdentityExecutionEntry, ) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxExeQueueKeyPrefix)) @@ -261,7 +261,7 @@ func (k Keeper) RemoveExecutionQueueEntry( // GetAllGenEncTxQueueEntry returns all GenEncTxQueue entries func (k Keeper) GetAllGenEncTxExecutionQueueEntry( ctx context.Context, -) (list []types.IdentityExecutionQueue) { +) (list []types.IdentityExecutionEntry) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxExeQueueKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) @@ -269,7 +269,7 @@ func (k Keeper) GetAllGenEncTxExecutionQueueEntry( defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - var val types.IdentityExecutionQueue + var val types.IdentityExecutionEntry k.cdc.MustUnmarshal(iterator.Value(), &val) list = append(list, val) } @@ -280,7 +280,7 @@ func (k Keeper) GetAllGenEncTxExecutionQueueEntry( func (k Keeper) GetPrivateRequestQueueEntry( ctx context.Context, reqID string, -) (val commontypes.RequestEncryptedKeyshare, found bool) { +) (val commontypes.RequestPrivateDecryptionKey, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateRequestQueueKeyPrefix)) @@ -298,7 +298,7 @@ func (k Keeper) GetPrivateRequestQueueEntry( // SetPrivateReqQueueEntry sets a queue entry by its identity func (k Keeper) SetPrivateReqQueueEntry( ctx context.Context, - val commontypes.RequestEncryptedKeyshare, + val commontypes.RequestPrivateDecryptionKey, ) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateRequestQueueKeyPrefix)) @@ -322,7 +322,7 @@ func (k Keeper) RemovePrivateReqQueueEntry( // GetAllPrivateReqQueueEntry returns all PrivateQueue entries func (k Keeper) GetAllPrivateReqQueueEntry( - ctx context.Context) (list []commontypes.RequestEncryptedKeyshare) { + ctx context.Context) (list []commontypes.RequestPrivateDecryptionKey) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateRequestQueueKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) @@ -330,7 +330,7 @@ func (k Keeper) GetAllPrivateReqQueueEntry( defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - var val commontypes.RequestEncryptedKeyshare + var val commontypes.RequestPrivateDecryptionKey k.cdc.MustUnmarshal(iterator.Value(), &val) list = append(list, val) } @@ -341,7 +341,7 @@ func (k Keeper) GetAllPrivateReqQueueEntry( func (k Keeper) GetPrivateSignalQueueEntry( ctx context.Context, reqID string, -) (val commontypes.GetPrivateKeyshare, found bool) { +) (val commontypes.GetPrivateDecryptionKey, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateSignalQueueKeyPrefix)) @@ -359,7 +359,7 @@ func (k Keeper) GetPrivateSignalQueueEntry( // SetPrivateSignalQueueEntry sets a queue entry by its identity func (k Keeper) SetPrivateSignalQueueEntry( ctx context.Context, - val commontypes.GetPrivateKeyshare, + val commontypes.GetPrivateDecryptionKey, ) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateSignalQueueKeyPrefix)) @@ -384,7 +384,7 @@ func (k Keeper) RemovePrivateSignalQueueEntry( // GetAllPrivateSignalQueueEntry returns all GenEncTxQueue entries func (k Keeper) GetAllPrivateSignalQueueEntry( ctx context.Context, -) (list []commontypes.GetPrivateKeyshare) { +) (list []commontypes.GetPrivateDecryptionKey) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateSignalQueueKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) @@ -392,7 +392,7 @@ func (k Keeper) GetAllPrivateSignalQueueEntry( defer iterator.Close() for ; iterator.Valid(); iterator.Next() { - var val commontypes.GetPrivateKeyshare + var val commontypes.GetPrivateDecryptionKey k.cdc.MustUnmarshal(iterator.Value(), &val) list = append(list, val) } diff --git a/x/pep/keeper/gen_enc_tx_test.go b/x/pep/keeper/gen_enc_tx_test.go index 08166c95..4b29e516 100644 --- a/x/pep/keeper/gen_enc_tx_test.go +++ b/x/pep/keeper/gen_enc_tx_test.go @@ -23,26 +23,26 @@ func createNGeneralEncryptedTxEntry( keeper *keeper.Keeper, ctx sdk.Context, n int, -) (queue []types.IdentityExecutionQueue) { +) (queue []types.IdentityExecutionEntry) { items := make([]types.GeneralEncryptedTxArray, n) - queue = make([]types.IdentityExecutionQueue, n) + queue = make([]types.IdentityExecutionEntry, n) for i := range items { // i is block height - items[i].EncryptedTx = make([]types.GeneralEncryptedTx, n) + items[i].EncryptedTxs = make([]types.GeneralEncryptedTx, n) identity := random.RandHex(32) for j := 0; j < n; j++ { // j is encrypted tx index - items[i].EncryptedTx[j].Creator = sample.AccAddress() - items[i].EncryptedTx[j].Data = random.RandHex(32) - items[i].EncryptedTx[j].Identity = identity - items[i].EncryptedTx[j].Index = uint64(j) + items[i].EncryptedTxs[j].Creator = sample.AccAddress() + items[i].EncryptedTxs[j].Data = random.RandHex(32) + items[i].EncryptedTxs[j].Identity = identity + items[i].EncryptedTxs[j].Index = uint64(j) } - queue[i] = types.IdentityExecutionQueue{ - Creator: sample.AccAddress(), - RequestId: identity, - Identity: identity, - Pubkey: random.RandHex(32), - TxList: &items[i], - AggrKeyshare: random.RandHex(32), + queue[i] = types.IdentityExecutionEntry{ + Creator: sample.AccAddress(), + RequestId: identity, + Identity: identity, + Pubkey: random.RandHex(32), + TxList: &items[i], + DecryptionKey: random.RandHex(32), } keeper.SetEntry(ctx, queue[i]) } diff --git a/x/pep/keeper/msg_get_general_key_share.go b/x/pep/keeper/msg_request_general_decryption_key.go similarity index 71% rename from x/pep/keeper/msg_get_general_key_share.go rename to x/pep/keeper/msg_request_general_decryption_key.go index b56fc037..7233ab5a 100644 --- a/x/pep/keeper/msg_get_general_key_share.go +++ b/x/pep/keeper/msg_request_general_decryption_key.go @@ -15,35 +15,38 @@ import ( host "github.com/cosmos/ibc-go/v8/modules/core/24-host" ) -func (k msgServer) GetGeneralKeyshare(goCtx context.Context, msg *types.MsgGetGeneralKeyshare) (*types.MsgGetGeneralKeyshareResponse, error) { +func (k msgServer) RequestGeneralDecryptionKey( + goCtx context.Context, + msg *types.MsgRequestGeneralDecryptionKey, +) (*types.MsgRequestGeneralDecryptionKeyResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) entry, found := k.GetEntry(ctx, msg.ReqId) if !found { - return &types.MsgGetGeneralKeyshareResponse{}, errors.New("request not found") + return &types.MsgRequestGeneralDecryptionKeyResponse{}, errors.New("request not found") } if entry.Creator != msg.Creator { - return &types.MsgGetGeneralKeyshareResponse{}, errors.New("unauthorized request. only creator can make this request") + return &types.MsgRequestGeneralDecryptionKeyResponse{}, errors.New("unauthorized request. only creator can make this request") } params := k.GetParams(ctx) if params.IsSourceChain { - req := commontypes.GetAggrKeyshare{ - Id: &commontypes.GetAggrKeyshare_RequestId{RequestId: entry.RequestId}, + req := commontypes.GetDecryptionKey{ + Id: &commontypes.GetDecryptionKey_RequestId{RequestId: entry.RequestId}, Identity: entry.Identity, } k.SetSignalQueueEntry(ctx, req) - return &types.MsgGetGeneralKeyshareResponse{}, nil + return &types.MsgRequestGeneralDecryptionKeyResponse{}, nil } else { - packetData := kstypes.GetAggrKeysharePacketData{ + packetData := kstypes.GetDecryptionKeyPacketData{ Identity: msg.ReqId, } sPort := k.GetPort(ctx) timeoutTimestamp := ctx.BlockTime().Add(time.Second * 20).UnixNano() - _, _ = k.TransmitGetAggrKeysharePacket( + _, _ = k.TransmitGetDecryptionKeyPacket( ctx, packetData, sPort, @@ -60,13 +63,13 @@ func (k msgServer) GetGeneralKeyshare(goCtx context.Context, msg *types.MsgGetGe ) } - return &types.MsgGetGeneralKeyshareResponse{}, nil + return &types.MsgRequestGeneralDecryptionKeyResponse{}, nil } // TransmitGetAggrKeysharePacket transmits the packet over IBC with the specified source port and source channel -func (k Keeper) TransmitGetAggrKeysharePacket( +func (k Keeper) TransmitGetDecryptionKeyPacket( ctx sdk.Context, - packetData kstypes.GetAggrKeysharePacketData, + packetData kstypes.GetDecryptionKeyPacketData, sourcePort, sourceChannel string, timeoutHeight clienttypes.Height, @@ -84,7 +87,12 @@ func (k Keeper) TransmitGetAggrKeysharePacket( // OnAcknowledgementGetAggrKeysharePacket responds to the the success or failure of a packet // acknowledgement written on the receiving chain. -func (k Keeper) OnAcknowledgementGetAggrKeysharePacket(ctx sdk.Context, packet channeltypes.Packet, data kstypes.GetAggrKeysharePacketData, ack channeltypes.Acknowledgement) error { +func (k Keeper) OnAcknowledgementGetDecryptionKeyPacket( + ctx sdk.Context, + packet channeltypes.Packet, + data kstypes.GetDecryptionKeyPacketData, + ack channeltypes.Acknowledgement, +) error { switch dispatchedAck := ack.Response.(type) { case *channeltypes.Acknowledgement_Error: @@ -93,7 +101,7 @@ func (k Keeper) OnAcknowledgementGetAggrKeysharePacket(ctx sdk.Context, packet c return nil case *channeltypes.Acknowledgement_Result: // Decode the packet acknowledgment - var packetAck kstypes.GetAggrKeysharePacketAck + var packetAck kstypes.RequestDecryptionKeyPacketAck if err := types.ModuleCdc.UnmarshalJSON(dispatchedAck.Result, &packetAck); err != nil { // The counter-party module doesn't implement the correct acknowledgment format diff --git a/x/pep/keeper/msg_get_general_key_share_test.go b/x/pep/keeper/msg_request_general_decryption_key_test.go similarity index 79% rename from x/pep/keeper/msg_get_general_key_share_test.go rename to x/pep/keeper/msg_request_general_decryption_key_test.go index a73b69fb..ca945bfb 100644 --- a/x/pep/keeper/msg_get_general_key_share_test.go +++ b/x/pep/keeper/msg_request_general_decryption_key_test.go @@ -21,17 +21,17 @@ func TestGetGeneralKeyshare(t *testing.T) { creator := "fairy1m9l358xunhhwds0568za49mzhvuxx9uxdra8sq" // Test case when entry is not found - msg := &types.MsgGetGeneralKeyshare{ + msg := &types.MsgRequestGeneralDecryptionKey{ Creator: creator, ReqId: "invalid_req_id", } - _, err := srv.GetGeneralKeyshare(goCtx, msg) + _, err := srv.RequestGeneralDecryptionKey(goCtx, msg) require.Error(t, err) require.Equal(t, "request not found", err.Error()) // Test case when creator is unauthorized - entry := types.IdentityExecutionQueue{ + entry := types.IdentityExecutionEntry{ Creator: "authorized_creator", RequestId: "test_req_id", Identity: "test_identity", @@ -39,24 +39,24 @@ func TestGetGeneralKeyshare(t *testing.T) { k.SetEntry(ctx, entry) - msg = &types.MsgGetGeneralKeyshare{ + msg = &types.MsgRequestGeneralDecryptionKey{ Creator: "unauthorized_creator", ReqId: "test_req_id", } - _, err = srv.GetGeneralKeyshare(goCtx, msg) + _, err = srv.RequestGeneralDecryptionKey(goCtx, msg) require.Error(t, err) require.Equal(t, "unauthorized request. only creator can make this request", err.Error()) // Test case when IsSourceChain is true k.SetParams(ctx, types.Params{IsSourceChain: true}) - msg = &types.MsgGetGeneralKeyshare{ + msg = &types.MsgRequestGeneralDecryptionKey{ Creator: "authorized_creator", ReqId: "test_req_id", } - _, err = srv.GetGeneralKeyshare(goCtx, msg) + _, err = srv.RequestGeneralDecryptionKey(goCtx, msg) require.NoError(t, err) // Ensure the correct request is stored @@ -71,7 +71,7 @@ func TestOnAcknowledgementGetAggrKeysharePacket(t *testing.T) { k, ctx := keepertest.PepKeeper(t) packet := channeltypes.Packet{} - packetData := kstypes.GetAggrKeysharePacketData{ + packetData := kstypes.GetDecryptionKeyPacketData{ Identity: "test_identity", } ack := channeltypes.Acknowledgement{ @@ -81,7 +81,7 @@ func TestOnAcknowledgementGetAggrKeysharePacket(t *testing.T) { } // Test success case for OnAcknowledgementGetAggrKeysharePacket - err := k.OnAcknowledgementGetAggrKeysharePacket(ctx, packet, packetData, ack) + err := k.OnAcknowledgementGetDecryptionKeyPacket(ctx, packet, packetData, ack) require.NoError(t, err) // Test error case for unmarshalling acknowledgment @@ -91,7 +91,7 @@ func TestOnAcknowledgementGetAggrKeysharePacket(t *testing.T) { }, } - err = k.OnAcknowledgementGetAggrKeysharePacket(ctx, packet, packetData, invalidAck) + err = k.OnAcknowledgementGetDecryptionKeyPacket(ctx, packet, packetData, invalidAck) require.Error(t, err) require.Equal(t, "cannot unmarshal acknowledgment", err.Error()) @@ -102,6 +102,6 @@ func TestOnAcknowledgementGetAggrKeysharePacket(t *testing.T) { }, } - err = k.OnAcknowledgementGetAggrKeysharePacket(ctx, packet, packetData, errorAck) + err = k.OnAcknowledgementGetDecryptionKeyPacket(ctx, packet, packetData, errorAck) require.NoError(t, err) } diff --git a/x/pep/keeper/msg_request_general_key_share.go b/x/pep/keeper/msg_request_general_identity.go similarity index 78% rename from x/pep/keeper/msg_request_general_key_share.go rename to x/pep/keeper/msg_request_general_identity.go index ada27abf..9d88402c 100644 --- a/x/pep/keeper/msg_request_general_key_share.go +++ b/x/pep/keeper/msg_request_general_identity.go @@ -16,7 +16,10 @@ import ( host "github.com/cosmos/ibc-go/v8/modules/core/24-host" ) -func (k msgServer) RequestGeneralKeyshare(goCtx context.Context, msg *types.MsgRequestGeneralKeyshare) (*types.MsgRequestGeneralKeyshareResponse, error) { +func (k msgServer) RequestGeneralIdentity( + goCtx context.Context, + msg *types.MsgRequestGeneralIdentity, +) (*types.MsgRequestGeneralIdentityResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) reqID, found := k.GetRequestId(ctx, msg.Creator, msg.ReqId) @@ -27,7 +30,7 @@ func (k msgServer) RequestGeneralKeyshare(goCtx context.Context, msg *types.MsgR requestIDStr := types.GetReqIDStr(msg.Creator, msg.ReqId) if msg.EstimatedDelay == nil { - return &types.MsgRequestGeneralKeyshareResponse{}, errors.New("could not parse estimated delay") + return &types.MsgRequestGeneralIdentityResponse{}, errors.New("could not parse estimated delay") } k.SetRequestId(ctx, types.RequestId{ @@ -38,21 +41,21 @@ func (k msgServer) RequestGeneralKeyshare(goCtx context.Context, msg *types.MsgR params := k.GetParams(ctx) if params.IsSourceChain { - entry := commontypes.RequestAggrKeyshare{ + entry := commontypes.RequestDecryptionKey{ Creator: msg.Creator, - Id: &commontypes.RequestAggrKeyshare_RequestId{RequestId: requestIDStr}, + Id: &commontypes.RequestDecryptionKey_RequestId{RequestId: requestIDStr}, EstimatedDelay: msg.EstimatedDelay, } k.SetReqQueueEntry(ctx, entry) - return &types.MsgRequestGeneralKeyshareResponse{ + return &types.MsgRequestGeneralIdentityResponse{ ReqId: requestIDStr, }, nil } else { - packetData := kstypes.RequestAggrKeysharePacketData{ + packetData := kstypes.RequestDecryptionKeyPacketData{ Requester: msg.Creator, - Id: &kstypes.RequestAggrKeysharePacketData_RequestId{ + Id: &kstypes.RequestDecryptionKeyPacketData_RequestId{ RequestId: requestIDStr, }, EstimatedDelay: msg.EstimatedDelay, @@ -60,7 +63,7 @@ func (k msgServer) RequestGeneralKeyshare(goCtx context.Context, msg *types.MsgR sPort := k.GetPort(ctx) timeoutTimestamp := ctx.BlockTime().Add(time.Second * 20).UnixNano() - _, _ = k.TransmitRequestAggrKeysharePacket( + _, _ = k.TransmitRequestDecryptionKeyPacket( ctx, packetData, sPort, @@ -77,16 +80,16 @@ func (k msgServer) RequestGeneralKeyshare(goCtx context.Context, msg *types.MsgR ), ) - return &types.MsgRequestGeneralKeyshareResponse{ + return &types.MsgRequestGeneralIdentityResponse{ ReqId: requestIDStr, }, nil } } // TransmitRequestAggrKeysharePacket transmits the packet over IBC with the specified source port and source channel -func (k Keeper) TransmitRequestAggrKeysharePacket( +func (k Keeper) TransmitRequestDecryptionKeyPacket( ctx sdk.Context, - packetData kstypes.RequestAggrKeysharePacketData, + packetData kstypes.RequestDecryptionKeyPacketData, sourcePort, sourceChannel string, timeoutHeight clienttypes.Height, @@ -104,7 +107,12 @@ func (k Keeper) TransmitRequestAggrKeysharePacket( // OnAcknowledgementRequestAggrKeysharePacket responds to the the success or failure of a packet // acknowledgement written on the receiving chain. -func (k Keeper) OnAcknowledgementRequestAggrKeysharePacket(ctx sdk.Context, packet channeltypes.Packet, data kstypes.RequestAggrKeysharePacketData, ack channeltypes.Acknowledgement) error { +func (k Keeper) OnAcknowledgementRequestDecryptionKeyPacket( + ctx sdk.Context, + packet channeltypes.Packet, + data kstypes.RequestDecryptionKeyPacketData, + ack channeltypes.Acknowledgement, +) error { switch dispatchedAck := ack.Response.(type) { case *channeltypes.Acknowledgement_Error: @@ -113,14 +121,14 @@ func (k Keeper) OnAcknowledgementRequestAggrKeysharePacket(ctx sdk.Context, pack return nil case *channeltypes.Acknowledgement_Result: // Decode the packet acknowledgment - var packetAck kstypes.RequestAggrKeysharePacketAck + var packetAck kstypes.RequestDecryptionKeyPacketAck if err := kstypes.ModuleCdc.UnmarshalJSON(dispatchedAck.Result, &packetAck); err != nil { // The counter-party module doesn't implement the correct acknowledgment format return errors.New("cannot unmarshal acknowledgment") } - entry := types.IdentityExecutionQueue{ + entry := types.IdentityExecutionEntry{ Creator: data.Requester, RequestId: data.GetRequestId(), Identity: packetAck.GetIdentity(), diff --git a/x/pep/keeper/msg_request_general_key_share_test.go b/x/pep/keeper/msg_request_general_identity_test.go similarity index 82% rename from x/pep/keeper/msg_request_general_key_share_test.go rename to x/pep/keeper/msg_request_general_identity_test.go index 086969a5..277c4d17 100644 --- a/x/pep/keeper/msg_request_general_key_share_test.go +++ b/x/pep/keeper/msg_request_general_identity_test.go @@ -29,13 +29,13 @@ func TestRequestGeneralKeyshare(t *testing.T) { } k.SetRequestId(ctx, reqID) - msg := &types.MsgRequestGeneralKeyshare{ + msg := &types.MsgRequestGeneralIdentity{ Creator: creator, ReqId: "test_req_id_1", EstimatedDelay: &duration, } - _, err := srv.RequestGeneralKeyshare(goCtx, msg) + _, err := srv.RequestGeneralIdentity(goCtx, msg) require.Error(t, err) require.Equal(t, types.ErrReqIDAlreadyExists, err) @@ -43,7 +43,7 @@ func TestRequestGeneralKeyshare(t *testing.T) { msg.EstimatedDelay = nil msg.ReqId = "test_req_id_2" - _, err = srv.RequestGeneralKeyshare(goCtx, msg) + _, err = srv.RequestGeneralIdentity(goCtx, msg) require.Error(t, err) require.Equal(t, errors.New("could not parse estimated delay"), err) @@ -53,7 +53,7 @@ func TestRequestGeneralKeyshare(t *testing.T) { msg.EstimatedDelay = &duration msg.ReqId = "test_req_id_3" - resp, err := srv.RequestGeneralKeyshare(goCtx, msg) + resp, err := srv.RequestGeneralIdentity(goCtx, msg) require.NoError(t, err) require.NotNil(t, resp) require.Equal(t, "fairy1m9l358xunhhwds0568za49mzhvuxx9uxdra8sq/test_req_id_3", resp.ReqId) @@ -64,9 +64,9 @@ func TestOnAcknowledgementRequestAggrKeysharePacket(t *testing.T) { k, ctx := keepertest.PepKeeper(t) packet := channeltypes.Packet{} - packetData := kstypes.RequestAggrKeysharePacketData{ + packetData := kstypes.RequestDecryptionKeyPacketData{ Requester: "test_creator", - Id: &kstypes.RequestAggrKeysharePacketData_RequestId{ + Id: &kstypes.RequestDecryptionKeyPacketData_RequestId{ RequestId: "test_request_id", }, } @@ -77,7 +77,7 @@ func TestOnAcknowledgementRequestAggrKeysharePacket(t *testing.T) { } // Test success case for OnAcknowledgementRequestAggrKeysharePacket - err := k.OnAcknowledgementRequestAggrKeysharePacket(ctx, packet, packetData, ack) + err := k.OnAcknowledgementRequestDecryptionKeyPacket(ctx, packet, packetData, ack) require.NoError(t, err) // Ensure entry is created @@ -87,7 +87,7 @@ func TestOnAcknowledgementRequestAggrKeysharePacket(t *testing.T) { require.Equal(t, "test_pubkey", entry.Pubkey) // Test when entry already exists - err = k.OnAcknowledgementRequestAggrKeysharePacket(ctx, packet, packetData, ack) + err = k.OnAcknowledgementRequestDecryptionKeyPacket(ctx, packet, packetData, ack) require.Error(t, err) require.Equal(t, "entry already exists", err.Error()) @@ -98,7 +98,7 @@ func TestOnAcknowledgementRequestAggrKeysharePacket(t *testing.T) { }, } - err = k.OnAcknowledgementRequestAggrKeysharePacket(ctx, packet, packetData, invalidAck) + err = k.OnAcknowledgementRequestDecryptionKeyPacket(ctx, packet, packetData, invalidAck) require.Error(t, err) require.Equal(t, "cannot unmarshal acknowledgment", err.Error()) @@ -109,6 +109,6 @@ func TestOnAcknowledgementRequestAggrKeysharePacket(t *testing.T) { }, } - err = k.OnAcknowledgementRequestAggrKeysharePacket(ctx, packet, packetData, errorAck) + err = k.OnAcknowledgementRequestDecryptionKeyPacket(ctx, packet, packetData, errorAck) require.NoError(t, err) } diff --git a/x/pep/keeper/msg_get_private_keyshares.go b/x/pep/keeper/msg_request_private_decryption_key.go similarity index 74% rename from x/pep/keeper/msg_get_private_keyshares.go rename to x/pep/keeper/msg_request_private_decryption_key.go index 8544164a..00b05daa 100644 --- a/x/pep/keeper/msg_get_private_keyshares.go +++ b/x/pep/keeper/msg_request_private_decryption_key.go @@ -17,19 +17,22 @@ import ( host "github.com/cosmos/ibc-go/v8/modules/core/24-host" ) -func (k msgServer) GetPrivateKeyshares(goCtx context.Context, msg *types.MsgGetPrivateKeyshares) (*types.MsgGetPrivateKeysharesResponse, error) { +func (k msgServer) RequestPrivateDecryptionKey( + goCtx context.Context, + msg *types.MsgRequestPrivateDecryptionKey, +) (*types.MsgRequestPrivateDecryptionKeyResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) requester := sdk.MustAccAddressFromBech32(msg.Creator) entry, found := k.GetPrivateRequest(ctx, msg.ReqId) if !found { - pubkey, found := k.GetActivePubKey(ctx) + pubkey, found := k.GetActivePubkey(ctx) if !found { - return &types.MsgGetPrivateKeysharesResponse{}, errors.New("entry and pubkey not found") + return &types.MsgRequestPrivateDecryptionKeyResponse{}, errors.New("entry and pubkey not found") } entry.Creator = "" - entry.EncryptedKeyshares = make([]*commontypes.EncryptedKeyshare, 0) + entry.PrivateDecryptionKeys = make([]*commontypes.PrivateDecryptionKey, 0) entry.Pubkey = pubkey.PublicKey entry.ReqId = msg.ReqId @@ -38,11 +41,11 @@ func (k msgServer) GetPrivateKeyshares(goCtx context.Context, msg *types.MsgGetP params := k.GetParams(ctx) - if params.PrivateKeysharePrice.Amount.GT(math.ZeroInt()) { + if params.PrivateDecryptionKeyPrice.Amount.GT(math.ZeroInt()) { err := k.bankKeeper.SendCoinsFromAccountToModule(ctx, requester, types.ModuleName, - sdk.NewCoins(*params.PrivateKeysharePrice), + sdk.NewCoins(*params.PrivateDecryptionKeyPrice), ) if err != nil { k.Logger().Info(fmt.Sprintf("Error on sending coins: %v", err.Error())) @@ -51,7 +54,7 @@ func (k msgServer) GetPrivateKeyshares(goCtx context.Context, msg *types.MsgGetP } if params.IsSourceChain { - var qentry = commontypes.GetPrivateKeyshare{ + var qentry = commontypes.GetPrivateDecryptionKey{ RequestId: msg.ReqId, Identity: msg.ReqId, Requester: msg.Creator, @@ -59,9 +62,9 @@ func (k msgServer) GetPrivateKeyshares(goCtx context.Context, msg *types.MsgGetP } k.SetPrivateSignalQueueEntry(ctx, qentry) - return &types.MsgGetPrivateKeysharesResponse{}, nil + return &types.MsgRequestPrivateDecryptionKeyResponse{}, nil } else { - packetData := kstypes.GetPrivateKeysharePacketData{ + packetData := kstypes.GetPrivateDecryptionKeyPacketData{ Identity: msg.ReqId, Requester: msg.Creator, SecpPubkey: msg.SecpPubkey, @@ -69,7 +72,7 @@ func (k msgServer) GetPrivateKeyshares(goCtx context.Context, msg *types.MsgGetP sPort := k.GetPort(ctx) timeoutTimestamp := ctx.BlockTime().Add(time.Second * 20).UnixNano() - _, _ = k.TransmitGetPrivateKeysharePacket( + _, _ = k.TransmitGetPrivateDecryptionKeyPacket( ctx, packetData, sPort, @@ -88,13 +91,13 @@ func (k msgServer) GetPrivateKeyshares(goCtx context.Context, msg *types.MsgGetP ) } - return &types.MsgGetPrivateKeysharesResponse{}, nil + return &types.MsgRequestPrivateDecryptionKeyResponse{}, nil } // TransmitGetPrivateKeysharePacket transmits the packet over IBC with the specified source port and source channel -func (k Keeper) TransmitGetPrivateKeysharePacket( +func (k Keeper) TransmitGetPrivateDecryptionKeyPacket( ctx sdk.Context, - packetData kstypes.GetPrivateKeysharePacketData, + packetData kstypes.GetPrivateDecryptionKeyPacketData, sourcePort, sourceChannel string, timeoutHeight clienttypes.Height, @@ -112,7 +115,12 @@ func (k Keeper) TransmitGetPrivateKeysharePacket( // OnAcknowledgementGetPrivateKeysharePacket responds to the the success or failure of a packet // acknowledgement written on the receiving chain. -func (k Keeper) OnAcknowledgementGetPrivateKeysharePacket(ctx sdk.Context, packet channeltypes.Packet, data kstypes.GetPrivateKeysharePacketData, ack channeltypes.Acknowledgement) error { +func (k Keeper) OnAcknowledgementGetPrivateDecryptionKeyPacket( + ctx sdk.Context, + packet channeltypes.Packet, + data kstypes.GetPrivateDecryptionKeyPacketData, + ack channeltypes.Acknowledgement, +) error { switch dispatchedAck := ack.Response.(type) { case *channeltypes.Acknowledgement_Error: @@ -121,7 +129,7 @@ func (k Keeper) OnAcknowledgementGetPrivateKeysharePacket(ctx sdk.Context, packe return nil case *channeltypes.Acknowledgement_Result: // Decode the packet acknowledgment - var packetAck kstypes.GetPrivateKeysharePacketAck + var packetAck kstypes.GetPrivateDecryptionKeyPacketAck if err := types.ModuleCdc.UnmarshalJSON(dispatchedAck.Result, &packetAck); err != nil { // The counter-party module doesn't implement the correct acknowledgment format diff --git a/x/pep/keeper/msg_get_private_keyshares_test.go b/x/pep/keeper/msg_request_private_decryption_key_test.go similarity index 80% rename from x/pep/keeper/msg_get_private_keyshares_test.go rename to x/pep/keeper/msg_request_private_decryption_key_test.go index 5eeed1fc..4e713d84 100644 --- a/x/pep/keeper/msg_get_private_keyshares_test.go +++ b/x/pep/keeper/msg_request_private_decryption_key_test.go @@ -25,28 +25,28 @@ func TestGetPrivateKeyshares(t *testing.T) { price := sdk.NewInt64Coin("ufairy", 0) params := types.Params{ - PrivateKeysharePrice: &price, - IsSourceChain: true, + PrivateDecryptionKeyPrice: &price, + IsSourceChain: true, } k.SetParams(ctx, params) // Test case when entry and pubkey are not found - msg := &types.MsgGetPrivateKeyshares{ + msg := &types.MsgRequestPrivateDecryptionKey{ Creator: creator, ReqId: "test_req_id_1", SecpPubkey: "test_pubkey", } - _, err := srv.GetPrivateKeyshares(goCtx, msg) + _, err := srv.RequestPrivateDecryptionKey(goCtx, msg) require.Error(t, err) require.Equal(t, "entry and pubkey not found", err.Error()) // Set a mock active pubkey and test the entry creation - k.SetActivePubKey(ctx, commontypes.ActivePublicKey{ + k.SetActivePubkey(ctx, commontypes.ActivePublicKey{ PublicKey: "mock_pubkey", }) - _, err = srv.GetPrivateKeyshares(goCtx, msg) + _, err = srv.RequestPrivateDecryptionKey(goCtx, msg) require.NoError(t, err) // Ensure the private request is stored @@ -56,10 +56,10 @@ func TestGetPrivateKeyshares(t *testing.T) { // Mock the bank keeper for the SendCoinsFromAccountToModule call mockBankKeeper := new(MockBankKeeper) - mockBankKeeper.On("SendCoinsFromAccountToModule", ctx, requester, types.ModuleName, sdk.NewCoins(*params.PrivateKeysharePrice)). + mockBankKeeper.On("SendCoinsFromAccountToModule", ctx, requester, types.ModuleName, sdk.NewCoins(*params.PrivateDecryptionKeyPrice)). Return(nil).Once() - _, err = srv.GetPrivateKeyshares(goCtx, msg) + _, err = srv.RequestPrivateDecryptionKey(goCtx, msg) require.NoError(t, err) } @@ -68,7 +68,7 @@ func TestOnAcknowledgementGetPrivateKeysharePacket(t *testing.T) { k, ctx := keepertest.PepKeeper(t) packet := channeltypes.Packet{} - packetData := kstypes.GetPrivateKeysharePacketData{ + packetData := kstypes.GetPrivateDecryptionKeyPacketData{ Identity: "test_identity", Requester: "test_creator", SecpPubkey: "test_pubkey", @@ -80,7 +80,7 @@ func TestOnAcknowledgementGetPrivateKeysharePacket(t *testing.T) { } // Test success case for OnAcknowledgementGetPrivateKeysharePacket - err := k.OnAcknowledgementGetPrivateKeysharePacket(ctx, packet, packetData, ack) + err := k.OnAcknowledgementGetPrivateDecryptionKeyPacket(ctx, packet, packetData, ack) require.NoError(t, err) // Test error case for unmarshalling acknowledgment @@ -90,7 +90,7 @@ func TestOnAcknowledgementGetPrivateKeysharePacket(t *testing.T) { }, } - err = k.OnAcknowledgementGetPrivateKeysharePacket(ctx, packet, packetData, invalidAck) + err = k.OnAcknowledgementGetPrivateDecryptionKeyPacket(ctx, packet, packetData, invalidAck) require.Error(t, err) require.Equal(t, "cannot unmarshal acknowledgment", err.Error()) @@ -101,7 +101,7 @@ func TestOnAcknowledgementGetPrivateKeysharePacket(t *testing.T) { }, } - err = k.OnAcknowledgementGetPrivateKeysharePacket(ctx, packet, packetData, errorAck) + err = k.OnAcknowledgementGetPrivateDecryptionKeyPacket(ctx, packet, packetData, errorAck) require.NoError(t, err) } diff --git a/x/pep/keeper/msg_request_private_identity.go b/x/pep/keeper/msg_request_private_identity.go index e671f61e..320cffbc 100644 --- a/x/pep/keeper/msg_request_private_identity.go +++ b/x/pep/keeper/msg_request_private_identity.go @@ -30,10 +30,10 @@ func (k msgServer) RequestPrivateIdentity(goCtx context.Context, msg *types.MsgR requestIDStr := types.GetReqIDStr(msg.Creator, msg.ReqId) req := types.PrivateRequest{ - Creator: msg.Creator, - ReqId: requestIDStr, - Pubkey: "", - EncryptedKeyshares: make([]*commontypes.EncryptedKeyshare, 0), + Creator: msg.Creator, + ReqId: requestIDStr, + Pubkey: "", + PrivateDecryptionKeys: make([]*commontypes.PrivateDecryptionKey, 0), } k.SetPrivateRequest(ctx, req) @@ -41,7 +41,7 @@ func (k msgServer) RequestPrivateIdentity(goCtx context.Context, msg *types.MsgR params := k.GetParams(ctx) if params.IsSourceChain { - entry := commontypes.RequestEncryptedKeyshare{ + entry := commontypes.RequestPrivateDecryptionKey{ Creator: msg.Creator, RequestId: msg.ReqId, } @@ -52,14 +52,14 @@ func (k msgServer) RequestPrivateIdentity(goCtx context.Context, msg *types.MsgR ReqId: requestIDStr, }, nil } else { - packetData := kstypes.RequestPrivateKeysharePacketData{ + packetData := kstypes.RequestPrivateDecryptionKeyPacketData{ Requester: msg.Creator, RequestId: msg.ReqId, } sPort := k.GetPort(ctx) timeoutTimestamp := ctx.BlockTime().Add(time.Second * 20).UnixNano() - _, _ = k.TransmitPrivateKeysharePacket( + _, _ = k.TransmitRequestPrivateDecryptionKey( ctx, packetData, sPort, @@ -84,10 +84,11 @@ func (k msgServer) RequestPrivateIdentity(goCtx context.Context, msg *types.MsgR // return &types.MsgRequestPrivateIdentityResponse{}, nil } -// TransmitPrivateKeysharePacket transmits the packet over IBC with the specified source port and source channel -func (k Keeper) TransmitPrivateKeysharePacket( +// TransmitRequestPrivateDecryptionKey transmits the packet over IBC +// with the specified source port and source channel +func (k Keeper) TransmitRequestPrivateDecryptionKey( ctx sdk.Context, - packetData kstypes.RequestPrivateKeysharePacketData, + packetData kstypes.RequestPrivateDecryptionKeyPacketData, sourcePort, sourceChannel string, timeoutHeight clienttypes.Height, @@ -103,12 +104,12 @@ func (k Keeper) TransmitPrivateKeysharePacket( return k.ibcKeeperFn().ChannelKeeper.SendPacket(ctx, channelCap, sourcePort, sourceChannel, timeoutHeight, timeoutTimestamp, packetBytes) } -// OnAcknowledgementRequestPrivateKeysharePacket responds to the the success or failure of a packet -// acknowledgement written on the receiving chain. -func (k Keeper) OnAcknowledgementRequestPrivateKeysharePacket( +// OnAcknowledgementRequestPrivateDecryptionKeyPacket responds to +// the success or failure of a packet acknowledgement written on the receiving chain. +func (k Keeper) OnAcknowledgementRequestPrivateDecryptionKeyPacket( ctx sdk.Context, packet channeltypes.Packet, - data kstypes.RequestPrivateKeysharePacketData, + data kstypes.RequestPrivateDecryptionKeyPacketData, ack channeltypes.Acknowledgement, ) error { switch dispatchedAck := ack.Response.(type) { @@ -119,7 +120,7 @@ func (k Keeper) OnAcknowledgementRequestPrivateKeysharePacket( return nil case *channeltypes.Acknowledgement_Result: // Decode the packet acknowledgment - var packetAck kstypes.RequestPrivateKeysharePacketAck + var packetAck kstypes.RequestPrivateDecryptionKeyPacketAck if err := kstypes.ModuleCdc.UnmarshalJSON(dispatchedAck.Result, &packetAck); err != nil { // The counter-party module doesn't implement the correct acknowledgment format diff --git a/x/pep/keeper/msg_request_private_identity_test.go b/x/pep/keeper/msg_request_private_identity_test.go index bd924b7d..04e00270 100644 --- a/x/pep/keeper/msg_request_private_identity_test.go +++ b/x/pep/keeper/msg_request_private_identity_test.go @@ -63,7 +63,7 @@ func TestOnAcknowledgementRequestPrivateKeysharePacket(t *testing.T) { creator := "fairy1m9l358xunhhwds0568za49mzhvuxx9uxdra8sq" packet := channeltypes.Packet{} - packetData := kstypes.RequestPrivateKeysharePacketData{ + packetData := kstypes.RequestPrivateDecryptionKeyPacketData{ Requester: creator, RequestId: "test_request_id_1", } @@ -75,16 +75,16 @@ func TestOnAcknowledgementRequestPrivateKeysharePacket(t *testing.T) { // Test case when ReqId already exists privReq := types.PrivateRequest{ - Creator: creator, - ReqId: "test_request_id_1", - Pubkey: "", - EncryptedKeyshares: make([]*commontypes.EncryptedKeyshare, 0), + Creator: creator, + ReqId: "test_request_id_1", + Pubkey: "", + PrivateDecryptionKeys: make([]*commontypes.PrivateDecryptionKey, 0), } k.SetPrivateRequest(ctx, privReq) // Test success case for OnAcknowledgementRequestPrivateKeysharePacket - err := k.OnAcknowledgementRequestPrivateKeysharePacket(ctx, packet, packetData, ack) + err := k.OnAcknowledgementRequestPrivateDecryptionKeyPacket(ctx, packet, packetData, ack) require.NoError(t, err) // Ensure the private request is updated @@ -93,12 +93,12 @@ func TestOnAcknowledgementRequestPrivateKeysharePacket(t *testing.T) { require.Equal(t, "test_pubkey", entry.Pubkey) // Test case when entry does not exist - invalidPacketData := kstypes.RequestPrivateKeysharePacketData{ + invalidPacketData := kstypes.RequestPrivateDecryptionKeyPacketData{ Requester: creator, RequestId: "invalid_request_id", } - err = k.OnAcknowledgementRequestPrivateKeysharePacket(ctx, packet, invalidPacketData, ack) + err = k.OnAcknowledgementRequestPrivateDecryptionKeyPacket(ctx, packet, invalidPacketData, ack) require.Error(t, err) require.Equal(t, "entry does not exists", err.Error()) @@ -109,7 +109,7 @@ func TestOnAcknowledgementRequestPrivateKeysharePacket(t *testing.T) { }, } - err = k.OnAcknowledgementRequestPrivateKeysharePacket(ctx, packet, packetData, invalidAck) + err = k.OnAcknowledgementRequestPrivateDecryptionKeyPacket(ctx, packet, packetData, invalidAck) require.Error(t, err) require.Equal(t, "cannot unmarshal acknowledgment", err.Error()) @@ -120,6 +120,6 @@ func TestOnAcknowledgementRequestPrivateKeysharePacket(t *testing.T) { }, } - err = k.OnAcknowledgementRequestPrivateKeysharePacket(ctx, packet, packetData, errorAck) + err = k.OnAcknowledgementRequestPrivateDecryptionKeyPacket(ctx, packet, packetData, errorAck) require.NoError(t, err) } diff --git a/x/pep/keeper/msg_create_aggregated_key_share.go b/x/pep/keeper/msg_submit_decryption_key.go similarity index 90% rename from x/pep/keeper/msg_create_aggregated_key_share.go rename to x/pep/keeper/msg_submit_decryption_key.go index cb5becb9..2455eee2 100644 --- a/x/pep/keeper/msg_create_aggregated_key_share.go +++ b/x/pep/keeper/msg_submit_decryption_key.go @@ -15,7 +15,10 @@ import ( bls "github.com/drand/kyber-bls12381" ) -func (k msgServer) CreateAggregatedKeyShare(goCtx context.Context, msg *types.MsgCreateAggregatedKeyShare) (*types.MsgCreateAggregatedKeyShareResponse, error) { +func (k msgServer) SubmitDecryptionKey( + goCtx context.Context, + msg *types.MsgSubmitDecryptionKey, +) (*types.MsgSubmitDecryptionKeyResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) params := k.GetParams(ctx) @@ -42,7 +45,7 @@ func (k msgServer) CreateAggregatedKeyShare(goCtx context.Context, msg *types.Ms dummyDataBuffer.Write([]byte(dummyData)) var decryptedDataBytes bytes.Buffer - ak, found := k.GetActivePubKey(ctx) + ak, found := k.GetActivePubkey(ctx) if !found { k.Logger().Error("Active key not found") return nil, errors.New("active key not found") @@ -98,7 +101,7 @@ func (k msgServer) CreateAggregatedKeyShare(goCtx context.Context, msg *types.Ms return nil, err } - k.SetAggregatedKeyShare(ctx, types.AggregatedKeyShare{ + k.SetDecryptionKey(ctx, types.DecryptionKey{ Height: msg.Height, Data: msg.Data, Creator: msg.Creator, @@ -115,5 +118,5 @@ func (k msgServer) CreateAggregatedKeyShare(goCtx context.Context, msg *types.Ms k.Logger().Info(fmt.Sprintf("[ProcessUnconfirmedTxs] Aggregated Key Added, height: %d", msg.Height)) - return &types.MsgCreateAggregatedKeyShareResponse{}, nil + return &types.MsgSubmitDecryptionKeyResponse{}, nil } diff --git a/x/pep/keeper/msg_create_aggregated_key_share_test.go b/x/pep/keeper/msg_submit_decryption_key_test.go similarity index 85% rename from x/pep/keeper/msg_create_aggregated_key_share_test.go rename to x/pep/keeper/msg_submit_decryption_key_test.go index 1aa1e928..ff7bb261 100644 --- a/x/pep/keeper/msg_create_aggregated_key_share_test.go +++ b/x/pep/keeper/msg_submit_decryption_key_test.go @@ -1,14 +1,15 @@ package keeper_test import ( + "math/rand" + "strconv" + "testing" + "github.com/Fairblock/fairyring/testutil/nullify" "github.com/Fairblock/fairyring/testutil/random" "github.com/Fairblock/fairyring/testutil/sample" "github.com/Fairblock/fairyring/testutil/shares" types2 "github.com/Fairblock/fairyring/x/common/types" - "math/rand" - "strconv" - "testing" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" @@ -45,14 +46,14 @@ func TestAggregatedKeyShareMsgServerCreate(t *testing.T) { for _, tc := range []struct { desc string - request *types.MsgCreateAggregatedKeyShare - response *types.MsgCreateAggregatedKeyShareResponse + request *types.MsgSubmitDecryptionKey + response *types.MsgSubmitDecryptionKeyResponse err error errMsg string }{ { desc: "IsSourceChainTriesToCreateAggrKey", - request: &types.MsgCreateAggregatedKeyShare{ + request: &types.MsgSubmitDecryptionKey{ Creator: sample.AccAddress(), Height: rand.Uint64(), Data: random.RandHex(192), @@ -61,7 +62,7 @@ func TestAggregatedKeyShareMsgServerCreate(t *testing.T) { }, { desc: "SubmittedFromNotTrustedAddr", - request: &types.MsgCreateAggregatedKeyShare{ + request: &types.MsgSubmitDecryptionKey{ Creator: sample.AccAddress(), Height: rand.Uint64(), Data: random.RandHex(192), @@ -70,7 +71,7 @@ func TestAggregatedKeyShareMsgServerCreate(t *testing.T) { }, { desc: "ActiveKeyNotFound", - request: &types.MsgCreateAggregatedKeyShare{ + request: &types.MsgSubmitDecryptionKey{ Creator: trustedAddr, Height: rand.Uint64(), Data: random.RandHex(192), @@ -79,7 +80,7 @@ func TestAggregatedKeyShareMsgServerCreate(t *testing.T) { }, { desc: "InvalidAggregatedKeyShare", - request: &types.MsgCreateAggregatedKeyShare{ + request: &types.MsgSubmitDecryptionKey{ Creator: trustedAddr, Height: rand.Uint64(), Data: random.RandHex(12), @@ -88,7 +89,7 @@ func TestAggregatedKeyShareMsgServerCreate(t *testing.T) { }, { desc: "DecryptError", - request: &types.MsgCreateAggregatedKeyShare{ + request: &types.MsgSubmitDecryptionKey{ Creator: trustedAddr, Height: 999, Data: incorrectDerived, @@ -97,16 +98,16 @@ func TestAggregatedKeyShareMsgServerCreate(t *testing.T) { }, { desc: "ValidAggregatedKeyShare", - request: &types.MsgCreateAggregatedKeyShare{ + request: &types.MsgSubmitDecryptionKey{ Creator: trustedAddr, Height: 999, Data: derived, }, - response: &types.MsgCreateAggregatedKeyShareResponse{}, + response: &types.MsgSubmitDecryptionKeyResponse{}, }, } { t.Run(tc.desc, func(t *testing.T) { - response, err := srv.CreateAggregatedKeyShare(wctx, tc.request) + response, err := srv.SubmitDecryptionKey(wctx, tc.request) if len(tc.errMsg) > 0 { require.Equal(t, nullify.Fill(err.Error()), @@ -131,7 +132,7 @@ func TestAggregatedKeyShareMsgServerCreate(t *testing.T) { err = k.SetParams(wctx, param) require.NoError(t, err) } else if tc.desc == "ActiveKeyNotFound" { - k.SetActivePubKey(wctx, types2.ActivePublicKey{ + k.SetActivePubkey(wctx, types2.ActivePublicKey{ PublicKey: out.MasterPublicKey, Creator: trustedAddr, Expiry: 12342423432, diff --git a/x/pep/keeper/msg_submit_encrypted_tx.go b/x/pep/keeper/msg_submit_encrypted_tx.go index ed2f2899..7105a7b6 100644 --- a/x/pep/keeper/msg_submit_encrypted_tx.go +++ b/x/pep/keeper/msg_submit_encrypted_tx.go @@ -39,9 +39,9 @@ func (k msgServer) SubmitEncryptedTx(goCtx context.Context, msg *types.MsgSubmit } var maxHeight uint64 - queuedKey, found := k.GetQueuedPubKey(ctx) + queuedKey, found := k.GetQueuedPubkey(ctx) if !found || (queuedKey.Expiry == 0 && len(queuedKey.PublicKey) == 0) { - activeKey, foundActiveKey := k.GetActivePubKey(ctx) + activeKey, foundActiveKey := k.GetActivePubkey(ctx) if !foundActiveKey { ctx.EventManager().EmitEvent( sdk.NewEvent(types.EncryptedTxRevertedEventType, diff --git a/x/pep/keeper/msg_submit_encrypted_tx_test.go b/x/pep/keeper/msg_submit_encrypted_tx_test.go index 47b86b53..66aa86e3 100644 --- a/x/pep/keeper/msg_submit_encrypted_tx_test.go +++ b/x/pep/keeper/msg_submit_encrypted_tx_test.go @@ -1,14 +1,15 @@ package keeper_test import ( + "math/rand" + "strconv" + "testing" + "cosmossdk.io/math" "github.com/Fairblock/fairyring/testutil/nullify" "github.com/Fairblock/fairyring/testutil/random" "github.com/Fairblock/fairyring/testutil/sample" types2 "github.com/Fairblock/fairyring/x/common/types" - "math/rand" - "strconv" - "testing" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" @@ -109,7 +110,7 @@ func TestSubmitEncryptedTx(t *testing.T) { } if tc.desc == "ActivePubKeyNotFound" { - k.SetActivePubKey(wctx, types2.ActivePublicKey{ + k.SetActivePubkey(wctx, types2.ActivePublicKey{ PublicKey: out.MasterPublicKey, Creator: trustedAddr, Expiry: 325677, diff --git a/x/pep/keeper/msg_submit_gen_enc_tx_test.go b/x/pep/keeper/msg_submit_gen_enc_tx_test.go index 16382230..fa763b9a 100644 --- a/x/pep/keeper/msg_submit_gen_enc_tx_test.go +++ b/x/pep/keeper/msg_submit_gen_enc_tx_test.go @@ -89,13 +89,13 @@ func TestSubmitGeneralEncryptedTx(t *testing.T) { } if tc.desc == "InvalidIdentity" { - k.SetEntry(wctx, types.IdentityExecutionQueue{ - Creator: sample.AccAddress(), - RequestId: validIdentity, - Identity: validIdentity, - Pubkey: random.RandHex(96), - TxList: nil, - AggrKeyshare: random.RandHex(96), + k.SetEntry(wctx, types.IdentityExecutionEntry{ + Creator: sample.AccAddress(), + RequestId: validIdentity, + Identity: validIdentity, + Pubkey: random.RandHex(96), + TxList: nil, + DecryptionKey: random.RandHex(96), }) } }) diff --git a/x/pep/keeper/pub_key.go b/x/pep/keeper/pub_key.go index b99fa8d6..149d4f6c 100644 --- a/x/pep/keeper/pub_key.go +++ b/x/pep/keeper/pub_key.go @@ -10,7 +10,7 @@ import ( ) // SetActivePubKey set a specific public key to active in the store -func (k Keeper) SetActivePubKey(ctx context.Context, activePubKey commontypes.ActivePublicKey) { +func (k Keeper) SetActivePubkey(ctx context.Context, activePubKey commontypes.ActivePublicKey) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) b := k.cdc.MustMarshal(&activePubKey) @@ -18,7 +18,7 @@ func (k Keeper) SetActivePubKey(ctx context.Context, activePubKey commontypes.Ac } // SetQueuedPubKey set a specific public key in the store -func (k Keeper) SetQueuedPubKey(ctx context.Context, queuedPubKey commontypes.QueuedPublicKey) { +func (k Keeper) SetQueuedPubkey(ctx context.Context, queuedPubKey commontypes.QueuedPublicKey) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) b := k.cdc.MustMarshal(&queuedPubKey) @@ -26,7 +26,7 @@ func (k Keeper) SetQueuedPubKey(ctx context.Context, queuedPubKey commontypes.Qu } // GetActivePubKey returns the Active public key -func (k Keeper) GetActivePubKey( +func (k Keeper) GetActivePubkey( ctx context.Context, ) (val commontypes.ActivePublicKey, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) @@ -43,7 +43,7 @@ func (k Keeper) GetActivePubKey( } // GetQueuedPubKey returns the Queued public key -func (k Keeper) GetQueuedPubKey( +func (k Keeper) GetQueuedPubkey( ctx context.Context, ) (val commontypes.QueuedPublicKey, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) @@ -60,14 +60,14 @@ func (k Keeper) GetQueuedPubKey( } // DeleteActivePubKey deletes the active public key in the store -func (k Keeper) DeleteActivePubKey(ctx context.Context) { +func (k Keeper) DeleteActivePubkey(ctx context.Context) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) store.Delete(types.KeyPrefix(types.ActivePubKeyPrefix)) } // DeleteQueuedPubKey deletes the queued public key in the store -func (k Keeper) DeleteQueuedPubKey(ctx context.Context) { +func (k Keeper) DeleteQueuedPubkey(ctx context.Context) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) store.Delete(types.KeyPrefix(types.QueuedPubKeyPrefix)) diff --git a/x/pep/keeper/pub_key_test.go b/x/pep/keeper/pub_key_test.go index f539684d..0df43858 100644 --- a/x/pep/keeper/pub_key_test.go +++ b/x/pep/keeper/pub_key_test.go @@ -1,10 +1,11 @@ package keeper_test import ( - "github.com/Fairblock/fairyring/testutil/random" "math/rand" "testing" + "github.com/Fairblock/fairyring/testutil/random" + keepertest "github.com/Fairblock/fairyring/testutil/keeper" "github.com/Fairblock/fairyring/testutil/nullify" commontypes "github.com/Fairblock/fairyring/x/common/types" @@ -17,7 +18,7 @@ func createActivePubKeys(keeper *keeper.Keeper, ctx sdk.Context) commontypes.Act var items commontypes.ActivePublicKey items.PublicKey = random.RandHex(10) items.Expiry = rand.Uint64() - keeper.SetActivePubKey(ctx, items) + keeper.SetActivePubkey(ctx, items) return items } @@ -25,14 +26,14 @@ func createQueuedPubKeys(keeper *keeper.Keeper, ctx sdk.Context) commontypes.Que var items commontypes.QueuedPublicKey items.PublicKey = random.RandHex(10) items.Expiry = rand.Uint64() - keeper.SetQueuedPubKey(ctx, items) + keeper.SetQueuedPubkey(ctx, items) return items } func TestActivePubKeyGet(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) item := createActivePubKeys(&keeper, ctx) - rst, found := keeper.GetActivePubKey(ctx) + rst, found := keeper.GetActivePubkey(ctx) require.True(t, found) require.Equal(t, nullify.Fill(&item), @@ -43,7 +44,7 @@ func TestActivePubKeyGet(t *testing.T) { func TestQueuedPubKeyGet(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) item := createQueuedPubKeys(&keeper, ctx) - rst, found := keeper.GetQueuedPubKey(ctx) + rst, found := keeper.GetQueuedPubkey(ctx) require.True(t, found) require.Equal(t, nullify.Fill(&item), @@ -54,15 +55,15 @@ func TestQueuedPubKeyGet(t *testing.T) { func TestActivePubKeyRemoved(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) createActivePubKeys(&keeper, ctx) - keeper.DeleteActivePubKey(ctx) - _, found := keeper.GetActivePubKey(ctx) + keeper.DeleteActivePubkey(ctx) + _, found := keeper.GetActivePubkey(ctx) require.False(t, found) } func TestQueuedPubKeyRemoved(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) createQueuedPubKeys(&keeper, ctx) - keeper.DeleteQueuedPubKey(ctx) - _, found := keeper.GetQueuedPubKey(ctx) + keeper.DeleteQueuedPubkey(ctx) + _, found := keeper.GetQueuedPubkey(ctx) require.False(t, found) } diff --git a/x/pep/keeper/query_decrypt_data.go b/x/pep/keeper/query_decrypt_data.go index 0fec80ea..ee7b7c22 100644 --- a/x/pep/keeper/query_decrypt_data.go +++ b/x/pep/keeper/query_decrypt_data.go @@ -24,7 +24,7 @@ func (k Keeper) DecryptData(goCtx context.Context, req *types.QueryDecryptDataRe ctx := sdk.UnwrapSDKContext(goCtx) if req.Pubkey == "" { - pk, found := k.GetActivePubKey(ctx) + pk, found := k.GetActivePubkey(ctx) if !found { return &types.QueryDecryptDataResponse{}, errors.New("pubkey not found") } @@ -37,7 +37,7 @@ func (k Keeper) DecryptData(goCtx context.Context, req *types.QueryDecryptDataRe return &types.QueryDecryptDataResponse{}, err } - skPoint, err := k.GetSKPoint(req.AggrKeyshare, suite) + skPoint, err := k.GetSKPoint(req.DecryptionKey, suite) if err != nil { return &types.QueryDecryptDataResponse{}, err } diff --git a/x/pep/keeper/query_decrypt_data_test.go b/x/pep/keeper/query_decrypt_data_test.go index 14734d09..e16690bb 100644 --- a/x/pep/keeper/query_decrypt_data_test.go +++ b/x/pep/keeper/query_decrypt_data_test.go @@ -3,13 +3,14 @@ package keeper_test import ( "bytes" "encoding/hex" + "strconv" + "testing" + enc "github.com/FairBlock/DistributedIBE/encryption" "github.com/Fairblock/fairyring/testutil/random" "github.com/Fairblock/fairyring/testutil/shares" commontypes "github.com/Fairblock/fairyring/x/common/types" bls "github.com/drand/kyber-bls12381" - "strconv" - "testing" keepertest "github.com/Fairblock/fairyring/testutil/keeper" "github.com/Fairblock/fairyring/testutil/nullify" @@ -63,7 +64,7 @@ func TestDecryptDataQuerySingle(t *testing.T) { desc: "WithPubKey", request: &types.QueryDecryptDataRequest{ Pubkey: out.MasterPublicKey, - AggrKeyshare: derived, + DecryptionKey: derived, EncryptedData: hex.EncodeToString(destCipherData.Bytes()), }, response: &types.QueryDecryptDataResponse{ @@ -73,7 +74,7 @@ func TestDecryptDataQuerySingle(t *testing.T) { { desc: "WithoutPubKeyAndNoPubKeyOnChain", request: &types.QueryDecryptDataRequest{ - AggrKeyshare: derived, + DecryptionKey: derived, EncryptedData: hex.EncodeToString(destCipherData.Bytes()), }, errMsg: "pubkey not found", @@ -82,7 +83,7 @@ func TestDecryptDataQuerySingle(t *testing.T) { desc: "InvalidPubKey", request: &types.QueryDecryptDataRequest{ Pubkey: random.RandHex(8), - AggrKeyshare: derived, + DecryptionKey: derived, EncryptedData: hex.EncodeToString(destCipherData.Bytes()), }, errMsg: "input string length must be equal to 48 bytes", @@ -91,7 +92,7 @@ func TestDecryptDataQuerySingle(t *testing.T) { desc: "InvalidAggrKeyShare", request: &types.QueryDecryptDataRequest{ Pubkey: out.MasterPublicKey, - AggrKeyshare: random.RandHex(8), + DecryptionKey: random.RandHex(8), EncryptedData: hex.EncodeToString(destCipherData.Bytes()), }, errMsg: "input string length must be equal to 96 bytes", @@ -114,7 +115,7 @@ func TestDecryptDataQuerySingle(t *testing.T) { } if tc.desc == "WithoutPubKeyAndNoPubKeyOnChain" { - keeper.SetActivePubKey(wctx, commontypes.ActivePublicKey{ + keeper.SetActivePubkey(wctx, commontypes.ActivePublicKey{ PublicKey: out.MasterPublicKey, Creator: creator, Expiry: 12346788888, diff --git a/x/pep/keeper/query_encrypted_tx_test.go b/x/pep/keeper/query_encrypted_tx_test.go index 8d721b97..61fc199b 100644 --- a/x/pep/keeper/query_encrypted_tx_test.go +++ b/x/pep/keeper/query_encrypted_tx_test.go @@ -32,18 +32,18 @@ func TestEncryptedTxQuerySingle(t *testing.T) { { desc: "First", request: &types.QueryEncryptedTxRequest{ - TargetHeight: msgs[0].EncryptedTx[0].TargetHeight, - Index: msgs[0].EncryptedTx[0].Index, + TargetHeight: msgs[0].EncryptedTxs[0].TargetHeight, + Index: msgs[0].EncryptedTxs[0].Index, }, - response: &types.QueryEncryptedTxResponse{EncryptedTx: msgs[0].EncryptedTx[0]}, + response: &types.QueryEncryptedTxResponse{EncryptedTx: msgs[0].EncryptedTxs[0]}, }, { desc: "Second", request: &types.QueryEncryptedTxRequest{ - TargetHeight: msgs[1].EncryptedTx[0].TargetHeight, - Index: msgs[1].EncryptedTx[0].Index, + TargetHeight: msgs[1].EncryptedTxs[0].TargetHeight, + Index: msgs[1].EncryptedTxs[0].Index, }, - response: &types.QueryEncryptedTxResponse{EncryptedTx: msgs[1].EncryptedTx[0]}, + response: &types.QueryEncryptedTxResponse{EncryptedTx: msgs[1].EncryptedTxs[0]}, }, { desc: "KeyNotFound", diff --git a/x/pep/keeper/query_keyshare.go b/x/pep/keeper/query_general_identity.go similarity index 69% rename from x/pep/keeper/query_keyshare.go rename to x/pep/keeper/query_general_identity.go index 0b644f10..4ea40d27 100644 --- a/x/pep/keeper/query_keyshare.go +++ b/x/pep/keeper/query_general_identity.go @@ -13,10 +13,10 @@ import ( "google.golang.org/grpc/status" ) -func (k Keeper) KeyshareReq( +func (k Keeper) GeneralIdentity( c context.Context, - req *types.QueryKeyshareReqRequest, -) (*types.QueryKeyshareReqResponse, error) { + req *types.QueryGeneralIdentityRequest, +) (*types.QueryGeneralIdentityResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -28,13 +28,13 @@ func (k Keeper) KeyshareReq( return nil, status.Error(codes.NotFound, "not found") } - return &types.QueryKeyshareReqResponse{Keyshare: &entry}, nil + return &types.QueryGeneralIdentityResponse{RequestDetails: &entry}, nil } -func (k Keeper) KeyshareReqAll( +func (k Keeper) GeneralIdentityAll( c context.Context, - req *types.QueryKeyshareReqAllRequest, -) (*types.QueryKeyshareReqAllResponse, error) { + req *types.QueryGeneralIdentityAllRequest, +) (*types.QueryGeneralIdentityAllResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -44,10 +44,10 @@ func (k Keeper) KeyshareReqAll( storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GenEncTxKeyPrefix)) - var keyshares []*types.IdentityExecutionQueue + var keyshares []*types.IdentityExecutionEntry pageRes, err := query.Paginate(store, req.Pagination, func(key []byte, value []byte) error { - var keyshare types.IdentityExecutionQueue + var keyshare types.IdentityExecutionEntry if err := k.cdc.Unmarshal(value, &keyshare); err != nil { return err } @@ -60,8 +60,8 @@ func (k Keeper) KeyshareReqAll( return nil, status.Error(codes.Internal, err.Error()) } - return &types.QueryKeyshareReqAllResponse{ - Keyshares: keyshares, - Pagination: pageRes, + return &types.QueryGeneralIdentityAllResponse{ + RequestDetailsList: keyshares, + Pagination: pageRes, }, nil } diff --git a/x/pep/keeper/query_keyshare_test.go b/x/pep/keeper/query_general_identity_test.go similarity index 64% rename from x/pep/keeper/query_keyshare_test.go rename to x/pep/keeper/query_general_identity_test.go index 2c2a49c0..f5576068 100644 --- a/x/pep/keeper/query_keyshare_test.go +++ b/x/pep/keeper/query_general_identity_test.go @@ -27,23 +27,23 @@ func TestKeyShareReqSingle(t *testing.T) { for _, tc := range []struct { desc string - request *types.QueryKeyshareReqRequest - response *types.QueryKeyshareReqResponse + request *types.QueryGeneralIdentityRequest + response *types.QueryGeneralIdentityResponse err error errMsg string }{ { desc: "First item", - request: &types.QueryKeyshareReqRequest{ + request: &types.QueryGeneralIdentityRequest{ ReqId: out[0].RequestId, }, - response: &types.QueryKeyshareReqResponse{ - Keyshare: &out[0], + response: &types.QueryGeneralIdentityResponse{ + RequestDetails: &out[0], }, }, { desc: "Not found", - request: &types.QueryKeyshareReqRequest{ + request: &types.QueryGeneralIdentityRequest{ ReqId: random.RandHex(64), }, err: status.Error(codes.NotFound, "not found"), @@ -55,7 +55,7 @@ func TestKeyShareReqSingle(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.KeyshareReq(wctx, tc.request) + response, err := keeper.GeneralIdentity(wctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) } else { @@ -75,7 +75,7 @@ func TestKeyshareReqAll(t *testing.T) { wctx := sdk.UnwrapSDKContext(ctx) msgs := createNGeneralEncryptedTxEntry(&keeper, ctx, 5) - resp, err := keeper.KeyshareReqAll(wctx, &types.QueryKeyshareReqAllRequest{ + resp, err := keeper.GeneralIdentityAll(wctx, &types.QueryGeneralIdentityAllRequest{ Pagination: &query.PageRequest{ Key: nil, Offset: 0, @@ -84,11 +84,11 @@ func TestKeyshareReqAll(t *testing.T) { }, }) require.NoError(t, err) - require.Equal(t, len(resp.Keyshares), len(msgs)) + require.Equal(t, len(resp.RequestDetailsList), len(msgs)) - check := make([]types.IdentityExecutionQueue, len(resp.Keyshares)) - for i := range resp.Keyshares { - check[i] = *resp.Keyshares[i] + check := make([]types.IdentityExecutionEntry, len(resp.RequestDetailsList)) + for i := range resp.RequestDetailsList { + check[i] = *resp.RequestDetailsList[i] } require.ElementsMatch(t, @@ -107,8 +107,8 @@ func TestKeyshareReqPaginated(t *testing.T) { offset, limit uint64, total bool, - ) *types.QueryKeyshareReqAllRequest { - return &types.QueryKeyshareReqAllRequest{ + ) *types.QueryGeneralIdentityAllRequest { + return &types.QueryGeneralIdentityAllRequest{ Pagination: &query.PageRequest{ Key: next, Offset: offset, @@ -120,13 +120,13 @@ func TestKeyshareReqPaginated(t *testing.T) { t.Run("ByOffset", func(t *testing.T) { step := 2 for i := 0; i < len(msgs); i += step { - resp, err := keeper.KeyshareReqAll(wctx, request(nil, uint64(i), uint64(step), false)) + resp, err := keeper.GeneralIdentityAll(wctx, request(nil, uint64(i), uint64(step), false)) require.NoError(t, err) - require.LessOrEqual(t, len(resp.Keyshares), step) + require.LessOrEqual(t, len(resp.RequestDetailsList), step) - check := make([]types.IdentityExecutionQueue, len(resp.Keyshares)) - for j := range resp.Keyshares { - check[j] = *resp.Keyshares[j] + check := make([]types.IdentityExecutionEntry, len(resp.RequestDetailsList)) + for j := range resp.RequestDetailsList { + check[j] = *resp.RequestDetailsList[j] } require.Subset(t, @@ -139,13 +139,13 @@ func TestKeyshareReqPaginated(t *testing.T) { step := 2 var next []byte for i := 0; i < len(msgs); i += step { - resp, err := keeper.KeyshareReqAll(wctx, request(next, 0, uint64(step), false)) + resp, err := keeper.GeneralIdentityAll(wctx, request(next, 0, uint64(step), false)) require.NoError(t, err) - require.LessOrEqual(t, len(resp.Keyshares), step) + require.LessOrEqual(t, len(resp.RequestDetailsList), step) - check := make([]types.IdentityExecutionQueue, len(resp.Keyshares)) - for j := range resp.Keyshares { - check[j] = *resp.Keyshares[j] + check := make([]types.IdentityExecutionEntry, len(resp.RequestDetailsList)) + for j := range resp.RequestDetailsList { + check[j] = *resp.RequestDetailsList[j] } require.Subset(t, @@ -156,13 +156,13 @@ func TestKeyshareReqPaginated(t *testing.T) { } }) t.Run("Total", func(t *testing.T) { - resp, err := keeper.KeyshareReqAll(wctx, request(nil, 0, 0, true)) + resp, err := keeper.GeneralIdentityAll(wctx, request(nil, 0, 0, true)) require.NoError(t, err) require.Equal(t, len(msgs), int(resp.Pagination.Total)) - check := make([]types.IdentityExecutionQueue, len(resp.Keyshares)) - for j := range resp.Keyshares { - check[j] = *resp.Keyshares[j] + check := make([]types.IdentityExecutionEntry, len(resp.RequestDetailsList)) + for j := range resp.RequestDetailsList { + check[j] = *resp.RequestDetailsList[j] } require.ElementsMatch(t, @@ -171,7 +171,7 @@ func TestKeyshareReqPaginated(t *testing.T) { ) }) t.Run("InvalidRequest", func(t *testing.T) { - _, err := keeper.KeyshareReqAll(wctx, nil) + _, err := keeper.GeneralIdentityAll(wctx, nil) require.ErrorIs(t, err, status.Error(codes.InvalidArgument, "invalid request")) }) } diff --git a/x/pep/keeper/query_private_keyshare_req.go b/x/pep/keeper/query_private_identity.go similarity index 58% rename from x/pep/keeper/query_private_keyshare_req.go rename to x/pep/keeper/query_private_identity.go index baf3c5b4..adf6fda9 100644 --- a/x/pep/keeper/query_private_keyshare_req.go +++ b/x/pep/keeper/query_private_identity.go @@ -10,10 +10,10 @@ import ( "google.golang.org/grpc/status" ) -func (k Keeper) PrivateKeyshareReq( +func (k Keeper) PrivateIdentity( goCtx context.Context, - req *types.QueryPrivateKeyshareReqRequest, -) (*types.QueryPrivateKeyshareReqResponse, error) { + req *types.QueryPrivateIdentityRequest, +) (*types.QueryPrivateIdentityResponse, error) { if req == nil { return nil, status.Error(codes.InvalidArgument, "invalid request") } @@ -25,10 +25,10 @@ func (k Keeper) PrivateKeyshareReq( return nil, errors.New("entry not found") } - return &types.QueryPrivateKeyshareReqResponse{ - Creator: val.Creator, - ReqId: val.ReqId, - Pubkey: val.Pubkey, - EncryptedKeyshares: val.EncryptedKeyshares, + return &types.QueryPrivateIdentityResponse{ + Creator: val.Creator, + ReqId: val.ReqId, + Pubkey: val.Pubkey, + PrivateDecryptionKeys: val.PrivateDecryptionKeys, }, nil } diff --git a/x/pep/keeper/query_private_keyshare_req_test.go b/x/pep/keeper/query_private_identity_test.go similarity index 67% rename from x/pep/keeper/query_private_keyshare_req_test.go rename to x/pep/keeper/query_private_identity_test.go index 3d6b90b0..e238845c 100644 --- a/x/pep/keeper/query_private_keyshare_req_test.go +++ b/x/pep/keeper/query_private_identity_test.go @@ -25,30 +25,30 @@ func TestPrivateKeyshareReq(t *testing.T) { wctx := sdk.UnwrapSDKContext(ctx) req := types.PrivateRequest{ - Creator: sample.AccAddress(), - ReqId: random.RandHex(16), - Pubkey: random.RandHex(96), - EncryptedKeyshares: make([]*types2.EncryptedKeyshare, 0), + Creator: sample.AccAddress(), + ReqId: random.RandHex(16), + Pubkey: random.RandHex(96), + PrivateDecryptionKeys: make([]*types2.PrivateDecryptionKey, 0), } keeper.SetPrivateRequest(wctx, req) for _, tc := range []struct { desc string - request *types.QueryPrivateKeyshareReqRequest - response *types.QueryPrivateKeyshareReqResponse + request *types.QueryPrivateIdentityRequest + response *types.QueryPrivateIdentityResponse err error }{ { desc: "ValidRequest", - request: &types.QueryPrivateKeyshareReqRequest{ + request: &types.QueryPrivateIdentityRequest{ ReqId: req.ReqId, }, - response: &types.QueryPrivateKeyshareReqResponse{ - Creator: req.Creator, - ReqId: req.ReqId, - Pubkey: req.Pubkey, - EncryptedKeyshares: req.EncryptedKeyshares, + response: &types.QueryPrivateIdentityResponse{ + Creator: req.Creator, + ReqId: req.ReqId, + Pubkey: req.Pubkey, + PrivateDecryptionKeys: req.PrivateDecryptionKeys, }, }, { @@ -58,7 +58,7 @@ func TestPrivateKeyshareReq(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.PrivateKeyshareReq(wctx, tc.request) + response, err := keeper.PrivateIdentity(wctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) } else { diff --git a/x/pep/keeper/query_pub_key.go b/x/pep/keeper/query_pubkey.go similarity index 82% rename from x/pep/keeper/query_pub_key.go rename to x/pep/keeper/query_pubkey.go index b351b66c..032eeb2f 100644 --- a/x/pep/keeper/query_pub_key.go +++ b/x/pep/keeper/query_pubkey.go @@ -15,7 +15,10 @@ import ( ) // PubKey returns the lates public keys -func (k Keeper) PubKey(goCtx context.Context, req *types.QueryPubKeyRequest) (*types.QueryPubKeyResponse, error) { +func (k Keeper) Pubkey( + goCtx context.Context, + req *types.QueryPubkeyRequest, +) (*types.QueryPubkeyResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) if req == nil { @@ -38,5 +41,5 @@ func (k Keeper) PubKey(goCtx context.Context, req *types.QueryPubKeyRequest) (*t k.cdc.MustUnmarshal(b, &queuedPubKey) } - return &types.QueryPubKeyResponse{ActivePubKey: activePubKey, QueuedPubKey: queuedPubKey}, nil + return &types.QueryPubkeyResponse{ActivePubkey: activePubKey, QueuedPubkey: queuedPubKey}, nil } diff --git a/x/pep/keeper/query_pub_key_test.go b/x/pep/keeper/query_pubkey_test.go similarity index 78% rename from x/pep/keeper/query_pub_key_test.go rename to x/pep/keeper/query_pubkey_test.go index 7b8b8867..fc3e90f6 100644 --- a/x/pep/keeper/query_pub_key_test.go +++ b/x/pep/keeper/query_pubkey_test.go @@ -1,6 +1,8 @@ package keeper_test import ( + "testing" + keepertest "github.com/Fairblock/fairyring/testutil/keeper" "github.com/Fairblock/fairyring/testutil/nullify" "github.com/Fairblock/fairyring/x/pep/types" @@ -8,7 +10,6 @@ import ( "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "testing" ) func TestPubKeyQuery(t *testing.T) { @@ -18,16 +19,16 @@ func TestPubKeyQuery(t *testing.T) { queuedPubKey := createQueuedPubKeys(&keeper, wctx) for _, tc := range []struct { desc string - request *types.QueryPubKeyRequest - response *types.QueryPubKeyResponse + request *types.QueryPubkeyRequest + response *types.QueryPubkeyResponse err error }{ { desc: "QueryPubKey", - request: &types.QueryPubKeyRequest{}, - response: &types.QueryPubKeyResponse{ - ActivePubKey: activePubKey, - QueuedPubKey: queuedPubKey, + request: &types.QueryPubkeyRequest{}, + response: &types.QueryPubkeyResponse{ + ActivePubkey: activePubKey, + QueuedPubkey: queuedPubKey, }, }, { @@ -36,7 +37,7 @@ func TestPubKeyQuery(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.PubKey(wctx, tc.request) + response, err := keeper.Pubkey(wctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) } else { diff --git a/x/pep/keeper/request_id_test.go b/x/pep/keeper/request_id_test.go index 6fedd195..b55a3f41 100644 --- a/x/pep/keeper/request_id_test.go +++ b/x/pep/keeper/request_id_test.go @@ -2,11 +2,12 @@ package keeper_test import ( "context" + "strconv" + "testing" + "github.com/Fairblock/fairyring/testutil/random" "github.com/Fairblock/fairyring/testutil/sample" commontypes "github.com/Fairblock/fairyring/x/common/types" - "strconv" - "testing" keepertest "github.com/Fairblock/fairyring/testutil/keeper" "github.com/Fairblock/fairyring/testutil/nullify" @@ -59,7 +60,7 @@ func createNPrivateRequestId(keeper keeper.Keeper, ctx context.Context, n int) [ for i := range items { items[i].Creator = sample.AccAddress() items[i].ReqId = random.RandHex(16) - items[i].EncryptedKeyshares = make([]*commontypes.EncryptedKeyshare, 0) + items[i].PrivateDecryptionKeys = make([]*commontypes.PrivateDecryptionKey, 0) keeper.SetPrivateRequest(ctx, items[i]) } diff --git a/x/pep/module/autocli.go b/x/pep/module/autocli.go index bb2b3872..f461cc67 100644 --- a/x/pep/module/autocli.go +++ b/x/pep/module/autocli.go @@ -51,33 +51,33 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "address"}}, }, { - RpcMethod: "PubKey", + RpcMethod: "Pubkey", Use: "show-active-pub-key", Short: "Show the active and queued public key", }, { - RpcMethod: "KeyshareReq", - Use: "show-keyshare-req [req-id]", - Short: "show a particular pending keyshare request by request-id", + RpcMethod: "GeneralIdentity", + Use: "show-general-identity [req-id]", + Short: "show a particular identity request by request-id", PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "req_id"}}, }, { - RpcMethod: "KeyshareReqAll", - Use: "list-keyshare-req", - Short: "list all pending keyshare requests", + RpcMethod: "GeneralIdentityAll", + Use: "list-general-identities", + Short: "list all identity requests", }, { - RpcMethod: "PrivateKeyshareReq", - Use: "show-private-keyshare-req [req-id]", - Short: "Query show-private-keyshare-req", + RpcMethod: "PrivateIdentity", + Use: "show-private-identity [req-id]", + Short: "show a particular private identity request by request-id ", PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "req_id"}}, }, { RpcMethod: "DecryptData", - Use: "decrypt-data [pubkey] [aggr-keyshare] [encrypted-data]", + Use: "decrypt-data [pubkey] [decryption-key] [encrypted-data]", Short: "Query decrypt-data", - PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "pubkey"}, {ProtoField: "aggr_keyshare"}, {ProtoField: "encrypted_data"}}, + PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "pubkey"}, {ProtoField: "decryption_key"}, {ProtoField: "encrypted_data"}}, }, // this line is used by ignite scaffolding # autocli/query diff --git a/x/pep/module/genesis.go b/x/pep/module/genesis.go index 999629d4..77cbd8c0 100644 --- a/x/pep/module/genesis.go +++ b/x/pep/module/genesis.go @@ -13,23 +13,23 @@ import ( func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) { // Set all the encryptedTx for _, elem := range genState.EncryptedTxArray { - if len(elem.EncryptedTx) < 1 { + if len(elem.EncryptedTxs) < 1 { continue } - k.SetEncryptedTx(ctx, elem.EncryptedTx[0].TargetHeight, elem) + k.SetEncryptedTx(ctx, elem.EncryptedTxs[0].TargetHeight, elem) } // Set all the pepNonce for _, elem := range genState.PepNonceList { k.SetPepNonce(ctx, elem) } // Set all the aggregatedKeyShare - for _, elem := range genState.AggregatedKeyShareList { - k.SetAggregatedKeyShare(ctx, elem) + for _, elem := range genState.DecryptionKeyList { + k.SetDecryptionKey(ctx, elem) } // Set actuve public key - k.SetActivePubKey(ctx, genState.ActivePubKey) + k.SetActivePubkey(ctx, genState.ActivePubKey) // Set queued public key - k.SetQueuedPubKey(ctx, genState.QueuedPubKey) + k.SetQueuedPubkey(ctx, genState.QueuedPubKey) // Set all the requestId for _, elem := range genState.RequestIdList { k.SetRequestId(ctx, elem) @@ -67,13 +67,13 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { genesis.EncryptedTxArray = k.GetAllEncryptedArray(ctx) genesis.PepNonceList = k.GetAllPepNonce(ctx) - genesis.AggregatedKeyShareList = k.GetAllAggregatedKeyShare(ctx) + genesis.DecryptionKeyList = k.GetAllDecryptionKeys(ctx) // this line is used by starport scaffolding # genesis/module/export - akey, found := k.GetActivePubKey(ctx) + akey, found := k.GetActivePubkey(ctx) if found { genesis.ActivePubKey = akey } - qkey, found := k.GetQueuedPubKey(ctx) + qkey, found := k.GetQueuedPubkey(ctx) if found { genesis.QueuedPubKey = qkey } diff --git a/x/pep/module/module.go b/x/pep/module/module.go index 34449ca8..86e48d1f 100644 --- a/x/pep/module/module.go +++ b/x/pep/module/module.go @@ -207,7 +207,7 @@ func (am AppModule) BeginBlock(cctx context.Context) error { am.keeper.Logger().Info(fmt.Sprintf("Last executed Height: %d", lastExecutedHeight)) am.keeper.Logger().Info(fmt.Sprintf("Latest height from fairyring: %s", strHeight)) - activePubkey, found := am.keeper.GetActivePubKey(ctx) + activePubkey, found := am.keeper.GetActivePubkey(ctx) if !found { am.keeper.Logger().Error("Active public key does not exists") return nil @@ -231,15 +231,15 @@ func (am AppModule) BeginBlock(cctx context.Context) error { arr := am.keeper.GetEncryptedTxAllFromHeight(ctx, h) am.keeper.SetLastExecutedHeight(ctx, strconv.FormatUint(h, 10)) - key, found := am.keeper.GetAggregatedKeyShare(ctx, h) + key, found := am.keeper.GetDecryptionKey(ctx, h) if !found { am.keeper.Logger().Error(fmt.Sprintf("Decryption key not found for block height: %d, Removing all the encrypted txs...", h)) encryptedTxs := am.keeper.GetEncryptedTxAllFromHeight(ctx, h) - if len(encryptedTxs.EncryptedTx) > 0 { + if len(encryptedTxs.EncryptedTxs) > 0 { am.keeper.SetAllEncryptedTxExpired(ctx, h) - am.keeper.Logger().Info(fmt.Sprintf("Updated total %d encrypted txs at block %d to expired", len(encryptedTxs.EncryptedTx), h)) - indexes := make([]string, len(encryptedTxs.EncryptedTx)) - for _, v := range encryptedTxs.EncryptedTx { + am.keeper.Logger().Info(fmt.Sprintf("Updated total %d encrypted txs at block %d to expired", len(encryptedTxs.EncryptedTxs), h)) + indexes := make([]string, len(encryptedTxs.EncryptedTxs)) + for _, v := range encryptedTxs.EncryptedTxs { indexes = append(indexes, strconv.FormatUint(v.Index, 10)) } ctx.EventManager().EmitEvent( @@ -262,9 +262,9 @@ func (am AppModule) BeginBlock(cctx context.Context) error { ctx, contract.ContractAddress, types.ExecuteContractMsg{ - Identity: strconv.FormatUint(h, 10), - Pubkey: activePubkey.PublicKey, - AggrKeyshare: key.Data, + Identity: strconv.FormatUint(h, 10), + Pubkey: activePubkey.PublicKey, + DecryptionKey: key.Data, }, ) } @@ -275,7 +275,7 @@ func (am AppModule) BeginBlock(cctx context.Context) error { continue } - for _, eachTx := range arr.EncryptedTx { + for _, eachTx := range arr.EncryptedTxs { startConsumedGas := ctx.GasMeter().GasConsumed() am.keeper.SetEncryptedTxProcessedHeight(ctx, eachTx.TargetHeight, eachTx.Index, uint64(ctx.BlockHeight())) tx := convertEncTxToDecryptionTx(eachTx) @@ -290,7 +290,7 @@ func (am AppModule) BeginBlock(cctx context.Context) error { // loop over all entries in the general enc tx queue entries := am.keeper.GetAllGenEncTxExecutionQueueEntry(ctx) for _, entry := range entries { - if entry.AggrKeyshare == "" { + if entry.DecryptionKey == "" { am.keeper.Logger().Error("aggregated keyshare not found in entry with req-id: ", entry.RequestId) am.keeper.RemoveExecutionQueueEntry(ctx, entry.Identity) continue @@ -304,9 +304,9 @@ func (am AppModule) BeginBlock(cctx context.Context) error { ctx, contract.ContractAddress, types.ExecuteContractMsg{ - Identity: entry.Identity, - Pubkey: entry.Pubkey, - AggrKeyshare: entry.AggrKeyshare, + Identity: entry.Identity, + Pubkey: entry.Pubkey, + DecryptionKey: entry.DecryptionKey, }, ) } @@ -322,13 +322,13 @@ func (am AppModule) BeginBlock(cctx context.Context) error { continue } - skPoint, err := am.keeper.GetSKPoint(entry.AggrKeyshare, suite) + skPoint, err := am.keeper.GetSKPoint(entry.DecryptionKey, suite) if err != nil { continue } // loop over all txs in the entry - for _, eachTx := range entry.TxList.EncryptedTx { + for _, eachTx := range entry.TxList.EncryptedTxs { startConsumedGas := ctx.GasMeter().GasConsumed() tx := convertGenEncTxToDecryptionTx(eachTx) @@ -365,23 +365,23 @@ func (am AppModule) EndBlock(cctx context.Context) error { return nil } - ak, found := am.keeper.GetActivePubKey(ctx) + ak, found := am.keeper.GetActivePubkey(ctx) if found { if ak.Expiry <= height { - am.keeper.DeleteActivePubKey(ctx) + am.keeper.DeleteActivePubkey(ctx) } else { return nil } } - qk, found := am.keeper.GetQueuedPubKey(ctx) + qk, found := am.keeper.GetQueuedPubkey(ctx) if found { if qk.Expiry > height { newActiveKey := commontypes.ActivePublicKey(qk) - am.keeper.SetActivePubKey(ctx, newActiveKey) + am.keeper.SetActivePubkey(ctx, newActiveKey) } - am.keeper.DeleteQueuedPubKey(ctx) + am.keeper.DeleteQueuedPubkey(ctx) } return nil } diff --git a/x/pep/module/module_ibc.go b/x/pep/module/module_ibc.go index 68c4c44a..a7122960 100644 --- a/x/pep/module/module_ibc.go +++ b/x/pep/module/module_ibc.go @@ -149,8 +149,12 @@ func (im IBCModule) OnRecvPacket( // Dispatch packet switch packet := ksModulePacketData.Packet.(type) { - case *kstypes.KeysharePacketData_AggrKeyshareDataPacket: - packetAck, err := im.keeper.OnRecvAggrKeyshareDataPacket(ctx, modulePacket, *packet.AggrKeyshareDataPacket) + case *kstypes.KeysharePacketData_DecryptionKeyDataPacket: + packetAck, err := im.keeper.OnRecvDecryptionKeyDataPacket( + ctx, + modulePacket, + *packet.DecryptionKeyDataPacket, + ) if err != nil { ack = channeltypes.NewErrorAcknowledgement(err) } else { @@ -167,8 +171,12 @@ func (im IBCModule) OnRecvPacket( ) return ack - case *kstypes.KeysharePacketData_EncryptedKeysharesPacketData: - packetAck, err := im.keeper.OnRecvEncKeyshareDataPacket(ctx, modulePacket, *packet.EncryptedKeysharesPacketData) + case *kstypes.KeysharePacketData_PrivateDecryptionKeyDataPacket: + packetAck, err := im.keeper.OnRecvPrivDecryptionKeyDataPacket( + ctx, + modulePacket, + *packet.PrivateDecryptionKeyDataPacket, + ) if err != nil { ack = channeltypes.NewErrorAcknowledgement(err) } else { @@ -232,28 +240,48 @@ func (im IBCModule) OnAcknowledgementPacket( ), ) - case *kstypes.KeysharePacketData_RequestAggrKeysharePacket: - err := im.keeper.OnAcknowledgementRequestAggrKeysharePacket(ctx, modulePacket, *packet.RequestAggrKeysharePacket, ack) + case *kstypes.KeysharePacketData_RequestDecryptionKeyPacket: + err := im.keeper.OnAcknowledgementRequestDecryptionKeyPacket( + ctx, + modulePacket, + *packet.RequestDecryptionKeyPacket, + ack, + ) if err != nil { return err } eventType = kstypes.EventTypeRequestAggrKeysharePacket - case *kstypes.KeysharePacketData_GetAggrKeysharePacket: - err := im.keeper.OnAcknowledgementGetAggrKeysharePacket(ctx, modulePacket, *packet.GetAggrKeysharePacket, ack) + case *kstypes.KeysharePacketData_GetDecryptionKeyPacket: + err := im.keeper.OnAcknowledgementGetDecryptionKeyPacket( + ctx, + modulePacket, + *packet.GetDecryptionKeyPacket, + ack, + ) if err != nil { return err } eventType = kstypes.EventTypeGetAggrKeysharePacket - case *kstypes.KeysharePacketData_RequestPrivKeysharePacket: - err := im.keeper.OnAcknowledgementRequestPrivateKeysharePacket(ctx, modulePacket, *packet.RequestPrivKeysharePacket, ack) + case *kstypes.KeysharePacketData_RequestPrivateDecryptionKeyPacket: + err := im.keeper.OnAcknowledgementRequestPrivateDecryptionKeyPacket( + ctx, + modulePacket, + *packet.RequestPrivateDecryptionKeyPacket, + ack, + ) if err != nil { return err } eventType = kstypes.EventTypeRequestPrivateKeysharePacket - case *kstypes.KeysharePacketData_GetPrivateKeysharePacket: - err := im.keeper.OnAcknowledgementGetPrivateKeysharePacket(ctx, modulePacket, *packet.GetPrivateKeysharePacket, ack) + case *kstypes.KeysharePacketData_GetPrivateDecryptionKeyPacket: + err := im.keeper.OnAcknowledgementGetPrivateDecryptionKeyPacket( + ctx, + modulePacket, + *packet.GetPrivateDecryptionKeyPacket, + ack, + ) if err != nil { return err } diff --git a/x/pep/types/codec.go b/x/pep/types/codec.go index 844d5b64..5a63e3eb 100644 --- a/x/pep/types/codec.go +++ b/x/pep/types/codec.go @@ -17,7 +17,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgRequestPrivateIdentity{}, ) registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgGetPrivateKeyshares{}, + &MsgRequestPrivateDecryptionKey{}, ) // this line is used by starport scaffolding # 3 @@ -29,13 +29,13 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgSubmitEncryptedTx{}, ) registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgCreateAggregatedKeyShare{}, + &MsgSubmitDecryptionKey{}, ) registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgRequestGeneralKeyshare{}, + &MsgRequestGeneralIdentity{}, ) registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgGetGeneralKeyshare{}, + &MsgRequestGeneralDecryptionKey{}, ) registry.RegisterImplementations((*sdk.Msg)(nil), &MsgSubmitGeneralEncryptedTx{}, diff --git a/x/pep/types/genesis.go b/x/pep/types/genesis.go index 89cfddc1..5795b7e4 100644 --- a/x/pep/types/genesis.go +++ b/x/pep/types/genesis.go @@ -16,9 +16,9 @@ func DefaultGenesis() *GenesisState { return &GenesisState{ PortId: PortID, // this line is used by starport scaffolding # genesis/types/default - Params: DefaultParams(), - EncryptedTxArray: []EncryptedTxArray{}, - AggregatedKeyShareList: []AggregatedKeyShare{}, + Params: DefaultParams(), + EncryptedTxArray: []EncryptedTxArray{}, + DecryptionKeyList: []DecryptionKey{}, } } @@ -41,7 +41,7 @@ func (gs GenesisState) Validate() error { // this line is used by starport scaffolding # genesis/types/validate encryptedTxArrIndexMap := make(map[string]struct{}) for height, elem := range gs.EncryptedTxArray { - for index, item := range elem.EncryptedTx { + for index, item := range elem.EncryptedTxs { if item.Index != uint64(index) { return fmt.Errorf("encrypted tx index does not match") } @@ -60,8 +60,8 @@ func (gs GenesisState) Validate() error { // Check for duplicated index in aggregatedKeyShare aggregatedKeyShareIndexMap := make(map[string]struct{}) - for _, elem := range gs.AggregatedKeyShareList { - index := string(AggregatedKeyShareKey(elem.Height)) + for _, elem := range gs.DecryptionKeyList { + index := string(DecryptionKeyKey(elem.Height)) if _, ok := aggregatedKeyShareIndexMap[index]; ok { return fmt.Errorf("duplicated index for aggregatedKeyShare") } diff --git a/x/pep/types/key_aggregated_key_share.go b/x/pep/types/key_aggregated_key_share.go index 1e899925..f4a77936 100644 --- a/x/pep/types/key_aggregated_key_share.go +++ b/x/pep/types/key_aggregated_key_share.go @@ -5,12 +5,12 @@ import "encoding/binary" var _ binary.ByteOrder const ( - // AggregatedKeyShareKeyPrefix is the prefix to retrieve all AggregatedKeyShare - AggregatedKeyShareKeyPrefix = "AggregatedKeyShare/value/" + // DecryptionKeyKeyPrefix is the prefix to retrieve all decryption key + DecryptionKeyKeyPrefix = "DecryptionKey/value/" ) -// AggregatedKeyShareKey returns the store key to retrieve a AggregatedKeyShare from the index fields -func AggregatedKeyShareKey( +// AggregatedKeyShareKey returns the store key to retrieve a decryption key from the index fields +func DecryptionKeyKey( height uint64, ) []byte { var key []byte diff --git a/x/pep/types/message_get_private_keyshares.go b/x/pep/types/message_get_private_keyshares.go index f9cfefc9..d54b914b 100644 --- a/x/pep/types/message_get_private_keyshares.go +++ b/x/pep/types/message_get_private_keyshares.go @@ -9,17 +9,21 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -var _ sdk.Msg = &MsgGetPrivateKeyshares{} - -func NewMsgGetPrivateKeyshares(creator string, reqId string, pubkey string) *MsgGetPrivateKeyshares { - return &MsgGetPrivateKeyshares{ +var _ sdk.Msg = &MsgRequestPrivateDecryptionKey{} + +func NewMsgRequestPrivateDecryptionKey( + creator string, + reqId string, + pubkey string, +) *MsgRequestPrivateDecryptionKey { + return &MsgRequestPrivateDecryptionKey{ Creator: creator, ReqId: reqId, SecpPubkey: pubkey, } } -func (msg *MsgGetPrivateKeyshares) ValidateBasic() error { +func (msg *MsgRequestPrivateDecryptionKey) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) diff --git a/x/pep/types/message_get_private_keyshares_test.go b/x/pep/types/message_get_private_keyshares_test.go index f3e254a8..d5a42174 100644 --- a/x/pep/types/message_get_private_keyshares_test.go +++ b/x/pep/types/message_get_private_keyshares_test.go @@ -11,18 +11,18 @@ import ( func TestMsgGetPrivateKeyshares_ValidateBasic(t *testing.T) { tests := []struct { name string - msg MsgGetPrivateKeyshares + msg MsgRequestPrivateDecryptionKey err error }{ { name: "invalid address", - msg: MsgGetPrivateKeyshares{ + msg: MsgRequestPrivateDecryptionKey{ Creator: "invalid_address", }, err: sdkerrors.ErrInvalidAddress, }, { name: "valid address", - msg: MsgGetPrivateKeyshares{ + msg: MsgRequestPrivateDecryptionKey{ Creator: sample.AccAddress(), }, }, diff --git a/x/pep/types/msg_aggregated_key_share.go b/x/pep/types/msg_aggregated_key_share.go index af40886c..6e7c55ff 100644 --- a/x/pep/types/msg_aggregated_key_share.go +++ b/x/pep/types/msg_aggregated_key_share.go @@ -7,24 +7,24 @@ import ( ) const ( - TypeMsgCreateAggregatedKeyShare = "create_aggregated_key_share" + TypeMsgSubmitDecryptionKey = "submit_decryption_key" ) -var _ sdk.Msg = &MsgCreateAggregatedKeyShare{} +var _ sdk.Msg = &MsgSubmitDecryptionKey{} -func NewMsgCreateAggregatedKeyShare( +func NewMsgSubmitDecryptionKey( creator string, height uint64, data string, -) *MsgCreateAggregatedKeyShare { - return &MsgCreateAggregatedKeyShare{ +) *MsgSubmitDecryptionKey { + return &MsgSubmitDecryptionKey{ Creator: creator, Height: height, Data: data, } } -func (msg *MsgCreateAggregatedKeyShare) ValidateBasic() error { +func (msg *MsgSubmitDecryptionKey) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { return sdkerrors.Wrapf(cosmoserror.ErrInvalidAddress, "invalid creator address (%s)", err) diff --git a/x/pep/types/msg_get_general_key_share.go b/x/pep/types/msg_get_general_key_share.go index 85c29d87..7a6ca5a3 100644 --- a/x/pep/types/msg_get_general_key_share.go +++ b/x/pep/types/msg_get_general_key_share.go @@ -6,18 +6,18 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -const TypeMsgGetGeneralKeyshare = "get_general_keyshare" +const TypeMsgRequestGeneralDecryptionKey = "request_general_decryption_key" -var _ sdk.Msg = &MsgGetGeneralKeyshare{} +var _ sdk.Msg = &MsgRequestGeneralDecryptionKey{} -func NewMsgGetGeneralKeyshare(creator string, reqID string) *MsgGetGeneralKeyshare { - return &MsgGetGeneralKeyshare{ +func NewMsgRequestGeneralDecryptionKey(creator string, reqID string) *MsgRequestGeneralDecryptionKey { + return &MsgRequestGeneralDecryptionKey{ Creator: creator, ReqId: reqID, } } -func (msg *MsgGetGeneralKeyshare) ValidateBasic() error { +func (msg *MsgRequestGeneralDecryptionKey) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { return sdkioerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) diff --git a/x/pep/types/msg_request_general_key_share.go b/x/pep/types/msg_request_general_key_share.go index 7fb5ef8a..286cd3e4 100644 --- a/x/pep/types/msg_request_general_key_share.go +++ b/x/pep/types/msg_request_general_key_share.go @@ -8,19 +8,23 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -const TypeMsgRequestGeneralKeyshare = "request_general_keyshare" +const TypeMsgRequestGeneralIdentity = "request_general_identity" -var _ sdk.Msg = &MsgRequestGeneralKeyshare{} +var _ sdk.Msg = &MsgRequestGeneralIdentity{} -func NewMsgRequestGeneralKeyshare(creator string, estimatedDelay time.Duration, reqID string) *MsgRequestGeneralKeyshare { - return &MsgRequestGeneralKeyshare{ +func NewMsgRequestGeneralIdentity( + creator string, + estimatedDelay time.Duration, + reqID string, +) *MsgRequestGeneralIdentity { + return &MsgRequestGeneralIdentity{ Creator: creator, EstimatedDelay: &estimatedDelay, ReqId: reqID, } } -func (msg *MsgRequestGeneralKeyshare) ValidateBasic() error { +func (msg *MsgRequestGeneralIdentity) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { return sdkioerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) diff --git a/x/pep/types/params.go b/x/pep/types/params.go index 656fd658..90cdf819 100644 --- a/x/pep/types/params.go +++ b/x/pep/types/params.go @@ -23,7 +23,7 @@ var ( var ( KeyMinGasPrice = []byte("MinGasPrice") DefaultMinGasPrice = sdk.NewCoin("ufairy", cosmosmath.NewInt(300000)) - KeyKeysharePrice = []byte("PrivateKeysharePrice") + DecryptionKeyPrice = []byte("PrivateKeysPrice") DefaultKeysharePrice = sdk.NewCoin("ufairy", cosmosmath.NewInt(300000)) ) @@ -49,15 +49,15 @@ func NewParams( keyshareChannelID string, minGasPrice *sdk.Coin, isSourceChain bool, - keysharePrice *sdk.Coin, + decryptionKeyPrice *sdk.Coin, ) Params { return Params{ - TrustedAddresses: trAddrs, - TrustedCounterParties: trustedParties, - KeyshareChannelId: keyshareChannelID, - MinGasPrice: minGasPrice, - IsSourceChain: isSourceChain, - PrivateKeysharePrice: keysharePrice, + TrustedAddresses: trAddrs, + TrustedCounterParties: trustedParties, + KeyshareChannelId: keyshareChannelID, + MinGasPrice: minGasPrice, + IsSourceChain: isSourceChain, + PrivateDecryptionKeyPrice: decryptionKeyPrice, } } @@ -81,7 +81,7 @@ func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { paramtypes.NewParamSetPair(KeyKeyshareChannelID, &p.KeyshareChannelId, validateKeyshareChannelId), paramtypes.NewParamSetPair(KeyMinGasPrice, &p.MinGasPrice, validateMinGasPrice), paramtypes.NewParamSetPair(KeyIsSourceChain, &p.IsSourceChain, validateIsSourceChain), - paramtypes.NewParamSetPair(KeyKeysharePrice, &p.PrivateKeysharePrice, validateMinGasPrice), + paramtypes.NewParamSetPair(DecryptionKeyPrice, &p.PrivateDecryptionKeyPrice, validateMinGasPrice), } } @@ -103,7 +103,7 @@ func (p Params) Validate() error { return err } - if err := validateMinGasPrice(p.PrivateKeysharePrice); err != nil { + if err := validateMinGasPrice(p.PrivateDecryptionKeyPrice); err != nil { return err } diff --git a/x/pep/types/query.pb.go b/x/pep/types/query.pb.go index 13e2d82b..a0c5f1a4 100644 --- a/x/pep/types/query.pb.go +++ b/x/pep/types/query.pb.go @@ -860,21 +860,21 @@ func (m *QueryPepNonceAllResponse) GetPagination() *query.PageResponse { } // QueryPubKeyRequest is request type for the Query/PubKey RPC method. -type QueryPubKeyRequest struct { +type QueryPubkeyRequest struct { } -func (m *QueryPubKeyRequest) Reset() { *m = QueryPubKeyRequest{} } -func (m *QueryPubKeyRequest) String() string { return proto.CompactTextString(m) } -func (*QueryPubKeyRequest) ProtoMessage() {} -func (*QueryPubKeyRequest) Descriptor() ([]byte, []int) { +func (m *QueryPubkeyRequest) Reset() { *m = QueryPubkeyRequest{} } +func (m *QueryPubkeyRequest) String() string { return proto.CompactTextString(m) } +func (*QueryPubkeyRequest) ProtoMessage() {} +func (*QueryPubkeyRequest) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{18} } -func (m *QueryPubKeyRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryPubkeyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryPubKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPubkeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryPubKeyRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPubkeyRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -884,36 +884,36 @@ func (m *QueryPubKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *QueryPubKeyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPubKeyRequest.Merge(m, src) +func (m *QueryPubkeyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPubkeyRequest.Merge(m, src) } -func (m *QueryPubKeyRequest) XXX_Size() int { +func (m *QueryPubkeyRequest) XXX_Size() int { return m.Size() } -func (m *QueryPubKeyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPubKeyRequest.DiscardUnknown(m) +func (m *QueryPubkeyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPubkeyRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryPubKeyRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryPubkeyRequest proto.InternalMessageInfo // QueryPubKeyResponse is response type for the Query/PubKey RPC method. -type QueryPubKeyResponse struct { - ActivePubKey types.ActivePublicKey `protobuf:"bytes,1,opt,name=active_pub_key,json=activePubKey,proto3" json:"active_pub_key"` - QueuedPubKey types.QueuedPublicKey `protobuf:"bytes,2,opt,name=queued_pub_key,json=queuedPubKey,proto3" json:"queued_pub_key"` +type QueryPubkeyResponse struct { + ActivePubkey types.ActivePublicKey `protobuf:"bytes,1,opt,name=active_pubkey,json=activePubkey,proto3" json:"active_pubkey"` + QueuedPubkey types.QueuedPublicKey `protobuf:"bytes,2,opt,name=queued_pubkey,json=queuedPubkey,proto3" json:"queued_pubkey"` } -func (m *QueryPubKeyResponse) Reset() { *m = QueryPubKeyResponse{} } -func (m *QueryPubKeyResponse) String() string { return proto.CompactTextString(m) } -func (*QueryPubKeyResponse) ProtoMessage() {} -func (*QueryPubKeyResponse) Descriptor() ([]byte, []int) { +func (m *QueryPubkeyResponse) Reset() { *m = QueryPubkeyResponse{} } +func (m *QueryPubkeyResponse) String() string { return proto.CompactTextString(m) } +func (*QueryPubkeyResponse) ProtoMessage() {} +func (*QueryPubkeyResponse) Descriptor() ([]byte, []int) { return fileDescriptor_dd36cf23112e8be0, []int{19} } -func (m *QueryPubKeyResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryPubkeyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryPubKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryPubkeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryPubKeyResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryPubkeyResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -923,28 +923,28 @@ func (m *QueryPubKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *QueryPubKeyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryPubKeyResponse.Merge(m, src) +func (m *QueryPubkeyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryPubkeyResponse.Merge(m, src) } -func (m *QueryPubKeyResponse) XXX_Size() int { +func (m *QueryPubkeyResponse) XXX_Size() int { return m.Size() } -func (m *QueryPubKeyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryPubKeyResponse.DiscardUnknown(m) +func (m *QueryPubkeyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryPubkeyResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryPubKeyResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryPubkeyResponse proto.InternalMessageInfo -func (m *QueryPubKeyResponse) GetActivePubKey() types.ActivePublicKey { +func (m *QueryPubkeyResponse) GetActivePubkey() types.ActivePublicKey { if m != nil { - return m.ActivePubKey + return m.ActivePubkey } return types.ActivePublicKey{} } -func (m *QueryPubKeyResponse) GetQueuedPubKey() types.QueuedPublicKey { +func (m *QueryPubkeyResponse) GetQueuedPubkey() types.QueuedPublicKey { if m != nil { - return m.QueuedPubKey + return m.QueuedPubkey } return types.QueuedPublicKey{} } @@ -1066,7 +1066,7 @@ func (m *QueryPrivateIdentityResponse) GetPrivateDecryptionKeys() []*types.Priva // QueryDecryptDataRequest is request type for the Query/DecryptData RPC method. type QueryDecryptDataRequest struct { Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"` - AggrKeyshare string `protobuf:"bytes,2,opt,name=aggr_keyshare,json=aggrKeyshare,proto3" json:"aggr_keyshare,omitempty"` + DecryptionKey string `protobuf:"bytes,2,opt,name=decryption_key,json=decryptionKey,proto3" json:"decryption_key,omitempty"` EncryptedData string `protobuf:"bytes,3,opt,name=encrypted_data,json=encryptedData,proto3" json:"encrypted_data,omitempty"` } @@ -1110,9 +1110,9 @@ func (m *QueryDecryptDataRequest) GetPubkey() string { return "" } -func (m *QueryDecryptDataRequest) GetAggrKeyshare() string { +func (m *QueryDecryptDataRequest) GetDecryptionKey() string { if m != nil { - return m.AggrKeyshare + return m.DecryptionKey } return "" } @@ -1188,8 +1188,8 @@ func init() { proto.RegisterType((*QueryPepNonceResponse)(nil), "fairyring.pep.QueryPepNonceResponse") proto.RegisterType((*QueryPepNonceAllRequest)(nil), "fairyring.pep.QueryPepNonceAllRequest") proto.RegisterType((*QueryPepNonceAllResponse)(nil), "fairyring.pep.QueryPepNonceAllResponse") - proto.RegisterType((*QueryPubKeyRequest)(nil), "fairyring.pep.QueryPubKeyRequest") - proto.RegisterType((*QueryPubKeyResponse)(nil), "fairyring.pep.QueryPubKeyResponse") + proto.RegisterType((*QueryPubkeyRequest)(nil), "fairyring.pep.QueryPubkeyRequest") + proto.RegisterType((*QueryPubkeyResponse)(nil), "fairyring.pep.QueryPubkeyResponse") proto.RegisterType((*QueryPrivateIdentityRequest)(nil), "fairyring.pep.QueryPrivateIdentityRequest") proto.RegisterType((*QueryPrivateIdentityResponse)(nil), "fairyring.pep.QueryPrivateIdentityResponse") proto.RegisterType((*QueryDecryptDataRequest)(nil), "fairyring.pep.QueryDecryptDataRequest") @@ -1199,93 +1199,91 @@ func init() { func init() { proto.RegisterFile("fairyring/pep/query.proto", fileDescriptor_dd36cf23112e8be0) } var fileDescriptor_dd36cf23112e8be0 = []byte{ - // 1364 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xdf, 0x6f, 0xdb, 0x54, - 0x14, 0xae, 0xbb, 0x2e, 0xdb, 0x6e, 0xdb, 0x0c, 0x2e, 0xed, 0x9a, 0x79, 0x5b, 0xda, 0xdd, 0xb6, - 0xdb, 0xc8, 0xb4, 0x78, 0x6b, 0x8b, 0x84, 0xc6, 0x53, 0x4b, 0xdb, 0x31, 0x65, 0x6c, 0x6d, 0x36, - 0x69, 0x12, 0x0f, 0x58, 0x37, 0xf1, 0xc5, 0xb5, 0x96, 0xd8, 0x8e, 0x7d, 0x53, 0x35, 0x0a, 0x91, - 0x00, 0x21, 0xf1, 0xc2, 0x03, 0x12, 0x8f, 0x20, 0xf1, 0x86, 0x78, 0x44, 0xe2, 0x01, 0x09, 0x1e, - 0x79, 0x60, 0x8f, 0x93, 0x78, 0xe1, 0x09, 0xa1, 0x16, 0x89, 0x7f, 0x03, 0xf9, 0xfa, 0x38, 0xb1, - 0x9d, 0x9b, 0x26, 0x15, 0xdb, 0x4b, 0x55, 0x1f, 0x9f, 0x73, 0xbe, 0xef, 0xfc, 0xf0, 0xfd, 0xec, - 0xa0, 0x8b, 0x1f, 0x51, 0xcb, 0x6b, 0x79, 0x96, 0x6d, 0x6a, 0x2e, 0x73, 0xb5, 0x46, 0x93, 0x79, - 0xad, 0xa2, 0xeb, 0x39, 0xdc, 0xc1, 0xd3, 0xdd, 0x5b, 0x45, 0x97, 0xb9, 0xea, 0xeb, 0xb4, 0x6e, - 0xd9, 0x8e, 0x26, 0xfe, 0x86, 0x1e, 0xea, 0x8c, 0xe9, 0x98, 0x8e, 0xf8, 0x57, 0x0b, 0xfe, 0x03, - 0xeb, 0x65, 0xd3, 0x71, 0xcc, 0x1a, 0xd3, 0xa8, 0x6b, 0x69, 0xd4, 0xb6, 0x1d, 0x4e, 0xb9, 0xe5, - 0xd8, 0x3e, 0xdc, 0x2d, 0x54, 0x1d, 0xbf, 0xee, 0xf8, 0x5a, 0x85, 0xfa, 0x2c, 0x84, 0xd3, 0xf6, - 0xef, 0x54, 0x18, 0xa7, 0x77, 0x34, 0x97, 0x9a, 0x96, 0x2d, 0x9c, 0xc1, 0x57, 0x4d, 0x92, 0x73, - 0xa9, 0x47, 0xeb, 0x51, 0x9e, 0x85, 0xe4, 0x3d, 0x66, 0x57, 0xbd, 0x96, 0xcb, 0x99, 0xa1, 0xf3, - 0x03, 0xf0, 0xb8, 0x92, 0x8a, 0x66, 0xae, 0x6e, 0x3b, 0x76, 0x95, 0xc1, 0xed, 0xc5, 0xde, 0xed, - 0xaa, 0x53, 0xaf, 0x3b, 0xb6, 0xe6, 0xef, 0x51, 0x2f, 0x48, 0xd0, 0x72, 0x19, 0xa0, 0x90, 0x19, - 0x84, 0x77, 0x03, 0x8e, 0x3b, 0x02, 0xba, 0xcc, 0x1a, 0x4d, 0xe6, 0x73, 0xf2, 0x08, 0xbd, 0x91, - 0xb0, 0xfa, 0xae, 0x63, 0xfb, 0x0c, 0xbf, 0x8d, 0x32, 0x21, 0xc5, 0x9c, 0xb2, 0xa0, 0xdc, 0x98, - 0x5c, 0x99, 0x2d, 0x26, 0x3a, 0x58, 0x0c, 0xdd, 0x37, 0xce, 0x3d, 0xff, 0x6b, 0x7e, 0xec, 0x87, - 0x7f, 0x7f, 0x2c, 0x28, 0x65, 0xf0, 0x27, 0x6b, 0xe8, 0x92, 0x48, 0x78, 0x8f, 0xd9, 0xcc, 0xa3, - 0xb5, 0xfb, 0x06, 0xb3, 0xb9, 0xc5, 0x5b, 0x80, 0x87, 0x67, 0x51, 0xc6, 0x63, 0x0d, 0xdd, 0x32, - 0x44, 0xe2, 0x73, 0xe5, 0xd3, 0x1e, 0x6b, 0xdc, 0x37, 0x88, 0x8d, 0x2e, 0xcb, 0xa3, 0x80, 0xcf, - 0x43, 0x74, 0xde, 0x0b, 0x33, 0xe8, 0x06, 0xe3, 0xd4, 0xaa, 0x45, 0xc4, 0x96, 0x53, 0xc4, 0xa2, - 0xc8, 0xad, 0x03, 0x56, 0x6d, 0x06, 0xfd, 0xdf, 0xb2, 0xb9, 0xd7, 0x2a, 0x67, 0x21, 0x7a, 0x33, - 0x0c, 0x26, 0x7b, 0x28, 0x2f, 0xc3, 0x5b, 0xaf, 0xd5, 0x22, 0xa2, 0xdb, 0x08, 0xf5, 0x86, 0x08, - 0x60, 0xd7, 0x8a, 0xe1, 0xc4, 0x8b, 0xc1, 0xc4, 0x8b, 0xe1, 0x82, 0xc1, 0xc4, 0x8b, 0x3b, 0xd4, - 0x64, 0x10, 0x5b, 0x8e, 0x45, 0x92, 0xdf, 0x14, 0x34, 0x3f, 0x10, 0x0a, 0xaa, 0x7b, 0x8a, 0x66, - 0x52, 0xd5, 0xe9, 0x35, 0xcb, 0xe7, 0x39, 0x65, 0xe1, 0xd4, 0xe8, 0x25, 0xe2, 0x64, 0x89, 0x0f, - 0x2c, 0x9f, 0xe3, 0x7b, 0x89, 0x22, 0xc6, 0x45, 0x11, 0xd7, 0x87, 0x16, 0x11, 0xb2, 0x4a, 0x54, - 0xf1, 0x04, 0xcd, 0x89, 0x22, 0xb6, 0xa2, 0xdd, 0x7c, 0x72, 0x10, 0x35, 0x6a, 0x11, 0x4d, 0x73, - 0xea, 0x99, 0x8c, 0xeb, 0x7b, 0xcc, 0x32, 0xf7, 0xb8, 0xe8, 0xd5, 0x44, 0x79, 0x2a, 0x34, 0xbe, - 0x27, 0x6c, 0x78, 0x06, 0x9d, 0xb6, 0x6c, 0x83, 0x1d, 0x08, 0x0e, 0x13, 0xe5, 0xf0, 0x82, 0xe8, - 0x28, 0xd7, 0x9f, 0x15, 0x7a, 0xf2, 0x2e, 0x9a, 0x8a, 0x3f, 0x08, 0x30, 0x01, 0x35, 0xd5, 0x8b, - 0x58, 0xe4, 0xc6, 0x44, 0xb0, 0x8c, 0xe5, 0x49, 0xd6, 0x33, 0x11, 0x03, 0xa9, 0x69, 0x80, 0x57, - 0x30, 0xe2, 0x5f, 0x15, 0xd8, 0xf9, 0x34, 0x0c, 0x94, 0xf2, 0x18, 0xe1, 0x78, 0x29, 0x3a, 0xf5, - 0x3c, 0xda, 0x82, 0xe1, 0xce, 0x0f, 0x2e, 0x68, 0x3d, 0x70, 0x83, 0xaa, 0x5e, 0x63, 0x29, 0xfb, - 0xcb, 0x1b, 0x6d, 0x09, 0x2d, 0x49, 0xc8, 0x6f, 0x7b, 0x4e, 0x3d, 0x9c, 0xdd, 0x49, 0xe6, 0x4c, - 0x3e, 0x46, 0xcb, 0x43, 0x92, 0x0d, 0xe9, 0x89, 0xf2, 0x3f, 0x7a, 0x42, 0x54, 0xd8, 0xa7, 0x07, - 0x94, 0x33, 0x9f, 0x27, 0xe8, 0x93, 0x55, 0x74, 0x51, 0x72, 0x0f, 0xd8, 0x5c, 0x40, 0x99, 0x44, - 0x51, 0x70, 0x45, 0x6e, 0xa3, 0x99, 0xf0, 0x74, 0x64, 0xee, 0xc3, 0xe0, 0xbc, 0x8d, 0x7a, 0x91, - 0x43, 0x67, 0xa8, 0x61, 0x78, 0xcc, 0xf7, 0xe1, 0x18, 0x8b, 0x2e, 0xc9, 0x63, 0x34, 0x9b, 0x8a, - 0x00, 0x88, 0xbb, 0xe8, 0x5c, 0xf7, 0xd8, 0x86, 0x3a, 0xe7, 0xd2, 0x87, 0x2a, 0xc4, 0x40, 0x7d, - 0x67, 0x5d, 0xb8, 0x26, 0x14, 0x9e, 0xbe, 0xc8, 0xe1, 0x15, 0xec, 0xf0, 0x77, 0x0a, 0xf4, 0x2e, - 0x81, 0x21, 0xe7, 0x7e, 0xea, 0x04, 0xdc, 0x5f, 0xde, 0x9e, 0x76, 0xf5, 0xab, 0x59, 0x29, 0xb1, - 0x48, 0x4f, 0xc8, 0x4f, 0x4a, 0x24, 0x60, 0x60, 0x06, 0xca, 0xef, 0xa3, 0x2c, 0xad, 0x72, 0x6b, - 0x9f, 0xe9, 0x6e, 0xb3, 0xa2, 0x3f, 0x63, 0xd1, 0x6e, 0x5d, 0x8d, 0xf1, 0x0e, 0xb5, 0xb2, 0xb8, - 0x2e, 0xfc, 0x76, 0x9a, 0x95, 0x9a, 0x55, 0x2d, 0xb1, 0x68, 0xbb, 0xa6, 0x68, 0x64, 0x2e, 0xb1, - 0x56, 0x90, 0xae, 0xd1, 0x64, 0x4d, 0x66, 0x74, 0xd3, 0x8d, 0x0f, 0x4a, 0xb7, 0x2b, 0xfc, 0xfa, - 0xd2, 0x35, 0x22, 0x73, 0x89, 0xb5, 0xba, 0x22, 0xb9, 0xe3, 0x59, 0xfb, 0x94, 0xb3, 0x11, 0x45, - 0xf2, 0x77, 0x05, 0x54, 0xb2, 0x2f, 0x0c, 0x8a, 0xce, 0xa1, 0x33, 0x55, 0x8f, 0x51, 0xee, 0x78, - 0xd1, 0x5a, 0xc2, 0x65, 0x2c, 0xe3, 0x78, 0x2c, 0x63, 0xb0, 0xf7, 0x6e, 0xb3, 0x12, 0x94, 0x73, - 0x4a, 0x98, 0xe1, 0x0a, 0x7f, 0x88, 0xe6, 0xdc, 0x10, 0x43, 0x37, 0x98, 0x78, 0xc8, 0x2c, 0xc7, - 0x0e, 0xca, 0xf6, 0x73, 0x13, 0x62, 0xfc, 0xd7, 0xfa, 0xeb, 0x06, 0x52, 0x9b, 0x5d, 0xff, 0x60, - 0x1c, 0xb3, 0xae, 0xc4, 0xea, 0x93, 0x0e, 0x2c, 0x34, 0x98, 0x37, 0x29, 0xa7, 0x51, 0xed, 0x3d, - 0x4a, 0x4a, 0x82, 0xd2, 0x22, 0x9a, 0xa6, 0xa6, 0xe9, 0x09, 0x12, 0xc1, 0xcb, 0x0d, 0x14, 0x32, - 0x15, 0x18, 0x4b, 0x60, 0xc3, 0xcb, 0x28, 0xdb, 0x3b, 0x55, 0x0c, 0xca, 0x29, 0xd4, 0x35, 0xdd, - 0xb5, 0x06, 0x50, 0x64, 0x1d, 0x76, 0x3d, 0x01, 0x0f, 0x3d, 0x5c, 0x46, 0x59, 0x28, 0x39, 0x4a, - 0x11, 0xf2, 0x98, 0xee, 0x5a, 0x03, 0xf7, 0x95, 0xcf, 0xb3, 0xe8, 0xb4, 0xc8, 0x81, 0x6d, 0x94, - 0x09, 0xdf, 0x86, 0xf0, 0xd5, 0xd4, 0x33, 0xd1, 0xff, 0xba, 0xa5, 0x92, 0xe3, 0x5c, 0x42, 0x06, - 0xe4, 0xca, 0x67, 0x7f, 0xfc, 0xf3, 0xf5, 0xf8, 0x1c, 0x9e, 0xd5, 0x64, 0xef, 0x8c, 0xf8, 0x1b, - 0x05, 0x4d, 0xc6, 0x4e, 0x44, 0x7c, 0x4d, 0x96, 0xb2, 0x5f, 0xa7, 0xd5, 0xeb, 0x43, 0xfd, 0x00, - 0xff, 0x1d, 0x81, 0xff, 0x16, 0x5e, 0xd5, 0x06, 0xbf, 0x97, 0x6a, 0xed, 0x84, 0x16, 0x74, 0xb4, - 0xb6, 0x50, 0xf4, 0x0e, 0xfe, 0x52, 0x41, 0xd9, 0xe4, 0xe1, 0x8f, 0xdf, 0x1c, 0x02, 0xdc, 0x3b, - 0xcd, 0xd4, 0xc2, 0x28, 0xae, 0x40, 0x73, 0x51, 0xd0, 0xbc, 0x82, 0x2f, 0x1d, 0x43, 0x13, 0xff, - 0xa2, 0xa0, 0xdc, 0x20, 0x2d, 0xc2, 0xab, 0xc3, 0xd1, 0xfa, 0x64, 0x50, 0x5d, 0x3b, 0x59, 0x10, - 0x90, 0x5d, 0x15, 0x64, 0x6f, 0xe1, 0x9b, 0x27, 0xe8, 0x29, 0xfe, 0x42, 0x41, 0x53, 0x71, 0xb9, - 0xc2, 0xd2, 0x11, 0x4a, 0xc4, 0x4e, 0xbd, 0x31, 0xdc, 0x11, 0x88, 0x2d, 0x09, 0x62, 0x79, 0x7c, - 0x39, 0x45, 0xac, 0x26, 0x9c, 0x81, 0x0a, 0xfe, 0x54, 0x41, 0x67, 0xa3, 0x13, 0x1e, 0x2f, 0x4a, - 0x77, 0x38, 0xa9, 0x90, 0xea, 0xd2, 0xf1, 0x4e, 0x80, 0x5e, 0x10, 0xe8, 0x4b, 0x98, 0x68, 0x03, - 0x3e, 0x70, 0xb4, 0x36, 0x08, 0x6b, 0x07, 0x7f, 0xa2, 0xa0, 0xc9, 0x98, 0x38, 0xc9, 0xf7, 0xbe, - 0x5f, 0x21, 0xe5, 0x7b, 0x2f, 0x51, 0x39, 0xb2, 0x20, 0xc8, 0xa8, 0x38, 0x37, 0x88, 0x0c, 0x76, - 0x50, 0x06, 0xf4, 0x40, 0xfe, 0xa8, 0xc7, 0x95, 0x69, 0xc0, 0xa3, 0x9e, 0x50, 0x29, 0x92, 0x17, - 0x90, 0x39, 0x7c, 0x21, 0x0d, 0x19, 0x8a, 0x0c, 0xfe, 0x56, 0x41, 0xe7, 0x53, 0xdf, 0x0d, 0x58, - 0xfa, 0x8c, 0xc8, 0xbf, 0xb6, 0xd4, 0x9b, 0x23, 0xf9, 0x02, 0x99, 0xdb, 0x82, 0x4c, 0x01, 0xdf, - 0x48, 0x91, 0x31, 0x43, 0x7f, 0xdd, 0x82, 0x00, 0xad, 0x1d, 0x4a, 0x49, 0x27, 0xa0, 0x87, 0xfb, - 0x3f, 0x6b, 0xf0, 0xad, 0x11, 0x50, 0x63, 0x03, 0x2a, 0x8e, 0xea, 0x0e, 0x3c, 0xaf, 0x0b, 0x9e, - 0x57, 0xf1, 0xfc, 0x10, 0x9e, 0xf8, 0x7b, 0x05, 0x9d, 0x4f, 0x49, 0xa5, 0xbc, 0x7b, 0x72, 0x19, - 0x96, 0x77, 0x6f, 0x80, 0xf6, 0x92, 0xbb, 0x82, 0xd5, 0x1a, 0x5e, 0xd1, 0xb6, 0xa9, 0xe5, 0x55, - 0x6a, 0x4e, 0xf5, 0x59, 0x7a, 0xa8, 0xa0, 0xa8, 0xfd, 0x7d, 0xfc, 0x59, 0x41, 0x93, 0x31, 0x2d, - 0x92, 0xaf, 0x76, 0xbf, 0x56, 0xca, 0x57, 0x5b, 0x22, 0x6a, 0xe4, 0xa9, 0x20, 0xb7, 0x8b, 0x1f, - 0x0d, 0x24, 0x07, 0xea, 0x26, 0x14, 0x4f, 0x6b, 0x87, 0x9a, 0xdb, 0xd1, 0xda, 0x09, 0xc9, 0xed, - 0x68, 0xed, 0xa4, 0xba, 0x76, 0x36, 0x36, 0x9f, 0x1f, 0xe6, 0x95, 0x17, 0x87, 0x79, 0xe5, 0xef, - 0xc3, 0xbc, 0xf2, 0xd5, 0x51, 0x7e, 0xec, 0xc5, 0x51, 0x7e, 0xec, 0xcf, 0xa3, 0xfc, 0xd8, 0x07, - 0x05, 0xd3, 0xe2, 0x7b, 0xcd, 0x4a, 0xf0, 0x76, 0x20, 0x05, 0x3d, 0x10, 0xb0, 0xe2, 0x07, 0x8a, - 0x4a, 0x46, 0xfc, 0x42, 0xb1, 0xfa, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcd, 0xd8, 0xe0, 0x49, - 0xc2, 0x11, 0x00, 0x00, + // 1338 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcb, 0x6f, 0xe3, 0x44, + 0x18, 0xef, 0xf4, 0xb5, 0xdb, 0xe9, 0x0b, 0x86, 0x96, 0x66, 0xbd, 0x6d, 0xda, 0xba, 0x4f, 0xb2, + 0xda, 0x78, 0xb7, 0x2d, 0x12, 0x5a, 0x4e, 0x2d, 0x6d, 0x97, 0x55, 0xab, 0xa5, 0x9b, 0x5d, 0x09, + 0xc4, 0x01, 0x6b, 0x12, 0x0f, 0xa9, 0xd5, 0xc4, 0x76, 0xec, 0x49, 0xd5, 0x28, 0x44, 0x3c, 0x84, + 0xc4, 0x85, 0x03, 0x12, 0x47, 0x90, 0xb8, 0x21, 0x8e, 0x70, 0x43, 0x70, 0xe4, 0xc0, 0x1e, 0x57, + 0xe2, 0xc2, 0x09, 0xa1, 0x16, 0x89, 0x7f, 0x03, 0x79, 0xfc, 0x39, 0xb1, 0x9d, 0x49, 0x93, 0x8a, + 0xdd, 0x4b, 0xd5, 0xf9, 0xfc, 0x3d, 0x7e, 0xbf, 0x6f, 0xbe, 0x99, 0x9f, 0x1d, 0x7c, 0xe3, 0x43, + 0x6a, 0xba, 0x35, 0xd7, 0xb4, 0x8a, 0x9a, 0xc3, 0x1c, 0xad, 0x52, 0x65, 0x6e, 0x2d, 0xeb, 0xb8, + 0x36, 0xb7, 0xc9, 0x78, 0xf3, 0x51, 0xd6, 0x61, 0x8e, 0xf2, 0x32, 0x2d, 0x9b, 0x96, 0xad, 0x89, + 0xbf, 0x81, 0x87, 0x92, 0x29, 0xd8, 0x5e, 0xd9, 0xf6, 0xb4, 0x3c, 0xf5, 0x58, 0x10, 0xaa, 0x9d, + 0xde, 0xcd, 0x33, 0x4e, 0xef, 0x6a, 0x0e, 0x2d, 0x9a, 0x16, 0xe5, 0xa6, 0x6d, 0x81, 0xef, 0x52, + 0xab, 0x50, 0xc1, 0x2e, 0x97, 0x6d, 0x4b, 0xf3, 0x8e, 0xa9, 0xcb, 0x0c, 0x9d, 0xd7, 0x1c, 0xe6, + 0x81, 0xd3, 0x42, 0x1c, 0x0d, 0xb3, 0x0a, 0x6e, 0xcd, 0xe1, 0xbe, 0xd3, 0x19, 0x78, 0x28, 0x71, + 0x0f, 0x87, 0xba, 0xb4, 0x1c, 0x46, 0xcf, 0x25, 0x9e, 0x31, 0x47, 0xb7, 0x6c, 0xab, 0xc0, 0xe0, + 0xf1, 0x54, 0xd1, 0x2e, 0xda, 0xe2, 0x5f, 0xcd, 0xff, 0x0f, 0xac, 0xb3, 0x45, 0xdb, 0x2e, 0x96, + 0x98, 0x46, 0x1d, 0x53, 0xa3, 0x96, 0x65, 0x73, 0x01, 0x1a, 0x52, 0xaa, 0x53, 0x98, 0x3c, 0xf2, + 0x79, 0x1d, 0x89, 0x3a, 0x39, 0x56, 0xa9, 0x32, 0x8f, 0xab, 0xef, 0xe0, 0x57, 0x62, 0x56, 0xcf, + 0xb1, 0x2d, 0x8f, 0x91, 0x37, 0xf0, 0x70, 0x80, 0x27, 0x85, 0x16, 0xd0, 0xfa, 0xe8, 0xc6, 0x74, + 0x36, 0xd6, 0xc1, 0x6c, 0xe0, 0xbe, 0x33, 0xf2, 0xf4, 0xaf, 0xf9, 0xbe, 0x1f, 0xfe, 0xfd, 0x31, + 0x83, 0x72, 0xe0, 0xaf, 0x6e, 0xe1, 0x9b, 0x22, 0xe1, 0x7d, 0x66, 0x31, 0x97, 0x96, 0x1e, 0x18, + 0xcc, 0xe2, 0x26, 0xaf, 0x41, 0x3d, 0x32, 0x8d, 0x87, 0x5d, 0x56, 0xd1, 0x4d, 0x43, 0x24, 0x1e, + 0xc9, 0x0d, 0xb9, 0xac, 0xf2, 0xc0, 0x50, 0x2d, 0x3c, 0x2b, 0x8f, 0x02, 0x3c, 0x0f, 0xf1, 0xa4, + 0x1b, 0x64, 0xd0, 0x0d, 0xc6, 0xa9, 0x59, 0x0a, 0x81, 0xad, 0x24, 0x80, 0x85, 0x91, 0x7b, 0x67, + 0xac, 0x50, 0xf5, 0xe9, 0xef, 0x59, 0xdc, 0xad, 0xe5, 0x26, 0x20, 0x7a, 0x37, 0x08, 0x56, 0x8f, + 0x71, 0x5a, 0x56, 0x6f, 0xbb, 0x54, 0x0a, 0x81, 0xee, 0x63, 0xdc, 0xda, 0x78, 0x28, 0xb6, 0x9a, + 0x0d, 0xa6, 0x24, 0xeb, 0x4f, 0x49, 0x36, 0x18, 0x30, 0x98, 0x92, 0xec, 0x11, 0x2d, 0x32, 0x88, + 0xcd, 0x45, 0x22, 0xd5, 0xdf, 0x10, 0x9e, 0xef, 0x58, 0x0a, 0xd8, 0xbd, 0x8b, 0xa7, 0x12, 0xec, + 0xf4, 0x92, 0xe9, 0xf1, 0x14, 0x5a, 0x18, 0xe8, 0x9d, 0x22, 0x89, 0x53, 0x3c, 0x34, 0x3d, 0x4e, + 0xee, 0xc7, 0x48, 0xf4, 0x0b, 0x12, 0x6b, 0x5d, 0x49, 0x04, 0xa8, 0x62, 0x2c, 0x9e, 0xe0, 0x19, + 0x41, 0x62, 0x2f, 0x1c, 0xe3, 0x27, 0x67, 0x61, 0xa3, 0x96, 0xf0, 0x38, 0xa7, 0x6e, 0x91, 0x71, + 0xfd, 0x98, 0x99, 0xc5, 0x63, 0x2e, 0x7a, 0x35, 0x98, 0x1b, 0x0b, 0x8c, 0x6f, 0x0b, 0x1b, 0x99, + 0xc2, 0x43, 0xa6, 0x65, 0xb0, 0x33, 0x81, 0x61, 0x30, 0x17, 0x2c, 0x54, 0x1d, 0xa7, 0xda, 0xb3, + 0x42, 0x4f, 0xde, 0xc2, 0x63, 0xd1, 0x33, 0x03, 0x3b, 0xa0, 0x24, 0x7a, 0x11, 0x89, 0xdc, 0x19, + 0xf4, 0x87, 0x31, 0x37, 0xca, 0x5a, 0x26, 0xd5, 0xc0, 0x4a, 0xb2, 0xc0, 0x0b, 0xd8, 0xe2, 0x5f, + 0x11, 0xcc, 0x7c, 0xb2, 0x0c, 0x50, 0x79, 0x8c, 0x49, 0x94, 0x8a, 0x4e, 0x5d, 0x97, 0xd6, 0x60, + 0x73, 0xe7, 0x3b, 0x13, 0xda, 0xf6, 0xdd, 0x80, 0xd5, 0x4b, 0x2c, 0x61, 0x7f, 0x7e, 0x5b, 0x7b, + 0x80, 0x97, 0x25, 0xe0, 0xf7, 0x5d, 0xbb, 0x1c, 0xec, 0xdd, 0x55, 0xf6, 0x59, 0xfd, 0x08, 0xaf, + 0x74, 0x49, 0xd6, 0xa5, 0x27, 0xe8, 0x7f, 0xf4, 0x44, 0x55, 0x60, 0x9e, 0x0e, 0x29, 0x67, 0x1e, + 0x8f, 0xc1, 0x57, 0x37, 0xf1, 0x0d, 0xc9, 0x33, 0x40, 0xf3, 0x2a, 0x1e, 0x8e, 0x91, 0x82, 0x95, + 0x7a, 0x07, 0x4f, 0x05, 0xb7, 0x23, 0x73, 0x1e, 0xfa, 0xd7, 0x6f, 0xd8, 0x8b, 0x14, 0xbe, 0x46, + 0x0d, 0xc3, 0x65, 0x9e, 0x07, 0xd7, 0x58, 0xb8, 0x54, 0x1f, 0xe3, 0xe9, 0x44, 0x04, 0x94, 0xb8, + 0x87, 0x47, 0x9a, 0xb7, 0x38, 0xf0, 0x9c, 0x49, 0x5e, 0xaa, 0x10, 0x03, 0xfc, 0xae, 0x3b, 0xb0, + 0x56, 0x29, 0x9c, 0xbe, 0xd0, 0xe1, 0x05, 0xcc, 0xf0, 0x77, 0x08, 0x7a, 0x17, 0xab, 0x21, 0xc7, + 0x3e, 0x70, 0x05, 0xec, 0xcf, 0x6f, 0x4e, 0x9b, 0xfa, 0x55, 0xcd, 0x9f, 0xb0, 0x50, 0x4f, 0xd4, + 0x9f, 0x50, 0x28, 0x60, 0x60, 0x06, 0xc8, 0x87, 0x78, 0x9c, 0x16, 0xb8, 0x79, 0xca, 0x74, 0x47, + 0x3c, 0x80, 0xd6, 0x2c, 0x46, 0x60, 0x07, 0xda, 0x9d, 0xdd, 0x16, 0x6e, 0x47, 0xd5, 0x7c, 0xc9, + 0x2c, 0x1c, 0xb0, 0x70, 0xb8, 0xc6, 0x68, 0x68, 0x3e, 0x61, 0x35, 0x3f, 0x5b, 0xa5, 0xca, 0xaa, + 0xcc, 0x08, 0xb3, 0xf5, 0x77, 0xca, 0xf6, 0x48, 0xb8, 0xb5, 0x65, 0xab, 0x84, 0xe6, 0x13, 0x56, + 0x6b, 0x4a, 0xe4, 0x91, 0x6b, 0x9e, 0x52, 0xce, 0x7a, 0x94, 0xc8, 0xdf, 0x11, 0x68, 0x64, 0x5b, + 0x18, 0x50, 0x4e, 0xe1, 0x6b, 0x05, 0x97, 0x51, 0x6e, 0xbb, 0xe1, 0x50, 0xc2, 0x32, 0x92, 0xb1, + 0x3f, 0x92, 0xd1, 0x9f, 0x7a, 0xa0, 0x33, 0x20, 0xcc, 0xb0, 0x22, 0x1f, 0xe0, 0x19, 0x27, 0xa8, + 0xa1, 0x1b, 0x4c, 0x1c, 0x31, 0xd3, 0xb6, 0xf4, 0x13, 0x56, 0xf3, 0x52, 0x83, 0x62, 0xf3, 0x57, + 0xdb, 0x79, 0x03, 0xa8, 0xdd, 0xa6, 0xff, 0x01, 0xab, 0xe5, 0xa6, 0x1d, 0x89, 0xd5, 0x53, 0x3f, + 0x86, 0x71, 0x06, 0xf3, 0x2e, 0xe5, 0x34, 0xe4, 0xde, 0x82, 0x84, 0x62, 0x90, 0x56, 0xf0, 0x44, + 0x1c, 0x0a, 0x30, 0x19, 0x37, 0xa2, 0xa9, 0x7d, 0xb7, 0xd6, 0xad, 0x62, 0x50, 0x4e, 0x81, 0xd9, + 0x78, 0xd3, 0xea, 0x17, 0x53, 0xb7, 0x61, 0xd6, 0x63, 0x00, 0xa0, 0x8b, 0xad, 0x4a, 0x61, 0x0a, + 0x14, 0xab, 0x14, 0xa4, 0xd8, 0xf8, 0x7c, 0x02, 0x0f, 0x89, 0x1c, 0xc4, 0xc2, 0xc3, 0xc1, 0xdb, + 0x10, 0x59, 0x4c, 0x9c, 0x89, 0xf6, 0xd7, 0x2d, 0x45, 0xbd, 0xcc, 0x25, 0x40, 0xa0, 0xce, 0x7d, + 0xf6, 0xc7, 0x3f, 0x5f, 0xf7, 0xcf, 0x90, 0x69, 0x4d, 0xf6, 0x82, 0x48, 0xbe, 0x41, 0x78, 0x34, + 0x72, 0x23, 0x92, 0x55, 0x59, 0xca, 0x76, 0x9d, 0x56, 0xd6, 0xba, 0xfa, 0x41, 0xfd, 0x37, 0x45, + 0xfd, 0xd7, 0xc9, 0xa6, 0xd6, 0xf9, 0x15, 0x56, 0xab, 0xc7, 0xb4, 0xa0, 0xa1, 0xd5, 0x85, 0xa2, + 0x37, 0xc8, 0x97, 0x08, 0x4f, 0xc4, 0x2f, 0x7f, 0xf2, 0x5a, 0x97, 0xc2, 0xad, 0xdb, 0x4c, 0xc9, + 0xf4, 0xe2, 0x0a, 0x30, 0x97, 0x04, 0xcc, 0x39, 0x72, 0xf3, 0x12, 0x98, 0xe4, 0x17, 0x84, 0x53, + 0x9d, 0xb4, 0x88, 0x6c, 0x76, 0xaf, 0xd6, 0x26, 0x83, 0xca, 0xd6, 0xd5, 0x82, 0x00, 0xec, 0xa6, + 0x00, 0x7b, 0x9b, 0xdc, 0xba, 0x42, 0x4f, 0xc9, 0x17, 0x08, 0x8f, 0x45, 0xe5, 0x8a, 0x48, 0xb7, + 0x50, 0x22, 0x76, 0xca, 0x7a, 0x77, 0x47, 0x00, 0xb6, 0x2c, 0x80, 0xa5, 0xc9, 0x6c, 0x02, 0x58, + 0x49, 0x38, 0x03, 0x14, 0xf2, 0x29, 0xc2, 0xd7, 0xc3, 0x1b, 0x9e, 0x2c, 0x49, 0x67, 0x38, 0xae, + 0x90, 0xca, 0xf2, 0xe5, 0x4e, 0x50, 0x3d, 0x23, 0xaa, 0x2f, 0x13, 0x55, 0xeb, 0xf0, 0xbd, 0xa3, + 0xd5, 0x41, 0x58, 0x1b, 0xe4, 0x13, 0x84, 0x47, 0x23, 0xe2, 0x24, 0x9f, 0xfb, 0x76, 0x85, 0x94, + 0xcf, 0xbd, 0x44, 0xe5, 0xd4, 0x05, 0x01, 0x46, 0x21, 0xa9, 0x4e, 0x60, 0xc4, 0x51, 0x0f, 0xee, + 0x23, 0xf9, 0x51, 0x8f, 0x2a, 0x53, 0x87, 0xa3, 0x1e, 0x53, 0xa9, 0xce, 0x47, 0x3d, 0xa8, 0xf2, + 0x2d, 0xc2, 0x93, 0x89, 0xcf, 0x06, 0x22, 0x3d, 0x22, 0xf2, 0x8f, 0x2d, 0xe5, 0x56, 0x4f, 0xbe, + 0x80, 0xe5, 0x8e, 0xc0, 0x92, 0x21, 0xeb, 0x09, 0x2c, 0xc5, 0xc0, 0x5f, 0x37, 0x21, 0x40, 0xab, + 0x07, 0x5a, 0xd2, 0xf0, 0xe1, 0x91, 0xf6, 0xaf, 0x1a, 0x72, 0xbb, 0x87, 0xaa, 0x91, 0xfd, 0xc9, + 0xf6, 0xea, 0x0e, 0x38, 0xd7, 0x04, 0xce, 0x45, 0x32, 0xdf, 0x05, 0x27, 0xf9, 0x1e, 0xe1, 0xc9, + 0x84, 0x56, 0xca, 0xbb, 0x27, 0xd7, 0x61, 0x79, 0xf7, 0x3a, 0x88, 0xaf, 0x7a, 0x4f, 0xa0, 0xda, + 0x22, 0x1b, 0xda, 0x3e, 0x35, 0xdd, 0x7c, 0xc9, 0x2e, 0x9c, 0x24, 0xf7, 0x14, 0x24, 0xb5, 0xbd, + 0x8f, 0x3f, 0x23, 0x3c, 0x1a, 0x91, 0x22, 0xf9, 0x64, 0xb7, 0x8b, 0xa5, 0x7c, 0xb2, 0x25, 0x9a, + 0xa6, 0xbe, 0x27, 0xc0, 0xe5, 0xc8, 0x51, 0x47, 0x70, 0x20, 0x6e, 0x42, 0xf0, 0xb4, 0x7a, 0x30, + 0x7e, 0x0d, 0xad, 0x1e, 0xd7, 0xdc, 0x86, 0x56, 0x8f, 0xab, 0x6b, 0x63, 0x67, 0xf7, 0xe9, 0x79, + 0x1a, 0x3d, 0x3b, 0x4f, 0xa3, 0xbf, 0xcf, 0xd3, 0xe8, 0xab, 0x8b, 0x74, 0xdf, 0xb3, 0x8b, 0x74, + 0xdf, 0x9f, 0x17, 0xe9, 0xbe, 0xf7, 0x33, 0x45, 0x93, 0x1f, 0x57, 0xf3, 0xfe, 0xfb, 0x81, 0xb4, + 0xea, 0x99, 0xa8, 0x2b, 0x7e, 0x31, 0xc9, 0x0f, 0x8b, 0x5f, 0x28, 0x36, 0xff, 0x0b, 0x00, 0x00, + 0xff, 0xff, 0x1c, 0x4f, 0x1c, 0x03, 0xc2, 0x11, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1315,7 +1313,7 @@ type QueryClient interface { // Queries a list of PepNonce items. PepNonceAll(ctx context.Context, in *QueryPepNonceAllRequest, opts ...grpc.CallOption) (*QueryPepNonceAllResponse, error) // Queries the public keys - PubKey(ctx context.Context, in *QueryPubKeyRequest, opts ...grpc.CallOption) (*QueryPubKeyResponse, error) + Pubkey(ctx context.Context, in *QueryPubkeyRequest, opts ...grpc.CallOption) (*QueryPubkeyResponse, error) // Queries a General Identity request by request id GeneralIdentity(ctx context.Context, in *QueryGeneralIdentityRequest, opts ...grpc.CallOption) (*QueryGeneralIdentityResponse, error) // Queries a list of General Identity requests @@ -1397,9 +1395,9 @@ func (c *queryClient) PepNonceAll(ctx context.Context, in *QueryPepNonceAllReque return out, nil } -func (c *queryClient) PubKey(ctx context.Context, in *QueryPubKeyRequest, opts ...grpc.CallOption) (*QueryPubKeyResponse, error) { - out := new(QueryPubKeyResponse) - err := c.cc.Invoke(ctx, "/fairyring.pep.Query/PubKey", in, out, opts...) +func (c *queryClient) Pubkey(ctx context.Context, in *QueryPubkeyRequest, opts ...grpc.CallOption) (*QueryPubkeyResponse, error) { + out := new(QueryPubkeyResponse) + err := c.cc.Invoke(ctx, "/fairyring.pep.Query/Pubkey", in, out, opts...) if err != nil { return nil, err } @@ -1459,7 +1457,7 @@ type QueryServer interface { // Queries a list of PepNonce items. PepNonceAll(context.Context, *QueryPepNonceAllRequest) (*QueryPepNonceAllResponse, error) // Queries the public keys - PubKey(context.Context, *QueryPubKeyRequest) (*QueryPubKeyResponse, error) + Pubkey(context.Context, *QueryPubkeyRequest) (*QueryPubkeyResponse, error) // Queries a General Identity request by request id GeneralIdentity(context.Context, *QueryGeneralIdentityRequest) (*QueryGeneralIdentityResponse, error) // Queries a list of General Identity requests @@ -1495,8 +1493,8 @@ func (*UnimplementedQueryServer) PepNonce(ctx context.Context, req *QueryPepNonc func (*UnimplementedQueryServer) PepNonceAll(ctx context.Context, req *QueryPepNonceAllRequest) (*QueryPepNonceAllResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PepNonceAll not implemented") } -func (*UnimplementedQueryServer) PubKey(ctx context.Context, req *QueryPubKeyRequest) (*QueryPubKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PubKey not implemented") +func (*UnimplementedQueryServer) Pubkey(ctx context.Context, req *QueryPubkeyRequest) (*QueryPubkeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Pubkey not implemented") } func (*UnimplementedQueryServer) GeneralIdentity(ctx context.Context, req *QueryGeneralIdentityRequest) (*QueryGeneralIdentityResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GeneralIdentity not implemented") @@ -1641,20 +1639,20 @@ func _Query_PepNonceAll_Handler(srv interface{}, ctx context.Context, dec func(i return interceptor(ctx, in, info, handler) } -func _Query_PubKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryPubKeyRequest) +func _Query_Pubkey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryPubkeyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).PubKey(ctx, in) + return srv.(QueryServer).Pubkey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.pep.Query/PubKey", + FullMethod: "/fairyring.pep.Query/Pubkey", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).PubKey(ctx, req.(*QueryPubKeyRequest)) + return srv.(QueryServer).Pubkey(ctx, req.(*QueryPubkeyRequest)) } return interceptor(ctx, in, info, handler) } @@ -1764,8 +1762,8 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_PepNonceAll_Handler, }, { - MethodName: "PubKey", - Handler: _Query_PubKey_Handler, + MethodName: "Pubkey", + Handler: _Query_Pubkey_Handler, }, { MethodName: "GeneralIdentity", @@ -2402,7 +2400,7 @@ func (m *QueryPepNonceAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *QueryPubKeyRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryPubkeyRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2412,12 +2410,12 @@ func (m *QueryPubKeyRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryPubKeyRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPubkeyRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryPubKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPubkeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2425,7 +2423,7 @@ func (m *QueryPubKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryPubKeyResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryPubkeyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2435,18 +2433,18 @@ func (m *QueryPubKeyResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryPubKeyResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryPubkeyResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryPubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryPubkeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { - size, err := m.QueuedPubKey.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.QueuedPubkey.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2456,7 +2454,7 @@ func (m *QueryPubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 { - size, err := m.ActivePubKey.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ActivePubkey.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2583,10 +2581,10 @@ func (m *QueryDecryptDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) i-- dAtA[i] = 0x1a } - if len(m.AggrKeyshare) > 0 { - i -= len(m.AggrKeyshare) - copy(dAtA[i:], m.AggrKeyshare) - i = encodeVarintQuery(dAtA, i, uint64(len(m.AggrKeyshare))) + if len(m.DecryptionKey) > 0 { + i -= len(m.DecryptionKey) + copy(dAtA[i:], m.DecryptionKey) + i = encodeVarintQuery(dAtA, i, uint64(len(m.DecryptionKey))) i-- dAtA[i] = 0x12 } @@ -2877,7 +2875,7 @@ func (m *QueryPepNonceAllResponse) Size() (n int) { return n } -func (m *QueryPubKeyRequest) Size() (n int) { +func (m *QueryPubkeyRequest) Size() (n int) { if m == nil { return 0 } @@ -2886,15 +2884,15 @@ func (m *QueryPubKeyRequest) Size() (n int) { return n } -func (m *QueryPubKeyResponse) Size() (n int) { +func (m *QueryPubkeyResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = m.ActivePubKey.Size() + l = m.ActivePubkey.Size() n += 1 + l + sovQuery(uint64(l)) - l = m.QueuedPubKey.Size() + l = m.QueuedPubkey.Size() n += 1 + l + sovQuery(uint64(l)) return n } @@ -2949,7 +2947,7 @@ func (m *QueryDecryptDataRequest) Size() (n int) { if l > 0 { n += 1 + l + sovQuery(uint64(l)) } - l = len(m.AggrKeyshare) + l = len(m.DecryptionKey) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -4505,7 +4503,7 @@ func (m *QueryPepNonceAllResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryPubKeyRequest) Unmarshal(dAtA []byte) error { +func (m *QueryPubkeyRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4528,10 +4526,10 @@ func (m *QueryPubKeyRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPubKeyRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPubkeyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPubKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPubkeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -4555,7 +4553,7 @@ func (m *QueryPubKeyRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryPubKeyResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPubkeyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4578,15 +4576,15 @@ func (m *QueryPubKeyResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPubKeyResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPubkeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPubKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPubkeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivePubKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ActivePubkey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4613,13 +4611,13 @@ func (m *QueryPubKeyResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ActivePubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ActivePubkey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueuedPubKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field QueuedPubkey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4646,7 +4644,7 @@ func (m *QueryPubKeyResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.QueuedPubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.QueuedPubkey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4996,7 +4994,7 @@ func (m *QueryDecryptDataRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AggrKeyshare", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DecryptionKey", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5024,7 +5022,7 @@ func (m *QueryDecryptDataRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AggrKeyshare = string(dAtA[iNdEx:postIndex]) + m.DecryptionKey = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { diff --git a/x/pep/types/query.pb.gw.go b/x/pep/types/query.pb.gw.go index b62637b5..5b72e8ec 100644 --- a/x/pep/types/query.pb.gw.go +++ b/x/pep/types/query.pb.gw.go @@ -325,20 +325,20 @@ func local_request_Query_PepNonceAll_0(ctx context.Context, marshaler runtime.Ma } -func request_Query_PubKey_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryPubKeyRequest +func request_Query_Pubkey_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPubkeyRequest var metadata runtime.ServerMetadata - msg, err := client.PubKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.Pubkey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_PubKey_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryPubKeyRequest +func local_request_Query_Pubkey_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryPubkeyRequest var metadata runtime.ServerMetadata - msg, err := server.PubKey(ctx, &protoReq) + msg, err := server.Pubkey(ctx, &protoReq) return msg, metadata, err } @@ -509,15 +509,15 @@ func request_Query_DecryptData_0(ctx context.Context, marshaler runtime.Marshale return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pubkey", err) } - val, ok = pathParams["aggr_keyshare"] + val, ok = pathParams["decryption_key"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "aggr_keyshare") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "decryption_key") } - protoReq.AggrKeyshare, err = runtime.String(val) + protoReq.DecryptionKey, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "aggr_keyshare", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "decryption_key", err) } val, ok = pathParams["encrypted_data"] @@ -558,15 +558,15 @@ func local_request_Query_DecryptData_0(ctx context.Context, marshaler runtime.Ma return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "pubkey", err) } - val, ok = pathParams["aggr_keyshare"] + val, ok = pathParams["decryption_key"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "aggr_keyshare") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "decryption_key") } - protoReq.AggrKeyshare, err = runtime.String(val) + protoReq.DecryptionKey, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "aggr_keyshare", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "decryption_key", err) } val, ok = pathParams["encrypted_data"] @@ -752,7 +752,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_PubKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Pubkey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -763,7 +763,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_PubKey_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_Pubkey_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -771,7 +771,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_PubKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Pubkey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1048,7 +1048,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_PubKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_Pubkey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -1057,14 +1057,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_PubKey_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_Pubkey_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_PubKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_Pubkey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -1166,7 +1166,7 @@ var ( pattern_Query_PepNonceAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "pep", "pep_nonce"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_PubKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "pep", "pub_key"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Pubkey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"fairyring", "pep", "pubkey"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_GeneralIdentity_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"fairyring", "pep", "general_identity", "req_id"}, "", runtime.AssumeColonVerbOpt(false))) @@ -1174,7 +1174,7 @@ var ( pattern_Query_PrivateIdentity_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"Fairblock", "fairyring", "pep", "private_identity", "req_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_DecryptData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"Fairblock", "fairyring", "pep", "decrypt_data", "pubkey", "aggr_keyshare", "encrypted_data"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_DecryptData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"Fairblock", "fairyring", "pep", "decrypt_data", "pubkey", "decryption_key", "encrypted_data"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -1192,7 +1192,7 @@ var ( forward_Query_PepNonceAll_0 = runtime.ForwardResponseMessage - forward_Query_PubKey_0 = runtime.ForwardResponseMessage + forward_Query_Pubkey_0 = runtime.ForwardResponseMessage forward_Query_GeneralIdentity_0 = runtime.ForwardResponseMessage diff --git a/x/pep/types/tx.pb.go b/x/pep/types/tx.pb.go index b8ab4b55..46c2feae 100644 --- a/x/pep/types/tx.pb.go +++ b/x/pep/types/tx.pb.go @@ -327,24 +327,24 @@ func (m *MsgSubmitGeneralEncryptedTxResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgSubmitGeneralEncryptedTxResponse proto.InternalMessageInfo // MsgCreateAggregatedKeyShare is the Msg/CreateAggregatedKeyShare request type. -type MsgCreateAggregatedKeyShare struct { +type MsgSubmitDecryptionKey struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` } -func (m *MsgCreateAggregatedKeyShare) Reset() { *m = MsgCreateAggregatedKeyShare{} } -func (m *MsgCreateAggregatedKeyShare) String() string { return proto.CompactTextString(m) } -func (*MsgCreateAggregatedKeyShare) ProtoMessage() {} -func (*MsgCreateAggregatedKeyShare) Descriptor() ([]byte, []int) { +func (m *MsgSubmitDecryptionKey) Reset() { *m = MsgSubmitDecryptionKey{} } +func (m *MsgSubmitDecryptionKey) String() string { return proto.CompactTextString(m) } +func (*MsgSubmitDecryptionKey) ProtoMessage() {} +func (*MsgSubmitDecryptionKey) Descriptor() ([]byte, []int) { return fileDescriptor_f6953e463911e1ec, []int{6} } -func (m *MsgCreateAggregatedKeyShare) XXX_Unmarshal(b []byte) error { +func (m *MsgSubmitDecryptionKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgCreateAggregatedKeyShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgSubmitDecryptionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgCreateAggregatedKeyShare.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgSubmitDecryptionKey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -354,56 +354,56 @@ func (m *MsgCreateAggregatedKeyShare) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *MsgCreateAggregatedKeyShare) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCreateAggregatedKeyShare.Merge(m, src) +func (m *MsgSubmitDecryptionKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSubmitDecryptionKey.Merge(m, src) } -func (m *MsgCreateAggregatedKeyShare) XXX_Size() int { +func (m *MsgSubmitDecryptionKey) XXX_Size() int { return m.Size() } -func (m *MsgCreateAggregatedKeyShare) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCreateAggregatedKeyShare.DiscardUnknown(m) +func (m *MsgSubmitDecryptionKey) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSubmitDecryptionKey.DiscardUnknown(m) } -var xxx_messageInfo_MsgCreateAggregatedKeyShare proto.InternalMessageInfo +var xxx_messageInfo_MsgSubmitDecryptionKey proto.InternalMessageInfo -func (m *MsgCreateAggregatedKeyShare) GetCreator() string { +func (m *MsgSubmitDecryptionKey) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *MsgCreateAggregatedKeyShare) GetHeight() uint64 { +func (m *MsgSubmitDecryptionKey) GetHeight() uint64 { if m != nil { return m.Height } return 0 } -func (m *MsgCreateAggregatedKeyShare) GetData() string { +func (m *MsgSubmitDecryptionKey) GetData() string { if m != nil { return m.Data } return "" } -// MsgCreateAggregatedKeyShareResponse defines the response structure for executing a -// MsgCreateAggregatedKeyShare message. -type MsgCreateAggregatedKeyShareResponse struct { +// MsgSubmitDecryptionKeyResponse defines the response structure for executing a +// MsgSubmitDecryptionKey message. +type MsgSubmitDecryptionKeyResponse struct { } -func (m *MsgCreateAggregatedKeyShareResponse) Reset() { *m = MsgCreateAggregatedKeyShareResponse{} } -func (m *MsgCreateAggregatedKeyShareResponse) String() string { return proto.CompactTextString(m) } -func (*MsgCreateAggregatedKeyShareResponse) ProtoMessage() {} -func (*MsgCreateAggregatedKeyShareResponse) Descriptor() ([]byte, []int) { +func (m *MsgSubmitDecryptionKeyResponse) Reset() { *m = MsgSubmitDecryptionKeyResponse{} } +func (m *MsgSubmitDecryptionKeyResponse) String() string { return proto.CompactTextString(m) } +func (*MsgSubmitDecryptionKeyResponse) ProtoMessage() {} +func (*MsgSubmitDecryptionKeyResponse) Descriptor() ([]byte, []int) { return fileDescriptor_f6953e463911e1ec, []int{7} } -func (m *MsgCreateAggregatedKeyShareResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgSubmitDecryptionKeyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgCreateAggregatedKeyShareResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgSubmitDecryptionKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgCreateAggregatedKeyShareResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgSubmitDecryptionKeyResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -413,17 +413,17 @@ func (m *MsgCreateAggregatedKeyShareResponse) XXX_Marshal(b []byte, deterministi return b[:n], nil } } -func (m *MsgCreateAggregatedKeyShareResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCreateAggregatedKeyShareResponse.Merge(m, src) +func (m *MsgSubmitDecryptionKeyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgSubmitDecryptionKeyResponse.Merge(m, src) } -func (m *MsgCreateAggregatedKeyShareResponse) XXX_Size() int { +func (m *MsgSubmitDecryptionKeyResponse) XXX_Size() int { return m.Size() } -func (m *MsgCreateAggregatedKeyShareResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCreateAggregatedKeyShareResponse.DiscardUnknown(m) +func (m *MsgSubmitDecryptionKeyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgSubmitDecryptionKeyResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgCreateAggregatedKeyShareResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgSubmitDecryptionKeyResponse proto.InternalMessageInfo // MsgRequestGeneralIdentity is the Msg/RequestGeneralIdentity request type. type MsgRequestGeneralIdentity struct { @@ -1030,8 +1030,8 @@ func init() { proto.RegisterType((*MsgSubmitEncryptedTxResponse)(nil), "fairyring.pep.MsgSubmitEncryptedTxResponse") proto.RegisterType((*MsgSubmitGeneralEncryptedTx)(nil), "fairyring.pep.MsgSubmitGeneralEncryptedTx") proto.RegisterType((*MsgSubmitGeneralEncryptedTxResponse)(nil), "fairyring.pep.MsgSubmitGeneralEncryptedTxResponse") - proto.RegisterType((*MsgCreateAggregatedKeyShare)(nil), "fairyring.pep.MsgCreateAggregatedKeyShare") - proto.RegisterType((*MsgCreateAggregatedKeyShareResponse)(nil), "fairyring.pep.MsgCreateAggregatedKeyShareResponse") + proto.RegisterType((*MsgSubmitDecryptionKey)(nil), "fairyring.pep.MsgSubmitDecryptionKey") + proto.RegisterType((*MsgSubmitDecryptionKeyResponse)(nil), "fairyring.pep.MsgSubmitDecryptionKeyResponse") proto.RegisterType((*MsgRequestGeneralIdentity)(nil), "fairyring.pep.MsgRequestGeneralIdentity") proto.RegisterType((*MsgRequestGeneralIdentityResponse)(nil), "fairyring.pep.MsgRequestGeneralIdentityResponse") proto.RegisterType((*MsgRequestGeneralDecryptionKey)(nil), "fairyring.pep.MsgRequestGeneralDecryptionKey") @@ -1049,66 +1049,65 @@ func init() { func init() { proto.RegisterFile("fairyring/pep/tx.proto", fileDescriptor_f6953e463911e1ec) } var fileDescriptor_f6953e463911e1ec = []byte{ - // 931 bytes of a gzipped FileDescriptorProto + // 923 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x96, 0xcf, 0x73, 0xdb, 0x44, - 0x14, 0xc7, 0xb3, 0x49, 0x1a, 0xf0, 0x6b, 0x21, 0x8d, 0x9a, 0xa4, 0x8e, 0x4a, 0x95, 0xe0, 0x42, - 0xc7, 0x18, 0x22, 0x41, 0xf8, 0x31, 0x4c, 0x6e, 0x75, 0x03, 0x6d, 0xa7, 0x93, 0x99, 0x8c, 0x02, - 0x1c, 0x7a, 0xf1, 0xac, 0xad, 0xed, 0x5a, 0xd3, 0x58, 0x2b, 0xaf, 0xd6, 0x9d, 0x98, 0x53, 0xa7, - 0x30, 0xcc, 0xc0, 0x89, 0x23, 0x7f, 0x00, 0x07, 0x8e, 0x39, 0xf0, 0x47, 0xf4, 0xc0, 0x21, 0xc3, - 0x89, 0x13, 0x30, 0xc9, 0x21, 0xff, 0x06, 0xa3, 0xd5, 0x5a, 0xb6, 0xf5, 0xcb, 0x02, 0x0e, 0xbd, - 0x24, 0xde, 0x7d, 0xdf, 0xfd, 0xbe, 0xcf, 0x7b, 0xf6, 0x3e, 0x09, 0xd6, 0x1f, 0x63, 0x97, 0x0f, - 0xb9, 0xeb, 0x51, 0xcb, 0x27, 0xbe, 0x25, 0x8e, 0x4d, 0x9f, 0x33, 0xc1, 0xb4, 0xd7, 0xe2, 0x7d, - 0xd3, 0x27, 0xbe, 0xbe, 0x82, 0x7b, 0xae, 0xc7, 0x2c, 0xf9, 0x37, 0x52, 0xe8, 0xd7, 0x3b, 0x2c, - 0xe8, 0xb1, 0xc0, 0xea, 0x05, 0xd4, 0x7a, 0xfa, 0x41, 0xf8, 0x4f, 0x05, 0x36, 0xa2, 0x40, 0x4b, - 0xae, 0xac, 0x68, 0xa1, 0x42, 0x06, 0x65, 0x8c, 0x1e, 0x11, 0x4b, 0xae, 0xda, 0x83, 0xc7, 0x96, - 0x33, 0xe0, 0x58, 0xb8, 0xcc, 0x53, 0xf1, 0x55, 0xca, 0x28, 0x8b, 0xce, 0x85, 0x9f, 0xd4, 0xae, - 0x3e, 0xcd, 0xe8, 0x63, 0x8e, 0x7b, 0xca, 0xb1, 0xf6, 0x1b, 0x82, 0xe5, 0xfd, 0x80, 0x7e, 0xe9, - 0x3b, 0x58, 0x90, 0x03, 0x19, 0xd1, 0x3e, 0x81, 0x0a, 0x1e, 0x88, 0x2e, 0xe3, 0xae, 0x18, 0x56, - 0xd1, 0x16, 0xaa, 0x57, 0x9a, 0xd5, 0xdf, 0x7f, 0xdd, 0x5e, 0x55, 0x28, 0x77, 0x1c, 0x87, 0x93, - 0x20, 0x38, 0x14, 0xa1, 0xa3, 0x3d, 0x96, 0x6a, 0x9f, 0xc2, 0x52, 0xe4, 0x5d, 0x9d, 0xdf, 0x42, - 0xf5, 0xcb, 0x3b, 0x6b, 0xe6, 0x54, 0x13, 0xcc, 0xc8, 0xbe, 0x59, 0x79, 0xf1, 0xe7, 0xe6, 0xdc, - 0x2f, 0x17, 0x27, 0x0d, 0x64, 0x2b, 0xfd, 0xee, 0xbd, 0xe7, 0x17, 0x27, 0x8d, 0xb1, 0xd3, 0x0f, - 0x17, 0x27, 0x8d, 0x8f, 0xa8, 0x2b, 0xba, 0x83, 0xb6, 0xd9, 0x61, 0x3d, 0xeb, 0x73, 0xec, 0xf2, - 0xf6, 0x11, 0xeb, 0x3c, 0xb1, 0xc6, 0x95, 0x1c, 0xcb, 0x5a, 0x12, 0xe8, 0xb5, 0x0d, 0xb8, 0x9e, - 0xd8, 0xb2, 0x49, 0xe0, 0x33, 0x2f, 0x20, 0xb5, 0xe7, 0x08, 0x56, 0xf7, 0x03, 0x7a, 0x38, 0x68, - 0xf7, 0x5c, 0xf1, 0x99, 0xd7, 0xe1, 0x43, 0x5f, 0x10, 0xe7, 0x8b, 0x63, 0xad, 0x0a, 0xaf, 0x74, - 0x38, 0xc1, 0x82, 0xf1, 0xa8, 0x58, 0x7b, 0xb4, 0xd4, 0x34, 0x58, 0x74, 0xb0, 0xc0, 0xb2, 0x9c, - 0x8a, 0x2d, 0x3f, 0x6b, 0x26, 0x5c, 0x13, 0x98, 0x53, 0x22, 0x5a, 0x92, 0xa8, 0xd5, 0x25, 0x2e, - 0xed, 0x8a, 0xea, 0xc2, 0x16, 0xaa, 0x2f, 0xda, 0x2b, 0x51, 0xa8, 0x19, 0x46, 0xee, 0xcb, 0xc0, - 0xee, 0x95, 0xb0, 0xb4, 0x91, 0x63, 0xcd, 0x80, 0x37, 0xb2, 0x18, 0x62, 0x48, 0x1f, 0x6e, 0xc4, - 0xf1, 0x7b, 0xc4, 0x23, 0x1c, 0x1f, 0xfd, 0x77, 0xd4, 0x35, 0x58, 0xe2, 0xa4, 0xdf, 0x72, 0x1d, - 0x49, 0x57, 0xb1, 0x2f, 0x71, 0xd2, 0x7f, 0xe0, 0x24, 0x88, 0xde, 0x86, 0x5b, 0x05, 0x19, 0x63, - 0xb0, 0xbe, 0x04, 0xbb, 0x1b, 0x1e, 0x22, 0x77, 0x28, 0xe5, 0x84, 0x62, 0x41, 0x9c, 0x87, 0x64, - 0x78, 0xd8, 0xc5, 0x9c, 0x14, 0x80, 0xad, 0xc3, 0x92, 0x6a, 0xd1, 0xbc, 0x6c, 0x91, 0x5a, 0xc5, - 0xc0, 0x0b, 0x63, 0xe0, 0x4c, 0xb2, 0xbc, 0x94, 0x31, 0xd9, 0xcf, 0x08, 0x36, 0xf6, 0x03, 0x6a, - 0x93, 0xfe, 0x80, 0x04, 0xa3, 0x12, 0x1e, 0x38, 0xc4, 0x13, 0xe1, 0x6f, 0x32, 0x1f, 0xec, 0x3e, - 0x2c, 0x93, 0x40, 0xb8, 0xbd, 0xd0, 0xb4, 0xe5, 0x90, 0x23, 0x3c, 0x54, 0x3f, 0xdb, 0x0d, 0x33, - 0xba, 0x65, 0xe6, 0xe8, 0x96, 0x99, 0x7b, 0xea, 0x96, 0x35, 0x17, 0x7f, 0xfa, 0x6b, 0x13, 0xd9, - 0xaf, 0xc7, 0xe7, 0xf6, 0xc2, 0x63, 0xe5, 0xfa, 0xbc, 0x0b, 0x6f, 0xe6, 0x52, 0x8e, 0x6a, 0x99, - 0x70, 0x42, 0x13, 0x4e, 0xb5, 0x16, 0x18, 0xa9, 0xb3, 0x7b, 0x44, 0x7e, 0x49, 0x2e, 0xf3, 0x1e, - 0x92, 0xa2, 0x32, 0xc7, 0x96, 0xf3, 0xf9, 0x70, 0x75, 0xb8, 0x5d, 0x9c, 0x20, 0xee, 0xf6, 0xa3, - 0xc9, 0x66, 0x1f, 0x70, 0xf7, 0x29, 0x16, 0xa4, 0x44, 0xb3, 0x4b, 0x51, 0x4c, 0xb5, 0x28, 0xe1, - 0x3d, 0xab, 0x45, 0xcf, 0xd0, 0x64, 0x8f, 0xd4, 0xe1, 0xff, 0xd7, 0x23, 0x6d, 0x13, 0x2e, 0x07, - 0xa4, 0xe3, 0xb7, 0xfc, 0x41, 0xfb, 0x09, 0x19, 0xaa, 0x2f, 0x17, 0xc2, 0xad, 0x03, 0xb9, 0x53, - 0xd4, 0xc4, 0x2c, 0x82, 0xb8, 0x89, 0xdf, 0x22, 0xb8, 0x26, 0xa5, 0xd4, 0x0d, 0x04, 0xe1, 0x77, - 0x99, 0x27, 0x38, 0xee, 0x88, 0x02, 0xc2, 0x77, 0xe0, 0x6a, 0x47, 0xa9, 0x5a, 0x38, 0x9a, 0xbf, - 0x8a, 0x75, 0x79, 0xb4, 0xaf, 0xc6, 0xb2, 0xa6, 0xc3, 0xab, 0xae, 0x6a, 0x9a, 0x42, 0x8e, 0xd7, - 0x09, 0xe0, 0x9b, 0xf2, 0x4e, 0x27, 0x29, 0x62, 0xca, 0xef, 0x10, 0xac, 0x85, 0xc3, 0xd4, 0xe3, - 0x2f, 0x99, 0x73, 0x13, 0x6e, 0x66, 0x72, 0x8c, 0x48, 0x77, 0xbe, 0xaf, 0xc0, 0xc2, 0x7e, 0x40, - 0xb5, 0xaf, 0xe0, 0xca, 0xd4, 0x83, 0xcc, 0x48, 0x3c, 0x80, 0x12, 0x8f, 0x06, 0xfd, 0x76, 0x71, - 0x3c, 0xfe, 0xcd, 0x11, 0x58, 0x49, 0x3f, 0x36, 0x6e, 0xa5, 0x0f, 0xa7, 0x44, 0xfa, 0xbb, 0x25, - 0x44, 0x71, 0x9a, 0xaf, 0xa1, 0x9a, 0x3b, 0xf9, 0x1b, 0x79, 0x46, 0x69, 0xad, 0xbe, 0x53, 0x5e, - 0x3b, 0x99, 0x3b, 0x77, 0xb8, 0x67, 0xe4, 0xce, 0xd3, 0x66, 0xe5, 0x9e, 0x35, 0xc1, 0x35, 0x01, - 0xeb, 0x39, 0xd3, 0xbb, 0x9e, 0x76, 0xcb, 0x56, 0xea, 0xef, 0x97, 0x55, 0xc6, 0x59, 0xbf, 0x41, - 0x70, 0xa3, 0x68, 0xa4, 0x6e, 0xcf, 0x72, 0x9c, 0x92, 0xeb, 0x1f, 0xff, 0x2b, 0x79, 0x46, 0xed, - 0xc9, 0x61, 0x9a, 0x5f, 0x7b, 0x42, 0x59, 0x50, 0x7b, 0xde, 0x10, 0x9d, 0xa8, 0x3d, 0x73, 0x54, - 0x6e, 0xcf, 0x72, 0x2c, 0x5b, 0x7b, 0xd1, 0x18, 0xd4, 0xda, 0x70, 0x35, 0x35, 0x02, 0x6b, 0x59, - 0x56, 0xd3, 0x1a, 0xbd, 0x31, 0x5b, 0x13, 0xe7, 0xe8, 0x82, 0x96, 0x31, 0xc0, 0xde, 0xca, 0xb8, - 0xf8, 0x29, 0x95, 0xfe, 0x5e, 0x19, 0xd5, 0x28, 0x93, 0x7e, 0xe9, 0x59, 0xf8, 0x4a, 0xdb, 0xdc, - 0x7b, 0x71, 0x66, 0xa0, 0xd3, 0x33, 0x03, 0xfd, 0x7d, 0x66, 0xa0, 0x1f, 0xcf, 0x8d, 0xb9, 0xd3, - 0x73, 0x63, 0xee, 0x8f, 0x73, 0x63, 0xee, 0x51, 0xa3, 0xd4, 0x1b, 0xad, 0x18, 0xfa, 0x24, 0x68, - 0x2f, 0xc9, 0x77, 0x8f, 0x0f, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0x3e, 0xe6, 0xc9, 0xa4, 0x5f, - 0x0c, 0x00, 0x00, + 0x14, 0xc7, 0xb3, 0x49, 0x1a, 0xea, 0xd7, 0x42, 0x1a, 0xe5, 0x47, 0x1d, 0x95, 0x2a, 0xc1, 0xa5, + 0x1d, 0x63, 0x88, 0x04, 0xe1, 0xc7, 0x30, 0xb9, 0x61, 0x02, 0x6d, 0x87, 0xc9, 0x4c, 0x46, 0x05, + 0x0e, 0xbd, 0x78, 0xd6, 0xd6, 0x56, 0xd6, 0xc4, 0xd6, 0x2a, 0xab, 0x75, 0x27, 0xe6, 0xd4, 0x29, + 0x0c, 0x07, 0x4e, 0x1c, 0xf9, 0x03, 0x38, 0x70, 0xcc, 0x81, 0x3f, 0xa2, 0x07, 0x0e, 0x19, 0x4e, + 0x9c, 0x80, 0x49, 0x0e, 0xf9, 0x1f, 0x38, 0x31, 0x5a, 0xad, 0xd6, 0xb6, 0x2c, 0xc9, 0x02, 0x0e, + 0x5c, 0x12, 0xed, 0xbe, 0xef, 0xbe, 0xf7, 0x79, 0x5f, 0x4b, 0x4f, 0x82, 0x8d, 0x27, 0xd8, 0x63, + 0x43, 0xe6, 0xf9, 0xae, 0x15, 0x90, 0xc0, 0xe2, 0x27, 0x66, 0xc0, 0x28, 0xa7, 0xda, 0xcb, 0x6a, + 0xdf, 0x0c, 0x48, 0xa0, 0xaf, 0xe0, 0xbe, 0xe7, 0x53, 0x4b, 0xfc, 0x8d, 0x15, 0xfa, 0xcd, 0x0e, + 0x0d, 0xfb, 0x34, 0xb4, 0xfa, 0xa1, 0x6b, 0x3d, 0x7d, 0x27, 0xfa, 0x27, 0x03, 0x9b, 0x71, 0xa0, + 0x25, 0x56, 0x56, 0xbc, 0x90, 0x21, 0x7d, 0xb2, 0x5a, 0x80, 0x19, 0xee, 0x27, 0xb1, 0x35, 0x97, + 0xba, 0x34, 0x3e, 0x13, 0x5d, 0xc9, 0x5d, 0xc3, 0xa5, 0xd4, 0xed, 0x11, 0x4b, 0xac, 0xda, 0x83, + 0x27, 0x96, 0x33, 0x60, 0x98, 0x7b, 0xd4, 0x8f, 0xe3, 0xb5, 0x5f, 0x10, 0x2c, 0x1f, 0x84, 0xee, + 0x17, 0x81, 0x83, 0x39, 0x39, 0x14, 0xf9, 0xb4, 0x0f, 0xa0, 0x82, 0x07, 0xbc, 0x4b, 0x99, 0xc7, + 0x87, 0x55, 0xb4, 0x8d, 0xea, 0x95, 0x66, 0xf5, 0xd7, 0x9f, 0x77, 0xd6, 0x24, 0xca, 0x47, 0x8e, + 0xc3, 0x48, 0x18, 0x3e, 0xe2, 0x11, 0x87, 0x3d, 0x92, 0x6a, 0x1f, 0xc2, 0x52, 0x4c, 0x54, 0x9d, + 0xdf, 0x46, 0xf5, 0x6b, 0xbb, 0xeb, 0xe6, 0x84, 0x09, 0x66, 0x9c, 0xbe, 0x59, 0x79, 0xf1, 0xfb, + 0xd6, 0xdc, 0x4f, 0x97, 0xa7, 0x0d, 0x64, 0x4b, 0xfd, 0xde, 0xfd, 0xe7, 0x97, 0xa7, 0x8d, 0x51, + 0xa6, 0xef, 0x2e, 0x4f, 0x1b, 0xef, 0xb9, 0x1e, 0xef, 0x0e, 0xda, 0x66, 0x87, 0xf6, 0xad, 0x4f, + 0xb1, 0xc7, 0xda, 0x3d, 0xda, 0x39, 0xb2, 0x46, 0xfd, 0x9f, 0x08, 0x07, 0x52, 0xe8, 0xb5, 0x4d, + 0xb8, 0x99, 0xda, 0xb2, 0x49, 0x18, 0x50, 0x3f, 0x24, 0xb5, 0xe7, 0x08, 0xd6, 0x0e, 0x42, 0xf7, + 0xd1, 0xa0, 0xdd, 0xf7, 0xf8, 0x27, 0x7e, 0x87, 0x0d, 0x03, 0x4e, 0x9c, 0xcf, 0x4f, 0xb4, 0x2a, + 0xbc, 0xd4, 0x61, 0x04, 0x73, 0xca, 0xe2, 0x66, 0xed, 0x64, 0xa9, 0x69, 0xb0, 0xe8, 0x60, 0x8e, + 0x45, 0x3b, 0x15, 0x5b, 0x5c, 0x6b, 0x26, 0xac, 0x72, 0xcc, 0x5c, 0xc2, 0x5b, 0x82, 0xa8, 0xd5, + 0x25, 0x9e, 0xdb, 0xe5, 0xd5, 0x85, 0x6d, 0x54, 0x5f, 0xb4, 0x57, 0xe2, 0x50, 0x33, 0x8a, 0x3c, + 0x10, 0x81, 0xbd, 0xeb, 0x51, 0x6b, 0x49, 0xc6, 0x9a, 0x01, 0xaf, 0x66, 0x31, 0x28, 0xc8, 0x00, + 0x6e, 0xa9, 0xf8, 0x7d, 0xe2, 0x13, 0x86, 0x7b, 0xff, 0x1e, 0x75, 0x1d, 0x96, 0x18, 0x39, 0x6e, + 0x79, 0x8e, 0xa0, 0xab, 0xd8, 0x57, 0x18, 0x39, 0x7e, 0xe8, 0xa4, 0x88, 0xee, 0xc2, 0x9d, 0x82, + 0x8a, 0x0a, 0xac, 0x07, 0x1b, 0x4a, 0xb6, 0x4f, 0x44, 0xdc, 0xa3, 0xfe, 0x67, 0x64, 0x58, 0xc0, + 0xb4, 0x01, 0x4b, 0xd2, 0x9d, 0x79, 0xe1, 0x8e, 0x5c, 0x29, 0xd6, 0x85, 0x11, 0x6b, 0x0a, 0x6a, + 0x1b, 0x8c, 0xec, 0x6a, 0x8a, 0xe7, 0x47, 0x04, 0x9b, 0x07, 0xa1, 0x6b, 0x93, 0xe3, 0x01, 0x09, + 0x13, 0xf0, 0x87, 0x0e, 0xf1, 0x79, 0x74, 0x27, 0xe6, 0x33, 0x3d, 0x80, 0x65, 0x12, 0x72, 0xaf, + 0x8f, 0x39, 0x71, 0x5a, 0x0e, 0xe9, 0xe1, 0xa1, 0xbc, 0x59, 0x37, 0xcd, 0xf8, 0x49, 0x31, 0x93, + 0x27, 0xc5, 0xdc, 0x97, 0x4f, 0x4a, 0x73, 0xf1, 0x87, 0x3f, 0xb6, 0x90, 0xfd, 0x8a, 0x3a, 0xb7, + 0x1f, 0x1d, 0x2b, 0xe7, 0xee, 0x1e, 0xbc, 0x96, 0x4b, 0x99, 0xf4, 0x32, 0x96, 0x09, 0x8d, 0x65, + 0xaa, 0xb5, 0x84, 0x09, 0x93, 0x67, 0xcb, 0x5a, 0x3f, 0x4a, 0x39, 0x9f, 0x0f, 0x57, 0x87, 0x7b, + 0xc5, 0x05, 0x94, 0xdb, 0x8f, 0xc7, 0xcd, 0x3e, 0x64, 0xde, 0x53, 0xcc, 0x49, 0x09, 0xb3, 0x4b, + 0x51, 0x4c, 0x58, 0x94, 0xca, 0x3d, 0xcb, 0xa2, 0x67, 0x68, 0xdc, 0x23, 0x79, 0xf8, 0xbf, 0x79, + 0xa4, 0x6d, 0xc1, 0xb5, 0x90, 0x74, 0x82, 0x56, 0x30, 0x68, 0x1f, 0x91, 0xa1, 0xfc, 0x71, 0x21, + 0xda, 0x3a, 0x14, 0x3b, 0x45, 0x26, 0x66, 0x11, 0x28, 0x13, 0xbf, 0x41, 0xb0, 0x2a, 0xa4, 0xae, + 0x17, 0x72, 0xc2, 0x3e, 0xa6, 0x3e, 0x67, 0xb8, 0xc3, 0x0b, 0x08, 0xdf, 0x80, 0x1b, 0x1d, 0xa9, + 0x6a, 0xe1, 0x78, 0xea, 0x4a, 0xd6, 0xe5, 0x64, 0x5f, 0x0e, 0x63, 0x4d, 0x87, 0xab, 0x9e, 0x34, + 0x4d, 0x22, 0xab, 0x75, 0x0a, 0xf8, 0xb6, 0x18, 0x31, 0x69, 0x0a, 0x45, 0xf9, 0x2d, 0x82, 0xf5, + 0x68, 0x84, 0xfa, 0xec, 0x7f, 0xe6, 0xdc, 0x82, 0xdb, 0x99, 0x1c, 0x09, 0xe9, 0xee, 0x5f, 0x57, + 0x61, 0xe1, 0x20, 0x74, 0xb5, 0x2f, 0xe1, 0xfa, 0xc4, 0xeb, 0xcb, 0x48, 0xbd, 0x76, 0x52, 0x2f, + 0x04, 0xfd, 0x5e, 0x71, 0x5c, 0xdd, 0x73, 0x04, 0x56, 0xa6, 0x5f, 0x16, 0x77, 0xa6, 0x0f, 0x4f, + 0x89, 0xf4, 0x37, 0x4b, 0x88, 0x54, 0x99, 0xaf, 0xa0, 0x9a, 0x3b, 0xef, 0x1b, 0x79, 0x89, 0xa6, + 0xb5, 0xfa, 0x6e, 0x79, 0xad, 0xaa, 0x7d, 0x04, 0xab, 0x59, 0x23, 0xfd, 0x6e, 0x5e, 0xaa, 0x09, + 0x99, 0xbe, 0x53, 0x4a, 0xa6, 0x8a, 0x71, 0xd8, 0xc8, 0x19, 0xd7, 0xf5, 0xe9, 0x44, 0xd9, 0x4a, + 0xfd, 0xed, 0xb2, 0x4a, 0x55, 0xf5, 0x6b, 0x04, 0xb7, 0x8a, 0x66, 0xe8, 0xce, 0xac, 0x8c, 0x93, + 0x3d, 0xbf, 0xff, 0x8f, 0xe4, 0x19, 0xbd, 0xa7, 0xa7, 0x67, 0x7e, 0xef, 0x29, 0x65, 0x41, 0xef, + 0x79, 0x53, 0x73, 0xac, 0xf7, 0xcc, 0xd9, 0xb8, 0x33, 0x2b, 0x63, 0xd9, 0xde, 0x8b, 0xe6, 0x9e, + 0xd6, 0x86, 0x1b, 0x53, 0x33, 0xaf, 0x96, 0x95, 0x6a, 0x52, 0xa3, 0x37, 0x66, 0x6b, 0x54, 0x8d, + 0x2e, 0x68, 0x19, 0x13, 0xeb, 0xf5, 0x8c, 0x27, 0x7d, 0x4a, 0xa5, 0xbf, 0x55, 0x46, 0x95, 0x54, + 0xd2, 0xaf, 0x3c, 0x8b, 0xbe, 0x5c, 0x9b, 0xfb, 0x2f, 0xce, 0x0d, 0x74, 0x76, 0x6e, 0xa0, 0x3f, + 0xcf, 0x0d, 0xf4, 0xfd, 0x85, 0x31, 0x77, 0x76, 0x61, 0xcc, 0xfd, 0x76, 0x61, 0xcc, 0x3d, 0x6e, + 0x94, 0xfa, 0x70, 0xe5, 0xc3, 0x80, 0x84, 0xed, 0x25, 0xf1, 0xb1, 0xf1, 0xee, 0xdf, 0x01, 0x00, + 0x00, 0xff, 0xff, 0xfe, 0xc2, 0xc2, 0x28, 0x46, 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1132,9 +1131,9 @@ type MsgClient interface { // SubmitGeneralEncryptedTx defines an operation to submit an // encrypted transaction for a particular identity SubmitGeneralEncryptedTx(ctx context.Context, in *MsgSubmitGeneralEncryptedTx, opts ...grpc.CallOption) (*MsgSubmitGeneralEncryptedTxResponse, error) - // CreateAggregatedKeyShare defines an operation to submit an - // aggregated keyshare to a destination chain - CreateAggregatedKeyShare(ctx context.Context, in *MsgCreateAggregatedKeyShare, opts ...grpc.CallOption) (*MsgCreateAggregatedKeyShareResponse, error) + // SubmitDecryptionKey defines an operation to submit a + // decryption to a destination chain + SubmitDecryptionKey(ctx context.Context, in *MsgSubmitDecryptionKey, opts ...grpc.CallOption) (*MsgSubmitDecryptionKeyResponse, error) // RequestGeneralIdentity defines an operation to request the // creation of a new identity to which validators will be required // to submit keyshares @@ -1194,9 +1193,9 @@ func (c *msgClient) SubmitGeneralEncryptedTx(ctx context.Context, in *MsgSubmitG return out, nil } -func (c *msgClient) CreateAggregatedKeyShare(ctx context.Context, in *MsgCreateAggregatedKeyShare, opts ...grpc.CallOption) (*MsgCreateAggregatedKeyShareResponse, error) { - out := new(MsgCreateAggregatedKeyShareResponse) - err := c.cc.Invoke(ctx, "/fairyring.pep.Msg/CreateAggregatedKeyShare", in, out, opts...) +func (c *msgClient) SubmitDecryptionKey(ctx context.Context, in *MsgSubmitDecryptionKey, opts ...grpc.CallOption) (*MsgSubmitDecryptionKeyResponse, error) { + out := new(MsgSubmitDecryptionKeyResponse) + err := c.cc.Invoke(ctx, "/fairyring.pep.Msg/SubmitDecryptionKey", in, out, opts...) if err != nil { return nil, err } @@ -1268,9 +1267,9 @@ type MsgServer interface { // SubmitGeneralEncryptedTx defines an operation to submit an // encrypted transaction for a particular identity SubmitGeneralEncryptedTx(context.Context, *MsgSubmitGeneralEncryptedTx) (*MsgSubmitGeneralEncryptedTxResponse, error) - // CreateAggregatedKeyShare defines an operation to submit an - // aggregated keyshare to a destination chain - CreateAggregatedKeyShare(context.Context, *MsgCreateAggregatedKeyShare) (*MsgCreateAggregatedKeyShareResponse, error) + // SubmitDecryptionKey defines an operation to submit a + // decryption to a destination chain + SubmitDecryptionKey(context.Context, *MsgSubmitDecryptionKey) (*MsgSubmitDecryptionKeyResponse, error) // RequestGeneralIdentity defines an operation to request the // creation of a new identity to which validators will be required // to submit keyshares @@ -1308,8 +1307,8 @@ func (*UnimplementedMsgServer) SubmitEncryptedTx(ctx context.Context, req *MsgSu func (*UnimplementedMsgServer) SubmitGeneralEncryptedTx(ctx context.Context, req *MsgSubmitGeneralEncryptedTx) (*MsgSubmitGeneralEncryptedTxResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SubmitGeneralEncryptedTx not implemented") } -func (*UnimplementedMsgServer) CreateAggregatedKeyShare(ctx context.Context, req *MsgCreateAggregatedKeyShare) (*MsgCreateAggregatedKeyShareResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateAggregatedKeyShare not implemented") +func (*UnimplementedMsgServer) SubmitDecryptionKey(ctx context.Context, req *MsgSubmitDecryptionKey) (*MsgSubmitDecryptionKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SubmitDecryptionKey not implemented") } func (*UnimplementedMsgServer) RequestGeneralIdentity(ctx context.Context, req *MsgRequestGeneralIdentity) (*MsgRequestGeneralIdentityResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RequestGeneralIdentity not implemented") @@ -1388,20 +1387,20 @@ func _Msg_SubmitGeneralEncryptedTx_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } -func _Msg_CreateAggregatedKeyShare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreateAggregatedKeyShare) +func _Msg_SubmitDecryptionKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgSubmitDecryptionKey) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).CreateAggregatedKeyShare(ctx, in) + return srv.(MsgServer).SubmitDecryptionKey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.pep.Msg/CreateAggregatedKeyShare", + FullMethod: "/fairyring.pep.Msg/SubmitDecryptionKey", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateAggregatedKeyShare(ctx, req.(*MsgCreateAggregatedKeyShare)) + return srv.(MsgServer).SubmitDecryptionKey(ctx, req.(*MsgSubmitDecryptionKey)) } return interceptor(ctx, in, info, handler) } @@ -1531,8 +1530,8 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ Handler: _Msg_SubmitGeneralEncryptedTx_Handler, }, { - MethodName: "CreateAggregatedKeyShare", - Handler: _Msg_CreateAggregatedKeyShare_Handler, + MethodName: "SubmitDecryptionKey", + Handler: _Msg_SubmitDecryptionKey_Handler, }, { MethodName: "RequestGeneralIdentity", @@ -1758,7 +1757,7 @@ func (m *MsgSubmitGeneralEncryptedTxResponse) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *MsgCreateAggregatedKeyShare) Marshal() (dAtA []byte, err error) { +func (m *MsgSubmitDecryptionKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1768,12 +1767,12 @@ func (m *MsgCreateAggregatedKeyShare) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgCreateAggregatedKeyShare) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgSubmitDecryptionKey) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgCreateAggregatedKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgSubmitDecryptionKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1800,7 +1799,7 @@ func (m *MsgCreateAggregatedKeyShare) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *MsgCreateAggregatedKeyShareResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgSubmitDecryptionKeyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1810,12 +1809,12 @@ func (m *MsgCreateAggregatedKeyShareResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *MsgCreateAggregatedKeyShareResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgSubmitDecryptionKeyResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgCreateAggregatedKeyShareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgSubmitDecryptionKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2322,7 +2321,7 @@ func (m *MsgSubmitGeneralEncryptedTxResponse) Size() (n int) { return n } -func (m *MsgCreateAggregatedKeyShare) Size() (n int) { +func (m *MsgSubmitDecryptionKey) Size() (n int) { if m == nil { return 0 } @@ -2342,7 +2341,7 @@ func (m *MsgCreateAggregatedKeyShare) Size() (n int) { return n } -func (m *MsgCreateAggregatedKeyShareResponse) Size() (n int) { +func (m *MsgSubmitDecryptionKeyResponse) Size() (n int) { if m == nil { return 0 } @@ -3081,7 +3080,7 @@ func (m *MsgSubmitGeneralEncryptedTxResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCreateAggregatedKeyShare) Unmarshal(dAtA []byte) error { +func (m *MsgSubmitDecryptionKey) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3104,10 +3103,10 @@ func (m *MsgCreateAggregatedKeyShare) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCreateAggregatedKeyShare: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSubmitDecryptionKey: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateAggregatedKeyShare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSubmitDecryptionKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3214,7 +3213,7 @@ func (m *MsgCreateAggregatedKeyShare) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCreateAggregatedKeyShareResponse) Unmarshal(dAtA []byte) error { +func (m *MsgSubmitDecryptionKeyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3237,10 +3236,10 @@ func (m *MsgCreateAggregatedKeyShareResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCreateAggregatedKeyShareResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgSubmitDecryptionKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateAggregatedKeyShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgSubmitDecryptionKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: From 7034a46367dcdd9c047bbc11ffa9468fef97821c Mon Sep 17 00:00:00 2001 From: ap0calypse644 Date: Fri, 18 Oct 2024 21:57:32 +0530 Subject: [PATCH 07/30] audit changes --- api/fairyring/keyshare/genesis.pulsar.go | 202 ++-- api/fairyring/keyshare/pubkey.pulsar.go | 544 +++++------ api/fairyring/keyshare/query.pulsar.go | 40 +- api/fairyring/keyshare/tx.pulsar.go | 892 +++++++++--------- api/fairyring/keyshare/tx_grpc.pb.go | 68 +- api/fairyring/pep/genesis.pulsar.go | 271 +++--- api/fairyring/pep/query.pulsar.go | 4 +- .../cmd/secp_encrypter/secp_encrypter.go | 12 +- proto/fairyring/keyshare/genesis.proto | 4 +- proto/fairyring/keyshare/pubkey.proto | 8 +- proto/fairyring/keyshare/query.proto | 8 +- proto/fairyring/keyshare/tx.proto | 28 +- proto/fairyring/pep/genesis.proto | 10 +- proto/fairyring/pep/query.proto | 4 +- scripts/tests/keyshareSender.sh | 2 +- scripts/tests/pep.sh | 4 +- testutil/shares/encrypt.go | 9 +- x/keyshare/client/cli/tx.go | 2 +- x/keyshare/client/cli/tx_latest_pub_key.go | 4 +- x/keyshare/client/cli/tx_override_pub_key.go | 2 +- x/keyshare/keeper/current_keys.go | 4 +- x/keyshare/keeper/get_decryption_key.go | 8 +- .../keeper/msg_create_general_key_share.go | 8 +- .../msg_create_general_key_share_test.go | 2 +- x/keyshare/keeper/msg_create_pub_key.go | 33 +- x/keyshare/keeper/msg_create_pub_key_test.go | 18 +- x/keyshare/keeper/msg_override_pub_key.go | 35 +- .../keeper/msg_override_pub_key_test.go | 16 +- x/keyshare/keeper/msg_send_key_share.go | 8 +- .../keeper/msg_submit_encrypted_keyshare.go | 6 +- x/keyshare/keeper/process_queues.go | 44 +- x/keyshare/keeper/pub_key.go | 44 +- x/keyshare/keeper/pub_key_test.go | 43 +- x/keyshare/keeper/query_pub_key.go | 16 +- x/keyshare/keeper/query_pub_key_test.go | 14 +- x/keyshare/keeper/request_decryption_key.go | 22 +- x/keyshare/module/genesis.go | 12 +- x/keyshare/module/module.go | 12 +- x/keyshare/types/codec.go | 4 +- x/keyshare/types/errors.go | 6 +- x/keyshare/types/expected_keepers.go | 4 +- x/keyshare/types/genesis.pb.go | 98 +- x/keyshare/types/key_latest_pub_key.go | 6 +- x/keyshare/types/keys.go | 32 +- x/keyshare/types/msg_latest_pub_key.go | 18 +- x/keyshare/types/msg_override_pub_key.go | 16 +- x/keyshare/types/pubkey.pb.go | 152 +-- x/keyshare/types/query.pb.go | 182 ++-- x/keyshare/types/tx.pb.go | 415 ++++---- x/pep/keeper/msg_submit_encrypted_tx.go | 2 +- x/pep/keeper/msg_submit_encrypted_tx_test.go | 8 +- x/pep/keeper/pub_key.go | 32 +- x/pep/keeper/pub_key_test.go | 20 +- x/pep/keeper/query_decrypt_data.go | 4 +- x/pep/keeper/query_decrypt_data_test.go | 8 +- x/pep/keeper/query_pubkey.go | 16 +- x/pep/keeper/query_pubkey_test.go | 12 +- x/pep/module/genesis.go | 8 +- x/pep/module/module.go | 2 +- x/pep/types/errors.go | 2 +- x/pep/types/genesis.pb.go | 99 +- x/pep/types/key_latest_pub_key.go | 6 +- x/pep/types/message_get_private_keyshares.go | 8 +- x/pep/types/query.pb.go | 4 +- 64 files changed, 1817 insertions(+), 1810 deletions(-) diff --git a/api/fairyring/keyshare/genesis.pulsar.go b/api/fairyring/keyshare/genesis.pulsar.go index f55e0e79..bdba0368 100644 --- a/api/fairyring/keyshare/genesis.pulsar.go +++ b/api/fairyring/keyshare/genesis.pulsar.go @@ -276,8 +276,8 @@ var ( fd_GenesisState_validator_set_list protoreflect.FieldDescriptor fd_GenesisState_keyshare_list protoreflect.FieldDescriptor fd_GenesisState_decryption_key_list protoreflect.FieldDescriptor - fd_GenesisState_active_pub_key protoreflect.FieldDescriptor - fd_GenesisState_queued_pub_key protoreflect.FieldDescriptor + fd_GenesisState_active_pubkey protoreflect.FieldDescriptor + fd_GenesisState_queued_pubkey protoreflect.FieldDescriptor fd_GenesisState_authorized_address_list protoreflect.FieldDescriptor fd_GenesisState_request_count protoreflect.FieldDescriptor fd_GenesisState_general_keyshare_list protoreflect.FieldDescriptor @@ -291,8 +291,8 @@ func init() { fd_GenesisState_validator_set_list = md_GenesisState.Fields().ByName("validator_set_list") fd_GenesisState_keyshare_list = md_GenesisState.Fields().ByName("keyshare_list") fd_GenesisState_decryption_key_list = md_GenesisState.Fields().ByName("decryption_key_list") - fd_GenesisState_active_pub_key = md_GenesisState.Fields().ByName("active_pub_key") - fd_GenesisState_queued_pub_key = md_GenesisState.Fields().ByName("queued_pub_key") + fd_GenesisState_active_pubkey = md_GenesisState.Fields().ByName("active_pubkey") + fd_GenesisState_queued_pubkey = md_GenesisState.Fields().ByName("queued_pubkey") fd_GenesisState_authorized_address_list = md_GenesisState.Fields().ByName("authorized_address_list") fd_GenesisState_request_count = md_GenesisState.Fields().ByName("request_count") fd_GenesisState_general_keyshare_list = md_GenesisState.Fields().ByName("general_keyshare_list") @@ -393,15 +393,15 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } - if x.ActivePubKey != nil { - value := protoreflect.ValueOfMessage(x.ActivePubKey.ProtoReflect()) - if !f(fd_GenesisState_active_pub_key, value) { + if x.ActivePubkey != nil { + value := protoreflect.ValueOfMessage(x.ActivePubkey.ProtoReflect()) + if !f(fd_GenesisState_active_pubkey, value) { return } } - if x.QueuedPubKey != nil { - value := protoreflect.ValueOfMessage(x.QueuedPubKey.ProtoReflect()) - if !f(fd_GenesisState_queued_pub_key, value) { + if x.QueuedPubkey != nil { + value := protoreflect.ValueOfMessage(x.QueuedPubkey.ProtoReflect()) + if !f(fd_GenesisState_queued_pubkey, value) { return } } @@ -448,10 +448,10 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return len(x.KeyshareList) != 0 case "fairyring.keyshare.GenesisState.decryption_key_list": return len(x.DecryptionKeyList) != 0 - case "fairyring.keyshare.GenesisState.active_pub_key": - return x.ActivePubKey != nil - case "fairyring.keyshare.GenesisState.queued_pub_key": - return x.QueuedPubKey != nil + case "fairyring.keyshare.GenesisState.active_pubkey": + return x.ActivePubkey != nil + case "fairyring.keyshare.GenesisState.queued_pubkey": + return x.QueuedPubkey != nil case "fairyring.keyshare.GenesisState.authorized_address_list": return len(x.AuthorizedAddressList) != 0 case "fairyring.keyshare.GenesisState.request_count": @@ -484,10 +484,10 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.KeyshareList = nil case "fairyring.keyshare.GenesisState.decryption_key_list": x.DecryptionKeyList = nil - case "fairyring.keyshare.GenesisState.active_pub_key": - x.ActivePubKey = nil - case "fairyring.keyshare.GenesisState.queued_pub_key": - x.QueuedPubKey = nil + case "fairyring.keyshare.GenesisState.active_pubkey": + x.ActivePubkey = nil + case "fairyring.keyshare.GenesisState.queued_pubkey": + x.QueuedPubkey = nil case "fairyring.keyshare.GenesisState.authorized_address_list": x.AuthorizedAddressList = nil case "fairyring.keyshare.GenesisState.request_count": @@ -534,11 +534,11 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto } listValue := &_GenesisState_5_list{list: &x.DecryptionKeyList} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.GenesisState.active_pub_key": - value := x.ActivePubKey + case "fairyring.keyshare.GenesisState.active_pubkey": + value := x.ActivePubkey return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.keyshare.GenesisState.queued_pub_key": - value := x.QueuedPubKey + case "fairyring.keyshare.GenesisState.queued_pubkey": + value := x.QueuedPubkey return protoreflect.ValueOfMessage(value.ProtoReflect()) case "fairyring.keyshare.GenesisState.authorized_address_list": if len(x.AuthorizedAddressList) == 0 { @@ -591,10 +591,10 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value lv := value.List() clv := lv.(*_GenesisState_5_list) x.DecryptionKeyList = *clv.list - case "fairyring.keyshare.GenesisState.active_pub_key": - x.ActivePubKey = value.Message().Interface().(*ActivePubKey) - case "fairyring.keyshare.GenesisState.queued_pub_key": - x.QueuedPubKey = value.Message().Interface().(*QueuedPubKey) + case "fairyring.keyshare.GenesisState.active_pubkey": + x.ActivePubkey = value.Message().Interface().(*ActivePubkey) + case "fairyring.keyshare.GenesisState.queued_pubkey": + x.QueuedPubkey = value.Message().Interface().(*QueuedPubkey) case "fairyring.keyshare.GenesisState.authorized_address_list": lv := value.List() clv := lv.(*_GenesisState_8_list) @@ -648,16 +648,16 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p } value := &_GenesisState_5_list{list: &x.DecryptionKeyList} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.GenesisState.active_pub_key": - if x.ActivePubKey == nil { - x.ActivePubKey = new(ActivePubKey) + case "fairyring.keyshare.GenesisState.active_pubkey": + if x.ActivePubkey == nil { + x.ActivePubkey = new(ActivePubkey) } - return protoreflect.ValueOfMessage(x.ActivePubKey.ProtoReflect()) - case "fairyring.keyshare.GenesisState.queued_pub_key": - if x.QueuedPubKey == nil { - x.QueuedPubKey = new(QueuedPubKey) + return protoreflect.ValueOfMessage(x.ActivePubkey.ProtoReflect()) + case "fairyring.keyshare.GenesisState.queued_pubkey": + if x.QueuedPubkey == nil { + x.QueuedPubkey = new(QueuedPubkey) } - return protoreflect.ValueOfMessage(x.QueuedPubKey.ProtoReflect()) + return protoreflect.ValueOfMessage(x.QueuedPubkey.ProtoReflect()) case "fairyring.keyshare.GenesisState.authorized_address_list": if x.AuthorizedAddressList == nil { x.AuthorizedAddressList = []*AuthorizedAddress{} @@ -701,11 +701,11 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) case "fairyring.keyshare.GenesisState.decryption_key_list": list := []*DecryptionKey{} return protoreflect.ValueOfList(&_GenesisState_5_list{list: &list}) - case "fairyring.keyshare.GenesisState.active_pub_key": - m := new(ActivePubKey) + case "fairyring.keyshare.GenesisState.active_pubkey": + m := new(ActivePubkey) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.keyshare.GenesisState.queued_pub_key": - m := new(QueuedPubKey) + case "fairyring.keyshare.GenesisState.queued_pubkey": + m := new(QueuedPubkey) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "fairyring.keyshare.GenesisState.authorized_address_list": list := []*AuthorizedAddress{} @@ -810,12 +810,12 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } - if x.ActivePubKey != nil { - l = options.Size(x.ActivePubKey) + if x.ActivePubkey != nil { + l = options.Size(x.ActivePubkey) n += 1 + l + runtime.Sov(uint64(l)) } - if x.QueuedPubKey != nil { - l = options.Size(x.QueuedPubKey) + if x.QueuedPubkey != nil { + l = options.Size(x.QueuedPubkey) n += 1 + l + runtime.Sov(uint64(l)) } if len(x.AuthorizedAddressList) > 0 { @@ -899,8 +899,8 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { dAtA[i] = 0x42 } } - if x.QueuedPubKey != nil { - encoded, err := options.Marshal(x.QueuedPubKey) + if x.QueuedPubkey != nil { + encoded, err := options.Marshal(x.QueuedPubkey) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -913,8 +913,8 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x3a } - if x.ActivePubKey != nil { - encoded, err := options.Marshal(x.ActivePubKey) + if x.ActivePubkey != nil { + encoded, err := options.Marshal(x.ActivePubkey) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1217,7 +1217,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 6: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActivePubKey", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActivePubkey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1244,16 +1244,16 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.ActivePubKey == nil { - x.ActivePubKey = &ActivePubKey{} + if x.ActivePubkey == nil { + x.ActivePubkey = &ActivePubkey{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ActivePubKey); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ActivePubkey); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex case 7: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueuedPubKey", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueuedPubkey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1280,10 +1280,10 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.QueuedPubKey == nil { - x.QueuedPubKey = &QueuedPubKey{} + if x.QueuedPubkey == nil { + x.QueuedPubkey = &QueuedPubkey{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.QueuedPubKey); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.QueuedPubkey); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -1434,8 +1434,8 @@ type GenesisState struct { ValidatorSetList []*ValidatorSet `protobuf:"bytes,3,rep,name=validator_set_list,json=validatorSetList,proto3" json:"validator_set_list,omitempty"` KeyshareList []*Keyshare `protobuf:"bytes,4,rep,name=keyshare_list,json=keyshareList,proto3" json:"keyshare_list,omitempty"` DecryptionKeyList []*DecryptionKey `protobuf:"bytes,5,rep,name=decryption_key_list,json=decryptionKeyList,proto3" json:"decryption_key_list,omitempty"` - ActivePubKey *ActivePubKey `protobuf:"bytes,6,opt,name=active_pub_key,json=activePubKey,proto3" json:"active_pub_key,omitempty"` - QueuedPubKey *QueuedPubKey `protobuf:"bytes,7,opt,name=queued_pub_key,json=queuedPubKey,proto3" json:"queued_pub_key,omitempty"` + ActivePubkey *ActivePubkey `protobuf:"bytes,6,opt,name=active_pubkey,json=activePubkey,proto3" json:"active_pubkey,omitempty"` + QueuedPubkey *QueuedPubkey `protobuf:"bytes,7,opt,name=queued_pubkey,json=queuedPubkey,proto3" json:"queued_pubkey,omitempty"` AuthorizedAddressList []*AuthorizedAddress `protobuf:"bytes,8,rep,name=authorized_address_list,json=authorizedAddressList,proto3" json:"authorized_address_list,omitempty"` RequestCount uint64 `protobuf:"varint,9,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"` GeneralKeyshareList []*GeneralKeyshare `protobuf:"bytes,10,rep,name=general_keyshare_list,json=generalKeyshareList,proto3" json:"general_keyshare_list,omitempty"` @@ -1496,16 +1496,16 @@ func (x *GenesisState) GetDecryptionKeyList() []*DecryptionKey { return nil } -func (x *GenesisState) GetActivePubKey() *ActivePubKey { +func (x *GenesisState) GetActivePubkey() *ActivePubkey { if x != nil { - return x.ActivePubKey + return x.ActivePubkey } return nil } -func (x *GenesisState) GetQueuedPubKey() *QueuedPubKey { +func (x *GenesisState) GetQueuedPubkey() *QueuedPubkey { if x != nil { - return x.QueuedPubKey + return x.QueuedPubkey } return nil } @@ -1554,7 +1554,7 @@ var file_fairyring_keyshare_genesis_proto_rawDesc = []byte{ 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0xe3, 0x05, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, + 0x74, 0x6f, 0x22, 0xe1, 0x05, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, @@ -1576,43 +1576,43 @@ var file_fairyring_keyshare_genesis_proto_rawDesc = []byte{ 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x4c, - 0x69, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x75, - 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, - 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, - 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, - 0x79, 0x12, 0x4c, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x5f, - 0x6b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, - 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, - 0x63, 0x0a, 0x17, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x15, 0x61, - 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x4c, 0x69, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x5d, 0x0a, 0x15, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x6c, 0x69, - 0x73, 0x74, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x13, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, - 0x68, 0x61, 0x72, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x42, 0xb4, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, + 0x69, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x75, + 0x62, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, + 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, + 0x12, 0x4b, 0x0a, 0x0d, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, + 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, + 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, + 0x0c, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x63, 0x0a, + 0x17, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, - 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, - 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, - 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, - 0x61, 0x72, 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, - 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x72, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x15, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4c, 0x69, + 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x5d, 0x0a, 0x15, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, + 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, + 0x00, 0x52, 0x13, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, + 0x72, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x42, 0xb4, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x23, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x4b, 0x58, 0xaa, 0x02, 0x12, 0x46, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, + 0x65, 0xca, 0x02, 0x12, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x4b, 0x65, + 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0xe2, 0x02, 0x1e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x5c, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1634,8 +1634,8 @@ var file_fairyring_keyshare_genesis_proto_goTypes = []interface{}{ (*ValidatorSet)(nil), // 2: fairyring.keyshare.ValidatorSet (*Keyshare)(nil), // 3: fairyring.keyshare.Keyshare (*DecryptionKey)(nil), // 4: fairyring.keyshare.DecryptionKey - (*ActivePubKey)(nil), // 5: fairyring.keyshare.ActivePubKey - (*QueuedPubKey)(nil), // 6: fairyring.keyshare.QueuedPubKey + (*ActivePubkey)(nil), // 5: fairyring.keyshare.ActivePubkey + (*QueuedPubkey)(nil), // 6: fairyring.keyshare.QueuedPubkey (*AuthorizedAddress)(nil), // 7: fairyring.keyshare.AuthorizedAddress (*GeneralKeyshare)(nil), // 8: fairyring.keyshare.GeneralKeyshare } @@ -1644,8 +1644,8 @@ var file_fairyring_keyshare_genesis_proto_depIdxs = []int32{ 2, // 1: fairyring.keyshare.GenesisState.validator_set_list:type_name -> fairyring.keyshare.ValidatorSet 3, // 2: fairyring.keyshare.GenesisState.keyshare_list:type_name -> fairyring.keyshare.Keyshare 4, // 3: fairyring.keyshare.GenesisState.decryption_key_list:type_name -> fairyring.keyshare.DecryptionKey - 5, // 4: fairyring.keyshare.GenesisState.active_pub_key:type_name -> fairyring.keyshare.ActivePubKey - 6, // 5: fairyring.keyshare.GenesisState.queued_pub_key:type_name -> fairyring.keyshare.QueuedPubKey + 5, // 4: fairyring.keyshare.GenesisState.active_pubkey:type_name -> fairyring.keyshare.ActivePubkey + 6, // 5: fairyring.keyshare.GenesisState.queued_pubkey:type_name -> fairyring.keyshare.QueuedPubkey 7, // 6: fairyring.keyshare.GenesisState.authorized_address_list:type_name -> fairyring.keyshare.AuthorizedAddress 8, // 7: fairyring.keyshare.GenesisState.general_keyshare_list:type_name -> fairyring.keyshare.GeneralKeyshare 8, // [8:8] is the sub-list for method output_type diff --git a/api/fairyring/keyshare/pubkey.pulsar.go b/api/fairyring/keyshare/pubkey.pulsar.go index 30277f40..71c68c0d 100644 --- a/api/fairyring/keyshare/pubkey.pulsar.go +++ b/api/fairyring/keyshare/pubkey.pulsar.go @@ -496,85 +496,85 @@ func (x *fastReflection_EncryptedKeyshare) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_ActivePubKey_5_list)(nil) +var _ protoreflect.List = (*_ActivePubkey_5_list)(nil) -type _ActivePubKey_5_list struct { +type _ActivePubkey_5_list struct { list *[]*EncryptedKeyshare } -func (x *_ActivePubKey_5_list) Len() int { +func (x *_ActivePubkey_5_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_ActivePubKey_5_list) Get(i int) protoreflect.Value { +func (x *_ActivePubkey_5_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_ActivePubKey_5_list) Set(i int, value protoreflect.Value) { +func (x *_ActivePubkey_5_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*EncryptedKeyshare) (*x.list)[i] = concreteValue } -func (x *_ActivePubKey_5_list) Append(value protoreflect.Value) { +func (x *_ActivePubkey_5_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*EncryptedKeyshare) *x.list = append(*x.list, concreteValue) } -func (x *_ActivePubKey_5_list) AppendMutable() protoreflect.Value { +func (x *_ActivePubkey_5_list) AppendMutable() protoreflect.Value { v := new(EncryptedKeyshare) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_ActivePubKey_5_list) Truncate(n int) { +func (x *_ActivePubkey_5_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_ActivePubKey_5_list) NewElement() protoreflect.Value { +func (x *_ActivePubkey_5_list) NewElement() protoreflect.Value { v := new(EncryptedKeyshare) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_ActivePubKey_5_list) IsValid() bool { +func (x *_ActivePubkey_5_list) IsValid() bool { return x.list != nil } var ( - md_ActivePubKey protoreflect.MessageDescriptor - fd_ActivePubKey_public_key protoreflect.FieldDescriptor - fd_ActivePubKey_creator protoreflect.FieldDescriptor - fd_ActivePubKey_expiry protoreflect.FieldDescriptor - fd_ActivePubKey_number_of_validators protoreflect.FieldDescriptor - fd_ActivePubKey_encrypted_keyshares protoreflect.FieldDescriptor + md_ActivePubkey protoreflect.MessageDescriptor + fd_ActivePubkey_public_key protoreflect.FieldDescriptor + fd_ActivePubkey_creator protoreflect.FieldDescriptor + fd_ActivePubkey_expiry protoreflect.FieldDescriptor + fd_ActivePubkey_number_of_validators protoreflect.FieldDescriptor + fd_ActivePubkey_encrypted_keyshares protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_pubkey_proto_init() - md_ActivePubKey = File_fairyring_keyshare_pubkey_proto.Messages().ByName("ActivePubKey") - fd_ActivePubKey_public_key = md_ActivePubKey.Fields().ByName("public_key") - fd_ActivePubKey_creator = md_ActivePubKey.Fields().ByName("creator") - fd_ActivePubKey_expiry = md_ActivePubKey.Fields().ByName("expiry") - fd_ActivePubKey_number_of_validators = md_ActivePubKey.Fields().ByName("number_of_validators") - fd_ActivePubKey_encrypted_keyshares = md_ActivePubKey.Fields().ByName("encrypted_keyshares") + md_ActivePubkey = File_fairyring_keyshare_pubkey_proto.Messages().ByName("ActivePubkey") + fd_ActivePubkey_public_key = md_ActivePubkey.Fields().ByName("public_key") + fd_ActivePubkey_creator = md_ActivePubkey.Fields().ByName("creator") + fd_ActivePubkey_expiry = md_ActivePubkey.Fields().ByName("expiry") + fd_ActivePubkey_number_of_validators = md_ActivePubkey.Fields().ByName("number_of_validators") + fd_ActivePubkey_encrypted_keyshares = md_ActivePubkey.Fields().ByName("encrypted_keyshares") } -var _ protoreflect.Message = (*fastReflection_ActivePubKey)(nil) +var _ protoreflect.Message = (*fastReflection_ActivePubkey)(nil) -type fastReflection_ActivePubKey ActivePubKey +type fastReflection_ActivePubkey ActivePubkey -func (x *ActivePubKey) ProtoReflect() protoreflect.Message { - return (*fastReflection_ActivePubKey)(x) +func (x *ActivePubkey) ProtoReflect() protoreflect.Message { + return (*fastReflection_ActivePubkey)(x) } -func (x *ActivePubKey) slowProtoReflect() protoreflect.Message { +func (x *ActivePubkey) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_pubkey_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -586,43 +586,43 @@ func (x *ActivePubKey) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_ActivePubKey_messageType fastReflection_ActivePubKey_messageType -var _ protoreflect.MessageType = fastReflection_ActivePubKey_messageType{} +var _fastReflection_ActivePubkey_messageType fastReflection_ActivePubkey_messageType +var _ protoreflect.MessageType = fastReflection_ActivePubkey_messageType{} -type fastReflection_ActivePubKey_messageType struct{} +type fastReflection_ActivePubkey_messageType struct{} -func (x fastReflection_ActivePubKey_messageType) Zero() protoreflect.Message { - return (*fastReflection_ActivePubKey)(nil) +func (x fastReflection_ActivePubkey_messageType) Zero() protoreflect.Message { + return (*fastReflection_ActivePubkey)(nil) } -func (x fastReflection_ActivePubKey_messageType) New() protoreflect.Message { - return new(fastReflection_ActivePubKey) +func (x fastReflection_ActivePubkey_messageType) New() protoreflect.Message { + return new(fastReflection_ActivePubkey) } -func (x fastReflection_ActivePubKey_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_ActivePubKey +func (x fastReflection_ActivePubkey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ActivePubkey } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_ActivePubKey) Descriptor() protoreflect.MessageDescriptor { - return md_ActivePubKey +func (x *fastReflection_ActivePubkey) Descriptor() protoreflect.MessageDescriptor { + return md_ActivePubkey } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_ActivePubKey) Type() protoreflect.MessageType { - return _fastReflection_ActivePubKey_messageType +func (x *fastReflection_ActivePubkey) Type() protoreflect.MessageType { + return _fastReflection_ActivePubkey_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_ActivePubKey) New() protoreflect.Message { - return new(fastReflection_ActivePubKey) +func (x *fastReflection_ActivePubkey) New() protoreflect.Message { + return new(fastReflection_ActivePubkey) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_ActivePubKey) Interface() protoreflect.ProtoMessage { - return (*ActivePubKey)(x) +func (x *fastReflection_ActivePubkey) Interface() protoreflect.ProtoMessage { + return (*ActivePubkey)(x) } // Range iterates over every populated field in an undefined order, @@ -630,34 +630,34 @@ func (x *fastReflection_ActivePubKey) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_ActivePubKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_ActivePubkey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.PublicKey != "" { value := protoreflect.ValueOfString(x.PublicKey) - if !f(fd_ActivePubKey_public_key, value) { + if !f(fd_ActivePubkey_public_key, value) { return } } if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_ActivePubKey_creator, value) { + if !f(fd_ActivePubkey_creator, value) { return } } if x.Expiry != uint64(0) { value := protoreflect.ValueOfUint64(x.Expiry) - if !f(fd_ActivePubKey_expiry, value) { + if !f(fd_ActivePubkey_expiry, value) { return } } if x.NumberOfValidators != uint64(0) { value := protoreflect.ValueOfUint64(x.NumberOfValidators) - if !f(fd_ActivePubKey_number_of_validators, value) { + if !f(fd_ActivePubkey_number_of_validators, value) { return } } if len(x.EncryptedKeyshares) != 0 { - value := protoreflect.ValueOfList(&_ActivePubKey_5_list{list: &x.EncryptedKeyshares}) - if !f(fd_ActivePubKey_encrypted_keyshares, value) { + value := protoreflect.ValueOfList(&_ActivePubkey_5_list{list: &x.EncryptedKeyshares}) + if !f(fd_ActivePubkey_encrypted_keyshares, value) { return } } @@ -674,23 +674,23 @@ func (x *fastReflection_ActivePubKey) Range(f func(protoreflect.FieldDescriptor, // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_ActivePubKey) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_ActivePubkey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.ActivePubKey.public_key": + case "fairyring.keyshare.ActivePubkey.public_key": return x.PublicKey != "" - case "fairyring.keyshare.ActivePubKey.creator": + case "fairyring.keyshare.ActivePubkey.creator": return x.Creator != "" - case "fairyring.keyshare.ActivePubKey.expiry": + case "fairyring.keyshare.ActivePubkey.expiry": return x.Expiry != uint64(0) - case "fairyring.keyshare.ActivePubKey.number_of_validators": + case "fairyring.keyshare.ActivePubkey.number_of_validators": return x.NumberOfValidators != uint64(0) - case "fairyring.keyshare.ActivePubKey.encrypted_keyshares": + case "fairyring.keyshare.ActivePubkey.encrypted_keyshares": return len(x.EncryptedKeyshares) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ActivePubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ActivePubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.ActivePubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.ActivePubkey does not contain field %s", fd.FullName())) } } @@ -700,23 +700,23 @@ func (x *fastReflection_ActivePubKey) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ActivePubKey) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_ActivePubkey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.ActivePubKey.public_key": + case "fairyring.keyshare.ActivePubkey.public_key": x.PublicKey = "" - case "fairyring.keyshare.ActivePubKey.creator": + case "fairyring.keyshare.ActivePubkey.creator": x.Creator = "" - case "fairyring.keyshare.ActivePubKey.expiry": + case "fairyring.keyshare.ActivePubkey.expiry": x.Expiry = uint64(0) - case "fairyring.keyshare.ActivePubKey.number_of_validators": + case "fairyring.keyshare.ActivePubkey.number_of_validators": x.NumberOfValidators = uint64(0) - case "fairyring.keyshare.ActivePubKey.encrypted_keyshares": + case "fairyring.keyshare.ActivePubkey.encrypted_keyshares": x.EncryptedKeyshares = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ActivePubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ActivePubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.ActivePubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.ActivePubkey does not contain field %s", fd.FullName())) } } @@ -726,31 +726,31 @@ func (x *fastReflection_ActivePubKey) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_ActivePubKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ActivePubkey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.ActivePubKey.public_key": + case "fairyring.keyshare.ActivePubkey.public_key": value := x.PublicKey return protoreflect.ValueOfString(value) - case "fairyring.keyshare.ActivePubKey.creator": + case "fairyring.keyshare.ActivePubkey.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.ActivePubKey.expiry": + case "fairyring.keyshare.ActivePubkey.expiry": value := x.Expiry return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.ActivePubKey.number_of_validators": + case "fairyring.keyshare.ActivePubkey.number_of_validators": value := x.NumberOfValidators return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.ActivePubKey.encrypted_keyshares": + case "fairyring.keyshare.ActivePubkey.encrypted_keyshares": if len(x.EncryptedKeyshares) == 0 { - return protoreflect.ValueOfList(&_ActivePubKey_5_list{}) + return protoreflect.ValueOfList(&_ActivePubkey_5_list{}) } - listValue := &_ActivePubKey_5_list{list: &x.EncryptedKeyshares} + listValue := &_ActivePubkey_5_list{list: &x.EncryptedKeyshares} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ActivePubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ActivePubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.ActivePubKey does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.ActivePubkey does not contain field %s", descriptor.FullName())) } } @@ -764,25 +764,25 @@ func (x *fastReflection_ActivePubKey) Get(descriptor protoreflect.FieldDescripto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ActivePubKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_ActivePubkey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.ActivePubKey.public_key": + case "fairyring.keyshare.ActivePubkey.public_key": x.PublicKey = value.Interface().(string) - case "fairyring.keyshare.ActivePubKey.creator": + case "fairyring.keyshare.ActivePubkey.creator": x.Creator = value.Interface().(string) - case "fairyring.keyshare.ActivePubKey.expiry": + case "fairyring.keyshare.ActivePubkey.expiry": x.Expiry = value.Uint() - case "fairyring.keyshare.ActivePubKey.number_of_validators": + case "fairyring.keyshare.ActivePubkey.number_of_validators": x.NumberOfValidators = value.Uint() - case "fairyring.keyshare.ActivePubKey.encrypted_keyshares": + case "fairyring.keyshare.ActivePubkey.encrypted_keyshares": lv := value.List() - clv := lv.(*_ActivePubKey_5_list) + clv := lv.(*_ActivePubkey_5_list) x.EncryptedKeyshares = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ActivePubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ActivePubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.ActivePubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.ActivePubkey does not contain field %s", fd.FullName())) } } @@ -796,61 +796,61 @@ func (x *fastReflection_ActivePubKey) Set(fd protoreflect.FieldDescriptor, value // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ActivePubKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ActivePubkey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.ActivePubKey.encrypted_keyshares": + case "fairyring.keyshare.ActivePubkey.encrypted_keyshares": if x.EncryptedKeyshares == nil { x.EncryptedKeyshares = []*EncryptedKeyshare{} } - value := &_ActivePubKey_5_list{list: &x.EncryptedKeyshares} + value := &_ActivePubkey_5_list{list: &x.EncryptedKeyshares} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.ActivePubKey.public_key": - panic(fmt.Errorf("field public_key of message fairyring.keyshare.ActivePubKey is not mutable")) - case "fairyring.keyshare.ActivePubKey.creator": - panic(fmt.Errorf("field creator of message fairyring.keyshare.ActivePubKey is not mutable")) - case "fairyring.keyshare.ActivePubKey.expiry": - panic(fmt.Errorf("field expiry of message fairyring.keyshare.ActivePubKey is not mutable")) - case "fairyring.keyshare.ActivePubKey.number_of_validators": - panic(fmt.Errorf("field number_of_validators of message fairyring.keyshare.ActivePubKey is not mutable")) + case "fairyring.keyshare.ActivePubkey.public_key": + panic(fmt.Errorf("field public_key of message fairyring.keyshare.ActivePubkey is not mutable")) + case "fairyring.keyshare.ActivePubkey.creator": + panic(fmt.Errorf("field creator of message fairyring.keyshare.ActivePubkey is not mutable")) + case "fairyring.keyshare.ActivePubkey.expiry": + panic(fmt.Errorf("field expiry of message fairyring.keyshare.ActivePubkey is not mutable")) + case "fairyring.keyshare.ActivePubkey.number_of_validators": + panic(fmt.Errorf("field number_of_validators of message fairyring.keyshare.ActivePubkey is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ActivePubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ActivePubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.ActivePubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.ActivePubkey does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_ActivePubKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_ActivePubkey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.ActivePubKey.public_key": + case "fairyring.keyshare.ActivePubkey.public_key": return protoreflect.ValueOfString("") - case "fairyring.keyshare.ActivePubKey.creator": + case "fairyring.keyshare.ActivePubkey.creator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.ActivePubKey.expiry": + case "fairyring.keyshare.ActivePubkey.expiry": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.ActivePubKey.number_of_validators": + case "fairyring.keyshare.ActivePubkey.number_of_validators": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.ActivePubKey.encrypted_keyshares": + case "fairyring.keyshare.ActivePubkey.encrypted_keyshares": list := []*EncryptedKeyshare{} - return protoreflect.ValueOfList(&_ActivePubKey_5_list{list: &list}) + return protoreflect.ValueOfList(&_ActivePubkey_5_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ActivePubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.ActivePubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.ActivePubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.ActivePubkey does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_ActivePubKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_ActivePubkey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.ActivePubKey", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.ActivePubkey", d.FullName())) } panic("unreachable") } @@ -858,7 +858,7 @@ func (x *fastReflection_ActivePubKey) WhichOneof(d protoreflect.OneofDescriptor) // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_ActivePubKey) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_ActivePubkey) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -869,7 +869,7 @@ func (x *fastReflection_ActivePubKey) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_ActivePubKey) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_ActivePubkey) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -881,7 +881,7 @@ func (x *fastReflection_ActivePubKey) SetUnknown(fields protoreflect.RawFields) // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_ActivePubKey) IsValid() bool { +func (x *fastReflection_ActivePubkey) IsValid() bool { return x != nil } @@ -891,9 +891,9 @@ func (x *fastReflection_ActivePubKey) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_ActivePubKey) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_ActivePubkey) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*ActivePubKey) + x := input.Message.Interface().(*ActivePubkey) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -935,7 +935,7 @@ func (x *fastReflection_ActivePubKey) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*ActivePubKey) + x := input.Message.Interface().(*ActivePubkey) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1005,7 +1005,7 @@ func (x *fastReflection_ActivePubKey) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*ActivePubKey) + x := input.Message.Interface().(*ActivePubkey) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1037,10 +1037,10 @@ func (x *fastReflection_ActivePubKey) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ActivePubKey: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ActivePubkey: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ActivePubKey: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ActivePubkey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1214,85 +1214,85 @@ func (x *fastReflection_ActivePubKey) ProtoMethods() *protoiface.Methods { } } -var _ protoreflect.List = (*_QueuedPubKey_5_list)(nil) +var _ protoreflect.List = (*_QueuedPubkey_5_list)(nil) -type _QueuedPubKey_5_list struct { +type _QueuedPubkey_5_list struct { list *[]*EncryptedKeyshare } -func (x *_QueuedPubKey_5_list) Len() int { +func (x *_QueuedPubkey_5_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueuedPubKey_5_list) Get(i int) protoreflect.Value { +func (x *_QueuedPubkey_5_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueuedPubKey_5_list) Set(i int, value protoreflect.Value) { +func (x *_QueuedPubkey_5_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*EncryptedKeyshare) (*x.list)[i] = concreteValue } -func (x *_QueuedPubKey_5_list) Append(value protoreflect.Value) { +func (x *_QueuedPubkey_5_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*EncryptedKeyshare) *x.list = append(*x.list, concreteValue) } -func (x *_QueuedPubKey_5_list) AppendMutable() protoreflect.Value { +func (x *_QueuedPubkey_5_list) AppendMutable() protoreflect.Value { v := new(EncryptedKeyshare) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueuedPubKey_5_list) Truncate(n int) { +func (x *_QueuedPubkey_5_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueuedPubKey_5_list) NewElement() protoreflect.Value { +func (x *_QueuedPubkey_5_list) NewElement() protoreflect.Value { v := new(EncryptedKeyshare) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueuedPubKey_5_list) IsValid() bool { +func (x *_QueuedPubkey_5_list) IsValid() bool { return x.list != nil } var ( - md_QueuedPubKey protoreflect.MessageDescriptor - fd_QueuedPubKey_public_key protoreflect.FieldDescriptor - fd_QueuedPubKey_creator protoreflect.FieldDescriptor - fd_QueuedPubKey_expiry protoreflect.FieldDescriptor - fd_QueuedPubKey_number_of_validators protoreflect.FieldDescriptor - fd_QueuedPubKey_encrypted_keyshares protoreflect.FieldDescriptor + md_QueuedPubkey protoreflect.MessageDescriptor + fd_QueuedPubkey_public_key protoreflect.FieldDescriptor + fd_QueuedPubkey_creator protoreflect.FieldDescriptor + fd_QueuedPubkey_expiry protoreflect.FieldDescriptor + fd_QueuedPubkey_number_of_validators protoreflect.FieldDescriptor + fd_QueuedPubkey_encrypted_keyshares protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_pubkey_proto_init() - md_QueuedPubKey = File_fairyring_keyshare_pubkey_proto.Messages().ByName("QueuedPubKey") - fd_QueuedPubKey_public_key = md_QueuedPubKey.Fields().ByName("public_key") - fd_QueuedPubKey_creator = md_QueuedPubKey.Fields().ByName("creator") - fd_QueuedPubKey_expiry = md_QueuedPubKey.Fields().ByName("expiry") - fd_QueuedPubKey_number_of_validators = md_QueuedPubKey.Fields().ByName("number_of_validators") - fd_QueuedPubKey_encrypted_keyshares = md_QueuedPubKey.Fields().ByName("encrypted_keyshares") + md_QueuedPubkey = File_fairyring_keyshare_pubkey_proto.Messages().ByName("QueuedPubkey") + fd_QueuedPubkey_public_key = md_QueuedPubkey.Fields().ByName("public_key") + fd_QueuedPubkey_creator = md_QueuedPubkey.Fields().ByName("creator") + fd_QueuedPubkey_expiry = md_QueuedPubkey.Fields().ByName("expiry") + fd_QueuedPubkey_number_of_validators = md_QueuedPubkey.Fields().ByName("number_of_validators") + fd_QueuedPubkey_encrypted_keyshares = md_QueuedPubkey.Fields().ByName("encrypted_keyshares") } -var _ protoreflect.Message = (*fastReflection_QueuedPubKey)(nil) +var _ protoreflect.Message = (*fastReflection_QueuedPubkey)(nil) -type fastReflection_QueuedPubKey QueuedPubKey +type fastReflection_QueuedPubkey QueuedPubkey -func (x *QueuedPubKey) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueuedPubKey)(x) +func (x *QueuedPubkey) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueuedPubkey)(x) } -func (x *QueuedPubKey) slowProtoReflect() protoreflect.Message { +func (x *QueuedPubkey) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_pubkey_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1304,43 +1304,43 @@ func (x *QueuedPubKey) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueuedPubKey_messageType fastReflection_QueuedPubKey_messageType -var _ protoreflect.MessageType = fastReflection_QueuedPubKey_messageType{} +var _fastReflection_QueuedPubkey_messageType fastReflection_QueuedPubkey_messageType +var _ protoreflect.MessageType = fastReflection_QueuedPubkey_messageType{} -type fastReflection_QueuedPubKey_messageType struct{} +type fastReflection_QueuedPubkey_messageType struct{} -func (x fastReflection_QueuedPubKey_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueuedPubKey)(nil) +func (x fastReflection_QueuedPubkey_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueuedPubkey)(nil) } -func (x fastReflection_QueuedPubKey_messageType) New() protoreflect.Message { - return new(fastReflection_QueuedPubKey) +func (x fastReflection_QueuedPubkey_messageType) New() protoreflect.Message { + return new(fastReflection_QueuedPubkey) } -func (x fastReflection_QueuedPubKey_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueuedPubKey +func (x fastReflection_QueuedPubkey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueuedPubkey } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueuedPubKey) Descriptor() protoreflect.MessageDescriptor { - return md_QueuedPubKey +func (x *fastReflection_QueuedPubkey) Descriptor() protoreflect.MessageDescriptor { + return md_QueuedPubkey } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueuedPubKey) Type() protoreflect.MessageType { - return _fastReflection_QueuedPubKey_messageType +func (x *fastReflection_QueuedPubkey) Type() protoreflect.MessageType { + return _fastReflection_QueuedPubkey_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueuedPubKey) New() protoreflect.Message { - return new(fastReflection_QueuedPubKey) +func (x *fastReflection_QueuedPubkey) New() protoreflect.Message { + return new(fastReflection_QueuedPubkey) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueuedPubKey) Interface() protoreflect.ProtoMessage { - return (*QueuedPubKey)(x) +func (x *fastReflection_QueuedPubkey) Interface() protoreflect.ProtoMessage { + return (*QueuedPubkey)(x) } // Range iterates over every populated field in an undefined order, @@ -1348,34 +1348,34 @@ func (x *fastReflection_QueuedPubKey) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueuedPubKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueuedPubkey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.PublicKey != "" { value := protoreflect.ValueOfString(x.PublicKey) - if !f(fd_QueuedPubKey_public_key, value) { + if !f(fd_QueuedPubkey_public_key, value) { return } } if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_QueuedPubKey_creator, value) { + if !f(fd_QueuedPubkey_creator, value) { return } } if x.Expiry != uint64(0) { value := protoreflect.ValueOfUint64(x.Expiry) - if !f(fd_QueuedPubKey_expiry, value) { + if !f(fd_QueuedPubkey_expiry, value) { return } } if x.NumberOfValidators != uint64(0) { value := protoreflect.ValueOfUint64(x.NumberOfValidators) - if !f(fd_QueuedPubKey_number_of_validators, value) { + if !f(fd_QueuedPubkey_number_of_validators, value) { return } } if len(x.EncryptedKeyshares) != 0 { - value := protoreflect.ValueOfList(&_QueuedPubKey_5_list{list: &x.EncryptedKeyshares}) - if !f(fd_QueuedPubKey_encrypted_keyshares, value) { + value := protoreflect.ValueOfList(&_QueuedPubkey_5_list{list: &x.EncryptedKeyshares}) + if !f(fd_QueuedPubkey_encrypted_keyshares, value) { return } } @@ -1392,23 +1392,23 @@ func (x *fastReflection_QueuedPubKey) Range(f func(protoreflect.FieldDescriptor, // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueuedPubKey) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueuedPubkey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.QueuedPubKey.public_key": + case "fairyring.keyshare.QueuedPubkey.public_key": return x.PublicKey != "" - case "fairyring.keyshare.QueuedPubKey.creator": + case "fairyring.keyshare.QueuedPubkey.creator": return x.Creator != "" - case "fairyring.keyshare.QueuedPubKey.expiry": + case "fairyring.keyshare.QueuedPubkey.expiry": return x.Expiry != uint64(0) - case "fairyring.keyshare.QueuedPubKey.number_of_validators": + case "fairyring.keyshare.QueuedPubkey.number_of_validators": return x.NumberOfValidators != uint64(0) - case "fairyring.keyshare.QueuedPubKey.encrypted_keyshares": + case "fairyring.keyshare.QueuedPubkey.encrypted_keyshares": return len(x.EncryptedKeyshares) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueuedPubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueuedPubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.QueuedPubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueuedPubkey does not contain field %s", fd.FullName())) } } @@ -1418,23 +1418,23 @@ func (x *fastReflection_QueuedPubKey) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueuedPubKey) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueuedPubkey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.QueuedPubKey.public_key": + case "fairyring.keyshare.QueuedPubkey.public_key": x.PublicKey = "" - case "fairyring.keyshare.QueuedPubKey.creator": + case "fairyring.keyshare.QueuedPubkey.creator": x.Creator = "" - case "fairyring.keyshare.QueuedPubKey.expiry": + case "fairyring.keyshare.QueuedPubkey.expiry": x.Expiry = uint64(0) - case "fairyring.keyshare.QueuedPubKey.number_of_validators": + case "fairyring.keyshare.QueuedPubkey.number_of_validators": x.NumberOfValidators = uint64(0) - case "fairyring.keyshare.QueuedPubKey.encrypted_keyshares": + case "fairyring.keyshare.QueuedPubkey.encrypted_keyshares": x.EncryptedKeyshares = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueuedPubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueuedPubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.QueuedPubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueuedPubkey does not contain field %s", fd.FullName())) } } @@ -1444,31 +1444,31 @@ func (x *fastReflection_QueuedPubKey) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueuedPubKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueuedPubkey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.QueuedPubKey.public_key": + case "fairyring.keyshare.QueuedPubkey.public_key": value := x.PublicKey return protoreflect.ValueOfString(value) - case "fairyring.keyshare.QueuedPubKey.creator": + case "fairyring.keyshare.QueuedPubkey.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.QueuedPubKey.expiry": + case "fairyring.keyshare.QueuedPubkey.expiry": value := x.Expiry return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.QueuedPubKey.number_of_validators": + case "fairyring.keyshare.QueuedPubkey.number_of_validators": value := x.NumberOfValidators return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.QueuedPubKey.encrypted_keyshares": + case "fairyring.keyshare.QueuedPubkey.encrypted_keyshares": if len(x.EncryptedKeyshares) == 0 { - return protoreflect.ValueOfList(&_QueuedPubKey_5_list{}) + return protoreflect.ValueOfList(&_QueuedPubkey_5_list{}) } - listValue := &_QueuedPubKey_5_list{list: &x.EncryptedKeyshares} + listValue := &_QueuedPubkey_5_list{list: &x.EncryptedKeyshares} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueuedPubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueuedPubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.QueuedPubKey does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueuedPubkey does not contain field %s", descriptor.FullName())) } } @@ -1482,25 +1482,25 @@ func (x *fastReflection_QueuedPubKey) Get(descriptor protoreflect.FieldDescripto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueuedPubKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueuedPubkey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.QueuedPubKey.public_key": + case "fairyring.keyshare.QueuedPubkey.public_key": x.PublicKey = value.Interface().(string) - case "fairyring.keyshare.QueuedPubKey.creator": + case "fairyring.keyshare.QueuedPubkey.creator": x.Creator = value.Interface().(string) - case "fairyring.keyshare.QueuedPubKey.expiry": + case "fairyring.keyshare.QueuedPubkey.expiry": x.Expiry = value.Uint() - case "fairyring.keyshare.QueuedPubKey.number_of_validators": + case "fairyring.keyshare.QueuedPubkey.number_of_validators": x.NumberOfValidators = value.Uint() - case "fairyring.keyshare.QueuedPubKey.encrypted_keyshares": + case "fairyring.keyshare.QueuedPubkey.encrypted_keyshares": lv := value.List() - clv := lv.(*_QueuedPubKey_5_list) + clv := lv.(*_QueuedPubkey_5_list) x.EncryptedKeyshares = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueuedPubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueuedPubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.QueuedPubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueuedPubkey does not contain field %s", fd.FullName())) } } @@ -1514,61 +1514,61 @@ func (x *fastReflection_QueuedPubKey) Set(fd protoreflect.FieldDescriptor, value // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueuedPubKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueuedPubkey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueuedPubKey.encrypted_keyshares": + case "fairyring.keyshare.QueuedPubkey.encrypted_keyshares": if x.EncryptedKeyshares == nil { x.EncryptedKeyshares = []*EncryptedKeyshare{} } - value := &_QueuedPubKey_5_list{list: &x.EncryptedKeyshares} + value := &_QueuedPubkey_5_list{list: &x.EncryptedKeyshares} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.QueuedPubKey.public_key": - panic(fmt.Errorf("field public_key of message fairyring.keyshare.QueuedPubKey is not mutable")) - case "fairyring.keyshare.QueuedPubKey.creator": - panic(fmt.Errorf("field creator of message fairyring.keyshare.QueuedPubKey is not mutable")) - case "fairyring.keyshare.QueuedPubKey.expiry": - panic(fmt.Errorf("field expiry of message fairyring.keyshare.QueuedPubKey is not mutable")) - case "fairyring.keyshare.QueuedPubKey.number_of_validators": - panic(fmt.Errorf("field number_of_validators of message fairyring.keyshare.QueuedPubKey is not mutable")) + case "fairyring.keyshare.QueuedPubkey.public_key": + panic(fmt.Errorf("field public_key of message fairyring.keyshare.QueuedPubkey is not mutable")) + case "fairyring.keyshare.QueuedPubkey.creator": + panic(fmt.Errorf("field creator of message fairyring.keyshare.QueuedPubkey is not mutable")) + case "fairyring.keyshare.QueuedPubkey.expiry": + panic(fmt.Errorf("field expiry of message fairyring.keyshare.QueuedPubkey is not mutable")) + case "fairyring.keyshare.QueuedPubkey.number_of_validators": + panic(fmt.Errorf("field number_of_validators of message fairyring.keyshare.QueuedPubkey is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueuedPubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueuedPubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.QueuedPubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueuedPubkey does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueuedPubKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueuedPubkey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.QueuedPubKey.public_key": + case "fairyring.keyshare.QueuedPubkey.public_key": return protoreflect.ValueOfString("") - case "fairyring.keyshare.QueuedPubKey.creator": + case "fairyring.keyshare.QueuedPubkey.creator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.QueuedPubKey.expiry": + case "fairyring.keyshare.QueuedPubkey.expiry": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.QueuedPubKey.number_of_validators": + case "fairyring.keyshare.QueuedPubkey.number_of_validators": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.QueuedPubKey.encrypted_keyshares": + case "fairyring.keyshare.QueuedPubkey.encrypted_keyshares": list := []*EncryptedKeyshare{} - return protoreflect.ValueOfList(&_QueuedPubKey_5_list{list: &list}) + return protoreflect.ValueOfList(&_QueuedPubkey_5_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueuedPubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueuedPubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.QueuedPubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.QueuedPubkey does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueuedPubKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueuedPubkey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueuedPubKey", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.QueuedPubkey", d.FullName())) } panic("unreachable") } @@ -1576,7 +1576,7 @@ func (x *fastReflection_QueuedPubKey) WhichOneof(d protoreflect.OneofDescriptor) // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueuedPubKey) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueuedPubkey) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1587,7 +1587,7 @@ func (x *fastReflection_QueuedPubKey) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueuedPubKey) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueuedPubkey) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1599,7 +1599,7 @@ func (x *fastReflection_QueuedPubKey) SetUnknown(fields protoreflect.RawFields) // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueuedPubKey) IsValid() bool { +func (x *fastReflection_QueuedPubkey) IsValid() bool { return x != nil } @@ -1609,9 +1609,9 @@ func (x *fastReflection_QueuedPubKey) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueuedPubKey) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueuedPubkey) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueuedPubKey) + x := input.Message.Interface().(*QueuedPubkey) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1653,7 +1653,7 @@ func (x *fastReflection_QueuedPubKey) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueuedPubKey) + x := input.Message.Interface().(*QueuedPubkey) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1723,7 +1723,7 @@ func (x *fastReflection_QueuedPubKey) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueuedPubKey) + x := input.Message.Interface().(*QueuedPubkey) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1755,10 +1755,10 @@ func (x *fastReflection_QueuedPubKey) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueuedPubKey: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueuedPubkey: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueuedPubKey: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueuedPubkey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1990,8 +1990,8 @@ func (x *EncryptedKeyshare) GetValidator() string { return "" } -// ActivePubKey defines the structure of the active public key -type ActivePubKey struct { +// ActivePubkey defines the structure of the active public key +type ActivePubkey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -2003,8 +2003,8 @@ type ActivePubKey struct { EncryptedKeyshares []*EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` } -func (x *ActivePubKey) Reset() { - *x = ActivePubKey{} +func (x *ActivePubkey) Reset() { + *x = ActivePubkey{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_pubkey_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2012,54 +2012,54 @@ func (x *ActivePubKey) Reset() { } } -func (x *ActivePubKey) String() string { +func (x *ActivePubkey) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ActivePubKey) ProtoMessage() {} +func (*ActivePubkey) ProtoMessage() {} -// Deprecated: Use ActivePubKey.ProtoReflect.Descriptor instead. -func (*ActivePubKey) Descriptor() ([]byte, []int) { +// Deprecated: Use ActivePubkey.ProtoReflect.Descriptor instead. +func (*ActivePubkey) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_pubkey_proto_rawDescGZIP(), []int{1} } -func (x *ActivePubKey) GetPublicKey() string { +func (x *ActivePubkey) GetPublicKey() string { if x != nil { return x.PublicKey } return "" } -func (x *ActivePubKey) GetCreator() string { +func (x *ActivePubkey) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *ActivePubKey) GetExpiry() uint64 { +func (x *ActivePubkey) GetExpiry() uint64 { if x != nil { return x.Expiry } return 0 } -func (x *ActivePubKey) GetNumberOfValidators() uint64 { +func (x *ActivePubkey) GetNumberOfValidators() uint64 { if x != nil { return x.NumberOfValidators } return 0 } -func (x *ActivePubKey) GetEncryptedKeyshares() []*EncryptedKeyshare { +func (x *ActivePubkey) GetEncryptedKeyshares() []*EncryptedKeyshare { if x != nil { return x.EncryptedKeyshares } return nil } -// QueuedPubKey defines the structure of the queued public key -type QueuedPubKey struct { +// QueuedPubkey defines the structure of the queued public key +type QueuedPubkey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -2071,8 +2071,8 @@ type QueuedPubKey struct { EncryptedKeyshares []*EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` } -func (x *QueuedPubKey) Reset() { - *x = QueuedPubKey{} +func (x *QueuedPubkey) Reset() { + *x = QueuedPubkey{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_pubkey_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -2080,46 +2080,46 @@ func (x *QueuedPubKey) Reset() { } } -func (x *QueuedPubKey) String() string { +func (x *QueuedPubkey) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueuedPubKey) ProtoMessage() {} +func (*QueuedPubkey) ProtoMessage() {} -// Deprecated: Use QueuedPubKey.ProtoReflect.Descriptor instead. -func (*QueuedPubKey) Descriptor() ([]byte, []int) { +// Deprecated: Use QueuedPubkey.ProtoReflect.Descriptor instead. +func (*QueuedPubkey) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_pubkey_proto_rawDescGZIP(), []int{2} } -func (x *QueuedPubKey) GetPublicKey() string { +func (x *QueuedPubkey) GetPublicKey() string { if x != nil { return x.PublicKey } return "" } -func (x *QueuedPubKey) GetCreator() string { +func (x *QueuedPubkey) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *QueuedPubKey) GetExpiry() uint64 { +func (x *QueuedPubkey) GetExpiry() uint64 { if x != nil { return x.Expiry } return 0 } -func (x *QueuedPubKey) GetNumberOfValidators() uint64 { +func (x *QueuedPubkey) GetNumberOfValidators() uint64 { if x != nil { return x.NumberOfValidators } return 0 } -func (x *QueuedPubKey) GetEncryptedKeyshares() []*EncryptedKeyshare { +func (x *QueuedPubkey) GetEncryptedKeyshares() []*EncryptedKeyshare { if x != nil { return x.EncryptedKeyshares } @@ -2137,7 +2137,7 @@ var file_fairyring_keyshare_pubkey_proto_rawDesc = []byte{ 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xe9, 0x01, 0x0a, - 0x0c, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, + 0x0c, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, @@ -2152,7 +2152,7 @@ var file_fairyring_keyshare_pubkey_proto_rawDesc = []byte{ 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x22, 0xe9, 0x01, 0x0a, 0x0c, 0x51, 0x75, 0x65, - 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, + 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, @@ -2196,12 +2196,12 @@ func file_fairyring_keyshare_pubkey_proto_rawDescGZIP() []byte { var file_fairyring_keyshare_pubkey_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_fairyring_keyshare_pubkey_proto_goTypes = []interface{}{ (*EncryptedKeyshare)(nil), // 0: fairyring.keyshare.EncryptedKeyshare - (*ActivePubKey)(nil), // 1: fairyring.keyshare.ActivePubKey - (*QueuedPubKey)(nil), // 2: fairyring.keyshare.QueuedPubKey + (*ActivePubkey)(nil), // 1: fairyring.keyshare.ActivePubkey + (*QueuedPubkey)(nil), // 2: fairyring.keyshare.QueuedPubkey } var file_fairyring_keyshare_pubkey_proto_depIdxs = []int32{ - 0, // 0: fairyring.keyshare.ActivePubKey.encrypted_keyshares:type_name -> fairyring.keyshare.EncryptedKeyshare - 0, // 1: fairyring.keyshare.QueuedPubKey.encrypted_keyshares:type_name -> fairyring.keyshare.EncryptedKeyshare + 0, // 0: fairyring.keyshare.ActivePubkey.encrypted_keyshares:type_name -> fairyring.keyshare.EncryptedKeyshare + 0, // 1: fairyring.keyshare.QueuedPubkey.encrypted_keyshares:type_name -> fairyring.keyshare.EncryptedKeyshare 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name @@ -2228,7 +2228,7 @@ func file_fairyring_keyshare_pubkey_proto_init() { } } file_fairyring_keyshare_pubkey_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActivePubKey); i { + switch v := v.(*ActivePubkey); i { case 0: return &v.state case 1: @@ -2240,7 +2240,7 @@ func file_fairyring_keyshare_pubkey_proto_init() { } } file_fairyring_keyshare_pubkey_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueuedPubKey); i { + switch v := v.(*QueuedPubkey); i { case 0: return &v.state case 1: diff --git a/api/fairyring/keyshare/query.pulsar.go b/api/fairyring/keyshare/query.pulsar.go index 961a8df3..b48e5e3e 100644 --- a/api/fairyring/keyshare/query.pulsar.go +++ b/api/fairyring/keyshare/query.pulsar.go @@ -8650,9 +8650,9 @@ func (x *fastReflection_QueryPubkeyResponse) Get(descriptor protoreflect.FieldDe func (x *fastReflection_QueryPubkeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "fairyring.keyshare.QueryPubkeyResponse.active_pubkey": - x.ActivePubkey = value.Message().Interface().(*ActivePubKey) + x.ActivePubkey = value.Message().Interface().(*ActivePubkey) case "fairyring.keyshare.QueryPubkeyResponse.queued_pubkey": - x.QueuedPubkey = value.Message().Interface().(*QueuedPubKey) + x.QueuedPubkey = value.Message().Interface().(*QueuedPubkey) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.QueryPubkeyResponse")) @@ -8675,12 +8675,12 @@ func (x *fastReflection_QueryPubkeyResponse) Mutable(fd protoreflect.FieldDescri switch fd.FullName() { case "fairyring.keyshare.QueryPubkeyResponse.active_pubkey": if x.ActivePubkey == nil { - x.ActivePubkey = new(ActivePubKey) + x.ActivePubkey = new(ActivePubkey) } return protoreflect.ValueOfMessage(x.ActivePubkey.ProtoReflect()) case "fairyring.keyshare.QueryPubkeyResponse.queued_pubkey": if x.QueuedPubkey == nil { - x.QueuedPubkey = new(QueuedPubKey) + x.QueuedPubkey = new(QueuedPubkey) } return protoreflect.ValueOfMessage(x.QueuedPubkey.ProtoReflect()) default: @@ -8697,10 +8697,10 @@ func (x *fastReflection_QueryPubkeyResponse) Mutable(fd protoreflect.FieldDescri func (x *fastReflection_QueryPubkeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "fairyring.keyshare.QueryPubkeyResponse.active_pubkey": - m := new(ActivePubKey) + m := new(ActivePubkey) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "fairyring.keyshare.QueryPubkeyResponse.queued_pubkey": - m := new(QueuedPubKey) + m := new(QueuedPubkey) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { @@ -8915,7 +8915,7 @@ func (x *fastReflection_QueryPubkeyResponse) ProtoMethods() *protoiface.Methods return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.ActivePubkey == nil { - x.ActivePubkey = &ActivePubKey{} + x.ActivePubkey = &ActivePubkey{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ActivePubkey); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -8951,7 +8951,7 @@ func (x *fastReflection_QueryPubkeyResponse) ProtoMethods() *protoiface.Methods return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.QueuedPubkey == nil { - x.QueuedPubkey = &QueuedPubKey{} + x.QueuedPubkey = &QueuedPubkey{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.QueuedPubkey); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -13531,7 +13531,7 @@ func (x *QueryDecryptionKeyAllResponse) GetPagination() *v1beta1.PageResponse { return nil } -// QueryPubKeyRequest is request type for the Query/PubKey RPC method. +// QueryPubkeyRequest is request type for the Query/Pubkey RPC method. type QueryPubkeyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -13558,14 +13558,14 @@ func (*QueryPubkeyRequest) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{18} } -// QueryPubKeyResponse is response type for the Query/PubKey RPC method. +// QueryPubkeyResponse is response type for the Query/Pubkey RPC method. type QueryPubkeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ActivePubkey *ActivePubKey `protobuf:"bytes,1,opt,name=active_pubkey,json=activePubkey,proto3" json:"active_pubkey,omitempty"` - QueuedPubkey *QueuedPubKey `protobuf:"bytes,2,opt,name=queued_pubkey,json=queuedPubkey,proto3" json:"queued_pubkey,omitempty"` + ActivePubkey *ActivePubkey `protobuf:"bytes,1,opt,name=active_pubkey,json=activePubkey,proto3" json:"active_pubkey,omitempty"` + QueuedPubkey *QueuedPubkey `protobuf:"bytes,2,opt,name=queued_pubkey,json=queuedPubkey,proto3" json:"queued_pubkey,omitempty"` } func (x *QueryPubkeyResponse) Reset() { @@ -13588,14 +13588,14 @@ func (*QueryPubkeyResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_query_proto_rawDescGZIP(), []int{19} } -func (x *QueryPubkeyResponse) GetActivePubkey() *ActivePubKey { +func (x *QueryPubkeyResponse) GetActivePubkey() *ActivePubkey { if x != nil { return x.ActivePubkey } return nil } -func (x *QueryPubkeyResponse) GetQueuedPubkey() *QueuedPubKey { +func (x *QueryPubkeyResponse) GetQueuedPubkey() *QueuedPubkey { if x != nil { return x.QueuedPubkey } @@ -14070,12 +14070,12 @@ var file_fairyring_keyshare_query_proto_rawDesc = []byte{ 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, - 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, + 0x65, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x4b, 0x0a, 0x0d, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, - 0x62, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x75, + 0x62, 0x6b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x22, 0x37, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, @@ -14347,8 +14347,8 @@ var file_fairyring_keyshare_query_proto_goTypes = []interface{}{ (*v1beta1.PageResponse)(nil), // 32: cosmos.base.query.v1beta1.PageResponse (*Keyshare)(nil), // 33: fairyring.keyshare.Keyshare (*DecryptionKey)(nil), // 34: fairyring.keyshare.DecryptionKey - (*ActivePubKey)(nil), // 35: fairyring.keyshare.ActivePubKey - (*QueuedPubKey)(nil), // 36: fairyring.keyshare.QueuedPubKey + (*ActivePubkey)(nil), // 35: fairyring.keyshare.ActivePubkey + (*QueuedPubkey)(nil), // 36: fairyring.keyshare.QueuedPubkey (*AuthorizedAddress)(nil), // 37: fairyring.keyshare.AuthorizedAddress (*GeneralKeyshare)(nil), // 38: fairyring.keyshare.GeneralKeyshare } @@ -14368,8 +14368,8 @@ var file_fairyring_keyshare_query_proto_depIdxs = []int32{ 31, // 12: fairyring.keyshare.QueryDecryptionKeyAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 34, // 13: fairyring.keyshare.QueryDecryptionKeyAllResponse.decryption_keys:type_name -> fairyring.keyshare.DecryptionKey 32, // 14: fairyring.keyshare.QueryDecryptionKeyAllResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 35, // 15: fairyring.keyshare.QueryPubkeyResponse.active_pubkey:type_name -> fairyring.keyshare.ActivePubKey - 36, // 16: fairyring.keyshare.QueryPubkeyResponse.queued_pubkey:type_name -> fairyring.keyshare.QueuedPubKey + 35, // 15: fairyring.keyshare.QueryPubkeyResponse.active_pubkey:type_name -> fairyring.keyshare.ActivePubkey + 36, // 16: fairyring.keyshare.QueryPubkeyResponse.queued_pubkey:type_name -> fairyring.keyshare.QueuedPubkey 37, // 17: fairyring.keyshare.QueryAuthorizedAddressResponse.authorized_address:type_name -> fairyring.keyshare.AuthorizedAddress 31, // 18: fairyring.keyshare.QueryAuthorizedAddressAllRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest 37, // 19: fairyring.keyshare.QueryAuthorizedAddressAllResponse.authorized_address:type_name -> fairyring.keyshare.AuthorizedAddress diff --git a/api/fairyring/keyshare/tx.pulsar.go b/api/fairyring/keyshare/tx.pulsar.go index 4e073515..79248521 100644 --- a/api/fairyring/keyshare/tx.pulsar.go +++ b/api/fairyring/keyshare/tx.pulsar.go @@ -3877,131 +3877,131 @@ func (x *fastReflection_MsgSendKeyshareResponse) ProtoMethods() *protoiface.Meth } } -var _ protoreflect.List = (*_MsgCreateLatestPubKey_3_list)(nil) +var _ protoreflect.List = (*_MsgCreateLatestPubkey_3_list)(nil) -type _MsgCreateLatestPubKey_3_list struct { +type _MsgCreateLatestPubkey_3_list struct { list *[]string } -func (x *_MsgCreateLatestPubKey_3_list) Len() int { +func (x *_MsgCreateLatestPubkey_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_MsgCreateLatestPubKey_3_list) Get(i int) protoreflect.Value { +func (x *_MsgCreateLatestPubkey_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfString((*x.list)[i]) } -func (x *_MsgCreateLatestPubKey_3_list) Set(i int, value protoreflect.Value) { +func (x *_MsgCreateLatestPubkey_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } -func (x *_MsgCreateLatestPubKey_3_list) Append(value protoreflect.Value) { +func (x *_MsgCreateLatestPubkey_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } -func (x *_MsgCreateLatestPubKey_3_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgCreateLatestPubKey at list field Commitments as it is not of Message kind")) +func (x *_MsgCreateLatestPubkey_3_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgCreateLatestPubkey at list field Commitments as it is not of Message kind")) } -func (x *_MsgCreateLatestPubKey_3_list) Truncate(n int) { +func (x *_MsgCreateLatestPubkey_3_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_MsgCreateLatestPubKey_3_list) NewElement() protoreflect.Value { +func (x *_MsgCreateLatestPubkey_3_list) NewElement() protoreflect.Value { v := "" return protoreflect.ValueOfString(v) } -func (x *_MsgCreateLatestPubKey_3_list) IsValid() bool { +func (x *_MsgCreateLatestPubkey_3_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_MsgCreateLatestPubKey_5_list)(nil) +var _ protoreflect.List = (*_MsgCreateLatestPubkey_5_list)(nil) -type _MsgCreateLatestPubKey_5_list struct { +type _MsgCreateLatestPubkey_5_list struct { list *[]*EncryptedKeyshare } -func (x *_MsgCreateLatestPubKey_5_list) Len() int { +func (x *_MsgCreateLatestPubkey_5_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_MsgCreateLatestPubKey_5_list) Get(i int) protoreflect.Value { +func (x *_MsgCreateLatestPubkey_5_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_MsgCreateLatestPubKey_5_list) Set(i int, value protoreflect.Value) { +func (x *_MsgCreateLatestPubkey_5_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*EncryptedKeyshare) (*x.list)[i] = concreteValue } -func (x *_MsgCreateLatestPubKey_5_list) Append(value protoreflect.Value) { +func (x *_MsgCreateLatestPubkey_5_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*EncryptedKeyshare) *x.list = append(*x.list, concreteValue) } -func (x *_MsgCreateLatestPubKey_5_list) AppendMutable() protoreflect.Value { +func (x *_MsgCreateLatestPubkey_5_list) AppendMutable() protoreflect.Value { v := new(EncryptedKeyshare) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_MsgCreateLatestPubKey_5_list) Truncate(n int) { +func (x *_MsgCreateLatestPubkey_5_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_MsgCreateLatestPubKey_5_list) NewElement() protoreflect.Value { +func (x *_MsgCreateLatestPubkey_5_list) NewElement() protoreflect.Value { v := new(EncryptedKeyshare) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_MsgCreateLatestPubKey_5_list) IsValid() bool { +func (x *_MsgCreateLatestPubkey_5_list) IsValid() bool { return x.list != nil } var ( - md_MsgCreateLatestPubKey protoreflect.MessageDescriptor - fd_MsgCreateLatestPubKey_creator protoreflect.FieldDescriptor - fd_MsgCreateLatestPubKey_public_key protoreflect.FieldDescriptor - fd_MsgCreateLatestPubKey_commitments protoreflect.FieldDescriptor - fd_MsgCreateLatestPubKey_number_of_validators protoreflect.FieldDescriptor - fd_MsgCreateLatestPubKey_encrypted_keyshares protoreflect.FieldDescriptor + md_MsgCreateLatestPubkey protoreflect.MessageDescriptor + fd_MsgCreateLatestPubkey_creator protoreflect.FieldDescriptor + fd_MsgCreateLatestPubkey_public_key protoreflect.FieldDescriptor + fd_MsgCreateLatestPubkey_commitments protoreflect.FieldDescriptor + fd_MsgCreateLatestPubkey_number_of_validators protoreflect.FieldDescriptor + fd_MsgCreateLatestPubkey_encrypted_keyshares protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_tx_proto_init() - md_MsgCreateLatestPubKey = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgCreateLatestPubKey") - fd_MsgCreateLatestPubKey_creator = md_MsgCreateLatestPubKey.Fields().ByName("creator") - fd_MsgCreateLatestPubKey_public_key = md_MsgCreateLatestPubKey.Fields().ByName("public_key") - fd_MsgCreateLatestPubKey_commitments = md_MsgCreateLatestPubKey.Fields().ByName("commitments") - fd_MsgCreateLatestPubKey_number_of_validators = md_MsgCreateLatestPubKey.Fields().ByName("number_of_validators") - fd_MsgCreateLatestPubKey_encrypted_keyshares = md_MsgCreateLatestPubKey.Fields().ByName("encrypted_keyshares") + md_MsgCreateLatestPubkey = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgCreateLatestPubkey") + fd_MsgCreateLatestPubkey_creator = md_MsgCreateLatestPubkey.Fields().ByName("creator") + fd_MsgCreateLatestPubkey_public_key = md_MsgCreateLatestPubkey.Fields().ByName("public_key") + fd_MsgCreateLatestPubkey_commitments = md_MsgCreateLatestPubkey.Fields().ByName("commitments") + fd_MsgCreateLatestPubkey_number_of_validators = md_MsgCreateLatestPubkey.Fields().ByName("number_of_validators") + fd_MsgCreateLatestPubkey_encrypted_keyshares = md_MsgCreateLatestPubkey.Fields().ByName("encrypted_keyshares") } -var _ protoreflect.Message = (*fastReflection_MsgCreateLatestPubKey)(nil) +var _ protoreflect.Message = (*fastReflection_MsgCreateLatestPubkey)(nil) -type fastReflection_MsgCreateLatestPubKey MsgCreateLatestPubKey +type fastReflection_MsgCreateLatestPubkey MsgCreateLatestPubkey -func (x *MsgCreateLatestPubKey) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateLatestPubKey)(x) +func (x *MsgCreateLatestPubkey) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateLatestPubkey)(x) } -func (x *MsgCreateLatestPubKey) slowProtoReflect() protoreflect.Message { +func (x *MsgCreateLatestPubkey) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_tx_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4013,43 +4013,43 @@ func (x *MsgCreateLatestPubKey) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgCreateLatestPubKey_messageType fastReflection_MsgCreateLatestPubKey_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateLatestPubKey_messageType{} +var _fastReflection_MsgCreateLatestPubkey_messageType fastReflection_MsgCreateLatestPubkey_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateLatestPubkey_messageType{} -type fastReflection_MsgCreateLatestPubKey_messageType struct{} +type fastReflection_MsgCreateLatestPubkey_messageType struct{} -func (x fastReflection_MsgCreateLatestPubKey_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateLatestPubKey)(nil) +func (x fastReflection_MsgCreateLatestPubkey_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateLatestPubkey)(nil) } -func (x fastReflection_MsgCreateLatestPubKey_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateLatestPubKey) +func (x fastReflection_MsgCreateLatestPubkey_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateLatestPubkey) } -func (x fastReflection_MsgCreateLatestPubKey_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateLatestPubKey +func (x fastReflection_MsgCreateLatestPubkey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateLatestPubkey } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgCreateLatestPubKey) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateLatestPubKey +func (x *fastReflection_MsgCreateLatestPubkey) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateLatestPubkey } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgCreateLatestPubKey) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateLatestPubKey_messageType +func (x *fastReflection_MsgCreateLatestPubkey) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateLatestPubkey_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateLatestPubKey) New() protoreflect.Message { - return new(fastReflection_MsgCreateLatestPubKey) +func (x *fastReflection_MsgCreateLatestPubkey) New() protoreflect.Message { + return new(fastReflection_MsgCreateLatestPubkey) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCreateLatestPubKey) Interface() protoreflect.ProtoMessage { - return (*MsgCreateLatestPubKey)(x) +func (x *fastReflection_MsgCreateLatestPubkey) Interface() protoreflect.ProtoMessage { + return (*MsgCreateLatestPubkey)(x) } // Range iterates over every populated field in an undefined order, @@ -4057,34 +4057,34 @@ func (x *fastReflection_MsgCreateLatestPubKey) Interface() protoreflect.ProtoMes // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgCreateLatestPubKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgCreateLatestPubkey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgCreateLatestPubKey_creator, value) { + if !f(fd_MsgCreateLatestPubkey_creator, value) { return } } if x.PublicKey != "" { value := protoreflect.ValueOfString(x.PublicKey) - if !f(fd_MsgCreateLatestPubKey_public_key, value) { + if !f(fd_MsgCreateLatestPubkey_public_key, value) { return } } if len(x.Commitments) != 0 { - value := protoreflect.ValueOfList(&_MsgCreateLatestPubKey_3_list{list: &x.Commitments}) - if !f(fd_MsgCreateLatestPubKey_commitments, value) { + value := protoreflect.ValueOfList(&_MsgCreateLatestPubkey_3_list{list: &x.Commitments}) + if !f(fd_MsgCreateLatestPubkey_commitments, value) { return } } if x.NumberOfValidators != uint64(0) { value := protoreflect.ValueOfUint64(x.NumberOfValidators) - if !f(fd_MsgCreateLatestPubKey_number_of_validators, value) { + if !f(fd_MsgCreateLatestPubkey_number_of_validators, value) { return } } if len(x.EncryptedKeyshares) != 0 { - value := protoreflect.ValueOfList(&_MsgCreateLatestPubKey_5_list{list: &x.EncryptedKeyshares}) - if !f(fd_MsgCreateLatestPubKey_encrypted_keyshares, value) { + value := protoreflect.ValueOfList(&_MsgCreateLatestPubkey_5_list{list: &x.EncryptedKeyshares}) + if !f(fd_MsgCreateLatestPubkey_encrypted_keyshares, value) { return } } @@ -4101,23 +4101,23 @@ func (x *fastReflection_MsgCreateLatestPubKey) Range(f func(protoreflect.FieldDe // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCreateLatestPubKey) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgCreateLatestPubkey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.MsgCreateLatestPubKey.creator": + case "fairyring.keyshare.MsgCreateLatestPubkey.creator": return x.Creator != "" - case "fairyring.keyshare.MsgCreateLatestPubKey.public_key": + case "fairyring.keyshare.MsgCreateLatestPubkey.public_key": return x.PublicKey != "" - case "fairyring.keyshare.MsgCreateLatestPubKey.commitments": + case "fairyring.keyshare.MsgCreateLatestPubkey.commitments": return len(x.Commitments) != 0 - case "fairyring.keyshare.MsgCreateLatestPubKey.number_of_validators": + case "fairyring.keyshare.MsgCreateLatestPubkey.number_of_validators": return x.NumberOfValidators != uint64(0) - case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_keyshares": + case "fairyring.keyshare.MsgCreateLatestPubkey.encrypted_keyshares": return len(x.EncryptedKeyshares) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubkey does not contain field %s", fd.FullName())) } } @@ -4127,23 +4127,23 @@ func (x *fastReflection_MsgCreateLatestPubKey) Has(fd protoreflect.FieldDescript // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateLatestPubKey) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgCreateLatestPubkey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.MsgCreateLatestPubKey.creator": + case "fairyring.keyshare.MsgCreateLatestPubkey.creator": x.Creator = "" - case "fairyring.keyshare.MsgCreateLatestPubKey.public_key": + case "fairyring.keyshare.MsgCreateLatestPubkey.public_key": x.PublicKey = "" - case "fairyring.keyshare.MsgCreateLatestPubKey.commitments": + case "fairyring.keyshare.MsgCreateLatestPubkey.commitments": x.Commitments = nil - case "fairyring.keyshare.MsgCreateLatestPubKey.number_of_validators": + case "fairyring.keyshare.MsgCreateLatestPubkey.number_of_validators": x.NumberOfValidators = uint64(0) - case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_keyshares": + case "fairyring.keyshare.MsgCreateLatestPubkey.encrypted_keyshares": x.EncryptedKeyshares = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubkey does not contain field %s", fd.FullName())) } } @@ -4153,34 +4153,34 @@ func (x *fastReflection_MsgCreateLatestPubKey) Clear(fd protoreflect.FieldDescri // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgCreateLatestPubKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateLatestPubkey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.MsgCreateLatestPubKey.creator": + case "fairyring.keyshare.MsgCreateLatestPubkey.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateLatestPubKey.public_key": + case "fairyring.keyshare.MsgCreateLatestPubkey.public_key": value := x.PublicKey return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgCreateLatestPubKey.commitments": + case "fairyring.keyshare.MsgCreateLatestPubkey.commitments": if len(x.Commitments) == 0 { - return protoreflect.ValueOfList(&_MsgCreateLatestPubKey_3_list{}) + return protoreflect.ValueOfList(&_MsgCreateLatestPubkey_3_list{}) } - listValue := &_MsgCreateLatestPubKey_3_list{list: &x.Commitments} + listValue := &_MsgCreateLatestPubkey_3_list{list: &x.Commitments} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.MsgCreateLatestPubKey.number_of_validators": + case "fairyring.keyshare.MsgCreateLatestPubkey.number_of_validators": value := x.NumberOfValidators return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_keyshares": + case "fairyring.keyshare.MsgCreateLatestPubkey.encrypted_keyshares": if len(x.EncryptedKeyshares) == 0 { - return protoreflect.ValueOfList(&_MsgCreateLatestPubKey_5_list{}) + return protoreflect.ValueOfList(&_MsgCreateLatestPubkey_5_list{}) } - listValue := &_MsgCreateLatestPubKey_5_list{list: &x.EncryptedKeyshares} + listValue := &_MsgCreateLatestPubkey_5_list{list: &x.EncryptedKeyshares} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubKey does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubkey does not contain field %s", descriptor.FullName())) } } @@ -4194,27 +4194,27 @@ func (x *fastReflection_MsgCreateLatestPubKey) Get(descriptor protoreflect.Field // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateLatestPubKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgCreateLatestPubkey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.MsgCreateLatestPubKey.creator": + case "fairyring.keyshare.MsgCreateLatestPubkey.creator": x.Creator = value.Interface().(string) - case "fairyring.keyshare.MsgCreateLatestPubKey.public_key": + case "fairyring.keyshare.MsgCreateLatestPubkey.public_key": x.PublicKey = value.Interface().(string) - case "fairyring.keyshare.MsgCreateLatestPubKey.commitments": + case "fairyring.keyshare.MsgCreateLatestPubkey.commitments": lv := value.List() - clv := lv.(*_MsgCreateLatestPubKey_3_list) + clv := lv.(*_MsgCreateLatestPubkey_3_list) x.Commitments = *clv.list - case "fairyring.keyshare.MsgCreateLatestPubKey.number_of_validators": + case "fairyring.keyshare.MsgCreateLatestPubkey.number_of_validators": x.NumberOfValidators = value.Uint() - case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_keyshares": + case "fairyring.keyshare.MsgCreateLatestPubkey.encrypted_keyshares": lv := value.List() - clv := lv.(*_MsgCreateLatestPubKey_5_list) + clv := lv.(*_MsgCreateLatestPubkey_5_list) x.EncryptedKeyshares = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubkey does not contain field %s", fd.FullName())) } } @@ -4228,66 +4228,66 @@ func (x *fastReflection_MsgCreateLatestPubKey) Set(fd protoreflect.FieldDescript // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateLatestPubKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateLatestPubkey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.MsgCreateLatestPubKey.commitments": + case "fairyring.keyshare.MsgCreateLatestPubkey.commitments": if x.Commitments == nil { x.Commitments = []string{} } - value := &_MsgCreateLatestPubKey_3_list{list: &x.Commitments} + value := &_MsgCreateLatestPubkey_3_list{list: &x.Commitments} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_keyshares": + case "fairyring.keyshare.MsgCreateLatestPubkey.encrypted_keyshares": if x.EncryptedKeyshares == nil { x.EncryptedKeyshares = []*EncryptedKeyshare{} } - value := &_MsgCreateLatestPubKey_5_list{list: &x.EncryptedKeyshares} + value := &_MsgCreateLatestPubkey_5_list{list: &x.EncryptedKeyshares} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.MsgCreateLatestPubKey.creator": - panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgCreateLatestPubKey is not mutable")) - case "fairyring.keyshare.MsgCreateLatestPubKey.public_key": - panic(fmt.Errorf("field public_key of message fairyring.keyshare.MsgCreateLatestPubKey is not mutable")) - case "fairyring.keyshare.MsgCreateLatestPubKey.number_of_validators": - panic(fmt.Errorf("field number_of_validators of message fairyring.keyshare.MsgCreateLatestPubKey is not mutable")) + case "fairyring.keyshare.MsgCreateLatestPubkey.creator": + panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgCreateLatestPubkey is not mutable")) + case "fairyring.keyshare.MsgCreateLatestPubkey.public_key": + panic(fmt.Errorf("field public_key of message fairyring.keyshare.MsgCreateLatestPubkey is not mutable")) + case "fairyring.keyshare.MsgCreateLatestPubkey.number_of_validators": + panic(fmt.Errorf("field number_of_validators of message fairyring.keyshare.MsgCreateLatestPubkey is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubkey does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgCreateLatestPubKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateLatestPubkey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.MsgCreateLatestPubKey.creator": + case "fairyring.keyshare.MsgCreateLatestPubkey.creator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateLatestPubKey.public_key": + case "fairyring.keyshare.MsgCreateLatestPubkey.public_key": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgCreateLatestPubKey.commitments": + case "fairyring.keyshare.MsgCreateLatestPubkey.commitments": list := []string{} - return protoreflect.ValueOfList(&_MsgCreateLatestPubKey_3_list{list: &list}) - case "fairyring.keyshare.MsgCreateLatestPubKey.number_of_validators": + return protoreflect.ValueOfList(&_MsgCreateLatestPubkey_3_list{list: &list}) + case "fairyring.keyshare.MsgCreateLatestPubkey.number_of_validators": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgCreateLatestPubKey.encrypted_keyshares": + case "fairyring.keyshare.MsgCreateLatestPubkey.encrypted_keyshares": list := []*EncryptedKeyshare{} - return protoreflect.ValueOfList(&_MsgCreateLatestPubKey_5_list{list: &list}) + return protoreflect.ValueOfList(&_MsgCreateLatestPubkey_5_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubkey does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgCreateLatestPubKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgCreateLatestPubkey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.MsgCreateLatestPubKey", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.MsgCreateLatestPubkey", d.FullName())) } panic("unreachable") } @@ -4295,7 +4295,7 @@ func (x *fastReflection_MsgCreateLatestPubKey) WhichOneof(d protoreflect.OneofDe // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgCreateLatestPubKey) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgCreateLatestPubkey) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4306,7 +4306,7 @@ func (x *fastReflection_MsgCreateLatestPubKey) GetUnknown() protoreflect.RawFiel // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateLatestPubKey) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgCreateLatestPubkey) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4318,7 +4318,7 @@ func (x *fastReflection_MsgCreateLatestPubKey) SetUnknown(fields protoreflect.Ra // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgCreateLatestPubKey) IsValid() bool { +func (x *fastReflection_MsgCreateLatestPubkey) IsValid() bool { return x != nil } @@ -4328,9 +4328,9 @@ func (x *fastReflection_MsgCreateLatestPubKey) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCreateLatestPubKey) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgCreateLatestPubkey) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateLatestPubKey) + x := input.Message.Interface().(*MsgCreateLatestPubkey) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4375,7 +4375,7 @@ func (x *fastReflection_MsgCreateLatestPubKey) ProtoMethods() *protoiface.Method } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateLatestPubKey) + x := input.Message.Interface().(*MsgCreateLatestPubkey) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4449,7 +4449,7 @@ func (x *fastReflection_MsgCreateLatestPubKey) ProtoMethods() *protoiface.Method }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateLatestPubKey) + x := input.Message.Interface().(*MsgCreateLatestPubkey) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4481,10 +4481,10 @@ func (x *fastReflection_MsgCreateLatestPubKey) ProtoMethods() *protoiface.Method fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateLatestPubKey: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateLatestPubkey: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateLatestPubKey: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateLatestPubkey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4672,23 +4672,23 @@ func (x *fastReflection_MsgCreateLatestPubKey) ProtoMethods() *protoiface.Method } var ( - md_MsgCreateLatestPubKeyResponse protoreflect.MessageDescriptor + md_MsgCreateLatestPubkeyResponse protoreflect.MessageDescriptor ) func init() { file_fairyring_keyshare_tx_proto_init() - md_MsgCreateLatestPubKeyResponse = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgCreateLatestPubKeyResponse") + md_MsgCreateLatestPubkeyResponse = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgCreateLatestPubkeyResponse") } -var _ protoreflect.Message = (*fastReflection_MsgCreateLatestPubKeyResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgCreateLatestPubkeyResponse)(nil) -type fastReflection_MsgCreateLatestPubKeyResponse MsgCreateLatestPubKeyResponse +type fastReflection_MsgCreateLatestPubkeyResponse MsgCreateLatestPubkeyResponse -func (x *MsgCreateLatestPubKeyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgCreateLatestPubKeyResponse)(x) +func (x *MsgCreateLatestPubkeyResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgCreateLatestPubkeyResponse)(x) } -func (x *MsgCreateLatestPubKeyResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgCreateLatestPubkeyResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_tx_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -4700,43 +4700,43 @@ func (x *MsgCreateLatestPubKeyResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_MsgCreateLatestPubKeyResponse_messageType fastReflection_MsgCreateLatestPubKeyResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgCreateLatestPubKeyResponse_messageType{} +var _fastReflection_MsgCreateLatestPubkeyResponse_messageType fastReflection_MsgCreateLatestPubkeyResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgCreateLatestPubkeyResponse_messageType{} -type fastReflection_MsgCreateLatestPubKeyResponse_messageType struct{} +type fastReflection_MsgCreateLatestPubkeyResponse_messageType struct{} -func (x fastReflection_MsgCreateLatestPubKeyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgCreateLatestPubKeyResponse)(nil) +func (x fastReflection_MsgCreateLatestPubkeyResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgCreateLatestPubkeyResponse)(nil) } -func (x fastReflection_MsgCreateLatestPubKeyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgCreateLatestPubKeyResponse) +func (x fastReflection_MsgCreateLatestPubkeyResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgCreateLatestPubkeyResponse) } -func (x fastReflection_MsgCreateLatestPubKeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateLatestPubKeyResponse +func (x fastReflection_MsgCreateLatestPubkeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateLatestPubkeyResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgCreateLatestPubKeyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgCreateLatestPubKeyResponse +func (x *fastReflection_MsgCreateLatestPubkeyResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgCreateLatestPubkeyResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgCreateLatestPubKeyResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgCreateLatestPubKeyResponse_messageType +func (x *fastReflection_MsgCreateLatestPubkeyResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgCreateLatestPubkeyResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgCreateLatestPubKeyResponse) New() protoreflect.Message { - return new(fastReflection_MsgCreateLatestPubKeyResponse) +func (x *fastReflection_MsgCreateLatestPubkeyResponse) New() protoreflect.Message { + return new(fastReflection_MsgCreateLatestPubkeyResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgCreateLatestPubKeyResponse) Interface() protoreflect.ProtoMessage { - return (*MsgCreateLatestPubKeyResponse)(x) +func (x *fastReflection_MsgCreateLatestPubkeyResponse) Interface() protoreflect.ProtoMessage { + return (*MsgCreateLatestPubkeyResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -4744,7 +4744,7 @@ func (x *fastReflection_MsgCreateLatestPubKeyResponse) Interface() protoreflect. // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgCreateLatestPubKeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgCreateLatestPubkeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -4758,13 +4758,13 @@ func (x *fastReflection_MsgCreateLatestPubKeyResponse) Range(f func(protoreflect // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgCreateLatestPubKeyResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgCreateLatestPubkeyResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubkeyResponse does not contain field %s", fd.FullName())) } } @@ -4774,13 +4774,13 @@ func (x *fastReflection_MsgCreateLatestPubKeyResponse) Has(fd protoreflect.Field // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateLatestPubKeyResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgCreateLatestPubkeyResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubkeyResponse does not contain field %s", fd.FullName())) } } @@ -4790,13 +4790,13 @@ func (x *fastReflection_MsgCreateLatestPubKeyResponse) Clear(fd protoreflect.Fie // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgCreateLatestPubKeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateLatestPubkeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubKeyResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubkeyResponse does not contain field %s", descriptor.FullName())) } } @@ -4810,13 +4810,13 @@ func (x *fastReflection_MsgCreateLatestPubKeyResponse) Get(descriptor protorefle // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateLatestPubKeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgCreateLatestPubkeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubkeyResponse does not contain field %s", fd.FullName())) } } @@ -4830,36 +4830,36 @@ func (x *fastReflection_MsgCreateLatestPubKeyResponse) Set(fd protoreflect.Field // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateLatestPubKeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateLatestPubkeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubkeyResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgCreateLatestPubKeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgCreateLatestPubkeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgCreateLatestPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgCreateLatestPubkeyResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgCreateLatestPubKeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgCreateLatestPubkeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.MsgCreateLatestPubKeyResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.MsgCreateLatestPubkeyResponse", d.FullName())) } panic("unreachable") } @@ -4867,7 +4867,7 @@ func (x *fastReflection_MsgCreateLatestPubKeyResponse) WhichOneof(d protoreflect // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgCreateLatestPubKeyResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgCreateLatestPubkeyResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4878,7 +4878,7 @@ func (x *fastReflection_MsgCreateLatestPubKeyResponse) GetUnknown() protoreflect // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgCreateLatestPubKeyResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgCreateLatestPubkeyResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4890,7 +4890,7 @@ func (x *fastReflection_MsgCreateLatestPubKeyResponse) SetUnknown(fields protore // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgCreateLatestPubKeyResponse) IsValid() bool { +func (x *fastReflection_MsgCreateLatestPubkeyResponse) IsValid() bool { return x != nil } @@ -4900,9 +4900,9 @@ func (x *fastReflection_MsgCreateLatestPubKeyResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgCreateLatestPubKeyResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgCreateLatestPubkeyResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgCreateLatestPubKeyResponse) + x := input.Message.Interface().(*MsgCreateLatestPubkeyResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4924,7 +4924,7 @@ func (x *fastReflection_MsgCreateLatestPubKeyResponse) ProtoMethods() *protoifac } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateLatestPubKeyResponse) + x := input.Message.Interface().(*MsgCreateLatestPubkeyResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4954,7 +4954,7 @@ func (x *fastReflection_MsgCreateLatestPubKeyResponse) ProtoMethods() *protoifac }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgCreateLatestPubKeyResponse) + x := input.Message.Interface().(*MsgCreateLatestPubkeyResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4986,10 +4986,10 @@ func (x *fastReflection_MsgCreateLatestPubKeyResponse) ProtoMethods() *protoifac fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateLatestPubKeyResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateLatestPubkeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateLatestPubKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgCreateLatestPubkeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -5027,131 +5027,131 @@ func (x *fastReflection_MsgCreateLatestPubKeyResponse) ProtoMethods() *protoifac } } -var _ protoreflect.List = (*_MsgOverrideLatestPubKey_3_list)(nil) +var _ protoreflect.List = (*_MsgOverrideLatestPubkey_3_list)(nil) -type _MsgOverrideLatestPubKey_3_list struct { +type _MsgOverrideLatestPubkey_3_list struct { list *[]string } -func (x *_MsgOverrideLatestPubKey_3_list) Len() int { +func (x *_MsgOverrideLatestPubkey_3_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_MsgOverrideLatestPubKey_3_list) Get(i int) protoreflect.Value { +func (x *_MsgOverrideLatestPubkey_3_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfString((*x.list)[i]) } -func (x *_MsgOverrideLatestPubKey_3_list) Set(i int, value protoreflect.Value) { +func (x *_MsgOverrideLatestPubkey_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } -func (x *_MsgOverrideLatestPubKey_3_list) Append(value protoreflect.Value) { +func (x *_MsgOverrideLatestPubkey_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } -func (x *_MsgOverrideLatestPubKey_3_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message MsgOverrideLatestPubKey at list field Commitments as it is not of Message kind")) +func (x *_MsgOverrideLatestPubkey_3_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message MsgOverrideLatestPubkey at list field Commitments as it is not of Message kind")) } -func (x *_MsgOverrideLatestPubKey_3_list) Truncate(n int) { +func (x *_MsgOverrideLatestPubkey_3_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_MsgOverrideLatestPubKey_3_list) NewElement() protoreflect.Value { +func (x *_MsgOverrideLatestPubkey_3_list) NewElement() protoreflect.Value { v := "" return protoreflect.ValueOfString(v) } -func (x *_MsgOverrideLatestPubKey_3_list) IsValid() bool { +func (x *_MsgOverrideLatestPubkey_3_list) IsValid() bool { return x.list != nil } -var _ protoreflect.List = (*_MsgOverrideLatestPubKey_5_list)(nil) +var _ protoreflect.List = (*_MsgOverrideLatestPubkey_5_list)(nil) -type _MsgOverrideLatestPubKey_5_list struct { +type _MsgOverrideLatestPubkey_5_list struct { list *[]*EncryptedKeyshare } -func (x *_MsgOverrideLatestPubKey_5_list) Len() int { +func (x *_MsgOverrideLatestPubkey_5_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_MsgOverrideLatestPubKey_5_list) Get(i int) protoreflect.Value { +func (x *_MsgOverrideLatestPubkey_5_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_MsgOverrideLatestPubKey_5_list) Set(i int, value protoreflect.Value) { +func (x *_MsgOverrideLatestPubkey_5_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*EncryptedKeyshare) (*x.list)[i] = concreteValue } -func (x *_MsgOverrideLatestPubKey_5_list) Append(value protoreflect.Value) { +func (x *_MsgOverrideLatestPubkey_5_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*EncryptedKeyshare) *x.list = append(*x.list, concreteValue) } -func (x *_MsgOverrideLatestPubKey_5_list) AppendMutable() protoreflect.Value { +func (x *_MsgOverrideLatestPubkey_5_list) AppendMutable() protoreflect.Value { v := new(EncryptedKeyshare) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_MsgOverrideLatestPubKey_5_list) Truncate(n int) { +func (x *_MsgOverrideLatestPubkey_5_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_MsgOverrideLatestPubKey_5_list) NewElement() protoreflect.Value { +func (x *_MsgOverrideLatestPubkey_5_list) NewElement() protoreflect.Value { v := new(EncryptedKeyshare) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_MsgOverrideLatestPubKey_5_list) IsValid() bool { +func (x *_MsgOverrideLatestPubkey_5_list) IsValid() bool { return x.list != nil } var ( - md_MsgOverrideLatestPubKey protoreflect.MessageDescriptor - fd_MsgOverrideLatestPubKey_creator protoreflect.FieldDescriptor - fd_MsgOverrideLatestPubKey_public_key protoreflect.FieldDescriptor - fd_MsgOverrideLatestPubKey_commitments protoreflect.FieldDescriptor - fd_MsgOverrideLatestPubKey_number_of_validators protoreflect.FieldDescriptor - fd_MsgOverrideLatestPubKey_encrypted_keyshares protoreflect.FieldDescriptor + md_MsgOverrideLatestPubkey protoreflect.MessageDescriptor + fd_MsgOverrideLatestPubkey_creator protoreflect.FieldDescriptor + fd_MsgOverrideLatestPubkey_public_key protoreflect.FieldDescriptor + fd_MsgOverrideLatestPubkey_commitments protoreflect.FieldDescriptor + fd_MsgOverrideLatestPubkey_number_of_validators protoreflect.FieldDescriptor + fd_MsgOverrideLatestPubkey_encrypted_keyshares protoreflect.FieldDescriptor ) func init() { file_fairyring_keyshare_tx_proto_init() - md_MsgOverrideLatestPubKey = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgOverrideLatestPubKey") - fd_MsgOverrideLatestPubKey_creator = md_MsgOverrideLatestPubKey.Fields().ByName("creator") - fd_MsgOverrideLatestPubKey_public_key = md_MsgOverrideLatestPubKey.Fields().ByName("public_key") - fd_MsgOverrideLatestPubKey_commitments = md_MsgOverrideLatestPubKey.Fields().ByName("commitments") - fd_MsgOverrideLatestPubKey_number_of_validators = md_MsgOverrideLatestPubKey.Fields().ByName("number_of_validators") - fd_MsgOverrideLatestPubKey_encrypted_keyshares = md_MsgOverrideLatestPubKey.Fields().ByName("encrypted_keyshares") + md_MsgOverrideLatestPubkey = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgOverrideLatestPubkey") + fd_MsgOverrideLatestPubkey_creator = md_MsgOverrideLatestPubkey.Fields().ByName("creator") + fd_MsgOverrideLatestPubkey_public_key = md_MsgOverrideLatestPubkey.Fields().ByName("public_key") + fd_MsgOverrideLatestPubkey_commitments = md_MsgOverrideLatestPubkey.Fields().ByName("commitments") + fd_MsgOverrideLatestPubkey_number_of_validators = md_MsgOverrideLatestPubkey.Fields().ByName("number_of_validators") + fd_MsgOverrideLatestPubkey_encrypted_keyshares = md_MsgOverrideLatestPubkey.Fields().ByName("encrypted_keyshares") } -var _ protoreflect.Message = (*fastReflection_MsgOverrideLatestPubKey)(nil) +var _ protoreflect.Message = (*fastReflection_MsgOverrideLatestPubkey)(nil) -type fastReflection_MsgOverrideLatestPubKey MsgOverrideLatestPubKey +type fastReflection_MsgOverrideLatestPubkey MsgOverrideLatestPubkey -func (x *MsgOverrideLatestPubKey) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOverrideLatestPubKey)(x) +func (x *MsgOverrideLatestPubkey) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgOverrideLatestPubkey)(x) } -func (x *MsgOverrideLatestPubKey) slowProtoReflect() protoreflect.Message { +func (x *MsgOverrideLatestPubkey) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_tx_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5163,43 +5163,43 @@ func (x *MsgOverrideLatestPubKey) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgOverrideLatestPubKey_messageType fastReflection_MsgOverrideLatestPubKey_messageType -var _ protoreflect.MessageType = fastReflection_MsgOverrideLatestPubKey_messageType{} +var _fastReflection_MsgOverrideLatestPubkey_messageType fastReflection_MsgOverrideLatestPubkey_messageType +var _ protoreflect.MessageType = fastReflection_MsgOverrideLatestPubkey_messageType{} -type fastReflection_MsgOverrideLatestPubKey_messageType struct{} +type fastReflection_MsgOverrideLatestPubkey_messageType struct{} -func (x fastReflection_MsgOverrideLatestPubKey_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOverrideLatestPubKey)(nil) +func (x fastReflection_MsgOverrideLatestPubkey_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgOverrideLatestPubkey)(nil) } -func (x fastReflection_MsgOverrideLatestPubKey_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOverrideLatestPubKey) +func (x fastReflection_MsgOverrideLatestPubkey_messageType) New() protoreflect.Message { + return new(fastReflection_MsgOverrideLatestPubkey) } -func (x fastReflection_MsgOverrideLatestPubKey_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOverrideLatestPubKey +func (x fastReflection_MsgOverrideLatestPubkey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgOverrideLatestPubkey } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgOverrideLatestPubKey) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOverrideLatestPubKey +func (x *fastReflection_MsgOverrideLatestPubkey) Descriptor() protoreflect.MessageDescriptor { + return md_MsgOverrideLatestPubkey } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgOverrideLatestPubKey) Type() protoreflect.MessageType { - return _fastReflection_MsgOverrideLatestPubKey_messageType +func (x *fastReflection_MsgOverrideLatestPubkey) Type() protoreflect.MessageType { + return _fastReflection_MsgOverrideLatestPubkey_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOverrideLatestPubKey) New() protoreflect.Message { - return new(fastReflection_MsgOverrideLatestPubKey) +func (x *fastReflection_MsgOverrideLatestPubkey) New() protoreflect.Message { + return new(fastReflection_MsgOverrideLatestPubkey) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOverrideLatestPubKey) Interface() protoreflect.ProtoMessage { - return (*MsgOverrideLatestPubKey)(x) +func (x *fastReflection_MsgOverrideLatestPubkey) Interface() protoreflect.ProtoMessage { + return (*MsgOverrideLatestPubkey)(x) } // Range iterates over every populated field in an undefined order, @@ -5207,34 +5207,34 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Interface() protoreflect.ProtoM // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgOverrideLatestPubKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgOverrideLatestPubkey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Creator != "" { value := protoreflect.ValueOfString(x.Creator) - if !f(fd_MsgOverrideLatestPubKey_creator, value) { + if !f(fd_MsgOverrideLatestPubkey_creator, value) { return } } if x.PublicKey != "" { value := protoreflect.ValueOfString(x.PublicKey) - if !f(fd_MsgOverrideLatestPubKey_public_key, value) { + if !f(fd_MsgOverrideLatestPubkey_public_key, value) { return } } if len(x.Commitments) != 0 { - value := protoreflect.ValueOfList(&_MsgOverrideLatestPubKey_3_list{list: &x.Commitments}) - if !f(fd_MsgOverrideLatestPubKey_commitments, value) { + value := protoreflect.ValueOfList(&_MsgOverrideLatestPubkey_3_list{list: &x.Commitments}) + if !f(fd_MsgOverrideLatestPubkey_commitments, value) { return } } if x.NumberOfValidators != uint64(0) { value := protoreflect.ValueOfUint64(x.NumberOfValidators) - if !f(fd_MsgOverrideLatestPubKey_number_of_validators, value) { + if !f(fd_MsgOverrideLatestPubkey_number_of_validators, value) { return } } if len(x.EncryptedKeyshares) != 0 { - value := protoreflect.ValueOfList(&_MsgOverrideLatestPubKey_5_list{list: &x.EncryptedKeyshares}) - if !f(fd_MsgOverrideLatestPubKey_encrypted_keyshares, value) { + value := protoreflect.ValueOfList(&_MsgOverrideLatestPubkey_5_list{list: &x.EncryptedKeyshares}) + if !f(fd_MsgOverrideLatestPubkey_encrypted_keyshares, value) { return } } @@ -5251,23 +5251,23 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Range(f func(protoreflect.Field // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgOverrideLatestPubKey) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgOverrideLatestPubkey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "fairyring.keyshare.MsgOverrideLatestPubKey.creator": + case "fairyring.keyshare.MsgOverrideLatestPubkey.creator": return x.Creator != "" - case "fairyring.keyshare.MsgOverrideLatestPubKey.public_key": + case "fairyring.keyshare.MsgOverrideLatestPubkey.public_key": return x.PublicKey != "" - case "fairyring.keyshare.MsgOverrideLatestPubKey.commitments": + case "fairyring.keyshare.MsgOverrideLatestPubkey.commitments": return len(x.Commitments) != 0 - case "fairyring.keyshare.MsgOverrideLatestPubKey.number_of_validators": + case "fairyring.keyshare.MsgOverrideLatestPubkey.number_of_validators": return x.NumberOfValidators != uint64(0) - case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_keyshares": + case "fairyring.keyshare.MsgOverrideLatestPubkey.encrypted_keyshares": return len(x.EncryptedKeyshares) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubkey does not contain field %s", fd.FullName())) } } @@ -5277,23 +5277,23 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOverrideLatestPubKey) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgOverrideLatestPubkey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "fairyring.keyshare.MsgOverrideLatestPubKey.creator": + case "fairyring.keyshare.MsgOverrideLatestPubkey.creator": x.Creator = "" - case "fairyring.keyshare.MsgOverrideLatestPubKey.public_key": + case "fairyring.keyshare.MsgOverrideLatestPubkey.public_key": x.PublicKey = "" - case "fairyring.keyshare.MsgOverrideLatestPubKey.commitments": + case "fairyring.keyshare.MsgOverrideLatestPubkey.commitments": x.Commitments = nil - case "fairyring.keyshare.MsgOverrideLatestPubKey.number_of_validators": + case "fairyring.keyshare.MsgOverrideLatestPubkey.number_of_validators": x.NumberOfValidators = uint64(0) - case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_keyshares": + case "fairyring.keyshare.MsgOverrideLatestPubkey.encrypted_keyshares": x.EncryptedKeyshares = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubkey does not contain field %s", fd.FullName())) } } @@ -5303,34 +5303,34 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Clear(fd protoreflect.FieldDesc // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgOverrideLatestPubKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgOverrideLatestPubkey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "fairyring.keyshare.MsgOverrideLatestPubKey.creator": + case "fairyring.keyshare.MsgOverrideLatestPubkey.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgOverrideLatestPubKey.public_key": + case "fairyring.keyshare.MsgOverrideLatestPubkey.public_key": value := x.PublicKey return protoreflect.ValueOfString(value) - case "fairyring.keyshare.MsgOverrideLatestPubKey.commitments": + case "fairyring.keyshare.MsgOverrideLatestPubkey.commitments": if len(x.Commitments) == 0 { - return protoreflect.ValueOfList(&_MsgOverrideLatestPubKey_3_list{}) + return protoreflect.ValueOfList(&_MsgOverrideLatestPubkey_3_list{}) } - listValue := &_MsgOverrideLatestPubKey_3_list{list: &x.Commitments} + listValue := &_MsgOverrideLatestPubkey_3_list{list: &x.Commitments} return protoreflect.ValueOfList(listValue) - case "fairyring.keyshare.MsgOverrideLatestPubKey.number_of_validators": + case "fairyring.keyshare.MsgOverrideLatestPubkey.number_of_validators": value := x.NumberOfValidators return protoreflect.ValueOfUint64(value) - case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_keyshares": + case "fairyring.keyshare.MsgOverrideLatestPubkey.encrypted_keyshares": if len(x.EncryptedKeyshares) == 0 { - return protoreflect.ValueOfList(&_MsgOverrideLatestPubKey_5_list{}) + return protoreflect.ValueOfList(&_MsgOverrideLatestPubkey_5_list{}) } - listValue := &_MsgOverrideLatestPubKey_5_list{list: &x.EncryptedKeyshares} + listValue := &_MsgOverrideLatestPubkey_5_list{list: &x.EncryptedKeyshares} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubKey does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubkey does not contain field %s", descriptor.FullName())) } } @@ -5344,27 +5344,27 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOverrideLatestPubKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgOverrideLatestPubkey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "fairyring.keyshare.MsgOverrideLatestPubKey.creator": + case "fairyring.keyshare.MsgOverrideLatestPubkey.creator": x.Creator = value.Interface().(string) - case "fairyring.keyshare.MsgOverrideLatestPubKey.public_key": + case "fairyring.keyshare.MsgOverrideLatestPubkey.public_key": x.PublicKey = value.Interface().(string) - case "fairyring.keyshare.MsgOverrideLatestPubKey.commitments": + case "fairyring.keyshare.MsgOverrideLatestPubkey.commitments": lv := value.List() - clv := lv.(*_MsgOverrideLatestPubKey_3_list) + clv := lv.(*_MsgOverrideLatestPubkey_3_list) x.Commitments = *clv.list - case "fairyring.keyshare.MsgOverrideLatestPubKey.number_of_validators": + case "fairyring.keyshare.MsgOverrideLatestPubkey.number_of_validators": x.NumberOfValidators = value.Uint() - case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_keyshares": + case "fairyring.keyshare.MsgOverrideLatestPubkey.encrypted_keyshares": lv := value.List() - clv := lv.(*_MsgOverrideLatestPubKey_5_list) + clv := lv.(*_MsgOverrideLatestPubkey_5_list) x.EncryptedKeyshares = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubkey does not contain field %s", fd.FullName())) } } @@ -5378,66 +5378,66 @@ func (x *fastReflection_MsgOverrideLatestPubKey) Set(fd protoreflect.FieldDescri // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOverrideLatestPubKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgOverrideLatestPubkey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.MsgOverrideLatestPubKey.commitments": + case "fairyring.keyshare.MsgOverrideLatestPubkey.commitments": if x.Commitments == nil { x.Commitments = []string{} } - value := &_MsgOverrideLatestPubKey_3_list{list: &x.Commitments} + value := &_MsgOverrideLatestPubkey_3_list{list: &x.Commitments} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_keyshares": + case "fairyring.keyshare.MsgOverrideLatestPubkey.encrypted_keyshares": if x.EncryptedKeyshares == nil { x.EncryptedKeyshares = []*EncryptedKeyshare{} } - value := &_MsgOverrideLatestPubKey_5_list{list: &x.EncryptedKeyshares} + value := &_MsgOverrideLatestPubkey_5_list{list: &x.EncryptedKeyshares} return protoreflect.ValueOfList(value) - case "fairyring.keyshare.MsgOverrideLatestPubKey.creator": - panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgOverrideLatestPubKey is not mutable")) - case "fairyring.keyshare.MsgOverrideLatestPubKey.public_key": - panic(fmt.Errorf("field public_key of message fairyring.keyshare.MsgOverrideLatestPubKey is not mutable")) - case "fairyring.keyshare.MsgOverrideLatestPubKey.number_of_validators": - panic(fmt.Errorf("field number_of_validators of message fairyring.keyshare.MsgOverrideLatestPubKey is not mutable")) + case "fairyring.keyshare.MsgOverrideLatestPubkey.creator": + panic(fmt.Errorf("field creator of message fairyring.keyshare.MsgOverrideLatestPubkey is not mutable")) + case "fairyring.keyshare.MsgOverrideLatestPubkey.public_key": + panic(fmt.Errorf("field public_key of message fairyring.keyshare.MsgOverrideLatestPubkey is not mutable")) + case "fairyring.keyshare.MsgOverrideLatestPubkey.number_of_validators": + panic(fmt.Errorf("field number_of_validators of message fairyring.keyshare.MsgOverrideLatestPubkey is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubkey does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgOverrideLatestPubKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgOverrideLatestPubkey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "fairyring.keyshare.MsgOverrideLatestPubKey.creator": + case "fairyring.keyshare.MsgOverrideLatestPubkey.creator": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgOverrideLatestPubKey.public_key": + case "fairyring.keyshare.MsgOverrideLatestPubkey.public_key": return protoreflect.ValueOfString("") - case "fairyring.keyshare.MsgOverrideLatestPubKey.commitments": + case "fairyring.keyshare.MsgOverrideLatestPubkey.commitments": list := []string{} - return protoreflect.ValueOfList(&_MsgOverrideLatestPubKey_3_list{list: &list}) - case "fairyring.keyshare.MsgOverrideLatestPubKey.number_of_validators": + return protoreflect.ValueOfList(&_MsgOverrideLatestPubkey_3_list{list: &list}) + case "fairyring.keyshare.MsgOverrideLatestPubkey.number_of_validators": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_keyshares": + case "fairyring.keyshare.MsgOverrideLatestPubkey.encrypted_keyshares": list := []*EncryptedKeyshare{} - return protoreflect.ValueOfList(&_MsgOverrideLatestPubKey_5_list{list: &list}) + return protoreflect.ValueOfList(&_MsgOverrideLatestPubkey_5_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubkey")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubkey does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgOverrideLatestPubKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgOverrideLatestPubkey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.MsgOverrideLatestPubKey", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.MsgOverrideLatestPubkey", d.FullName())) } panic("unreachable") } @@ -5445,7 +5445,7 @@ func (x *fastReflection_MsgOverrideLatestPubKey) WhichOneof(d protoreflect.Oneof // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgOverrideLatestPubKey) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgOverrideLatestPubkey) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5456,7 +5456,7 @@ func (x *fastReflection_MsgOverrideLatestPubKey) GetUnknown() protoreflect.RawFi // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOverrideLatestPubKey) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgOverrideLatestPubkey) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5468,7 +5468,7 @@ func (x *fastReflection_MsgOverrideLatestPubKey) SetUnknown(fields protoreflect. // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgOverrideLatestPubKey) IsValid() bool { +func (x *fastReflection_MsgOverrideLatestPubkey) IsValid() bool { return x != nil } @@ -5478,9 +5478,9 @@ func (x *fastReflection_MsgOverrideLatestPubKey) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgOverrideLatestPubKey) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgOverrideLatestPubkey) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOverrideLatestPubKey) + x := input.Message.Interface().(*MsgOverrideLatestPubkey) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5525,7 +5525,7 @@ func (x *fastReflection_MsgOverrideLatestPubKey) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgOverrideLatestPubKey) + x := input.Message.Interface().(*MsgOverrideLatestPubkey) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5599,7 +5599,7 @@ func (x *fastReflection_MsgOverrideLatestPubKey) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgOverrideLatestPubKey) + x := input.Message.Interface().(*MsgOverrideLatestPubkey) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5631,10 +5631,10 @@ func (x *fastReflection_MsgOverrideLatestPubKey) ProtoMethods() *protoiface.Meth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOverrideLatestPubKey: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOverrideLatestPubkey: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOverrideLatestPubKey: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOverrideLatestPubkey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -5822,23 +5822,23 @@ func (x *fastReflection_MsgOverrideLatestPubKey) ProtoMethods() *protoiface.Meth } var ( - md_MsgOverrideLatestPubKeyResponse protoreflect.MessageDescriptor + md_MsgOverrideLatestPubkeyResponse protoreflect.MessageDescriptor ) func init() { file_fairyring_keyshare_tx_proto_init() - md_MsgOverrideLatestPubKeyResponse = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgOverrideLatestPubKeyResponse") + md_MsgOverrideLatestPubkeyResponse = File_fairyring_keyshare_tx_proto.Messages().ByName("MsgOverrideLatestPubkeyResponse") } -var _ protoreflect.Message = (*fastReflection_MsgOverrideLatestPubKeyResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgOverrideLatestPubkeyResponse)(nil) -type fastReflection_MsgOverrideLatestPubKeyResponse MsgOverrideLatestPubKeyResponse +type fastReflection_MsgOverrideLatestPubkeyResponse MsgOverrideLatestPubkeyResponse -func (x *MsgOverrideLatestPubKeyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgOverrideLatestPubKeyResponse)(x) +func (x *MsgOverrideLatestPubkeyResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgOverrideLatestPubkeyResponse)(x) } -func (x *MsgOverrideLatestPubKeyResponse) slowProtoReflect() protoreflect.Message { +func (x *MsgOverrideLatestPubkeyResponse) slowProtoReflect() protoreflect.Message { mi := &file_fairyring_keyshare_tx_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -5850,43 +5850,43 @@ func (x *MsgOverrideLatestPubKeyResponse) slowProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -var _fastReflection_MsgOverrideLatestPubKeyResponse_messageType fastReflection_MsgOverrideLatestPubKeyResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgOverrideLatestPubKeyResponse_messageType{} +var _fastReflection_MsgOverrideLatestPubkeyResponse_messageType fastReflection_MsgOverrideLatestPubkeyResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgOverrideLatestPubkeyResponse_messageType{} -type fastReflection_MsgOverrideLatestPubKeyResponse_messageType struct{} +type fastReflection_MsgOverrideLatestPubkeyResponse_messageType struct{} -func (x fastReflection_MsgOverrideLatestPubKeyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgOverrideLatestPubKeyResponse)(nil) +func (x fastReflection_MsgOverrideLatestPubkeyResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgOverrideLatestPubkeyResponse)(nil) } -func (x fastReflection_MsgOverrideLatestPubKeyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgOverrideLatestPubKeyResponse) +func (x fastReflection_MsgOverrideLatestPubkeyResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgOverrideLatestPubkeyResponse) } -func (x fastReflection_MsgOverrideLatestPubKeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOverrideLatestPubKeyResponse +func (x fastReflection_MsgOverrideLatestPubkeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgOverrideLatestPubkeyResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgOverrideLatestPubKeyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgOverrideLatestPubKeyResponse +func (x *fastReflection_MsgOverrideLatestPubkeyResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgOverrideLatestPubkeyResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgOverrideLatestPubKeyResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgOverrideLatestPubKeyResponse_messageType +func (x *fastReflection_MsgOverrideLatestPubkeyResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgOverrideLatestPubkeyResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgOverrideLatestPubKeyResponse) New() protoreflect.Message { - return new(fastReflection_MsgOverrideLatestPubKeyResponse) +func (x *fastReflection_MsgOverrideLatestPubkeyResponse) New() protoreflect.Message { + return new(fastReflection_MsgOverrideLatestPubkeyResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgOverrideLatestPubKeyResponse) Interface() protoreflect.ProtoMessage { - return (*MsgOverrideLatestPubKeyResponse)(x) +func (x *fastReflection_MsgOverrideLatestPubkeyResponse) Interface() protoreflect.ProtoMessage { + return (*MsgOverrideLatestPubkeyResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -5894,7 +5894,7 @@ func (x *fastReflection_MsgOverrideLatestPubKeyResponse) Interface() protoreflec // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgOverrideLatestPubKeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgOverrideLatestPubkeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -5908,13 +5908,13 @@ func (x *fastReflection_MsgOverrideLatestPubKeyResponse) Range(f func(protorefle // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgOverrideLatestPubKeyResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgOverrideLatestPubkeyResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubkeyResponse does not contain field %s", fd.FullName())) } } @@ -5924,13 +5924,13 @@ func (x *fastReflection_MsgOverrideLatestPubKeyResponse) Has(fd protoreflect.Fie // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOverrideLatestPubKeyResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgOverrideLatestPubkeyResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubkeyResponse does not contain field %s", fd.FullName())) } } @@ -5940,13 +5940,13 @@ func (x *fastReflection_MsgOverrideLatestPubKeyResponse) Clear(fd protoreflect.F // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgOverrideLatestPubKeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgOverrideLatestPubkeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubKeyResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubkeyResponse does not contain field %s", descriptor.FullName())) } } @@ -5960,13 +5960,13 @@ func (x *fastReflection_MsgOverrideLatestPubKeyResponse) Get(descriptor protoref // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOverrideLatestPubKeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgOverrideLatestPubkeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubkeyResponse does not contain field %s", fd.FullName())) } } @@ -5980,36 +5980,36 @@ func (x *fastReflection_MsgOverrideLatestPubKeyResponse) Set(fd protoreflect.Fie // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOverrideLatestPubKeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgOverrideLatestPubkeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubkeyResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgOverrideLatestPubKeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgOverrideLatestPubkeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: fairyring.keyshare.MsgOverrideLatestPubkeyResponse")) } - panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message fairyring.keyshare.MsgOverrideLatestPubkeyResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgOverrideLatestPubKeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgOverrideLatestPubkeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.MsgOverrideLatestPubKeyResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in fairyring.keyshare.MsgOverrideLatestPubkeyResponse", d.FullName())) } panic("unreachable") } @@ -6017,7 +6017,7 @@ func (x *fastReflection_MsgOverrideLatestPubKeyResponse) WhichOneof(d protorefle // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgOverrideLatestPubKeyResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgOverrideLatestPubkeyResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6028,7 +6028,7 @@ func (x *fastReflection_MsgOverrideLatestPubKeyResponse) GetUnknown() protorefle // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgOverrideLatestPubKeyResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgOverrideLatestPubkeyResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6040,7 +6040,7 @@ func (x *fastReflection_MsgOverrideLatestPubKeyResponse) SetUnknown(fields proto // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgOverrideLatestPubKeyResponse) IsValid() bool { +func (x *fastReflection_MsgOverrideLatestPubkeyResponse) IsValid() bool { return x != nil } @@ -6050,9 +6050,9 @@ func (x *fastReflection_MsgOverrideLatestPubKeyResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgOverrideLatestPubKeyResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgOverrideLatestPubkeyResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgOverrideLatestPubKeyResponse) + x := input.Message.Interface().(*MsgOverrideLatestPubkeyResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6074,7 +6074,7 @@ func (x *fastReflection_MsgOverrideLatestPubKeyResponse) ProtoMethods() *protoif } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgOverrideLatestPubKeyResponse) + x := input.Message.Interface().(*MsgOverrideLatestPubkeyResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6104,7 +6104,7 @@ func (x *fastReflection_MsgOverrideLatestPubKeyResponse) ProtoMethods() *protoif }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgOverrideLatestPubKeyResponse) + x := input.Message.Interface().(*MsgOverrideLatestPubkeyResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6136,10 +6136,10 @@ func (x *fastReflection_MsgOverrideLatestPubKeyResponse) ProtoMethods() *protoif fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOverrideLatestPubKeyResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOverrideLatestPubkeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOverrideLatestPubKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgOverrideLatestPubkeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -11822,8 +11822,8 @@ func (x *MsgSendKeyshareResponse) GetErrorMessage() string { return "" } -// MsgCreateLatestPubKey is the Msg/CreateLatestPubKey request type. -type MsgCreateLatestPubKey struct { +// MsgCreateLatestPubkey is the Msg/CreateLatestPubkey request type. +type MsgCreateLatestPubkey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -11835,8 +11835,8 @@ type MsgCreateLatestPubKey struct { EncryptedKeyshares []*EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` } -func (x *MsgCreateLatestPubKey) Reset() { - *x = MsgCreateLatestPubKey{} +func (x *MsgCreateLatestPubkey) Reset() { + *x = MsgCreateLatestPubkey{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_tx_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11844,62 +11844,62 @@ func (x *MsgCreateLatestPubKey) Reset() { } } -func (x *MsgCreateLatestPubKey) String() string { +func (x *MsgCreateLatestPubkey) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCreateLatestPubKey) ProtoMessage() {} +func (*MsgCreateLatestPubkey) ProtoMessage() {} -// Deprecated: Use MsgCreateLatestPubKey.ProtoReflect.Descriptor instead. -func (*MsgCreateLatestPubKey) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgCreateLatestPubkey.ProtoReflect.Descriptor instead. +func (*MsgCreateLatestPubkey) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_tx_proto_rawDescGZIP(), []int{8} } -func (x *MsgCreateLatestPubKey) GetCreator() string { +func (x *MsgCreateLatestPubkey) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgCreateLatestPubKey) GetPublicKey() string { +func (x *MsgCreateLatestPubkey) GetPublicKey() string { if x != nil { return x.PublicKey } return "" } -func (x *MsgCreateLatestPubKey) GetCommitments() []string { +func (x *MsgCreateLatestPubkey) GetCommitments() []string { if x != nil { return x.Commitments } return nil } -func (x *MsgCreateLatestPubKey) GetNumberOfValidators() uint64 { +func (x *MsgCreateLatestPubkey) GetNumberOfValidators() uint64 { if x != nil { return x.NumberOfValidators } return 0 } -func (x *MsgCreateLatestPubKey) GetEncryptedKeyshares() []*EncryptedKeyshare { +func (x *MsgCreateLatestPubkey) GetEncryptedKeyshares() []*EncryptedKeyshare { if x != nil { return x.EncryptedKeyshares } return nil } -// MsgCreateLatestPubKeyResponse defines the response structure for -// executing a MsgCreateLatestPubKey message. -type MsgCreateLatestPubKeyResponse struct { +// MsgCreateLatestPubkeyResponse defines the response structure for +// executing a MsgCreateLatestPubkey message. +type MsgCreateLatestPubkeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgCreateLatestPubKeyResponse) Reset() { - *x = MsgCreateLatestPubKeyResponse{} +func (x *MsgCreateLatestPubkeyResponse) Reset() { + *x = MsgCreateLatestPubkeyResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_tx_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11907,19 +11907,19 @@ func (x *MsgCreateLatestPubKeyResponse) Reset() { } } -func (x *MsgCreateLatestPubKeyResponse) String() string { +func (x *MsgCreateLatestPubkeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgCreateLatestPubKeyResponse) ProtoMessage() {} +func (*MsgCreateLatestPubkeyResponse) ProtoMessage() {} -// Deprecated: Use MsgCreateLatestPubKeyResponse.ProtoReflect.Descriptor instead. -func (*MsgCreateLatestPubKeyResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgCreateLatestPubkeyResponse.ProtoReflect.Descriptor instead. +func (*MsgCreateLatestPubkeyResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_tx_proto_rawDescGZIP(), []int{9} } -// MsgOverrideLatestPubKey is the Msg/OverrideLatestPubKey request type. -type MsgOverrideLatestPubKey struct { +// MsgOverrideLatestPubkey is the Msg/OverrideLatestPubkey request type. +type MsgOverrideLatestPubkey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -11931,8 +11931,8 @@ type MsgOverrideLatestPubKey struct { EncryptedKeyshares []*EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` } -func (x *MsgOverrideLatestPubKey) Reset() { - *x = MsgOverrideLatestPubKey{} +func (x *MsgOverrideLatestPubkey) Reset() { + *x = MsgOverrideLatestPubkey{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_tx_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -11940,62 +11940,62 @@ func (x *MsgOverrideLatestPubKey) Reset() { } } -func (x *MsgOverrideLatestPubKey) String() string { +func (x *MsgOverrideLatestPubkey) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOverrideLatestPubKey) ProtoMessage() {} +func (*MsgOverrideLatestPubkey) ProtoMessage() {} -// Deprecated: Use MsgOverrideLatestPubKey.ProtoReflect.Descriptor instead. -func (*MsgOverrideLatestPubKey) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgOverrideLatestPubkey.ProtoReflect.Descriptor instead. +func (*MsgOverrideLatestPubkey) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_tx_proto_rawDescGZIP(), []int{10} } -func (x *MsgOverrideLatestPubKey) GetCreator() string { +func (x *MsgOverrideLatestPubkey) GetCreator() string { if x != nil { return x.Creator } return "" } -func (x *MsgOverrideLatestPubKey) GetPublicKey() string { +func (x *MsgOverrideLatestPubkey) GetPublicKey() string { if x != nil { return x.PublicKey } return "" } -func (x *MsgOverrideLatestPubKey) GetCommitments() []string { +func (x *MsgOverrideLatestPubkey) GetCommitments() []string { if x != nil { return x.Commitments } return nil } -func (x *MsgOverrideLatestPubKey) GetNumberOfValidators() uint64 { +func (x *MsgOverrideLatestPubkey) GetNumberOfValidators() uint64 { if x != nil { return x.NumberOfValidators } return 0 } -func (x *MsgOverrideLatestPubKey) GetEncryptedKeyshares() []*EncryptedKeyshare { +func (x *MsgOverrideLatestPubkey) GetEncryptedKeyshares() []*EncryptedKeyshare { if x != nil { return x.EncryptedKeyshares } return nil } -// MsgOverrideLatestPubKeyResponse defines the response structure for -// executing a MsgOverrideLatestPubKey message. -type MsgOverrideLatestPubKeyResponse struct { +// MsgOverrideLatestPubkeyResponse defines the response structure for +// executing a MsgOverrideLatestPubkey message. +type MsgOverrideLatestPubkeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgOverrideLatestPubKeyResponse) Reset() { - *x = MsgOverrideLatestPubKeyResponse{} +func (x *MsgOverrideLatestPubkeyResponse) Reset() { + *x = MsgOverrideLatestPubkeyResponse{} if protoimpl.UnsafeEnabled { mi := &file_fairyring_keyshare_tx_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -12003,14 +12003,14 @@ func (x *MsgOverrideLatestPubKeyResponse) Reset() { } } -func (x *MsgOverrideLatestPubKeyResponse) String() string { +func (x *MsgOverrideLatestPubkeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgOverrideLatestPubKeyResponse) ProtoMessage() {} +func (*MsgOverrideLatestPubkeyResponse) ProtoMessage() {} -// Deprecated: Use MsgOverrideLatestPubKeyResponse.ProtoReflect.Descriptor instead. -func (*MsgOverrideLatestPubKeyResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use MsgOverrideLatestPubkeyResponse.ProtoReflect.Descriptor instead. +func (*MsgOverrideLatestPubkeyResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_tx_proto_rawDescGZIP(), []int{11} } @@ -12600,7 +12600,7 @@ var file_fairyring_keyshare_tx_proto_rawDesc = []byte{ 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x8a, 0x02, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, + 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, @@ -12617,9 +12617,9 @@ var file_fairyring_keyshare_tx_proto_rawDesc = []byte{ 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x1f, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8c, 0x02, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x4f, 0x76, 0x65, 0x72, - 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, + 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, @@ -12636,7 +12636,7 @@ var file_fairyring_keyshare_tx_proto_rawDesc = []byte{ 0x65, 0x52, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x21, 0x0a, 0x1f, 0x4d, 0x73, 0x67, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, - 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, + 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, @@ -12751,20 +12751,20 @@ var file_fairyring_keyshare_tx_proto_rawDesc = []byte{ 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x6e, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x72, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, - 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x29, 0x2e, 0x66, 0x61, 0x69, + 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x29, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, - 0x75, 0x62, 0x4b, 0x65, 0x79, 0x1a, 0x31, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, + 0x75, 0x62, 0x6b, 0x65, 0x79, 0x1a, 0x31, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, + 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x14, 0x4f, 0x76, 0x65, 0x72, - 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, + 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x2b, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, - 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x1a, 0x33, 0x2e, + 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x1a, 0x33, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2e, 0x4d, 0x73, 0x67, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x4c, 0x61, - 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x74, 0x65, 0x73, 0x74, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x2e, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x6b, 0x65, 0x79, 0x73, 0x68, @@ -12842,10 +12842,10 @@ var file_fairyring_keyshare_tx_proto_goTypes = []interface{}{ (*MsgDeRegisterValidatorResponse)(nil), // 5: fairyring.keyshare.MsgDeRegisterValidatorResponse (*MsgSendKeyshare)(nil), // 6: fairyring.keyshare.MsgSendKeyshare (*MsgSendKeyshareResponse)(nil), // 7: fairyring.keyshare.MsgSendKeyshareResponse - (*MsgCreateLatestPubKey)(nil), // 8: fairyring.keyshare.MsgCreateLatestPubKey - (*MsgCreateLatestPubKeyResponse)(nil), // 9: fairyring.keyshare.MsgCreateLatestPubKeyResponse - (*MsgOverrideLatestPubKey)(nil), // 10: fairyring.keyshare.MsgOverrideLatestPubKey - (*MsgOverrideLatestPubKeyResponse)(nil), // 11: fairyring.keyshare.MsgOverrideLatestPubKeyResponse + (*MsgCreateLatestPubkey)(nil), // 8: fairyring.keyshare.MsgCreateLatestPubkey + (*MsgCreateLatestPubkeyResponse)(nil), // 9: fairyring.keyshare.MsgCreateLatestPubkeyResponse + (*MsgOverrideLatestPubkey)(nil), // 10: fairyring.keyshare.MsgOverrideLatestPubkey + (*MsgOverrideLatestPubkeyResponse)(nil), // 11: fairyring.keyshare.MsgOverrideLatestPubkeyResponse (*MsgCreateAuthorizedAddress)(nil), // 12: fairyring.keyshare.MsgCreateAuthorizedAddress (*MsgCreateAuthorizedAddressResponse)(nil), // 13: fairyring.keyshare.MsgCreateAuthorizedAddressResponse (*MsgUpdateAuthorizedAddress)(nil), // 14: fairyring.keyshare.MsgUpdateAuthorizedAddress @@ -12861,14 +12861,14 @@ var file_fairyring_keyshare_tx_proto_goTypes = []interface{}{ } var file_fairyring_keyshare_tx_proto_depIdxs = []int32{ 22, // 0: fairyring.keyshare.MsgUpdateParams.params:type_name -> fairyring.keyshare.Params - 23, // 1: fairyring.keyshare.MsgCreateLatestPubKey.encrypted_keyshares:type_name -> fairyring.keyshare.EncryptedKeyshare - 23, // 2: fairyring.keyshare.MsgOverrideLatestPubKey.encrypted_keyshares:type_name -> fairyring.keyshare.EncryptedKeyshare + 23, // 1: fairyring.keyshare.MsgCreateLatestPubkey.encrypted_keyshares:type_name -> fairyring.keyshare.EncryptedKeyshare + 23, // 2: fairyring.keyshare.MsgOverrideLatestPubkey.encrypted_keyshares:type_name -> fairyring.keyshare.EncryptedKeyshare 0, // 3: fairyring.keyshare.Msg.UpdateParams:input_type -> fairyring.keyshare.MsgUpdateParams 2, // 4: fairyring.keyshare.Msg.RegisterValidator:input_type -> fairyring.keyshare.MsgRegisterValidator 4, // 5: fairyring.keyshare.Msg.DeRegisterValidator:input_type -> fairyring.keyshare.MsgDeRegisterValidator 6, // 6: fairyring.keyshare.Msg.SendKeyshare:input_type -> fairyring.keyshare.MsgSendKeyshare - 8, // 7: fairyring.keyshare.Msg.CreateLatestPubKey:input_type -> fairyring.keyshare.MsgCreateLatestPubKey - 10, // 8: fairyring.keyshare.Msg.OverrideLatestPubKey:input_type -> fairyring.keyshare.MsgOverrideLatestPubKey + 8, // 7: fairyring.keyshare.Msg.CreateLatestPubkey:input_type -> fairyring.keyshare.MsgCreateLatestPubkey + 10, // 8: fairyring.keyshare.Msg.OverrideLatestPubkey:input_type -> fairyring.keyshare.MsgOverrideLatestPubkey 12, // 9: fairyring.keyshare.Msg.CreateAuthorizedAddress:input_type -> fairyring.keyshare.MsgCreateAuthorizedAddress 14, // 10: fairyring.keyshare.Msg.UpdateAuthorizedAddress:input_type -> fairyring.keyshare.MsgUpdateAuthorizedAddress 16, // 11: fairyring.keyshare.Msg.DeleteAuthorizedAddress:input_type -> fairyring.keyshare.MsgDeleteAuthorizedAddress @@ -12878,8 +12878,8 @@ var file_fairyring_keyshare_tx_proto_depIdxs = []int32{ 3, // 15: fairyring.keyshare.Msg.RegisterValidator:output_type -> fairyring.keyshare.MsgRegisterValidatorResponse 5, // 16: fairyring.keyshare.Msg.DeRegisterValidator:output_type -> fairyring.keyshare.MsgDeRegisterValidatorResponse 7, // 17: fairyring.keyshare.Msg.SendKeyshare:output_type -> fairyring.keyshare.MsgSendKeyshareResponse - 9, // 18: fairyring.keyshare.Msg.CreateLatestPubKey:output_type -> fairyring.keyshare.MsgCreateLatestPubKeyResponse - 11, // 19: fairyring.keyshare.Msg.OverrideLatestPubKey:output_type -> fairyring.keyshare.MsgOverrideLatestPubKeyResponse + 9, // 18: fairyring.keyshare.Msg.CreateLatestPubkey:output_type -> fairyring.keyshare.MsgCreateLatestPubkeyResponse + 11, // 19: fairyring.keyshare.Msg.OverrideLatestPubkey:output_type -> fairyring.keyshare.MsgOverrideLatestPubkeyResponse 13, // 20: fairyring.keyshare.Msg.CreateAuthorizedAddress:output_type -> fairyring.keyshare.MsgCreateAuthorizedAddressResponse 15, // 21: fairyring.keyshare.Msg.UpdateAuthorizedAddress:output_type -> fairyring.keyshare.MsgUpdateAuthorizedAddressResponse 17, // 22: fairyring.keyshare.Msg.DeleteAuthorizedAddress:output_type -> fairyring.keyshare.MsgDeleteAuthorizedAddressResponse @@ -12997,7 +12997,7 @@ func file_fairyring_keyshare_tx_proto_init() { } } file_fairyring_keyshare_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCreateLatestPubKey); i { + switch v := v.(*MsgCreateLatestPubkey); i { case 0: return &v.state case 1: @@ -13009,7 +13009,7 @@ func file_fairyring_keyshare_tx_proto_init() { } } file_fairyring_keyshare_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgCreateLatestPubKeyResponse); i { + switch v := v.(*MsgCreateLatestPubkeyResponse); i { case 0: return &v.state case 1: @@ -13021,7 +13021,7 @@ func file_fairyring_keyshare_tx_proto_init() { } } file_fairyring_keyshare_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgOverrideLatestPubKey); i { + switch v := v.(*MsgOverrideLatestPubkey); i { case 0: return &v.state case 1: @@ -13033,7 +13033,7 @@ func file_fairyring_keyshare_tx_proto_init() { } } file_fairyring_keyshare_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgOverrideLatestPubKeyResponse); i { + switch v := v.(*MsgOverrideLatestPubkeyResponse); i { case 0: return &v.state case 1: diff --git a/api/fairyring/keyshare/tx_grpc.pb.go b/api/fairyring/keyshare/tx_grpc.pb.go index 1a77f58d..1cc8a0ed 100644 --- a/api/fairyring/keyshare/tx_grpc.pb.go +++ b/api/fairyring/keyshare/tx_grpc.pb.go @@ -23,8 +23,8 @@ const ( Msg_RegisterValidator_FullMethodName = "/fairyring.keyshare.Msg/RegisterValidator" Msg_DeRegisterValidator_FullMethodName = "/fairyring.keyshare.Msg/DeRegisterValidator" Msg_SendKeyshare_FullMethodName = "/fairyring.keyshare.Msg/SendKeyshare" - Msg_CreateLatestPubKey_FullMethodName = "/fairyring.keyshare.Msg/CreateLatestPubKey" - Msg_OverrideLatestPubKey_FullMethodName = "/fairyring.keyshare.Msg/OverrideLatestPubKey" + Msg_CreateLatestPubkey_FullMethodName = "/fairyring.keyshare.Msg/CreateLatestPubkey" + Msg_OverrideLatestPubkey_FullMethodName = "/fairyring.keyshare.Msg/OverrideLatestPubkey" Msg_CreateAuthorizedAddress_FullMethodName = "/fairyring.keyshare.Msg/CreateAuthorizedAddress" Msg_UpdateAuthorizedAddress_FullMethodName = "/fairyring.keyshare.Msg/UpdateAuthorizedAddress" Msg_DeleteAuthorizedAddress_FullMethodName = "/fairyring.keyshare.Msg/DeleteAuthorizedAddress" @@ -48,11 +48,11 @@ type MsgClient interface { // SendKeyshare defines an operation to submit keyshares // every block from registered validators SendKeyshare(ctx context.Context, in *MsgSendKeyshare, opts ...grpc.CallOption) (*MsgSendKeyshareResponse, error) - // CreateLatestPubKey defines an operation to add a + // CreateLatestPubkey defines an operation to add a // public key to the chain (can only be done by an authorized address) - CreateLatestPubKey(ctx context.Context, in *MsgCreateLatestPubKey, opts ...grpc.CallOption) (*MsgCreateLatestPubKeyResponse, error) - // OverrideLatestPubKey defines an operation to override the current active pubkey - OverrideLatestPubKey(ctx context.Context, in *MsgOverrideLatestPubKey, opts ...grpc.CallOption) (*MsgOverrideLatestPubKeyResponse, error) + CreateLatestPubkey(ctx context.Context, in *MsgCreateLatestPubkey, opts ...grpc.CallOption) (*MsgCreateLatestPubkeyResponse, error) + // OverrideLatestPubkey defines an operation to override the current active pubkey + OverrideLatestPubkey(ctx context.Context, in *MsgOverrideLatestPubkey, opts ...grpc.CallOption) (*MsgOverrideLatestPubkeyResponse, error) // CreateAuthorizedAddress defines an operation to mark an address // as authorized to create and/or update pubkeys on the chain CreateAuthorizedAddress(ctx context.Context, in *MsgCreateAuthorizedAddress, opts ...grpc.CallOption) (*MsgCreateAuthorizedAddressResponse, error) @@ -114,18 +114,18 @@ func (c *msgClient) SendKeyshare(ctx context.Context, in *MsgSendKeyshare, opts return out, nil } -func (c *msgClient) CreateLatestPubKey(ctx context.Context, in *MsgCreateLatestPubKey, opts ...grpc.CallOption) (*MsgCreateLatestPubKeyResponse, error) { - out := new(MsgCreateLatestPubKeyResponse) - err := c.cc.Invoke(ctx, Msg_CreateLatestPubKey_FullMethodName, in, out, opts...) +func (c *msgClient) CreateLatestPubkey(ctx context.Context, in *MsgCreateLatestPubkey, opts ...grpc.CallOption) (*MsgCreateLatestPubkeyResponse, error) { + out := new(MsgCreateLatestPubkeyResponse) + err := c.cc.Invoke(ctx, Msg_CreateLatestPubkey_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *msgClient) OverrideLatestPubKey(ctx context.Context, in *MsgOverrideLatestPubKey, opts ...grpc.CallOption) (*MsgOverrideLatestPubKeyResponse, error) { - out := new(MsgOverrideLatestPubKeyResponse) - err := c.cc.Invoke(ctx, Msg_OverrideLatestPubKey_FullMethodName, in, out, opts...) +func (c *msgClient) OverrideLatestPubkey(ctx context.Context, in *MsgOverrideLatestPubkey, opts ...grpc.CallOption) (*MsgOverrideLatestPubkeyResponse, error) { + out := new(MsgOverrideLatestPubkeyResponse) + err := c.cc.Invoke(ctx, Msg_OverrideLatestPubkey_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -193,11 +193,11 @@ type MsgServer interface { // SendKeyshare defines an operation to submit keyshares // every block from registered validators SendKeyshare(context.Context, *MsgSendKeyshare) (*MsgSendKeyshareResponse, error) - // CreateLatestPubKey defines an operation to add a + // CreateLatestPubkey defines an operation to add a // public key to the chain (can only be done by an authorized address) - CreateLatestPubKey(context.Context, *MsgCreateLatestPubKey) (*MsgCreateLatestPubKeyResponse, error) - // OverrideLatestPubKey defines an operation to override the current active pubkey - OverrideLatestPubKey(context.Context, *MsgOverrideLatestPubKey) (*MsgOverrideLatestPubKeyResponse, error) + CreateLatestPubkey(context.Context, *MsgCreateLatestPubkey) (*MsgCreateLatestPubkeyResponse, error) + // OverrideLatestPubkey defines an operation to override the current active pubkey + OverrideLatestPubkey(context.Context, *MsgOverrideLatestPubkey) (*MsgOverrideLatestPubkeyResponse, error) // CreateAuthorizedAddress defines an operation to mark an address // as authorized to create and/or update pubkeys on the chain CreateAuthorizedAddress(context.Context, *MsgCreateAuthorizedAddress) (*MsgCreateAuthorizedAddressResponse, error) @@ -232,11 +232,11 @@ func (UnimplementedMsgServer) DeRegisterValidator(context.Context, *MsgDeRegiste func (UnimplementedMsgServer) SendKeyshare(context.Context, *MsgSendKeyshare) (*MsgSendKeyshareResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SendKeyshare not implemented") } -func (UnimplementedMsgServer) CreateLatestPubKey(context.Context, *MsgCreateLatestPubKey) (*MsgCreateLatestPubKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateLatestPubKey not implemented") +func (UnimplementedMsgServer) CreateLatestPubkey(context.Context, *MsgCreateLatestPubkey) (*MsgCreateLatestPubkeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateLatestPubkey not implemented") } -func (UnimplementedMsgServer) OverrideLatestPubKey(context.Context, *MsgOverrideLatestPubKey) (*MsgOverrideLatestPubKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OverrideLatestPubKey not implemented") +func (UnimplementedMsgServer) OverrideLatestPubkey(context.Context, *MsgOverrideLatestPubkey) (*MsgOverrideLatestPubkeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OverrideLatestPubkey not implemented") } func (UnimplementedMsgServer) CreateAuthorizedAddress(context.Context, *MsgCreateAuthorizedAddress) (*MsgCreateAuthorizedAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateAuthorizedAddress not implemented") @@ -338,38 +338,38 @@ func _Msg_SendKeyshare_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } -func _Msg_CreateLatestPubKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreateLatestPubKey) +func _Msg_CreateLatestPubkey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateLatestPubkey) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).CreateLatestPubKey(ctx, in) + return srv.(MsgServer).CreateLatestPubkey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Msg_CreateLatestPubKey_FullMethodName, + FullMethod: Msg_CreateLatestPubkey_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateLatestPubKey(ctx, req.(*MsgCreateLatestPubKey)) + return srv.(MsgServer).CreateLatestPubkey(ctx, req.(*MsgCreateLatestPubkey)) } return interceptor(ctx, in, info, handler) } -func _Msg_OverrideLatestPubKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgOverrideLatestPubKey) +func _Msg_OverrideLatestPubkey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgOverrideLatestPubkey) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).OverrideLatestPubKey(ctx, in) + return srv.(MsgServer).OverrideLatestPubkey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Msg_OverrideLatestPubKey_FullMethodName, + FullMethod: Msg_OverrideLatestPubkey_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).OverrideLatestPubKey(ctx, req.(*MsgOverrideLatestPubKey)) + return srv.(MsgServer).OverrideLatestPubkey(ctx, req.(*MsgOverrideLatestPubkey)) } return interceptor(ctx, in, info, handler) } @@ -488,12 +488,12 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ Handler: _Msg_SendKeyshare_Handler, }, { - MethodName: "CreateLatestPubKey", - Handler: _Msg_CreateLatestPubKey_Handler, + MethodName: "CreateLatestPubkey", + Handler: _Msg_CreateLatestPubkey_Handler, }, { - MethodName: "OverrideLatestPubKey", - Handler: _Msg_OverrideLatestPubKey_Handler, + MethodName: "OverrideLatestPubkey", + Handler: _Msg_OverrideLatestPubkey_Handler, }, { MethodName: "CreateAuthorizedAddress", diff --git a/api/fairyring/pep/genesis.pulsar.go b/api/fairyring/pep/genesis.pulsar.go index 9e64e388..ffae8288 100644 --- a/api/fairyring/pep/genesis.pulsar.go +++ b/api/fairyring/pep/genesis.pulsar.go @@ -223,13 +223,13 @@ var ( md_GenesisState protoreflect.MessageDescriptor fd_GenesisState_params protoreflect.FieldDescriptor fd_GenesisState_port_id protoreflect.FieldDescriptor - fd_GenesisState_encryptedTxArray protoreflect.FieldDescriptor - fd_GenesisState_pepNonceList protoreflect.FieldDescriptor + fd_GenesisState_encrypted_tx_array protoreflect.FieldDescriptor + fd_GenesisState_pep_nonce_list protoreflect.FieldDescriptor fd_GenesisState_decryption_key_list protoreflect.FieldDescriptor - fd_GenesisState_activePubKey protoreflect.FieldDescriptor - fd_GenesisState_queuedPubKey protoreflect.FieldDescriptor + fd_GenesisState_active_pubkey protoreflect.FieldDescriptor + fd_GenesisState_queued_pubkey protoreflect.FieldDescriptor fd_GenesisState_request_count protoreflect.FieldDescriptor - fd_GenesisState_requestIdList protoreflect.FieldDescriptor + fd_GenesisState_request_id_list protoreflect.FieldDescriptor ) func init() { @@ -237,13 +237,13 @@ func init() { md_GenesisState = File_fairyring_pep_genesis_proto.Messages().ByName("GenesisState") fd_GenesisState_params = md_GenesisState.Fields().ByName("params") fd_GenesisState_port_id = md_GenesisState.Fields().ByName("port_id") - fd_GenesisState_encryptedTxArray = md_GenesisState.Fields().ByName("encryptedTxArray") - fd_GenesisState_pepNonceList = md_GenesisState.Fields().ByName("pepNonceList") + fd_GenesisState_encrypted_tx_array = md_GenesisState.Fields().ByName("encrypted_tx_array") + fd_GenesisState_pep_nonce_list = md_GenesisState.Fields().ByName("pep_nonce_list") fd_GenesisState_decryption_key_list = md_GenesisState.Fields().ByName("decryption_key_list") - fd_GenesisState_activePubKey = md_GenesisState.Fields().ByName("activePubKey") - fd_GenesisState_queuedPubKey = md_GenesisState.Fields().ByName("queuedPubKey") + fd_GenesisState_active_pubkey = md_GenesisState.Fields().ByName("active_pubkey") + fd_GenesisState_queued_pubkey = md_GenesisState.Fields().ByName("queued_pubkey") fd_GenesisState_request_count = md_GenesisState.Fields().ByName("request_count") - fd_GenesisState_requestIdList = md_GenesisState.Fields().ByName("requestIdList") + fd_GenesisState_request_id_list = md_GenesisState.Fields().ByName("request_id_list") } var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) @@ -325,13 +325,13 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, } if len(x.EncryptedTxArray) != 0 { value := protoreflect.ValueOfList(&_GenesisState_3_list{list: &x.EncryptedTxArray}) - if !f(fd_GenesisState_encryptedTxArray, value) { + if !f(fd_GenesisState_encrypted_tx_array, value) { return } } if len(x.PepNonceList) != 0 { value := protoreflect.ValueOfList(&_GenesisState_4_list{list: &x.PepNonceList}) - if !f(fd_GenesisState_pepNonceList, value) { + if !f(fd_GenesisState_pep_nonce_list, value) { return } } @@ -341,15 +341,15 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } - if x.ActivePubKey != nil { - value := protoreflect.ValueOfMessage(x.ActivePubKey.ProtoReflect()) - if !f(fd_GenesisState_activePubKey, value) { + if x.ActivePubkey != nil { + value := protoreflect.ValueOfMessage(x.ActivePubkey.ProtoReflect()) + if !f(fd_GenesisState_active_pubkey, value) { return } } - if x.QueuedPubKey != nil { - value := protoreflect.ValueOfMessage(x.QueuedPubKey.ProtoReflect()) - if !f(fd_GenesisState_queuedPubKey, value) { + if x.QueuedPubkey != nil { + value := protoreflect.ValueOfMessage(x.QueuedPubkey.ProtoReflect()) + if !f(fd_GenesisState_queued_pubkey, value) { return } } @@ -361,7 +361,7 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, } if len(x.RequestIdList) != 0 { value := protoreflect.ValueOfList(&_GenesisState_10_list{list: &x.RequestIdList}) - if !f(fd_GenesisState_requestIdList, value) { + if !f(fd_GenesisState_request_id_list, value) { return } } @@ -384,19 +384,19 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return x.Params != nil case "fairyring.pep.GenesisState.port_id": return x.PortId != "" - case "fairyring.pep.GenesisState.encryptedTxArray": + case "fairyring.pep.GenesisState.encrypted_tx_array": return len(x.EncryptedTxArray) != 0 - case "fairyring.pep.GenesisState.pepNonceList": + case "fairyring.pep.GenesisState.pep_nonce_list": return len(x.PepNonceList) != 0 case "fairyring.pep.GenesisState.decryption_key_list": return len(x.DecryptionKeyList) != 0 - case "fairyring.pep.GenesisState.activePubKey": - return x.ActivePubKey != nil - case "fairyring.pep.GenesisState.queuedPubKey": - return x.QueuedPubKey != nil + case "fairyring.pep.GenesisState.active_pubkey": + return x.ActivePubkey != nil + case "fairyring.pep.GenesisState.queued_pubkey": + return x.QueuedPubkey != nil case "fairyring.pep.GenesisState.request_count": return x.RequestCount != uint64(0) - case "fairyring.pep.GenesisState.requestIdList": + case "fairyring.pep.GenesisState.request_id_list": return len(x.RequestIdList) != 0 default: if fd.IsExtension() { @@ -418,19 +418,19 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.Params = nil case "fairyring.pep.GenesisState.port_id": x.PortId = "" - case "fairyring.pep.GenesisState.encryptedTxArray": + case "fairyring.pep.GenesisState.encrypted_tx_array": x.EncryptedTxArray = nil - case "fairyring.pep.GenesisState.pepNonceList": + case "fairyring.pep.GenesisState.pep_nonce_list": x.PepNonceList = nil case "fairyring.pep.GenesisState.decryption_key_list": x.DecryptionKeyList = nil - case "fairyring.pep.GenesisState.activePubKey": - x.ActivePubKey = nil - case "fairyring.pep.GenesisState.queuedPubKey": - x.QueuedPubKey = nil + case "fairyring.pep.GenesisState.active_pubkey": + x.ActivePubkey = nil + case "fairyring.pep.GenesisState.queued_pubkey": + x.QueuedPubkey = nil case "fairyring.pep.GenesisState.request_count": x.RequestCount = uint64(0) - case "fairyring.pep.GenesisState.requestIdList": + case "fairyring.pep.GenesisState.request_id_list": x.RequestIdList = nil default: if fd.IsExtension() { @@ -454,13 +454,13 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto case "fairyring.pep.GenesisState.port_id": value := x.PortId return protoreflect.ValueOfString(value) - case "fairyring.pep.GenesisState.encryptedTxArray": + case "fairyring.pep.GenesisState.encrypted_tx_array": if len(x.EncryptedTxArray) == 0 { return protoreflect.ValueOfList(&_GenesisState_3_list{}) } listValue := &_GenesisState_3_list{list: &x.EncryptedTxArray} return protoreflect.ValueOfList(listValue) - case "fairyring.pep.GenesisState.pepNonceList": + case "fairyring.pep.GenesisState.pep_nonce_list": if len(x.PepNonceList) == 0 { return protoreflect.ValueOfList(&_GenesisState_4_list{}) } @@ -472,16 +472,16 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto } listValue := &_GenesisState_6_list{list: &x.DecryptionKeyList} return protoreflect.ValueOfList(listValue) - case "fairyring.pep.GenesisState.activePubKey": - value := x.ActivePubKey + case "fairyring.pep.GenesisState.active_pubkey": + value := x.ActivePubkey return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "fairyring.pep.GenesisState.queuedPubKey": - value := x.QueuedPubKey + case "fairyring.pep.GenesisState.queued_pubkey": + value := x.QueuedPubkey return protoreflect.ValueOfMessage(value.ProtoReflect()) case "fairyring.pep.GenesisState.request_count": value := x.RequestCount return protoreflect.ValueOfUint64(value) - case "fairyring.pep.GenesisState.requestIdList": + case "fairyring.pep.GenesisState.request_id_list": if len(x.RequestIdList) == 0 { return protoreflect.ValueOfList(&_GenesisState_10_list{}) } @@ -511,11 +511,11 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value x.Params = value.Message().Interface().(*Params) case "fairyring.pep.GenesisState.port_id": x.PortId = value.Interface().(string) - case "fairyring.pep.GenesisState.encryptedTxArray": + case "fairyring.pep.GenesisState.encrypted_tx_array": lv := value.List() clv := lv.(*_GenesisState_3_list) x.EncryptedTxArray = *clv.list - case "fairyring.pep.GenesisState.pepNonceList": + case "fairyring.pep.GenesisState.pep_nonce_list": lv := value.List() clv := lv.(*_GenesisState_4_list) x.PepNonceList = *clv.list @@ -523,13 +523,13 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value lv := value.List() clv := lv.(*_GenesisState_6_list) x.DecryptionKeyList = *clv.list - case "fairyring.pep.GenesisState.activePubKey": - x.ActivePubKey = value.Message().Interface().(*common.ActivePublicKey) - case "fairyring.pep.GenesisState.queuedPubKey": - x.QueuedPubKey = value.Message().Interface().(*common.QueuedPublicKey) + case "fairyring.pep.GenesisState.active_pubkey": + x.ActivePubkey = value.Message().Interface().(*common.ActivePublicKey) + case "fairyring.pep.GenesisState.queued_pubkey": + x.QueuedPubkey = value.Message().Interface().(*common.QueuedPublicKey) case "fairyring.pep.GenesisState.request_count": x.RequestCount = value.Uint() - case "fairyring.pep.GenesisState.requestIdList": + case "fairyring.pep.GenesisState.request_id_list": lv := value.List() clv := lv.(*_GenesisState_10_list) x.RequestIdList = *clv.list @@ -558,13 +558,13 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p x.Params = new(Params) } return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - case "fairyring.pep.GenesisState.encryptedTxArray": + case "fairyring.pep.GenesisState.encrypted_tx_array": if x.EncryptedTxArray == nil { x.EncryptedTxArray = []*EncryptedTxArray{} } value := &_GenesisState_3_list{list: &x.EncryptedTxArray} return protoreflect.ValueOfList(value) - case "fairyring.pep.GenesisState.pepNonceList": + case "fairyring.pep.GenesisState.pep_nonce_list": if x.PepNonceList == nil { x.PepNonceList = []*PepNonce{} } @@ -576,17 +576,17 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p } value := &_GenesisState_6_list{list: &x.DecryptionKeyList} return protoreflect.ValueOfList(value) - case "fairyring.pep.GenesisState.activePubKey": - if x.ActivePubKey == nil { - x.ActivePubKey = new(common.ActivePublicKey) + case "fairyring.pep.GenesisState.active_pubkey": + if x.ActivePubkey == nil { + x.ActivePubkey = new(common.ActivePublicKey) } - return protoreflect.ValueOfMessage(x.ActivePubKey.ProtoReflect()) - case "fairyring.pep.GenesisState.queuedPubKey": - if x.QueuedPubKey == nil { - x.QueuedPubKey = new(common.QueuedPublicKey) + return protoreflect.ValueOfMessage(x.ActivePubkey.ProtoReflect()) + case "fairyring.pep.GenesisState.queued_pubkey": + if x.QueuedPubkey == nil { + x.QueuedPubkey = new(common.QueuedPublicKey) } - return protoreflect.ValueOfMessage(x.QueuedPubKey.ProtoReflect()) - case "fairyring.pep.GenesisState.requestIdList": + return protoreflect.ValueOfMessage(x.QueuedPubkey.ProtoReflect()) + case "fairyring.pep.GenesisState.request_id_list": if x.RequestIdList == nil { x.RequestIdList = []*RequestId{} } @@ -614,24 +614,24 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "fairyring.pep.GenesisState.port_id": return protoreflect.ValueOfString("") - case "fairyring.pep.GenesisState.encryptedTxArray": + case "fairyring.pep.GenesisState.encrypted_tx_array": list := []*EncryptedTxArray{} return protoreflect.ValueOfList(&_GenesisState_3_list{list: &list}) - case "fairyring.pep.GenesisState.pepNonceList": + case "fairyring.pep.GenesisState.pep_nonce_list": list := []*PepNonce{} return protoreflect.ValueOfList(&_GenesisState_4_list{list: &list}) case "fairyring.pep.GenesisState.decryption_key_list": list := []*DecryptionKey{} return protoreflect.ValueOfList(&_GenesisState_6_list{list: &list}) - case "fairyring.pep.GenesisState.activePubKey": + case "fairyring.pep.GenesisState.active_pubkey": m := new(common.ActivePublicKey) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "fairyring.pep.GenesisState.queuedPubKey": + case "fairyring.pep.GenesisState.queued_pubkey": m := new(common.QueuedPublicKey) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "fairyring.pep.GenesisState.request_count": return protoreflect.ValueOfUint64(uint64(0)) - case "fairyring.pep.GenesisState.requestIdList": + case "fairyring.pep.GenesisState.request_id_list": list := []*RequestId{} return protoreflect.ValueOfList(&_GenesisState_10_list{list: &list}) default: @@ -729,12 +729,12 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } - if x.ActivePubKey != nil { - l = options.Size(x.ActivePubKey) + if x.ActivePubkey != nil { + l = options.Size(x.ActivePubkey) n += 1 + l + runtime.Sov(uint64(l)) } - if x.QueuedPubKey != nil { - l = options.Size(x.QueuedPubKey) + if x.QueuedPubkey != nil { + l = options.Size(x.QueuedPubkey) n += 1 + l + runtime.Sov(uint64(l)) } if x.RequestCount != 0 { @@ -796,8 +796,8 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x48 } - if x.QueuedPubKey != nil { - encoded, err := options.Marshal(x.QueuedPubKey) + if x.QueuedPubkey != nil { + encoded, err := options.Marshal(x.QueuedPubkey) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -810,8 +810,8 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x42 } - if x.ActivePubKey != nil { - encoded, err := options.Marshal(x.ActivePubKey) + if x.ActivePubkey != nil { + encoded, err := options.Marshal(x.ActivePubkey) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1114,7 +1114,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { iNdEx = postIndex case 7: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActivePubKey", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActivePubkey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1141,16 +1141,16 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.ActivePubKey == nil { - x.ActivePubKey = &common.ActivePublicKey{} + if x.ActivePubkey == nil { + x.ActivePubkey = &common.ActivePublicKey{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ActivePubKey); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ActivePubkey); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex case 8: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueuedPubKey", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field QueuedPubkey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1177,10 +1177,10 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.QueuedPubKey == nil { - x.QueuedPubKey = &common.QueuedPublicKey{} + if x.QueuedPubkey == nil { + x.QueuedPubkey = &common.QueuedPublicKey{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.QueuedPubKey); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.QueuedPubkey); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -1294,13 +1294,13 @@ type GenesisState struct { // params defines all the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - EncryptedTxArray []*EncryptedTxArray `protobuf:"bytes,3,rep,name=encryptedTxArray,proto3" json:"encryptedTxArray,omitempty"` - PepNonceList []*PepNonce `protobuf:"bytes,4,rep,name=pepNonceList,proto3" json:"pepNonceList,omitempty"` + EncryptedTxArray []*EncryptedTxArray `protobuf:"bytes,3,rep,name=encrypted_tx_array,json=encryptedTxArray,proto3" json:"encrypted_tx_array,omitempty"` + PepNonceList []*PepNonce `protobuf:"bytes,4,rep,name=pep_nonce_list,json=pepNonceList,proto3" json:"pep_nonce_list,omitempty"` DecryptionKeyList []*DecryptionKey `protobuf:"bytes,6,rep,name=decryption_key_list,json=decryptionKeyList,proto3" json:"decryption_key_list,omitempty"` - ActivePubKey *common.ActivePublicKey `protobuf:"bytes,7,opt,name=activePubKey,proto3" json:"activePubKey,omitempty"` - QueuedPubKey *common.QueuedPublicKey `protobuf:"bytes,8,opt,name=queuedPubKey,proto3" json:"queuedPubKey,omitempty"` + ActivePubkey *common.ActivePublicKey `protobuf:"bytes,7,opt,name=active_pubkey,json=activePubkey,proto3" json:"active_pubkey,omitempty"` + QueuedPubkey *common.QueuedPublicKey `protobuf:"bytes,8,opt,name=queued_pubkey,json=queuedPubkey,proto3" json:"queued_pubkey,omitempty"` RequestCount uint64 `protobuf:"varint,9,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"` - RequestIdList []*RequestId `protobuf:"bytes,10,rep,name=requestIdList,proto3" json:"requestIdList,omitempty"` + RequestIdList []*RequestId `protobuf:"bytes,10,rep,name=request_id_list,json=requestIdList,proto3" json:"request_id_list,omitempty"` } func (x *GenesisState) Reset() { @@ -1358,16 +1358,16 @@ func (x *GenesisState) GetDecryptionKeyList() []*DecryptionKey { return nil } -func (x *GenesisState) GetActivePubKey() *common.ActivePublicKey { +func (x *GenesisState) GetActivePubkey() *common.ActivePublicKey { if x != nil { - return x.ActivePubKey + return x.ActivePubkey } return nil } -func (x *GenesisState) GetQueuedPubKey() *common.QueuedPublicKey { +func (x *GenesisState) GetQueuedPubkey() *common.QueuedPublicKey { if x != nil { - return x.QueuedPubKey + return x.QueuedPubkey } return nil } @@ -1406,54 +1406,55 @@ var file_fairyring_pep_genesis_proto_rawDesc = []byte{ 0x67, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd0, 0x04, 0x0a, 0x0c, + 0x73, 0x74, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd8, 0x04, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x64, 0x12, - 0x51, 0x0a, 0x10, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, - 0x72, 0x61, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x61, 0x69, 0x72, - 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, - 0x52, 0x10, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, - 0x61, 0x79, 0x12, 0x41, 0x0a, 0x0c, 0x70, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x4c, 0x69, - 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, - 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x50, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, - 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x70, 0x65, 0x70, 0x4e, 0x6f, 0x6e, 0x63, - 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x13, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x06, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, - 0x65, 0x70, 0x2e, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, - 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x64, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x0c, 0x61, 0x63, 0x74, - 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, - 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, - 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x4b, 0x0a, 0x0c, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, - 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, - 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, - 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, - 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, - 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x44, 0x0a, 0x0d, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x18, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, - 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x96, - 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2e, 0x70, 0x65, 0x70, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, - 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, - 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, - 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, - 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x53, 0x0a, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x78, 0x5f, + 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x61, + 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, 0x72, 0x72, 0x61, 0x79, 0x42, 0x04, 0xc8, 0xde, + 0x1f, 0x00, 0x52, 0x10, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x54, 0x78, 0x41, + 0x72, 0x72, 0x61, 0x79, 0x12, 0x43, 0x0a, 0x0e, 0x70, 0x65, 0x70, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, + 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x50, 0x65, 0x70, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x70, 0x65, 0x70, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x13, 0x64, 0x65, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x6c, 0x69, 0x73, 0x74, + 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, + 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x64, 0x65, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x4c, 0x0a, + 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x61, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x4c, 0x0a, 0x0d, 0x71, + 0x75, 0x65, 0x75, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, + 0x75, 0x65, 0x64, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x46, + 0x0a, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x5f, 0x6c, 0x69, 0x73, + 0x74, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x61, 0x69, 0x72, 0x79, 0x72, + 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, + 0x64, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x96, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x65, 0x70, 0x42, 0x0c, 0x47, 0x65, + 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1e, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, + 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x70, 0x65, 0x70, 0xa2, 0x02, 0x03, 0x46, + 0x50, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x50, + 0x65, 0x70, 0xca, 0x02, 0x0d, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, + 0x65, 0x70, 0xe2, 0x02, 0x19, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x50, + 0x65, 0x70, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x0e, 0x46, 0x61, 0x69, 0x72, 0x79, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x50, 0x65, 0x70, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1481,12 +1482,12 @@ var file_fairyring_pep_genesis_proto_goTypes = []interface{}{ } var file_fairyring_pep_genesis_proto_depIdxs = []int32{ 1, // 0: fairyring.pep.GenesisState.params:type_name -> fairyring.pep.Params - 2, // 1: fairyring.pep.GenesisState.encryptedTxArray:type_name -> fairyring.pep.EncryptedTxArray - 3, // 2: fairyring.pep.GenesisState.pepNonceList:type_name -> fairyring.pep.PepNonce + 2, // 1: fairyring.pep.GenesisState.encrypted_tx_array:type_name -> fairyring.pep.EncryptedTxArray + 3, // 2: fairyring.pep.GenesisState.pep_nonce_list:type_name -> fairyring.pep.PepNonce 4, // 3: fairyring.pep.GenesisState.decryption_key_list:type_name -> fairyring.pep.DecryptionKey - 5, // 4: fairyring.pep.GenesisState.activePubKey:type_name -> fairyring.common.ActivePublicKey - 6, // 5: fairyring.pep.GenesisState.queuedPubKey:type_name -> fairyring.common.QueuedPublicKey - 7, // 6: fairyring.pep.GenesisState.requestIdList:type_name -> fairyring.pep.RequestId + 5, // 4: fairyring.pep.GenesisState.active_pubkey:type_name -> fairyring.common.ActivePublicKey + 6, // 5: fairyring.pep.GenesisState.queued_pubkey:type_name -> fairyring.common.QueuedPublicKey + 7, // 6: fairyring.pep.GenesisState.request_id_list:type_name -> fairyring.pep.RequestId 7, // [7:7] is the sub-list for method output_type 7, // [7:7] is the sub-list for method input_type 7, // [7:7] is the sub-list for extension type_name diff --git a/api/fairyring/pep/query.pulsar.go b/api/fairyring/pep/query.pulsar.go index 11a86146..2a359bb5 100644 --- a/api/fairyring/pep/query.pulsar.go +++ b/api/fairyring/pep/query.pulsar.go @@ -11648,7 +11648,7 @@ func (x *QueryPepNonceAllResponse) GetPagination() *v1beta1.PageResponse { return nil } -// QueryPubKeyRequest is request type for the Query/PubKey RPC method. +// QueryPubkeyRequest is request type for the Query/Pubkey RPC method. type QueryPubkeyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -11675,7 +11675,7 @@ func (*QueryPubkeyRequest) Descriptor() ([]byte, []int) { return file_fairyring_pep_query_proto_rawDescGZIP(), []int{18} } -// QueryPubKeyResponse is response type for the Query/PubKey RPC method. +// QueryPubkeyResponse is response type for the Query/Pubkey RPC method. type QueryPubkeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/cmd/fairyringd/cmd/secp_encrypter/secp_encrypter.go b/cmd/fairyringd/cmd/secp_encrypter/secp_encrypter.go index 7dac3844..d212d5b6 100644 --- a/cmd/fairyringd/cmd/secp_encrypter/secp_encrypter.go +++ b/cmd/fairyringd/cmd/secp_encrypter/secp_encrypter.go @@ -11,31 +11,29 @@ import ( ) func SecpEncrypterCmd() *cobra.Command { - var pubKeyBase64 string + var pubkeyBase64 string var keyshare string var rootCmd = &cobra.Command{ Use: "secp-encrypter", Short: "A CLI tool to take two strings as input and output them", Run: func(cmd *cobra.Command, args []string) { - // fmt.Println("Input 1:", pubKeyBase64) - // fmt.Println("Input 2:", keyshare) // Decode the base64 public key - pubKeyBytes, err := base64.StdEncoding.DecodeString(pubKeyBase64) + pubkeyBytes, err := base64.StdEncoding.DecodeString(pubkeyBase64) if err != nil { fmt.Println(err) os.Exit(1) } // Load the secp256k1 public key - pubKey, err := btcec.ParsePubKey(pubKeyBytes, btcec.S256()) + pubkey, err := btcec.ParsePubKey(pubkeyBytes, btcec.S256()) if err != nil { fmt.Println(err) os.Exit(1) } - ciphertext, err := btcec.Encrypt(pubKey, []byte(keyshare)) + ciphertext, err := btcec.Encrypt(pubkey, []byte(keyshare)) if err != nil { fmt.Println(err) os.Exit(1) @@ -47,7 +45,7 @@ func SecpEncrypterCmd() *cobra.Command { } // Flags for input - rootCmd.Flags().StringVarP(&pubKeyBase64, "pubkey64", "p", "", "pubkey to encrypt keyshare") + rootCmd.Flags().StringVarP(&pubkeyBase64, "pubkey64", "p", "", "pubkey to encrypt keyshare") rootCmd.Flags().StringVarP(&keyshare, "keyshare", "k", "", "keyshare in hex") // Mark the flags as required diff --git a/proto/fairyring/keyshare/genesis.proto b/proto/fairyring/keyshare/genesis.proto index 83683f03..e1f05ac3 100644 --- a/proto/fairyring/keyshare/genesis.proto +++ b/proto/fairyring/keyshare/genesis.proto @@ -24,8 +24,8 @@ message GenesisState { repeated ValidatorSet validator_set_list = 3 [(gogoproto.nullable) = false]; repeated Keyshare keyshare_list = 4 [(gogoproto.nullable) = false]; repeated DecryptionKey decryption_key_list = 5 [(gogoproto.nullable) = false]; - ActivePubKey active_pub_key = 6 [(gogoproto.nullable) = false]; - QueuedPubKey queued_pub_key = 7 [(gogoproto.nullable) = false]; + ActivePubkey active_pubkey = 6 [(gogoproto.nullable) = false]; + QueuedPubkey queued_pubkey = 7 [(gogoproto.nullable) = false]; repeated AuthorizedAddress authorized_address_list = 8 [(gogoproto.nullable) = false]; uint64 request_count = 9; repeated GeneralKeyshare general_keyshare_list = 10 [(gogoproto.nullable) = false]; diff --git a/proto/fairyring/keyshare/pubkey.proto b/proto/fairyring/keyshare/pubkey.proto index d32a832d..32682c5f 100644 --- a/proto/fairyring/keyshare/pubkey.proto +++ b/proto/fairyring/keyshare/pubkey.proto @@ -10,8 +10,8 @@ message EncryptedKeyshare { string validator = 2; } -// ActivePubKey defines the structure of the active public key -message ActivePubKey { +// ActivePubkey defines the structure of the active public key +message ActivePubkey { string public_key = 1; string creator = 2; uint64 expiry = 3; @@ -19,8 +19,8 @@ message ActivePubKey { repeated EncryptedKeyshare encrypted_keyshares = 5; } -// QueuedPubKey defines the structure of the queued public key -message QueuedPubKey { +// QueuedPubkey defines the structure of the queued public key +message QueuedPubkey { string public_key = 1; string creator = 2; uint64 expiry = 3; diff --git a/proto/fairyring/keyshare/query.proto b/proto/fairyring/keyshare/query.proto index 0a36d2be..9b490d9d 100644 --- a/proto/fairyring/keyshare/query.proto +++ b/proto/fairyring/keyshare/query.proto @@ -185,13 +185,13 @@ message QueryDecryptionKeyAllResponse { cosmos.base.query.v1beta1.PageResponse pagination = 2; } -// QueryPubKeyRequest is request type for the Query/PubKey RPC method. +// QueryPubkeyRequest is request type for the Query/Pubkey RPC method. message QueryPubkeyRequest {} -// QueryPubKeyResponse is response type for the Query/PubKey RPC method. +// QueryPubkeyResponse is response type for the Query/Pubkey RPC method. message QueryPubkeyResponse { - ActivePubKey active_pubkey = 1 [(gogoproto.nullable) = false]; - QueuedPubKey queued_pubkey = 2 [(gogoproto.nullable) = false]; + ActivePubkey active_pubkey = 1 [(gogoproto.nullable) = false]; + QueuedPubkey queued_pubkey = 2 [(gogoproto.nullable) = false]; } // QueryAuthorizedAddressRequest is request type for the Query/AuthorizedAddress RPC method. diff --git a/proto/fairyring/keyshare/tx.proto b/proto/fairyring/keyshare/tx.proto index b1175dbe..20d26bbd 100644 --- a/proto/fairyring/keyshare/tx.proto +++ b/proto/fairyring/keyshare/tx.proto @@ -31,12 +31,12 @@ service Msg { // every block from registered validators rpc SendKeyshare(MsgSendKeyshare) returns (MsgSendKeyshareResponse); - // CreateLatestPubKey defines an operation to add a + // CreateLatestPubkey defines an operation to add a // public key to the chain (can only be done by an authorized address) - rpc CreateLatestPubKey(MsgCreateLatestPubKey) returns (MsgCreateLatestPubKeyResponse); + rpc CreateLatestPubkey(MsgCreateLatestPubkey) returns (MsgCreateLatestPubkeyResponse); - // OverrideLatestPubKey defines an operation to override the current active pubkey - rpc OverrideLatestPubKey(MsgOverrideLatestPubKey) returns (MsgOverrideLatestPubKeyResponse); + // OverrideLatestPubkey defines an operation to override the current active pubkey + rpc OverrideLatestPubkey(MsgOverrideLatestPubkey) returns (MsgOverrideLatestPubkeyResponse); // CreateAuthorizedAddress defines an operation to mark an address // as authorized to create and/or update pubkeys on the chain @@ -124,8 +124,8 @@ message MsgSendKeyshareResponse { string error_message = 7; } -// MsgCreateLatestPubKey is the Msg/CreateLatestPubKey request type. -message MsgCreateLatestPubKey { +// MsgCreateLatestPubkey is the Msg/CreateLatestPubkey request type. +message MsgCreateLatestPubkey { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string public_key = 2; @@ -134,12 +134,12 @@ message MsgCreateLatestPubKey { repeated EncryptedKeyshare encrypted_keyshares = 5; } -// MsgCreateLatestPubKeyResponse defines the response structure for -// executing a MsgCreateLatestPubKey message. -message MsgCreateLatestPubKeyResponse {} +// MsgCreateLatestPubkeyResponse defines the response structure for +// executing a MsgCreateLatestPubkey message. +message MsgCreateLatestPubkeyResponse {} -// MsgOverrideLatestPubKey is the Msg/OverrideLatestPubKey request type. -message MsgOverrideLatestPubKey { +// MsgOverrideLatestPubkey is the Msg/OverrideLatestPubkey request type. +message MsgOverrideLatestPubkey { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; string public_key = 2; @@ -148,9 +148,9 @@ message MsgOverrideLatestPubKey { repeated EncryptedKeyshare encrypted_keyshares = 5; } -// MsgOverrideLatestPubKeyResponse defines the response structure for -// executing a MsgOverrideLatestPubKey message. -message MsgOverrideLatestPubKeyResponse {} +// MsgOverrideLatestPubkeyResponse defines the response structure for +// executing a MsgOverrideLatestPubkey message. +message MsgOverrideLatestPubkeyResponse {} // MsgCreateAuthorizedAddress is the Msg/CreateAuthorizedAddress request type. message MsgCreateAuthorizedAddress { diff --git a/proto/fairyring/pep/genesis.proto b/proto/fairyring/pep/genesis.proto index eec17de1..d68bc902 100644 --- a/proto/fairyring/pep/genesis.proto +++ b/proto/fairyring/pep/genesis.proto @@ -19,11 +19,11 @@ message GenesisState { // params defines all the parameters of the module. Params params = 1 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; string port_id = 2; - repeated EncryptedTxArray encryptedTxArray = 3 [(gogoproto.nullable) = false] ; - repeated PepNonce pepNonceList = 4 [(gogoproto.nullable) = false] ; + repeated EncryptedTxArray encrypted_tx_array = 3 [(gogoproto.nullable) = false] ; + repeated PepNonce pep_nonce_list = 4 [(gogoproto.nullable) = false] ; repeated DecryptionKey decryption_key_list = 6 [(gogoproto.nullable) = false]; - fairyring.common.ActivePublicKey activePubKey = 7 [(gogoproto.nullable) = false]; - fairyring.common.QueuedPublicKey queuedPubKey = 8 [(gogoproto.nullable) = false]; + fairyring.common.ActivePublicKey active_pubkey = 7 [(gogoproto.nullable) = false]; + fairyring.common.QueuedPublicKey queued_pubkey = 8 [(gogoproto.nullable) = false]; uint64 request_count = 9; - repeated RequestId requestIdList = 10 [(gogoproto.nullable) = false]; + repeated RequestId request_id_list = 10 [(gogoproto.nullable) = false]; } diff --git a/proto/fairyring/pep/query.proto b/proto/fairyring/pep/query.proto index 7d147fa6..c7bb2c18 100644 --- a/proto/fairyring/pep/query.proto +++ b/proto/fairyring/pep/query.proto @@ -170,10 +170,10 @@ message QueryPepNonceAllResponse { cosmos.base.query.v1beta1.PageResponse pagination = 2; } -// QueryPubKeyRequest is request type for the Query/PubKey RPC method. +// QueryPubkeyRequest is request type for the Query/Pubkey RPC method. message QueryPubkeyRequest {} -// QueryPubKeyResponse is response type for the Query/PubKey RPC method. +// QueryPubkeyResponse is response type for the Query/Pubkey RPC method. message QueryPubkeyResponse { fairyring.common.ActivePublicKey active_pubkey = 1 [(gogoproto.nullable) = false]; fairyring.common.QueuedPublicKey queued_pubkey = 2 [(gogoproto.nullable) = false]; diff --git a/scripts/tests/keyshareSender.sh b/scripts/tests/keyshareSender.sh index 66a7c293..22bc15fc 100755 --- a/scripts/tests/keyshareSender.sh +++ b/scripts/tests/keyshareSender.sh @@ -36,7 +36,7 @@ wait_for_tx () { sleep 3 RESULT=$(fairyringd q keyshare show-active-pub-key --node $NODE -o json | jq) -GENERATED_SHARE=$(echo $RESULT | jq -r '.activePubKey.encryptedKeyShares[0].data') +GENERATED_SHARE=$(echo $RESULT | jq -r '.activePubkey.encryptedKeyShares[0].data') while true do diff --git a/scripts/tests/pep.sh b/scripts/tests/pep.sh index 52eda8a2..cd2901dd 100755 --- a/scripts/tests/pep.sh +++ b/scripts/tests/pep.sh @@ -72,7 +72,7 @@ fi echo "Query master public key from key share module for submitting to pep module on chain fairyring_test_1" -PUB_KEY=$($BINARY query keyshare show-active-pub-key --node $CHAIN1_NODE -o json | jq -r '.activePubKey.publicKey') +PUB_KEY=$($BINARY query keyshare show-active-pub-key --node $CHAIN1_NODE -o json | jq -r '.activePubkey.publicKey') if [ "$PUB_KEY" == "" ]; then echo "ERROR: Query master public key from key share module error, expecting an active public key, got '$PUB_KEY'" exit 1 @@ -80,7 +80,7 @@ fi echo "Query master public key expiry height from key share module for submitting to pep module on chain fairyring_test_1" -PUB_KEY_EXPIRY=$($BINARY query keyshare show-active-pub-key --node $CHAIN1_NODE -o json | jq -r '.activePubKey.expiry') +PUB_KEY_EXPIRY=$($BINARY query keyshare show-active-pub-key --node $CHAIN1_NODE -o json | jq -r '.activePubkey.expiry') if [ "$PUB_KEY_EXPIRY" == "" ]; then echo "ERROR: Query master public key expiry height from key share module error, expecting an active public key, got '$PUB_KEY'" exit 1 diff --git a/testutil/shares/encrypt.go b/testutil/shares/encrypt.go index 4c01434b..33f2d0ed 100644 --- a/testutil/shares/encrypt.go +++ b/testutil/shares/encrypt.go @@ -3,24 +3,25 @@ package shares import ( "encoding/base64" "encoding/hex" + "github.com/btcsuite/btcd/btcec" ) // EncryptWithPublicKey encrypts data using an RSA public key. -func EncryptWithPublicKey(data string, pubKeyBase64 string) (string, error) { +func EncryptWithPublicKey(data string, pubkeyBase64 string) (string, error) { // Decode the base64 public key - pubKeyBytes, err := base64.StdEncoding.DecodeString(pubKeyBase64) + pubkeyBytes, err := base64.StdEncoding.DecodeString(pubkeyBase64) if err != nil { return "", err } // Load the secp256k1 public key - pubKey, err := btcec.ParsePubKey(pubKeyBytes, btcec.S256()) + pubkey, err := btcec.ParsePubKey(pubkeyBytes, btcec.S256()) if err != nil { return "", err } - ciphertext, err := btcec.Encrypt(pubKey, []byte(data)) + ciphertext, err := btcec.Encrypt(pubkey, []byte(data)) if err != nil { return "", err } diff --git a/x/keyshare/client/cli/tx.go b/x/keyshare/client/cli/tx.go index 7b161dab..86fc29f5 100644 --- a/x/keyshare/client/cli/tx.go +++ b/x/keyshare/client/cli/tx.go @@ -28,7 +28,7 @@ func GetTxCmd() *cobra.Command { cmd.AddCommand(CmdRegisterValidator()) cmd.AddCommand(CmdDeRegisterValidator()) cmd.AddCommand(CmdSendKeyshare()) - cmd.AddCommand(CmdCreateLatestPubKey()) + cmd.AddCommand(CmdCreateLatestPubkey()) cmd.AddCommand(CmdCreateAuthorizedAddress()) cmd.AddCommand(CmdUpdateAuthorizedAddress()) cmd.AddCommand(CmdDeleteAuthorizedAddress()) diff --git a/x/keyshare/client/cli/tx_latest_pub_key.go b/x/keyshare/client/cli/tx_latest_pub_key.go index 7a85cd34..cd881f4c 100644 --- a/x/keyshare/client/cli/tx_latest_pub_key.go +++ b/x/keyshare/client/cli/tx_latest_pub_key.go @@ -13,7 +13,7 @@ import ( "github.com/spf13/cobra" ) -func CmdCreateLatestPubKey() *cobra.Command { +func CmdCreateLatestPubkey() *cobra.Command { cmd := &cobra.Command{ Use: "create-latest-pubkey [public-key] [commitments] [number-of-validators] [encrypted-keyshares]", Short: "Create a latest public key", @@ -42,7 +42,7 @@ func CmdCreateLatestPubKey() *cobra.Command { return err } - msg := types.NewMsgCreateLatestPubKey( + msg := types.NewMsgCreateLatestPubkey( clientCtx.GetFromAddress().String(), argPublicKey, commitments, diff --git a/x/keyshare/client/cli/tx_override_pub_key.go b/x/keyshare/client/cli/tx_override_pub_key.go index 903176c7..5d05bf18 100644 --- a/x/keyshare/client/cli/tx_override_pub_key.go +++ b/x/keyshare/client/cli/tx_override_pub_key.go @@ -42,7 +42,7 @@ func CmdOverrideLatestPubkey() *cobra.Command { return err } - msg := types.NewMsgOverrideLatestPubKey( + msg := types.NewMsgOverrideLatestPubkey( clientCtx.GetFromAddress().String(), argPublicKey, commitments, diff --git a/x/keyshare/keeper/current_keys.go b/x/keyshare/keeper/current_keys.go index 89edda26..0a96bf57 100644 --- a/x/keyshare/keeper/current_keys.go +++ b/x/keyshare/keeper/current_keys.go @@ -16,7 +16,7 @@ func (k Keeper) OnRecvCurrentKeysPacket(ctx sdk.Context, packet channeltypes.Pac k.Logger().Info("Received keys packet req") - ak, found := k.GetActivePubKey(ctx) + ak, found := k.GetActivePubkey(ctx) if found { packetAck.ActiveKey = &commontypes.ActivePublicKey{ PublicKey: ak.PublicKey, @@ -25,7 +25,7 @@ func (k Keeper) OnRecvCurrentKeysPacket(ctx sdk.Context, packet channeltypes.Pac } } - qk, found := k.GetQueuedPubKey(ctx) + qk, found := k.GetQueuedPubkey(ctx) if found { packetAck.QueuedKey = &commontypes.QueuedPublicKey{ PublicKey: qk.PublicKey, diff --git a/x/keyshare/keeper/get_decryption_key.go b/x/keyshare/keeper/get_decryption_key.go index fce0079d..2310c66a 100644 --- a/x/keyshare/keeper/get_decryption_key.go +++ b/x/keyshare/keeper/get_decryption_key.go @@ -26,9 +26,9 @@ func (k Keeper) OnRecvGetDecryptionKeyPacket( return packetAck, types.ErrRequestNotFound } - key, _ := k.GetActivePubKey(ctx) + key, _ := k.GetActivePubkey(ctx) if keyshareReq.Pubkey != key.PublicKey { - qKey, found := k.GetQueuedPubKey(ctx) + qKey, found := k.GetQueuedPubkey(ctx) if !found { return packetAck, errors.New("pubkey not found") } @@ -76,7 +76,7 @@ func (k Keeper) OnRecvGetPrivateDecryptionKeyPacket( return packetAck, err } - activePubKey, found := k.GetActivePubKey(ctx) + activePubkey, found := k.GetActivePubkey(ctx) if !found { return packetAck, errors.New("active public key not found") } @@ -84,7 +84,7 @@ func (k Keeper) OnRecvGetPrivateDecryptionKeyPacket( keyshareReq, found := k.GetPrivateKeyShareRequest(ctx, data.Identity) if !found { keyshareReq.Identity = data.Identity - keyshareReq.Pubkey = activePubKey.PublicKey + keyshareReq.Pubkey = activePubkey.PublicKey keyshareReq.IbcInfo = &types.IBCInfo{ ChannelId: packet.DestinationChannel, PortId: packet.DestinationPort, diff --git a/x/keyshare/keeper/msg_create_general_key_share.go b/x/keyshare/keeper/msg_create_general_key_share.go index 7e046a89..323b6846 100644 --- a/x/keyshare/keeper/msg_create_general_key_share.go +++ b/x/keyshare/keeper/msg_create_general_key_share.go @@ -161,16 +161,16 @@ func (k msgServer) SubmitGeneralKeyshare( } // Get the active public key for aggregating - activePubKey, found := k.GetActivePubKey(ctx) + activePubkey, found := k.GetActivePubkey(ctx) if !found { - return nil, types.ErrPubKeyNotFound + return nil, types.ErrPubkeyNotFound } expectedThreshold := math.LegacyNewDecFromInt( math.NewInt(types.KeyAggregationThresholdNumerator)).Quo( math.LegacyNewDecFromInt(math.NewInt(types.KeyAggregationThresholdDenominator))).MulInt64( - int64(activePubKey.NumberOfValidators)).Ceil().TruncateInt64() + int64(activePubkey.NumberOfValidators)).Ceil().TruncateInt64() // Emit KeyShare Submitted Event ctx.EventManager().EmitEvent( @@ -259,7 +259,7 @@ func (k msgServer) SubmitGeneralKeyshare( sdk.NewAttribute(types.GeneralKeyShareAggregatedEventIDType, msg.IdType), sdk.NewAttribute(types.GeneralKeyShareAggregatedEventIDValue, msg.IdValue), sdk.NewAttribute(types.GeneralKeyShareAggregatedEventData, skHex), - sdk.NewAttribute(types.GeneralKeyShareAggregatedEventPubKey, activePubKey.PublicKey), + sdk.NewAttribute(types.GeneralKeyShareAggregatedEventPubkey, activePubkey.PublicKey), ), ) diff --git a/x/keyshare/keeper/msg_create_general_key_share_test.go b/x/keyshare/keeper/msg_create_general_key_share_test.go index 8178f444..68787da4 100644 --- a/x/keyshare/keeper/msg_create_general_key_share_test.go +++ b/x/keyshare/keeper/msg_create_general_key_share_test.go @@ -32,7 +32,7 @@ func SetupTestGeneralKeyShare(t *testing.T, ctx sdk.Context, k keeper.Keeper, nu IsActive: true, }) - k.SetActivePubKey(ctx, types.ActivePubKey{ + k.SetActivePubkey(ctx, types.ActivePubkey{ PublicKey: out.MasterPublicKey, Creator: creator, Expiry: 123456, diff --git a/x/keyshare/keeper/msg_create_pub_key.go b/x/keyshare/keeper/msg_create_pub_key.go index ce83dcb3..9d8758df 100644 --- a/x/keyshare/keeper/msg_create_pub_key.go +++ b/x/keyshare/keeper/msg_create_pub_key.go @@ -12,8 +12,11 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) -// CreateLatestPubKey updates the public key -func (k msgServer) CreateLatestPubKey(goCtx context.Context, msg *types.MsgCreateLatestPubKey) (*types.MsgCreateLatestPubKeyResponse, error) { +// CreateLatestPubkey updates the public key +func (k msgServer) CreateLatestPubkey( + goCtx context.Context, + msg *types.MsgCreateLatestPubkey, +) (*types.MsgCreateLatestPubkeyResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) params := k.GetParams(ctx) @@ -22,7 +25,7 @@ func (k msgServer) CreateLatestPubKey(goCtx context.Context, msg *types.MsgCreat return nil, types.ErrAddressNotTrusted.Wrap(msg.Creator) } - _, found := k.GetQueuedPubKey(ctx) + _, found := k.GetQueuedPubkey(ctx) if found { return nil, types.ErrQueuedKeyAlreadyExists.Wrap(msg.Creator) } @@ -32,12 +35,12 @@ func (k msgServer) CreateLatestPubKey(goCtx context.Context, msg *types.MsgCreat } expHeight := params.KeyExpiry + uint64(ctx.BlockHeight()) - ak, found := k.GetActivePubKey(ctx) + ak, found := k.GetActivePubkey(ctx) if found { expHeight = ak.Expiry + params.KeyExpiry } - var queuedPubKey = types.QueuedPubKey{ + var queuedPubkey = types.QueuedPubkey{ Creator: msg.Creator, PublicKey: msg.PublicKey, Expiry: expHeight, @@ -55,9 +58,9 @@ func (k msgServer) CreateLatestPubKey(goCtx context.Context, msg *types.MsgCreat commitments, ) - k.SetQueuedPubKey( + k.SetQueuedPubkey( ctx, - queuedPubKey, + queuedPubkey, ) k.pepKeeper.SetQueuedPubkey( @@ -70,17 +73,17 @@ func (k msgServer) CreateLatestPubKey(goCtx context.Context, msg *types.MsgCreat ) ctx.EventManager().EmitEvent( - sdk.NewEvent(types.QueuedPubKeyCreatedEventType, - sdk.NewAttribute(types.QueuedPubKeyCreatedEventActivePubkeyExpiryHeight, strconv.FormatUint(ak.Expiry, 10)), - sdk.NewAttribute(types.QueuedPubKeyCreatedEventExpiryHeight, strconv.FormatUint(expHeight, 10)), - sdk.NewAttribute(types.QueuedPubKeyCreatedEventCreator, msg.Creator), - sdk.NewAttribute(types.QueuedPubKeyCreatedEventPubkey, msg.PublicKey), - sdk.NewAttribute(types.QueuedPubKeyCreatedEventNumberOfValidators, strconv.FormatUint(msg.NumberOfValidators, 10)), - sdk.NewAttribute(types.QueuedPubKeyCreatedEventEncryptedShares, string(encryptedKeyShares)), + sdk.NewEvent(types.QueuedPubkeyCreatedEventType, + sdk.NewAttribute(types.QueuedPubkeyCreatedEventActivePubkeyExpiryHeight, strconv.FormatUint(ak.Expiry, 10)), + sdk.NewAttribute(types.QueuedPubkeyCreatedEventExpiryHeight, strconv.FormatUint(expHeight, 10)), + sdk.NewAttribute(types.QueuedPubkeyCreatedEventCreator, msg.Creator), + sdk.NewAttribute(types.QueuedPubkeyCreatedEventPubkey, msg.PublicKey), + sdk.NewAttribute(types.QueuedPubkeyCreatedEventNumberOfValidators, strconv.FormatUint(msg.NumberOfValidators, 10)), + sdk.NewAttribute(types.QueuedPubkeyCreatedEventEncryptedShares, string(encryptedKeyShares)), ), ) - return &types.MsgCreateLatestPubKeyResponse{}, nil + return &types.MsgCreateLatestPubkeyResponse{}, nil } func contains(s []string, e string) bool { diff --git a/x/keyshare/keeper/msg_create_pub_key_test.go b/x/keyshare/keeper/msg_create_pub_key_test.go index 23a7e544..3f4bc50b 100644 --- a/x/keyshare/keeper/msg_create_pub_key_test.go +++ b/x/keyshare/keeper/msg_create_pub_key_test.go @@ -17,7 +17,7 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func TestLatestPubKeyMsgServerCreate(t *testing.T) { +func TestLatestPubkeyMsgServerCreate(t *testing.T) { k, ctx, _, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) @@ -32,7 +32,7 @@ func TestLatestPubKeyMsgServerCreate(t *testing.T) { err = k.SetParams(wctx, params) require.NoError(t, err) - k.SetQueuedPubKey(wctx, types.QueuedPubKey{ + k.SetQueuedPubkey(wctx, types.QueuedPubkey{ PublicKey: out.MasterPublicKey, Creator: creator, Expiry: 123456, @@ -42,24 +42,24 @@ func TestLatestPubKeyMsgServerCreate(t *testing.T) { for _, tc := range []struct { desc string - request *types.MsgCreateLatestPubKey + request *types.MsgCreateLatestPubkey err error }{ { desc: "Unauthorized", - request: &types.MsgCreateLatestPubKey{Creator: "B"}, + request: &types.MsgCreateLatestPubkey{Creator: "B"}, err: types.ErrAddressNotTrusted, }, { desc: "QueuedKeyAlreadyExists", - request: &types.MsgCreateLatestPubKey{ + request: &types.MsgCreateLatestPubkey{ Creator: creator, }, err: types.ErrQueuedKeyAlreadyExists, }, { - desc: "SuccessCreatePubKey", - request: &types.MsgCreateLatestPubKey{ + desc: "SuccessCreatePubkey", + request: &types.MsgCreateLatestPubkey{ PublicKey: out.MasterPublicKey, Creator: creator, NumberOfValidators: 1, @@ -69,7 +69,7 @@ func TestLatestPubKeyMsgServerCreate(t *testing.T) { } { t.Run(tc.desc, func(t *testing.T) { - _, err := srv.CreateLatestPubKey(wctx, tc.request) + _, err := srv.CreateLatestPubkey(wctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) @@ -78,7 +78,7 @@ func TestLatestPubKeyMsgServerCreate(t *testing.T) { } if tc.desc == "QueuedKeyAlreadyExists" { - k.DeleteQueuedPubKey(wctx) + k.DeleteQueuedPubkey(wctx) } }) } diff --git a/x/keyshare/keeper/msg_override_pub_key.go b/x/keyshare/keeper/msg_override_pub_key.go index 75e82f28..63b3b25e 100644 --- a/x/keyshare/keeper/msg_override_pub_key.go +++ b/x/keyshare/keeper/msg_override_pub_key.go @@ -12,8 +12,11 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) -// OverrideLatestPubKey updates the public key -func (k msgServer) OverrideLatestPubKey(goCtx context.Context, msg *types.MsgOverrideLatestPubKey) (*types.MsgOverrideLatestPubKeyResponse, error) { +// OverrideLatestPubkey updates the public key +func (k msgServer) OverrideLatestPubkey( + goCtx context.Context, + msg *types.MsgOverrideLatestPubkey, +) (*types.MsgOverrideLatestPubkeyResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) params := k.GetParams(ctx) @@ -28,12 +31,12 @@ func (k msgServer) OverrideLatestPubKey(goCtx context.Context, msg *types.MsgOve expHeight := params.KeyExpiry + uint64(ctx.BlockHeight()) - if _, found := k.GetActivePubKey(ctx); found { - k.DeleteActivePubKey(ctx) + if _, found := k.GetActivePubkey(ctx); found { + k.DeleteActivePubkey(ctx) } - if _, found := k.GetQueuedPubKey(ctx); found { - k.DeleteQueuedPubKey(ctx) + if _, found := k.GetQueuedPubkey(ctx); found { + k.DeleteQueuedPubkey(ctx) } encryptedKeyShares, err := json.Marshal(msg.EncryptedKeyshares) @@ -59,9 +62,9 @@ func (k msgServer) OverrideLatestPubKey(goCtx context.Context, msg *types.MsgOve commitments, ) - k.SetActivePubKey( + k.SetActivePubkey( ctx, - types.ActivePubKey{ + types.ActivePubkey{ Creator: msg.Creator, PublicKey: msg.PublicKey, Expiry: expHeight, @@ -80,15 +83,15 @@ func (k msgServer) OverrideLatestPubKey(goCtx context.Context, msg *types.MsgOve ) ctx.EventManager().EmitEvent( - sdk.NewEvent(types.PubKeyOverrodeEventType, - sdk.NewAttribute(types.PubKeyOverrodeEventActivePubkeyExpiryHeight, strconv.FormatUint(expHeight, 10)), - sdk.NewAttribute(types.PubKeyOverrodeEventExpiryHeight, strconv.FormatUint(expHeight, 10)), - sdk.NewAttribute(types.PubKeyOverrodeEventCreator, msg.Creator), - sdk.NewAttribute(types.PubKeyOverrodeEventPubkey, msg.PublicKey), - sdk.NewAttribute(types.PubKeyOverrodeEventNumberOfValidators, strconv.FormatUint(msg.NumberOfValidators, 10)), - sdk.NewAttribute(types.PubKeyOverrodeEventEncryptedShares, string(encryptedKeyShares)), + sdk.NewEvent(types.PubkeyOverrodeEventType, + sdk.NewAttribute(types.PubkeyOverrodeEventActivePubkeyExpiryHeight, strconv.FormatUint(expHeight, 10)), + sdk.NewAttribute(types.PubkeyOverrodeEventExpiryHeight, strconv.FormatUint(expHeight, 10)), + sdk.NewAttribute(types.PubkeyOverrodeEventCreator, msg.Creator), + sdk.NewAttribute(types.PubkeyOverrodeEventPubkey, msg.PublicKey), + sdk.NewAttribute(types.PubkeyOverrodeEventNumberOfValidators, strconv.FormatUint(msg.NumberOfValidators, 10)), + sdk.NewAttribute(types.PubkeyOverrodeEventEncryptedShares, string(encryptedKeyShares)), ), ) - return &types.MsgOverrideLatestPubKeyResponse{}, nil + return &types.MsgOverrideLatestPubkeyResponse{}, nil } diff --git a/x/keyshare/keeper/msg_override_pub_key_test.go b/x/keyshare/keeper/msg_override_pub_key_test.go index 4bf8f9fe..479788ec 100644 --- a/x/keyshare/keeper/msg_override_pub_key_test.go +++ b/x/keyshare/keeper/msg_override_pub_key_test.go @@ -17,12 +17,12 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func TestOverrideLatestPubKeyMsgServer(t *testing.T) { +func TestOverrideLatestPubkeyMsgServer(t *testing.T) { k, ctx, _, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) - out, err := random.GeneratePubKeyAndShares(1) + out, err := random.GeneratePubkeyAndShares(1) require.NoError(t, err) creator := out.GeneratedShare[0].ValidatorAddress @@ -34,17 +34,17 @@ func TestOverrideLatestPubKeyMsgServer(t *testing.T) { for _, tc := range []struct { desc string - request *types.MsgOverrideLatestPubKey + request *types.MsgOverrideLatestPubkey err error }{ { desc: "Unauthorized", - request: &types.MsgOverrideLatestPubKey{Creator: "B"}, + request: &types.MsgOverrideLatestPubkey{Creator: "B"}, err: types.ErrAddressNotTrusted, }, { - desc: "SuccessOverridePubKey", - request: &types.MsgOverrideLatestPubKey{ + desc: "SuccessOverridePubkey", + request: &types.MsgOverrideLatestPubkey{ PublicKey: out.MasterPublicKey, Creator: creator, Commitments: out.Commitments, @@ -55,7 +55,7 @@ func TestOverrideLatestPubKeyMsgServer(t *testing.T) { } { t.Run(tc.desc, func(t *testing.T) { - _, err := srv.OverrideLatestPubKey(wctx, tc.request) + _, err := srv.OverrideLatestPubkey(wctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) @@ -64,7 +64,7 @@ func TestOverrideLatestPubKeyMsgServer(t *testing.T) { } if tc.desc == "QueuedKeyAlreadyExists" { - k.DeleteQueuedPubKey(wctx) + k.DeleteQueuedPubkey(wctx) } }) } diff --git a/x/keyshare/keeper/msg_send_key_share.go b/x/keyshare/keeper/msg_send_key_share.go index 5a8c7218..9360ee62 100644 --- a/x/keyshare/keeper/msg_send_key_share.go +++ b/x/keyshare/keeper/msg_send_key_share.go @@ -132,16 +132,16 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar } // Get the active public key for aggregating - activePubKey, found := k.GetActivePubKey(ctx) + activePubkey, found := k.GetActivePubkey(ctx) if !found { - return nil, types.ErrPubKeyNotFound + return nil, types.ErrPubkeyNotFound } expectedThreshold := math.LegacyNewDecFromInt( math.NewInt(types.KeyAggregationThresholdNumerator)).Quo( math.LegacyNewDecFromInt(math.NewInt(types.KeyAggregationThresholdDenominator))).MulInt64( - int64(activePubKey.NumberOfValidators)).Ceil().TruncateInt64() + int64(activePubkey.NumberOfValidators)).Ceil().TruncateInt64() // Emit KeyShare Submitted Event ctx.EventManager().EmitEvent( @@ -219,7 +219,7 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar sdk.NewEvent(types.KeyShareAggregatedEventType, sdk.NewAttribute(types.KeyShareAggregatedEventBlockHeight, strconv.FormatUint(msg.BlockHeight, 10)), sdk.NewAttribute(types.KeyShareAggregatedEventData, skHex), - sdk.NewAttribute(types.KeyShareAggregatedEventPubKey, activePubKey.PublicKey), + sdk.NewAttribute(types.KeyShareAggregatedEventPubkey, activePubkey.PublicKey), ), ) diff --git a/x/keyshare/keeper/msg_submit_encrypted_keyshare.go b/x/keyshare/keeper/msg_submit_encrypted_keyshare.go index 0257983f..cdee4596 100644 --- a/x/keyshare/keeper/msg_submit_encrypted_keyshare.go +++ b/x/keyshare/keeper/msg_submit_encrypted_keyshare.go @@ -78,16 +78,16 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg } // Get the active public key for aggregating - activePubKey, found := k.GetActivePubKey(ctx) + activePubkey, found := k.GetActivePubkey(ctx) if !found { - return nil, types.ErrPubKeyNotFound + return nil, types.ErrPubkeyNotFound } expectedThreshold := math.LegacyNewDecFromInt( math.NewInt(types.KeyAggregationThresholdNumerator)).Quo( math.LegacyNewDecFromInt(math.NewInt(types.KeyAggregationThresholdDenominator))).MulInt64( - int64(activePubKey.NumberOfValidators)).Ceil().TruncateInt64() + int64(activePubkey.NumberOfValidators)).Ceil().TruncateInt64() // Emit KeyShare Submitted Event ctx.EventManager().EmitEvent( diff --git a/x/keyshare/keeper/process_queues.go b/x/keyshare/keeper/process_queues.go index 4e1f6d3b..154d03f3 100644 --- a/x/keyshare/keeper/process_queues.go +++ b/x/keyshare/keeper/process_queues.go @@ -13,7 +13,7 @@ import ( ) func (k Keeper) ProcessPepRequestQueue(ctx sdk.Context) error { - activePubKey, found := k.GetActivePubKey(ctx) + activePubkey, found := k.GetActivePubkey(ctx) if !found { return errors.New("active public key not found") } @@ -30,19 +30,19 @@ func (k Keeper) ProcessPepRequestQueue(ctx sdk.Context) error { blockDelay := uint64(math.Ceil(delay.Seconds() / types.AvgBlockTime)) currentHeight := uint64(ctx.BlockHeight()) executionHeight := currentHeight + blockDelay - if executionHeight > activePubKey.Expiry { - queuedPubKey, found := k.GetQueuedPubKey(ctx) + if executionHeight > activePubkey.Expiry { + queuedPubkey, found := k.GetQueuedPubkey(ctx) if !found { k.Logger().Info("[ProcessPepRequestQueue] Queued Pub Key not found") k.pepKeeper.RemoveReqQueueEntry(ctx, req.GetRequestId()) continue } - if executionHeight > queuedPubKey.Expiry { + if executionHeight > queuedPubkey.Expiry { k.Logger().Info("[ProcessPepRequestQueue] Estimated delay too long") k.pepKeeper.RemoveReqQueueEntry(ctx, req.GetRequestId()) continue } - activePubKey = types.ActivePubKey(queuedPubKey) + activePubkey = types.ActivePubkey(queuedPubkey) } id := req.GetRequestId() @@ -50,7 +50,7 @@ func (k Keeper) ProcessPepRequestQueue(ctx sdk.Context) error { var keyshareRequest types.DecryptionKeyRequest keyshareRequest.Identity = id - keyshareRequest.Pubkey = activePubKey.PublicKey + keyshareRequest.Pubkey = activePubkey.PublicKey keyshareRequest.DecryptionKey = "" keyshareRequest.RequestId = req.GetRequestId() @@ -80,9 +80,9 @@ func (k Keeper) ProcessPepSignalQueue(ctx sdk.Context) error { k.pepKeeper.RemoveSignalQueueEntry(ctx, req.GetRequestId()) continue } - key, _ := k.GetActivePubKey(ctx) + key, _ := k.GetActivePubkey(ctx) if keyshareReq.Pubkey != key.PublicKey { - qKey, found := k.GetQueuedPubKey(ctx) + qKey, found := k.GetQueuedPubkey(ctx) if !found { k.pepKeeper.RemoveSignalQueueEntry(ctx, req.GetRequestId()) continue @@ -108,7 +108,7 @@ func (k Keeper) ProcessPepSignalQueue(ctx sdk.Context) error { } func (k Keeper) ProcessPrivateRequestQueue(ctx sdk.Context) error { - activePubKey, found := k.GetActivePubKey(ctx) + activePubkey, found := k.GetActivePubkey(ctx) if !found { return errors.New("active public key not found") } @@ -121,7 +121,7 @@ func (k Keeper) ProcessPrivateRequestQueue(ctx sdk.Context) error { var keyshareRequest types.PrivateDecryptionKeyRequest keyshareRequest.Identity = id - keyshareRequest.Pubkey = activePubKey.PublicKey + keyshareRequest.Pubkey = activePubkey.PublicKey keyshareRequest.PrivateDecryptionKeys = make([]*common.PrivateDecryptionKey, 0) keyshareRequest.RequestId = req.GetRequestId() @@ -132,7 +132,7 @@ func (k Keeper) ProcessPrivateRequestQueue(ctx sdk.Context) error { if !found { return errors.New("entry not found in pep module") } - entry.Pubkey = activePubKey.PublicKey + entry.Pubkey = activePubkey.PublicKey k.pepKeeper.SetPrivateRequest(ctx, entry) k.pepKeeper.RemovePrivateReqQueueEntry(ctx, req.GetRequestId()) @@ -144,7 +144,7 @@ func (k Keeper) ProcessPrivateSignalQueue(ctx sdk.Context) error { reqs := k.pepKeeper.GetAllPrivateSignalQueueEntry(ctx) k.Logger().Info(fmt.Sprintf("PROCESSING PEP SIGNAL QUEUE: %v", reqs)) - activePubKey, found := k.GetActivePubKey(ctx) + activePubkey, found := k.GetActivePubkey(ctx) if !found { return errors.New("active public key not found") } @@ -156,7 +156,7 @@ func (k Keeper) ProcessPrivateSignalQueue(ctx sdk.Context) error { var keyshareRequest types.PrivateDecryptionKeyRequest keyshareRequest.Identity = req.Identity - keyshareRequest.Pubkey = activePubKey.PublicKey + keyshareRequest.Pubkey = activePubkey.PublicKey keyshareRequest.PrivateDecryptionKeys = make([]*common.PrivateDecryptionKey, 0) keyshareRequest.RequestId = req.GetRequestId() @@ -167,7 +167,7 @@ func (k Keeper) ProcessPrivateSignalQueue(ctx sdk.Context) error { if !found { return errors.New("entry not found in pep module") } - entry.Pubkey = activePubKey.PublicKey + entry.Pubkey = activePubkey.PublicKey k.pepKeeper.SetPrivateRequest(ctx, entry) @@ -189,7 +189,7 @@ func (k Keeper) ProcessPrivateSignalQueue(ctx sdk.Context) error { } func (k Keeper) ProcessGovRequestQueue(ctx sdk.Context) error { - activePubKey, found := k.GetActivePubKey(ctx) + activePubkey, found := k.GetActivePubkey(ctx) if !found { return errors.New("active public key not found") } @@ -202,17 +202,17 @@ func (k Keeper) ProcessGovRequestQueue(ctx sdk.Context) error { currentHeight := uint64(ctx.BlockHeight()) executionHeight := currentHeight + blockDelay - if executionHeight > activePubKey.Expiry { - queuedPubKey, found := k.GetQueuedPubKey(ctx) + if executionHeight > activePubkey.Expiry { + queuedPubkey, found := k.GetQueuedPubkey(ctx) if !found { k.govKeeper.RemoveReqQueueEntry(ctx, req.GetProposalId()) return errors.New("estimated delay too long") } - if executionHeight > queuedPubKey.Expiry { + if executionHeight > queuedPubkey.Expiry { k.govKeeper.RemoveReqQueueEntry(ctx, req.GetProposalId()) return errors.New("estimated delay too long") } - activePubKey = types.ActivePubKey(queuedPubKey) + activePubkey = types.ActivePubkey(queuedPubkey) } reqCountString := k.GetRequestCount(ctx) @@ -224,7 +224,7 @@ func (k Keeper) ProcessGovRequestQueue(ctx sdk.Context) error { var keyshareRequest types.DecryptionKeyRequest keyshareRequest.Identity = id - keyshareRequest.Pubkey = activePubKey.PublicKey + keyshareRequest.Pubkey = activePubkey.PublicKey keyshareRequest.DecryptionKey = "" keyshareRequest.ProposalId = req.GetProposalId() @@ -259,9 +259,9 @@ func (k Keeper) ProcessGovSignalQueue(ctx sdk.Context) error { continue } - key, _ := k.GetActivePubKey(ctx) + key, _ := k.GetActivePubkey(ctx) if keyshareReq.Pubkey != key.PublicKey { - qKey, found := k.GetQueuedPubKey(ctx) + qKey, found := k.GetQueuedPubkey(ctx) if !found { k.govKeeper.RemoveSignalQueueEntry(ctx, req.GetProposalId()) continue diff --git a/x/keyshare/keeper/pub_key.go b/x/keyshare/keeper/pub_key.go index 20d08164..845152d5 100644 --- a/x/keyshare/keeper/pub_key.go +++ b/x/keyshare/keeper/pub_key.go @@ -8,30 +8,30 @@ import ( "context" ) -// SetActivePubKey set a specific public key to active in the store -func (k Keeper) SetActivePubKey(ctx context.Context, activePubKey types.ActivePubKey) { +// SetActivePubkey set a specific public key to active in the store +func (k Keeper) SetActivePubkey(ctx context.Context, activePubkey types.ActivePubkey) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - b := k.cdc.MustMarshal(&activePubKey) - store.Set(types.KeyPrefix(types.ActivePubKeyPrefix), b) + b := k.cdc.MustMarshal(&activePubkey) + store.Set(types.KeyPrefix(types.ActivePubkeyPrefix), b) } -// SetQueuedPubKey set a specific public key in the store -func (k Keeper) SetQueuedPubKey(ctx context.Context, queuedPubKey types.QueuedPubKey) { +// SetQueuedPubkey set a specific public key in the store +func (k Keeper) SetQueuedPubkey(ctx context.Context, queuedPubkey types.QueuedPubkey) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - b := k.cdc.MustMarshal(&queuedPubKey) - store.Set(types.KeyPrefix(types.QueuedPubKeyPrefix), b) + b := k.cdc.MustMarshal(&queuedPubkey) + store.Set(types.KeyPrefix(types.QueuedPubkeyPrefix), b) } -// GetActivePubKey returns the Active public key -func (k Keeper) GetActivePubKey( +// GetActivePubkey returns the Active public key +func (k Keeper) GetActivePubkey( ctx context.Context, -) (val types.ActivePubKey, found bool) { +) (val types.ActivePubkey, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - b := store.Get(types.KeyPrefix(types.ActivePubKeyPrefix)) + b := store.Get(types.KeyPrefix(types.ActivePubkeyPrefix)) if b == nil { return val, false } @@ -41,14 +41,14 @@ func (k Keeper) GetActivePubKey( return val, true } -// GetQueuedPubKey returns the Queued public key -func (k Keeper) GetQueuedPubKey( +// GetQueuedPubkey returns the Queued public key +func (k Keeper) GetQueuedPubkey( ctx context.Context, -) (val types.QueuedPubKey, found bool) { +) (val types.QueuedPubkey, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - b := store.Get(types.KeyPrefix(types.QueuedPubKeyPrefix)) + b := store.Get(types.KeyPrefix(types.QueuedPubkeyPrefix)) if b == nil { return val, false } @@ -58,16 +58,16 @@ func (k Keeper) GetQueuedPubKey( return val, true } -// DeleteActivePubKey deletes the active public key in the store -func (k Keeper) DeleteActivePubKey(ctx context.Context) { +// DeleteActivePubkey deletes the active public key in the store +func (k Keeper) DeleteActivePubkey(ctx context.Context) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - store.Delete(types.KeyPrefix(types.ActivePubKeyPrefix)) + store.Delete(types.KeyPrefix(types.ActivePubkeyPrefix)) } -// DeleteQueuedPubKey deletes the queued public key in the store -func (k Keeper) DeleteQueuedPubKey(ctx context.Context) { +// DeleteQueuedPubkey deletes the queued public key in the store +func (k Keeper) DeleteQueuedPubkey(ctx context.Context) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - store.Delete(types.KeyPrefix(types.QueuedPubKeyPrefix)) + store.Delete(types.KeyPrefix(types.QueuedPubkeyPrefix)) } diff --git a/x/keyshare/keeper/pub_key_test.go b/x/keyshare/keeper/pub_key_test.go index 6de56c81..6e5f696e 100644 --- a/x/keyshare/keeper/pub_key_test.go +++ b/x/keyshare/keeper/pub_key_test.go @@ -1,10 +1,11 @@ package keeper_test import ( - "github.com/Fairblock/fairyring/testutil/random" "math/rand" "testing" + "github.com/Fairblock/fairyring/testutil/random" + keepertest "github.com/Fairblock/fairyring/testutil/keeper" "github.com/Fairblock/fairyring/testutil/nullify" "github.com/Fairblock/fairyring/x/keyshare/keeper" @@ -13,28 +14,28 @@ import ( "github.com/stretchr/testify/require" ) -func createActivePubKeys(keeper *keeper.Keeper, ctx sdk.Context) types.ActivePubKey { - var items types.ActivePubKey +func createActivePubkeys(keeper *keeper.Keeper, ctx sdk.Context) types.ActivePubkey { + var items types.ActivePubkey items.PublicKey = random.RandHex(10) items.Expiry = rand.Uint64() items.NumberOfValidators = rand.Uint64() - keeper.SetActivePubKey(ctx, items) + keeper.SetActivePubkey(ctx, items) return items } -func createQueuedPubKeys(keeper *keeper.Keeper, ctx sdk.Context) types.QueuedPubKey { - var items types.QueuedPubKey +func createQueuedPubkeys(keeper *keeper.Keeper, ctx sdk.Context) types.QueuedPubkey { + var items types.QueuedPubkey items.PublicKey = random.RandHex(10) items.Expiry = rand.Uint64() items.NumberOfValidators = rand.Uint64() - keeper.SetQueuedPubKey(ctx, items) + keeper.SetQueuedPubkey(ctx, items) return items } -func TestActivePubKeyGet(t *testing.T) { +func TestActivePubkeyGet(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) - item := createActivePubKeys(&keeper, ctx) - rst, found := keeper.GetActivePubKey(ctx) + item := createActivePubkeys(&keeper, ctx) + rst, found := keeper.GetActivePubkey(ctx) require.True(t, found) require.Equal(t, nullify.Fill(&item), @@ -42,10 +43,10 @@ func TestActivePubKeyGet(t *testing.T) { ) } -func TestQueuedPubKeyGet(t *testing.T) { +func TestQueuedPubkeyGet(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) - item := createQueuedPubKeys(&keeper, ctx) - rst, found := keeper.GetQueuedPubKey(ctx) + item := createQueuedPubkeys(&keeper, ctx) + rst, found := keeper.GetQueuedPubkey(ctx) require.True(t, found) require.Equal(t, nullify.Fill(&item), @@ -53,18 +54,18 @@ func TestQueuedPubKeyGet(t *testing.T) { ) } -func TestActivePubKeyRemoved(t *testing.T) { +func TestActivePubkeyRemoved(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) - createActivePubKeys(&keeper, ctx) - keeper.DeleteActivePubKey(ctx) - _, found := keeper.GetActivePubKey(ctx) + createActivePubkeys(&keeper, ctx) + keeper.DeleteActivePubkey(ctx) + _, found := keeper.GetActivePubkey(ctx) require.False(t, found) } -func TestQueuedPubKeyRemoved(t *testing.T) { +func TestQueuedPubkeyRemoved(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) - createQueuedPubKeys(&keeper, ctx) - keeper.DeleteQueuedPubKey(ctx) - _, found := keeper.GetQueuedPubKey(ctx) + createQueuedPubkeys(&keeper, ctx) + keeper.DeleteQueuedPubkey(ctx) + _, found := keeper.GetQueuedPubkey(ctx) require.False(t, found) } diff --git a/x/keyshare/keeper/query_pub_key.go b/x/keyshare/keeper/query_pub_key.go index 98a43835..6f9fa4a0 100644 --- a/x/keyshare/keeper/query_pub_key.go +++ b/x/keyshare/keeper/query_pub_key.go @@ -12,7 +12,7 @@ import ( "google.golang.org/grpc/status" ) -// PubKey returns the lates public keys +// Pubkey returns the lates public keys func (k Keeper) Pubkey(goCtx context.Context, req *types.QueryPubkeyRequest) (*types.QueryPubkeyResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) @@ -20,21 +20,21 @@ func (k Keeper) Pubkey(goCtx context.Context, req *types.QueryPubkeyRequest) (*t return nil, status.Error(codes.InvalidArgument, "invalid request") } - var activePubKey types.ActivePubKey - var queuedPubKey types.QueuedPubKey + var activePubkey types.ActivePubkey + var queuedPubkey types.QueuedPubkey storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - b := store.Get(types.KeyPrefix(types.ActivePubKeyPrefix)) + b := store.Get(types.KeyPrefix(types.ActivePubkeyPrefix)) if b == nil { return nil, status.Error(codes.Internal, "Active Public Key does not exists") } - k.cdc.MustUnmarshal(b, &activePubKey) + k.cdc.MustUnmarshal(b, &activePubkey) - b = store.Get(types.KeyPrefix(types.QueuedPubKeyPrefix)) + b = store.Get(types.KeyPrefix(types.QueuedPubkeyPrefix)) if b != nil { - k.cdc.MustUnmarshal(b, &queuedPubKey) + k.cdc.MustUnmarshal(b, &queuedPubkey) } - return &types.QueryPubkeyResponse{ActivePubkey: activePubKey, QueuedPubkey: queuedPubKey}, nil + return &types.QueryPubkeyResponse{ActivePubkey: activePubkey, QueuedPubkey: queuedPubkey}, nil } diff --git a/x/keyshare/keeper/query_pub_key_test.go b/x/keyshare/keeper/query_pub_key_test.go index 37892a66..68c18e2c 100644 --- a/x/keyshare/keeper/query_pub_key_test.go +++ b/x/keyshare/keeper/query_pub_key_test.go @@ -12,11 +12,11 @@ import ( "google.golang.org/grpc/status" ) -func TestPubKeyQuery(t *testing.T) { +func TestPubkeyQuery(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) - activePubKey := createActivePubKeys(&keeper, wctx) - queuedPubKey := createQueuedPubKeys(&keeper, wctx) + activePubkey := createActivePubkeys(&keeper, wctx) + queuedPubkey := createQueuedPubkeys(&keeper, wctx) for _, tc := range []struct { desc string request *types.QueryPubkeyRequest @@ -24,11 +24,11 @@ func TestPubKeyQuery(t *testing.T) { err error }{ { - desc: "QueryPubKey", + desc: "QueryPubkey", request: &types.QueryPubkeyRequest{}, response: &types.QueryPubkeyResponse{ - ActivePubkey: activePubKey, - QueuedPubkey: queuedPubKey, + ActivePubkey: activePubkey, + QueuedPubkey: queuedPubkey, }, }, { @@ -37,7 +37,7 @@ func TestPubKeyQuery(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - response, err := keeper.PubKey(wctx, tc.request) + response, err := keeper.Pubkey(wctx, tc.request) if tc.err != nil { require.ErrorIs(t, err, tc.err) } else { diff --git a/x/keyshare/keeper/request_decryption_key.go b/x/keyshare/keeper/request_decryption_key.go index 1a2dd3b3..2f0030bf 100644 --- a/x/keyshare/keeper/request_decryption_key.go +++ b/x/keyshare/keeper/request_decryption_key.go @@ -45,7 +45,7 @@ func (k Keeper) OnRecvRequestDecryptionKeyPacket( return packetAck, err } - activePubKey, found := k.GetActivePubKey(ctx) + activePubkey, found := k.GetActivePubkey(ctx) if !found { return packetAck, err } @@ -54,15 +54,15 @@ func (k Keeper) OnRecvRequestDecryptionKeyPacket( blockDelay := uint64(math.Ceil(delay.Seconds() / types.AvgBlockTime)) currentHeight := uint64(ctx.BlockHeight()) executionHeight := currentHeight + blockDelay - if executionHeight > activePubKey.Expiry { - queuedPubKey, found := k.GetQueuedPubKey(ctx) + if executionHeight > activePubkey.Expiry { + queuedPubkey, found := k.GetQueuedPubkey(ctx) if !found { return packetAck, errors.New("estimated delay too long") } - if executionHeight > queuedPubKey.Expiry { + if executionHeight > queuedPubkey.Expiry { return packetAck, errors.New("estimated delay too long") } - activePubKey = types.ActivePubKey(queuedPubKey) + activePubkey = types.ActivePubkey(queuedPubkey) } var isProposalID bool @@ -78,7 +78,7 @@ func (k Keeper) OnRecvRequestDecryptionKeyPacket( var keyshareRequest types.DecryptionKeyRequest keyshareRequest.Identity = id - keyshareRequest.Pubkey = activePubKey.PublicKey + keyshareRequest.Pubkey = activePubkey.PublicKey keyshareRequest.IbcInfo = &types.IBCInfo{ ChannelId: packet.DestinationChannel, PortId: packet.DestinationPort, @@ -101,7 +101,7 @@ func (k Keeper) OnRecvRequestDecryptionKeyPacket( k.SetKeyShareRequest(ctx, keyshareRequest) packetAck.Identity = id - packetAck.Pubkey = activePubKey.PublicKey + packetAck.Pubkey = activePubkey.PublicKey return packetAck, nil } @@ -127,7 +127,7 @@ func (k Keeper) OnRecvRequestPrivateDecryptionKeyPacket( return packetAck, err } - activePubKey, found := k.GetActivePubKey(ctx) + activePubkey, found := k.GetActivePubkey(ctx) if !found { return packetAck, err } @@ -137,7 +137,7 @@ func (k Keeper) OnRecvRequestPrivateDecryptionKeyPacket( var keyshareRequest types.PrivateDecryptionKeyRequest keyshareRequest.Identity = id - keyshareRequest.Pubkey = activePubKey.PublicKey + keyshareRequest.Pubkey = activePubkey.PublicKey keyshareRequest.IbcInfo = &types.IBCInfo{ ChannelId: packet.DestinationChannel, PortId: packet.DestinationPort, @@ -155,13 +155,13 @@ func (k Keeper) OnRecvRequestPrivateDecryptionKeyPacket( k.SetPrivateKeyShareRequest(ctx, keyshareRequest) packetAck.Identity = id - packetAck.Pubkey = activePubKey.PublicKey + packetAck.Pubkey = activePubkey.PublicKey return packetAck, nil } // OnTimeoutRequestAggrKeysharePacket responds to the case where a packet has not been transmitted because of a timeout -func (k Keeper) OnTimeoutRequestPrivateKeysharePacket(ctx sdk.Context, packet channeltypes.Packet, data types.RequestPrivateDecryptionKeyPacketData) error { +func (k Keeper) OnTimeoutRequestPrivateDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, data types.RequestPrivateDecryptionKeyPacketData) error { // Implement custom packet timeout logic // (Not required for fairyring since this packet is never sent from fairyring) diff --git a/x/keyshare/module/genesis.go b/x/keyshare/module/genesis.go index 17c43cc7..2195d683 100644 --- a/x/keyshare/module/genesis.go +++ b/x/keyshare/module/genesis.go @@ -24,9 +24,9 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) k.SetAggregatedKeyShare(ctx, elem) } // Set actuve public key - k.SetActivePubKey(ctx, genState.ActivePubKey) + k.SetActivePubkey(ctx, genState.ActivePubkey) // Set queued public key - k.SetQueuedPubKey(ctx, genState.QueuedPubKey) + k.SetQueuedPubkey(ctx, genState.QueuedPubkey) // Set all the authorizedAddress for _, elem := range genState.AuthorizedAddressList { @@ -66,13 +66,13 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { genesis.KeyshareList = k.GetAllKeyShare(ctx) genesis.DecryptionKeyList = k.GetAllAggregatedKeyShare(ctx) - akey, found := k.GetActivePubKey(ctx) + akey, found := k.GetActivePubkey(ctx) if found { - genesis.ActivePubKey = akey + genesis.ActivePubkey = akey } - qkey, found := k.GetQueuedPubKey(ctx) + qkey, found := k.GetQueuedPubkey(ctx) if found { - genesis.QueuedPubKey = qkey + genesis.QueuedPubkey = qkey } genesis.AuthorizedAddressList = k.GetAllAuthorizedAddress(ctx) diff --git a/x/keyshare/module/module.go b/x/keyshare/module/module.go index cd41764b..916ced6d 100644 --- a/x/keyshare/module/module.go +++ b/x/keyshare/module/module.go @@ -200,8 +200,8 @@ func (am AppModule) BeginBlock(cctx context.Context) error { height := uint64(ctx.BlockHeight()) - ak, foundAk := am.keeper.GetActivePubKey(ctx) - qk, foundQk := am.keeper.GetQueuedPubKey(ctx) + ak, foundAk := am.keeper.GetActivePubkey(ctx) + qk, foundQk := am.keeper.GetQueuedPubkey(ctx) qc, foundQc := am.keeper.GetQueuedCommitments(ctx) if foundAk { @@ -212,7 +212,7 @@ func (am AppModule) BeginBlock(cctx context.Context) error { }) if ak.Expiry <= height { - am.keeper.DeleteActivePubKey(ctx) + am.keeper.DeleteActivePubkey(ctx) am.pepKeeper.DeleteActivePubkey(ctx) am.keeper.DeleteActiveCommitments(ctx) } else { @@ -229,7 +229,7 @@ func (am AppModule) BeginBlock(cctx context.Context) error { if foundQk { if qk.Expiry > height { - am.keeper.SetActivePubKey(ctx, types.ActivePubKey(qk)) + am.keeper.SetActivePubkey(ctx, types.ActivePubkey(qk)) am.pepKeeper.SetActivePubkey(ctx, commontypes.ActivePublicKey{ PublicKey: qk.PublicKey, Creator: qk.Creator, @@ -239,7 +239,7 @@ func (am AppModule) BeginBlock(cctx context.Context) error { am.keeper.SetActiveCommitments(ctx, qc) } } - am.keeper.DeleteQueuedPubKey(ctx) + am.keeper.DeleteQueuedPubkey(ctx) am.pepKeeper.DeleteQueuedPubkey(ctx) if foundQc { am.keeper.DeleteQueuedCommitments(ctx) @@ -279,7 +279,7 @@ func (am AppModule) EndBlock(cctx context.Context) error { continue } - if val, found := am.keeper.GetActivePubKey(ctx); !found || len(val.PublicKey) == 0 { + if val, found := am.keeper.GetActivePubkey(ctx); !found || len(val.PublicKey) == 0 { // Not slashing validator if there is no active public key am.keeper.SetLastSubmittedHeight(ctx, eachValidator.Validator, strconv.FormatInt(ctx.BlockHeight(), 10)) continue diff --git a/x/keyshare/types/codec.go b/x/keyshare/types/codec.go index f911ac81..b552c351 100644 --- a/x/keyshare/types/codec.go +++ b/x/keyshare/types/codec.go @@ -20,7 +20,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgSendKeyshare{}, ) registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgCreateLatestPubKey{}, + &MsgCreateLatestPubkey{}, ) registry.RegisterImplementations((*sdk.Msg)(nil), &MsgCreateAuthorizedAddress{}, @@ -31,7 +31,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgSubmitGeneralKeyshare{}, ) registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgOverrideLatestPubKey{}, + &MsgOverrideLatestPubkey{}, ) registry.RegisterImplementations((*sdk.Msg)(nil), &MsgDeRegisterValidator{}, diff --git a/x/keyshare/types/errors.go b/x/keyshare/types/errors.go index f2913549..8ffc20a0 100644 --- a/x/keyshare/types/errors.go +++ b/x/keyshare/types/errors.go @@ -18,7 +18,7 @@ var ( ErrUnmarshallingCommitment = sdkerrors.Register(ModuleName, 1107, "error unmarhsalling commitment") ErrUnableToVerifyShare = sdkerrors.Register(ModuleName, 1108, "unable to verify share") ErrInvalidShare = sdkerrors.Register(ModuleName, 1109, "invalid share / commitment") - ErrPubKeyNotFound = sdkerrors.Register(ModuleName, 1110, "Public key does not exists now") + ErrPubkeyNotFound = sdkerrors.Register(ModuleName, 1110, "Public key does not exists now") ErrQueuedKeyAlreadyExists = sdkerrors.Register(ModuleName, 1111, "a queued key already exists") ErrAccountNotStaking = sdkerrors.Register(ModuleName, 1112, "account is not staking") ErrAddressNotTrusted = sdkerrors.Register(ModuleName, 1113, "address is not trusted") @@ -27,8 +27,8 @@ var ( ErrCommitmentsNotFound = sdkerrors.Register(ModuleName, 1116, "commitments not found") ErrInvalidKeyShareIndex = sdkerrors.Register(ModuleName, 1117, "invalid KeyShare index") ErrInvalidKeyShareLength = sdkerrors.Register(ModuleName, 1118, "invalid KeyShare length") - ErrInvalidPubKeyLength = sdkerrors.Register(ModuleName, 1119, "invalid PubKey length") - ErrInvalidPubKey = sdkerrors.Register(ModuleName, 1120, "invalid PubKey") + ErrInvalidPubkeyLength = sdkerrors.Register(ModuleName, 1119, "invalid Pubkey length") + ErrInvalidPubkey = sdkerrors.Register(ModuleName, 1120, "invalid Pubkey") ErrInvalidCommitment = sdkerrors.Register(ModuleName, 1121, "invalid commitment") ErrInvalidCommitmentLength = sdkerrors.Register(ModuleName, 1122, "invalid commitment length") ErrInvalidVersion = sdkerrors.Register(ModuleName, 1123, "invalid version") diff --git a/x/keyshare/types/expected_keepers.go b/x/keyshare/types/expected_keepers.go index 41e81121..6e1d99dc 100644 --- a/x/keyshare/types/expected_keepers.go +++ b/x/keyshare/types/expected_keepers.go @@ -58,8 +58,8 @@ type GovKeeper interface { // PepKeeper defines the expected interface needed to get and set active and queued public keys type PepKeeper interface { - SetActivePubkey(ctx context.Context, activePubKey commontypes.ActivePublicKey) - SetQueuedPubkey(ctx context.Context, queuedPubKey commontypes.QueuedPublicKey) + SetActivePubkey(ctx context.Context, activePubkey commontypes.ActivePublicKey) + SetQueuedPubkey(ctx context.Context, queuedPubkey commontypes.QueuedPublicKey) GetActivePubkey(ctx context.Context) (val commontypes.ActivePublicKey, found bool) GetQueuedPubkey(ctx context.Context) (val commontypes.QueuedPublicKey, found bool) DeleteActivePubkey(ctx context.Context) diff --git a/x/keyshare/types/genesis.pb.go b/x/keyshare/types/genesis.pb.go index 47334e51..18f52147 100644 --- a/x/keyshare/types/genesis.pb.go +++ b/x/keyshare/types/genesis.pb.go @@ -32,8 +32,8 @@ type GenesisState struct { ValidatorSetList []ValidatorSet `protobuf:"bytes,3,rep,name=validator_set_list,json=validatorSetList,proto3" json:"validator_set_list"` KeyshareList []Keyshare `protobuf:"bytes,4,rep,name=keyshare_list,json=keyshareList,proto3" json:"keyshare_list"` DecryptionKeyList []DecryptionKey `protobuf:"bytes,5,rep,name=decryption_key_list,json=decryptionKeyList,proto3" json:"decryption_key_list"` - ActivePubKey ActivePubKey `protobuf:"bytes,6,opt,name=active_pub_key,json=activePubKey,proto3" json:"active_pub_key"` - QueuedPubKey QueuedPubKey `protobuf:"bytes,7,opt,name=queued_pub_key,json=queuedPubKey,proto3" json:"queued_pub_key"` + ActivePubkey ActivePubkey `protobuf:"bytes,6,opt,name=active_pubkey,json=activePubkey,proto3" json:"active_pubkey"` + QueuedPubkey QueuedPubkey `protobuf:"bytes,7,opt,name=queued_pubkey,json=queuedPubkey,proto3" json:"queued_pubkey"` AuthorizedAddressList []AuthorizedAddress `protobuf:"bytes,8,rep,name=authorized_address_list,json=authorizedAddressList,proto3" json:"authorized_address_list"` RequestCount uint64 `protobuf:"varint,9,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"` GeneralKeyshareList []GeneralKeyshare `protobuf:"bytes,10,rep,name=general_keyshare_list,json=generalKeyshareList,proto3" json:"general_keyshare_list"` @@ -107,18 +107,18 @@ func (m *GenesisState) GetDecryptionKeyList() []DecryptionKey { return nil } -func (m *GenesisState) GetActivePubKey() ActivePubKey { +func (m *GenesisState) GetActivePubkey() ActivePubkey { if m != nil { - return m.ActivePubKey + return m.ActivePubkey } - return ActivePubKey{} + return ActivePubkey{} } -func (m *GenesisState) GetQueuedPubKey() QueuedPubKey { +func (m *GenesisState) GetQueuedPubkey() QueuedPubkey { if m != nil { - return m.QueuedPubKey + return m.QueuedPubkey } - return QueuedPubKey{} + return QueuedPubkey{} } func (m *GenesisState) GetAuthorizedAddressList() []AuthorizedAddress { @@ -149,40 +149,40 @@ func init() { func init() { proto.RegisterFile("fairyring/keyshare/genesis.proto", fileDescriptor_6629804056e1ba8d) } var fileDescriptor_6629804056e1ba8d = []byte{ - // 527 bytes of a gzipped FileDescriptorProto + // 524 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0xc1, 0x6e, 0xd3, 0x30, - 0x18, 0xc7, 0x1b, 0xd6, 0x75, 0xd4, 0xeb, 0x10, 0xcb, 0x98, 0x16, 0x55, 0x28, 0xcb, 0x98, 0x80, - 0x0a, 0xa4, 0x44, 0x1a, 0x67, 0x0e, 0x2b, 0x88, 0x6a, 0xda, 0x0e, 0xa3, 0x43, 0x20, 0x21, 0xa1, - 0xc8, 0x49, 0x4c, 0x6a, 0xb5, 0x8d, 0x53, 0xdb, 0xa9, 0x08, 0x4f, 0xc1, 0x63, 0x70, 0xe4, 0x31, - 0x76, 0xdc, 0x91, 0x13, 0x42, 0xed, 0x81, 0xd7, 0x40, 0xb1, 0x9d, 0xb6, 0x59, 0x0d, 0x97, 0xca, - 0xfd, 0xfb, 0xf7, 0xfd, 0xfc, 0xd9, 0x8e, 0x81, 0xf3, 0x19, 0x62, 0x9a, 0x53, 0x9c, 0xc4, 0xde, - 0x10, 0xe5, 0x6c, 0x00, 0x29, 0xf2, 0x62, 0x94, 0x20, 0x86, 0x99, 0x9b, 0x52, 0xc2, 0x89, 0x69, - 0x2e, 0x08, 0xb7, 0x24, 0xda, 0xbb, 0x70, 0x8c, 0x13, 0xe2, 0x89, 0x5f, 0x89, 0xb5, 0x9f, 0x6b, - 0x44, 0x30, 0xe3, 0x03, 0x42, 0xf1, 0x57, 0x14, 0xf9, 0x30, 0x8a, 0x28, 0x62, 0xca, 0xd9, 0x7e, - 0xaa, 0x81, 0x23, 0x14, 0xd2, 0x3c, 0xe5, 0x98, 0x24, 0xfe, 0x10, 0xe5, 0x0a, 0x3c, 0xd2, 0x80, - 0xe5, 0x40, 0x21, 0x87, 0x1a, 0x24, 0x85, 0x14, 0x8e, 0xd9, 0xff, 0x80, 0x2c, 0x58, 0x2e, 0xf2, - 0x44, 0x03, 0x4c, 0xe1, 0x08, 0x47, 0x90, 0x13, 0xea, 0x33, 0xc4, 0x15, 0xf7, 0x20, 0x26, 0x31, - 0x11, 0x43, 0xaf, 0x18, 0xc9, 0xf4, 0xd1, 0x7c, 0x13, 0xb4, 0x7a, 0xf2, 0xc4, 0xae, 0x38, 0xe4, - 0xc8, 0x7c, 0x09, 0x1a, 0x72, 0x7d, 0xcb, 0x70, 0x8c, 0xce, 0xf6, 0x49, 0xdb, 0x5d, 0x3f, 0x41, - 0xf7, 0x52, 0x10, 0xdd, 0xe6, 0xf5, 0xaf, 0xc3, 0xda, 0xf7, 0x3f, 0x3f, 0x9e, 0x19, 0x7d, 0x55, - 0x64, 0x1e, 0x80, 0xad, 0x94, 0x50, 0xee, 0xe3, 0xc8, 0xba, 0xe3, 0x18, 0x9d, 0x66, 0xbf, 0x51, - 0xfc, 0x3d, 0x8b, 0xcc, 0x77, 0xc0, 0xac, 0x74, 0xe5, 0x8f, 0x30, 0xe3, 0xd6, 0x86, 0xb3, 0xd1, - 0xd9, 0x3e, 0x71, 0x74, 0x6b, 0xbc, 0x2f, 0xe9, 0x2b, 0xc4, 0xbb, 0xf5, 0x62, 0xa5, 0xfe, 0xfd, - 0xe9, 0x4a, 0x76, 0x81, 0x19, 0x37, 0x7b, 0x60, 0xa7, 0x2c, 0x90, 0xc2, 0xba, 0x10, 0x3e, 0xd4, - 0x09, 0xcf, 0xd5, 0x40, 0xc9, 0x5a, 0xe5, 0x84, 0x10, 0x7d, 0x00, 0x7b, 0xd5, 0x2b, 0x94, 0xba, - 0x4d, 0xa1, 0x3b, 0xd2, 0xe9, 0x5e, 0x2f, 0xf0, 0x73, 0x94, 0x2b, 0xe7, 0x6e, 0xb4, 0x1a, 0x0a, - 0xf1, 0x05, 0xb8, 0x07, 0x43, 0x8e, 0xa7, 0xc8, 0x4f, 0xb3, 0xa0, 0x10, 0x5b, 0x0d, 0x71, 0xae, - 0xda, 0x3d, 0x9f, 0x0a, 0xf2, 0x32, 0x0b, 0x96, 0xca, 0x16, 0x5c, 0xc9, 0x0a, 0xdb, 0x24, 0x43, - 0x19, 0x8a, 0x16, 0xb6, 0xad, 0x7f, 0xdb, 0xde, 0x0a, 0xb2, 0x6a, 0x9b, 0xac, 0x64, 0x66, 0x08, - 0x0e, 0xd6, 0x3f, 0x72, 0xb9, 0xf1, 0xbb, 0x62, 0xe3, 0x8f, 0xb5, 0x4d, 0x2e, 0x4a, 0x4e, 0x65, - 0x85, 0x72, 0xef, 0xc3, 0xdb, 0x13, 0xe2, 0x00, 0x8e, 0xc1, 0x0e, 0x45, 0x93, 0x0c, 0x31, 0xee, - 0x87, 0x24, 0x4b, 0xb8, 0xd5, 0x74, 0x8c, 0x4e, 0xbd, 0xdf, 0x52, 0xe1, 0xab, 0x22, 0x33, 0x3f, - 0x81, 0xfd, 0xe2, 0xdd, 0x52, 0x38, 0xf2, 0xab, 0xf7, 0x09, 0x44, 0x1f, 0xc7, 0xba, 0x3e, 0x7a, - 0xb2, 0xe0, 0xd6, 0xb5, 0xee, 0xc5, 0xd5, 0xb8, 0xe8, 0xa1, 0x7b, 0x76, 0x3d, 0xb3, 0x8d, 0x9b, - 0x99, 0x6d, 0xfc, 0x9e, 0xd9, 0xc6, 0xb7, 0xb9, 0x5d, 0xbb, 0x99, 0xdb, 0xb5, 0x9f, 0x73, 0xbb, - 0xf6, 0xd1, 0x8b, 0x31, 0x1f, 0x64, 0x81, 0x1b, 0x92, 0xb1, 0xf7, 0x06, 0x62, 0x1a, 0x8c, 0x48, - 0x38, 0xf4, 0x96, 0x4f, 0xea, 0xcb, 0xf2, 0x51, 0xf1, 0x3c, 0x45, 0x2c, 0x68, 0x88, 0x77, 0xf3, - 0xe2, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xed, 0x29, 0x75, 0x1e, 0x7b, 0x04, 0x00, 0x00, + 0x18, 0xc7, 0x1b, 0xd6, 0x75, 0xd4, 0x6b, 0x25, 0x96, 0x31, 0x2d, 0xaa, 0x50, 0x96, 0x31, 0x01, + 0x15, 0x48, 0x89, 0x34, 0xce, 0x1c, 0x56, 0x10, 0xd5, 0x54, 0x0e, 0xa3, 0x43, 0x20, 0x21, 0xa1, + 0xc8, 0x4d, 0x4c, 0x6a, 0xb5, 0x8d, 0x53, 0xdb, 0xa9, 0x08, 0x4f, 0xc1, 0x63, 0x70, 0xe4, 0x31, + 0x76, 0xdc, 0x91, 0x13, 0x82, 0xf6, 0xc0, 0x6b, 0xa0, 0xd8, 0x4e, 0xdb, 0xac, 0x66, 0x97, 0xca, + 0xfd, 0xfb, 0xf7, 0xfd, 0xfc, 0xd9, 0x8e, 0x81, 0xf3, 0x19, 0x62, 0x9a, 0x51, 0x1c, 0x47, 0xde, + 0x08, 0x65, 0x6c, 0x08, 0x29, 0xf2, 0x22, 0x14, 0x23, 0x86, 0x99, 0x9b, 0x50, 0xc2, 0x89, 0x69, + 0x2e, 0x09, 0xb7, 0x20, 0x5a, 0x7b, 0x70, 0x82, 0x63, 0xe2, 0x89, 0x5f, 0x89, 0xb5, 0x9e, 0x69, + 0x44, 0x30, 0xe5, 0x43, 0x42, 0xf1, 0x57, 0x14, 0xfa, 0x30, 0x0c, 0x29, 0x62, 0xca, 0xd9, 0x7a, + 0xa2, 0x81, 0x43, 0x14, 0xd0, 0x2c, 0xe1, 0x98, 0xc4, 0xfe, 0x08, 0x65, 0x0a, 0x3c, 0xd6, 0x80, + 0xc5, 0x40, 0x21, 0x47, 0x1a, 0x24, 0x81, 0x14, 0x4e, 0xd8, 0x6d, 0x40, 0x3a, 0x58, 0x2d, 0xf2, + 0x58, 0x03, 0xcc, 0xe0, 0x18, 0x87, 0x90, 0x13, 0xea, 0x33, 0xc4, 0x15, 0x77, 0x3f, 0x22, 0x11, + 0x11, 0x43, 0x2f, 0x1f, 0xc9, 0xf4, 0xe1, 0x9f, 0x6d, 0xd0, 0xe8, 0xca, 0x13, 0xbb, 0xe4, 0x90, + 0x23, 0xf3, 0x05, 0xa8, 0xc9, 0xf5, 0x2d, 0xc3, 0x31, 0xda, 0xbb, 0xa7, 0x2d, 0x77, 0xf3, 0x04, + 0xdd, 0x0b, 0x41, 0x74, 0xea, 0x57, 0xbf, 0x8e, 0x2a, 0xdf, 0xff, 0xfe, 0x78, 0x6a, 0xf4, 0x55, + 0x91, 0x79, 0x08, 0x76, 0x12, 0x42, 0xb9, 0x8f, 0x43, 0xeb, 0x8e, 0x63, 0xb4, 0xeb, 0xfd, 0x5a, + 0xfe, 0xf7, 0x3c, 0x34, 0xdf, 0x01, 0xb3, 0xd4, 0x95, 0x3f, 0xc6, 0x8c, 0x5b, 0x5b, 0xce, 0x56, + 0x7b, 0xf7, 0xd4, 0xd1, 0xad, 0xf1, 0xbe, 0xa0, 0x2f, 0x11, 0xef, 0x54, 0xf3, 0x95, 0xfa, 0xf7, + 0x66, 0x6b, 0xd9, 0x1b, 0xcc, 0xb8, 0xd9, 0x05, 0xcd, 0xa2, 0x40, 0x0a, 0xab, 0x42, 0xf8, 0x40, + 0x27, 0xec, 0xa9, 0x81, 0x92, 0x35, 0x8a, 0x09, 0x21, 0xfa, 0x00, 0xf6, 0xcb, 0x57, 0x28, 0x75, + 0xdb, 0x42, 0x77, 0xac, 0xd3, 0xbd, 0x5a, 0xe2, 0x3d, 0x94, 0x29, 0xe7, 0x5e, 0xb8, 0x1e, 0x0a, + 0x71, 0x0f, 0x34, 0x61, 0xc0, 0xf1, 0x0c, 0xf9, 0xf2, 0xd6, 0xac, 0x9a, 0x38, 0x56, 0xed, 0x96, + 0xcf, 0x04, 0x78, 0x21, 0xb8, 0xa2, 0x4b, 0xb8, 0x96, 0xe5, 0xb2, 0x69, 0x8a, 0x52, 0x14, 0x16, + 0xb2, 0x9d, 0xff, 0xcb, 0xde, 0x0a, 0xb0, 0x2c, 0x9b, 0xae, 0x65, 0x66, 0x00, 0x0e, 0x37, 0x3f, + 0x71, 0xb9, 0xed, 0xbb, 0x62, 0xdb, 0x8f, 0xb4, 0x3d, 0x2e, 0x4b, 0xce, 0x64, 0x85, 0x72, 0x1f, + 0xc0, 0x9b, 0x13, 0x62, 0xfb, 0x27, 0xa0, 0x49, 0xd1, 0x34, 0x45, 0x8c, 0xfb, 0x01, 0x49, 0x63, + 0x6e, 0xd5, 0x1d, 0xa3, 0x5d, 0xed, 0x37, 0x54, 0xf8, 0x32, 0xcf, 0xcc, 0x4f, 0xe0, 0x20, 0x7f, + 0xb5, 0x14, 0x8e, 0xfd, 0xf2, 0x6d, 0x02, 0xd1, 0xc7, 0x89, 0xae, 0x8f, 0xae, 0x2c, 0xb8, 0x71, + 0xa9, 0xfb, 0x51, 0x39, 0xce, 0x7b, 0xe8, 0x9c, 0x5f, 0xcd, 0x6d, 0xe3, 0x7a, 0x6e, 0x1b, 0xbf, + 0xe7, 0xb6, 0xf1, 0x6d, 0x61, 0x57, 0xae, 0x17, 0x76, 0xe5, 0xe7, 0xc2, 0xae, 0x7c, 0xf4, 0x22, + 0xcc, 0x87, 0xe9, 0xc0, 0x0d, 0xc8, 0xc4, 0x7b, 0x0d, 0x31, 0x1d, 0x8c, 0x49, 0x30, 0xf2, 0x56, + 0x0f, 0xea, 0xcb, 0xea, 0x49, 0xf1, 0x2c, 0x41, 0x6c, 0x50, 0x13, 0xaf, 0xe6, 0xf9, 0xbf, 0x00, + 0x00, 0x00, 0xff, 0xff, 0x4c, 0x48, 0x8d, 0x04, 0x79, 0x04, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -239,7 +239,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { } } { - size, err := m.QueuedPubKey.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.QueuedPubkey.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -249,7 +249,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x3a { - size, err := m.ActivePubKey.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ActivePubkey.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -361,9 +361,9 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } - l = m.ActivePubKey.Size() + l = m.ActivePubkey.Size() n += 1 + l + sovGenesis(uint64(l)) - l = m.QueuedPubKey.Size() + l = m.QueuedPubkey.Size() n += 1 + l + sovGenesis(uint64(l)) if len(m.AuthorizedAddressList) > 0 { for _, e := range m.AuthorizedAddressList { @@ -587,7 +587,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 6: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivePubKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ActivePubkey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -614,13 +614,13 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ActivePubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ActivePubkey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueuedPubKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field QueuedPubkey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -647,7 +647,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.QueuedPubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.QueuedPubkey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/keyshare/types/key_latest_pub_key.go b/x/keyshare/types/key_latest_pub_key.go index f936edae..18452aea 100644 --- a/x/keyshare/types/key_latest_pub_key.go +++ b/x/keyshare/types/key_latest_pub_key.go @@ -1,8 +1,8 @@ package types const ( - // ActivePubKeyPrefix is the prefix to retrieve the active Public Key - ActivePubKeyPrefix = "ActivePubKey/value/" + // ActivePubkeyPrefix is the prefix to retrieve the active Public Key + ActivePubkeyPrefix = "ActivePubkey/value/" - QueuedPubKeyPrefix = "QueuedPubKey/value/" + QueuedPubkeyPrefix = "QueuedPubkey/value/" ) diff --git a/x/keyshare/types/keys.go b/x/keyshare/types/keys.go index f032996d..c931101d 100644 --- a/x/keyshare/types/keys.go +++ b/x/keyshare/types/keys.go @@ -79,7 +79,7 @@ const ( KeyShareAggregatedEventType = "keyshare-aggregated" KeyShareAggregatedEventBlockHeight = "height" KeyShareAggregatedEventData = "data" - KeyShareAggregatedEventPubKey = "pubkey" + KeyShareAggregatedEventPubkey = "pubkey" ) const ( @@ -87,27 +87,27 @@ const ( GeneralKeyShareAggregatedEventIDValue = "id-value" GeneralKeyShareAggregatedEventIDType = "id-type" GeneralKeyShareAggregatedEventData = "data" - GeneralKeyShareAggregatedEventPubKey = "pubkey" + GeneralKeyShareAggregatedEventPubkey = "pubkey" ) const ( - QueuedPubKeyCreatedEventType = "queued-pubkey-created" - QueuedPubKeyCreatedEventActivePubkeyExpiryHeight = "active-pubkey-expiry-height" - QueuedPubKeyCreatedEventExpiryHeight = "expiry-height" - QueuedPubKeyCreatedEventCreator = "creator" - QueuedPubKeyCreatedEventPubkey = "pubkey" - QueuedPubKeyCreatedEventNumberOfValidators = "number-of-validators" - QueuedPubKeyCreatedEventEncryptedShares = "encrypted-shares" + QueuedPubkeyCreatedEventType = "queued-pubkey-created" + QueuedPubkeyCreatedEventActivePubkeyExpiryHeight = "active-pubkey-expiry-height" + QueuedPubkeyCreatedEventExpiryHeight = "expiry-height" + QueuedPubkeyCreatedEventCreator = "creator" + QueuedPubkeyCreatedEventPubkey = "pubkey" + QueuedPubkeyCreatedEventNumberOfValidators = "number-of-validators" + QueuedPubkeyCreatedEventEncryptedShares = "encrypted-shares" ) const ( - PubKeyOverrodeEventType = "pubkey-overrode" - PubKeyOverrodeEventActivePubkeyExpiryHeight = "active-pubkey-expiry-height" - PubKeyOverrodeEventExpiryHeight = "expiry-height" - PubKeyOverrodeEventCreator = "creator" - PubKeyOverrodeEventPubkey = "pubkey" - PubKeyOverrodeEventNumberOfValidators = "number-of-validators" - PubKeyOverrodeEventEncryptedShares = "encrypted-shares" + PubkeyOverrodeEventType = "pubkey-overrode" + PubkeyOverrodeEventActivePubkeyExpiryHeight = "active-pubkey-expiry-height" + PubkeyOverrodeEventExpiryHeight = "expiry-height" + PubkeyOverrodeEventCreator = "creator" + PubkeyOverrodeEventPubkey = "pubkey" + PubkeyOverrodeEventNumberOfValidators = "number-of-validators" + PubkeyOverrodeEventEncryptedShares = "encrypted-shares" ) const ( diff --git a/x/keyshare/types/msg_latest_pub_key.go b/x/keyshare/types/msg_latest_pub_key.go index af5f3d4b..8154d687 100644 --- a/x/keyshare/types/msg_latest_pub_key.go +++ b/x/keyshare/types/msg_latest_pub_key.go @@ -10,20 +10,20 @@ import ( ) const ( - PubKeyHexLength = 96 + PubkeyHexLength = 96 CommitmentHexLength = 96 ) -var _ sdk.Msg = &MsgCreateLatestPubKey{} +var _ sdk.Msg = &MsgCreateLatestPubkey{} -func NewMsgCreateLatestPubKey( +func NewMsgCreateLatestPubkey( creator string, publicKey string, commitments []string, numberOfValidators uint64, encryptedKeyshares []*EncryptedKeyshare, -) *MsgCreateLatestPubKey { - return &MsgCreateLatestPubKey{ +) *MsgCreateLatestPubkey { + return &MsgCreateLatestPubkey{ Creator: creator, PublicKey: publicKey, Commitments: commitments, @@ -32,16 +32,16 @@ func NewMsgCreateLatestPubKey( } } -func (msg *MsgCreateLatestPubKey) ValidateBasic() error { +func (msg *MsgCreateLatestPubkey) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { return sdkerrors.Wrapf(cosmoserror.ErrInvalidAddress, "invalid creator address (%s)", err) } - if len(msg.PublicKey) != PubKeyHexLength { - return ErrInvalidPubKeyLength.Wrapf("expected hex encoding public key to be length: %d", CommitmentHexLength) + if len(msg.PublicKey) != PubkeyHexLength { + return ErrInvalidPubkeyLength.Wrapf("expected hex encoding public key to be length: %d", CommitmentHexLength) } if _, err = hex.DecodeString(msg.PublicKey); err != nil { - return ErrInvalidPubKey.Wrapf("expected hex encoded public key, got: %s", msg.PublicKey) + return ErrInvalidPubkey.Wrapf("expected hex encoded public key, got: %s", msg.PublicKey) } if len(msg.Commitments) == 0 { return ErrEmptyCommitments diff --git a/x/keyshare/types/msg_override_pub_key.go b/x/keyshare/types/msg_override_pub_key.go index 3afac0d5..352f53fb 100644 --- a/x/keyshare/types/msg_override_pub_key.go +++ b/x/keyshare/types/msg_override_pub_key.go @@ -9,16 +9,16 @@ import ( cosmoserror "github.com/cosmos/cosmos-sdk/types/errors" ) -var _ sdk.Msg = &MsgOverrideLatestPubKey{} +var _ sdk.Msg = &MsgOverrideLatestPubkey{} -func NewMsgOverrideLatestPubKey( +func NewMsgOverrideLatestPubkey( creator string, publicKey string, commitments []string, numberOfValidators uint64, encryptedKeyshares []*EncryptedKeyshare, -) *MsgOverrideLatestPubKey { - return &MsgOverrideLatestPubKey{ +) *MsgOverrideLatestPubkey { + return &MsgOverrideLatestPubkey{ Creator: creator, PublicKey: publicKey, Commitments: commitments, @@ -27,16 +27,16 @@ func NewMsgOverrideLatestPubKey( } } -func (msg *MsgOverrideLatestPubKey) ValidateBasic() error { +func (msg *MsgOverrideLatestPubkey) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.Creator) if err != nil { return sdkerrors.Wrapf(cosmoserror.ErrInvalidAddress, "invalid creator address (%s)", err) } - if len(msg.PublicKey) != PubKeyHexLength { - return ErrInvalidPubKeyLength.Wrapf("expected hex encoding public key to be length: %d", CommitmentHexLength) + if len(msg.PublicKey) != PubkeyHexLength { + return ErrInvalidPubkeyLength.Wrapf("expected hex encoding public key to be length: %d", CommitmentHexLength) } if _, err = hex.DecodeString(msg.PublicKey); err != nil { - return ErrInvalidPubKey.Wrapf("expected hex encoded public key, got: %s", msg.PublicKey) + return ErrInvalidPubkey.Wrapf("expected hex encoded public key, got: %s", msg.PublicKey) } if len(msg.Commitments) == 0 { return ErrEmptyCommitments diff --git a/x/keyshare/types/pubkey.pb.go b/x/keyshare/types/pubkey.pb.go index e71303e4..120da2ae 100644 --- a/x/keyshare/types/pubkey.pb.go +++ b/x/keyshare/types/pubkey.pb.go @@ -76,8 +76,8 @@ func (m *EncryptedKeyshare) GetValidator() string { return "" } -// ActivePubKey defines the structure of the active public key -type ActivePubKey struct { +// ActivePubkey defines the structure of the active public key +type ActivePubkey struct { PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` Expiry uint64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` @@ -85,18 +85,18 @@ type ActivePubKey struct { EncryptedKeyshares []*EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` } -func (m *ActivePubKey) Reset() { *m = ActivePubKey{} } -func (m *ActivePubKey) String() string { return proto.CompactTextString(m) } -func (*ActivePubKey) ProtoMessage() {} -func (*ActivePubKey) Descriptor() ([]byte, []int) { +func (m *ActivePubkey) Reset() { *m = ActivePubkey{} } +func (m *ActivePubkey) String() string { return proto.CompactTextString(m) } +func (*ActivePubkey) ProtoMessage() {} +func (*ActivePubkey) Descriptor() ([]byte, []int) { return fileDescriptor_78068a78bf5008ef, []int{1} } -func (m *ActivePubKey) XXX_Unmarshal(b []byte) error { +func (m *ActivePubkey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *ActivePubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ActivePubkey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_ActivePubKey.Marshal(b, m, deterministic) + return xxx_messageInfo_ActivePubkey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -106,55 +106,55 @@ func (m *ActivePubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *ActivePubKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_ActivePubKey.Merge(m, src) +func (m *ActivePubkey) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActivePubkey.Merge(m, src) } -func (m *ActivePubKey) XXX_Size() int { +func (m *ActivePubkey) XXX_Size() int { return m.Size() } -func (m *ActivePubKey) XXX_DiscardUnknown() { - xxx_messageInfo_ActivePubKey.DiscardUnknown(m) +func (m *ActivePubkey) XXX_DiscardUnknown() { + xxx_messageInfo_ActivePubkey.DiscardUnknown(m) } -var xxx_messageInfo_ActivePubKey proto.InternalMessageInfo +var xxx_messageInfo_ActivePubkey proto.InternalMessageInfo -func (m *ActivePubKey) GetPublicKey() string { +func (m *ActivePubkey) GetPublicKey() string { if m != nil { return m.PublicKey } return "" } -func (m *ActivePubKey) GetCreator() string { +func (m *ActivePubkey) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *ActivePubKey) GetExpiry() uint64 { +func (m *ActivePubkey) GetExpiry() uint64 { if m != nil { return m.Expiry } return 0 } -func (m *ActivePubKey) GetNumberOfValidators() uint64 { +func (m *ActivePubkey) GetNumberOfValidators() uint64 { if m != nil { return m.NumberOfValidators } return 0 } -func (m *ActivePubKey) GetEncryptedKeyshares() []*EncryptedKeyshare { +func (m *ActivePubkey) GetEncryptedKeyshares() []*EncryptedKeyshare { if m != nil { return m.EncryptedKeyshares } return nil } -// QueuedPubKey defines the structure of the queued public key -type QueuedPubKey struct { +// QueuedPubkey defines the structure of the queued public key +type QueuedPubkey struct { PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` Expiry uint64 `protobuf:"varint,3,opt,name=expiry,proto3" json:"expiry,omitempty"` @@ -162,18 +162,18 @@ type QueuedPubKey struct { EncryptedKeyshares []*EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` } -func (m *QueuedPubKey) Reset() { *m = QueuedPubKey{} } -func (m *QueuedPubKey) String() string { return proto.CompactTextString(m) } -func (*QueuedPubKey) ProtoMessage() {} -func (*QueuedPubKey) Descriptor() ([]byte, []int) { +func (m *QueuedPubkey) Reset() { *m = QueuedPubkey{} } +func (m *QueuedPubkey) String() string { return proto.CompactTextString(m) } +func (*QueuedPubkey) ProtoMessage() {} +func (*QueuedPubkey) Descriptor() ([]byte, []int) { return fileDescriptor_78068a78bf5008ef, []int{2} } -func (m *QueuedPubKey) XXX_Unmarshal(b []byte) error { +func (m *QueuedPubkey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueuedPubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueuedPubkey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueuedPubKey.Marshal(b, m, deterministic) + return xxx_messageInfo_QueuedPubkey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -183,47 +183,47 @@ func (m *QueuedPubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *QueuedPubKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueuedPubKey.Merge(m, src) +func (m *QueuedPubkey) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueuedPubkey.Merge(m, src) } -func (m *QueuedPubKey) XXX_Size() int { +func (m *QueuedPubkey) XXX_Size() int { return m.Size() } -func (m *QueuedPubKey) XXX_DiscardUnknown() { - xxx_messageInfo_QueuedPubKey.DiscardUnknown(m) +func (m *QueuedPubkey) XXX_DiscardUnknown() { + xxx_messageInfo_QueuedPubkey.DiscardUnknown(m) } -var xxx_messageInfo_QueuedPubKey proto.InternalMessageInfo +var xxx_messageInfo_QueuedPubkey proto.InternalMessageInfo -func (m *QueuedPubKey) GetPublicKey() string { +func (m *QueuedPubkey) GetPublicKey() string { if m != nil { return m.PublicKey } return "" } -func (m *QueuedPubKey) GetCreator() string { +func (m *QueuedPubkey) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *QueuedPubKey) GetExpiry() uint64 { +func (m *QueuedPubkey) GetExpiry() uint64 { if m != nil { return m.Expiry } return 0 } -func (m *QueuedPubKey) GetNumberOfValidators() uint64 { +func (m *QueuedPubkey) GetNumberOfValidators() uint64 { if m != nil { return m.NumberOfValidators } return 0 } -func (m *QueuedPubKey) GetEncryptedKeyshares() []*EncryptedKeyshare { +func (m *QueuedPubkey) GetEncryptedKeyshares() []*EncryptedKeyshare { if m != nil { return m.EncryptedKeyshares } @@ -232,34 +232,34 @@ func (m *QueuedPubKey) GetEncryptedKeyshares() []*EncryptedKeyshare { func init() { proto.RegisterType((*EncryptedKeyshare)(nil), "fairyring.keyshare.EncryptedKeyshare") - proto.RegisterType((*ActivePubKey)(nil), "fairyring.keyshare.ActivePubKey") - proto.RegisterType((*QueuedPubKey)(nil), "fairyring.keyshare.QueuedPubKey") + proto.RegisterType((*ActivePubkey)(nil), "fairyring.keyshare.ActivePubkey") + proto.RegisterType((*QueuedPubkey)(nil), "fairyring.keyshare.QueuedPubkey") } func init() { proto.RegisterFile("fairyring/keyshare/pubkey.proto", fileDescriptor_78068a78bf5008ef) } var fileDescriptor_78068a78bf5008ef = []byte{ // 317 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x92, 0x41, 0x4e, 0x02, 0x31, - 0x14, 0x86, 0xa9, 0x20, 0x86, 0xea, 0xc6, 0x6a, 0xcc, 0x2c, 0xb4, 0x12, 0x12, 0x13, 0x56, 0x33, - 0x46, 0x4f, 0xa0, 0x09, 0x26, 0x86, 0x85, 0xca, 0x82, 0x85, 0x9b, 0x49, 0xdb, 0x79, 0x40, 0x33, - 0x40, 0x9b, 0x4e, 0x4b, 0xe8, 0x2d, 0x3c, 0x96, 0x4b, 0x96, 0x2e, 0x0d, 0xac, 0xbc, 0x85, 0x71, - 0x60, 0x18, 0x23, 0x37, 0x70, 0xd7, 0xf7, 0xff, 0x7f, 0x5e, 0xf3, 0xbd, 0xfc, 0xf8, 0x72, 0xc0, - 0xa4, 0xf1, 0x46, 0x4e, 0x87, 0x51, 0x0a, 0x3e, 0x1b, 0x31, 0x03, 0x91, 0x76, 0x3c, 0x05, 0x1f, - 0x6a, 0xa3, 0xac, 0x22, 0x64, 0x1b, 0x08, 0x8b, 0x40, 0xab, 0x83, 0x8f, 0x3b, 0x53, 0x61, 0xbc, - 0xb6, 0x90, 0x74, 0x37, 0x22, 0x21, 0xb8, 0x96, 0x30, 0xcb, 0x02, 0xd4, 0x44, 0xed, 0x46, 0x2f, - 0x7f, 0x93, 0x73, 0xdc, 0x98, 0xb1, 0xb1, 0x4c, 0x98, 0x55, 0x26, 0xd8, 0xcb, 0x8d, 0x52, 0x68, - 0x7d, 0x21, 0x7c, 0x74, 0x27, 0xac, 0x9c, 0xc1, 0xb3, 0xe3, 0x5d, 0xf0, 0xe4, 0x02, 0x63, 0xed, - 0xf8, 0x58, 0x8a, 0x38, 0x05, 0xbf, 0x59, 0xd4, 0x58, 0x2b, 0x3f, 0x76, 0x80, 0x0f, 0x84, 0x81, - 0x5f, 0xbb, 0x8a, 0x91, 0x9c, 0xe1, 0x3a, 0xcc, 0xb5, 0x34, 0x3e, 0xa8, 0x36, 0x51, 0xbb, 0xd6, - 0xdb, 0x4c, 0xe4, 0x1a, 0x9f, 0x4e, 0xdd, 0x84, 0x83, 0x89, 0xd5, 0x20, 0xde, 0x7e, 0x9c, 0x05, - 0xb5, 0x3c, 0x45, 0xd6, 0xde, 0xd3, 0xa0, 0xbf, 0x75, 0x48, 0x1f, 0x9f, 0x40, 0x81, 0x16, 0x17, - 0xc0, 0x59, 0xb0, 0xdf, 0xac, 0xb6, 0x0f, 0x6f, 0xae, 0xc2, 0xdd, 0x63, 0x84, 0x3b, 0x97, 0xe8, - 0x11, 0xf8, 0x2b, 0x65, 0x39, 0xeb, 0x8b, 0x03, 0x07, 0xc9, 0xbf, 0x67, 0xbd, 0x7f, 0x7c, 0x5f, - 0x52, 0xb4, 0x58, 0x52, 0xf4, 0xb9, 0xa4, 0xe8, 0x6d, 0x45, 0x2b, 0x8b, 0x15, 0xad, 0x7c, 0xac, - 0x68, 0xe5, 0x35, 0x1a, 0x4a, 0x3b, 0x72, 0x3c, 0x14, 0x6a, 0x12, 0x3d, 0x30, 0x69, 0xf8, 0x58, - 0x89, 0x34, 0x2a, 0x2b, 0x38, 0x2f, 0x4b, 0x68, 0xbd, 0x86, 0x8c, 0xd7, 0xf3, 0x12, 0xde, 0x7e, - 0x07, 0x00, 0x00, 0xff, 0xff, 0x28, 0xcb, 0x57, 0xbe, 0xa7, 0x02, 0x00, 0x00, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x52, 0xb1, 0x4e, 0x2a, 0x41, + 0x14, 0x65, 0x1e, 0x3c, 0x0c, 0xa3, 0x8d, 0x57, 0x63, 0xb6, 0xd0, 0x95, 0x90, 0x98, 0x50, 0xed, + 0x1a, 0xfd, 0x02, 0x4d, 0x30, 0x31, 0x14, 0x2a, 0x05, 0x85, 0xcd, 0x66, 0x76, 0xf6, 0x02, 0x93, + 0x05, 0x66, 0x32, 0x3b, 0x43, 0x98, 0xbf, 0xf0, 0xb3, 0x2c, 0x29, 0x2d, 0x0d, 0x54, 0xfe, 0x85, + 0xc9, 0xc0, 0x82, 0x91, 0x3f, 0xb0, 0xbb, 0xf7, 0x9c, 0x93, 0x7b, 0x73, 0x4e, 0x0e, 0xbd, 0x1c, + 0x30, 0xa1, 0x9d, 0x16, 0xd3, 0x61, 0x9c, 0xa3, 0x2b, 0x46, 0x4c, 0x63, 0xac, 0x6c, 0x9a, 0xa3, + 0x8b, 0x94, 0x96, 0x46, 0x02, 0x6c, 0x05, 0x51, 0x29, 0x68, 0x75, 0xe8, 0x71, 0x67, 0xca, 0xb5, + 0x53, 0x06, 0xb3, 0xee, 0x06, 0x04, 0xa0, 0xb5, 0x8c, 0x19, 0x16, 0x90, 0x26, 0x69, 0x37, 0x7a, + 0x7e, 0x86, 0x73, 0xda, 0x98, 0xb1, 0xb1, 0xc8, 0x98, 0x91, 0x3a, 0xf8, 0xe7, 0x89, 0x1d, 0xd0, + 0xfa, 0x22, 0xf4, 0xe8, 0x8e, 0x1b, 0x31, 0xc3, 0x67, 0xff, 0x11, 0x2e, 0x28, 0x55, 0x36, 0x1d, + 0x0b, 0x9e, 0xe4, 0xe8, 0x36, 0x87, 0x1a, 0x6b, 0xa4, 0x8b, 0x0e, 0x02, 0x7a, 0xc0, 0x35, 0xfe, + 0xb8, 0x55, 0xae, 0x70, 0x46, 0xeb, 0x38, 0x57, 0x42, 0xbb, 0xa0, 0xda, 0x24, 0xed, 0x5a, 0x6f, + 0xb3, 0xc1, 0x35, 0x3d, 0x9d, 0xda, 0x49, 0x8a, 0x3a, 0x91, 0x83, 0x64, 0xfb, 0xb8, 0x08, 0x6a, + 0x5e, 0x05, 0x6b, 0xee, 0x69, 0xd0, 0xdf, 0x32, 0xd0, 0xa7, 0x27, 0x58, 0x5a, 0x4b, 0x4a, 0xc3, + 0x45, 0xf0, 0xbf, 0x59, 0x6d, 0x1f, 0xde, 0x5c, 0x45, 0xfb, 0x61, 0x44, 0x7b, 0x49, 0xf4, 0x00, + 0x7f, 0x43, 0x85, 0xf7, 0xfa, 0x62, 0xd1, 0x62, 0xf6, 0xe7, 0xbd, 0xde, 0x3f, 0xbe, 0x2f, 0x43, + 0xb2, 0x58, 0x86, 0xe4, 0x73, 0x19, 0x92, 0xb7, 0x55, 0x58, 0x59, 0xac, 0xc2, 0xca, 0xc7, 0x2a, + 0xac, 0xbc, 0xc6, 0x43, 0x61, 0x46, 0x36, 0x8d, 0xb8, 0x9c, 0xc4, 0x0f, 0x4c, 0xe8, 0x74, 0x2c, + 0x79, 0x1e, 0xef, 0x2a, 0x38, 0xdf, 0x95, 0xd0, 0x38, 0x85, 0x45, 0x5a, 0xf7, 0x25, 0xbc, 0xfd, + 0x0e, 0x00, 0x00, 0xff, 0xff, 0xbf, 0x86, 0x4b, 0x7e, 0xa7, 0x02, 0x00, 0x00, } func (m *EncryptedKeyshare) Marshal() (dAtA []byte, err error) { @@ -299,7 +299,7 @@ func (m *EncryptedKeyshare) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *ActivePubKey) Marshal() (dAtA []byte, err error) { +func (m *ActivePubkey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -309,12 +309,12 @@ func (m *ActivePubKey) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *ActivePubKey) MarshalTo(dAtA []byte) (int, error) { +func (m *ActivePubkey) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *ActivePubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *ActivePubkey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -360,7 +360,7 @@ func (m *ActivePubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueuedPubKey) Marshal() (dAtA []byte, err error) { +func (m *QueuedPubkey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -370,12 +370,12 @@ func (m *QueuedPubKey) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueuedPubKey) MarshalTo(dAtA []byte) (int, error) { +func (m *QueuedPubkey) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueuedPubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueuedPubkey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -449,7 +449,7 @@ func (m *EncryptedKeyshare) Size() (n int) { return n } -func (m *ActivePubKey) Size() (n int) { +func (m *ActivePubkey) Size() (n int) { if m == nil { return 0 } @@ -478,7 +478,7 @@ func (m *ActivePubKey) Size() (n int) { return n } -func (m *QueuedPubKey) Size() (n int) { +func (m *QueuedPubkey) Size() (n int) { if m == nil { return 0 } @@ -627,7 +627,7 @@ func (m *EncryptedKeyshare) Unmarshal(dAtA []byte) error { } return nil } -func (m *ActivePubKey) Unmarshal(dAtA []byte) error { +func (m *ActivePubkey) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -650,10 +650,10 @@ func (m *ActivePubKey) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ActivePubKey: wiretype end group for non-group") + return fmt.Errorf("proto: ActivePubkey: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ActivePubKey: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ActivePubkey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -813,7 +813,7 @@ func (m *ActivePubKey) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueuedPubKey) Unmarshal(dAtA []byte) error { +func (m *QueuedPubkey) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -836,10 +836,10 @@ func (m *QueuedPubKey) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueuedPubKey: wiretype end group for non-group") + return fmt.Errorf("proto: QueuedPubkey: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueuedPubKey: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueuedPubkey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/keyshare/types/query.pb.go b/x/keyshare/types/query.pb.go index 79615a87..e7b3fe1a 100644 --- a/x/keyshare/types/query.pb.go +++ b/x/keyshare/types/query.pb.go @@ -868,7 +868,7 @@ func (m *QueryDecryptionKeyAllResponse) GetPagination() *query.PageResponse { return nil } -// QueryPubKeyRequest is request type for the Query/PubKey RPC method. +// QueryPubkeyRequest is request type for the Query/Pubkey RPC method. type QueryPubkeyRequest struct { } @@ -905,10 +905,10 @@ func (m *QueryPubkeyRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryPubkeyRequest proto.InternalMessageInfo -// QueryPubKeyResponse is response type for the Query/PubKey RPC method. +// QueryPubkeyResponse is response type for the Query/Pubkey RPC method. type QueryPubkeyResponse struct { - ActivePubkey ActivePubKey `protobuf:"bytes,1,opt,name=active_pubkey,json=activePubkey,proto3" json:"active_pubkey"` - QueuedPubkey QueuedPubKey `protobuf:"bytes,2,opt,name=queued_pubkey,json=queuedPubkey,proto3" json:"queued_pubkey"` + ActivePubkey ActivePubkey `protobuf:"bytes,1,opt,name=active_pubkey,json=activePubkey,proto3" json:"active_pubkey"` + QueuedPubkey QueuedPubkey `protobuf:"bytes,2,opt,name=queued_pubkey,json=queuedPubkey,proto3" json:"queued_pubkey"` } func (m *QueryPubkeyResponse) Reset() { *m = QueryPubkeyResponse{} } @@ -944,18 +944,18 @@ func (m *QueryPubkeyResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryPubkeyResponse proto.InternalMessageInfo -func (m *QueryPubkeyResponse) GetActivePubkey() ActivePubKey { +func (m *QueryPubkeyResponse) GetActivePubkey() ActivePubkey { if m != nil { return m.ActivePubkey } - return ActivePubKey{} + return ActivePubkey{} } -func (m *QueryPubkeyResponse) GetQueuedPubkey() QueuedPubKey { +func (m *QueryPubkeyResponse) GetQueuedPubkey() QueuedPubkey { if m != nil { return m.QueuedPubkey } - return QueuedPubKey{} + return QueuedPubkey{} } // QueryAuthorizedAddressRequest is request type for the Query/AuthorizedAddress RPC method. @@ -1384,96 +1384,96 @@ func init() { func init() { proto.RegisterFile("fairyring/keyshare/query.proto", fileDescriptor_572603c2d521bf14) } var fileDescriptor_572603c2d521bf14 = []byte{ - // 1421 bytes of a gzipped FileDescriptorProto + // 1415 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xcf, 0x24, 0x6d, 0xda, 0x4c, 0xd2, 0xa6, 0x19, 0x0c, 0x4d, 0x17, 0xe3, 0xc4, 0xdb, 0x90, - 0xa4, 0x4d, 0xeb, 0x69, 0x12, 0x50, 0xc5, 0x01, 0x50, 0x0a, 0xb4, 0xa0, 0x0a, 0x94, 0x9a, 0xaa, + 0x14, 0xcf, 0x24, 0x6d, 0xda, 0x4c, 0xda, 0xa6, 0x19, 0x0c, 0x4d, 0x17, 0xe3, 0xc4, 0xdb, 0x90, + 0xa4, 0x4d, 0xeb, 0x69, 0x12, 0x50, 0xc5, 0x01, 0x50, 0x0a, 0xb4, 0xa0, 0x0a, 0xd4, 0x9a, 0x28, 0x15, 0xbd, 0x58, 0x63, 0xef, 0x64, 0xbd, 0xc4, 0xde, 0x75, 0x76, 0xd7, 0x51, 0x4d, 0xf0, 0x85, 0x0f, 0x80, 0x40, 0xdc, 0x01, 0x29, 0x17, 0x24, 0x0e, 0x20, 0x81, 0x38, 0xf4, 0x84, 0xc4, 0x25, 0xc7, 0x4a, 0x5c, 0x38, 0x21, 0x94, 0x20, 0xf1, 0x09, 0xb8, 0x23, 0xcf, 0xbe, 0xb5, 0x77, 0xd7, 0xb3, 0xeb, 0x35, 0x4d, 0x2e, 0x96, 0xf7, 0xed, 0xfb, 0xf3, 0x7b, 0x7f, 0xe6, 0xbd, 0xb7, 0x83, 0x73, 0x5b, 0xcc, 0xb0, 0x5b, 0xb6, 0x61, 0xea, 0x74, 0x9b, 0xb7, 0x9c, 0x2a, 0xb3, 0x39, 0xdd, - 0x69, 0x72, 0xbb, 0x55, 0x68, 0xd8, 0x96, 0x6b, 0x11, 0xd2, 0x7d, 0x5f, 0xf0, 0xdf, 0x2b, 0x33, - 0xac, 0x6e, 0x98, 0x16, 0x15, 0xbf, 0x1e, 0x9b, 0x72, 0xb5, 0x62, 0x39, 0x75, 0xcb, 0xa1, 0x65, - 0xe6, 0x80, 0x3c, 0xdd, 0x5d, 0x2d, 0x73, 0x97, 0xad, 0xd2, 0x06, 0xd3, 0x0d, 0x93, 0xb9, 0x86, - 0x65, 0x02, 0xef, 0x8a, 0xc4, 0x24, 0x6b, 0xba, 0x55, 0xcb, 0x36, 0x3e, 0xe1, 0x5a, 0x89, 0x69, - 0x9a, 0xcd, 0x1d, 0x07, 0x98, 0x17, 0x24, 0xcc, 0x15, 0xab, 0x5e, 0x37, 0xdc, 0x3a, 0x37, 0x5d, - 0x9f, 0x6b, 0x49, 0xc2, 0xa5, 0xf1, 0x8a, 0xdd, 0x6a, 0x74, 0xec, 0x96, 0xb6, 0x39, 0xb8, 0xa3, - 0xe4, 0x25, 0x8c, 0xfe, 0x1f, 0x60, 0x99, 0x93, 0xb0, 0x34, 0x98, 0xcd, 0xea, 0x4e, 0x12, 0x43, - 0xb3, 0xdc, 0x33, 0xb2, 0x28, 0x61, 0xd8, 0x65, 0x35, 0x43, 0x63, 0xae, 0x65, 0x97, 0x1c, 0xee, + 0x69, 0x72, 0xbb, 0x55, 0x68, 0xd8, 0x96, 0x6b, 0x11, 0xd2, 0x7d, 0x5f, 0xf0, 0xdf, 0x2b, 0xd3, + 0xac, 0x6e, 0x98, 0x16, 0x15, 0xbf, 0x1e, 0x9b, 0x72, 0xad, 0x62, 0x39, 0x75, 0xcb, 0xa1, 0x65, + 0xe6, 0x80, 0x3c, 0xdd, 0x5d, 0x29, 0x73, 0x97, 0xad, 0xd0, 0x06, 0xd3, 0x0d, 0x93, 0xb9, 0x86, + 0x65, 0x02, 0xef, 0xb2, 0xc4, 0x24, 0x6b, 0xba, 0x55, 0xcb, 0x36, 0x3e, 0xe1, 0x5a, 0x89, 0x69, + 0x9a, 0xcd, 0x1d, 0x07, 0x98, 0xe7, 0x25, 0xcc, 0x15, 0xab, 0x5e, 0x37, 0xdc, 0x3a, 0x37, 0x5d, + 0x9f, 0x6b, 0x51, 0xc2, 0xa5, 0xf1, 0x8a, 0xdd, 0x6a, 0x74, 0xec, 0x96, 0xb6, 0x39, 0xb8, 0xa3, + 0xe4, 0x25, 0x8c, 0xfe, 0x1f, 0x60, 0x99, 0x95, 0xb0, 0x34, 0x98, 0xcd, 0xea, 0x4e, 0x12, 0x43, + 0xb3, 0xdc, 0x33, 0xb2, 0x20, 0x61, 0xd8, 0x65, 0x35, 0x43, 0x63, 0xae, 0x65, 0x97, 0x1c, 0xee, 0x02, 0x5f, 0x46, 0xb7, 0x74, 0x4b, 0xfc, 0xa5, 0x9d, 0x7f, 0x40, 0xcd, 0xea, 0x96, 0xa5, 0xd7, - 0x38, 0x65, 0x0d, 0x83, 0x32, 0xd3, 0xb4, 0x5c, 0x11, 0x3b, 0x30, 0xae, 0xaa, 0x78, 0xfe, 0x5e, - 0x27, 0xbc, 0x0f, 0xb8, 0x6d, 0x6c, 0x19, 0xac, 0x5c, 0xe3, 0x45, 0x66, 0x6a, 0x56, 0xdd, 0xe4, - 0x8e, 0x53, 0xe4, 0x3b, 0x4d, 0xee, 0xb8, 0xea, 0x47, 0x38, 0x9f, 0xc0, 0xe3, 0x34, 0x2c, 0xd3, - 0xe1, 0x24, 0x87, 0xb1, 0xdd, 0xa5, 0xce, 0xa2, 0x79, 0xb4, 0x3c, 0x51, 0x0c, 0x50, 0x48, 0x06, - 0x9f, 0xb6, 0xad, 0xa6, 0xa9, 0xcd, 0x8e, 0xce, 0xa3, 0xe5, 0x53, 0x45, 0xef, 0x41, 0xcd, 0x60, - 0x22, 0x54, 0x6f, 0x8a, 0x80, 0xf8, 0x06, 0xef, 0xe3, 0xe7, 0x42, 0x54, 0x30, 0xf1, 0x3a, 0x1e, - 0xf7, 0x02, 0x27, 0xd4, 0x4f, 0xae, 0x29, 0x85, 0xfe, 0x62, 0x2a, 0x78, 0x32, 0xb7, 0x26, 0x0e, - 0xfe, 0x9c, 0x1b, 0xf9, 0xee, 0x9f, 0x1f, 0xaf, 0xa2, 0x22, 0x08, 0xa9, 0x97, 0xf0, 0x45, 0xa1, - 0xf5, 0xad, 0x5e, 0xba, 0x7d, 0x83, 0x4f, 0x10, 0x9e, 0xed, 0x7f, 0x07, 0x66, 0x3f, 0xc0, 0x84, - 0x55, 0x5c, 0x63, 0x97, 0x97, 0x02, 0x85, 0x02, 0x10, 0xe6, 0x64, 0x10, 0x82, 0x4a, 0x66, 0x3c, - 0xd1, 0x00, 0xa9, 0xa3, 0x6f, 0xa7, 0xc9, 0x9b, 0x5c, 0x0b, 0xe9, 0x1b, 0x4d, 0xa9, 0xcf, 0x13, - 0x0d, 0x90, 0xd4, 0x1b, 0x80, 0xfd, 0x81, 0x5f, 0x12, 0x1f, 0x72, 0x17, 0x1c, 0xeb, 0x44, 0xdd, - 0x30, 0x35, 0xfe, 0x18, 0x12, 0xe2, 0x3d, 0xa8, 0x55, 0x7c, 0x49, 0x22, 0x01, 0xee, 0xde, 0xc5, - 0xe7, 0x42, 0xc5, 0x05, 0x9e, 0xce, 0xcb, 0x90, 0x05, 0x15, 0xdc, 0x3a, 0xd5, 0x09, 0x79, 0x71, - 0x6a, 0x37, 0x40, 0x53, 0x39, 0x7e, 0xb1, 0xcf, 0xd2, 0x46, 0xad, 0xe6, 0xc3, 0xbb, 0x8d, 0x71, - 0xef, 0x38, 0x83, 0xa1, 0xc5, 0x82, 0x77, 0xf6, 0x0b, 0x9d, 0xb3, 0x5f, 0xf0, 0x7a, 0x07, 0x9c, - 0xfd, 0xc2, 0x26, 0xd3, 0x39, 0xc8, 0x16, 0x03, 0x92, 0xea, 0xcf, 0x08, 0x67, 0xe5, 0x76, 0xe2, - 0x9d, 0x1a, 0xfb, 0xbf, 0x4e, 0x91, 0x3b, 0x21, 0xd4, 0x5e, 0xe2, 0x96, 0x06, 0xa2, 0xf6, 0x90, - 0x84, 0x60, 0x3f, 0xc4, 0x19, 0x81, 0xfa, 0x2e, 0x98, 0xf6, 0xc3, 0x92, 0xc5, 0x13, 0x5d, 0x83, - 0x90, 0xb9, 0x1e, 0x81, 0xe4, 0xf1, 0x54, 0xb9, 0x66, 0x55, 0xb6, 0x4b, 0x55, 0x6e, 0xe8, 0x55, - 0x17, 0x0e, 0xd4, 0xa4, 0xa0, 0xbd, 0x2b, 0x48, 0xea, 0x43, 0xfc, 0x7c, 0x44, 0x31, 0xc4, 0xe1, - 0x0d, 0x7c, 0xd6, 0xf7, 0x13, 0xc2, 0x9d, 0x95, 0x85, 0xc0, 0x97, 0x03, 0xf7, 0xbb, 0x32, 0x2a, - 0x83, 0x33, 0xe4, 0x33, 0x9c, 0x40, 0x2e, 0xf7, 0xfd, 0xb3, 0x18, 0xb2, 0x21, 0xc5, 0x3f, 0x36, - 0x2c, 0xfe, 0xe3, 0x4b, 0xdd, 0x3a, 0x1c, 0xa1, 0xb7, 0xbb, 0x53, 0xe1, 0x2e, 0x6f, 0xf9, 0xa1, - 0x78, 0x01, 0x8f, 0x43, 0x6e, 0x90, 0xc8, 0x0d, 0x3c, 0xa9, 0x35, 0xac, 0xc8, 0x84, 0xba, 0x7d, - 0xe6, 0x7c, 0x78, 0xc6, 0x40, 0x10, 0xf3, 0x32, 0x0f, 0x43, 0x2a, 0xc0, 0xcd, 0x73, 0x5a, 0x90, - 0xa8, 0x6e, 0xc1, 0x99, 0x08, 0xb1, 0x9e, 0x40, 0xc2, 0x9e, 0x20, 0xfc, 0x52, 0x8c, 0x21, 0xf0, - 0x6c, 0x13, 0x4f, 0x87, 0x3d, 0x73, 0x20, 0x79, 0xa9, 0x5d, 0x3b, 0x1f, 0x72, 0xcd, 0x39, 0xbe, - 0x3c, 0x76, 0x07, 0x90, 0x18, 0xb8, 0xfe, 0x3c, 0xf8, 0x01, 0xf9, 0x13, 0x08, 0xc8, 0xbd, 0x36, - 0x02, 0xa3, 0xc0, 0x1b, 0xd0, 0x49, 0xbd, 0x71, 0x43, 0x30, 0x6e, 0x36, 0xcb, 0x3d, 0x2f, 0xa6, - 0x98, 0x4f, 0xdb, 0xe6, 0xad, 0x8e, 0x32, 0x98, 0x03, 0xa0, 0x6c, 0x34, 0x5e, 0xd9, 0x3d, 0xc1, - 0x18, 0x56, 0xb6, 0xe3, 0xd3, 0xb6, 0x79, 0x4b, 0xbd, 0x09, 0x39, 0xd8, 0xe8, 0x2e, 0x3e, 0x1b, - 0xde, 0xde, 0x13, 0xa8, 0x49, 0x97, 0xd9, 0x3a, 0xf4, 0xf3, 0x89, 0x22, 0x3c, 0xa9, 0x9f, 0xe2, - 0x5c, 0x9c, 0x20, 0x38, 0xfd, 0x08, 0x93, 0xfe, 0x75, 0x0a, 0x3c, 0x7f, 0x59, 0xea, 0x79, 0x54, - 0x15, 0x20, 0x9e, 0x61, 0xd1, 0x17, 0xea, 0xc7, 0xb0, 0x7e, 0xf4, 0x89, 0x9c, 0x40, 0x9d, 0x1e, - 0x20, 0xd8, 0x63, 0xe4, 0xc6, 0x06, 0x78, 0x3b, 0xf6, 0xec, 0xde, 0x1e, 0x5f, 0xd5, 0x5a, 0x30, - 0x56, 0xef, 0x70, 0x93, 0xdb, 0xac, 0x36, 0xdc, 0xfc, 0xb8, 0x88, 0xcf, 0x18, 0x5a, 0xc9, 0x6d, - 0x35, 0xb8, 0x80, 0x30, 0x51, 0x1c, 0x37, 0xb4, 0xfb, 0xad, 0x06, 0x27, 0x97, 0xf0, 0x59, 0x43, - 0x2b, 0xed, 0xb2, 0x5a, 0x93, 0xcf, 0x8e, 0x89, 0x37, 0x67, 0x0c, 0xed, 0x41, 0xe7, 0x51, 0x75, - 0xa1, 0x97, 0xf4, 0x19, 0x84, 0xa8, 0xdd, 0xc7, 0x17, 0x74, 0xef, 0x55, 0x29, 0x32, 0x5f, 0x2e, - 0xcb, 0x62, 0x16, 0x51, 0x03, 0x11, 0x9b, 0xd6, 0xc3, 0x64, 0xb5, 0x0a, 0xb5, 0x19, 0x61, 0x3f, - 0x81, 0xda, 0xf8, 0x15, 0xe1, 0xb9, 0x58, 0x53, 0x89, 0x3e, 0x8e, 0x3d, 0x9b, 0x8f, 0xc7, 0x56, - 0x13, 0x6b, 0xff, 0xce, 0xe0, 0xd3, 0xc2, 0x05, 0xd2, 0xc6, 0xe3, 0xde, 0x16, 0x4c, 0x16, 0x63, - 0x7a, 0x49, 0x64, 0xe1, 0x56, 0x96, 0x06, 0xf2, 0x79, 0x06, 0x55, 0xf5, 0xb3, 0xdf, 0xff, 0xfe, - 0x6a, 0x34, 0x4b, 0x14, 0x1a, 0xfb, 0x55, 0x43, 0xbe, 0x44, 0x78, 0x32, 0xb8, 0xef, 0xae, 0xc4, - 0x2a, 0xef, 0xdf, 0xc4, 0x95, 0x6b, 0xe9, 0x98, 0x01, 0xce, 0x92, 0x80, 0x93, 0x27, 0x73, 0x34, - 0xf9, 0xb3, 0x8e, 0x7c, 0x8d, 0xf0, 0x54, 0x70, 0xaf, 0x23, 0xf1, 0x76, 0x24, 0x6b, 0xb4, 0x72, - 0x3d, 0x25, 0x37, 0xc0, 0x5a, 0x15, 0xb0, 0x56, 0xc8, 0x15, 0x3a, 0xe8, 0xcb, 0x8d, 0xee, 0x89, - 0x8d, 0xbc, 0x4d, 0xbe, 0x41, 0x78, 0x3a, 0xb2, 0xbc, 0x12, 0x9a, 0xca, 0x6a, 0xef, 0x34, 0x28, - 0x37, 0xd2, 0x0b, 0x00, 0xd2, 0x2b, 0x02, 0xe9, 0x65, 0x92, 0x1f, 0x88, 0x94, 0x7c, 0x8b, 0xf0, - 0xd9, 0x6e, 0xd5, 0x2e, 0xc7, 0x5a, 0x8a, 0xf4, 0x22, 0xe5, 0x4a, 0x0a, 0x4e, 0x00, 0xf3, 0xa6, - 0x00, 0xf3, 0x1a, 0xb9, 0x49, 0x13, 0xbe, 0xaa, 0xe9, 0x5e, 0x17, 0x56, 0x9b, 0xee, 0x05, 0x17, - 0xe1, 0x36, 0xf9, 0x1c, 0xe1, 0xc9, 0xc0, 0xc9, 0x4d, 0xa8, 0xbc, 0xfe, 0x56, 0x92, 0x50, 0x79, - 0x92, 0x66, 0xa0, 0x2e, 0x08, 0xac, 0x39, 0x92, 0x4d, 0xc2, 0x4a, 0xf6, 0x11, 0x3e, 0x17, 0x5a, - 0x67, 0x48, 0x7c, 0x25, 0xc9, 0x36, 0x49, 0xa5, 0x90, 0x96, 0x1d, 0x60, 0xad, 0x0b, 0x58, 0xd7, - 0xc9, 0x0a, 0x1d, 0x78, 0x83, 0x41, 0xf7, 0xfc, 0xb0, 0xed, 0x23, 0x7c, 0x21, 0xba, 0xbb, 0x91, - 0x1b, 0xe9, 0x2c, 0x07, 0x02, 0xb8, 0x3a, 0x84, 0x04, 0xc0, 0xbd, 0x2a, 0xe0, 0x2e, 0x10, 0x75, - 0x30, 0x5c, 0xd1, 0xd5, 0xbc, 0xc5, 0x29, 0xa1, 0xab, 0x05, 0xb7, 0xb8, 0xa4, 0xae, 0x16, 0x5a, - 0xeb, 0x06, 0x74, 0x35, 0xcf, 0xe8, 0x4f, 0x08, 0xcf, 0xf4, 0x8d, 0x7a, 0x12, 0xef, 0x73, 0xdc, - 0x22, 0xa6, 0xac, 0x0d, 0x23, 0x02, 0x00, 0x6f, 0x0a, 0x80, 0xab, 0x84, 0xd2, 0x54, 0x77, 0x5d, - 0x74, 0xcf, 0x5b, 0xee, 0xda, 0x1d, 0xd4, 0x19, 0xd9, 0xba, 0x43, 0x5e, 0x49, 0x8f, 0x22, 0x90, - 0xe2, 0x57, 0x87, 0x94, 0x02, 0xf8, 0x05, 0x01, 0x7f, 0x99, 0x2c, 0xa6, 0x83, 0x4f, 0x7e, 0x43, - 0x78, 0x3a, 0x32, 0x3e, 0x13, 0x9a, 0xa1, 0x7c, 0x09, 0x4a, 0x68, 0x86, 0x31, 0x4b, 0x8c, 0xfa, - 0xbe, 0x80, 0x79, 0x87, 0xbc, 0x23, 0x83, 0x19, 0x1d, 0xfd, 0xe1, 0x3e, 0x04, 0x0b, 0x95, 0xf7, - 0x4f, 0x6c, 0x50, 0x6d, 0xf2, 0x3d, 0xc2, 0xa4, 0x7f, 0x9d, 0x20, 0x6b, 0x69, 0x71, 0x05, 0xe2, - 0xbe, 0x3e, 0x94, 0x0c, 0xb8, 0x73, 0x4d, 0xb8, 0xb3, 0x48, 0x16, 0xd2, 0xb8, 0x43, 0x7e, 0x41, - 0x38, 0x23, 0xbb, 0xe0, 0x4b, 0xa8, 0x94, 0x84, 0x3b, 0xc3, 0x84, 0x4a, 0x49, 0xba, 0x45, 0x1c, - 0x30, 0x39, 0xbb, 0x92, 0xa5, 0xde, 0xc5, 0xe2, 0xad, 0xf7, 0x0e, 0x0e, 0x73, 0xe8, 0xe9, 0x61, - 0x0e, 0xfd, 0x75, 0x98, 0x43, 0x5f, 0x1c, 0xe5, 0x46, 0x9e, 0x1e, 0xe5, 0x46, 0xfe, 0x38, 0xca, - 0x8d, 0x3c, 0xa2, 0xba, 0xe1, 0x56, 0x9b, 0xe5, 0x42, 0xc5, 0xaa, 0xd3, 0xdb, 0xcc, 0xb0, 0xc5, - 0xb0, 0x08, 0x28, 0x7e, 0xdc, 0x53, 0xdd, 0x49, 0x9e, 0x53, 0x1e, 0x17, 0x77, 0xa2, 0xeb, 0xff, - 0x05, 0x00, 0x00, 0xff, 0xff, 0x24, 0x76, 0x99, 0x96, 0xc5, 0x16, 0x00, 0x00, + 0x38, 0x65, 0x0d, 0x83, 0x32, 0xd3, 0xb4, 0x5c, 0x11, 0x3b, 0x30, 0xae, 0xaa, 0x78, 0xee, 0x41, + 0x27, 0xbc, 0x9b, 0xdc, 0x36, 0xb6, 0x0c, 0x56, 0xae, 0xf1, 0x22, 0x33, 0x35, 0xab, 0x6e, 0x72, + 0xc7, 0x29, 0xf2, 0x9d, 0x26, 0x77, 0x5c, 0xf5, 0x23, 0x9c, 0x4f, 0xe0, 0x71, 0x1a, 0x96, 0xe9, + 0x70, 0x92, 0xc3, 0xd8, 0xee, 0x52, 0x67, 0xd0, 0x1c, 0x5a, 0x9a, 0x28, 0x06, 0x28, 0x24, 0x83, + 0x4f, 0xdb, 0x56, 0xd3, 0xd4, 0x66, 0x46, 0xe7, 0xd0, 0xd2, 0xa9, 0xa2, 0xf7, 0xa0, 0x66, 0x30, + 0x11, 0xaa, 0xef, 0x8b, 0x80, 0xf8, 0x06, 0x37, 0xf0, 0x73, 0x21, 0x2a, 0x98, 0x78, 0x1d, 0x8f, + 0x7b, 0x81, 0x13, 0xea, 0x27, 0x57, 0x95, 0x42, 0x7f, 0x31, 0x15, 0x3c, 0x99, 0xdb, 0x13, 0x07, + 0x7f, 0xce, 0x8e, 0x7c, 0xf7, 0xcf, 0x8f, 0xd7, 0x50, 0x11, 0x84, 0xd4, 0xcb, 0xf8, 0x92, 0xd0, + 0xfa, 0x56, 0x2f, 0xdd, 0xbe, 0xc1, 0x27, 0x08, 0xcf, 0xf4, 0xbf, 0x03, 0xb3, 0x1f, 0x60, 0xc2, + 0x2a, 0xae, 0xb1, 0xcb, 0x4b, 0x81, 0x42, 0x01, 0x08, 0xb3, 0x32, 0x08, 0x41, 0x25, 0xd3, 0x9e, + 0x68, 0x80, 0xd4, 0xd1, 0xb7, 0xd3, 0xe4, 0x4d, 0xae, 0x85, 0xf4, 0x8d, 0xa6, 0xd4, 0xe7, 0x89, + 0x06, 0x48, 0xea, 0x4d, 0xc0, 0xbe, 0xe9, 0x97, 0xc4, 0x87, 0xdc, 0x05, 0xc7, 0x3a, 0x51, 0x37, + 0x4c, 0x8d, 0x3f, 0x86, 0x84, 0x78, 0x0f, 0x6a, 0x15, 0x5f, 0x96, 0x48, 0x80, 0xbb, 0xf7, 0xf0, + 0xf9, 0x50, 0x71, 0x81, 0xa7, 0x73, 0x32, 0x64, 0x41, 0x05, 0xb7, 0x4f, 0x75, 0x42, 0x5e, 0x3c, + 0xb7, 0x1b, 0xa0, 0xa9, 0x1c, 0xbf, 0xd8, 0x67, 0x69, 0xbd, 0x56, 0xf3, 0xe1, 0xdd, 0xc1, 0xb8, + 0x77, 0x9c, 0xc1, 0xd0, 0x42, 0xc1, 0x3b, 0xfb, 0x85, 0xce, 0xd9, 0x2f, 0x78, 0xbd, 0x03, 0xce, + 0x7e, 0xe1, 0x3e, 0xd3, 0x39, 0xc8, 0x16, 0x03, 0x92, 0xea, 0xcf, 0x08, 0x67, 0xe5, 0x76, 0xe2, + 0x9d, 0x1a, 0xfb, 0xbf, 0x4e, 0x91, 0xbb, 0x21, 0xd4, 0x5e, 0xe2, 0x16, 0x07, 0xa2, 0xf6, 0x90, + 0x84, 0x60, 0x3f, 0xc4, 0x19, 0x81, 0xfa, 0x1e, 0x98, 0xf6, 0xc3, 0x92, 0xc5, 0x13, 0x5d, 0x83, + 0x90, 0xb9, 0x1e, 0x81, 0xe4, 0xf1, 0xb9, 0x72, 0xcd, 0xaa, 0x6c, 0x97, 0xaa, 0xdc, 0xd0, 0xab, + 0x2e, 0x1c, 0xa8, 0x49, 0x41, 0x7b, 0x57, 0x90, 0xd4, 0x87, 0xf8, 0xf9, 0x88, 0x62, 0x88, 0xc3, + 0x1b, 0xf8, 0xac, 0xef, 0x27, 0x84, 0x3b, 0x2b, 0x0b, 0x81, 0x2f, 0x07, 0xee, 0x77, 0x65, 0x54, + 0x06, 0x67, 0xc8, 0x67, 0x38, 0x81, 0x5c, 0xee, 0xfb, 0x67, 0x31, 0x64, 0x43, 0x8a, 0x7f, 0x6c, + 0x58, 0xfc, 0xc7, 0x97, 0xba, 0x35, 0x38, 0x42, 0x6f, 0x77, 0xa7, 0xc2, 0x3d, 0xde, 0xf2, 0x43, + 0xf1, 0x02, 0x1e, 0x87, 0xdc, 0x20, 0x91, 0x1b, 0x78, 0x52, 0x6b, 0x58, 0x91, 0x09, 0x75, 0xfb, + 0xcc, 0x85, 0xf0, 0x8c, 0x81, 0x20, 0xe6, 0x65, 0x1e, 0x86, 0x54, 0x80, 0x9b, 0xe7, 0xb5, 0x20, + 0x51, 0xdd, 0x82, 0x33, 0x11, 0x62, 0x3d, 0x81, 0x84, 0x3d, 0x41, 0xf8, 0xa5, 0x18, 0x43, 0xe0, + 0xd9, 0x7d, 0x3c, 0x15, 0xf6, 0xcc, 0x81, 0xe4, 0xa5, 0x76, 0xed, 0x42, 0xc8, 0x35, 0xe7, 0xf8, + 0xf2, 0xd8, 0x1d, 0x40, 0x62, 0xe0, 0xfa, 0xf3, 0xe0, 0x07, 0xe4, 0x4f, 0x20, 0x20, 0xf7, 0xda, + 0x08, 0x8c, 0x02, 0x6f, 0x40, 0x27, 0xf5, 0xc6, 0x75, 0xc1, 0xe8, 0x29, 0xf0, 0xdb, 0x08, 0x0b, + 0xd0, 0x3a, 0xca, 0x60, 0x0e, 0x80, 0xb2, 0xd1, 0x78, 0x65, 0x0f, 0x04, 0x63, 0x58, 0xd9, 0x4e, + 0x80, 0xa6, 0xde, 0x82, 0x1c, 0xac, 0x77, 0x17, 0x9f, 0x75, 0x6f, 0xef, 0x09, 0xd4, 0xa4, 0xcb, + 0x6c, 0x1d, 0xfa, 0xf9, 0x44, 0x11, 0x9e, 0xd4, 0x4f, 0x71, 0x2e, 0x4e, 0x10, 0x9c, 0x7e, 0x84, + 0x49, 0xff, 0x3a, 0x05, 0x9e, 0xbf, 0x2c, 0xf5, 0x3c, 0xaa, 0x0a, 0x10, 0x4f, 0xb3, 0xe8, 0x0b, + 0xf5, 0x63, 0x58, 0x3f, 0xfa, 0x44, 0x4e, 0xa0, 0x4e, 0x0f, 0x10, 0xec, 0x31, 0x72, 0x63, 0x03, + 0xbc, 0x1d, 0x7b, 0x76, 0x6f, 0x8f, 0xaf, 0x6a, 0x2d, 0x18, 0xab, 0x77, 0xb9, 0xc9, 0x6d, 0x56, + 0x1b, 0x6e, 0x7e, 0x5c, 0xc2, 0x67, 0x0c, 0xad, 0xe4, 0xb6, 0x1a, 0x5c, 0x40, 0x98, 0x28, 0x8e, + 0x1b, 0xda, 0x46, 0xab, 0xc1, 0xc9, 0x65, 0x7c, 0xd6, 0xd0, 0x4a, 0xbb, 0xac, 0xd6, 0xe4, 0x33, + 0x63, 0xe2, 0xcd, 0x19, 0x43, 0xdb, 0xec, 0x3c, 0xaa, 0x2e, 0xf4, 0x92, 0x3e, 0x83, 0x10, 0xb5, + 0x0d, 0x7c, 0x51, 0xf7, 0x5e, 0x95, 0x22, 0xf3, 0xe5, 0x8a, 0x2c, 0x66, 0x11, 0x35, 0x10, 0xb1, + 0x29, 0x3d, 0x4c, 0x56, 0xab, 0x50, 0x9b, 0x11, 0xf6, 0x13, 0xa8, 0x8d, 0x5f, 0x11, 0x9e, 0x8d, + 0x35, 0x95, 0xe8, 0xe3, 0xd8, 0xb3, 0xf9, 0x78, 0x6c, 0x35, 0xb1, 0xfa, 0xef, 0x34, 0x3e, 0x2d, + 0x5c, 0x20, 0x6d, 0x3c, 0xee, 0x6d, 0xc1, 0x64, 0x21, 0xa6, 0x97, 0x44, 0x16, 0x6e, 0x65, 0x71, + 0x20, 0x9f, 0x67, 0x50, 0x55, 0x3f, 0xfb, 0xfd, 0xef, 0xaf, 0x46, 0xb3, 0x44, 0xa1, 0xb1, 0x5f, + 0x35, 0xe4, 0x4b, 0x84, 0x27, 0x83, 0xfb, 0xee, 0x72, 0xac, 0xf2, 0xfe, 0x4d, 0x5c, 0xb9, 0x9e, + 0x8e, 0x19, 0xe0, 0x2c, 0x0a, 0x38, 0x79, 0x32, 0x4b, 0x93, 0x3f, 0xeb, 0xc8, 0xd7, 0x08, 0x9f, + 0x0b, 0xee, 0x75, 0x24, 0xde, 0x8e, 0x64, 0x8d, 0x56, 0x6e, 0xa4, 0xe4, 0x06, 0x58, 0x2b, 0x02, + 0xd6, 0x32, 0xb9, 0x4a, 0x07, 0x7d, 0xb9, 0xd1, 0x3d, 0xb1, 0x91, 0xb7, 0xc9, 0x37, 0x08, 0x4f, + 0x45, 0x96, 0x57, 0x42, 0x53, 0x59, 0xed, 0x9d, 0x06, 0xe5, 0x66, 0x7a, 0x01, 0x40, 0x7a, 0x55, + 0x20, 0xbd, 0x42, 0xf2, 0x03, 0x91, 0x92, 0x6f, 0x11, 0x3e, 0xdb, 0xad, 0xda, 0xa5, 0x58, 0x4b, + 0x91, 0x5e, 0xa4, 0x5c, 0x4d, 0xc1, 0x09, 0x60, 0xde, 0x14, 0x60, 0x5e, 0x23, 0xb7, 0x68, 0xc2, + 0x57, 0x35, 0xdd, 0xeb, 0xc2, 0x6a, 0xd3, 0xbd, 0xe0, 0x22, 0xdc, 0x26, 0x9f, 0x23, 0x3c, 0x19, + 0x38, 0xb9, 0x09, 0x95, 0xd7, 0xdf, 0x4a, 0x12, 0x2a, 0x4f, 0xd2, 0x0c, 0xd4, 0x79, 0x81, 0x35, + 0x47, 0xb2, 0x49, 0x58, 0xc9, 0x3e, 0xc2, 0xe7, 0x43, 0xeb, 0x0c, 0x89, 0xaf, 0x24, 0xd9, 0x26, + 0xa9, 0x14, 0xd2, 0xb2, 0x03, 0xac, 0x35, 0x01, 0xeb, 0x06, 0x59, 0xa6, 0x03, 0x6f, 0x30, 0xe8, + 0x9e, 0x1f, 0xb6, 0x7d, 0x84, 0x2f, 0x46, 0x77, 0x37, 0x72, 0x33, 0x9d, 0xe5, 0x40, 0x00, 0x57, + 0x86, 0x90, 0x00, 0xb8, 0xd7, 0x04, 0xdc, 0x79, 0xa2, 0x0e, 0x86, 0x2b, 0xba, 0x9a, 0xb7, 0x38, + 0x25, 0x74, 0xb5, 0xe0, 0x16, 0x97, 0xd4, 0xd5, 0x42, 0x6b, 0xdd, 0x80, 0xae, 0xe6, 0x19, 0xfd, + 0x09, 0xe1, 0xe9, 0xbe, 0x51, 0x4f, 0xe2, 0x7d, 0x8e, 0x5b, 0xc4, 0x94, 0xd5, 0x61, 0x44, 0x00, + 0xe0, 0x2d, 0x01, 0x70, 0x85, 0x50, 0x9a, 0xea, 0xae, 0x8b, 0xee, 0x79, 0xcb, 0x5d, 0xbb, 0x83, + 0x3a, 0x23, 0x5b, 0x77, 0xc8, 0x2b, 0xe9, 0x51, 0x04, 0x52, 0xfc, 0xea, 0x90, 0x52, 0x00, 0xbf, + 0x20, 0xe0, 0x2f, 0x91, 0x85, 0x74, 0xf0, 0xc9, 0x6f, 0x08, 0x4f, 0x45, 0xc6, 0x67, 0x42, 0x33, + 0x94, 0x2f, 0x41, 0x09, 0xcd, 0x30, 0x66, 0x89, 0x51, 0xdf, 0x17, 0x30, 0xef, 0x92, 0x77, 0x64, + 0x30, 0xa3, 0xa3, 0x3f, 0xdc, 0x87, 0x60, 0xa1, 0xf2, 0xfe, 0x89, 0x0d, 0xaa, 0x4d, 0xbe, 0x47, + 0x98, 0xf4, 0xaf, 0x13, 0x64, 0x35, 0x2d, 0xae, 0x40, 0xdc, 0xd7, 0x86, 0x92, 0x01, 0x77, 0xae, + 0x0b, 0x77, 0x16, 0xc8, 0x7c, 0x1a, 0x77, 0xc8, 0x2f, 0x08, 0x67, 0x64, 0x17, 0x7c, 0x09, 0x95, + 0x92, 0x70, 0x67, 0x98, 0x50, 0x29, 0x49, 0xb7, 0x88, 0x03, 0x26, 0x67, 0x57, 0xb2, 0xd4, 0xbb, + 0x58, 0xbc, 0xfd, 0xde, 0xc1, 0x61, 0x0e, 0x3d, 0x3d, 0xcc, 0xa1, 0xbf, 0x0e, 0x73, 0xe8, 0x8b, + 0xa3, 0xdc, 0xc8, 0xd3, 0xa3, 0xdc, 0xc8, 0x1f, 0x47, 0xb9, 0x91, 0x47, 0x54, 0x37, 0xdc, 0x6a, + 0xb3, 0x5c, 0xa8, 0x58, 0x75, 0x7a, 0x87, 0x19, 0xb6, 0x18, 0x16, 0x01, 0xc5, 0x8f, 0x7b, 0xaa, + 0x3b, 0xc9, 0x73, 0xca, 0xe3, 0xe2, 0x4e, 0x74, 0xed, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x41, + 0x67, 0xc9, 0xe2, 0xc5, 0x16, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/keyshare/types/tx.pb.go b/x/keyshare/types/tx.pb.go index 702eded0..7be28bcd 100644 --- a/x/keyshare/types/tx.pb.go +++ b/x/keyshare/types/tx.pb.go @@ -468,8 +468,8 @@ func (m *MsgSendKeyshareResponse) GetErrorMessage() string { return "" } -// MsgCreateLatestPubKey is the Msg/CreateLatestPubKey request type. -type MsgCreateLatestPubKey struct { +// MsgCreateLatestPubkey is the Msg/CreateLatestPubkey request type. +type MsgCreateLatestPubkey struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Commitments []string `protobuf:"bytes,3,rep,name=commitments,proto3" json:"commitments,omitempty"` @@ -477,18 +477,18 @@ type MsgCreateLatestPubKey struct { EncryptedKeyshares []*EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` } -func (m *MsgCreateLatestPubKey) Reset() { *m = MsgCreateLatestPubKey{} } -func (m *MsgCreateLatestPubKey) String() string { return proto.CompactTextString(m) } -func (*MsgCreateLatestPubKey) ProtoMessage() {} -func (*MsgCreateLatestPubKey) Descriptor() ([]byte, []int) { +func (m *MsgCreateLatestPubkey) Reset() { *m = MsgCreateLatestPubkey{} } +func (m *MsgCreateLatestPubkey) String() string { return proto.CompactTextString(m) } +func (*MsgCreateLatestPubkey) ProtoMessage() {} +func (*MsgCreateLatestPubkey) Descriptor() ([]byte, []int) { return fileDescriptor_1f96ac6a55f1845c, []int{8} } -func (m *MsgCreateLatestPubKey) XXX_Unmarshal(b []byte) error { +func (m *MsgCreateLatestPubkey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgCreateLatestPubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgCreateLatestPubkey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgCreateLatestPubKey.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgCreateLatestPubkey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -498,70 +498,70 @@ func (m *MsgCreateLatestPubKey) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *MsgCreateLatestPubKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCreateLatestPubKey.Merge(m, src) +func (m *MsgCreateLatestPubkey) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateLatestPubkey.Merge(m, src) } -func (m *MsgCreateLatestPubKey) XXX_Size() int { +func (m *MsgCreateLatestPubkey) XXX_Size() int { return m.Size() } -func (m *MsgCreateLatestPubKey) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCreateLatestPubKey.DiscardUnknown(m) +func (m *MsgCreateLatestPubkey) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateLatestPubkey.DiscardUnknown(m) } -var xxx_messageInfo_MsgCreateLatestPubKey proto.InternalMessageInfo +var xxx_messageInfo_MsgCreateLatestPubkey proto.InternalMessageInfo -func (m *MsgCreateLatestPubKey) GetCreator() string { +func (m *MsgCreateLatestPubkey) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *MsgCreateLatestPubKey) GetPublicKey() string { +func (m *MsgCreateLatestPubkey) GetPublicKey() string { if m != nil { return m.PublicKey } return "" } -func (m *MsgCreateLatestPubKey) GetCommitments() []string { +func (m *MsgCreateLatestPubkey) GetCommitments() []string { if m != nil { return m.Commitments } return nil } -func (m *MsgCreateLatestPubKey) GetNumberOfValidators() uint64 { +func (m *MsgCreateLatestPubkey) GetNumberOfValidators() uint64 { if m != nil { return m.NumberOfValidators } return 0 } -func (m *MsgCreateLatestPubKey) GetEncryptedKeyshares() []*EncryptedKeyshare { +func (m *MsgCreateLatestPubkey) GetEncryptedKeyshares() []*EncryptedKeyshare { if m != nil { return m.EncryptedKeyshares } return nil } -// MsgCreateLatestPubKeyResponse defines the response structure for -// executing a MsgCreateLatestPubKey message. -type MsgCreateLatestPubKeyResponse struct { +// MsgCreateLatestPubkeyResponse defines the response structure for +// executing a MsgCreateLatestPubkey message. +type MsgCreateLatestPubkeyResponse struct { } -func (m *MsgCreateLatestPubKeyResponse) Reset() { *m = MsgCreateLatestPubKeyResponse{} } -func (m *MsgCreateLatestPubKeyResponse) String() string { return proto.CompactTextString(m) } -func (*MsgCreateLatestPubKeyResponse) ProtoMessage() {} -func (*MsgCreateLatestPubKeyResponse) Descriptor() ([]byte, []int) { +func (m *MsgCreateLatestPubkeyResponse) Reset() { *m = MsgCreateLatestPubkeyResponse{} } +func (m *MsgCreateLatestPubkeyResponse) String() string { return proto.CompactTextString(m) } +func (*MsgCreateLatestPubkeyResponse) ProtoMessage() {} +func (*MsgCreateLatestPubkeyResponse) Descriptor() ([]byte, []int) { return fileDescriptor_1f96ac6a55f1845c, []int{9} } -func (m *MsgCreateLatestPubKeyResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgCreateLatestPubkeyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgCreateLatestPubKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgCreateLatestPubkeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgCreateLatestPubKeyResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgCreateLatestPubkeyResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -571,20 +571,20 @@ func (m *MsgCreateLatestPubKeyResponse) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *MsgCreateLatestPubKeyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgCreateLatestPubKeyResponse.Merge(m, src) +func (m *MsgCreateLatestPubkeyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgCreateLatestPubkeyResponse.Merge(m, src) } -func (m *MsgCreateLatestPubKeyResponse) XXX_Size() int { +func (m *MsgCreateLatestPubkeyResponse) XXX_Size() int { return m.Size() } -func (m *MsgCreateLatestPubKeyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgCreateLatestPubKeyResponse.DiscardUnknown(m) +func (m *MsgCreateLatestPubkeyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgCreateLatestPubkeyResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgCreateLatestPubKeyResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgCreateLatestPubkeyResponse proto.InternalMessageInfo -// MsgOverrideLatestPubKey is the Msg/OverrideLatestPubKey request type. -type MsgOverrideLatestPubKey struct { +// MsgOverrideLatestPubkey is the Msg/OverrideLatestPubkey request type. +type MsgOverrideLatestPubkey struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` PublicKey string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Commitments []string `protobuf:"bytes,3,rep,name=commitments,proto3" json:"commitments,omitempty"` @@ -592,18 +592,18 @@ type MsgOverrideLatestPubKey struct { EncryptedKeyshares []*EncryptedKeyshare `protobuf:"bytes,5,rep,name=encrypted_keyshares,json=encryptedKeyshares,proto3" json:"encrypted_keyshares,omitempty"` } -func (m *MsgOverrideLatestPubKey) Reset() { *m = MsgOverrideLatestPubKey{} } -func (m *MsgOverrideLatestPubKey) String() string { return proto.CompactTextString(m) } -func (*MsgOverrideLatestPubKey) ProtoMessage() {} -func (*MsgOverrideLatestPubKey) Descriptor() ([]byte, []int) { +func (m *MsgOverrideLatestPubkey) Reset() { *m = MsgOverrideLatestPubkey{} } +func (m *MsgOverrideLatestPubkey) String() string { return proto.CompactTextString(m) } +func (*MsgOverrideLatestPubkey) ProtoMessage() {} +func (*MsgOverrideLatestPubkey) Descriptor() ([]byte, []int) { return fileDescriptor_1f96ac6a55f1845c, []int{10} } -func (m *MsgOverrideLatestPubKey) XXX_Unmarshal(b []byte) error { +func (m *MsgOverrideLatestPubkey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgOverrideLatestPubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgOverrideLatestPubkey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgOverrideLatestPubKey.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgOverrideLatestPubkey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -613,70 +613,70 @@ func (m *MsgOverrideLatestPubKey) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *MsgOverrideLatestPubKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgOverrideLatestPubKey.Merge(m, src) +func (m *MsgOverrideLatestPubkey) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgOverrideLatestPubkey.Merge(m, src) } -func (m *MsgOverrideLatestPubKey) XXX_Size() int { +func (m *MsgOverrideLatestPubkey) XXX_Size() int { return m.Size() } -func (m *MsgOverrideLatestPubKey) XXX_DiscardUnknown() { - xxx_messageInfo_MsgOverrideLatestPubKey.DiscardUnknown(m) +func (m *MsgOverrideLatestPubkey) XXX_DiscardUnknown() { + xxx_messageInfo_MsgOverrideLatestPubkey.DiscardUnknown(m) } -var xxx_messageInfo_MsgOverrideLatestPubKey proto.InternalMessageInfo +var xxx_messageInfo_MsgOverrideLatestPubkey proto.InternalMessageInfo -func (m *MsgOverrideLatestPubKey) GetCreator() string { +func (m *MsgOverrideLatestPubkey) GetCreator() string { if m != nil { return m.Creator } return "" } -func (m *MsgOverrideLatestPubKey) GetPublicKey() string { +func (m *MsgOverrideLatestPubkey) GetPublicKey() string { if m != nil { return m.PublicKey } return "" } -func (m *MsgOverrideLatestPubKey) GetCommitments() []string { +func (m *MsgOverrideLatestPubkey) GetCommitments() []string { if m != nil { return m.Commitments } return nil } -func (m *MsgOverrideLatestPubKey) GetNumberOfValidators() uint64 { +func (m *MsgOverrideLatestPubkey) GetNumberOfValidators() uint64 { if m != nil { return m.NumberOfValidators } return 0 } -func (m *MsgOverrideLatestPubKey) GetEncryptedKeyshares() []*EncryptedKeyshare { +func (m *MsgOverrideLatestPubkey) GetEncryptedKeyshares() []*EncryptedKeyshare { if m != nil { return m.EncryptedKeyshares } return nil } -// MsgOverrideLatestPubKeyResponse defines the response structure for -// executing a MsgOverrideLatestPubKey message. -type MsgOverrideLatestPubKeyResponse struct { +// MsgOverrideLatestPubkeyResponse defines the response structure for +// executing a MsgOverrideLatestPubkey message. +type MsgOverrideLatestPubkeyResponse struct { } -func (m *MsgOverrideLatestPubKeyResponse) Reset() { *m = MsgOverrideLatestPubKeyResponse{} } -func (m *MsgOverrideLatestPubKeyResponse) String() string { return proto.CompactTextString(m) } -func (*MsgOverrideLatestPubKeyResponse) ProtoMessage() {} -func (*MsgOverrideLatestPubKeyResponse) Descriptor() ([]byte, []int) { +func (m *MsgOverrideLatestPubkeyResponse) Reset() { *m = MsgOverrideLatestPubkeyResponse{} } +func (m *MsgOverrideLatestPubkeyResponse) String() string { return proto.CompactTextString(m) } +func (*MsgOverrideLatestPubkeyResponse) ProtoMessage() {} +func (*MsgOverrideLatestPubkeyResponse) Descriptor() ([]byte, []int) { return fileDescriptor_1f96ac6a55f1845c, []int{11} } -func (m *MsgOverrideLatestPubKeyResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgOverrideLatestPubkeyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgOverrideLatestPubKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgOverrideLatestPubkeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgOverrideLatestPubKeyResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgOverrideLatestPubkeyResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -686,17 +686,17 @@ func (m *MsgOverrideLatestPubKeyResponse) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (m *MsgOverrideLatestPubKeyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgOverrideLatestPubKeyResponse.Merge(m, src) +func (m *MsgOverrideLatestPubkeyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgOverrideLatestPubkeyResponse.Merge(m, src) } -func (m *MsgOverrideLatestPubKeyResponse) XXX_Size() int { +func (m *MsgOverrideLatestPubkeyResponse) XXX_Size() int { return m.Size() } -func (m *MsgOverrideLatestPubKeyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgOverrideLatestPubKeyResponse.DiscardUnknown(m) +func (m *MsgOverrideLatestPubkeyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgOverrideLatestPubkeyResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgOverrideLatestPubKeyResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgOverrideLatestPubkeyResponse proto.InternalMessageInfo // MsgCreateAuthorizedAddress is the Msg/CreateAuthorizedAddress request type. type MsgCreateAuthorizedAddress struct { @@ -1314,10 +1314,10 @@ func init() { proto.RegisterType((*MsgDeRegisterValidatorResponse)(nil), "fairyring.keyshare.MsgDeRegisterValidatorResponse") proto.RegisterType((*MsgSendKeyshare)(nil), "fairyring.keyshare.MsgSendKeyshare") proto.RegisterType((*MsgSendKeyshareResponse)(nil), "fairyring.keyshare.MsgSendKeyshareResponse") - proto.RegisterType((*MsgCreateLatestPubKey)(nil), "fairyring.keyshare.MsgCreateLatestPubKey") - proto.RegisterType((*MsgCreateLatestPubKeyResponse)(nil), "fairyring.keyshare.MsgCreateLatestPubKeyResponse") - proto.RegisterType((*MsgOverrideLatestPubKey)(nil), "fairyring.keyshare.MsgOverrideLatestPubKey") - proto.RegisterType((*MsgOverrideLatestPubKeyResponse)(nil), "fairyring.keyshare.MsgOverrideLatestPubKeyResponse") + proto.RegisterType((*MsgCreateLatestPubkey)(nil), "fairyring.keyshare.MsgCreateLatestPubkey") + proto.RegisterType((*MsgCreateLatestPubkeyResponse)(nil), "fairyring.keyshare.MsgCreateLatestPubkeyResponse") + proto.RegisterType((*MsgOverrideLatestPubkey)(nil), "fairyring.keyshare.MsgOverrideLatestPubkey") + proto.RegisterType((*MsgOverrideLatestPubkeyResponse)(nil), "fairyring.keyshare.MsgOverrideLatestPubkeyResponse") proto.RegisterType((*MsgCreateAuthorizedAddress)(nil), "fairyring.keyshare.MsgCreateAuthorizedAddress") proto.RegisterType((*MsgCreateAuthorizedAddressResponse)(nil), "fairyring.keyshare.MsgCreateAuthorizedAddressResponse") proto.RegisterType((*MsgUpdateAuthorizedAddress)(nil), "fairyring.keyshare.MsgUpdateAuthorizedAddress") @@ -1333,80 +1333,79 @@ func init() { func init() { proto.RegisterFile("fairyring/keyshare/tx.proto", fileDescriptor_1f96ac6a55f1845c) } var fileDescriptor_1f96ac6a55f1845c = []byte{ - // 1153 bytes of a gzipped FileDescriptorProto + // 1152 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0xcf, 0x6f, 0x1b, 0x45, - 0x14, 0xce, 0xda, 0x89, 0x1d, 0xbf, 0xb8, 0xa0, 0x6c, 0x92, 0x66, 0xb3, 0xb4, 0x8e, 0xeb, 0xb4, + 0x14, 0xce, 0xda, 0x89, 0x1d, 0xbf, 0xb8, 0xa0, 0x4c, 0xd3, 0x66, 0xb3, 0xb4, 0x8e, 0xeb, 0xb4, 0x92, 0x09, 0xd4, 0x6e, 0x53, 0x54, 0x50, 0x24, 0x10, 0x0d, 0xe5, 0x47, 0x55, 0xac, 0x56, 0xdb, - 0x92, 0x03, 0x42, 0xda, 0xae, 0xbd, 0x2f, 0x9b, 0x51, 0xbc, 0x5e, 0x33, 0x33, 0x1b, 0xc5, 0x70, - 0xa1, 0x1c, 0x2b, 0x0e, 0xfc, 0x01, 0x70, 0x45, 0x1c, 0x23, 0x81, 0xc4, 0x99, 0x5b, 0x8f, 0x15, - 0x27, 0x4e, 0x08, 0x25, 0x87, 0xfc, 0x1b, 0x68, 0x7f, 0xfa, 0xd7, 0x8e, 0xbd, 0x41, 0x20, 0x0e, - 0x5c, 0x12, 0xcf, 0x9b, 0x6f, 0xdf, 0x7c, 0xf3, 0xcd, 0xdb, 0xef, 0x8d, 0x0d, 0xaf, 0xec, 0x19, - 0x84, 0xf6, 0x28, 0xe9, 0x58, 0xf5, 0x03, 0xec, 0xb1, 0x7d, 0x83, 0x62, 0x9d, 0x1f, 0xd5, 0xba, - 0xd4, 0xe1, 0x8e, 0x2c, 0xc7, 0x93, 0xb5, 0x68, 0x52, 0x5d, 0x34, 0x6c, 0xd2, 0x71, 0xea, 0xfe, - 0xdf, 0x00, 0xa6, 0xae, 0xb6, 0x1c, 0x66, 0x3b, 0xac, 0x6e, 0x33, 0xab, 0x7e, 0x78, 0xd3, 0xfb, - 0x17, 0x4e, 0xac, 0x05, 0x13, 0xba, 0x3f, 0xaa, 0x07, 0x83, 0x70, 0x6a, 0x3d, 0x61, 0xdd, 0xae, - 0x41, 0x0d, 0x7b, 0x22, 0xc0, 0x6d, 0x1e, 0x60, 0x2f, 0x04, 0x2c, 0x5b, 0x8e, 0xe5, 0x04, 0x99, - 0xbd, 0x4f, 0x41, 0xb4, 0xf2, 0xab, 0x04, 0x2f, 0x37, 0x98, 0xf5, 0x49, 0xd7, 0x34, 0x38, 0x3e, - 0xf4, 0x13, 0xca, 0xb7, 0xa1, 0x60, 0xb8, 0x7c, 0xdf, 0xa1, 0x84, 0xf7, 0x14, 0xa9, 0x2c, 0x55, - 0x0b, 0x3b, 0xca, 0x6f, 0x3f, 0x5f, 0x5f, 0x0e, 0x09, 0xdd, 0x31, 0x4d, 0x8a, 0x8c, 0x3d, 0xe2, - 0xde, 0x62, 0x5a, 0x1f, 0x2a, 0xbf, 0x0d, 0xb9, 0x80, 0x92, 0x92, 0x29, 0x4b, 0xd5, 0x85, 0x2d, - 0xb5, 0x36, 0xae, 0x47, 0x2d, 0x58, 0x63, 0xa7, 0xf0, 0xfc, 0x8f, 0xf5, 0x99, 0x1f, 0xcf, 0x8e, - 0x37, 0x25, 0x2d, 0x7c, 0x68, 0xfb, 0xcd, 0xaf, 0xcf, 0x8e, 0x37, 0xfb, 0xe9, 0x9e, 0x9d, 0x1d, - 0x6f, 0x5e, 0xed, 0x6f, 0xea, 0xa8, 0xbf, 0xad, 0x11, 0xbe, 0x95, 0x35, 0x58, 0x1d, 0x09, 0x69, - 0xc8, 0xba, 0x4e, 0x87, 0x61, 0xe5, 0x1d, 0x58, 0x6e, 0x30, 0x4b, 0x43, 0x8b, 0x30, 0x8e, 0x74, - 0xd7, 0x68, 0x13, 0xd3, 0xe0, 0x0e, 0x95, 0x15, 0xc8, 0xb7, 0x28, 0x7a, 0x1f, 0x83, 0x0d, 0x6a, - 0xd1, 0x70, 0xbb, 0xe8, 0xb1, 0x88, 0x46, 0x95, 0xb7, 0xe0, 0x52, 0xd2, 0xf3, 0x51, 0x7e, 0x71, - 0x9e, 0xca, 0xbb, 0x70, 0xb1, 0xc1, 0xac, 0xbb, 0xf8, 0xf7, 0xd7, 0xde, 0x86, 0x52, 0x72, 0x86, - 0x14, 0xab, 0x7f, 0x1f, 0x1c, 0xeb, 0x23, 0xec, 0x98, 0xf7, 0x43, 0xd9, 0xc4, 0x68, 0x6f, 0xc6, - 0x46, 0xc6, 0x0c, 0x0b, 0xfd, 0x93, 0x2b, 0x68, 0xd1, 0x50, 0xbe, 0x06, 0x2f, 0x45, 0xb2, 0xeb, - 0xa4, 0x63, 0xe2, 0x91, 0x92, 0x2d, 0x4b, 0xd5, 0x59, 0xed, 0x42, 0x14, 0xbd, 0xe7, 0x05, 0xe5, - 0x2b, 0x50, 0x6c, 0xb6, 0x9d, 0xd6, 0x81, 0xbe, 0x8f, 0xc4, 0xda, 0xe7, 0xca, 0xac, 0x0f, 0x5a, - 0xf0, 0x63, 0x1f, 0xf9, 0xa1, 0x91, 0xbd, 0x7d, 0x93, 0xf1, 0xcf, 0x6c, 0x90, 0xdf, 0xf4, 0x5d, - 0xc9, 0x2a, 0xcc, 0x47, 0xeb, 0x86, 0x44, 0xe3, 0xf1, 0x3f, 0xc7, 0x54, 0xde, 0x82, 0x15, 0x8a, - 0x2d, 0x24, 0x87, 0x68, 0xea, 0x43, 0xd8, 0x39, 0x1f, 0xbb, 0x14, 0x4d, 0xee, 0x0c, 0x3c, 0xa3, - 0x40, 0x9e, 0xb9, 0xad, 0x16, 0x32, 0xa6, 0xe4, 0xca, 0x52, 0x75, 0x5e, 0x8b, 0x86, 0xf2, 0x06, - 0x5c, 0x40, 0x4a, 0x1d, 0xaa, 0x47, 0x0a, 0xe7, 0x7d, 0xe2, 0x45, 0x3f, 0xd8, 0x08, 0x62, 0x95, - 0x67, 0x19, 0x58, 0x69, 0x30, 0xeb, 0x3d, 0x6f, 0x9f, 0xf8, 0xb1, 0xc1, 0x91, 0xf1, 0x87, 0x6e, - 0xf3, 0x3e, 0xf6, 0x26, 0x88, 0x71, 0x19, 0xa0, 0xeb, 0x36, 0xdb, 0xa4, 0xa5, 0x1f, 0x60, 0x2f, - 0x94, 0xa3, 0x10, 0x44, 0xbc, 0x07, 0xcb, 0xb0, 0xd0, 0x72, 0x6c, 0x9b, 0x70, 0x1b, 0x3b, 0x9c, - 0x29, 0xd9, 0x72, 0xb6, 0x5a, 0xd0, 0x06, 0x43, 0xf2, 0x0d, 0x58, 0xee, 0xb8, 0x76, 0x13, 0xa9, - 0xee, 0xec, 0xe9, 0x87, 0x51, 0x71, 0xb1, 0x50, 0x12, 0x39, 0x98, 0x7b, 0xb0, 0x17, 0x97, 0x1d, - 0x93, 0x77, 0x61, 0x09, 0x3b, 0x2d, 0xda, 0xeb, 0x72, 0x34, 0xf5, 0x48, 0x57, 0xa6, 0xcc, 0x95, - 0xb3, 0xd5, 0x85, 0xad, 0x6b, 0x49, 0x6f, 0xfb, 0xfb, 0x11, 0x3c, 0x3e, 0x65, 0x19, 0x47, 0x43, - 0x6c, 0xa4, 0x36, 0xd6, 0xe1, 0x72, 0xa2, 0x16, 0xf1, 0x4b, 0x1d, 0x16, 0xcf, 0x83, 0x43, 0xa4, - 0x94, 0x98, 0xff, 0x7b, 0xbd, 0xae, 0xc0, 0xba, 0x40, 0x8d, 0x58, 0xb1, 0xcf, 0x40, 0x8d, 0x25, - 0xbd, 0x13, 0x18, 0xec, 0x17, 0x68, 0x86, 0x46, 0x2e, 0x5f, 0x84, 0x1c, 0x37, 0xa8, 0x85, 0x3c, - 0x94, 0x2c, 0x1c, 0x0d, 0x6a, 0x99, 0x99, 0x64, 0x54, 0x57, 0xa1, 0x22, 0xce, 0x1e, 0x73, 0x78, - 0x2a, 0xf9, 0x24, 0x02, 0x9b, 0x4e, 0x4f, 0x62, 0x03, 0x2e, 0x10, 0xa6, 0x1b, 0x31, 0xde, 0xa7, - 0x32, 0xaf, 0x15, 0x09, 0xeb, 0xe7, 0x18, 0x64, 0x9a, 0x9d, 0xce, 0x54, 0x40, 0x61, 0x44, 0xad, - 0xbb, 0xd8, 0xc6, 0x7f, 0x4f, 0x2d, 0x41, 0xf6, 0x98, 0xc3, 0x77, 0x19, 0x50, 0x3c, 0x83, 0x74, - 0x9b, 0x36, 0xe1, 0x1f, 0x62, 0x07, 0xa9, 0xd1, 0x4e, 0xe1, 0xe4, 0xab, 0x90, 0x27, 0xa6, 0xce, - 0x7b, 0xdd, 0xc8, 0x20, 0x73, 0xc4, 0x7c, 0xdc, 0xeb, 0xa2, 0xbc, 0x06, 0xf3, 0xc4, 0xf4, 0xaa, - 0xd6, 0xc5, 0x48, 0x22, 0x62, 0xee, 0x7a, 0xc3, 0x21, 0x57, 0x9d, 0x9d, 0xea, 0xaa, 0x73, 0x49, - 0xae, 0x7a, 0x1d, 0xe4, 0xd8, 0x32, 0x39, 0xb1, 0x91, 0x71, 0xc3, 0xee, 0xfa, 0x4e, 0x38, 0xab, - 0x2d, 0x46, 0x33, 0x8f, 0xa3, 0x09, 0xb1, 0xc3, 0xe6, 0x85, 0x0e, 0x3b, 0x22, 0xe2, 0x0f, 0x19, - 0x28, 0x8b, 0xe4, 0x49, 0xd1, 0x48, 0xfe, 0x23, 0x99, 0x84, 0xfb, 0xce, 0xa5, 0xea, 0x2c, 0xf9, - 0x29, 0x9d, 0x65, 0x3e, 0xa1, 0xb3, 0xfc, 0x92, 0xf1, 0x8b, 0x39, 0x10, 0x6a, 0xcc, 0x5d, 0x26, - 0xf7, 0x5a, 0x62, 0x62, 0x87, 0x7b, 0x77, 0xc0, 0xb0, 0xd7, 0x46, 0x63, 0xef, 0xb8, 0xc7, 0x7d, - 0x2d, 0xd4, 0x6b, 0x71, 0xcc, 0xaf, 0x12, 0xd4, 0x99, 0x4d, 0x5f, 0x44, 0x73, 0xe7, 0x2e, 0xa2, - 0x09, 0x62, 0x5e, 0x82, 0x02, 0xc5, 0xcf, 0x5d, 0xf4, 0xae, 0x53, 0x61, 0x23, 0xee, 0x07, 0x12, - 0xdf, 0x53, 0x81, 0x70, 0x51, 0x8d, 0x6d, 0xfd, 0x04, 0x90, 0x6d, 0x30, 0x4b, 0x7e, 0x02, 0xc5, - 0xa1, 0x3b, 0xf4, 0x46, 0x92, 0xbb, 0x8f, 0xdc, 0x52, 0xd5, 0xd7, 0x52, 0x80, 0xe2, 0x6a, 0x76, - 0x60, 0x71, 0xfc, 0x2e, 0x59, 0x15, 0x64, 0x18, 0x43, 0xaa, 0x37, 0xd2, 0x22, 0xe3, 0x05, 0x5d, - 0x58, 0x4a, 0xba, 0xbe, 0x6e, 0x0a, 0x12, 0x25, 0x60, 0xd5, 0xad, 0xf4, 0xd8, 0x78, 0xd9, 0x27, - 0x50, 0x1c, 0xba, 0xb6, 0x8a, 0x94, 0x1c, 0x04, 0x09, 0x95, 0x4c, 0xbc, 0x60, 0x52, 0x90, 0x13, - 0x6e, 0x5a, 0xaf, 0x0a, 0x52, 0x8c, 0x43, 0xd5, 0x9b, 0xa9, 0xa1, 0xf1, 0x9a, 0x47, 0xb0, 0x9c, - 0x78, 0x5f, 0x11, 0x11, 0x4f, 0x02, 0xab, 0xb7, 0xce, 0x01, 0x8e, 0x57, 0x7e, 0x2a, 0xc1, 0xaa, - 0xa8, 0xf3, 0xd7, 0x26, 0x6e, 0x64, 0x0c, 0xaf, 0xde, 0x3e, 0x1f, 0x7e, 0x88, 0x83, 0xa8, 0xf1, - 0xd7, 0x26, 0xbe, 0x04, 0xe9, 0x39, 0x4c, 0xe9, 0xea, 0x3e, 0x07, 0x51, 0x4f, 0xaf, 0x09, 0xeb, - 0x34, 0x11, 0x2f, 0xe4, 0x30, 0xa5, 0xab, 0xcb, 0x5f, 0xc2, 0x4a, 0x72, 0x47, 0x7f, 0x5d, 0x54, - 0xbf, 0x49, 0x68, 0xf5, 0x8d, 0xf3, 0xa0, 0x87, 0x04, 0x10, 0xf5, 0x81, 0xda, 0xc4, 0x8c, 0x63, - 0x78, 0xa1, 0x00, 0x53, 0xec, 0x52, 0x9d, 0xfb, 0xca, 0xfb, 0xca, 0xbf, 0x73, 0xef, 0xf9, 0x49, - 0x49, 0x7a, 0x71, 0x52, 0x92, 0xfe, 0x3c, 0x29, 0x49, 0xdf, 0x9e, 0x96, 0x66, 0x5e, 0x9c, 0x96, - 0x66, 0x7e, 0x3f, 0x2d, 0xcd, 0x7c, 0x5a, 0xb7, 0x08, 0xdf, 0x77, 0x9b, 0xb5, 0x96, 0x63, 0xd7, - 0x3f, 0x30, 0x08, 0xf5, 0x9d, 0xbd, 0x9e, 0xf8, 0x33, 0x80, 0xd7, 0xbe, 0x59, 0x33, 0xe7, 0xff, - 0x8e, 0x71, 0xeb, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x76, 0xc6, 0xe6, 0xa7, 0x99, 0x11, 0x00, - 0x00, + 0x92, 0x03, 0x42, 0xda, 0xae, 0xbd, 0x2f, 0x9b, 0x51, 0xb2, 0x5e, 0x33, 0x33, 0x8e, 0x62, 0xb8, + 0x50, 0x8e, 0x15, 0x07, 0xfe, 0x00, 0xb8, 0x22, 0x8e, 0x91, 0x40, 0xe2, 0xcc, 0xad, 0xc7, 0x8a, + 0x13, 0x27, 0x84, 0x92, 0x43, 0xfe, 0x0d, 0xb4, 0x3f, 0xfd, 0x6b, 0xc7, 0xde, 0x20, 0x10, 0x07, + 0x2e, 0x89, 0xe7, 0xcd, 0xb7, 0x6f, 0xbe, 0xf9, 0xf6, 0xcd, 0xf7, 0xc6, 0x86, 0x57, 0x76, 0x4c, + 0xca, 0x7a, 0x8c, 0xb6, 0xed, 0xfa, 0x1e, 0xf6, 0xf8, 0xae, 0xc9, 0xb0, 0x2e, 0x0e, 0x6b, 0x1d, + 0xe6, 0x0a, 0x97, 0x90, 0x78, 0xb2, 0x16, 0x4d, 0x6a, 0x8b, 0xa6, 0x43, 0xdb, 0x6e, 0xdd, 0xff, + 0x1b, 0xc0, 0xb4, 0xe5, 0x96, 0xcb, 0x1d, 0x97, 0xd7, 0x1d, 0x6e, 0xd7, 0x0f, 0x6e, 0x7a, 0xff, + 0xc2, 0x89, 0x95, 0x60, 0xc2, 0xf0, 0x47, 0xf5, 0x60, 0x10, 0x4e, 0xad, 0x26, 0xac, 0xdb, 0x31, + 0x99, 0xe9, 0x4c, 0x04, 0x74, 0x9b, 0x7b, 0xd8, 0x0b, 0x01, 0x4b, 0xb6, 0x6b, 0xbb, 0x41, 0x66, + 0xef, 0x53, 0x10, 0xad, 0xfc, 0xaa, 0xc0, 0xcb, 0x0d, 0x6e, 0x7f, 0xd2, 0xb1, 0x4c, 0x81, 0x0f, + 0xfd, 0x84, 0xe4, 0x36, 0x14, 0xcc, 0xae, 0xd8, 0x75, 0x19, 0x15, 0x3d, 0x55, 0x29, 0x2b, 0xd5, + 0xc2, 0x96, 0xfa, 0xdb, 0xcf, 0xd7, 0x97, 0x42, 0x42, 0x77, 0x2c, 0x8b, 0x21, 0xe7, 0x8f, 0x84, + 0xb7, 0x98, 0xde, 0x87, 0x92, 0xb7, 0x21, 0x17, 0x50, 0x52, 0x33, 0x65, 0xa5, 0xba, 0xb0, 0xa1, + 0xd5, 0xc6, 0xf5, 0xa8, 0x05, 0x6b, 0x6c, 0x15, 0x9e, 0xff, 0xb1, 0x3a, 0xf3, 0xe3, 0xe9, 0xd1, + 0xba, 0xa2, 0x87, 0x0f, 0x6d, 0xbe, 0xf9, 0xf5, 0xe9, 0xd1, 0x7a, 0x3f, 0xdd, 0xb3, 0xd3, 0xa3, + 0xf5, 0xab, 0xfd, 0x4d, 0x1d, 0xf6, 0xb7, 0x35, 0xc2, 0xb7, 0xb2, 0x02, 0xcb, 0x23, 0x21, 0x1d, + 0x79, 0xc7, 0x6d, 0x73, 0xac, 0xbc, 0x03, 0x4b, 0x0d, 0x6e, 0xeb, 0x68, 0x53, 0x2e, 0x90, 0x6d, + 0x9b, 0xfb, 0xd4, 0x32, 0x85, 0xcb, 0x88, 0x0a, 0xf9, 0x16, 0x43, 0xef, 0x63, 0xb0, 0x41, 0x3d, + 0x1a, 0x6e, 0x16, 0x3d, 0x16, 0xd1, 0xa8, 0xf2, 0x16, 0x5c, 0x4a, 0x7a, 0x3e, 0xca, 0x2f, 0xcf, + 0x53, 0x79, 0x17, 0x2e, 0x36, 0xb8, 0x7d, 0x17, 0xff, 0xfe, 0xda, 0x9b, 0x50, 0x4a, 0xce, 0x90, + 0x62, 0xf5, 0xef, 0x83, 0xd7, 0xfa, 0x08, 0xdb, 0xd6, 0xfd, 0x50, 0x36, 0x39, 0xda, 0x9b, 0x71, + 0x90, 0x73, 0xd3, 0x46, 0xff, 0xcd, 0x15, 0xf4, 0x68, 0x48, 0xae, 0xc1, 0x4b, 0x91, 0xec, 0x06, + 0x6d, 0x5b, 0x78, 0xa8, 0x66, 0xcb, 0x4a, 0x75, 0x56, 0x3f, 0x17, 0x45, 0xef, 0x79, 0x41, 0x72, + 0x05, 0x8a, 0xcd, 0x7d, 0xb7, 0xb5, 0x67, 0xec, 0x22, 0xb5, 0x77, 0x85, 0x3a, 0xeb, 0x83, 0x16, + 0xfc, 0xd8, 0x47, 0x7e, 0x68, 0x64, 0x6f, 0xdf, 0x64, 0xfc, 0x77, 0x36, 0xc8, 0x6f, 0xfa, 0xae, + 0x88, 0x06, 0xf3, 0xd1, 0xba, 0x21, 0xd1, 0x78, 0xfc, 0xcf, 0x31, 0x25, 0x1b, 0x70, 0x81, 0x61, + 0x0b, 0xe9, 0x01, 0x5a, 0xc6, 0x10, 0x76, 0xce, 0xc7, 0x9e, 0x8f, 0x26, 0xb7, 0x06, 0x9e, 0x51, + 0x21, 0xcf, 0xbb, 0xad, 0x16, 0x72, 0xae, 0xe6, 0xca, 0x4a, 0x75, 0x5e, 0x8f, 0x86, 0x64, 0x0d, + 0xce, 0x21, 0x63, 0x2e, 0x33, 0x22, 0x85, 0xf3, 0x3e, 0xf1, 0xa2, 0x1f, 0x6c, 0x04, 0xb1, 0xca, + 0xb3, 0x0c, 0x5c, 0x68, 0x70, 0xfb, 0x3d, 0x6f, 0x9f, 0xf8, 0xb1, 0x29, 0x90, 0x8b, 0x87, 0xfe, + 0xd9, 0x9d, 0x20, 0xc6, 0x65, 0x80, 0x4e, 0xb7, 0xb9, 0x4f, 0x5b, 0xc6, 0x1e, 0xf6, 0x42, 0x39, + 0x0a, 0x41, 0xe4, 0x3e, 0xf6, 0x48, 0x19, 0x16, 0x5a, 0xae, 0xe3, 0x50, 0xe1, 0x60, 0x5b, 0x70, + 0x35, 0x5b, 0xce, 0x56, 0x0b, 0xfa, 0x60, 0x88, 0xdc, 0x80, 0xa5, 0x76, 0xd7, 0x69, 0x22, 0x33, + 0xdc, 0x1d, 0xe3, 0x20, 0x2a, 0x2e, 0x1e, 0x4a, 0x42, 0x82, 0xb9, 0x07, 0x3b, 0x71, 0xd9, 0x71, + 0xb2, 0x0d, 0xe7, 0xb1, 0xdd, 0x62, 0xbd, 0x8e, 0x40, 0xcb, 0x88, 0x74, 0xe5, 0xea, 0x5c, 0x39, + 0x5b, 0x5d, 0xd8, 0xb8, 0x96, 0x74, 0xda, 0xdf, 0x8f, 0xe0, 0xf1, 0x5b, 0x26, 0x38, 0x1a, 0xe2, + 0x23, 0xb5, 0xb1, 0x0a, 0x97, 0x13, 0xb5, 0x88, 0x0f, 0x75, 0x58, 0x3c, 0x0f, 0x0e, 0x90, 0x31, + 0x6a, 0xfd, 0xef, 0xf5, 0xba, 0x02, 0xab, 0x12, 0x35, 0x62, 0xc5, 0x3e, 0x03, 0x2d, 0x96, 0xf4, + 0x4e, 0x60, 0xb0, 0x5f, 0xa0, 0x15, 0x1a, 0x39, 0xb9, 0x08, 0x39, 0x61, 0x32, 0x1b, 0x45, 0x28, + 0x59, 0x38, 0x1a, 0xd4, 0x32, 0x33, 0xc9, 0xa8, 0xae, 0x42, 0x45, 0x9e, 0x3d, 0xe6, 0xf0, 0x54, + 0xf1, 0x49, 0x04, 0x36, 0x9d, 0x9e, 0xc4, 0x1a, 0x9c, 0xa3, 0xdc, 0x30, 0x63, 0xbc, 0x4f, 0x65, + 0x5e, 0x2f, 0x52, 0xde, 0xcf, 0x31, 0xc8, 0x34, 0x3b, 0x9d, 0xa9, 0x84, 0xc2, 0x88, 0x5a, 0x77, + 0x71, 0x1f, 0xff, 0x3d, 0xb5, 0x24, 0xd9, 0x63, 0x0e, 0xdf, 0x65, 0x40, 0xf5, 0x0c, 0xb2, 0xdb, + 0x74, 0xa8, 0xf8, 0x10, 0xdb, 0xc8, 0xcc, 0xfd, 0x14, 0x4e, 0xbe, 0x0c, 0x79, 0x6a, 0x19, 0xa2, + 0xd7, 0x89, 0x0c, 0x32, 0x47, 0xad, 0xc7, 0xbd, 0x0e, 0x92, 0x15, 0x98, 0xa7, 0x96, 0x57, 0xb5, + 0x5d, 0x8c, 0x24, 0xa2, 0xd6, 0xb6, 0x37, 0x1c, 0x72, 0xd5, 0xd9, 0xa9, 0xae, 0x3a, 0x97, 0xe4, + 0xaa, 0xd7, 0x81, 0xc4, 0x96, 0x29, 0xa8, 0x83, 0x5c, 0x98, 0x4e, 0xc7, 0x77, 0xc2, 0x59, 0x7d, + 0x31, 0x9a, 0x79, 0x1c, 0x4d, 0xc8, 0x1d, 0x36, 0x2f, 0x75, 0xd8, 0x11, 0x11, 0x7f, 0xc8, 0x40, + 0x59, 0x26, 0x4f, 0x8a, 0x46, 0xf2, 0x1f, 0xc9, 0x24, 0xdd, 0x77, 0x2e, 0x55, 0x67, 0xc9, 0x4f, + 0xe9, 0x2c, 0xf3, 0x09, 0x9d, 0xe5, 0x97, 0x8c, 0x5f, 0xcc, 0x81, 0x50, 0x63, 0xee, 0x32, 0xb9, + 0xd7, 0x52, 0x0b, 0xdb, 0xc2, 0xbb, 0x03, 0x86, 0xbd, 0x36, 0x1a, 0x7b, 0xaf, 0x7b, 0xdc, 0xd7, + 0x42, 0xbd, 0x16, 0xc7, 0xfc, 0x2a, 0x41, 0x9d, 0xd9, 0xf4, 0x45, 0x34, 0x77, 0xe6, 0x22, 0x9a, + 0x20, 0xe6, 0x25, 0x28, 0x30, 0xfc, 0xbc, 0x8b, 0xde, 0x75, 0x2a, 0x6c, 0xc4, 0xfd, 0x40, 0xe2, + 0x39, 0x95, 0x08, 0x17, 0xd5, 0xd8, 0xc6, 0x4f, 0x00, 0xd9, 0x06, 0xb7, 0xc9, 0x13, 0x28, 0x0e, + 0xdd, 0xa1, 0xd7, 0x92, 0xdc, 0x7d, 0xe4, 0x96, 0xaa, 0xbd, 0x96, 0x02, 0x14, 0x57, 0xb3, 0x0b, + 0x8b, 0xe3, 0x77, 0xc9, 0xaa, 0x24, 0xc3, 0x18, 0x52, 0xbb, 0x91, 0x16, 0x19, 0x2f, 0xd8, 0x85, + 0xf3, 0x49, 0xd7, 0xd7, 0x75, 0x49, 0xa2, 0x04, 0xac, 0xb6, 0x91, 0x1e, 0x1b, 0x2f, 0xfb, 0x04, + 0x8a, 0x43, 0xd7, 0x56, 0x99, 0x92, 0x83, 0x20, 0xa9, 0x92, 0x89, 0x17, 0x4c, 0x06, 0x24, 0xe1, + 0xa6, 0xf5, 0xaa, 0x24, 0xc5, 0x38, 0x54, 0xbb, 0x99, 0x1a, 0x1a, 0xaf, 0x79, 0x08, 0x4b, 0x89, + 0xf7, 0x15, 0x19, 0xf1, 0x24, 0xb0, 0x76, 0xeb, 0x0c, 0xe0, 0x78, 0xe5, 0xa7, 0x0a, 0x2c, 0xcb, + 0x3a, 0x7f, 0x6d, 0xe2, 0x46, 0xc6, 0xf0, 0xda, 0xed, 0xb3, 0xe1, 0x87, 0x38, 0xc8, 0x1a, 0x7f, + 0x6d, 0xe2, 0x21, 0x48, 0xcf, 0x61, 0x4a, 0x57, 0xf7, 0x39, 0xc8, 0x7a, 0x7a, 0x4d, 0x5a, 0xa7, + 0x89, 0x78, 0x29, 0x87, 0x29, 0x5d, 0x9d, 0x7c, 0x09, 0x17, 0x92, 0x3b, 0xfa, 0xeb, 0xb2, 0xfa, + 0x4d, 0x42, 0x6b, 0x6f, 0x9c, 0x05, 0x3d, 0x24, 0x80, 0xac, 0x0f, 0xd4, 0x26, 0x66, 0x1c, 0xc3, + 0x4b, 0x05, 0x98, 0x62, 0x97, 0xda, 0xdc, 0x57, 0xde, 0x57, 0xfe, 0xad, 0x7b, 0xcf, 0x8f, 0x4b, + 0xca, 0x8b, 0xe3, 0x92, 0xf2, 0xe7, 0x71, 0x49, 0xf9, 0xf6, 0xa4, 0x34, 0xf3, 0xe2, 0xa4, 0x34, + 0xf3, 0xfb, 0x49, 0x69, 0xe6, 0xd3, 0xba, 0x4d, 0xc5, 0x6e, 0xb7, 0x59, 0x6b, 0xb9, 0x4e, 0xfd, + 0x03, 0x93, 0x32, 0xdf, 0xd9, 0xeb, 0x89, 0x3f, 0x03, 0x78, 0xed, 0x9b, 0x37, 0x73, 0xfe, 0xef, + 0x18, 0xb7, 0xfe, 0x0a, 0x00, 0x00, 0xff, 0xff, 0xe6, 0x4f, 0x05, 0xe6, 0x99, 0x11, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1433,11 +1432,11 @@ type MsgClient interface { // SendKeyshare defines an operation to submit keyshares // every block from registered validators SendKeyshare(ctx context.Context, in *MsgSendKeyshare, opts ...grpc.CallOption) (*MsgSendKeyshareResponse, error) - // CreateLatestPubKey defines an operation to add a + // CreateLatestPubkey defines an operation to add a // public key to the chain (can only be done by an authorized address) - CreateLatestPubKey(ctx context.Context, in *MsgCreateLatestPubKey, opts ...grpc.CallOption) (*MsgCreateLatestPubKeyResponse, error) - // OverrideLatestPubKey defines an operation to override the current active pubkey - OverrideLatestPubKey(ctx context.Context, in *MsgOverrideLatestPubKey, opts ...grpc.CallOption) (*MsgOverrideLatestPubKeyResponse, error) + CreateLatestPubkey(ctx context.Context, in *MsgCreateLatestPubkey, opts ...grpc.CallOption) (*MsgCreateLatestPubkeyResponse, error) + // OverrideLatestPubkey defines an operation to override the current active pubkey + OverrideLatestPubkey(ctx context.Context, in *MsgOverrideLatestPubkey, opts ...grpc.CallOption) (*MsgOverrideLatestPubkeyResponse, error) // CreateAuthorizedAddress defines an operation to mark an address // as authorized to create and/or update pubkeys on the chain CreateAuthorizedAddress(ctx context.Context, in *MsgCreateAuthorizedAddress, opts ...grpc.CallOption) (*MsgCreateAuthorizedAddressResponse, error) @@ -1499,18 +1498,18 @@ func (c *msgClient) SendKeyshare(ctx context.Context, in *MsgSendKeyshare, opts return out, nil } -func (c *msgClient) CreateLatestPubKey(ctx context.Context, in *MsgCreateLatestPubKey, opts ...grpc.CallOption) (*MsgCreateLatestPubKeyResponse, error) { - out := new(MsgCreateLatestPubKeyResponse) - err := c.cc.Invoke(ctx, "/fairyring.keyshare.Msg/CreateLatestPubKey", in, out, opts...) +func (c *msgClient) CreateLatestPubkey(ctx context.Context, in *MsgCreateLatestPubkey, opts ...grpc.CallOption) (*MsgCreateLatestPubkeyResponse, error) { + out := new(MsgCreateLatestPubkeyResponse) + err := c.cc.Invoke(ctx, "/fairyring.keyshare.Msg/CreateLatestPubkey", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *msgClient) OverrideLatestPubKey(ctx context.Context, in *MsgOverrideLatestPubKey, opts ...grpc.CallOption) (*MsgOverrideLatestPubKeyResponse, error) { - out := new(MsgOverrideLatestPubKeyResponse) - err := c.cc.Invoke(ctx, "/fairyring.keyshare.Msg/OverrideLatestPubKey", in, out, opts...) +func (c *msgClient) OverrideLatestPubkey(ctx context.Context, in *MsgOverrideLatestPubkey, opts ...grpc.CallOption) (*MsgOverrideLatestPubkeyResponse, error) { + out := new(MsgOverrideLatestPubkeyResponse) + err := c.cc.Invoke(ctx, "/fairyring.keyshare.Msg/OverrideLatestPubkey", in, out, opts...) if err != nil { return nil, err } @@ -1576,11 +1575,11 @@ type MsgServer interface { // SendKeyshare defines an operation to submit keyshares // every block from registered validators SendKeyshare(context.Context, *MsgSendKeyshare) (*MsgSendKeyshareResponse, error) - // CreateLatestPubKey defines an operation to add a + // CreateLatestPubkey defines an operation to add a // public key to the chain (can only be done by an authorized address) - CreateLatestPubKey(context.Context, *MsgCreateLatestPubKey) (*MsgCreateLatestPubKeyResponse, error) - // OverrideLatestPubKey defines an operation to override the current active pubkey - OverrideLatestPubKey(context.Context, *MsgOverrideLatestPubKey) (*MsgOverrideLatestPubKeyResponse, error) + CreateLatestPubkey(context.Context, *MsgCreateLatestPubkey) (*MsgCreateLatestPubkeyResponse, error) + // OverrideLatestPubkey defines an operation to override the current active pubkey + OverrideLatestPubkey(context.Context, *MsgOverrideLatestPubkey) (*MsgOverrideLatestPubkeyResponse, error) // CreateAuthorizedAddress defines an operation to mark an address // as authorized to create and/or update pubkeys on the chain CreateAuthorizedAddress(context.Context, *MsgCreateAuthorizedAddress) (*MsgCreateAuthorizedAddressResponse, error) @@ -1614,11 +1613,11 @@ func (*UnimplementedMsgServer) DeRegisterValidator(ctx context.Context, req *Msg func (*UnimplementedMsgServer) SendKeyshare(ctx context.Context, req *MsgSendKeyshare) (*MsgSendKeyshareResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SendKeyshare not implemented") } -func (*UnimplementedMsgServer) CreateLatestPubKey(ctx context.Context, req *MsgCreateLatestPubKey) (*MsgCreateLatestPubKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateLatestPubKey not implemented") +func (*UnimplementedMsgServer) CreateLatestPubkey(ctx context.Context, req *MsgCreateLatestPubkey) (*MsgCreateLatestPubkeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateLatestPubkey not implemented") } -func (*UnimplementedMsgServer) OverrideLatestPubKey(ctx context.Context, req *MsgOverrideLatestPubKey) (*MsgOverrideLatestPubKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method OverrideLatestPubKey not implemented") +func (*UnimplementedMsgServer) OverrideLatestPubkey(ctx context.Context, req *MsgOverrideLatestPubkey) (*MsgOverrideLatestPubkeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OverrideLatestPubkey not implemented") } func (*UnimplementedMsgServer) CreateAuthorizedAddress(ctx context.Context, req *MsgCreateAuthorizedAddress) (*MsgCreateAuthorizedAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateAuthorizedAddress not implemented") @@ -1712,38 +1711,38 @@ func _Msg_SendKeyshare_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } -func _Msg_CreateLatestPubKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgCreateLatestPubKey) +func _Msg_CreateLatestPubkey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgCreateLatestPubkey) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).CreateLatestPubKey(ctx, in) + return srv.(MsgServer).CreateLatestPubkey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.keyshare.Msg/CreateLatestPubKey", + FullMethod: "/fairyring.keyshare.Msg/CreateLatestPubkey", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).CreateLatestPubKey(ctx, req.(*MsgCreateLatestPubKey)) + return srv.(MsgServer).CreateLatestPubkey(ctx, req.(*MsgCreateLatestPubkey)) } return interceptor(ctx, in, info, handler) } -func _Msg_OverrideLatestPubKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgOverrideLatestPubKey) +func _Msg_OverrideLatestPubkey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgOverrideLatestPubkey) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).OverrideLatestPubKey(ctx, in) + return srv.(MsgServer).OverrideLatestPubkey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/fairyring.keyshare.Msg/OverrideLatestPubKey", + FullMethod: "/fairyring.keyshare.Msg/OverrideLatestPubkey", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).OverrideLatestPubKey(ctx, req.(*MsgOverrideLatestPubKey)) + return srv.(MsgServer).OverrideLatestPubkey(ctx, req.(*MsgOverrideLatestPubkey)) } return interceptor(ctx, in, info, handler) } @@ -1859,12 +1858,12 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ Handler: _Msg_SendKeyshare_Handler, }, { - MethodName: "CreateLatestPubKey", - Handler: _Msg_CreateLatestPubKey_Handler, + MethodName: "CreateLatestPubkey", + Handler: _Msg_CreateLatestPubkey_Handler, }, { - MethodName: "OverrideLatestPubKey", - Handler: _Msg_OverrideLatestPubKey_Handler, + MethodName: "OverrideLatestPubkey", + Handler: _Msg_OverrideLatestPubkey_Handler, }, { MethodName: "CreateAuthorizedAddress", @@ -2190,7 +2189,7 @@ func (m *MsgSendKeyshareResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *MsgCreateLatestPubKey) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateLatestPubkey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2200,12 +2199,12 @@ func (m *MsgCreateLatestPubKey) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgCreateLatestPubKey) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateLatestPubkey) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgCreateLatestPubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateLatestPubkey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2255,7 +2254,7 @@ func (m *MsgCreateLatestPubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgCreateLatestPubKeyResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgCreateLatestPubkeyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2265,12 +2264,12 @@ func (m *MsgCreateLatestPubKeyResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgCreateLatestPubKeyResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgCreateLatestPubkeyResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgCreateLatestPubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgCreateLatestPubkeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2278,7 +2277,7 @@ func (m *MsgCreateLatestPubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *MsgOverrideLatestPubKey) Marshal() (dAtA []byte, err error) { +func (m *MsgOverrideLatestPubkey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2288,12 +2287,12 @@ func (m *MsgOverrideLatestPubKey) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgOverrideLatestPubKey) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgOverrideLatestPubkey) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgOverrideLatestPubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgOverrideLatestPubkey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2343,7 +2342,7 @@ func (m *MsgOverrideLatestPubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *MsgOverrideLatestPubKeyResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgOverrideLatestPubkeyResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -2353,12 +2352,12 @@ func (m *MsgOverrideLatestPubKeyResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgOverrideLatestPubKeyResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgOverrideLatestPubkeyResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgOverrideLatestPubKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgOverrideLatestPubkeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -2932,7 +2931,7 @@ func (m *MsgSendKeyshareResponse) Size() (n int) { return n } -func (m *MsgCreateLatestPubKey) Size() (n int) { +func (m *MsgCreateLatestPubkey) Size() (n int) { if m == nil { return 0 } @@ -2964,7 +2963,7 @@ func (m *MsgCreateLatestPubKey) Size() (n int) { return n } -func (m *MsgCreateLatestPubKeyResponse) Size() (n int) { +func (m *MsgCreateLatestPubkeyResponse) Size() (n int) { if m == nil { return 0 } @@ -2973,7 +2972,7 @@ func (m *MsgCreateLatestPubKeyResponse) Size() (n int) { return n } -func (m *MsgOverrideLatestPubKey) Size() (n int) { +func (m *MsgOverrideLatestPubkey) Size() (n int) { if m == nil { return 0 } @@ -3005,7 +3004,7 @@ func (m *MsgOverrideLatestPubKey) Size() (n int) { return n } -func (m *MsgOverrideLatestPubKeyResponse) Size() (n int) { +func (m *MsgOverrideLatestPubkeyResponse) Size() (n int) { if m == nil { return 0 } @@ -4084,7 +4083,7 @@ func (m *MsgSendKeyshareResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCreateLatestPubKey) Unmarshal(dAtA []byte) error { +func (m *MsgCreateLatestPubkey) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4107,10 +4106,10 @@ func (m *MsgCreateLatestPubKey) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCreateLatestPubKey: wiretype end group for non-group") + return fmt.Errorf("proto: MsgCreateLatestPubkey: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateLatestPubKey: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgCreateLatestPubkey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4283,7 +4282,7 @@ func (m *MsgCreateLatestPubKey) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgCreateLatestPubKeyResponse) Unmarshal(dAtA []byte) error { +func (m *MsgCreateLatestPubkeyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4306,10 +4305,10 @@ func (m *MsgCreateLatestPubKeyResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgCreateLatestPubKeyResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgCreateLatestPubkeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgCreateLatestPubKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgCreateLatestPubkeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -4333,7 +4332,7 @@ func (m *MsgCreateLatestPubKeyResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgOverrideLatestPubKey) Unmarshal(dAtA []byte) error { +func (m *MsgOverrideLatestPubkey) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4356,10 +4355,10 @@ func (m *MsgOverrideLatestPubKey) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgOverrideLatestPubKey: wiretype end group for non-group") + return fmt.Errorf("proto: MsgOverrideLatestPubkey: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgOverrideLatestPubKey: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgOverrideLatestPubkey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -4532,7 +4531,7 @@ func (m *MsgOverrideLatestPubKey) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgOverrideLatestPubKeyResponse) Unmarshal(dAtA []byte) error { +func (m *MsgOverrideLatestPubkeyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -4555,10 +4554,10 @@ func (m *MsgOverrideLatestPubKeyResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgOverrideLatestPubKeyResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgOverrideLatestPubkeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgOverrideLatestPubKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgOverrideLatestPubkeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: diff --git a/x/pep/keeper/msg_submit_encrypted_tx.go b/x/pep/keeper/msg_submit_encrypted_tx.go index 7105a7b6..63febc2b 100644 --- a/x/pep/keeper/msg_submit_encrypted_tx.go +++ b/x/pep/keeper/msg_submit_encrypted_tx.go @@ -51,7 +51,7 @@ func (k msgServer) SubmitEncryptedTx(goCtx context.Context, msg *types.MsgSubmit sdk.NewAttribute(types.EncryptedTxRevertedEventIndex, "0"), ), ) - return nil, types.ErrActivePubKeyNotFound + return nil, types.ErrActivePubkeyNotFound } maxHeight = activeKey.Expiry } else { diff --git a/x/pep/keeper/msg_submit_encrypted_tx_test.go b/x/pep/keeper/msg_submit_encrypted_tx_test.go index 66aa86e3..804d3a53 100644 --- a/x/pep/keeper/msg_submit_encrypted_tx_test.go +++ b/x/pep/keeper/msg_submit_encrypted_tx_test.go @@ -57,16 +57,16 @@ func TestSubmitEncryptedTx(t *testing.T) { err: types.ErrInvalidTargetBlockHeight, }, { - desc: "ActivePubKeyNotFound", + desc: "ActivePubkeyNotFound", request: &types.MsgSubmitEncryptedTx{ Creator: sample.AccAddress(), TargetBlockHeight: rand.Uint64(), Data: random.RandHex(192), }, - err: types.ErrActivePubKeyNotFound, + err: types.ErrActivePubkeyNotFound, }, { - desc: "InvalidTargetBlockHeightHigherThanPubKey", + desc: "InvalidTargetBlockHeightHigherThanPukKey", request: &types.MsgSubmitEncryptedTx{ Creator: trustedAddr, TargetBlockHeight: 325677454353, @@ -109,7 +109,7 @@ func TestSubmitEncryptedTx(t *testing.T) { ) } - if tc.desc == "ActivePubKeyNotFound" { + if tc.desc == "ActivePubkeyNotFound" { k.SetActivePubkey(wctx, types2.ActivePublicKey{ PublicKey: out.MasterPublicKey, Creator: trustedAddr, diff --git a/x/pep/keeper/pub_key.go b/x/pep/keeper/pub_key.go index 149d4f6c..845bb185 100644 --- a/x/pep/keeper/pub_key.go +++ b/x/pep/keeper/pub_key.go @@ -9,30 +9,30 @@ import ( "github.com/cosmos/cosmos-sdk/runtime" ) -// SetActivePubKey set a specific public key to active in the store -func (k Keeper) SetActivePubkey(ctx context.Context, activePubKey commontypes.ActivePublicKey) { +// SetActivePubkey set a specific public key to active in the store +func (k Keeper) SetActivePubkey(ctx context.Context, activePubkey commontypes.ActivePublicKey) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - b := k.cdc.MustMarshal(&activePubKey) - store.Set(types.KeyPrefix(types.ActivePubKeyPrefix), b) + b := k.cdc.MustMarshal(&activePubkey) + store.Set(types.KeyPrefix(types.ActivePubkeyPrefix), b) } -// SetQueuedPubKey set a specific public key in the store -func (k Keeper) SetQueuedPubkey(ctx context.Context, queuedPubKey commontypes.QueuedPublicKey) { +// SetQueuedPubkey set a specific public key in the store +func (k Keeper) SetQueuedPubkey(ctx context.Context, queuedPubkey commontypes.QueuedPublicKey) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - b := k.cdc.MustMarshal(&queuedPubKey) - store.Set(types.KeyPrefix(types.QueuedPubKeyPrefix), b) + b := k.cdc.MustMarshal(&queuedPubkey) + store.Set(types.KeyPrefix(types.QueuedPubkeyPrefix), b) } -// GetActivePubKey returns the Active public key +// GetActivePubkey returns the Active public key func (k Keeper) GetActivePubkey( ctx context.Context, ) (val commontypes.ActivePublicKey, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - b := store.Get(types.KeyPrefix(types.ActivePubKeyPrefix)) + b := store.Get(types.KeyPrefix(types.ActivePubkeyPrefix)) if b == nil { return val, false } @@ -42,14 +42,14 @@ func (k Keeper) GetActivePubkey( return val, true } -// GetQueuedPubKey returns the Queued public key +// GetQueuedPubkey returns the Queued public key func (k Keeper) GetQueuedPubkey( ctx context.Context, ) (val commontypes.QueuedPublicKey, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - b := store.Get(types.KeyPrefix(types.QueuedPubKeyPrefix)) + b := store.Get(types.KeyPrefix(types.QueuedPubkeyPrefix)) if b == nil { return val, false } @@ -59,16 +59,16 @@ func (k Keeper) GetQueuedPubkey( return val, true } -// DeleteActivePubKey deletes the active public key in the store +// DeleteActivePubkey deletes the active public key in the store func (k Keeper) DeleteActivePubkey(ctx context.Context) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - store.Delete(types.KeyPrefix(types.ActivePubKeyPrefix)) + store.Delete(types.KeyPrefix(types.ActivePubkeyPrefix)) } -// DeleteQueuedPubKey deletes the queued public key in the store +// DeleteQueuedPubkey deletes the queued public key in the store func (k Keeper) DeleteQueuedPubkey(ctx context.Context) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - store.Delete(types.KeyPrefix(types.QueuedPubKeyPrefix)) + store.Delete(types.KeyPrefix(types.QueuedPubkeyPrefix)) } diff --git a/x/pep/keeper/pub_key_test.go b/x/pep/keeper/pub_key_test.go index 0df43858..e235ba55 100644 --- a/x/pep/keeper/pub_key_test.go +++ b/x/pep/keeper/pub_key_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/require" ) -func createActivePubKeys(keeper *keeper.Keeper, ctx sdk.Context) commontypes.ActivePublicKey { +func createActivePubkeys(keeper *keeper.Keeper, ctx sdk.Context) commontypes.ActivePublicKey { var items commontypes.ActivePublicKey items.PublicKey = random.RandHex(10) items.Expiry = rand.Uint64() @@ -22,7 +22,7 @@ func createActivePubKeys(keeper *keeper.Keeper, ctx sdk.Context) commontypes.Act return items } -func createQueuedPubKeys(keeper *keeper.Keeper, ctx sdk.Context) commontypes.QueuedPublicKey { +func createQueuedPubkeys(keeper *keeper.Keeper, ctx sdk.Context) commontypes.QueuedPublicKey { var items commontypes.QueuedPublicKey items.PublicKey = random.RandHex(10) items.Expiry = rand.Uint64() @@ -30,9 +30,9 @@ func createQueuedPubKeys(keeper *keeper.Keeper, ctx sdk.Context) commontypes.Que return items } -func TestActivePubKeyGet(t *testing.T) { +func TestActivePubkeyGet(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) - item := createActivePubKeys(&keeper, ctx) + item := createActivePubkeys(&keeper, ctx) rst, found := keeper.GetActivePubkey(ctx) require.True(t, found) require.Equal(t, @@ -41,9 +41,9 @@ func TestActivePubKeyGet(t *testing.T) { ) } -func TestQueuedPubKeyGet(t *testing.T) { +func TestQueuedPubkeyGet(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) - item := createQueuedPubKeys(&keeper, ctx) + item := createQueuedPubkeys(&keeper, ctx) rst, found := keeper.GetQueuedPubkey(ctx) require.True(t, found) require.Equal(t, @@ -52,17 +52,17 @@ func TestQueuedPubKeyGet(t *testing.T) { ) } -func TestActivePubKeyRemoved(t *testing.T) { +func TestActivePubkeyRemoved(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) - createActivePubKeys(&keeper, ctx) + createActivePubkeys(&keeper, ctx) keeper.DeleteActivePubkey(ctx) _, found := keeper.GetActivePubkey(ctx) require.False(t, found) } -func TestQueuedPubKeyRemoved(t *testing.T) { +func TestQueuedPubkeyRemoved(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) - createQueuedPubKeys(&keeper, ctx) + createQueuedPubkeys(&keeper, ctx) keeper.DeleteQueuedPubkey(ctx) _, found := keeper.GetQueuedPubkey(ctx) require.False(t, found) diff --git a/x/pep/keeper/query_decrypt_data.go b/x/pep/keeper/query_decrypt_data.go index ee7b7c22..63499a59 100644 --- a/x/pep/keeper/query_decrypt_data.go +++ b/x/pep/keeper/query_decrypt_data.go @@ -32,7 +32,7 @@ func (k Keeper) DecryptData(goCtx context.Context, req *types.QueryDecryptDataRe } suite := bls.NewBLS12381Suite() - publicKeyPoint, err := k.GetPubKeyPoint(req.Pubkey, suite) + publicKeyPoint, err := k.GetPubkeyPoint(req.Pubkey, suite) if err != nil { return &types.QueryDecryptDataResponse{}, err } @@ -89,7 +89,7 @@ func (k Keeper) GetSKPoint( return skPoint, nil } -func (k Keeper) GetPubKeyPoint( +func (k Keeper) GetPubkeyPoint( pubkey string, suite pairing.Suite, ) (kyber.Point, error) { diff --git a/x/pep/keeper/query_decrypt_data_test.go b/x/pep/keeper/query_decrypt_data_test.go index e16690bb..25275fb6 100644 --- a/x/pep/keeper/query_decrypt_data_test.go +++ b/x/pep/keeper/query_decrypt_data_test.go @@ -61,7 +61,7 @@ func TestDecryptDataQuerySingle(t *testing.T) { errMsg string }{ { - desc: "WithPubKey", + desc: "WithPubkey", request: &types.QueryDecryptDataRequest{ Pubkey: out.MasterPublicKey, DecryptionKey: derived, @@ -72,7 +72,7 @@ func TestDecryptDataQuerySingle(t *testing.T) { }, }, { - desc: "WithoutPubKeyAndNoPubKeyOnChain", + desc: "WithoutPubkeyAndNoPubkeyOnChain", request: &types.QueryDecryptDataRequest{ DecryptionKey: derived, EncryptedData: hex.EncodeToString(destCipherData.Bytes()), @@ -80,7 +80,7 @@ func TestDecryptDataQuerySingle(t *testing.T) { errMsg: "pubkey not found", }, { - desc: "InvalidPubKey", + desc: "InvalidPubkey", request: &types.QueryDecryptDataRequest{ Pubkey: random.RandHex(8), DecryptionKey: derived, @@ -114,7 +114,7 @@ func TestDecryptDataQuerySingle(t *testing.T) { ) } - if tc.desc == "WithoutPubKeyAndNoPubKeyOnChain" { + if tc.desc == "WithoutPubkeyAndNoPubkeyOnChain" { keeper.SetActivePubkey(wctx, commontypes.ActivePublicKey{ PublicKey: out.MasterPublicKey, Creator: creator, diff --git a/x/pep/keeper/query_pubkey.go b/x/pep/keeper/query_pubkey.go index 032eeb2f..53994378 100644 --- a/x/pep/keeper/query_pubkey.go +++ b/x/pep/keeper/query_pubkey.go @@ -14,7 +14,7 @@ import ( "google.golang.org/grpc/status" ) -// PubKey returns the lates public keys +// Pubkey returns the lates public keys func (k Keeper) Pubkey( goCtx context.Context, req *types.QueryPubkeyRequest, @@ -25,21 +25,21 @@ func (k Keeper) Pubkey( return nil, status.Error(codes.InvalidArgument, "invalid request") } - var activePubKey commontypes.ActivePublicKey - var queuedPubKey commontypes.QueuedPublicKey + var activePubkey commontypes.ActivePublicKey + var queuedPubkey commontypes.QueuedPublicKey storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - b := store.Get(types.KeyPrefix(types.ActivePubKeyPrefix)) + b := store.Get(types.KeyPrefix(types.ActivePubkeyPrefix)) if b == nil { return nil, status.Error(codes.Internal, "Active Public Key does not exists") } - k.cdc.MustUnmarshal(b, &activePubKey) + k.cdc.MustUnmarshal(b, &activePubkey) - b = store.Get(types.KeyPrefix(types.QueuedPubKeyPrefix)) + b = store.Get(types.KeyPrefix(types.QueuedPubkeyPrefix)) if b != nil { - k.cdc.MustUnmarshal(b, &queuedPubKey) + k.cdc.MustUnmarshal(b, &queuedPubkey) } - return &types.QueryPubkeyResponse{ActivePubkey: activePubKey, QueuedPubkey: queuedPubKey}, nil + return &types.QueryPubkeyResponse{ActivePubkey: activePubkey, QueuedPubkey: queuedPubkey}, nil } diff --git a/x/pep/keeper/query_pubkey_test.go b/x/pep/keeper/query_pubkey_test.go index fc3e90f6..2ee9d51f 100644 --- a/x/pep/keeper/query_pubkey_test.go +++ b/x/pep/keeper/query_pubkey_test.go @@ -12,11 +12,11 @@ import ( "google.golang.org/grpc/status" ) -func TestPubKeyQuery(t *testing.T) { +func TestPubkeyQuery(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) - activePubKey := createActivePubKeys(&keeper, wctx) - queuedPubKey := createQueuedPubKeys(&keeper, wctx) + activePubkey := createActivePubkeys(&keeper, wctx) + queuedPubkey := createQueuedPubkeys(&keeper, wctx) for _, tc := range []struct { desc string request *types.QueryPubkeyRequest @@ -24,11 +24,11 @@ func TestPubKeyQuery(t *testing.T) { err error }{ { - desc: "QueryPubKey", + desc: "QueryPubkey", request: &types.QueryPubkeyRequest{}, response: &types.QueryPubkeyResponse{ - ActivePubkey: activePubKey, - QueuedPubkey: queuedPubKey, + ActivePubkey: activePubkey, + QueuedPubkey: queuedPubkey, }, }, { diff --git a/x/pep/module/genesis.go b/x/pep/module/genesis.go index 77cbd8c0..52c73b26 100644 --- a/x/pep/module/genesis.go +++ b/x/pep/module/genesis.go @@ -27,9 +27,9 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) k.SetDecryptionKey(ctx, elem) } // Set actuve public key - k.SetActivePubkey(ctx, genState.ActivePubKey) + k.SetActivePubkey(ctx, genState.ActivePubkey) // Set queued public key - k.SetQueuedPubkey(ctx, genState.QueuedPubKey) + k.SetQueuedPubkey(ctx, genState.QueuedPubkey) // Set all the requestId for _, elem := range genState.RequestIdList { k.SetRequestId(ctx, elem) @@ -71,11 +71,11 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { // this line is used by starport scaffolding # genesis/module/export akey, found := k.GetActivePubkey(ctx) if found { - genesis.ActivePubKey = akey + genesis.ActivePubkey = akey } qkey, found := k.GetQueuedPubkey(ctx) if found { - genesis.QueuedPubKey = qkey + genesis.QueuedPubkey = qkey } genesis.RequestCount, _ = strconv.ParseUint(k.GetRequestCount(ctx), 10, 64) diff --git a/x/pep/module/module.go b/x/pep/module/module.go index 86e48d1f..f0d2edf0 100644 --- a/x/pep/module/module.go +++ b/x/pep/module/module.go @@ -220,7 +220,7 @@ func (am AppModule) BeginBlock(cctx context.Context) error { suite := bls.NewBLS12381Suite() - publicKeyPoint, err := am.keeper.GetPubKeyPoint(activePubkey.PublicKey, suite) + publicKeyPoint, err := am.keeper.GetPubkeyPoint(activePubkey.PublicKey, suite) if err != nil { am.keeper.Logger().Error("Unabe to get Pubkey Point with suite") return nil diff --git a/x/pep/types/errors.go b/x/pep/types/errors.go index 1f1ca45a..f2f4c566 100644 --- a/x/pep/types/errors.go +++ b/x/pep/types/errors.go @@ -13,6 +13,6 @@ var ( ErrInvalidTargetBlockHeight = sdkerrors.Register(ModuleName, 1600, "Invalid target block height") ErrInvalidIdentity = sdkerrors.Register(ModuleName, 1601, "Invalid identity") ErrInvalidMsgCreator = sdkerrors.Register(ModuleName, 1700, "Invalid msg creator address") - ErrActivePubKeyNotFound = sdkerrors.Register(ModuleName, 1800, "Active public key not found") + ErrActivePubkeyNotFound = sdkerrors.Register(ModuleName, 1800, "Active public key not found") ErrReqIDAlreadyExists = sdkerrors.Register(ModuleName, 1900, "Request ID already exists") ) diff --git a/x/pep/types/genesis.pb.go b/x/pep/types/genesis.pb.go index 717a9499..9a7c6ad2 100644 --- a/x/pep/types/genesis.pb.go +++ b/x/pep/types/genesis.pb.go @@ -30,13 +30,13 @@ type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` - EncryptedTxArray []EncryptedTxArray `protobuf:"bytes,3,rep,name=encryptedTxArray,proto3" json:"encryptedTxArray"` - PepNonceList []PepNonce `protobuf:"bytes,4,rep,name=pepNonceList,proto3" json:"pepNonceList"` + EncryptedTxArray []EncryptedTxArray `protobuf:"bytes,3,rep,name=encrypted_tx_array,json=encryptedTxArray,proto3" json:"encrypted_tx_array"` + PepNonceList []PepNonce `protobuf:"bytes,4,rep,name=pep_nonce_list,json=pepNonceList,proto3" json:"pep_nonce_list"` DecryptionKeyList []DecryptionKey `protobuf:"bytes,6,rep,name=decryption_key_list,json=decryptionKeyList,proto3" json:"decryption_key_list"` - ActivePubKey types.ActivePublicKey `protobuf:"bytes,7,opt,name=activePubKey,proto3" json:"activePubKey"` - QueuedPubKey types.QueuedPublicKey `protobuf:"bytes,8,opt,name=queuedPubKey,proto3" json:"queuedPubKey"` + ActivePubkey types.ActivePublicKey `protobuf:"bytes,7,opt,name=active_pubkey,json=activePubkey,proto3" json:"active_pubkey"` + QueuedPubkey types.QueuedPublicKey `protobuf:"bytes,8,opt,name=queued_pubkey,json=queuedPubkey,proto3" json:"queued_pubkey"` RequestCount uint64 `protobuf:"varint,9,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"` - RequestIdList []RequestId `protobuf:"bytes,10,rep,name=requestIdList,proto3" json:"requestIdList"` + RequestIdList []RequestId `protobuf:"bytes,10,rep,name=request_id_list,json=requestIdList,proto3" json:"request_id_list"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -107,16 +107,16 @@ func (m *GenesisState) GetDecryptionKeyList() []DecryptionKey { return nil } -func (m *GenesisState) GetActivePubKey() types.ActivePublicKey { +func (m *GenesisState) GetActivePubkey() types.ActivePublicKey { if m != nil { - return m.ActivePubKey + return m.ActivePubkey } return types.ActivePublicKey{} } -func (m *GenesisState) GetQueuedPubKey() types.QueuedPublicKey { +func (m *GenesisState) GetQueuedPubkey() types.QueuedPublicKey { if m != nil { - return m.QueuedPubKey + return m.QueuedPubkey } return types.QueuedPublicKey{} } @@ -142,38 +142,39 @@ func init() { func init() { proto.RegisterFile("fairyring/pep/genesis.proto", fileDescriptor_c02ca82ac7a8fa8f) } var fileDescriptor_c02ca82ac7a8fa8f = []byte{ - // 488 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x6e, 0xd3, 0x4c, - 0x14, 0x85, 0xe3, 0xbf, 0x51, 0xfa, 0x67, 0x9a, 0x4a, 0xd4, 0x80, 0x6a, 0x05, 0x70, 0x4d, 0xbb, - 0x89, 0xba, 0xb0, 0xa5, 0xb2, 0x61, 0x9b, 0x10, 0x40, 0x55, 0x10, 0x6a, 0x0d, 0x2b, 0x36, 0x96, - 0x63, 0x5f, 0xdc, 0x51, 0x93, 0x99, 0xe9, 0x78, 0x8c, 0xe2, 0xb7, 0xe0, 0x31, 0x58, 0xf2, 0x18, - 0x5d, 0x66, 0xc9, 0x0a, 0xa1, 0x64, 0xc1, 0x6b, 0xa0, 0x19, 0x8f, 0x93, 0x8c, 0x11, 0x9b, 0x68, - 0x72, 0xef, 0x39, 0xdf, 0x5c, 0x9f, 0xb9, 0xe8, 0xc9, 0xe7, 0x18, 0xf3, 0x92, 0x63, 0x92, 0x05, - 0x0c, 0x58, 0x90, 0x01, 0x81, 0x1c, 0xe7, 0x3e, 0xe3, 0x54, 0x50, 0xfb, 0x70, 0xd3, 0xf4, 0x19, - 0xb0, 0xfe, 0x51, 0x3c, 0xc7, 0x84, 0x06, 0xea, 0xb7, 0x52, 0xf4, 0x1f, 0x65, 0x34, 0xa3, 0xea, - 0x18, 0xc8, 0x93, 0xae, 0xf6, 0x4d, 0x28, 0x8b, 0x79, 0x3c, 0xd7, 0xcc, 0xbe, 0x67, 0xf6, 0x80, - 0x24, 0xbc, 0x64, 0x02, 0xd2, 0x48, 0x2c, 0xb4, 0xe2, 0x59, 0xc3, 0x0d, 0x2c, 0x22, 0x94, 0x24, - 0xa0, 0xdb, 0xa7, 0x66, 0x3b, 0x05, 0x05, 0xc0, 0x94, 0x44, 0xb7, 0x50, 0x6a, 0xcd, 0xd9, 0x56, - 0x93, 0xd0, 0xf9, 0x9c, 0x92, 0x20, 0xbf, 0x89, 0xb9, 0xbc, 0xa4, 0x64, 0x50, 0x4f, 0xe2, 0x9a, - 0x20, 0x0e, 0x77, 0x05, 0xe4, 0x22, 0xc2, 0x69, 0xd5, 0x3f, 0x5d, 0xb6, 0x51, 0xef, 0x6d, 0x95, - 0xc7, 0x07, 0x11, 0x0b, 0xb0, 0x5f, 0xa2, 0x4e, 0xf5, 0x29, 0x8e, 0xe5, 0x59, 0x83, 0x83, 0x8b, - 0xc7, 0xbe, 0x91, 0x8f, 0x7f, 0xa5, 0x9a, 0xa3, 0xee, 0xfd, 0xcf, 0x93, 0xd6, 0xb7, 0xdf, 0xdf, - 0xcf, 0xad, 0x50, 0xeb, 0xed, 0x63, 0xb4, 0xcf, 0x28, 0x97, 0x6c, 0xe7, 0x3f, 0xcf, 0x1a, 0x74, - 0xc3, 0x8e, 0xfc, 0x7b, 0x99, 0xda, 0xd7, 0xe8, 0xc1, 0x26, 0x81, 0x8f, 0x8b, 0x21, 0xe7, 0x71, - 0xe9, 0xec, 0x79, 0x7b, 0x83, 0x83, 0x8b, 0x93, 0x06, 0xfc, 0x75, 0x43, 0x36, 0x6a, 0xcb, 0x6b, - 0xc2, 0xbf, 0xec, 0xf6, 0x10, 0xf5, 0x18, 0xb0, 0xf7, 0x32, 0xb1, 0x77, 0x38, 0x17, 0x4e, 0x5b, - 0xe1, 0x8e, 0x9b, 0xb3, 0x6a, 0x89, 0xc6, 0x18, 0x16, 0x3b, 0x44, 0x0f, 0xcd, 0x58, 0xa3, 0x99, - 0x24, 0x75, 0x14, 0xe9, 0x69, 0x83, 0x34, 0xde, 0x28, 0x27, 0x50, 0x4f, 0x75, 0x94, 0xee, 0x16, - 0x15, 0x73, 0x82, 0x7a, 0x71, 0x22, 0xf0, 0x17, 0xb8, 0x2a, 0xa6, 0x13, 0x28, 0x9d, 0x7d, 0x15, - 0xe1, 0xf3, 0x1d, 0x58, 0xf5, 0x52, 0xfe, 0xb0, 0x56, 0xcd, 0x70, 0xb2, 0x25, 0x1a, 0x66, 0x09, - 0xbb, 0x2b, 0xa0, 0x80, 0x54, 0xc3, 0xfe, 0xff, 0x17, 0xec, 0xba, 0x56, 0x99, 0xb0, 0x5d, 0xb3, - 0x7d, 0x86, 0x0e, 0xeb, 0xb7, 0x4f, 0x68, 0x41, 0x84, 0xd3, 0xf5, 0xac, 0x41, 0x3b, 0xec, 0xe9, - 0xe2, 0x2b, 0x59, 0xb3, 0xc7, 0x1b, 0xd1, 0x65, 0xaa, 0x62, 0x45, 0x2a, 0x0c, 0xa7, 0x11, 0x46, - 0x58, 0x6b, 0xf4, 0x4d, 0xa6, 0x69, 0x34, 0xbe, 0x5f, 0xb9, 0xd6, 0x72, 0xe5, 0x5a, 0xbf, 0x56, - 0xae, 0xf5, 0x75, 0xed, 0xb6, 0x96, 0x6b, 0xb7, 0xf5, 0x63, 0xed, 0xb6, 0x3e, 0x9d, 0x67, 0x58, - 0xdc, 0x14, 0x53, 0x39, 0x77, 0xf0, 0x26, 0xc6, 0x7c, 0x3a, 0xa3, 0xc9, 0x6d, 0xb0, 0xdd, 0xd0, - 0x85, 0xda, 0x51, 0xb5, 0xbe, 0xd3, 0x8e, 0xda, 0xcf, 0x17, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, - 0x36, 0x54, 0x1c, 0x79, 0xbc, 0x03, 0x00, 0x00, + // 507 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0x86, 0x63, 0x1a, 0xa5, 0x74, 0x9b, 0x00, 0x35, 0xa0, 0x5a, 0x01, 0x5c, 0xd3, 0x5e, 0xa2, + 0x1e, 0x6c, 0xa9, 0x5c, 0xb8, 0x36, 0x2d, 0x45, 0x11, 0x15, 0x2a, 0x2e, 0x27, 0x2e, 0xd6, 0xda, + 0x1e, 0xdc, 0x55, 0x12, 0xef, 0x66, 0xbd, 0x46, 0xf1, 0x5b, 0xf0, 0x18, 0x1c, 0x79, 0x8c, 0x1e, + 0x7b, 0xec, 0x09, 0xa1, 0xe4, 0xc0, 0x6b, 0xa0, 0x5d, 0xaf, 0x93, 0xd8, 0x88, 0x8b, 0xb5, 0xfb, + 0xcf, 0xef, 0x6f, 0xc6, 0xbf, 0x07, 0xbd, 0xf8, 0x8a, 0x09, 0x2f, 0x38, 0x49, 0x13, 0x8f, 0x01, + 0xf3, 0x12, 0x48, 0x21, 0x23, 0x99, 0xcb, 0x38, 0x15, 0xd4, 0xec, 0xad, 0x8a, 0x2e, 0x03, 0xd6, + 0xdf, 0xc3, 0x53, 0x92, 0x52, 0x4f, 0x3d, 0x4b, 0x47, 0xff, 0x59, 0x42, 0x13, 0xaa, 0x8e, 0x9e, + 0x3c, 0x69, 0xb5, 0x5f, 0x87, 0x32, 0xcc, 0xf1, 0x54, 0x33, 0xfb, 0x4e, 0xbd, 0x06, 0x69, 0xc4, + 0x0b, 0x26, 0x20, 0x0e, 0xc4, 0x5c, 0x3b, 0x5e, 0x35, 0xde, 0x06, 0x16, 0xa4, 0x34, 0x8d, 0x40, + 0x97, 0x0f, 0xeb, 0xe5, 0x18, 0x14, 0x80, 0xd0, 0x34, 0x18, 0x43, 0xa1, 0x3d, 0x47, 0x6b, 0x4f, + 0x44, 0xa7, 0x53, 0x9a, 0x7a, 0xd9, 0x0d, 0xe6, 0xb2, 0x49, 0xc1, 0xa0, 0x9a, 0xc4, 0xae, 0x83, + 0x38, 0xcc, 0x72, 0xc8, 0x44, 0x40, 0xe2, 0xb2, 0x7e, 0x78, 0xdf, 0x46, 0xdd, 0xf7, 0x65, 0x1e, + 0xd7, 0x02, 0x0b, 0x30, 0xdf, 0xa2, 0x4e, 0xf9, 0x29, 0x96, 0xe1, 0x18, 0x83, 0xdd, 0x93, 0xe7, + 0x6e, 0x2d, 0x1f, 0xf7, 0x4a, 0x15, 0x87, 0x3b, 0xb7, 0xbf, 0x0e, 0x5a, 0x3f, 0xfe, 0xfc, 0x3c, + 0x36, 0x7c, 0xed, 0x37, 0xf7, 0xd1, 0x36, 0xa3, 0x5c, 0xb2, 0xad, 0x07, 0x8e, 0x31, 0xd8, 0xf1, + 0x3b, 0xf2, 0x3a, 0x8a, 0xcd, 0x6b, 0x64, 0x6e, 0x26, 0x10, 0x60, 0xce, 0x71, 0x61, 0x6d, 0x39, + 0x5b, 0x83, 0xdd, 0x93, 0x83, 0x06, 0xfe, 0x5d, 0x65, 0xfc, 0x3c, 0x3f, 0x95, 0xb6, 0x61, 0x5b, + 0x36, 0xf2, 0x9f, 0x40, 0x43, 0x37, 0xcf, 0xd0, 0xa3, 0x55, 0x68, 0xc1, 0x84, 0x64, 0xc2, 0x6a, + 0x2b, 0xe0, 0x7e, 0x73, 0x5e, 0x60, 0x1f, 0xa5, 0x47, 0x83, 0xba, 0x4c, 0xdf, 0x2f, 0x49, 0x26, + 0x4c, 0x1f, 0x3d, 0xad, 0x47, 0x5b, 0x92, 0x3a, 0x8a, 0xf4, 0xb2, 0x41, 0x3a, 0x5f, 0x39, 0x3f, + 0x40, 0x35, 0xd7, 0x5e, 0xbc, 0x29, 0x2a, 0xe6, 0x25, 0xea, 0xe1, 0x48, 0x90, 0x6f, 0x10, 0xb0, + 0x3c, 0x1c, 0x43, 0x61, 0x6d, 0xab, 0x1c, 0x5f, 0x6f, 0xd0, 0xca, 0xdf, 0xe5, 0x9e, 0x2a, 0xdb, + 0x55, 0x1e, 0x4e, 0x48, 0xb4, 0x46, 0x76, 0x71, 0x25, 0x8f, 0xa1, 0x90, 0xb4, 0x59, 0x0e, 0x39, + 0xc4, 0x15, 0xed, 0xe1, 0xff, 0x68, 0x9f, 0x94, 0xed, 0x1f, 0xda, 0xac, 0x92, 0x25, 0xed, 0x08, + 0xf5, 0xaa, 0x0d, 0x88, 0x68, 0x9e, 0x0a, 0x6b, 0xc7, 0x31, 0x06, 0x6d, 0xbf, 0xab, 0xc5, 0x33, + 0xa9, 0x99, 0x17, 0xe8, 0xf1, 0x7a, 0x4d, 0xca, 0x40, 0x90, 0x0a, 0xc4, 0x6a, 0x04, 0xe2, 0x97, + 0xae, 0x51, 0xac, 0x7b, 0x55, 0xec, 0x51, 0x2c, 0x83, 0x18, 0x9e, 0xdf, 0x2e, 0x6c, 0xe3, 0x6e, + 0x61, 0x1b, 0xbf, 0x17, 0xb6, 0xf1, 0x7d, 0x69, 0xb7, 0xee, 0x96, 0x76, 0xeb, 0x7e, 0x69, 0xb7, + 0xbe, 0x1c, 0x27, 0x44, 0xdc, 0xe4, 0xa1, 0x9c, 0xdc, 0xbb, 0xc0, 0x84, 0x87, 0x13, 0x1a, 0x8d, + 0xbd, 0xf5, 0xa6, 0xce, 0xd5, 0xae, 0xaa, 0x35, 0x0e, 0x3b, 0x6a, 0x4f, 0xdf, 0xfc, 0x0d, 0x00, + 0x00, 0xff, 0xff, 0xd1, 0x47, 0x97, 0xcd, 0xc4, 0x03, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -216,7 +217,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x48 } { - size, err := m.QueuedPubKey.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.QueuedPubkey.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -226,7 +227,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x42 { - size, err := m.ActivePubKey.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ActivePubkey.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -338,9 +339,9 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } - l = m.ActivePubKey.Size() + l = m.ActivePubkey.Size() n += 1 + l + sovGenesis(uint64(l)) - l = m.QueuedPubKey.Size() + l = m.QueuedPubkey.Size() n += 1 + l + sovGenesis(uint64(l)) if m.RequestCount != 0 { n += 1 + sovGenesis(uint64(m.RequestCount)) @@ -558,7 +559,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 7: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivePubKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ActivePubkey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -585,13 +586,13 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.ActivePubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ActivePubkey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 8: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field QueuedPubKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field QueuedPubkey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -618,7 +619,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.QueuedPubKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.QueuedPubkey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/pep/types/key_latest_pub_key.go b/x/pep/types/key_latest_pub_key.go index f936edae..18452aea 100644 --- a/x/pep/types/key_latest_pub_key.go +++ b/x/pep/types/key_latest_pub_key.go @@ -1,8 +1,8 @@ package types const ( - // ActivePubKeyPrefix is the prefix to retrieve the active Public Key - ActivePubKeyPrefix = "ActivePubKey/value/" + // ActivePubkeyPrefix is the prefix to retrieve the active Public Key + ActivePubkeyPrefix = "ActivePubkey/value/" - QueuedPubKeyPrefix = "QueuedPubKey/value/" + QueuedPubkeyPrefix = "QueuedPubkey/value/" ) diff --git a/x/pep/types/message_get_private_keyshares.go b/x/pep/types/message_get_private_keyshares.go index d54b914b..f6b0fc7e 100644 --- a/x/pep/types/message_get_private_keyshares.go +++ b/x/pep/types/message_get_private_keyshares.go @@ -29,7 +29,7 @@ func (msg *MsgRequestPrivateDecryptionKey) ValidateBasic() error { return errorsmod.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) } - err = isValidSecp256k1PubKey(msg.SecpPubkey) + err = isValidSecp256k1Pubkey(msg.SecpPubkey) if err != nil { return err } @@ -38,15 +38,15 @@ func (msg *MsgRequestPrivateDecryptionKey) ValidateBasic() error { } // Function to validate the secp256k1 public key -func isValidSecp256k1PubKey(pubKeyBase64 string) error { +func isValidSecp256k1Pubkey(pubkeyBase64 string) error { // Decode the base64 public key - pubKeyBytes, err := base64.StdEncoding.DecodeString(pubKeyBase64) + pubkeyBytes, err := base64.StdEncoding.DecodeString(pubkeyBase64) if err != nil { return err } // Try to parse the public key - _, err = btcec.ParsePubKey(pubKeyBytes) + _, err = btcec.ParsePubKey(pubkeyBytes) if err != nil { return err } diff --git a/x/pep/types/query.pb.go b/x/pep/types/query.pb.go index a0c5f1a4..00ddf650 100644 --- a/x/pep/types/query.pb.go +++ b/x/pep/types/query.pb.go @@ -859,7 +859,7 @@ func (m *QueryPepNonceAllResponse) GetPagination() *query.PageResponse { return nil } -// QueryPubKeyRequest is request type for the Query/PubKey RPC method. +// QueryPubkeyRequest is request type for the Query/Pubkey RPC method. type QueryPubkeyRequest struct { } @@ -896,7 +896,7 @@ func (m *QueryPubkeyRequest) XXX_DiscardUnknown() { var xxx_messageInfo_QueryPubkeyRequest proto.InternalMessageInfo -// QueryPubKeyResponse is response type for the Query/PubKey RPC method. +// QueryPubkeyResponse is response type for the Query/Pubkey RPC method. type QueryPubkeyResponse struct { ActivePubkey types.ActivePublicKey `protobuf:"bytes,1,opt,name=active_pubkey,json=activePubkey,proto3" json:"active_pubkey"` QueuedPubkey types.QueuedPublicKey `protobuf:"bytes,2,opt,name=queued_pubkey,json=queuedPubkey,proto3" json:"queued_pubkey"` From 3f1d3d26f2b4e72275d4d97d9748390234251b7e Mon Sep 17 00:00:00 2001 From: ap0calypse644 Date: Mon, 21 Oct 2024 13:54:54 +0530 Subject: [PATCH 08/30] audit changes --- abci/checktx/keyshare_check_tx.go | 2 +- go.mod | 1 - go.sum | 2 - lanes/keyshare/abci.go | 4 +- lanes/keyshare/factory.go | 10 +- lanes/keyshare/lane.go | 4 +- lanes/keyshare/mempool.go | 4 +- proto/fairyring/keyshare/query.proto | 2 +- .../keyshare/requested_decryption_key.proto | 8 +- proto/fairyring/pep/params.proto | 2 +- proto/fairyring/pep/request_id.proto | 4 +- proto/fairyring/pep/tx.proto | 6 +- x/keyshare/keeper/aggregated_key_share.go | 96 ------------------- x/keyshare/keeper/decryption_key.go | 96 +++++++++++++++++++ x/keyshare/keeper/decryption_key_data.go | 4 +- ...e_request.go => decryption_key_request.go} | 46 +++++---- ...test.go => decryption_key_request_test.go} | 28 +++--- ...y_share_test.go => decryption_key_test.go} | 24 ++--- ...neral_key_share.go => general_keyshare.go} | 68 ++++++------- ...share_test.go => general_keyshare_test.go} | 24 ++--- x/keyshare/keeper/get_decryption_key.go | 8 +- .../keeper/{key_share.go => keyshare.go} | 30 +++--- .../{key_share_test.go => keyshare_test.go} | 24 ++--- ...create_pub_key.go => msg_create_pubkey.go} | 0 ..._key_test.go => msg_create_pubkey_test.go} | 0 ...ride_pub_key.go => msg_override_pubkey.go} | 0 ...ey_test.go => msg_override_pubkey_test.go} | 2 +- ...send_key_share.go => msg_send_keyshare.go} | 37 +++---- ...hare_test.go => msg_send_keyshare_test.go} | 10 +- .../keeper/msg_submit_encrypted_keyshare.go | 41 ++++---- .../msg_submit_encrypted_keyshare_test.go | 8 +- ...hare.go => msg_submit_general_keyshare.go} | 52 +++++----- ...go => msg_submit_general_keyshare_test.go} | 18 ++-- x/keyshare/keeper/process_queues.go | 28 +++--- x/keyshare/keeper/query_decryption_key.go | 32 ++++--- .../keeper/query_decryption_key_test.go | 12 +-- ...key_share.go => query_general_keyshare.go} | 4 +- ...test.go => query_general_keyshare_test.go} | 6 +- .../{query_key_share.go => query_keyshare.go} | 4 +- ...y_share_test.go => query_keyshare_test.go} | 6 +- .../keeper/query_verifiable_randomness.go | 20 ++-- .../query_verifiable_randomness_test.go | 16 ++-- x/keyshare/keeper/request_decryption_key.go | 6 +- x/keyshare/module/genesis.go | 14 +-- x/keyshare/module/module_ibc.go | 10 +- x/keyshare/types/errors.go | 2 +- x/keyshare/types/events_ibc.go | 14 +-- x/keyshare/types/expected_keepers.go | 2 +- x/keyshare/types/genesis.go | 17 ++-- x/keyshare/types/genesis_test.go | 2 +- x/keyshare/types/key_aggregated_key_share.go | 10 +- ...quest.go => key_decryption_key_request.go} | 2 +- ...l_key_share.go => key_general_keyshare.go} | 14 +-- .../{key_key_share.go => key_keyshare.go} | 8 +- x/pep/client/cli/tx_submit_decryption_key.go | 2 +- x/pep/keeper/aggregated_key_share.go | 6 +- x/pep/keeper/aggregated_key_share_test.go | 14 +-- .../msg_request_general_decryption_key.go | 4 +- ...msg_request_general_decryption_key_test.go | 4 +- x/pep/keeper/msg_request_general_identity.go | 4 +- .../msg_request_general_identity_test.go | 6 +- x/pep/keeper/msg_submit_decryption_key.go | 22 ++--- .../keeper/msg_submit_decryption_key_test.go | 12 +-- x/pep/keeper/query_decrypt_data.go | 4 +- x/pep/keeper/query_decrypt_data_test.go | 2 +- x/pep/module/genesis.go | 2 +- x/pep/module/module.go | 2 +- x/pep/module/module_ibc.go | 12 +-- x/pep/types/genesis.go | 10 +- x/pep/types/key_aggregated_key_share.go | 2 +- x/pep/types/keys.go | 8 +- 71 files changed, 516 insertions(+), 494 deletions(-) delete mode 100644 x/keyshare/keeper/aggregated_key_share.go create mode 100644 x/keyshare/keeper/decryption_key.go rename x/keyshare/keeper/{aggregated_key_share_request.go => decryption_key_request.go} (64%) rename x/keyshare/keeper/{aggregated_key_share_request_test.go => decryption_key_request_test.go} (59%) rename x/keyshare/keeper/{aggregated_key_share_test.go => decryption_key_test.go} (60%) rename x/keyshare/keeper/{general_key_share.go => general_keyshare.go} (59%) rename x/keyshare/keeper/{general_key_share_test.go => general_keyshare_test.go} (68%) rename x/keyshare/keeper/{key_share.go => keyshare.go} (71%) rename x/keyshare/keeper/{key_share_test.go => keyshare_test.go} (70%) rename x/keyshare/keeper/{msg_create_pub_key.go => msg_create_pubkey.go} (100%) rename x/keyshare/keeper/{msg_create_pub_key_test.go => msg_create_pubkey_test.go} (100%) rename x/keyshare/keeper/{msg_override_pub_key.go => msg_override_pubkey.go} (100%) rename x/keyshare/keeper/{msg_override_pub_key_test.go => msg_override_pubkey_test.go} (97%) rename x/keyshare/keeper/{msg_send_key_share.go => msg_send_keyshare.go} (91%) rename x/keyshare/keeper/{msg_send_key_share_test.go => msg_send_keyshare_test.go} (92%) rename x/keyshare/keeper/{msg_create_general_key_share.go => msg_submit_general_keyshare.go} (88%) rename x/keyshare/keeper/{msg_create_general_key_share_test.go => msg_submit_general_keyshare_test.go} (91%) rename x/keyshare/keeper/{query_general_key_share.go => query_general_keyshare.go} (96%) rename x/keyshare/keeper/{query_general_key_share_test.go => query_general_keyshare_test.go} (96%) rename x/keyshare/keeper/{query_key_share.go => query_keyshare.go} (93%) rename x/keyshare/keeper/{query_key_share_test.go => query_keyshare_test.go} (97%) rename x/keyshare/types/{key_key_share_request.go => key_decryption_key_request.go} (81%) rename x/keyshare/types/{key_general_key_share.go => key_general_keyshare.go} (71%) rename x/keyshare/types/{key_key_share.go => key_keyshare.go} (71%) diff --git a/abci/checktx/keyshare_check_tx.go b/abci/checktx/keyshare_check_tx.go index 4984dcd1..781c2737 100644 --- a/abci/checktx/keyshare_check_tx.go +++ b/abci/checktx/keyshare_check_tx.go @@ -15,7 +15,7 @@ import ( ) // CheckTxHandler is a wrapper around baseapp's CheckTx method that allows us to -// verify aggregated keyshare transactions against the latest committed state. All other transactions +// verify keyshare transactions against the latest committed state. All other transactions // are executed normally using base app's CheckTx. This defines all of the // dependencies that are required to verify a keyshare transaction. type KeyshareCheckTxHandler struct { diff --git a/go.mod b/go.mod index 463126a2..da546cde 100644 --- a/go.mod +++ b/go.mod @@ -66,7 +66,6 @@ require ( require ( github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect - github.com/regen-network/cosmos-proto v0.3.1 // indirect github.com/stretchr/objx v0.5.2 // indirect ) diff --git a/go.sum b/go.sum index 92a9b17f..ba5bb019 100644 --- a/go.sum +++ b/go.sum @@ -1018,8 +1018,6 @@ github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoG github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/regen-network/cosmos-proto v0.3.1 h1:rV7iM4SSFAagvy8RiyhiACbWEGotmqzywPxOvwMdxcg= -github.com/regen-network/cosmos-proto v0.3.1/go.mod h1:jO0sVX6a1B36nmE8C9xBFXpNwWejXC7QqCOnH3O0+YM= github.com/regen-network/protobuf v1.3.3-alpha.regen.1 h1:OHEc+q5iIAXpqiqFKeLpu5NwTIkVXUs48vFMwzqpqY4= github.com/regen-network/protobuf v1.3.3-alpha.regen.1/go.mod h1:2DjTFR1HhMQhiWC5sZ4OhQ3+NtdbZ6oBDKQwq5Ou+FI= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= diff --git a/lanes/keyshare/abci.go b/lanes/keyshare/abci.go index 7b84d0fd..2e760d3f 100644 --- a/lanes/keyshare/abci.go +++ b/lanes/keyshare/abci.go @@ -58,7 +58,7 @@ func (h *ProposalHandler) PrepareLaneHandler() base.PrepareLaneHandler { // Verify the keyshare transaction if err := h.VerifyTx(cacheCtx, tmpKeyshareTx); err != nil { h.lane.Logger().Info( - "failed to verify aggregate keyshare tx", + "failed to verify keyshare tx", "tx_hash", hash, "err", err, ) @@ -96,7 +96,7 @@ func (h *ProposalHandler) PrepareLaneHandler() base.PrepareLaneHandler { // ProcessLaneHandler ensures that if keyshare transactions are present in a proposal, // - they are the first transaction in the partial proposal -// - there are no other aggregate keyshare transactions in the proposal +// - there are no other keyshare transactions in the proposal // - block proposals that include transactions from the keyshare lane are valid func (h *ProposalHandler) ProcessLaneHandler() base.ProcessLaneHandler { return func(ctx sdk.Context, partialProposal []sdk.Tx) ([]sdk.Tx, []sdk.Tx, error) { diff --git a/lanes/keyshare/factory.go b/lanes/keyshare/factory.go index 30434137..4846a8df 100644 --- a/lanes/keyshare/factory.go +++ b/lanes/keyshare/factory.go @@ -12,14 +12,14 @@ import ( ) type ( - // Factory defines the interface for processing AggregateKeyShare transactions. It is + // Factory defines the interface for processing KeyShare transactions. It is // a wrapper around all of the functionality that each application chain must implement - // in order for Aggregated keyshare processing to work. + // in order for keyshare processing to work. Factory interface { - // IsKeyshareTx defines a function that checks if a transaction qualifies as AggregateKeyshare Tx. + // IsKeyshareTx defines a function that checks if a transaction qualifies as Keyshare Tx. IsKeyshareTx(tx sdk.Tx) bool - // GetDecryptionKeyInfo defines a function that returns the Aggregated KeyShare info from the Tx + // GetDecryptionKeyInfo defines a function that returns the KeyShare info from the Tx GetDecryptionKeyInfo(tx sdk.Tx) (*peptypes.DecryptionKey, error) // MatchHandler defines a function that checks if a transaction matches the keyshare lane. @@ -27,7 +27,7 @@ type ( } // DefaultKeyshareFactory defines a default implmentation for the keyshare factory interface - // for processing aggregate keyshare transactions. + // for processing keyshare transactions. DefaultKeyshareFactory struct { txDecoder sdk.TxDecoder signerExtractor signer_extraction.Adapter diff --git a/lanes/keyshare/lane.go b/lanes/keyshare/lane.go index 9694c4fd..a02fc3ad 100644 --- a/lanes/keyshare/lane.go +++ b/lanes/keyshare/lane.go @@ -9,13 +9,13 @@ const ( LaneName = "keyshare" ) -// KeyShareLane defines the lane that is responsible for processing AggregateKeyShare transactions. +// KeyShareLane defines the lane that is responsible for processing KeyShare transactions. type ( KeyShareLane struct { //nolint *base.BaseLane // Factory defines the API/functionality which is responsible for determining - // if a transaction is a aggregateKeyshare transaction and how to extract relevant + // if a transaction is a Keyshare transaction and how to extract relevant // information from the transaction (creator Address). Factory } diff --git a/lanes/keyshare/mempool.go b/lanes/keyshare/mempool.go index 8f292139..a80c490c 100644 --- a/lanes/keyshare/mempool.go +++ b/lanes/keyshare/mempool.go @@ -9,8 +9,8 @@ import ( "github.com/skip-mev/block-sdk/v2/block/base" ) -// TxPriority returns a TxPriority over AggregatedKeyShare transactions only. It -// is to be used in the AggregatedKeyShare index only. +// TxPriority returns a TxPriority over KeyShare transactions only. It +// is to be used in the KeyShare index only. func TxPriority(config Factory) base.TxPriority[string] { return base.TxPriority[string]{ GetTxPriority: func(goCtx context.Context, tx sdk.Tx) string { diff --git a/proto/fairyring/keyshare/query.proto b/proto/fairyring/keyshare/query.proto index 9b490d9d..11f7d452 100644 --- a/proto/fairyring/keyshare/query.proto +++ b/proto/fairyring/keyshare/query.proto @@ -179,7 +179,7 @@ message QueryDecryptionKeyAllRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } -// QueryAggregatedKeyShareAllResponse is response type for the Query/DecryptionKeyAll RPC method. +// QueryDecryptionKeyAllResponse is response type for the Query/DecryptionKeyAll RPC method. message QueryDecryptionKeyAllResponse { repeated DecryptionKey decryption_keys = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; diff --git a/proto/fairyring/keyshare/requested_decryption_key.proto b/proto/fairyring/keyshare/requested_decryption_key.proto index 292866e7..c98bc99f 100644 --- a/proto/fairyring/keyshare/requested_decryption_key.proto +++ b/proto/fairyring/keyshare/requested_decryption_key.proto @@ -18,7 +18,7 @@ message DecryptionKeyRequest { } // IBCInfo defines the structure to verify request for -// aggregated and encrypted keyshares in case the request was made over IBC +// general and private keyshares in case the request was made over IBC message IBCInfo { string client_id = 1; string connection_id = 2; @@ -26,8 +26,8 @@ message IBCInfo { string port_id = 4; } -// CounterPartyIBCInfo defines the structure to send aggregated -// and encrypted keyshares if the request was made over IBC +// CounterPartyIBCInfo defines the structure to send general +// and private keyshares if the request was made over IBC message CounterPartyIBCInfo { string client_id = 1; string connection_id = 2; @@ -36,7 +36,7 @@ message CounterPartyIBCInfo { } // PrivateDecryptionKeyRequest defines the stroage structure for private -// encrypted and unaggregated keyshare requests +// encrypted and unaggregated decryption key requests message PrivateDecryptionKeyRequest { string identity = 1; string pubkey = 2; diff --git a/proto/fairyring/pep/params.proto b/proto/fairyring/pep/params.proto index a42cb04b..7e8bdc6e 100644 --- a/proto/fairyring/pep/params.proto +++ b/proto/fairyring/pep/params.proto @@ -21,7 +21,7 @@ message Params { // TrustedCounterParty defines the structure to store the ibc info // of the source chain (fairyring) to reliably fetch active keys and -// aggregated/encrypted keyshares +// general/private decryption keys message TrustedCounterParty { string client_id = 1; string connection_id = 2; diff --git a/proto/fairyring/pep/request_id.proto b/proto/fairyring/pep/request_id.proto index 67a57d1e..29a9493e 100644 --- a/proto/fairyring/pep/request_id.proto +++ b/proto/fairyring/pep/request_id.proto @@ -14,7 +14,7 @@ message RequestId { } // PrivateRequest defines the structure for storing private -// keyshare requests along with the unaggregated encrypted keyshares +// decryption key requests along with the unaggregated encrypted keyshares message PrivateRequest { string creator = 1; string req_id = 2; @@ -24,7 +24,7 @@ message PrivateRequest { // ContractDetails defines the structure to store the details of a // contract that has been registered to execute automatically when -// the identity associated with it has an aggregate keyshare available +// the identity associated with it has a decryption key available message ContractDetails { string registrar = 1; string contract_address = 2; diff --git a/proto/fairyring/pep/tx.proto b/proto/fairyring/pep/tx.proto index 511f2781..bbd77e9a 100644 --- a/proto/fairyring/pep/tx.proto +++ b/proto/fairyring/pep/tx.proto @@ -52,12 +52,12 @@ service Msg { // RegisterContract defines an operation to make an instantiated // contract eligible to be automatically executed when a particular - // identity has aggregated keyshares available for it + // identity has decryption key available for it rpc RegisterContract(MsgRegisterContract) returns (MsgRegisterContractResponse); // UnregisterContract defines an operation to remove a registered contract // from the list of contracts set to be automatically executed when - // aggreagted keyshare is available for a particular identity + // decryption key is available for a particular identity rpc UnregisterContract(MsgUnregisterContract) returns (MsgUnregisterContractResponse); } @@ -106,7 +106,7 @@ message MsgSubmitGeneralEncryptedTx { // MsgSubmitGeneralEncryptedTx message. message MsgSubmitGeneralEncryptedTxResponse {} -// MsgCreateAggregatedKeyShare is the Msg/CreateAggregatedKeyShare request type. +// MsgSubmitDecryptionKey is the Msg/SubmitDecryptionKey request type. message MsgSubmitDecryptionKey { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; diff --git a/x/keyshare/keeper/aggregated_key_share.go b/x/keyshare/keeper/aggregated_key_share.go deleted file mode 100644 index 0fe75609..00000000 --- a/x/keyshare/keeper/aggregated_key_share.go +++ /dev/null @@ -1,96 +0,0 @@ -package keeper - -import ( - "encoding/binary" - - storetypes "cosmossdk.io/store/types" - "github.com/Fairblock/fairyring/x/keyshare/types" - "github.com/cosmos/cosmos-sdk/runtime" - - "cosmossdk.io/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// SetAggregatedKeyShare set a specific aggregatedKeyShare in the store from its index -func (k Keeper) SetAggregatedKeyShare(ctx sdk.Context, aggregatedKeyShare types.DecryptionKey) { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.AggregatedKeyShareKeyPrefix)) - - b := k.cdc.MustMarshal(&aggregatedKeyShare) - store.Set(types.AggregatedKeyShareKey( - aggregatedKeyShare.Height, - ), b) -} - -// GetAggregatedKeyShare returns a aggregatedKeyShare from its index -func (k Keeper) GetAggregatedKeyShare( - ctx sdk.Context, - height uint64, - -) (val types.DecryptionKey, found bool) { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.AggregatedKeyShareKeyPrefix)) - - b := store.Get(types.AggregatedKeyShareKey( - height, - )) - if b == nil { - return val, false - } - - k.cdc.MustUnmarshal(b, &val) - return val, true -} - -// RemoveAggregatedKeyShare removes a aggregatedKeyShare from the store -func (k Keeper) RemoveAggregatedKeyShare( - ctx sdk.Context, - height uint64, - -) { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.AggregatedKeyShareKeyPrefix)) - - store.Delete(types.AggregatedKeyShareKey( - height, - )) -} - -// GetAllAggregatedKeyShare returns all aggregatedKeyShare -func (k Keeper) GetAllAggregatedKeyShare(ctx sdk.Context) (list []types.DecryptionKey) { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.AggregatedKeyShareKeyPrefix)) - iterator := storetypes.KVStorePrefixIterator(store, []byte{}) - - defer iterator.Close() - - for ; iterator.Valid(); iterator.Next() { - var val types.DecryptionKey - k.cdc.MustUnmarshal(iterator.Value(), &val) - list = append(list, val) - } - - return -} - -// SetAggregatedKeyShareLength set a specific length to aggregatedKeyShareLength -func (k Keeper) SetAggregatedKeyShareLength(ctx sdk.Context, length uint64) { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.AggregatedKeyShareLengthPrefix)) - lengthBytes := make([]byte, 8) - binary.BigEndian.PutUint64(lengthBytes, length) - store.Set([]byte(types.AggregatedKeyShareLengthPrefix), lengthBytes) -} - -// GetAggregatedKeyShareLength returns the length of aggregatedKeyShare -func (k Keeper) GetAggregatedKeyShareLength( - ctx sdk.Context, -) uint64 { - storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.AggregatedKeyShareLengthPrefix)) - b := store.Get([]byte(types.AggregatedKeyShareLengthPrefix)) - if len(b) == 0 { - return 0 - } - return binary.BigEndian.Uint64(b) -} diff --git a/x/keyshare/keeper/decryption_key.go b/x/keyshare/keeper/decryption_key.go new file mode 100644 index 00000000..7ae76e30 --- /dev/null +++ b/x/keyshare/keeper/decryption_key.go @@ -0,0 +1,96 @@ +package keeper + +import ( + "encoding/binary" + + storetypes "cosmossdk.io/store/types" + "github.com/Fairblock/fairyring/x/keyshare/types" + "github.com/cosmos/cosmos-sdk/runtime" + + "cosmossdk.io/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// SetDecryptionKey set a specific decryption key in the store from its index +func (k Keeper) SetDecryptionKey(ctx sdk.Context, decryptionKey types.DecryptionKey) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DecryptionKeyKeyPrefix)) + + b := k.cdc.MustMarshal(&decryptionKey) + store.Set(types.DecryptionKeyKey( + decryptionKey.Height, + ), b) +} + +// GetDecryptionKey returns a decryption key from its index +func (k Keeper) GetDecryptionKey( + ctx sdk.Context, + height uint64, + +) (val types.DecryptionKey, found bool) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DecryptionKeyKeyPrefix)) + + b := store.Get(types.DecryptionKeyKey( + height, + )) + if b == nil { + return val, false + } + + k.cdc.MustUnmarshal(b, &val) + return val, true +} + +// RemoveDecryptionKey removes a decryption key from the store +func (k Keeper) RemoveDecryptionKey( + ctx sdk.Context, + height uint64, + +) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DecryptionKeyKeyPrefix)) + + store.Delete(types.DecryptionKeyKey( + height, + )) +} + +// GetAllDecryptionKeys returns all decryption keys +func (k Keeper) GetAllDecryptionKeys(ctx sdk.Context) (list []types.DecryptionKey) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DecryptionKeyKeyPrefix)) + iterator := storetypes.KVStorePrefixIterator(store, []byte{}) + + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + var val types.DecryptionKey + k.cdc.MustUnmarshal(iterator.Value(), &val) + list = append(list, val) + } + + return +} + +// SetDecryptionKeyLength set a specific length to decryption key length +func (k Keeper) SetDecryptionKeyLength(ctx sdk.Context, length uint64) { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DecryptionKeyLengthPrefix)) + lengthBytes := make([]byte, 8) + binary.BigEndian.PutUint64(lengthBytes, length) + store.Set([]byte(types.DecryptionKeyLengthPrefix), lengthBytes) +} + +// GetDecryptionKeyLength returns the length of decryption key +func (k Keeper) GetDecryptionKeyLength( + ctx sdk.Context, +) uint64 { + storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DecryptionKeyLengthPrefix)) + b := store.Get([]byte(types.DecryptionKeyLengthPrefix)) + if len(b) == 0 { + return 0 + } + return binary.BigEndian.Uint64(b) +} diff --git a/x/keyshare/keeper/decryption_key_data.go b/x/keyshare/keeper/decryption_key_data.go index 844a019f..abd5974d 100644 --- a/x/keyshare/keeper/decryption_key_data.go +++ b/x/keyshare/keeper/decryption_key_data.go @@ -87,13 +87,13 @@ func (k Keeper) OnAcknowledgementDecryptionKeyDataPacket( return errors.New("cannot unmarshal acknowledgment") } - keyshareReq, found := k.GetKeyShareRequest(ctx, data.Identity) + keyshareReq, found := k.GetDecryptionKeyRequest(ctx, data.Identity) if !found { return errors.New("cannot find keyshare request") } keyshareReq.Sent = true - k.SetKeyShareRequest(ctx, keyshareReq) + k.SetDecryptionKeyRequest(ctx, keyshareReq) return nil default: diff --git a/x/keyshare/keeper/aggregated_key_share_request.go b/x/keyshare/keeper/decryption_key_request.go similarity index 64% rename from x/keyshare/keeper/aggregated_key_share_request.go rename to x/keyshare/keeper/decryption_key_request.go index 56b16096..1d85a763 100644 --- a/x/keyshare/keeper/aggregated_key_share_request.go +++ b/x/keyshare/keeper/decryption_key_request.go @@ -10,17 +10,17 @@ import ( "cosmossdk.io/store/prefix" ) -// SetKeyShareRequest set a specific keyShare request in the store by its index -func (k Keeper) SetKeyShareRequest(ctx context.Context, KeyShareRequest types.DecryptionKeyRequest) { +// SetDecryptionKeyRequest set a specific decryption key request in the store by its index +func (k Keeper) SetDecryptionKeyRequest(ctx context.Context, decryptionKeyReq types.DecryptionKeyRequest) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DecryptionKeyRequestKeyPrefix)) - key := []byte(KeyShareRequest.Identity) - b := k.cdc.MustMarshal(&KeyShareRequest) + key := []byte(decryptionKeyReq.Identity) + b := k.cdc.MustMarshal(&decryptionKeyReq) store.Set(key, b) } -// GetKeyShareRequest returns a keyShare request from its index -func (k Keeper) GetKeyShareRequest( +// GetDecryptionKeyRequest returns a decryption key request from its index +func (k Keeper) GetDecryptionKeyRequest( ctx context.Context, identity string, @@ -37,8 +37,8 @@ func (k Keeper) GetKeyShareRequest( return val, true } -// RemoveKeyShareRequest removes a keyShare request from the store -func (k Keeper) RemoveKeyShareRequest( +// RemoveDecryptionKeyRequest removes a decryption key request from the store +func (k Keeper) RemoveDecryptionKeyRequest( ctx context.Context, identity string, @@ -48,8 +48,8 @@ func (k Keeper) RemoveKeyShareRequest( store.Delete([]byte(identity)) } -// GetAllKeyShareRequests returns all keyShare requests -func (k Keeper) GetAllKeyShareRequests(ctx context.Context) (list []types.DecryptionKeyRequest) { +// GetAllDecryptionKeyRequests returns all decryption key requests +func (k Keeper) GetAllDecryptionKeyRequests(ctx context.Context) (list []types.DecryptionKeyRequest) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DecryptionKeyRequestKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) @@ -65,17 +65,21 @@ func (k Keeper) GetAllKeyShareRequests(ctx context.Context) (list []types.Decryp return } -// SetPrivateKeyShareRequest set a specific private keyShare request in the store by its index -func (k Keeper) SetPrivateKeyShareRequest(ctx context.Context, KeyShareRequest types.PrivateDecryptionKeyRequest) { +// SetPrivateDecryptionKeyRequest set a specific private +// decryption key request in the store by its index +func (k Keeper) SetPrivateDecryptionKeyRequest( + ctx context.Context, + privDecryptionKeyReq types.PrivateDecryptionKeyRequest, +) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateDecryptionKeyRequestKeyPrefix)) - key := []byte(KeyShareRequest.Identity) - b := k.cdc.MustMarshal(&KeyShareRequest) + key := []byte(privDecryptionKeyReq.Identity) + b := k.cdc.MustMarshal(&privDecryptionKeyReq) store.Set(key, b) } -// GetPrivateKeyShareRequest returns a private keyShare request from its index -func (k Keeper) GetPrivateKeyShareRequest( +// GetPrivateDecryptionKeyRequest returns a private decryption key request from its index +func (k Keeper) GetPrivateDecryptionKeyRequest( ctx context.Context, identity string, ) (val types.PrivateDecryptionKeyRequest, found bool) { @@ -91,8 +95,8 @@ func (k Keeper) GetPrivateKeyShareRequest( return val, true } -// RemovePrivateKeyShareRequest removes a private keyShare request from the store -func (k Keeper) RemovePrivateKeyShareRequest( +// RemovePrivateDecryptionKeyRequest removes a private decryption key request from the store +func (k Keeper) RemovePrivateDecryptionKeyRequest( ctx context.Context, identity string, ) { @@ -101,8 +105,10 @@ func (k Keeper) RemovePrivateKeyShareRequest( store.Delete([]byte(identity)) } -// GetAllPrivateKeyShareRequests returns all private keyShare requests -func (k Keeper) GetAllPrivateKeyShareRequests(ctx context.Context) (list []types.PrivateDecryptionKeyRequest) { +// GetAllPrivateDecryptionKeyRequests returns all private keyShare requests +func (k Keeper) GetAllPrivateDecryptionKeyRequests( + ctx context.Context, +) (list []types.PrivateDecryptionKeyRequest) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateDecryptionKeyRequestKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) diff --git a/x/keyshare/keeper/aggregated_key_share_request_test.go b/x/keyshare/keeper/decryption_key_request_test.go similarity index 59% rename from x/keyshare/keeper/aggregated_key_share_request_test.go rename to x/keyshare/keeper/decryption_key_request_test.go index 592ce4df..d92ccf3d 100644 --- a/x/keyshare/keeper/aggregated_key_share_request_test.go +++ b/x/keyshare/keeper/decryption_key_request_test.go @@ -12,21 +12,25 @@ import ( "github.com/stretchr/testify/require" ) -func createNKeyshareRequest(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.DecryptionKeyRequest { +func createNDecryptionKeyRequests( + keeper *keeper.Keeper, + ctx sdk.Context, + n int, +) []types.DecryptionKeyRequest { items := make([]types.DecryptionKeyRequest, n) for i := range items { items[i].RequestId = fmt.Sprintf("%d/rq", i) items[i].Identity = fmt.Sprintf("%d/rq", i) - keeper.SetKeyShareRequest(ctx, items[i]) + keeper.SetDecryptionKeyRequest(ctx, items[i]) } return items } -func TestKeyShareRequestGet(t *testing.T) { +func TestDecryptionKeyRequestGet(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) - items := createNKeyshareRequest(&keeper, ctx, 10) + items := createNDecryptionKeyRequests(&keeper, ctx, 10) for _, item := range items { - rst, found := keeper.GetKeyShareRequest(ctx, + rst, found := keeper.GetDecryptionKeyRequest(ctx, item.Identity, ) require.True(t, found) @@ -36,25 +40,25 @@ func TestKeyShareRequestGet(t *testing.T) { ) } } -func TestKeyShareRequestRemove(t *testing.T) { +func TestDecryptionKeyRequestRemove(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) - items := createNKeyshareRequest(&keeper, ctx, 10) + items := createNDecryptionKeyRequests(&keeper, ctx, 10) for _, item := range items { - keeper.RemoveKeyShareRequest(ctx, + keeper.RemoveDecryptionKeyRequest(ctx, item.Identity, ) - _, found := keeper.GetKeyShareRequest(ctx, + _, found := keeper.GetDecryptionKeyRequest(ctx, item.Identity, ) require.False(t, found) } } -func TestKeyShareRequestGetAll(t *testing.T) { +func TestDecryptionKeyRequestGetAll(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) - items := createNKeyshareRequest(&keeper, ctx, 10) + items := createNDecryptionKeyRequests(&keeper, ctx, 10) require.ElementsMatch(t, nullify.Fill(items), - nullify.Fill(keeper.GetAllKeyShareRequests(ctx)), + nullify.Fill(keeper.GetAllDecryptionKeyRequests(ctx)), ) } diff --git a/x/keyshare/keeper/aggregated_key_share_test.go b/x/keyshare/keeper/decryption_key_test.go similarity index 60% rename from x/keyshare/keeper/aggregated_key_share_test.go rename to x/keyshare/keeper/decryption_key_test.go index 26ab305e..3b444692 100644 --- a/x/keyshare/keeper/aggregated_key_share_test.go +++ b/x/keyshare/keeper/decryption_key_test.go @@ -16,21 +16,21 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func createNAggregatedKeyShare(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.DecryptionKey { +func createNDecryptionKeys(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.DecryptionKey { items := make([]types.DecryptionKey, n) for i := range items { items[i].Height = uint64(i) - keeper.SetAggregatedKeyShare(ctx, items[i]) + keeper.SetDecryptionKey(ctx, items[i]) } return items } -func TestAggregatedKeyShareGet(t *testing.T) { +func TestDecryptionKeyGet(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) - items := createNAggregatedKeyShare(&keeper, ctx, 10) + items := createNDecryptionKeys(&keeper, ctx, 10) for _, item := range items { - rst, found := keeper.GetAggregatedKeyShare(ctx, + rst, found := keeper.GetDecryptionKey(ctx, item.Height, ) require.True(t, found) @@ -40,25 +40,25 @@ func TestAggregatedKeyShareGet(t *testing.T) { ) } } -func TestAggregatedKeyShareRemove(t *testing.T) { +func TestDecryptionKeyRemove(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) - items := createNAggregatedKeyShare(&keeper, ctx, 10) + items := createNDecryptionKeys(&keeper, ctx, 10) for _, item := range items { - keeper.RemoveAggregatedKeyShare(ctx, + keeper.RemoveDecryptionKey(ctx, item.Height, ) - _, found := keeper.GetAggregatedKeyShare(ctx, + _, found := keeper.GetDecryptionKey(ctx, item.Height, ) require.False(t, found) } } -func TestAggregatedKeyShareGetAll(t *testing.T) { +func TestDecryptionKeyGetAll(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) - items := createNAggregatedKeyShare(&keeper, ctx, 10) + items := createNDecryptionKeys(&keeper, ctx, 10) require.ElementsMatch(t, nullify.Fill(items), - nullify.Fill(keeper.GetAllAggregatedKeyShare(ctx)), + nullify.Fill(keeper.GetAllDecryptionKeys(ctx)), ) } diff --git a/x/keyshare/keeper/general_key_share.go b/x/keyshare/keeper/general_keyshare.go similarity index 59% rename from x/keyshare/keeper/general_key_share.go rename to x/keyshare/keeper/general_keyshare.go index 7717412c..446cade2 100644 --- a/x/keyshare/keeper/general_key_share.go +++ b/x/keyshare/keeper/general_keyshare.go @@ -9,30 +9,30 @@ import ( "github.com/cosmos/cosmos-sdk/runtime" ) -// SetGeneralKeyShare set a specific generalKeyShare in the store from its index -func (k Keeper) SetGeneralKeyShare(ctx context.Context, generalKeyShare types.GeneralKeyshare) { +// SetGeneralKeyshare set a specific generalKeyShare in the store from its index +func (k Keeper) SetGeneralKeyshare(ctx context.Context, generalKeyshare types.GeneralKeyshare) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GeneralKeyShareKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GeneralKeyshareKeyPrefix)) - b := k.cdc.MustMarshal(&generalKeyShare) - store.Set(types.GeneralKeyShareKey( - generalKeyShare.Validator, - generalKeyShare.IdType, - generalKeyShare.IdValue, + b := k.cdc.MustMarshal(&generalKeyshare) + store.Set(types.GeneralKeyshareKey( + generalKeyshare.Validator, + generalKeyshare.IdType, + generalKeyshare.IdValue, ), b) } -// GetGeneralKeyShare returns a generalKeyShare from its index -func (k Keeper) GetGeneralKeyShare( +// GetGeneralKeyshare returns a generalKeyShare from its index +func (k Keeper) GetGeneralKeyshare( ctx context.Context, validator string, idType string, idValue string, ) (val types.GeneralKeyshare, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GeneralKeyShareKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GeneralKeyshareKeyPrefix)) - b := store.Get(types.GeneralKeyShareKey( + b := store.Get(types.GeneralKeyshareKey( validator, idType, idValue, @@ -45,8 +45,8 @@ func (k Keeper) GetGeneralKeyShare( return val, true } -// RemoveGeneralKeyShare removes a generalKeyShare from the store -func (k Keeper) RemoveGeneralKeyShare( +// RemoveGeneralKeyshare removes a generalKeyshare from the store +func (k Keeper) RemoveGeneralKeyshare( ctx context.Context, validator string, idType string, @@ -54,18 +54,18 @@ func (k Keeper) RemoveGeneralKeyShare( ) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GeneralKeyShareKeyPrefix)) - store.Delete(types.GeneralKeyShareKey( + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GeneralKeyshareKeyPrefix)) + store.Delete(types.GeneralKeyshareKey( validator, idType, idValue, )) } -// GetAllGeneralKeyShare returns all generalKeyShare -func (k Keeper) GetAllGeneralKeyShare(ctx context.Context) (list []types.GeneralKeyshare) { +// GetAllGeneralKeyshare returns all generalKeyshare +func (k Keeper) GetAllGeneralKeyshare(ctx context.Context) (list []types.GeneralKeyshare) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GeneralKeyShareKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GeneralKeyshareKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) defer iterator.Close() @@ -79,30 +79,30 @@ func (k Keeper) GetAllGeneralKeyShare(ctx context.Context) (list []types.General return } -// SetPrivateKeyShare set a specific private KeyShare in the store from its index -func (k Keeper) SetPrivateKeyShare(ctx context.Context, encKeyShare types.ValidatorEncryptedKeyshare) { +// SetPrivateKeyshare set a specific private Keyshare in the store from its index +func (k Keeper) SetPrivateKeyshare(ctx context.Context, encKeyShare types.ValidatorEncryptedKeyshare) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.EncryptedKeyShareKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateKeyshareKeyPrefix)) b := k.cdc.MustMarshal(&encKeyShare) - store.Set(types.EncryptedlKeyShareKey( + store.Set(types.PrivateKeyshareKey( encKeyShare.Validator, encKeyShare.Identity, encKeyShare.Requester, ), b) } -// GetPrivateKeyShare returns a private KeyShare from its index -func (k Keeper) GetPrivateKeyShare( +// GetPrivateKeyshare returns a private Keyshare from its index +func (k Keeper) GetPrivateKeyshare( ctx context.Context, validator string, identity string, requester string, ) (val types.ValidatorEncryptedKeyshare, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.EncryptedKeyShareKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateKeyshareKeyPrefix)) - b := store.Get(types.EncryptedlKeyShareKey( + b := store.Get(types.PrivateKeyshareKey( validator, identity, requester, @@ -115,26 +115,26 @@ func (k Keeper) GetPrivateKeyShare( return val, true } -// RemovePrivateKeyShare removes an private KeyShare from the store -func (k Keeper) RemovePrivateKeyShare( +// RemovePrivateKeyshare removes an private Keyshare from the store +func (k Keeper) RemovePrivateKeyshare( ctx context.Context, validator string, identiy string, requester string, ) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.EncryptedKeyShareKeyPrefix)) - store.Delete(types.EncryptedlKeyShareKey( + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateKeyshareKeyPrefix)) + store.Delete(types.PrivateKeyshareKey( validator, identiy, requester, )) } -// GetAllPrivateKeyShare returns all private KeyShares -func (k Keeper) GetAllPrivateKeyShare(ctx context.Context) (list []types.ValidatorEncryptedKeyshare) { +// GetAllPrivateKeyshare returns all private Keyshares +func (k Keeper) GetAllPrivateKeyshare(ctx context.Context) (list []types.ValidatorEncryptedKeyshare) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.EncryptedKeyShareKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateKeyshareKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) defer iterator.Close() diff --git a/x/keyshare/keeper/general_key_share_test.go b/x/keyshare/keeper/general_keyshare_test.go similarity index 68% rename from x/keyshare/keeper/general_key_share_test.go rename to x/keyshare/keeper/general_keyshare_test.go index 40100b02..4197553f 100644 --- a/x/keyshare/keeper/general_key_share_test.go +++ b/x/keyshare/keeper/general_keyshare_test.go @@ -15,23 +15,23 @@ import ( "github.com/stretchr/testify/require" ) -func createNGeneralKeyShares(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.GeneralKeyshare { +func createNGeneralKeyshares(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.GeneralKeyshare { items := make([]types.GeneralKeyshare, n) for i := range items { items[i].Validator = sample.AccAddress() items[i].IdValue = fmt.Sprintf("testing/%d", i) items[i].IdType = "testing" items[i].Keyshare = random.RandHex(10) - keeper.SetGeneralKeyShare(ctx, items[i]) + keeper.SetGeneralKeyshare(ctx, items[i]) } return items } -func TestGeneralKeyShareGet(t *testing.T) { +func TestGeneralKeyshareGet(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) - items := createNGeneralKeyShares(&keeper, ctx, 10) + items := createNGeneralKeyshares(&keeper, ctx, 10) for _, item := range items { - rst, found := keeper.GetGeneralKeyShare(ctx, + rst, found := keeper.GetGeneralKeyshare(ctx, item.Validator, item.IdType, item.IdValue, @@ -44,16 +44,16 @@ func TestGeneralKeyShareGet(t *testing.T) { } } -func TestGeneralKeySharesRemove(t *testing.T) { +func TestGeneralKeysharesRemove(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) - items := createNGeneralKeyShares(&keeper, ctx, 10) + items := createNGeneralKeyshares(&keeper, ctx, 10) - keeper.RemoveGeneralKeyShare(ctx, + keeper.RemoveGeneralKeyshare(ctx, items[0].Validator, items[0].IdType, items[0].IdValue, ) - _, found := keeper.GetGeneralKeyShare(ctx, + _, found := keeper.GetGeneralKeyshare(ctx, items[0].Validator, items[0].IdType, items[0].IdValue, @@ -61,11 +61,11 @@ func TestGeneralKeySharesRemove(t *testing.T) { require.False(t, found) } -func TestGeneralKeySharesGetAll(t *testing.T) { +func TestGeneralKeysharesGetAll(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) - items := createNGeneralKeyShares(&keeper, ctx, 10) + items := createNGeneralKeyshares(&keeper, ctx, 10) require.ElementsMatch(t, nullify.Fill(items), - nullify.Fill(keeper.GetAllGeneralKeyShare(ctx)), + nullify.Fill(keeper.GetAllGeneralKeyshare(ctx)), ) } diff --git a/x/keyshare/keeper/get_decryption_key.go b/x/keyshare/keeper/get_decryption_key.go index 2310c66a..5727ad24 100644 --- a/x/keyshare/keeper/get_decryption_key.go +++ b/x/keyshare/keeper/get_decryption_key.go @@ -21,7 +21,7 @@ func (k Keeper) OnRecvGetDecryptionKeyPacket( return packetAck, err } - keyshareReq, found := k.GetKeyShareRequest(ctx, data.Identity) + keyshareReq, found := k.GetDecryptionKeyRequest(ctx, data.Identity) if !found { return packetAck, types.ErrRequestNotFound } @@ -44,7 +44,7 @@ func (k Keeper) OnRecvGetDecryptionKeyPacket( if keyshareReq.DecryptionKey == "" { - k.Logger().Info("Got OnRecvGetAggrKeysharePacket") + k.Logger().Info("Got GetDecryptionKeyPacket") ctx.EventManager().EmitEvent( sdk.NewEvent(types.StartSendGeneralKeyShareEventType, @@ -81,7 +81,7 @@ func (k Keeper) OnRecvGetPrivateDecryptionKeyPacket( return packetAck, errors.New("active public key not found") } - keyshareReq, found := k.GetPrivateKeyShareRequest(ctx, data.Identity) + keyshareReq, found := k.GetPrivateDecryptionKeyRequest(ctx, data.Identity) if !found { keyshareReq.Identity = data.Identity keyshareReq.Pubkey = activePubkey.PublicKey @@ -99,7 +99,7 @@ func (k Keeper) OnRecvGetPrivateDecryptionKeyPacket( keyshareReq.RequestId = data.Identity keyshareReq.Sent = false - k.SetPrivateKeyShareRequest(ctx, keyshareReq) + k.SetPrivateDecryptionKeyRequest(ctx, keyshareReq) } if len(keyshareReq.PrivateDecryptionKeys) == 0 { diff --git a/x/keyshare/keeper/key_share.go b/x/keyshare/keeper/keyshare.go similarity index 71% rename from x/keyshare/keeper/key_share.go rename to x/keyshare/keeper/keyshare.go index 093f0f65..69cb87c8 100644 --- a/x/keyshare/keeper/key_share.go +++ b/x/keyshare/keeper/keyshare.go @@ -10,28 +10,28 @@ import ( "cosmossdk.io/store/prefix" ) -// SetKeyShare set a specific keyShare in the store from its index -func (k Keeper) SetKeyShare(ctx context.Context, keyShare types.Keyshare) { +// SetKeyshare set a specific keyShare in the store from its index +func (k Keeper) SetKeyshare(ctx context.Context, keyShare types.Keyshare) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.KeyShareKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.KeyshareKeyPrefix)) b := k.cdc.MustMarshal(&keyShare) - store.Set(types.KeyShareKey( + store.Set(types.KeyshareKey( keyShare.Validator, keyShare.BlockHeight, ), b) } -// GetKeyShare returns a keyShare from its index -func (k Keeper) GetKeyShare( +// GetKeyshare returns a keyshare from its index +func (k Keeper) GetKeyshare( ctx context.Context, validator string, blockHeight uint64, ) (val types.Keyshare, found bool) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.KeyShareKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.KeyshareKeyPrefix)) - b := store.Get(types.KeyShareKey( + b := store.Get(types.KeyshareKey( validator, blockHeight, )) @@ -43,25 +43,25 @@ func (k Keeper) GetKeyShare( return val, true } -// RemoveKeyShare removes a keyShare from the store -func (k Keeper) RemoveKeyShare( +// RemoveKeyshare removes a keyShare from the store +func (k Keeper) RemoveKeyshare( ctx context.Context, validator string, blockHeight uint64, ) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.KeyShareKeyPrefix)) - store.Delete(types.KeyShareKey( + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.KeyshareKeyPrefix)) + store.Delete(types.KeyshareKey( validator, blockHeight, )) } -// GetAllKeyShare returns all keyShare -func (k Keeper) GetAllKeyShare(ctx context.Context) (list []types.Keyshare) { +// GetAllKeyshare returns all keyshares +func (k Keeper) GetAllKeyshare(ctx context.Context) (list []types.Keyshare) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) - store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.KeyShareKeyPrefix)) + store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.KeyshareKeyPrefix)) iterator := storetypes.KVStorePrefixIterator(store, []byte{}) defer iterator.Close() diff --git a/x/keyshare/keeper/key_share_test.go b/x/keyshare/keeper/keyshare_test.go similarity index 70% rename from x/keyshare/keeper/key_share_test.go rename to x/keyshare/keeper/keyshare_test.go index 1abb80e0..70859806 100644 --- a/x/keyshare/keeper/key_share_test.go +++ b/x/keyshare/keeper/keyshare_test.go @@ -14,22 +14,22 @@ import ( "github.com/stretchr/testify/require" ) -func createNKeyShares(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.Keyshare { +func createNKeyshares(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.Keyshare { items := make([]types.Keyshare, n) for i := range items { items[i].Validator = sample.AccAddress() items[i].Keyshare = random.RandHex(10) items[i].BlockHeight = uint64(i) - keeper.SetKeyShare(ctx, items[i]) + keeper.SetKeyshare(ctx, items[i]) } return items } -func TestKeyShareGet(t *testing.T) { +func TestKeyshareGet(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) - items := createNKeyShares(&keeper, ctx, 10) + items := createNKeyshares(&keeper, ctx, 10) for _, item := range items { - rst, found := keeper.GetKeyShare(ctx, + rst, found := keeper.GetKeyshare(ctx, item.Validator, item.BlockHeight, ) @@ -41,26 +41,26 @@ func TestKeyShareGet(t *testing.T) { } } -func TestKeySharesRemove(t *testing.T) { +func TestKeysharesRemove(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) - items := createNKeyShares(&keeper, ctx, 10) + items := createNKeyshares(&keeper, ctx, 10) - keeper.RemoveKeyShare(ctx, + keeper.RemoveKeyshare(ctx, items[0].Validator, items[0].BlockHeight, ) - _, found := keeper.GetKeyShare(ctx, + _, found := keeper.GetKeyshare(ctx, items[0].Validator, items[0].BlockHeight, ) require.False(t, found) } -func TestKeySharesGetAll(t *testing.T) { +func TestKeysharesGetAll(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) - items := createNKeyShares(&keeper, ctx, 10) + items := createNKeyshares(&keeper, ctx, 10) require.ElementsMatch(t, nullify.Fill(items), - nullify.Fill(keeper.GetAllKeyShare(ctx)), + nullify.Fill(keeper.GetAllKeyshare(ctx)), ) } diff --git a/x/keyshare/keeper/msg_create_pub_key.go b/x/keyshare/keeper/msg_create_pubkey.go similarity index 100% rename from x/keyshare/keeper/msg_create_pub_key.go rename to x/keyshare/keeper/msg_create_pubkey.go diff --git a/x/keyshare/keeper/msg_create_pub_key_test.go b/x/keyshare/keeper/msg_create_pubkey_test.go similarity index 100% rename from x/keyshare/keeper/msg_create_pub_key_test.go rename to x/keyshare/keeper/msg_create_pubkey_test.go diff --git a/x/keyshare/keeper/msg_override_pub_key.go b/x/keyshare/keeper/msg_override_pubkey.go similarity index 100% rename from x/keyshare/keeper/msg_override_pub_key.go rename to x/keyshare/keeper/msg_override_pubkey.go diff --git a/x/keyshare/keeper/msg_override_pub_key_test.go b/x/keyshare/keeper/msg_override_pubkey_test.go similarity index 97% rename from x/keyshare/keeper/msg_override_pub_key_test.go rename to x/keyshare/keeper/msg_override_pubkey_test.go index 479788ec..afadeea3 100644 --- a/x/keyshare/keeper/msg_override_pub_key_test.go +++ b/x/keyshare/keeper/msg_override_pubkey_test.go @@ -22,7 +22,7 @@ func TestOverrideLatestPubkeyMsgServer(t *testing.T) { srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) - out, err := random.GeneratePubkeyAndShares(1) + out, err := random.GeneratePubKeyAndShares(1) require.NoError(t, err) creator := out.GeneratedShare[0].ValidatorAddress diff --git a/x/keyshare/keeper/msg_send_key_share.go b/x/keyshare/keeper/msg_send_keyshare.go similarity index 91% rename from x/keyshare/keeper/msg_send_key_share.go rename to x/keyshare/keeper/msg_send_keyshare.go index 9360ee62..29b7ee66 100644 --- a/x/keyshare/keeper/msg_send_key_share.go +++ b/x/keyshare/keeper/msg_send_keyshare.go @@ -104,7 +104,7 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar }, nil } - keyShare := types.Keyshare{ + keyshare := types.Keyshare{ Validator: msg.Creator, BlockHeight: msg.BlockHeight, Keyshare: msg.Message, @@ -114,21 +114,21 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar } // Save the new keyshare to state - k.SetKeyShare(ctx, keyShare) + k.SetKeyshare(ctx, keyshare) k.SetLastSubmittedHeight(ctx, msg.Creator, strconv.FormatUint(msg.BlockHeight, 10)) validatorList := k.GetAllValidatorSet(ctx) // Get all the keyshares for the provided block height in state - var stateKeyShares []types.Keyshare + var stateKeyshares []types.Keyshare for _, eachValidator := range validatorList { - eachKeyShare, found := k.GetKeyShare(ctx, eachValidator.Validator, msg.BlockHeight) + eachKeyshare, found := k.GetKeyshare(ctx, eachValidator.Validator, msg.BlockHeight) if !found { continue } - stateKeyShares = append(stateKeyShares, eachKeyShare) + stateKeyshares = append(stateKeyshares, eachKeyshare) } // Get the active public key for aggregating @@ -154,13 +154,18 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar ), ) - // Check if there is an aggregated key exists - aggrKeyData, found := k.GetAggregatedKeyShare(ctx, msg.BlockHeight) - - // If there is not enough keyshares to aggregate OR there is already an aggregated key - // Only continue the code if there is enough keyshare to aggregate & no aggregated key for current height - if int64(len(stateKeyShares)) < expectedThreshold || found { - defer telemetry.IncrCounterWithLabels([]string{types.KeyTotalValidKeyShareSubmitted}, 1, []metrics.Label{telemetry.NewLabel("aggrkey", aggrKeyData.Data)}) + // Check if decryption key already exists + decryptionKeyData, found := k.GetDecryptionKey(ctx, msg.BlockHeight) + + // If there is not enough keyshares to aggregate OR there is already a decryption key + // Only continue the code if there is enough keyshare to aggregate & + // no decryption key for current height + if int64(len(stateKeyshares)) < expectedThreshold || found { + defer telemetry.IncrCounterWithLabels( + []string{types.KeyTotalValidKeyShareSubmitted}, + 1, + []metrics.Label{telemetry.NewLabel("aggrkey", decryptionKeyData.Data)}, + ) return &types.MsgSendKeyshareResponse{ Creator: msg.Creator, Keyshare: msg.Message, @@ -175,7 +180,7 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar var listOfShares []distIBE.ExtractedKey var listOfCommitment []distIBE.Commitment - for _, eachKeyShare := range stateKeyShares { + for _, eachKeyShare := range stateKeyshares { if eachKeyShare.KeyshareIndex > commitmentsLen { k.Logger().Error(fmt.Sprintf("KeyShareIndex: %d should not higher or equals to commitments length: %d", eachKeyShare.KeyshareIndex, commitmentsLen)) continue @@ -204,12 +209,12 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar } skHex := hex.EncodeToString(skByte) - k.SetAggregatedKeyShare(ctx, types.DecryptionKey{ + k.SetDecryptionKey(ctx, types.DecryptionKey{ Height: msg.BlockHeight, Data: skHex, }) - k.SetAggregatedKeyShareLength(ctx, k.GetAggregatedKeyShareLength(ctx)+1) + k.SetDecryptionKeyLength(ctx, k.GetDecryptionKeyLength(ctx)+1) k.Logger().Info(fmt.Sprintf("Aggregated Decryption Key for Block %d: %s", msg.BlockHeight, skHex)) @@ -240,7 +245,7 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar k.pepKeeper.SetLatestHeight(ctx, strconv.FormatUint(msg.BlockHeight, 10)) } - k.Logger().Info(fmt.Sprintf("[ProcessUnconfirmedTxs] Aggregated Key Added, height: %d", msg.BlockHeight)) + k.Logger().Info(fmt.Sprintf("[ProcessUnconfirmedTxs] Decryption Key Added, height: %d", msg.BlockHeight)) return &types.MsgSendKeyshareResponse{ Creator: msg.Creator, diff --git a/x/keyshare/keeper/msg_send_key_share_test.go b/x/keyshare/keeper/msg_send_keyshare_test.go similarity index 92% rename from x/keyshare/keeper/msg_send_key_share_test.go rename to x/keyshare/keeper/msg_send_keyshare_test.go index 9dfe08d2..fa3bbb4d 100644 --- a/x/keyshare/keeper/msg_send_key_share_test.go +++ b/x/keyshare/keeper/msg_send_keyshare_test.go @@ -39,19 +39,19 @@ func TestSendKeyShareMsgServerCreateAggregated(t *testing.T) { _, err = srv.SendKeyshare(wctx, expected) require.NoError(t, err) - rst, found := k.GetKeyShare(wctx, + rst, found := k.GetKeyshare(wctx, expected.Creator, idUint, ) require.True(t, found) require.Equal(t, expected.Creator, rst.Validator) - _, found = k.GetAggregatedKeyShare(wctx, idUint) + _, found = k.GetDecryptionKey(wctx, idUint) require.True(t, found) } -func TestSendKeyShareMsgServerCreateNotAggregated(t *testing.T) { +func TestSendKeyshareMsgServerCreateNotAggregated(t *testing.T) { k, ctx, _, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) @@ -73,14 +73,14 @@ func TestSendKeyShareMsgServerCreateNotAggregated(t *testing.T) { _, err = srv.SendKeyshare(wctx, expected) require.NoError(t, err) - rst, found := k.GetKeyShare(wctx, + rst, found := k.GetKeyshare(wctx, expected.Creator, idUint, ) require.True(t, found) require.Equal(t, expected.Creator, rst.Validator) - _, found = k.GetAggregatedKeyShare(wctx, idUint) + _, found = k.GetDecryptionKey(wctx, idUint) require.False(t, found) } diff --git a/x/keyshare/keeper/msg_submit_encrypted_keyshare.go b/x/keyshare/keeper/msg_submit_encrypted_keyshare.go index cdee4596..7fb0b52e 100644 --- a/x/keyshare/keeper/msg_submit_encrypted_keyshare.go +++ b/x/keyshare/keeper/msg_submit_encrypted_keyshare.go @@ -35,7 +35,7 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg return nil, types.ErrAuthorizedAnotherAddress } - keyShareReq, found := k.GetPrivateKeyShareRequest(ctx, msg.Identity) + privDecryptionKeyReq, found := k.GetPrivateDecryptionKeyRequest(ctx, msg.Identity) if !found { return nil, types.ErrKeyShareRequestNotFound.Wrapf(", got id value: %s", msg.Identity) } @@ -61,7 +61,7 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg } // Save the new private keyshare to state - k.SetPrivateKeyShare(ctx, valEncKeyshare) + k.SetPrivateKeyshare(ctx, valEncKeyshare) k.SetLastSubmittedHeight(ctx, msg.Creator, strconv.FormatInt(ctx.BlockHeight(), 10)) validatorList := k.GetAllValidatorSet(ctx) @@ -70,11 +70,11 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg var stateEncryptedKeyShares []types.ValidatorEncryptedKeyshare for _, eachValidator := range validatorList { - eachEncKeyShare, found := k.GetPrivateKeyShare(ctx, eachValidator.Validator, msg.Identity, msg.Requester) + eachPrivDecryptionKeyReq, found := k.GetPrivateKeyshare(ctx, eachValidator.Validator, msg.Identity, msg.Requester) if !found { continue } - stateEncryptedKeyShares = append(stateEncryptedKeyShares, eachEncKeyShare) + stateEncryptedKeyShares = append(stateEncryptedKeyShares, eachPrivDecryptionKeyReq) } // Get the active public key for aggregating @@ -100,14 +100,15 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg ), ) - // If there is not enough keyshares to aggregate OR there is already an aggregated key - // Only continue the code if there is enough keyshare to aggregate & no aggregated key for current height + // If there is not enough keyshares to aggregate OR there is already a decryption key + // Only continue the code if there is enough keyshare to aggregate + // & no decryption key for current height if int64(len(stateEncryptedKeyShares)) < expectedThreshold { return &types.MsgSubmitEncryptedKeyshareResponse{}, nil } - if len(keyShareReq.PrivateDecryptionKeys) != 0 { - for _, entry := range keyShareReq.PrivateDecryptionKeys { + if len(privDecryptionKeyReq.PrivateDecryptionKeys) != 0 { + for _, entry := range privDecryptionKeyReq.PrivateDecryptionKeys { if entry.Requester == msg.Requester && len(entry.PrivateKeyshares) != 0 { return &types.MsgSubmitEncryptedKeyshareResponse{}, nil } @@ -124,23 +125,23 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg } kslist.Requester = msg.Requester - keyShareReq.PrivateDecryptionKeys = append(keyShareReq.PrivateDecryptionKeys, &kslist) - k.SetPrivateKeyShareRequest(ctx, keyShareReq) + privDecryptionKeyReq.PrivateDecryptionKeys = append(privDecryptionKeyReq.PrivateDecryptionKeys, &kslist) + k.SetPrivateDecryptionKeyRequest(ctx, privDecryptionKeyReq) timeoutTimestamp := ctx.BlockTime().Add(time.Second * 20).UnixNano() - if keyShareReq.IbcInfo != nil { - if keyShareReq.IbcInfo.ChannelId != "" { + if privDecryptionKeyReq.IbcInfo != nil { + if privDecryptionKeyReq.IbcInfo.ChannelId != "" { _, err := k.TransmitPrivateDecryptionKeyDataPacket( ctx, types.PrivateDecryptionKeyDataPacketData{ - Identity: keyShareReq.Identity, - Pubkey: keyShareReq.Pubkey, - RequestId: keyShareReq.RequestId, - PrivateDecryptionKey: keyShareReq.PrivateDecryptionKeys, + Identity: privDecryptionKeyReq.Identity, + Pubkey: privDecryptionKeyReq.Pubkey, + RequestId: privDecryptionKeyReq.RequestId, + PrivateDecryptionKey: privDecryptionKeyReq.PrivateDecryptionKeys, }, - keyShareReq.IbcInfo.PortId, - keyShareReq.IbcInfo.ChannelId, + privDecryptionKeyReq.IbcInfo.PortId, + privDecryptionKeyReq.IbcInfo.ChannelId, clienttypes.ZeroHeight(), uint64(timeoutTimestamp), ) @@ -149,8 +150,8 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg } } } else { - entry, _ := k.pepKeeper.GetPrivateRequest(ctx, keyShareReq.RequestId) - entry.PrivateDecryptionKeys = keyShareReq.PrivateDecryptionKeys + entry, _ := k.pepKeeper.GetPrivateRequest(ctx, privDecryptionKeyReq.RequestId) + entry.PrivateDecryptionKeys = privDecryptionKeyReq.PrivateDecryptionKeys k.pepKeeper.SetPrivateRequest(ctx, entry) } diff --git a/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go b/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go index a5cacb3a..d904fe03 100644 --- a/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go +++ b/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go @@ -34,7 +34,7 @@ func TestEncryptedlKeyShareMsgServerCreate(t *testing.T) { idVal := random.RandHex(32) - k.SetPrivateKeyShareRequest(wctx, types.PrivateDecryptionKeyRequest{ + k.SetPrivateDecryptionKeyRequest(wctx, types.PrivateDecryptionKeyRequest{ Identity: idVal, Pubkey: out.MasterPublicKey, IbcInfo: nil, @@ -70,10 +70,10 @@ func TestEncryptedlKeyShareMsgServerCreate(t *testing.T) { _, err = srv.SubmitEncryptedKeyshare(wctx, expected) require.NoError(t, err) - _, found := k.GetPrivateKeyShareRequest(ctx, idVal) + _, found := k.GetPrivateDecryptionKeyRequest(ctx, idVal) require.True(t, found) - rst, found := k.GetPrivateKeyShare(wctx, + rst, found := k.GetPrivateKeyshare(wctx, expected.Creator, expected.Identity, expected.Creator, @@ -131,7 +131,7 @@ func TestEncryptedKeyShareMsgServerFailCases(t *testing.T) { require.ErrorIs(t, err, tc.err) if tc.desc == "KeyShareRequestNotFound" { - k.SetPrivateKeyShareRequest(wctx, types.PrivateDecryptionKeyRequest{ + k.SetPrivateDecryptionKeyRequest(wctx, types.PrivateDecryptionKeyRequest{ Identity: onlyIdVal, Pubkey: out.MasterPublicKey, IbcInfo: nil, diff --git a/x/keyshare/keeper/msg_create_general_key_share.go b/x/keyshare/keeper/msg_submit_general_keyshare.go similarity index 88% rename from x/keyshare/keeper/msg_create_general_key_share.go rename to x/keyshare/keeper/msg_submit_general_keyshare.go index 323b6846..c6e0427e 100644 --- a/x/keyshare/keeper/msg_create_general_key_share.go +++ b/x/keyshare/keeper/msg_submit_general_keyshare.go @@ -65,7 +65,7 @@ func (k msgServer) SubmitGeneralKeyshare( switch msg.IdType { case PrivateGovIdentity: - keyShareReq, found := k.GetKeyShareRequest(ctx, msg.IdValue) + keyShareReq, found := k.GetDecryptionKeyRequest(ctx, msg.IdValue) if !found { return nil, types.ErrKeyShareRequestNotFound.Wrapf(", got id value: %s", msg.IdValue) } @@ -79,7 +79,6 @@ func (k msgServer) SubmitGeneralKeyshare( ReceivedBlockHeight: uint64(ctx.BlockHeight()), Success: true, }, nil - // return nil, types.ErrAggKeyAlreadyExists.Wrapf(", identity: %s, Aggregated key: %s", msg.IdValue, keyShareReq.AggrKeyshare) } } @@ -144,7 +143,7 @@ func (k msgServer) SubmitGeneralKeyshare( } // Save the new general key share to state - k.SetGeneralKeyShare(ctx, generalKeyShare) + k.SetGeneralKeyshare(ctx, generalKeyShare) k.SetLastSubmittedHeight(ctx, msg.Creator, strconv.FormatInt(ctx.BlockHeight(), 10)) validatorList := k.GetAllValidatorSet(ctx) @@ -153,7 +152,12 @@ func (k msgServer) SubmitGeneralKeyshare( var stateGeneralKeyShares []types.GeneralKeyshare for _, eachValidator := range validatorList { - eachGeneralKeyShare, found := k.GetGeneralKeyShare(ctx, eachValidator.Validator, msg.IdType, msg.IdValue) + eachGeneralKeyShare, found := k.GetGeneralKeyshare( + ctx, + eachValidator.Validator, + msg.IdType, + msg.IdValue, + ) if !found { continue } @@ -201,7 +205,7 @@ func (k msgServer) SubmitGeneralKeyshare( // Check if target general keyshare already aggregated a key switch msg.IdType { case PrivateGovIdentity: - keyShareReq, found := k.GetKeyShareRequest(ctx, msg.IdValue) + keyShareReq, found := k.GetDecryptionKeyRequest(ctx, msg.IdValue) if !found { return nil, types.ErrKeyShareRequestNotFound.Wrapf(", got id value: %s", msg.IdValue) } @@ -273,32 +277,32 @@ func (k msgServer) SubmitGeneralKeyshare( KeyshareIndex: msg.KeyshareIndex, ReceivedBlockHeight: uint64(ctx.BlockHeight()), } - keyShareReq, found := k.GetKeyShareRequest(ctx, msg.IdValue) + decryptionKeyReq, found := k.GetDecryptionKeyRequest(ctx, msg.IdValue) if !found { return nil, types.ErrKeyShareRequestNotFound.Wrapf(", got id value: %s", msg.IdValue) } - if keyShareReq.DecryptionKey != "" { - return nil, types.ErrAggKeyAlreadyExists.Wrapf(", identity: %s, Aggregated key: %s", msg.IdValue, keyShareReq.DecryptionKey) + if decryptionKeyReq.DecryptionKey != "" { + return nil, types.ErrAggKeyAlreadyExists.Wrapf(", identity: %s, Aggregated key: %s", msg.IdValue, decryptionKeyReq.DecryptionKey) } - keyShareReq.DecryptionKey = skHex - k.SetKeyShareRequest(ctx, keyShareReq) + decryptionKeyReq.DecryptionKey = skHex + k.SetDecryptionKeyRequest(ctx, decryptionKeyReq) timeoutTimestamp := ctx.BlockTime().Add(time.Second * 20).UnixNano() - if keyShareReq.IbcInfo != nil { - if keyShareReq.IbcInfo.ChannelId != "" { + if decryptionKeyReq.IbcInfo != nil { + if decryptionKeyReq.IbcInfo.ChannelId != "" { _, err := k.TransmitDecryptionKeyDataPacket( ctx, types.DecryptionKeyDataPacketData{ - Identity: keyShareReq.Identity, - Pubkey: keyShareReq.Pubkey, - DecryptionKey: keyShareReq.DecryptionKey, + Identity: decryptionKeyReq.Identity, + Pubkey: decryptionKeyReq.Pubkey, + DecryptionKey: decryptionKeyReq.DecryptionKey, AggrHeight: strconv.FormatInt(ctx.BlockHeight(), 10), - ProposalId: keyShareReq.ProposalId, - RequestId: keyShareReq.RequestId, + ProposalId: decryptionKeyReq.ProposalId, + RequestId: decryptionKeyReq.RequestId, Retries: 0, }, - keyShareReq.IbcInfo.PortId, - keyShareReq.IbcInfo.ChannelId, + decryptionKeyReq.IbcInfo.PortId, + decryptionKeyReq.IbcInfo.ChannelId, clienttypes.ZeroHeight(), uint64(timeoutTimestamp), ) @@ -308,8 +312,8 @@ func (k msgServer) SubmitGeneralKeyshare( } } } else { - if keyShareReq.ProposalId != "" { - id, err := strconv.ParseUint(keyShareReq.ProposalId, 10, 64) + if decryptionKeyReq.ProposalId != "" { + id, err := strconv.ParseUint(decryptionKeyReq.ProposalId, 10, 64) if err != nil { val.Success = false return &val, err @@ -321,11 +325,11 @@ func (k msgServer) SubmitGeneralKeyshare( return &val, errors.New("proposal not found") } - proposal.DecryptionKey = keyShareReq.DecryptionKey + proposal.DecryptionKey = decryptionKeyReq.DecryptionKey k.govKeeper.SetProposal(ctx, proposal) } else { - val, _ := k.pepKeeper.GetEntry(ctx, keyShareReq.RequestId) - val.DecryptionKey = keyShareReq.DecryptionKey + val, _ := k.pepKeeper.GetEntry(ctx, decryptionKeyReq.RequestId) + val.DecryptionKey = decryptionKeyReq.DecryptionKey k.pepKeeper.SetExecutionQueueEntry(ctx, val) k.pepKeeper.SetEntry(ctx, val) } diff --git a/x/keyshare/keeper/msg_create_general_key_share_test.go b/x/keyshare/keeper/msg_submit_general_keyshare_test.go similarity index 91% rename from x/keyshare/keeper/msg_create_general_key_share_test.go rename to x/keyshare/keeper/msg_submit_general_keyshare_test.go index 68787da4..8c3dfbfe 100644 --- a/x/keyshare/keeper/msg_create_general_key_share_test.go +++ b/x/keyshare/keeper/msg_submit_general_keyshare_test.go @@ -47,7 +47,7 @@ func SetupTestGeneralKeyShare(t *testing.T, ctx sdk.Context, k keeper.Keeper, nu return out, creator } -func TestGeneralKeyShareMsgServerCreateAggregated(t *testing.T) { +func TestSubmitGeneralKeyshareAggregated(t *testing.T) { k, ctx, pk, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) @@ -59,7 +59,7 @@ func TestGeneralKeyShareMsgServerCreateAggregated(t *testing.T) { idVal := random.RandHex(32) - k.SetKeyShareRequest(wctx, types.DecryptionKeyRequest{ + k.SetDecryptionKeyRequest(wctx, types.DecryptionKeyRequest{ Identity: idVal, Pubkey: out.MasterPublicKey, IbcInfo: nil, @@ -91,7 +91,7 @@ func TestGeneralKeyShareMsgServerCreateAggregated(t *testing.T) { _, err = srv.SubmitGeneralKeyshare(wctx, expected) require.NoError(t, err) - rst, found := k.GetGeneralKeyShare(wctx, + rst, found := k.GetGeneralKeyshare(wctx, expected.Creator, expected.IdType, expected.IdValue, @@ -99,13 +99,13 @@ func TestGeneralKeyShareMsgServerCreateAggregated(t *testing.T) { require.True(t, found) require.Equal(t, expected.Creator, rst.Validator) - entry, found := k.GetKeyShareRequest(ctx, idVal) + entry, found := k.GetDecryptionKeyRequest(ctx, idVal) require.True(t, found) require.NotEmpty(t, entry.DecryptionKey) } } -func TestGeneralKeyShareMsgServerCreateNotAggregated(t *testing.T) { +func TestSubmitGeneralKeyshareNotAggregated(t *testing.T) { k, ctx, pk, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) @@ -117,7 +117,7 @@ func TestGeneralKeyShareMsgServerCreateNotAggregated(t *testing.T) { idVal := random.RandHex(32) - k.SetKeyShareRequest(wctx, types.DecryptionKeyRequest{ + k.SetDecryptionKeyRequest(wctx, types.DecryptionKeyRequest{ Identity: idVal, Pubkey: out.MasterPublicKey, IbcInfo: nil, @@ -149,7 +149,7 @@ func TestGeneralKeyShareMsgServerCreateNotAggregated(t *testing.T) { _, err = srv.SubmitGeneralKeyshare(wctx, expected) require.NoError(t, err) - rst, found := k.GetGeneralKeyShare(wctx, + rst, found := k.GetGeneralKeyshare(wctx, expected.Creator, expected.IdType, expected.IdValue, @@ -157,7 +157,7 @@ func TestGeneralKeyShareMsgServerCreateNotAggregated(t *testing.T) { require.True(t, found) require.Equal(t, expected.Creator, rst.Validator) - entry, found := k.GetKeyShareRequest(ctx, idVal) + entry, found := k.GetDecryptionKeyRequest(ctx, idVal) require.True(t, found) require.Empty(t, entry.DecryptionKey) } @@ -225,7 +225,7 @@ func TestGeneralKeyShareMsgServerFailCases(t *testing.T) { require.ErrorIs(t, err, tc.err) if tc.desc == "KeyShareRequestNotFound" { - k.SetKeyShareRequest(wctx, types.DecryptionKeyRequest{ + k.SetDecryptionKeyRequest(wctx, types.DecryptionKeyRequest{ Identity: onlyIdVal, Pubkey: out.MasterPublicKey, IbcInfo: nil, diff --git a/x/keyshare/keeper/process_queues.go b/x/keyshare/keeper/process_queues.go index 154d03f3..68db2643 100644 --- a/x/keyshare/keeper/process_queues.go +++ b/x/keyshare/keeper/process_queues.go @@ -55,7 +55,7 @@ func (k Keeper) ProcessPepRequestQueue(ctx sdk.Context) error { keyshareRequest.DecryptionKey = "" keyshareRequest.RequestId = req.GetRequestId() - k.SetKeyShareRequest(ctx, keyshareRequest) + k.SetDecryptionKeyRequest(ctx, keyshareRequest) entry := peptypes.IdentityExecutionEntry{ Creator: req.Creator, @@ -75,26 +75,26 @@ func (k Keeper) ProcessPepSignalQueue(ctx sdk.Context) error { k.Logger().Info(fmt.Sprintf("PROCESSING PEP SIGNAL QUEUE: %v", reqs)) for _, req := range reqs { if req.Identity != "" { - keyshareReq, found := k.GetKeyShareRequest(ctx, req.Identity) + decryptionKeyReq, found := k.GetDecryptionKeyRequest(ctx, req.Identity) if !found { k.pepKeeper.RemoveSignalQueueEntry(ctx, req.GetRequestId()) continue } key, _ := k.GetActivePubkey(ctx) - if keyshareReq.Pubkey != key.PublicKey { + if decryptionKeyReq.Pubkey != key.PublicKey { qKey, found := k.GetQueuedPubkey(ctx) if !found { k.pepKeeper.RemoveSignalQueueEntry(ctx, req.GetRequestId()) continue } - if qKey.PublicKey != keyshareReq.Pubkey { + if qKey.PublicKey != decryptionKeyReq.Pubkey { k.pepKeeper.RemoveSignalQueueEntry(ctx, req.GetRequestId()) continue } continue } - if keyshareReq.DecryptionKey == "" { + if decryptionKeyReq.DecryptionKey == "" { ctx.EventManager().EmitEvent( sdk.NewEvent(types.StartSendGeneralKeyShareEventType, sdk.NewAttribute(types.StartSendGeneralKeyShareEventIdentity, req.Identity), @@ -126,7 +126,7 @@ func (k Keeper) ProcessPrivateRequestQueue(ctx sdk.Context) error { keyshareRequest.PrivateDecryptionKeys = make([]*common.PrivateDecryptionKey, 0) keyshareRequest.RequestId = req.GetRequestId() - k.SetPrivateKeyShareRequest(ctx, keyshareRequest) + k.SetPrivateDecryptionKeyRequest(ctx, keyshareRequest) entry, found := k.pepKeeper.GetPrivateRequest(ctx, id) if !found { @@ -151,7 +151,7 @@ func (k Keeper) ProcessPrivateSignalQueue(ctx sdk.Context) error { for _, req := range reqs { if req.Identity != "" { - keyshareReq, found := k.GetPrivateKeyShareRequest(ctx, req.Identity) + privDecryptionKeyReq, found := k.GetPrivateDecryptionKeyRequest(ctx, req.Identity) if !found { var keyshareRequest types.PrivateDecryptionKeyRequest @@ -161,7 +161,7 @@ func (k Keeper) ProcessPrivateSignalQueue(ctx sdk.Context) error { keyshareRequest.PrivateDecryptionKeys = make([]*common.PrivateDecryptionKey, 0) keyshareRequest.RequestId = req.GetRequestId() - k.SetPrivateKeyShareRequest(ctx, keyshareRequest) + k.SetPrivateDecryptionKeyRequest(ctx, keyshareRequest) entry, found := k.pepKeeper.GetPrivateRequest(ctx, req.Identity) if !found { @@ -173,7 +173,7 @@ func (k Keeper) ProcessPrivateSignalQueue(ctx sdk.Context) error { } - if len(keyshareReq.PrivateDecryptionKeys) == 0 { + if len(privDecryptionKeyReq.PrivateDecryptionKeys) == 0 { ctx.EventManager().EmitEvent( sdk.NewEvent(types.StartSendEncryptedKeyShareEventType, sdk.NewAttribute(types.StartSendGeneralKeyShareEventIdentity, req.Identity), @@ -229,7 +229,7 @@ func (k Keeper) ProcessGovRequestQueue(ctx sdk.Context) error { keyshareRequest.DecryptionKey = "" keyshareRequest.ProposalId = req.GetProposalId() - k.SetKeyShareRequest(ctx, keyshareRequest) + k.SetDecryptionKeyRequest(ctx, keyshareRequest) k.SetRequestCount(ctx, reqCount) pID, _ := strconv.ParseUint(req.GetProposalId(), 10, 64) @@ -253,27 +253,27 @@ func (k Keeper) ProcessGovSignalQueue(ctx sdk.Context) error { reqs := k.govKeeper.GetAllSignalQueueEntry(ctx) for _, req := range reqs { if req.Identity != "" { - keyshareReq, found := k.GetKeyShareRequest(ctx, req.Identity) + decryptionKeyReq, found := k.GetDecryptionKeyRequest(ctx, req.Identity) if !found { k.govKeeper.RemoveSignalQueueEntry(ctx, req.GetProposalId()) continue } key, _ := k.GetActivePubkey(ctx) - if keyshareReq.Pubkey != key.PublicKey { + if decryptionKeyReq.Pubkey != key.PublicKey { qKey, found := k.GetQueuedPubkey(ctx) if !found { k.govKeeper.RemoveSignalQueueEntry(ctx, req.GetProposalId()) continue } - if qKey.PublicKey != keyshareReq.Pubkey { + if qKey.PublicKey != decryptionKeyReq.Pubkey { k.govKeeper.RemoveSignalQueueEntry(ctx, req.GetProposalId()) continue } continue } - if keyshareReq.DecryptionKey == "" { + if decryptionKeyReq.DecryptionKey == "" { ctx.EventManager().EmitEvent( sdk.NewEvent(types.StartSendGeneralKeyShareEventType, sdk.NewAttribute(types.StartSendGeneralKeyShareEventIdentity, req.Identity), diff --git a/x/keyshare/keeper/query_decryption_key.go b/x/keyshare/keeper/query_decryption_key.go index e0ce8cfa..4572cba8 100644 --- a/x/keyshare/keeper/query_decryption_key.go +++ b/x/keyshare/keeper/query_decryption_key.go @@ -14,7 +14,7 @@ import ( "google.golang.org/grpc/status" ) -// DecryptionKeyAll returns the paginated list of all aggregated keyshares +// DecryptionKeyAll returns the paginated list of all decryption keys func (k Keeper) DecryptionKeyAll( goCtx context.Context, req *types.QueryDecryptionKeyAllRequest, @@ -23,34 +23,38 @@ func (k Keeper) DecryptionKeyAll( return nil, status.Error(codes.InvalidArgument, "invalid request") } - var aggregatedKeyShares []types.DecryptionKey + var decryptionKeys []types.DecryptionKey ctx := sdk.UnwrapSDKContext(goCtx) storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - aggregatedKeyShareStore := prefix.NewStore(store, types.KeyPrefix(types.AggregatedKeyShareKeyPrefix)) + decryptionKeyStore := prefix.NewStore(store, types.KeyPrefix(types.DecryptionKeyKeyPrefix)) - pageRes, err := query.Paginate(aggregatedKeyShareStore, req.Pagination, func(key []byte, value []byte) error { - var aggregatedKeyShare types.DecryptionKey - if err := k.cdc.Unmarshal(value, &aggregatedKeyShare); err != nil { - return err - } + pageRes, err := query.Paginate( + decryptionKeyStore, + req.Pagination, + func(key []byte, value []byte) error { + var decryptionKey types.DecryptionKey + if err := k.cdc.Unmarshal(value, &decryptionKey); err != nil { + return err + } - aggregatedKeyShares = append(aggregatedKeyShares, aggregatedKeyShare) - return nil - }) + decryptionKeys = append(decryptionKeys, decryptionKey) + return nil + }, + ) if err != nil { return nil, status.Error(codes.Internal, err.Error()) } return &types.QueryDecryptionKeyAllResponse{ - DecryptionKeys: aggregatedKeyShares, + DecryptionKeys: decryptionKeys, Pagination: pageRes, }, nil } -// AggregatedKeyShare returns the aggregated key share for a particular height +// DecryptionKey returns the decryption key for a particular height func (k Keeper) DecryptionKey( goCtx context.Context, req *types.QueryDecryptionKeyRequest, @@ -60,7 +64,7 @@ func (k Keeper) DecryptionKey( } ctx := sdk.UnwrapSDKContext(goCtx) - val, found := k.GetAggregatedKeyShare( + val, found := k.GetDecryptionKey( ctx, req.Height, ) diff --git a/x/keyshare/keeper/query_decryption_key_test.go b/x/keyshare/keeper/query_decryption_key_test.go index 4fcaea9d..3b9d3c67 100644 --- a/x/keyshare/keeper/query_decryption_key_test.go +++ b/x/keyshare/keeper/query_decryption_key_test.go @@ -18,10 +18,10 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func TestAggregatedKeyShareQuerySingle(t *testing.T) { +func TestDecryptionKeyQuerySingle(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) - msgs := createNAggregatedKeyShare(&keeper, ctx, 2) + msgs := createNDecryptionKeys(&keeper, ctx, 2) for _, tc := range []struct { desc string request *types.QueryDecryptionKeyRequest @@ -69,10 +69,10 @@ func TestAggregatedKeyShareQuerySingle(t *testing.T) { } } -func TestAggregatedKeyShareQueryAllNoPagination(t *testing.T) { +func TestDecryptionKeyQueryAllNoPagination(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) - msgs := createNAggregatedKeyShare(&keeper, ctx, 10) + msgs := createNDecryptionKeys(&keeper, ctx, 10) for _, tc := range []struct { desc string request *types.QueryDecryptionKeyAllRequest @@ -114,10 +114,10 @@ func TestAggregatedKeyShareQueryAllNoPagination(t *testing.T) { } } -func TestAggregatedKeyShareQueryPaginated(t *testing.T) { +func TestDecryptionKeyQueryPaginated(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) - msgs := createNAggregatedKeyShare(&keeper, ctx, 5) + msgs := createNDecryptionKeys(&keeper, ctx, 5) request := func( next []byte, diff --git a/x/keyshare/keeper/query_general_key_share.go b/x/keyshare/keeper/query_general_keyshare.go similarity index 96% rename from x/keyshare/keeper/query_general_key_share.go rename to x/keyshare/keeper/query_general_keyshare.go index 0642739d..6e602bb1 100644 --- a/x/keyshare/keeper/query_general_key_share.go +++ b/x/keyshare/keeper/query_general_keyshare.go @@ -26,7 +26,7 @@ func (k Keeper) GeneralKeyshareAll( storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - generalKeyShareStore := prefix.NewStore(store, types.KeyPrefix(types.GeneralKeyShareKeyPrefix)) + generalKeyShareStore := prefix.NewStore(store, types.KeyPrefix(types.GeneralKeyshareKeyPrefix)) pageRes, err := query.Paginate(generalKeyShareStore, req.Pagination, func(key []byte, value []byte) error { var generalKeyShare types.GeneralKeyshare @@ -57,7 +57,7 @@ func (k Keeper) GeneralKeyshare( } ctx := sdk.UnwrapSDKContext(goCtx) - val, found := k.GetGeneralKeyShare( + val, found := k.GetGeneralKeyshare( ctx, req.Validator, req.IdType, diff --git a/x/keyshare/keeper/query_general_key_share_test.go b/x/keyshare/keeper/query_general_keyshare_test.go similarity index 96% rename from x/keyshare/keeper/query_general_key_share_test.go rename to x/keyshare/keeper/query_general_keyshare_test.go index 627df862..ad7a2c09 100644 --- a/x/keyshare/keeper/query_general_key_share_test.go +++ b/x/keyshare/keeper/query_general_keyshare_test.go @@ -21,7 +21,7 @@ var _ = strconv.IntSize func TestGeneralKeyShareQuerySingle(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) - msgs := createNGeneralKeyShares(&keeper, ctx, 2) + msgs := createNGeneralKeyshares(&keeper, ctx, 2) for _, tc := range []struct { desc string request *types.QueryGeneralKeyshareRequest @@ -78,7 +78,7 @@ func TestGeneralKeyShareQuerySingle(t *testing.T) { func TestGeneralKeyShareQueryAllNoPagination(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) - msgs := createNGeneralKeyShares(&keeper, ctx, 10) + msgs := createNGeneralKeyshares(&keeper, ctx, 10) for _, tc := range []struct { desc string request *types.QueryGeneralKeyshareAllRequest @@ -123,7 +123,7 @@ func TestGeneralKeyShareQueryAllNoPagination(t *testing.T) { func TestGeneralKeyShareQueryPaginated(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) - msgs := createNGeneralKeyShares(&keeper, ctx, 5) + msgs := createNGeneralKeyshares(&keeper, ctx, 5) request := func( next []byte, diff --git a/x/keyshare/keeper/query_key_share.go b/x/keyshare/keeper/query_keyshare.go similarity index 93% rename from x/keyshare/keeper/query_key_share.go rename to x/keyshare/keeper/query_keyshare.go index 629a9845..ec57c801 100644 --- a/x/keyshare/keeper/query_key_share.go +++ b/x/keyshare/keeper/query_keyshare.go @@ -28,7 +28,7 @@ func (k Keeper) KeyshareAll( storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - keyShareStore := prefix.NewStore(store, types.KeyPrefix(types.KeyShareKeyPrefix)) + keyShareStore := prefix.NewStore(store, types.KeyPrefix(types.DecryptionKeyKeyPrefix)) pageRes, err := query.Paginate(keyShareStore, req.Pagination, func(key []byte, value []byte) error { var keyShare types.Keyshare @@ -57,7 +57,7 @@ func (k Keeper) Keyshare( } ctx := sdk.UnwrapSDKContext(c) - val, found := k.GetKeyShare( + val, found := k.GetKeyshare( ctx, req.Validator, req.BlockHeight, diff --git a/x/keyshare/keeper/query_key_share_test.go b/x/keyshare/keeper/query_keyshare_test.go similarity index 97% rename from x/keyshare/keeper/query_key_share_test.go rename to x/keyshare/keeper/query_keyshare_test.go index 13e6cd15..5e212bc1 100644 --- a/x/keyshare/keeper/query_key_share_test.go +++ b/x/keyshare/keeper/query_keyshare_test.go @@ -24,7 +24,7 @@ var _ = strconv.IntSize func TestKeyShareQuerySingle(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) - msgs := createNKeyShares(&keeper, ctx, 2) + msgs := createNKeyshares(&keeper, ctx, 2) for _, tc := range []struct { desc string request *types.QueryKeyshareRequest @@ -78,7 +78,7 @@ func TestKeyShareQuerySingle(t *testing.T) { func TestKeyShareQueryAllNoPagination(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) - msgs := createNKeyShares(&keeper, ctx, 10) + msgs := createNKeyshares(&keeper, ctx, 10) for _, tc := range []struct { desc string request *types.QueryKeyshareAllRequest @@ -123,7 +123,7 @@ func TestKeyShareQueryAllNoPagination(t *testing.T) { func TestKeyShareQueryPaginated(t *testing.T) { keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) - msgs := createNKeyShares(&keeper, ctx, 5) + msgs := createNKeyshares(&keeper, ctx, 5) request := func( next []byte, diff --git a/x/keyshare/keeper/query_verifiable_randomness.go b/x/keyshare/keeper/query_verifiable_randomness.go index b59caaaf..de5dd05e 100644 --- a/x/keyshare/keeper/query_verifiable_randomness.go +++ b/x/keyshare/keeper/query_verifiable_randomness.go @@ -21,24 +21,24 @@ func (k Keeper) VerifiableRandomness( return nil, status.Error(codes.InvalidArgument, "invalid request") } - aggrKeyArr := k.GetAllAggregatedKeyShare(ctx) + decryptionKeys := k.GetAllDecryptionKeys(ctx) - if len(aggrKeyArr) == 0 { - return nil, status.Error(codes.Internal, "aggregated key not found") + if len(decryptionKeys) == 0 { + return nil, status.Error(codes.Internal, "decryption key not found") } - aggrKey := aggrKeyArr[len(aggrKeyArr)-1] - aggrKeyBytes, err := hex.DecodeString(aggrKey.Data) + decryptionKey := decryptionKeys[len(decryptionKeys)-1] + decryptionKeyBytes, err := hex.DecodeString(decryptionKey.Data) if err != nil { - return nil, status.Error(codes.Internal, "unable to decode aggregated key") + return nil, status.Error(codes.Internal, "unable to decode decryption key") } hash := sha256.New() - hash.Write(aggrKeyBytes) - hashedAggrKey := hash.Sum(nil) + hash.Write(decryptionKeyBytes) + hashedDecryptionKey := hash.Sum(nil) return &types.QueryVerifiableRandomnessResponse{ - Randomness: hex.EncodeToString(hashedAggrKey), - Round: aggrKey.Height, + Randomness: hex.EncodeToString(hashedDecryptionKey), + Round: decryptionKey.Height, }, nil } diff --git a/x/keyshare/keeper/query_verifiable_randomness_test.go b/x/keyshare/keeper/query_verifiable_randomness_test.go index 3619c45a..f32a0e6e 100644 --- a/x/keyshare/keeper/query_verifiable_randomness_test.go +++ b/x/keyshare/keeper/query_verifiable_randomness_test.go @@ -31,9 +31,9 @@ func TestVerifiableRandomnessQuery(t *testing.T) { err: status.Error(codes.InvalidArgument, "invalid request"), }, { - desc: "AggregatedKeyNotFound", + desc: "DecryptionKeyNotFound", request: &types.QueryVerifiableRandomnessRequest{}, - err: status.Error(codes.Internal, "aggregated key not found"), + err: status.Error(codes.Internal, "decryption key not found"), }, } { t.Run(tc.desc, func(t *testing.T) { @@ -52,7 +52,7 @@ func TestVerifiableRandomnessQuery(t *testing.T) { randomHeight := rand.Uint64() - keeper.SetAggregatedKeyShare(ctx, types.DecryptionKey{ + keeper.SetDecryptionKey(ctx, types.DecryptionKey{ Height: randomHeight, Data: "NotHexString", }) @@ -62,7 +62,7 @@ func TestVerifiableRandomnessQuery(t *testing.T) { hash := sha256.New() hash.Write(randomBytes) - hashedAggrKey := hash.Sum(nil) + hashedDecryptionKey := hash.Sum(nil) for _, tc := range []struct { desc string @@ -71,15 +71,15 @@ func TestVerifiableRandomnessQuery(t *testing.T) { err error }{ { - desc: "UnableDecodeAggregatedKey", + desc: "UnableDecodeDecryptionKey", request: &types.QueryVerifiableRandomnessRequest{}, - err: status.Error(codes.Internal, "unable to decode aggregated key"), + err: status.Error(codes.Internal, "unable to decode decryption key"), }, { desc: "QueryVerifiableRandomness", request: &types.QueryVerifiableRandomnessRequest{}, response: &types.QueryVerifiableRandomnessResponse{ - Randomness: hex.EncodeToString(hashedAggrKey), + Randomness: hex.EncodeToString(hashedDecryptionKey), Round: randomHeight + 1, }, }, @@ -96,7 +96,7 @@ func TestVerifiableRandomnessQuery(t *testing.T) { ) } }) - keeper.SetAggregatedKeyShare(ctx, types.DecryptionKey{ + keeper.SetDecryptionKey(ctx, types.DecryptionKey{ Height: randomHeight + 1, Data: randomData, }) diff --git a/x/keyshare/keeper/request_decryption_key.go b/x/keyshare/keeper/request_decryption_key.go index 2f0030bf..a05838e0 100644 --- a/x/keyshare/keeper/request_decryption_key.go +++ b/x/keyshare/keeper/request_decryption_key.go @@ -98,7 +98,7 @@ func (k Keeper) OnRecvRequestDecryptionKeyPacket( } keyshareRequest.Sent = false - k.SetKeyShareRequest(ctx, keyshareRequest) + k.SetDecryptionKeyRequest(ctx, keyshareRequest) packetAck.Identity = id packetAck.Pubkey = activePubkey.PublicKey @@ -152,7 +152,7 @@ func (k Keeper) OnRecvRequestPrivateDecryptionKeyPacket( keyshareRequest.RequestId = data.GetRequestId() keyshareRequest.Sent = false - k.SetPrivateKeyShareRequest(ctx, keyshareRequest) + k.SetPrivateDecryptionKeyRequest(ctx, keyshareRequest) packetAck.Identity = id packetAck.Pubkey = activePubkey.PublicKey @@ -160,7 +160,7 @@ func (k Keeper) OnRecvRequestPrivateDecryptionKeyPacket( return packetAck, nil } -// OnTimeoutRequestAggrKeysharePacket responds to the case where a packet has not been transmitted because of a timeout +// OnTimeoutRequestPrivateDecryptionKeyPacket responds to the case where a packet has not been transmitted because of a timeout func (k Keeper) OnTimeoutRequestPrivateDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, data types.RequestPrivateDecryptionKeyPacketData) error { // Implement custom packet timeout logic diff --git a/x/keyshare/module/genesis.go b/x/keyshare/module/genesis.go index 2195d683..e56d1dc3 100644 --- a/x/keyshare/module/genesis.go +++ b/x/keyshare/module/genesis.go @@ -17,11 +17,11 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) } // Set all the keyShare for _, elem := range genState.KeyshareList { - k.SetKeyShare(ctx, elem) + k.SetKeyshare(ctx, elem) } - // Set all the aggregatedKeyShare + // Set all the decryption keys for _, elem := range genState.DecryptionKeyList { - k.SetAggregatedKeyShare(ctx, elem) + k.SetDecryptionKey(ctx, elem) } // Set actuve public key k.SetActivePubkey(ctx, genState.ActivePubkey) @@ -34,7 +34,7 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) } // Set all the generalKeyShare for _, elem := range genState.GeneralKeyshareList { - k.SetGeneralKeyShare(ctx, elem) + k.SetGeneralKeyshare(ctx, elem) } k.SetRequestCount(ctx, genState.RequestCount) @@ -63,8 +63,8 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { genesis.PortId = k.GetPort(ctx) genesis.ValidatorSetList = k.GetAllValidatorSet(ctx) - genesis.KeyshareList = k.GetAllKeyShare(ctx) - genesis.DecryptionKeyList = k.GetAllAggregatedKeyShare(ctx) + genesis.KeyshareList = k.GetAllKeyshare(ctx) + genesis.DecryptionKeyList = k.GetAllDecryptionKeys(ctx) akey, found := k.GetActivePubkey(ctx) if found { @@ -76,7 +76,7 @@ func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { } genesis.AuthorizedAddressList = k.GetAllAuthorizedAddress(ctx) - genesis.GeneralKeyshareList = k.GetAllGeneralKeyShare(ctx) + genesis.GeneralKeyshareList = k.GetAllGeneralKeyshare(ctx) // this line is used by starport scaffolding # genesis/module/export genesis.RequestCount, _ = strconv.ParseUint(k.GetRequestCount(ctx), 10, 64) diff --git a/x/keyshare/module/module_ibc.go b/x/keyshare/module/module_ibc.go index 032cd354..ad091663 100644 --- a/x/keyshare/module/module_ibc.go +++ b/x/keyshare/module/module_ibc.go @@ -162,7 +162,7 @@ func (im IBCModule) OnRecvPacket( } ctx.EventManager().EmitEvent( sdk.NewEvent( - types.EventTypeRequestAggrKeysharePacket, + types.EventTypeRequestDecryptionKeyPacket, sdk.NewAttribute(sdk.AttributeKeyModule, types.ModuleName), sdk.NewAttribute(types.AttributeKeyAckSuccess, fmt.Sprintf("%t", err != nil)), sdk.NewAttribute(types.AttributeKeyAckIdentity, packetAck.Identity), @@ -181,7 +181,7 @@ func (im IBCModule) OnRecvPacket( } ctx.EventManager().EmitEvent( sdk.NewEvent( - types.EventTypeRequestPrivateKeysharePacket, + types.EventTypeRequestPrivateDecryptionKeyPacket, sdk.NewAttribute(sdk.AttributeKeyModule, types.ModuleName), sdk.NewAttribute(types.AttributeKeyAckSuccess, fmt.Sprintf("%t", err != nil)), sdk.NewAttribute(types.AttributeKeyAckIdentity, packetAck.Identity), @@ -200,7 +200,7 @@ func (im IBCModule) OnRecvPacket( } ctx.EventManager().EmitEvent( sdk.NewEvent( - types.EventTypeGetEncryptedKeysharePacket, + types.EventTypeGetPrivateDecryptionKeyPacket, sdk.NewAttribute(sdk.AttributeKeyModule, types.ModuleName), sdk.NewAttribute(types.AttributeKeyAckSuccess, fmt.Sprintf("%t", err != nil)), ), @@ -216,7 +216,7 @@ func (im IBCModule) OnRecvPacket( } ctx.EventManager().EmitEvent( sdk.NewEvent( - types.EventTypeGetAggrKeysharePacket, + types.EventTypeGetDecryptionKeyPacket, sdk.NewAttribute(sdk.AttributeKeyModule, types.ModuleName), sdk.NewAttribute(types.AttributeKeyAckSuccess, fmt.Sprintf("%t", err != nil)), ), @@ -278,7 +278,7 @@ func (im IBCModule) OnAcknowledgementPacket( if err != nil { return err } - eventType = types.EventTypeAggrKeyshareDataPacket + eventType = types.EventTypeDecryptionKeyDataPacket // this line is used by starport scaffolding # ibc/packet/module/ack default: errMsg := fmt.Sprintf("unrecognized %s packet type: %T", types.ModuleName, packet) diff --git a/x/keyshare/types/errors.go b/x/keyshare/types/errors.go index 8ffc20a0..f8693d99 100644 --- a/x/keyshare/types/errors.go +++ b/x/keyshare/types/errors.go @@ -50,5 +50,5 @@ var ( ErrAuthorizedAnotherAddress = sdkerrors.Register(ModuleName, 1909, "validator authorized another address to submit key share is not allow to submit key share") ErrUnsupportedIDType = sdkerrors.Register(ModuleName, 1910, "id type provided in general key share message is not supported") ErrKeyShareRequestNotFound = sdkerrors.Register(ModuleName, 1911, "key share request for the given identity not found") - ErrAggKeyAlreadyExists = sdkerrors.Register(ModuleName, 1912, "aggregated key already exists for the given identity") + ErrAggKeyAlreadyExists = sdkerrors.Register(ModuleName, 1912, "decryption key already exists for the given identity") ) diff --git a/x/keyshare/types/events_ibc.go b/x/keyshare/types/events_ibc.go index 31af829c..4cf72720 100644 --- a/x/keyshare/types/events_ibc.go +++ b/x/keyshare/types/events_ibc.go @@ -9,13 +9,13 @@ const ( AttributeKeyAck = "acknowledgement" AttributeKeyAckError = "error" - EventTypeRequestAggrKeysharePacket = "requestAggrKeyshare_packet" - EventTypeRequestPrivateKeysharePacket = "requestPrivateKeyshare_packet" - EventTypeGetAggrKeysharePacket = "getAggrKeyshare_packet" - EventTypeGetEncryptedKeysharePacket = "getEncryptedKeyshare_packet" - EventTypeAggrKeyshareDataPacket = "aggrKeyshareData_packet" - EventTypeEncKeyshareDataPacket = "encryptedKeyshareData_packet" - EventTypeCurrentKeysPacket = "currentKeys_packet" + EventTypeRequestDecryptionKeyPacket = "requestDecryptionKey_packet" + EventTypeRequestPrivateDecryptionKeyPacket = "requestPrivateDecryptionKey_packet" + EventTypeGetDecryptionKeyPacket = "getDecryptionKey_packet" + EventTypeGetPrivateDecryptionKeyPacket = "getPrivateDecryptionKey_packet" + EventTypeDecryptionKeyDataPacket = "DecryptionKeyData_packet" + EventTypePrivateDecryptionKeyPacket = "privateDecryptionKey_packet" + EventTypeCurrentKeysPacket = "currentKeys_packet" AttributeKeyAckIdentity = "identity" AttributeKeyAckPubkey = "pubkey" diff --git a/x/keyshare/types/expected_keepers.go b/x/keyshare/types/expected_keepers.go index 6e1d99dc..e17f81a7 100644 --- a/x/keyshare/types/expected_keepers.go +++ b/x/keyshare/types/expected_keepers.go @@ -92,7 +92,7 @@ type PepKeeper interface { GetPrivateRequest(ctx context.Context, reqID string) (val peptypes.PrivateRequest, found bool) GetAllPrivateRequest(ctx context.Context) (list []peptypes.PrivateRequest) GetDecryptionKey(ctx context.Context, height uint64) (val peptypes.DecryptionKey, found bool) - SetDecryptionKey(ctx context.Context, aggregatedKeyShare peptypes.DecryptionKey) + SetDecryptionKey(ctx context.Context, decryptionKey peptypes.DecryptionKey) GetLatestHeight(ctx context.Context) string SetLatestHeight(ctx context.Context, height string) } diff --git a/x/keyshare/types/genesis.go b/x/keyshare/types/genesis.go index 4f984699..1e49c6a1 100644 --- a/x/keyshare/types/genesis.go +++ b/x/keyshare/types/genesis.go @@ -29,15 +29,16 @@ func (gs GenesisState) Validate() error { if err := host.PortIdentifierValidator(gs.PortId); err != nil { return err } - // Check for duplicated index in aggregatedKeyShare - aggregatedKeyShareIndexMap := make(map[string]struct{}) + + // Check for duplicated index in decrtion key + decryptionKeyIndexMap := make(map[string]struct{}) for _, elem := range gs.DecryptionKeyList { - index := string(AggregatedKeyShareKey(elem.Height)) - if _, ok := aggregatedKeyShareIndexMap[index]; ok { - return fmt.Errorf("duplicated index for aggregatedKeyShare") + index := string(DecryptionKeyKey(elem.Height)) + if _, ok := decryptionKeyIndexMap[index]; ok { + return fmt.Errorf("duplicated index for decryption key") } - aggregatedKeyShareIndexMap[index] = struct{}{} + decryptionKeyIndexMap[index] = struct{}{} } validatorSetIndexMap := make(map[string]struct{}) @@ -67,7 +68,7 @@ func (gs GenesisState) Validate() error { keyShareIndexMap := make(map[string]struct{}) for _, elem := range gs.KeyshareList { - index := string(KeyShareKey(elem.Validator, elem.BlockHeight)) + index := string(KeyshareKey(elem.Validator, elem.BlockHeight)) if _, ok := keyShareIndexMap[index]; ok { return fmt.Errorf("duplicated index for keyShare") } @@ -88,7 +89,7 @@ func (gs GenesisState) Validate() error { generalKeyShareIndexMap := make(map[string]struct{}) for _, elem := range gs.GeneralKeyshareList { - index := string(GeneralKeyShareKey(elem.Validator, elem.IdType, elem.IdValue)) + index := string(GeneralKeyshareKey(elem.Validator, elem.IdType, elem.IdValue)) if _, ok := generalKeyShareIndexMap[index]; ok { return fmt.Errorf("duplicated index for generalKeyShare") } diff --git a/x/keyshare/types/genesis_test.go b/x/keyshare/types/genesis_test.go index e1dce6f7..69c58669 100644 --- a/x/keyshare/types/genesis_test.go +++ b/x/keyshare/types/genesis_test.go @@ -36,7 +36,7 @@ func TestGenesisState_Validate(t *testing.T) { valid: true, }, { - desc: "duplicated aggregatedKeyShare", + desc: "duplicated decryption key", genState: &types.GenesisState{ DecryptionKeyList: []types.DecryptionKey{ { diff --git a/x/keyshare/types/key_aggregated_key_share.go b/x/keyshare/types/key_aggregated_key_share.go index 0e511419..0f22d528 100644 --- a/x/keyshare/types/key_aggregated_key_share.go +++ b/x/keyshare/types/key_aggregated_key_share.go @@ -5,13 +5,13 @@ import "encoding/binary" var _ binary.ByteOrder const ( - // AggregatedKeyShareKeyPrefix is the prefix to retrieve all AggregatedKeyShare - AggregatedKeyShareKeyPrefix = "AggregatedKeyShare/value/" - AggregatedKeyShareLengthPrefix = "AggregatedKeyShare/length/" + // DecryptionKeyKeyPrefix is the prefix to retrieve all decryption keys + DecryptionKeyKeyPrefix = "DecryptionKey/value/" + DecryptionKeyLengthPrefix = "DecryptionKey/length/" ) -// AggregatedKeyShareKey returns the store key to retrieve a AggregatedKeyShare from the index fields -func AggregatedKeyShareKey( +// DecryptionKeyKey returns the store key to retrieve a decryption key from the index fields +func DecryptionKeyKey( height uint64, ) []byte { var key []byte diff --git a/x/keyshare/types/key_key_share_request.go b/x/keyshare/types/key_decryption_key_request.go similarity index 81% rename from x/keyshare/types/key_key_share_request.go rename to x/keyshare/types/key_decryption_key_request.go index 050b25ee..982471a6 100644 --- a/x/keyshare/types/key_key_share_request.go +++ b/x/keyshare/types/key_decryption_key_request.go @@ -8,7 +8,7 @@ import ( var _ binary.ByteOrder const ( - // KeyShareRequestKeyPrefix is the prefix to retrieve all Keyshare requests + // DecryptionKeyRequestKeyPrefix is the prefix to retrieve all decryption key requests DecryptionKeyRequestKeyPrefix = "DecryptionKeyRequest/value/" PrivateDecryptionKeyRequestKeyPrefix = "PrivateDecryptionKeyRequest/value/" ) diff --git a/x/keyshare/types/key_general_key_share.go b/x/keyshare/types/key_general_keyshare.go similarity index 71% rename from x/keyshare/types/key_general_key_share.go rename to x/keyshare/types/key_general_keyshare.go index 214fada6..9b2087b2 100644 --- a/x/keyshare/types/key_general_key_share.go +++ b/x/keyshare/types/key_general_keyshare.go @@ -5,13 +5,13 @@ import "encoding/binary" var _ binary.ByteOrder const ( - // GeneralKeyShareKeyPrefix is the prefix to retrieve all GeneralKeyShare - GeneralKeyShareKeyPrefix = "GeneralKeyShare/value/" - EncryptedKeyShareKeyPrefix = "EncryptedKeyShare/value/" + // GeneralKeyshareKeyPrefix is the prefix to retrieve all GeneralKeyShare + GeneralKeyshareKeyPrefix = "GeneralKeyshare/value/" + PrivateKeyshareKeyPrefix = "PrivateKeyshare/value/" ) -// GeneralKeyShareKey returns the store key to retrieve a GeneralKeyShare from the index fields -func GeneralKeyShareKey( +// GeneralKeyshareKey returns the store key to retrieve a GeneralKeyShare from the index fields +func GeneralKeyshareKey( validator string, idType string, idValue string, @@ -33,8 +33,8 @@ func GeneralKeyShareKey( return key } -// EncryptedKeyShareKey returns the store key to retrieve a GeneralKeyShare from the index fields -func EncryptedlKeyShareKey( +// PrivateKeyshareKey returns the store key to retrieve a GeneralKeyShare from the index fields +func PrivateKeyshareKey( validator string, identity string, requester string, diff --git a/x/keyshare/types/key_key_share.go b/x/keyshare/types/key_keyshare.go similarity index 71% rename from x/keyshare/types/key_key_share.go rename to x/keyshare/types/key_keyshare.go index e6fe53dd..c47ff803 100644 --- a/x/keyshare/types/key_key_share.go +++ b/x/keyshare/types/key_keyshare.go @@ -5,12 +5,12 @@ import "encoding/binary" var _ binary.ByteOrder const ( - // KeyShareKeyPrefix is the prefix to retrieve all KeyShare - KeyShareKeyPrefix = "KeyShare/value/" + // KeyshareKeyPrefix is the prefix to retrieve all Keyshare + KeyshareKeyPrefix = "Keyshare/value/" ) -// KeyShareKey returns the store key to retrieve a KeyShare from the index fields -func KeyShareKey( +// KeyshareKey returns the store key to retrieve a Keyshare from the index fields +func KeyshareKey( validator string, blockHeight uint64, ) []byte { diff --git a/x/pep/client/cli/tx_submit_decryption_key.go b/x/pep/client/cli/tx_submit_decryption_key.go index 190b43fd..70fb9c65 100644 --- a/x/pep/client/cli/tx_submit_decryption_key.go +++ b/x/pep/client/cli/tx_submit_decryption_key.go @@ -13,7 +13,7 @@ import ( func CmdSubmitDecryptionKey() *cobra.Command { cmd := &cobra.Command{ Use: "submit-decryption-key [height] [data]", - Short: "Submit a new aggregated keyshare into a destination chain", + Short: "Submit a new decryption key into a destination chain", Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) (err error) { // Get indexes diff --git a/x/pep/keeper/aggregated_key_share.go b/x/pep/keeper/aggregated_key_share.go index bfa445c7..65a8882f 100644 --- a/x/pep/keeper/aggregated_key_share.go +++ b/x/pep/keeper/aggregated_key_share.go @@ -15,12 +15,12 @@ import ( ) // SetDecryptionKey set a specific decryption key in the store from its index -func (k Keeper) SetDecryptionKey(ctx context.Context, aggregatedKeyShare types.DecryptionKey) { +func (k Keeper) SetDecryptionKey(ctx context.Context, decryptionKey types.DecryptionKey) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.DecryptionKeyKeyPrefix)) - b := k.cdc.MustMarshal(&aggregatedKeyShare) + b := k.cdc.MustMarshal(&decryptionKey) store.Set(types.DecryptionKeyKey( - aggregatedKeyShare.Height, + decryptionKey.Height, ), b) } diff --git a/x/pep/keeper/aggregated_key_share_test.go b/x/pep/keeper/aggregated_key_share_test.go index 8515b883..77c00e43 100644 --- a/x/pep/keeper/aggregated_key_share_test.go +++ b/x/pep/keeper/aggregated_key_share_test.go @@ -19,7 +19,7 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func createNAggregatedKeyShare(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.DecryptionKey { +func createNDecryptionKeys(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.DecryptionKey { items := make([]types.DecryptionKey, n) for i := range items { items[i].Height = uint64(i) @@ -31,9 +31,9 @@ func createNAggregatedKeyShare(keeper *keeper.Keeper, ctx sdk.Context, n int) [] return items } -func TestAggregatedKeyShareGet(t *testing.T) { +func TestDecryptionKeyGet(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) - items := createNAggregatedKeyShare(&keeper, ctx, 10) + items := createNDecryptionKeys(&keeper, ctx, 10) for _, item := range items { rst, found := keeper.GetDecryptionKey(ctx, item.Height, @@ -45,9 +45,9 @@ func TestAggregatedKeyShareGet(t *testing.T) { ) } } -func TestAggregatedKeyShareRemove(t *testing.T) { +func TestDecryptionKeyRemove(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) - items := createNAggregatedKeyShare(&keeper, ctx, 10) + items := createNDecryptionKeys(&keeper, ctx, 10) for _, item := range items { keeper.RemoveDecryptionKey(ctx, item.Height, @@ -59,9 +59,9 @@ func TestAggregatedKeyShareRemove(t *testing.T) { } } -func TestAggregatedKeyShareGetAll(t *testing.T) { +func TestDecryptionKeyGetAll(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) - items := createNAggregatedKeyShare(&keeper, ctx, 10) + items := createNDecryptionKeys(&keeper, ctx, 10) require.ElementsMatch(t, nullify.Fill(items), nullify.Fill(keeper.GetAllDecryptionKeys(ctx)), diff --git a/x/pep/keeper/msg_request_general_decryption_key.go b/x/pep/keeper/msg_request_general_decryption_key.go index 7233ab5a..423e1ba5 100644 --- a/x/pep/keeper/msg_request_general_decryption_key.go +++ b/x/pep/keeper/msg_request_general_decryption_key.go @@ -66,7 +66,7 @@ func (k msgServer) RequestGeneralDecryptionKey( return &types.MsgRequestGeneralDecryptionKeyResponse{}, nil } -// TransmitGetAggrKeysharePacket transmits the packet over IBC with the specified source port and source channel +// TransmitGetDecryptionKeyPacket transmits the packet over IBC with the specified source port and source channel func (k Keeper) TransmitGetDecryptionKeyPacket( ctx sdk.Context, packetData kstypes.GetDecryptionKeyPacketData, @@ -85,7 +85,7 @@ func (k Keeper) TransmitGetDecryptionKeyPacket( return k.ibcKeeperFn().ChannelKeeper.SendPacket(ctx, channelCap, sourcePort, sourceChannel, timeoutHeight, timeoutTimestamp, packetBytes) } -// OnAcknowledgementGetAggrKeysharePacket responds to the the success or failure of a packet +// OnAcknowledgementGetDecryptionKeyPacket responds to the the success or failure of a packet // acknowledgement written on the receiving chain. func (k Keeper) OnAcknowledgementGetDecryptionKeyPacket( ctx sdk.Context, diff --git a/x/pep/keeper/msg_request_general_decryption_key_test.go b/x/pep/keeper/msg_request_general_decryption_key_test.go index ca945bfb..34592786 100644 --- a/x/pep/keeper/msg_request_general_decryption_key_test.go +++ b/x/pep/keeper/msg_request_general_decryption_key_test.go @@ -66,7 +66,7 @@ func TestGetGeneralKeyshare(t *testing.T) { require.Equal(t, "test_identity", req.Identity) } -func TestOnAcknowledgementGetAggrKeysharePacket(t *testing.T) { +func TestOnAcknowledgementGetDecryptionKeyPacket(t *testing.T) { // Initialize the keeper, context, and other dependencies k, ctx := keepertest.PepKeeper(t) @@ -80,7 +80,7 @@ func TestOnAcknowledgementGetAggrKeysharePacket(t *testing.T) { }, } - // Test success case for OnAcknowledgementGetAggrKeysharePacket + // Test success case for OnAcknowledgementGetDecryptionKeyPacket err := k.OnAcknowledgementGetDecryptionKeyPacket(ctx, packet, packetData, ack) require.NoError(t, err) diff --git a/x/pep/keeper/msg_request_general_identity.go b/x/pep/keeper/msg_request_general_identity.go index 9d88402c..c72dfcab 100644 --- a/x/pep/keeper/msg_request_general_identity.go +++ b/x/pep/keeper/msg_request_general_identity.go @@ -86,7 +86,7 @@ func (k msgServer) RequestGeneralIdentity( } } -// TransmitRequestAggrKeysharePacket transmits the packet over IBC with the specified source port and source channel +// TransmitRequestDecryptionKeyPacket transmits the packet over IBC with the specified source port and source channel func (k Keeper) TransmitRequestDecryptionKeyPacket( ctx sdk.Context, packetData kstypes.RequestDecryptionKeyPacketData, @@ -105,7 +105,7 @@ func (k Keeper) TransmitRequestDecryptionKeyPacket( return k.ibcKeeperFn().ChannelKeeper.SendPacket(ctx, channelCap, sourcePort, sourceChannel, timeoutHeight, timeoutTimestamp, packetBytes) } -// OnAcknowledgementRequestAggrKeysharePacket responds to the the success or failure of a packet +// OnAcknowledgementRequestDecryptionKeyPacket responds to the the success or failure of a packet // acknowledgement written on the receiving chain. func (k Keeper) OnAcknowledgementRequestDecryptionKeyPacket( ctx sdk.Context, diff --git a/x/pep/keeper/msg_request_general_identity_test.go b/x/pep/keeper/msg_request_general_identity_test.go index 277c4d17..573cfae7 100644 --- a/x/pep/keeper/msg_request_general_identity_test.go +++ b/x/pep/keeper/msg_request_general_identity_test.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/require" ) -func TestRequestGeneralKeyshare(t *testing.T) { +func TestRequestGeneralIdentity(t *testing.T) { // Initialize the keeper, context, and other dependencies k, ctx := keepertest.PepKeeper(t) goCtx := sdk.WrapSDKContext(ctx) @@ -59,7 +59,7 @@ func TestRequestGeneralKeyshare(t *testing.T) { require.Equal(t, "fairy1m9l358xunhhwds0568za49mzhvuxx9uxdra8sq/test_req_id_3", resp.ReqId) } -func TestOnAcknowledgementRequestAggrKeysharePacket(t *testing.T) { +func TestOnAcknowledgementRequestDecryptionKeyPacket(t *testing.T) { // Initialize the keeper, context, and other dependencies k, ctx := keepertest.PepKeeper(t) @@ -76,7 +76,7 @@ func TestOnAcknowledgementRequestAggrKeysharePacket(t *testing.T) { }, } - // Test success case for OnAcknowledgementRequestAggrKeysharePacket + // Test success case for OnAcknowledgementRequestDecryptionKeyPacket err := k.OnAcknowledgementRequestDecryptionKeyPacket(ctx, packet, packetData, ack) require.NoError(t, err) diff --git a/x/pep/keeper/msg_submit_decryption_key.go b/x/pep/keeper/msg_submit_decryption_key.go index 2455eee2..cac637e4 100644 --- a/x/pep/keeper/msg_submit_decryption_key.go +++ b/x/pep/keeper/msg_submit_decryption_key.go @@ -23,7 +23,7 @@ func (k msgServer) SubmitDecryptionKey( params := k.GetParams(ctx) if params.IsSourceChain { - return nil, errors.New("submission of external aggregated keyshare not permitted on source chain") + return nil, errors.New("submission of external decryption keyshare not permitted on source chain") } var trusted = false @@ -77,13 +77,13 @@ func (k msgServer) SubmitDecryptionKey( err := enc.Decrypt(publicKeyPoint, skPoint, &decryptedDataBytes, &encryptedDataBytes) if err != nil { - k.Logger().Error("Decryption error when verifying aggregated keyshare") + k.Logger().Error("error when verifying decryption key") k.Logger().Error(err.Error()) ctx.EventManager().EmitEvent( - sdk.NewEvent(types.KeyShareVerificationType, - sdk.NewAttribute(types.KeyShareVerificationCreator, msg.Creator), - sdk.NewAttribute(types.KeyShareVerificationHeight, strconv.FormatUint(msg.Height, 10)), - sdk.NewAttribute(types.KeyShareVerificationReason, err.Error()), + sdk.NewEvent(types.DecryptionKeyVerificationType, + sdk.NewAttribute(types.DecryptionKeyVerificationCreator, msg.Creator), + sdk.NewAttribute(types.DecryptionKeyVerificationHeight, strconv.FormatUint(msg.Height, 10)), + sdk.NewAttribute(types.DecryptionKeyVerificationReason, err.Error()), ), ) return nil, err @@ -92,10 +92,10 @@ func (k msgServer) SubmitDecryptionKey( if decryptedDataBytes.String() != dummyData { k.Logger().Error("Decrypted data does not match original data") ctx.EventManager().EmitEvent( - sdk.NewEvent(types.KeyShareVerificationType, - sdk.NewAttribute(types.KeyShareVerificationCreator, msg.Creator), - sdk.NewAttribute(types.KeyShareVerificationHeight, strconv.FormatUint(msg.Height, 10)), - sdk.NewAttribute(types.KeyShareVerificationReason, "decrypted data does not match original data"), + sdk.NewEvent(types.DecryptionKeyVerificationType, + sdk.NewAttribute(types.DecryptionKeyVerificationCreator, msg.Creator), + sdk.NewAttribute(types.DecryptionKeyVerificationHeight, strconv.FormatUint(msg.Height, 10)), + sdk.NewAttribute(types.DecryptionKeyVerificationReason, "decrypted data does not match original data"), ), ) return nil, err @@ -116,7 +116,7 @@ func (k msgServer) SubmitDecryptionKey( k.SetLatestHeight(ctx, strconv.FormatUint(msg.Height, 10)) } - k.Logger().Info(fmt.Sprintf("[ProcessUnconfirmedTxs] Aggregated Key Added, height: %d", msg.Height)) + k.Logger().Info(fmt.Sprintf("[ProcessUnconfirmedTxs] Decryption Key Added, height: %d", msg.Height)) return &types.MsgSubmitDecryptionKeyResponse{}, nil } diff --git a/x/pep/keeper/msg_submit_decryption_key_test.go b/x/pep/keeper/msg_submit_decryption_key_test.go index ff7bb261..d965c58f 100644 --- a/x/pep/keeper/msg_submit_decryption_key_test.go +++ b/x/pep/keeper/msg_submit_decryption_key_test.go @@ -22,7 +22,7 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func TestAggregatedKeyShareMsgServerCreate(t *testing.T) { +func TestSubmitDecryptionKey(t *testing.T) { k, ctx := keepertest.PepKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) @@ -52,13 +52,13 @@ func TestAggregatedKeyShareMsgServerCreate(t *testing.T) { errMsg string }{ { - desc: "IsSourceChainTriesToCreateAggrKey", + desc: "SourceChainTriesToSubmitDecryptionKey", request: &types.MsgSubmitDecryptionKey{ Creator: sample.AccAddress(), Height: rand.Uint64(), Data: random.RandHex(192), }, - errMsg: "submission of external aggregated keyshare not permitted on source chain", + errMsg: "submission of external decryption key not permitted on source chain", }, { desc: "SubmittedFromNotTrustedAddr", @@ -79,7 +79,7 @@ func TestAggregatedKeyShareMsgServerCreate(t *testing.T) { errMsg: "active key not found", }, { - desc: "InvalidAggregatedKeyShare", + desc: "InvalidDecryptionKey", request: &types.MsgSubmitDecryptionKey{ Creator: trustedAddr, Height: rand.Uint64(), @@ -97,7 +97,7 @@ func TestAggregatedKeyShareMsgServerCreate(t *testing.T) { errMsg: "age decrypt: errNoMatch", }, { - desc: "ValidAggregatedKeyShare", + desc: "ValidDecryptionKey", request: &types.MsgSubmitDecryptionKey{ Creator: trustedAddr, Height: 999, @@ -122,7 +122,7 @@ func TestAggregatedKeyShareMsgServerCreate(t *testing.T) { ) } - if tc.desc == "IsSourceChainTriesToCreateAggrKey" { + if tc.desc == "SourceChainTriesToSubmitDecryptionKey" { startParams.IsSourceChain = false err = k.SetParams(wctx, startParams) require.NoError(t, err) diff --git a/x/pep/keeper/query_decrypt_data.go b/x/pep/keeper/query_decrypt_data.go index 63499a59..69b3149e 100644 --- a/x/pep/keeper/query_decrypt_data.go +++ b/x/pep/keeper/query_decrypt_data.go @@ -70,7 +70,7 @@ func (k Keeper) GetSKPoint( suite pairing.Suite) (kyber.Point, error) { keyByte, err := hex.DecodeString(key) if err != nil { - k.Logger().Error("Error decoding aggregated key") + k.Logger().Error("Error decoding decryption key") k.Logger().Error(err.Error()) return nil, err } @@ -78,7 +78,7 @@ func (k Keeper) GetSKPoint( skPoint := suite.G2().Point() err = skPoint.UnmarshalBinary(keyByte) if err != nil { - k.Logger().Error("Error unmarshalling aggregated key") + k.Logger().Error("Error unmarshalling decryption key") k.Logger().Error(err.Error()) return nil, err } diff --git a/x/pep/keeper/query_decrypt_data_test.go b/x/pep/keeper/query_decrypt_data_test.go index 25275fb6..bdde6e9d 100644 --- a/x/pep/keeper/query_decrypt_data_test.go +++ b/x/pep/keeper/query_decrypt_data_test.go @@ -89,7 +89,7 @@ func TestDecryptDataQuerySingle(t *testing.T) { errMsg: "input string length must be equal to 48 bytes", }, { - desc: "InvalidAggrKeyShare", + desc: "InvalidDecryptionKey", request: &types.QueryDecryptDataRequest{ Pubkey: out.MasterPublicKey, DecryptionKey: random.RandHex(8), diff --git a/x/pep/module/genesis.go b/x/pep/module/genesis.go index 52c73b26..50e677d8 100644 --- a/x/pep/module/genesis.go +++ b/x/pep/module/genesis.go @@ -22,7 +22,7 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) for _, elem := range genState.PepNonceList { k.SetPepNonce(ctx, elem) } - // Set all the aggregatedKeyShare + // Set all the decryption keys for _, elem := range genState.DecryptionKeyList { k.SetDecryptionKey(ctx, elem) } diff --git a/x/pep/module/module.go b/x/pep/module/module.go index f0d2edf0..0549cb16 100644 --- a/x/pep/module/module.go +++ b/x/pep/module/module.go @@ -291,7 +291,7 @@ func (am AppModule) BeginBlock(cctx context.Context) error { entries := am.keeper.GetAllGenEncTxExecutionQueueEntry(ctx) for _, entry := range entries { if entry.DecryptionKey == "" { - am.keeper.Logger().Error("aggregated keyshare not found in entry with req-id: ", entry.RequestId) + am.keeper.Logger().Error("decryption key not found in entry with req-id: ", entry.RequestId) am.keeper.RemoveExecutionQueueEntry(ctx, entry.Identity) continue } diff --git a/x/pep/module/module_ibc.go b/x/pep/module/module_ibc.go index a7122960..1d215d99 100644 --- a/x/pep/module/module_ibc.go +++ b/x/pep/module/module_ibc.go @@ -164,7 +164,7 @@ func (im IBCModule) OnRecvPacket( } ctx.EventManager().EmitEvent( sdk.NewEvent( - kstypes.EventTypeAggrKeyshareDataPacket, + kstypes.EventTypeDecryptionKeyDataPacket, sdk.NewAttribute(sdk.AttributeKeyModule, types.ModuleName), sdk.NewAttribute(kstypes.AttributeKeyAckSuccess, fmt.Sprintf("%t", err != nil)), ), @@ -186,7 +186,7 @@ func (im IBCModule) OnRecvPacket( } ctx.EventManager().EmitEvent( sdk.NewEvent( - kstypes.EventTypeEncKeyshareDataPacket, + kstypes.EventTypePrivateDecryptionKeyPacket, sdk.NewAttribute(sdk.AttributeKeyModule, types.ModuleName), sdk.NewAttribute(kstypes.AttributeKeyAckSuccess, fmt.Sprintf("%t", err != nil)), ), @@ -250,7 +250,7 @@ func (im IBCModule) OnAcknowledgementPacket( if err != nil { return err } - eventType = kstypes.EventTypeRequestAggrKeysharePacket + eventType = kstypes.EventTypeRequestDecryptionKeyPacket case *kstypes.KeysharePacketData_GetDecryptionKeyPacket: err := im.keeper.OnAcknowledgementGetDecryptionKeyPacket( ctx, @@ -261,7 +261,7 @@ func (im IBCModule) OnAcknowledgementPacket( if err != nil { return err } - eventType = kstypes.EventTypeGetAggrKeysharePacket + eventType = kstypes.EventTypeGetDecryptionKeyPacket case *kstypes.KeysharePacketData_RequestPrivateDecryptionKeyPacket: err := im.keeper.OnAcknowledgementRequestPrivateDecryptionKeyPacket( @@ -273,7 +273,7 @@ func (im IBCModule) OnAcknowledgementPacket( if err != nil { return err } - eventType = kstypes.EventTypeRequestPrivateKeysharePacket + eventType = kstypes.EventTypeRequestPrivateDecryptionKeyPacket case *kstypes.KeysharePacketData_GetPrivateDecryptionKeyPacket: err := im.keeper.OnAcknowledgementGetPrivateDecryptionKeyPacket( @@ -285,7 +285,7 @@ func (im IBCModule) OnAcknowledgementPacket( if err != nil { return err } - eventType = kstypes.EventTypeGetEncryptedKeysharePacket + eventType = kstypes.EventTypeGetPrivateDecryptionKeyPacket // this line is used by starport scaffolding # ibc/packet/module/ack default: diff --git a/x/pep/types/genesis.go b/x/pep/types/genesis.go index 5795b7e4..0c96b0f0 100644 --- a/x/pep/types/genesis.go +++ b/x/pep/types/genesis.go @@ -57,15 +57,15 @@ func (gs GenesisState) Validate() error { encryptedTxArrIndexMap[index] = struct{}{} } - // Check for duplicated index in aggregatedKeyShare - aggregatedKeyShareIndexMap := make(map[string]struct{}) + // Check for duplicated index in decryption keys + decryptionKeyIndexMap := make(map[string]struct{}) for _, elem := range gs.DecryptionKeyList { index := string(DecryptionKeyKey(elem.Height)) - if _, ok := aggregatedKeyShareIndexMap[index]; ok { - return fmt.Errorf("duplicated index for aggregatedKeyShare") + if _, ok := decryptionKeyIndexMap[index]; ok { + return fmt.Errorf("duplicated index for decryption key") } - aggregatedKeyShareIndexMap[index] = struct{}{} + decryptionKeyIndexMap[index] = struct{}{} } // this line is used by starport scaffolding # genesis/types/validate diff --git a/x/pep/types/key_aggregated_key_share.go b/x/pep/types/key_aggregated_key_share.go index f4a77936..b5ae2462 100644 --- a/x/pep/types/key_aggregated_key_share.go +++ b/x/pep/types/key_aggregated_key_share.go @@ -9,7 +9,7 @@ const ( DecryptionKeyKeyPrefix = "DecryptionKey/value/" ) -// AggregatedKeyShareKey returns the store key to retrieve a decryption key from the index fields +// DecryptionKeyKey returns the store key to retrieve a decryption key from the index fields func DecryptionKeyKey( height uint64, ) []byte { diff --git a/x/pep/types/keys.go b/x/pep/types/keys.go index b09a9641..13f5c32e 100644 --- a/x/pep/types/keys.go +++ b/x/pep/types/keys.go @@ -71,10 +71,10 @@ const ( ) const ( - KeyShareVerificationType = "keyshare-verification" - KeyShareVerificationCreator = "creator" - KeyShareVerificationHeight = "height" - KeyShareVerificationReason = "reason" + DecryptionKeyVerificationType = "decryption-key-verification" + DecryptionKeyVerificationCreator = "creator" + DecryptionKeyVerificationHeight = "height" + DecryptionKeyVerificationReason = "reason" ) const ( From e26090cec00cf0ed0d5aa10e4402fd8517d00914 Mon Sep 17 00:00:00 2001 From: bowenyou Date: Mon, 21 Oct 2024 10:32:11 -0400 Subject: [PATCH 09/30] fix naming in comments --- proto/fairyring/keyshare/query.proto | 20 ++++++++++---------- proto/fairyring/keyshare/tx.proto | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/proto/fairyring/keyshare/query.proto b/proto/fairyring/keyshare/query.proto index 11f7d452..640b8fa4 100644 --- a/proto/fairyring/keyshare/query.proto +++ b/proto/fairyring/keyshare/query.proto @@ -73,12 +73,12 @@ service Query { option (google.api.http).get = "/fairyring/keyshare/authorized_address"; } - // Queries a GeneralKeyShare item by validator address and identity. + // Queries a GeneralKeyshare item by validator address and identity. rpc GeneralKeyshare(QueryGeneralKeyshareRequest) returns (QueryGeneralKeyshareResponse) { option (google.api.http).get = "/fairyring/keyshare/general_keyshare/{validator}/{id_type}/{id_value}"; } - // Queries a list of GeneralKeyShare items + // Queries a list of GeneralKeyshare items rpc GeneralKeyshareAll(QueryGeneralKeyshareAllRequest) returns (QueryGeneralKeyshareAllResponse) { option (google.api.http).get = "/fairyring/keyshare/general_keyshare"; } @@ -142,23 +142,23 @@ message QueryValidatorSetAllResponse { cosmos.base.query.v1beta1.PageResponse pagination = 2; } -// QueryKeyShareRequest is request type for the Query/KeyShare RPC method. +// QueryKeyshareRequest is request type for the Query/Keyshare RPC method. message QueryKeyshareRequest { string validator = 1; uint64 block_height = 2; } -// QueryKeyShareResponse is response type for the Query/KeyShare RPC method. +// QueryKeyshareResponse is response type for the Query/Keyshare RPC method. message QueryKeyshareResponse { Keyshare keyshare = 1 [(gogoproto.nullable) = false]; } -// QueryKeyShareAllRequest is request type for the Query/KeyShareAll RPC method. +// QueryKeyshareAllRequest is request type for the Query/KeyshareAll RPC method. message QueryKeyshareAllRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } -// QueryKeyShareAllResponse is response type for the Query/KeyShareAll RPC method. +// QueryKeyshareAllResponse is response type for the Query/KeyshareAll RPC method. message QueryKeyshareAllResponse { repeated Keyshare keyshare = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; @@ -215,24 +215,24 @@ message QueryAuthorizedAddressAllResponse { cosmos.base.query.v1beta1.PageResponse pagination = 2; } -// QueryGeneralKeyShareRequest is request type for the Query/GeneralKeyShare RPC method. +// QueryGeneralKeyshareRequest is request type for the Query/GeneralKeyshare RPC method. message QueryGeneralKeyshareRequest { string validator = 1; string id_type = 2; string id_value = 3; } -// QueryGeneralKeyShareResponse is response type for the Query/GeneralKeyShare RPC method. +// QueryGeneralKeyshareResponse is response type for the Query/GeneralKeyshare RPC method. message QueryGeneralKeyshareResponse { GeneralKeyshare general_keyshare = 1 [(gogoproto.nullable) = false]; } -// QueryGeneralKeyShareAllRequest is request type for the Query/GeneralKeyShareAll RPC method. +// QueryGeneralKeyshareAllRequest is request type for the Query/GeneralKeyshareAll RPC method. message QueryGeneralKeyshareAllRequest { cosmos.base.query.v1beta1.PageRequest pagination = 1; } -// QueryGeneralKeyShareAllResponse is response type for the Query/GeneralKeyShareAll RPC method. +// QueryGeneralKeyshareAllResponse is response type for the Query/GeneralKeyshareAll RPC method. message QueryGeneralKeyshareAllResponse { repeated GeneralKeyshare general_keyshare = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; diff --git a/proto/fairyring/keyshare/tx.proto b/proto/fairyring/keyshare/tx.proto index 20d26bbd..13185d0c 100644 --- a/proto/fairyring/keyshare/tx.proto +++ b/proto/fairyring/keyshare/tx.proto @@ -50,7 +50,7 @@ service Msg { // authorization of a previously authorized address rpc DeleteAuthorizedAddress(MsgDeleteAuthorizedAddress) returns (MsgDeleteAuthorizedAddressResponse); - // SubmitGeneralKeyShare defines an operation to submit a + // SubmitGeneralKeyshare defines an operation to submit a // general keyshare from a registered validator rpc SubmitGeneralKeyshare(MsgSubmitGeneralKeyshare) returns (MsgSubmitGeneralKeyshareResponse); @@ -186,7 +186,7 @@ message MsgDeleteAuthorizedAddress { // executing a MsgDeleteAuthorizedAddress message. message MsgDeleteAuthorizedAddressResponse {} -// MsgSubmitGeneralKeyShare is the Msg/CreateGeneralKeyShare request type. +// MsgSubmitGeneralKeyshare is the Msg/CreateGeneralKeyshare request type. message MsgSubmitGeneralKeyshare { option (cosmos.msg.v1.signer) = "creator"; string creator = 1; @@ -198,8 +198,8 @@ message MsgSubmitGeneralKeyshare { uint64 received_block_height = 7; } -// MsgSubmitGeneralKeyShareResponse defines the response structure for -// executing a MsgSubmitGeneralKeyShare message. +// MsgSubmitGeneralKeyshareResponse defines the response structure for +// executing a MsgSubmitGeneralKeyshare message. message MsgSubmitGeneralKeyshareResponse { string creator = 1; string id_type = 2; From 37e34ef613b88d0cf01093e3b92062f3abb5f23d Mon Sep 17 00:00:00 2001 From: ap0calypse644 Date: Mon, 21 Oct 2024 20:48:10 +0530 Subject: [PATCH 10/30] audit changes --- api/fairyring/keyshare/query.pulsar.go | 18 ++++++------- api/fairyring/keyshare/query_grpc.pb.go | 8 +++--- .../requested_decryption_key.pulsar.go | 8 +++--- api/fairyring/keyshare/tx.pulsar.go | 6 ++--- api/fairyring/keyshare/tx_grpc.pb.go | 4 +-- api/fairyring/pep/params.pulsar.go | 2 +- api/fairyring/pep/request_id.pulsar.go | 4 +-- api/fairyring/pep/tx.pulsar.go | 2 +- api/fairyring/pep/tx_grpc.pb.go | 8 +++--- x/keyshare/types/query.pb.go | 26 +++++++++---------- .../types/requested_decryption_key.pb.go | 8 +++--- x/keyshare/types/tx.pb.go | 10 +++---- x/pep/types/params.pb.go | 2 +- x/pep/types/request_id.pb.go | 4 +-- x/pep/types/tx.pb.go | 10 +++---- 15 files changed, 60 insertions(+), 60 deletions(-) diff --git a/api/fairyring/keyshare/query.pulsar.go b/api/fairyring/keyshare/query.pulsar.go index b48e5e3e..b7e0aa56 100644 --- a/api/fairyring/keyshare/query.pulsar.go +++ b/api/fairyring/keyshare/query.pulsar.go @@ -13219,7 +13219,7 @@ func (x *QueryValidatorSetAllResponse) GetPagination() *v1beta1.PageResponse { return nil } -// QueryKeyShareRequest is request type for the Query/KeyShare RPC method. +// QueryKeyshareRequest is request type for the Query/Keyshare RPC method. type QueryKeyshareRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -13263,7 +13263,7 @@ func (x *QueryKeyshareRequest) GetBlockHeight() uint64 { return 0 } -// QueryKeyShareResponse is response type for the Query/KeyShare RPC method. +// QueryKeyshareResponse is response type for the Query/Keyshare RPC method. type QueryKeyshareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -13299,7 +13299,7 @@ func (x *QueryKeyshareResponse) GetKeyshare() *Keyshare { return nil } -// QueryKeyShareAllRequest is request type for the Query/KeyShareAll RPC method. +// QueryKeyshareAllRequest is request type for the Query/KeyshareAll RPC method. type QueryKeyshareAllRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -13335,7 +13335,7 @@ func (x *QueryKeyshareAllRequest) GetPagination() *v1beta1.PageRequest { return nil } -// QueryKeyShareAllResponse is response type for the Query/KeyShareAll RPC method. +// QueryKeyshareAllResponse is response type for the Query/KeyshareAll RPC method. type QueryKeyshareAllResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -13487,7 +13487,7 @@ func (x *QueryDecryptionKeyAllRequest) GetPagination() *v1beta1.PageRequest { return nil } -// QueryAggregatedKeyShareAllResponse is response type for the Query/DecryptionKeyAll RPC method. +// QueryDecryptionKeyAllResponse is response type for the Query/DecryptionKeyAll RPC method. type QueryDecryptionKeyAllResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -13754,7 +13754,7 @@ func (x *QueryAuthorizedAddressAllResponse) GetPagination() *v1beta1.PageRespons return nil } -// QueryGeneralKeyShareRequest is request type for the Query/GeneralKeyShare RPC method. +// QueryGeneralKeyshareRequest is request type for the Query/GeneralKeyshare RPC method. type QueryGeneralKeyshareRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -13806,7 +13806,7 @@ func (x *QueryGeneralKeyshareRequest) GetIdValue() string { return "" } -// QueryGeneralKeyShareResponse is response type for the Query/GeneralKeyShare RPC method. +// QueryGeneralKeyshareResponse is response type for the Query/GeneralKeyshare RPC method. type QueryGeneralKeyshareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -13842,7 +13842,7 @@ func (x *QueryGeneralKeyshareResponse) GetGeneralKeyshare() *GeneralKeyshare { return nil } -// QueryGeneralKeyShareAllRequest is request type for the Query/GeneralKeyShareAll RPC method. +// QueryGeneralKeyshareAllRequest is request type for the Query/GeneralKeyshareAll RPC method. type QueryGeneralKeyshareAllRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -13878,7 +13878,7 @@ func (x *QueryGeneralKeyshareAllRequest) GetPagination() *v1beta1.PageRequest { return nil } -// QueryGeneralKeyShareAllResponse is response type for the Query/GeneralKeyShareAll RPC method. +// QueryGeneralKeyshareAllResponse is response type for the Query/GeneralKeyshareAll RPC method. type QueryGeneralKeyshareAllResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/api/fairyring/keyshare/query_grpc.pb.go b/api/fairyring/keyshare/query_grpc.pb.go index 9dd91661..5e87ab00 100644 --- a/api/fairyring/keyshare/query_grpc.pb.go +++ b/api/fairyring/keyshare/query_grpc.pb.go @@ -61,9 +61,9 @@ type QueryClient interface { AuthorizedAddress(ctx context.Context, in *QueryAuthorizedAddressRequest, opts ...grpc.CallOption) (*QueryAuthorizedAddressResponse, error) // Queries a list of AuthorizedAddress items AuthorizedAddressAll(ctx context.Context, in *QueryAuthorizedAddressAllRequest, opts ...grpc.CallOption) (*QueryAuthorizedAddressAllResponse, error) - // Queries a GeneralKeyShare item by validator address and identity. + // Queries a GeneralKeyshare item by validator address and identity. GeneralKeyshare(ctx context.Context, in *QueryGeneralKeyshareRequest, opts ...grpc.CallOption) (*QueryGeneralKeyshareResponse, error) - // Queries a list of GeneralKeyShare items + // Queries a list of GeneralKeyshare items GeneralKeyshareAll(ctx context.Context, in *QueryGeneralKeyshareAllRequest, opts ...grpc.CallOption) (*QueryGeneralKeyshareAllResponse, error) // Queries verifiable randomness VerifiableRandomness(ctx context.Context, in *QueryVerifiableRandomnessRequest, opts ...grpc.CallOption) (*QueryVerifiableRandomnessResponse, error) @@ -229,9 +229,9 @@ type QueryServer interface { AuthorizedAddress(context.Context, *QueryAuthorizedAddressRequest) (*QueryAuthorizedAddressResponse, error) // Queries a list of AuthorizedAddress items AuthorizedAddressAll(context.Context, *QueryAuthorizedAddressAllRequest) (*QueryAuthorizedAddressAllResponse, error) - // Queries a GeneralKeyShare item by validator address and identity. + // Queries a GeneralKeyshare item by validator address and identity. GeneralKeyshare(context.Context, *QueryGeneralKeyshareRequest) (*QueryGeneralKeyshareResponse, error) - // Queries a list of GeneralKeyShare items + // Queries a list of GeneralKeyshare items GeneralKeyshareAll(context.Context, *QueryGeneralKeyshareAllRequest) (*QueryGeneralKeyshareAllResponse, error) // Queries verifiable randomness VerifiableRandomness(context.Context, *QueryVerifiableRandomnessRequest) (*QueryVerifiableRandomnessResponse, error) diff --git a/api/fairyring/keyshare/requested_decryption_key.pulsar.go b/api/fairyring/keyshare/requested_decryption_key.pulsar.go index ccc70c56..a39b4187 100644 --- a/api/fairyring/keyshare/requested_decryption_key.pulsar.go +++ b/api/fairyring/keyshare/requested_decryption_key.pulsar.go @@ -3129,7 +3129,7 @@ func (x *DecryptionKeyRequest) GetSent() bool { } // IBCInfo defines the structure to verify request for -// aggregated and encrypted keyshares in case the request was made over IBC +// general and private keyshares in case the request was made over IBC type IBCInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3189,8 +3189,8 @@ func (x *IBCInfo) GetPortId() string { return "" } -// CounterPartyIBCInfo defines the structure to send aggregated -// and encrypted keyshares if the request was made over IBC +// CounterPartyIBCInfo defines the structure to send general +// and private keyshares if the request was made over IBC type CounterPartyIBCInfo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3251,7 +3251,7 @@ func (x *CounterPartyIBCInfo) GetPortId() string { } // PrivateDecryptionKeyRequest defines the stroage structure for private -// encrypted and unaggregated keyshare requests +// encrypted and unaggregated decryption key requests type PrivateDecryptionKeyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/api/fairyring/keyshare/tx.pulsar.go b/api/fairyring/keyshare/tx.pulsar.go index 79248521..72cc518b 100644 --- a/api/fairyring/keyshare/tx.pulsar.go +++ b/api/fairyring/keyshare/tx.pulsar.go @@ -12238,7 +12238,7 @@ func (*MsgDeleteAuthorizedAddressResponse) Descriptor() ([]byte, []int) { return file_fairyring_keyshare_tx_proto_rawDescGZIP(), []int{17} } -// MsgSubmitGeneralKeyShare is the Msg/CreateGeneralKeyShare request type. +// MsgSubmitGeneralKeyshare is the Msg/CreateGeneralKeyshare request type. type MsgSubmitGeneralKeyshare struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -12322,8 +12322,8 @@ func (x *MsgSubmitGeneralKeyshare) GetReceivedBlockHeight() uint64 { return 0 } -// MsgSubmitGeneralKeyShareResponse defines the response structure for -// executing a MsgSubmitGeneralKeyShare message. +// MsgSubmitGeneralKeyshareResponse defines the response structure for +// executing a MsgSubmitGeneralKeyshare message. type MsgSubmitGeneralKeyshareResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/api/fairyring/keyshare/tx_grpc.pb.go b/api/fairyring/keyshare/tx_grpc.pb.go index 1cc8a0ed..8765fea6 100644 --- a/api/fairyring/keyshare/tx_grpc.pb.go +++ b/api/fairyring/keyshare/tx_grpc.pb.go @@ -62,7 +62,7 @@ type MsgClient interface { // DeleteAuthorizedAddress defines an operation to revoke the // authorization of a previously authorized address DeleteAuthorizedAddress(ctx context.Context, in *MsgDeleteAuthorizedAddress, opts ...grpc.CallOption) (*MsgDeleteAuthorizedAddressResponse, error) - // SubmitGeneralKeyShare defines an operation to submit a + // SubmitGeneralKeyshare defines an operation to submit a // general keyshare from a registered validator SubmitGeneralKeyshare(ctx context.Context, in *MsgSubmitGeneralKeyshare, opts ...grpc.CallOption) (*MsgSubmitGeneralKeyshareResponse, error) // SubmitEncryptedKeyshare defines an operation to submit @@ -207,7 +207,7 @@ type MsgServer interface { // DeleteAuthorizedAddress defines an operation to revoke the // authorization of a previously authorized address DeleteAuthorizedAddress(context.Context, *MsgDeleteAuthorizedAddress) (*MsgDeleteAuthorizedAddressResponse, error) - // SubmitGeneralKeyShare defines an operation to submit a + // SubmitGeneralKeyshare defines an operation to submit a // general keyshare from a registered validator SubmitGeneralKeyshare(context.Context, *MsgSubmitGeneralKeyshare) (*MsgSubmitGeneralKeyshareResponse, error) // SubmitEncryptedKeyshare defines an operation to submit diff --git a/api/fairyring/pep/params.pulsar.go b/api/fairyring/pep/params.pulsar.go index 59686c20..e5fd61a4 100644 --- a/api/fairyring/pep/params.pulsar.go +++ b/api/fairyring/pep/params.pulsar.go @@ -1549,7 +1549,7 @@ func (x *Params) GetPrivateDecryptionKeyPrice() *v1beta1.Coin { // TrustedCounterParty defines the structure to store the ibc info // of the source chain (fairyring) to reliably fetch active keys and -// aggregated/encrypted keyshares +// general/private decryption keys type TrustedCounterParty struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/api/fairyring/pep/request_id.pulsar.go b/api/fairyring/pep/request_id.pulsar.go index 1bca54c5..1c07179c 100644 --- a/api/fairyring/pep/request_id.pulsar.go +++ b/api/fairyring/pep/request_id.pulsar.go @@ -2833,7 +2833,7 @@ func (x *RequestId) GetReqId() string { } // PrivateRequest defines the structure for storing private -// keyshare requests along with the unaggregated encrypted keyshares +// decryption key requests along with the unaggregated encrypted keyshares type PrivateRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2895,7 +2895,7 @@ func (x *PrivateRequest) GetPrivateDecryptionKeys() []*common.PrivateDecryptionK // ContractDetails defines the structure to store the details of a // contract that has been registered to execute automatically when -// the identity associated with it has an aggregate keyshare available +// the identity associated with it has a decryption key available type ContractDetails struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/api/fairyring/pep/tx.pulsar.go b/api/fairyring/pep/tx.pulsar.go index 6d1c24f7..40ba18d1 100644 --- a/api/fairyring/pep/tx.pulsar.go +++ b/api/fairyring/pep/tx.pulsar.go @@ -9238,7 +9238,7 @@ func (*MsgSubmitGeneralEncryptedTxResponse) Descriptor() ([]byte, []int) { return file_fairyring_pep_tx_proto_rawDescGZIP(), []int{5} } -// MsgCreateAggregatedKeyShare is the Msg/CreateAggregatedKeyShare request type. +// MsgSubmitDecryptionKey is the Msg/SubmitDecryptionKey request type. type MsgSubmitDecryptionKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache diff --git a/api/fairyring/pep/tx_grpc.pb.go b/api/fairyring/pep/tx_grpc.pb.go index 69567965..bc1ad28e 100644 --- a/api/fairyring/pep/tx_grpc.pb.go +++ b/api/fairyring/pep/tx_grpc.pb.go @@ -63,11 +63,11 @@ type MsgClient interface { RequestPrivateDecryptionKey(ctx context.Context, in *MsgRequestPrivateDecryptionKey, opts ...grpc.CallOption) (*MsgRequestPrivateDecryptionKeyResponse, error) // RegisterContract defines an operation to make an instantiated // contract eligible to be automatically executed when a particular - // identity has aggregated keyshares available for it + // identity has decryption key available for it RegisterContract(ctx context.Context, in *MsgRegisterContract, opts ...grpc.CallOption) (*MsgRegisterContractResponse, error) // UnregisterContract defines an operation to remove a registered contract // from the list of contracts set to be automatically executed when - // aggreagted keyshare is available for a particular identity + // decryption key is available for a particular identity UnregisterContract(ctx context.Context, in *MsgUnregisterContract, opts ...grpc.CallOption) (*MsgUnregisterContractResponse, error) } @@ -201,11 +201,11 @@ type MsgServer interface { RequestPrivateDecryptionKey(context.Context, *MsgRequestPrivateDecryptionKey) (*MsgRequestPrivateDecryptionKeyResponse, error) // RegisterContract defines an operation to make an instantiated // contract eligible to be automatically executed when a particular - // identity has aggregated keyshares available for it + // identity has decryption key available for it RegisterContract(context.Context, *MsgRegisterContract) (*MsgRegisterContractResponse, error) // UnregisterContract defines an operation to remove a registered contract // from the list of contracts set to be automatically executed when - // aggreagted keyshare is available for a particular identity + // decryption key is available for a particular identity UnregisterContract(context.Context, *MsgUnregisterContract) (*MsgUnregisterContractResponse, error) mustEmbedUnimplementedMsgServer() } diff --git a/x/keyshare/types/query.pb.go b/x/keyshare/types/query.pb.go index e7b3fe1a..b7135e57 100644 --- a/x/keyshare/types/query.pb.go +++ b/x/keyshare/types/query.pb.go @@ -484,7 +484,7 @@ func (m *QueryValidatorSetAllResponse) GetPagination() *query.PageResponse { return nil } -// QueryKeyShareRequest is request type for the Query/KeyShare RPC method. +// QueryKeyshareRequest is request type for the Query/Keyshare RPC method. type QueryKeyshareRequest struct { Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` @@ -537,7 +537,7 @@ func (m *QueryKeyshareRequest) GetBlockHeight() uint64 { return 0 } -// QueryKeyShareResponse is response type for the Query/KeyShare RPC method. +// QueryKeyshareResponse is response type for the Query/Keyshare RPC method. type QueryKeyshareResponse struct { Keyshare Keyshare `protobuf:"bytes,1,opt,name=keyshare,proto3" json:"keyshare"` } @@ -582,7 +582,7 @@ func (m *QueryKeyshareResponse) GetKeyshare() Keyshare { return Keyshare{} } -// QueryKeyShareAllRequest is request type for the Query/KeyShareAll RPC method. +// QueryKeyshareAllRequest is request type for the Query/KeyshareAll RPC method. type QueryKeyshareAllRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -627,7 +627,7 @@ func (m *QueryKeyshareAllRequest) GetPagination() *query.PageRequest { return nil } -// QueryKeyShareAllResponse is response type for the Query/KeyShareAll RPC method. +// QueryKeyshareAllResponse is response type for the Query/KeyshareAll RPC method. type QueryKeyshareAllResponse struct { Keyshare []Keyshare `protobuf:"bytes,1,rep,name=keyshare,proto3" json:"keyshare"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` @@ -815,7 +815,7 @@ func (m *QueryDecryptionKeyAllRequest) GetPagination() *query.PageRequest { return nil } -// QueryAggregatedKeyShareAllResponse is response type for the Query/DecryptionKeyAll RPC method. +// QueryDecryptionKeyAllResponse is response type for the Query/DecryptionKeyAll RPC method. type QueryDecryptionKeyAllResponse struct { DecryptionKeys []DecryptionKey `protobuf:"bytes,1,rep,name=decryption_keys,json=decryptionKeys,proto3" json:"decryption_keys"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` @@ -1146,7 +1146,7 @@ func (m *QueryAuthorizedAddressAllResponse) GetPagination() *query.PageResponse return nil } -// QueryGeneralKeyShareRequest is request type for the Query/GeneralKeyShare RPC method. +// QueryGeneralKeyshareRequest is request type for the Query/GeneralKeyshare RPC method. type QueryGeneralKeyshareRequest struct { Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` @@ -1207,7 +1207,7 @@ func (m *QueryGeneralKeyshareRequest) GetIdValue() string { return "" } -// QueryGeneralKeyShareResponse is response type for the Query/GeneralKeyShare RPC method. +// QueryGeneralKeyshareResponse is response type for the Query/GeneralKeyshare RPC method. type QueryGeneralKeyshareResponse struct { GeneralKeyshare GeneralKeyshare `protobuf:"bytes,1,opt,name=general_keyshare,json=generalKeyshare,proto3" json:"general_keyshare"` } @@ -1252,7 +1252,7 @@ func (m *QueryGeneralKeyshareResponse) GetGeneralKeyshare() GeneralKeyshare { return GeneralKeyshare{} } -// QueryGeneralKeyShareAllRequest is request type for the Query/GeneralKeyShareAll RPC method. +// QueryGeneralKeyshareAllRequest is request type for the Query/GeneralKeyshareAll RPC method. type QueryGeneralKeyshareAllRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -1297,7 +1297,7 @@ func (m *QueryGeneralKeyshareAllRequest) GetPagination() *query.PageRequest { return nil } -// QueryGeneralKeyShareAllResponse is response type for the Query/GeneralKeyShareAll RPC method. +// QueryGeneralKeyshareAllResponse is response type for the Query/GeneralKeyshareAll RPC method. type QueryGeneralKeyshareAllResponse struct { GeneralKeyshare []GeneralKeyshare `protobuf:"bytes,1,rep,name=general_keyshare,json=generalKeyshare,proto3" json:"general_keyshare"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` @@ -1510,9 +1510,9 @@ type QueryClient interface { AuthorizedAddress(ctx context.Context, in *QueryAuthorizedAddressRequest, opts ...grpc.CallOption) (*QueryAuthorizedAddressResponse, error) // Queries a list of AuthorizedAddress items AuthorizedAddressAll(ctx context.Context, in *QueryAuthorizedAddressAllRequest, opts ...grpc.CallOption) (*QueryAuthorizedAddressAllResponse, error) - // Queries a GeneralKeyShare item by validator address and identity. + // Queries a GeneralKeyshare item by validator address and identity. GeneralKeyshare(ctx context.Context, in *QueryGeneralKeyshareRequest, opts ...grpc.CallOption) (*QueryGeneralKeyshareResponse, error) - // Queries a list of GeneralKeyShare items + // Queries a list of GeneralKeyshare items GeneralKeyshareAll(ctx context.Context, in *QueryGeneralKeyshareAllRequest, opts ...grpc.CallOption) (*QueryGeneralKeyshareAllResponse, error) // Queries verifiable randomness VerifiableRandomness(ctx context.Context, in *QueryVerifiableRandomnessRequest, opts ...grpc.CallOption) (*QueryVerifiableRandomnessResponse, error) @@ -1676,9 +1676,9 @@ type QueryServer interface { AuthorizedAddress(context.Context, *QueryAuthorizedAddressRequest) (*QueryAuthorizedAddressResponse, error) // Queries a list of AuthorizedAddress items AuthorizedAddressAll(context.Context, *QueryAuthorizedAddressAllRequest) (*QueryAuthorizedAddressAllResponse, error) - // Queries a GeneralKeyShare item by validator address and identity. + // Queries a GeneralKeyshare item by validator address and identity. GeneralKeyshare(context.Context, *QueryGeneralKeyshareRequest) (*QueryGeneralKeyshareResponse, error) - // Queries a list of GeneralKeyShare items + // Queries a list of GeneralKeyshare items GeneralKeyshareAll(context.Context, *QueryGeneralKeyshareAllRequest) (*QueryGeneralKeyshareAllResponse, error) // Queries verifiable randomness VerifiableRandomness(context.Context, *QueryVerifiableRandomnessRequest) (*QueryVerifiableRandomnessResponse, error) diff --git a/x/keyshare/types/requested_decryption_key.pb.go b/x/keyshare/types/requested_decryption_key.pb.go index 4050ba2a..353d3455 100644 --- a/x/keyshare/types/requested_decryption_key.pb.go +++ b/x/keyshare/types/requested_decryption_key.pb.go @@ -125,7 +125,7 @@ func (m *DecryptionKeyRequest) GetSent() bool { } // IBCInfo defines the structure to verify request for -// aggregated and encrypted keyshares in case the request was made over IBC +// general and private keyshares in case the request was made over IBC type IBCInfo struct { ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` @@ -194,8 +194,8 @@ func (m *IBCInfo) GetPortId() string { return "" } -// CounterPartyIBCInfo defines the structure to send aggregated -// and encrypted keyshares if the request was made over IBC +// CounterPartyIBCInfo defines the structure to send general +// and private keyshares if the request was made over IBC type CounterPartyIBCInfo struct { ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` @@ -265,7 +265,7 @@ func (m *CounterPartyIBCInfo) GetPortId() string { } // PrivateDecryptionKeyRequest defines the stroage structure for private -// encrypted and unaggregated keyshare requests +// encrypted and unaggregated decryption key requests type PrivateDecryptionKeyRequest struct { Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` diff --git a/x/keyshare/types/tx.pb.go b/x/keyshare/types/tx.pb.go index 7be28bcd..3af05a40 100644 --- a/x/keyshare/types/tx.pb.go +++ b/x/keyshare/types/tx.pb.go @@ -979,7 +979,7 @@ func (m *MsgDeleteAuthorizedAddressResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgDeleteAuthorizedAddressResponse proto.InternalMessageInfo -// MsgSubmitGeneralKeyShare is the Msg/CreateGeneralKeyShare request type. +// MsgSubmitGeneralKeyshare is the Msg/CreateGeneralKeyshare request type. type MsgSubmitGeneralKeyshare struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` @@ -1072,8 +1072,8 @@ func (m *MsgSubmitGeneralKeyshare) GetReceivedBlockHeight() uint64 { return 0 } -// MsgSubmitGeneralKeyShareResponse defines the response structure for -// executing a MsgSubmitGeneralKeyShare message. +// MsgSubmitGeneralKeyshareResponse defines the response structure for +// executing a MsgSubmitGeneralKeyshare message. type MsgSubmitGeneralKeyshareResponse struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` IdType string `protobuf:"bytes,2,opt,name=id_type,json=idType,proto3" json:"id_type,omitempty"` @@ -1446,7 +1446,7 @@ type MsgClient interface { // DeleteAuthorizedAddress defines an operation to revoke the // authorization of a previously authorized address DeleteAuthorizedAddress(ctx context.Context, in *MsgDeleteAuthorizedAddress, opts ...grpc.CallOption) (*MsgDeleteAuthorizedAddressResponse, error) - // SubmitGeneralKeyShare defines an operation to submit a + // SubmitGeneralKeyshare defines an operation to submit a // general keyshare from a registered validator SubmitGeneralKeyshare(ctx context.Context, in *MsgSubmitGeneralKeyshare, opts ...grpc.CallOption) (*MsgSubmitGeneralKeyshareResponse, error) // SubmitEncryptedKeyshare defines an operation to submit @@ -1589,7 +1589,7 @@ type MsgServer interface { // DeleteAuthorizedAddress defines an operation to revoke the // authorization of a previously authorized address DeleteAuthorizedAddress(context.Context, *MsgDeleteAuthorizedAddress) (*MsgDeleteAuthorizedAddressResponse, error) - // SubmitGeneralKeyShare defines an operation to submit a + // SubmitGeneralKeyshare defines an operation to submit a // general keyshare from a registered validator SubmitGeneralKeyshare(context.Context, *MsgSubmitGeneralKeyshare) (*MsgSubmitGeneralKeyshareResponse, error) // SubmitEncryptedKeyshare defines an operation to submit diff --git a/x/pep/types/params.pb.go b/x/pep/types/params.pb.go index 40aec7ed..5f56131f 100644 --- a/x/pep/types/params.pb.go +++ b/x/pep/types/params.pb.go @@ -113,7 +113,7 @@ func (m *Params) GetPrivateDecryptionKeyPrice() *types.Coin { // TrustedCounterParty defines the structure to store the ibc info // of the source chain (fairyring) to reliably fetch active keys and -// aggregated/encrypted keyshares +// general/private decryption keys type TrustedCounterParty struct { ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` diff --git a/x/pep/types/request_id.pb.go b/x/pep/types/request_id.pb.go index 47308ee8..898513ec 100644 --- a/x/pep/types/request_id.pb.go +++ b/x/pep/types/request_id.pb.go @@ -79,7 +79,7 @@ func (m *RequestId) GetReqId() string { } // PrivateRequest defines the structure for storing private -// keyshare requests along with the unaggregated encrypted keyshares +// decryption key requests along with the unaggregated encrypted keyshares type PrivateRequest struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` ReqId string `protobuf:"bytes,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"` @@ -150,7 +150,7 @@ func (m *PrivateRequest) GetPrivateDecryptionKeys() []*types.PrivateDecryptionKe // ContractDetails defines the structure to store the details of a // contract that has been registered to execute automatically when -// the identity associated with it has an aggregate keyshare available +// the identity associated with it has a decryption key available type ContractDetails struct { Registrar string `protobuf:"bytes,1,opt,name=registrar,proto3" json:"registrar,omitempty"` ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` diff --git a/x/pep/types/tx.pb.go b/x/pep/types/tx.pb.go index 46c2feae..c44d4eae 100644 --- a/x/pep/types/tx.pb.go +++ b/x/pep/types/tx.pb.go @@ -326,7 +326,7 @@ func (m *MsgSubmitGeneralEncryptedTxResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgSubmitGeneralEncryptedTxResponse proto.InternalMessageInfo -// MsgCreateAggregatedKeyShare is the Msg/CreateAggregatedKeyShare request type. +// MsgSubmitDecryptionKey is the Msg/SubmitDecryptionKey request type. type MsgSubmitDecryptionKey struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` @@ -1150,11 +1150,11 @@ type MsgClient interface { RequestPrivateDecryptionKey(ctx context.Context, in *MsgRequestPrivateDecryptionKey, opts ...grpc.CallOption) (*MsgRequestPrivateDecryptionKeyResponse, error) // RegisterContract defines an operation to make an instantiated // contract eligible to be automatically executed when a particular - // identity has aggregated keyshares available for it + // identity has decryption key available for it RegisterContract(ctx context.Context, in *MsgRegisterContract, opts ...grpc.CallOption) (*MsgRegisterContractResponse, error) // UnregisterContract defines an operation to remove a registered contract // from the list of contracts set to be automatically executed when - // aggreagted keyshare is available for a particular identity + // decryption key is available for a particular identity UnregisterContract(ctx context.Context, in *MsgUnregisterContract, opts ...grpc.CallOption) (*MsgUnregisterContractResponse, error) } @@ -1286,11 +1286,11 @@ type MsgServer interface { RequestPrivateDecryptionKey(context.Context, *MsgRequestPrivateDecryptionKey) (*MsgRequestPrivateDecryptionKeyResponse, error) // RegisterContract defines an operation to make an instantiated // contract eligible to be automatically executed when a particular - // identity has aggregated keyshares available for it + // identity has decryption key available for it RegisterContract(context.Context, *MsgRegisterContract) (*MsgRegisterContractResponse, error) // UnregisterContract defines an operation to remove a registered contract // from the list of contracts set to be automatically executed when - // aggreagted keyshare is available for a particular identity + // decryption key is available for a particular identity UnregisterContract(context.Context, *MsgUnregisterContract) (*MsgUnregisterContractResponse, error) } From 89f70776a018f57ebecf3b68a0ed6f50ee5c9ee4 Mon Sep 17 00:00:00 2001 From: bowenyou Date: Mon, 21 Oct 2024 11:21:04 -0400 Subject: [PATCH 11/30] renamed some logic --- x/keyshare/keeper/get_decryption_key.go | 14 ++++---- x/keyshare/keeper/msg_create_pubkey_test.go | 5 ++- x/keyshare/keeper/msg_override_pubkey.go | 4 +-- x/keyshare/keeper/msg_send_keyshare_test.go | 25 ++++++------- .../keeper/msg_submit_encrypted_keyshare.go | 18 +++++----- .../msg_submit_encrypted_keyshare_test.go | 9 +++-- .../msg_submit_general_keyshare_test.go | 25 +++++++------ x/keyshare/keeper/process_queues.go | 16 ++++----- x/keyshare/keeper/query_general_keyshare.go | 11 +++--- x/keyshare/keeper/query_keyshare.go | 5 ++- x/keyshare/migrations/v2/store.go | 4 +-- x/keyshare/module/genesis.go | 3 +- x/keyshare/types/errors.go | 12 +++---- x/keyshare/types/genesis.go | 10 +++--- x/keyshare/types/key_general_keyshare.go | 6 ++-- x/keyshare/types/keys.go | 36 +++++++++---------- x/keyshare/types/msg_latest_pub_key.go | 2 +- x/keyshare/types/msg_override_pub_key.go | 2 +- x/keyshare/types/msg_send_key_share.go | 6 ++-- x/keyshare/types/params.go | 25 ++++++------- x/pep/ante/ante.go | 6 ++-- x/pep/ante/utils.go | 2 +- x/pep/keeper/query_general_identity_test.go | 3 +- 23 files changed, 119 insertions(+), 130 deletions(-) diff --git a/x/keyshare/keeper/get_decryption_key.go b/x/keyshare/keeper/get_decryption_key.go index 5727ad24..9b1d4387 100644 --- a/x/keyshare/keeper/get_decryption_key.go +++ b/x/keyshare/keeper/get_decryption_key.go @@ -47,8 +47,8 @@ func (k Keeper) OnRecvGetDecryptionKeyPacket( k.Logger().Info("Got GetDecryptionKeyPacket") ctx.EventManager().EmitEvent( - sdk.NewEvent(types.StartSendGeneralKeyShareEventType, - sdk.NewAttribute(types.StartSendGeneralKeyShareEventIdentity, data.Identity), + sdk.NewEvent(types.StartSendGeneralKeyshareEventType, + sdk.NewAttribute(types.StartSendGeneralKeyshareEventIdentity, data.Identity), ), ) } @@ -58,7 +58,6 @@ func (k Keeper) OnRecvGetDecryptionKeyPacket( // OnTimeoutGetDecryptionKeyPacket responds to the case where a packet has not been transmitted because of a timeout func (k Keeper) OnTimeoutGetDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, data types.GetDecryptionKeyPacketData) error { - // Implement custom packet timeout logic // (Not required for fairyring since this packet is never sent from fairyring) @@ -106,10 +105,10 @@ func (k Keeper) OnRecvGetPrivateDecryptionKeyPacket( k.Logger().Info("Got OnRecvGetPrivateKeysharePacket") ctx.EventManager().EmitEvent( - sdk.NewEvent(types.StartSendEncryptedKeyShareEventType, - sdk.NewAttribute(types.StartSendGeneralKeyShareEventIdentity, data.Identity), - sdk.NewAttribute(types.StartSendEncryptedKeyShareEventRequester, data.Requester), - sdk.NewAttribute(types.StartSendEncryptedKeyShareEventPubkey, data.SecpPubkey), + sdk.NewEvent(types.StartSendEncryptedKeyshareEventType, + sdk.NewAttribute(types.StartSendGeneralKeyshareEventIdentity, data.Identity), + sdk.NewAttribute(types.StartSendEncryptedKeyshareEventRequester, data.Requester), + sdk.NewAttribute(types.StartSendEncryptedKeyshareEventPubkey, data.SecpPubkey), ), ) } @@ -119,7 +118,6 @@ func (k Keeper) OnRecvGetPrivateDecryptionKeyPacket( // OnTimeoutGetPrivateDecryptionKeyPacket responds to the case where a packet has not been transmitted because of a timeout func (k Keeper) OnTimeoutGetPrivateDecryptionKeyPacket(ctx sdk.Context, packet channeltypes.Packet, data types.GetPrivateDecryptionKeyPacketData) error { - // Implement custom packet timeout logic // (Not required for fairyring since this packet is never sent from fairyring) diff --git a/x/keyshare/keeper/msg_create_pubkey_test.go b/x/keyshare/keeper/msg_create_pubkey_test.go index 3f4bc50b..d9fbe0b5 100644 --- a/x/keyshare/keeper/msg_create_pubkey_test.go +++ b/x/keyshare/keeper/msg_create_pubkey_test.go @@ -37,7 +37,7 @@ func TestLatestPubkeyMsgServerCreate(t *testing.T) { Creator: creator, Expiry: 123456, NumberOfValidators: 1, - EncryptedKeyshares: out.KeyShareEncryptedKeyShares, + EncryptedKeyshares: out.KeyshareEncryptedKeyshares, }) for _, tc := range []struct { @@ -63,12 +63,11 @@ func TestLatestPubkeyMsgServerCreate(t *testing.T) { PublicKey: out.MasterPublicKey, Creator: creator, NumberOfValidators: 1, - EncryptedKeyshares: out.KeyShareEncryptedKeyShares, + EncryptedKeyshares: out.KeyshareEncryptedKeyshares, }, }, } { t.Run(tc.desc, func(t *testing.T) { - _, err := srv.CreateLatestPubkey(wctx, tc.request) if tc.err != nil { diff --git a/x/keyshare/keeper/msg_override_pubkey.go b/x/keyshare/keeper/msg_override_pubkey.go index 63b3b25e..c9cff44f 100644 --- a/x/keyshare/keeper/msg_override_pubkey.go +++ b/x/keyshare/keeper/msg_override_pubkey.go @@ -39,7 +39,7 @@ func (k msgServer) OverrideLatestPubkey( k.DeleteQueuedPubkey(ctx) } - encryptedKeyShares, err := json.Marshal(msg.EncryptedKeyshares) + encryptedKeyshares, err := json.Marshal(msg.EncryptedKeyshares) if err != nil { return nil, err } @@ -89,7 +89,7 @@ func (k msgServer) OverrideLatestPubkey( sdk.NewAttribute(types.PubkeyOverrodeEventCreator, msg.Creator), sdk.NewAttribute(types.PubkeyOverrodeEventPubkey, msg.PublicKey), sdk.NewAttribute(types.PubkeyOverrodeEventNumberOfValidators, strconv.FormatUint(msg.NumberOfValidators, 10)), - sdk.NewAttribute(types.PubkeyOverrodeEventEncryptedShares, string(encryptedKeyShares)), + sdk.NewAttribute(types.PubkeyOverrodeEventEncryptedShares, string(encryptedKeyshares)), ), ) diff --git a/x/keyshare/keeper/msg_send_keyshare_test.go b/x/keyshare/keeper/msg_send_keyshare_test.go index fa3bbb4d..b1370600 100644 --- a/x/keyshare/keeper/msg_send_keyshare_test.go +++ b/x/keyshare/keeper/msg_send_keyshare_test.go @@ -17,20 +17,20 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func TestSendKeyShareMsgServerCreateAggregated(t *testing.T) { - +func TestSendKeyshareMsgServerCreateAggregated(t *testing.T) { k, ctx, _, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) - out, creator := SetupTestGeneralKeyShare(t, wctx, k, 1, 1) + out, creator := SetupTestGeneralKeyshare(t, wctx, k, 1, 1) var idUint uint64 = 1 derived, err := shares.DeriveShare(out.GeneratedShare[0].Share, 1, "1") require.NoError(t, err) - expected := &types.MsgSendKeyshare{Creator: creator, + expected := &types.MsgSendKeyshare{ + Creator: creator, Message: derived, KeyshareIndex: idUint, BlockHeight: idUint, @@ -48,23 +48,22 @@ func TestSendKeyShareMsgServerCreateAggregated(t *testing.T) { _, found = k.GetDecryptionKey(wctx, idUint) require.True(t, found) - } func TestSendKeyshareMsgServerCreateNotAggregated(t *testing.T) { - k, ctx, _, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) - out, creator := SetupTestGeneralKeyShare(t, wctx, k, 10, 10) + out, creator := SetupTestGeneralKeyshare(t, wctx, k, 10, 10) var idUint uint64 = 1 derived, err := shares.DeriveShare(out.GeneratedShare[0].Share, 1, "1") require.NoError(t, err) - expected := &types.MsgSendKeyshare{Creator: creator, + expected := &types.MsgSendKeyshare{ + Creator: creator, Message: derived, KeyshareIndex: idUint, BlockHeight: idUint, @@ -84,12 +83,12 @@ func TestSendKeyshareMsgServerCreateNotAggregated(t *testing.T) { require.False(t, found) } -func TestSendKeyShareMsgServerFailCases(t *testing.T) { +func TestSendKeyshareMsgServerFailCases(t *testing.T) { k, ctx, _, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) - _, creator := SetupTestGeneralKeyShare(t, wctx, k, 1, 1) + _, creator := SetupTestGeneralKeyshare(t, wctx, k, 1, 1) for _, tc := range []struct { desc string @@ -110,20 +109,18 @@ func TestSendKeyShareMsgServerFailCases(t *testing.T) { err: types.ErrInvalidBlockHeight, }, { - desc: "InvalidKeyShareIndex", + desc: "InvalidKeyshareIndex", request: &types.MsgSendKeyshare{ Creator: creator, KeyshareIndex: 999, }, - err: types.ErrInvalidKeyShareIndex, + err: types.ErrInvalidKeyshareIndex, }, } { t.Run(tc.desc, func(t *testing.T) { - _, err := srv.SendKeyshare(wctx, tc.request) require.ErrorIs(t, err, tc.err) - }) } } diff --git a/x/keyshare/keeper/msg_submit_encrypted_keyshare.go b/x/keyshare/keeper/msg_submit_encrypted_keyshare.go index 7fb0b52e..4c3ef151 100644 --- a/x/keyshare/keeper/msg_submit_encrypted_keyshare.go +++ b/x/keyshare/keeper/msg_submit_encrypted_keyshare.go @@ -37,7 +37,7 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg privDecryptionKeyReq, found := k.GetPrivateDecryptionKeyRequest(ctx, msg.Identity) if !found { - return nil, types.ErrKeyShareRequestNotFound.Wrapf(", got id value: %s", msg.Identity) + return nil, types.ErrKeyshareRequestNotFound.Wrapf(", got id value: %s", msg.Identity) } commitments, found := k.GetActiveCommitments(ctx) @@ -47,7 +47,7 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg commitmentsLen := uint64(len(commitments.Commitments)) if msg.KeyshareIndex > commitmentsLen { - return nil, types.ErrInvalidKeyShareIndex.Wrap(fmt.Sprintf("Expect Index within: %d, got: %d", commitmentsLen, msg.KeyshareIndex)) + return nil, types.ErrInvalidKeyshareIndex.Wrap(fmt.Sprintf("Expect Index within: %d, got: %d", commitmentsLen, msg.KeyshareIndex)) } valEncKeyshare := types.ValidatorEncryptedKeyshare{ @@ -67,14 +67,14 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg validatorList := k.GetAllValidatorSet(ctx) // Get all the private keyshares for the provided id value & id type - var stateEncryptedKeyShares []types.ValidatorEncryptedKeyshare + var stateEncryptedKeyshares []types.ValidatorEncryptedKeyshare for _, eachValidator := range validatorList { eachPrivDecryptionKeyReq, found := k.GetPrivateKeyshare(ctx, eachValidator.Validator, msg.Identity, msg.Requester) if !found { continue } - stateEncryptedKeyShares = append(stateEncryptedKeyShares, eachPrivDecryptionKeyReq) + stateEncryptedKeyshares = append(stateEncryptedKeyshares, eachPrivDecryptionKeyReq) } // Get the active public key for aggregating @@ -89,7 +89,7 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg math.LegacyNewDecFromInt(math.NewInt(types.KeyAggregationThresholdDenominator))).MulInt64( int64(activePubkey.NumberOfValidators)).Ceil().TruncateInt64() - // Emit KeyShare Submitted Event + // Emit Keyshare Submitted Event ctx.EventManager().EmitEvent( sdk.NewEvent(types.SendEncryptedKeyshareEventType, sdk.NewAttribute(types.SendGeneralKeyshareEventValidator, msg.Creator), @@ -103,7 +103,7 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg // If there is not enough keyshares to aggregate OR there is already a decryption key // Only continue the code if there is enough keyshare to aggregate // & no decryption key for current height - if int64(len(stateEncryptedKeyShares)) < expectedThreshold { + if int64(len(stateEncryptedKeyshares)) < expectedThreshold { return &types.MsgSubmitEncryptedKeyshareResponse{}, nil } @@ -117,10 +117,10 @@ func (k msgServer) SubmitEncryptedKeyshare(goCtx context.Context, msg *types.Msg var kslist commontypes.PrivateDecryptionKey kslist.PrivateKeyshares = make([]*commontypes.IndexedEncryptedKeyshare, 0) - for _, eachKeyShare := range stateEncryptedKeyShares { + for _, eachKeyshare := range stateEncryptedKeyshares { var indexedKeyshare commontypes.IndexedEncryptedKeyshare - indexedKeyshare.EncryptedKeyshareValue = eachKeyShare.Keyshare - indexedKeyshare.EncryptedKeyshareIndex = eachKeyShare.KeyshareIndex + indexedKeyshare.EncryptedKeyshareValue = eachKeyshare.Keyshare + indexedKeyshare.EncryptedKeyshareIndex = eachKeyshare.KeyshareIndex kslist.PrivateKeyshares = append(kslist.PrivateKeyshares, &indexedKeyshare) } kslist.Requester = msg.Requester diff --git a/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go b/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go index d904fe03..30c3faff 100644 --- a/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go +++ b/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go @@ -22,13 +22,12 @@ var _ = strconv.IntSize const SECP_PUBKEY_1 = "A/MdHVpitzHNSdD1Zw3kY+L5PEIPyd9l6sD5i4aIfXp9" -func TestEncryptedlKeyShareMsgServerCreate(t *testing.T) { - +func TestEncryptedKeyshareMsgServerCreate(t *testing.T) { k, ctx, pk, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) - out, creator := SetupTestGeneralKeyShare(t, wctx, k, 1, 1) + out, creator := SetupTestGeneralKeyshare(t, wctx, k, 1, 1) for i := 0; i < 5; i++ { @@ -60,7 +59,8 @@ func TestEncryptedlKeyShareMsgServerCreate(t *testing.T) { encryptedShare, err := shares.EncryptWithPublicKey(derived, SECP_PUBKEY_1) require.NoError(t, err) - expected := &types.MsgSubmitEncryptedKeyshare{Creator: creator, + expected := &types.MsgSubmitEncryptedKeyshare{ + Creator: creator, KeyshareIndex: 1, Identity: idVal, EncryptedKeyshare: encryptedShare, @@ -125,7 +125,6 @@ func TestEncryptedKeyShareMsgServerFailCases(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - _, err := srv.SubmitEncryptedKeyshare(wctx, tc.request) require.ErrorIs(t, err, tc.err) diff --git a/x/keyshare/keeper/msg_submit_general_keyshare_test.go b/x/keyshare/keeper/msg_submit_general_keyshare_test.go index 8c3dfbfe..54d891a2 100644 --- a/x/keyshare/keeper/msg_submit_general_keyshare_test.go +++ b/x/keyshare/keeper/msg_submit_general_keyshare_test.go @@ -19,7 +19,7 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func SetupTestGeneralKeyShare(t *testing.T, ctx sdk.Context, k keeper.Keeper, numberOfValidator uint32, pubkeyNumberOfValidator uint64) (*random.GenerateResult, string) { +func SetupTestGeneralKeyshare(t *testing.T, ctx sdk.Context, k keeper.Keeper, numberOfValidator uint32, pubkeyNumberOfValidator uint64) (*random.GenerateResult, string) { out, err := random.GeneratePubKeyAndShares(numberOfValidator) require.NoError(t, err) @@ -37,7 +37,7 @@ func SetupTestGeneralKeyShare(t *testing.T, ctx sdk.Context, k keeper.Keeper, nu Creator: creator, Expiry: 123456, NumberOfValidators: pubkeyNumberOfValidator, - EncryptedKeyshares: out.KeyShareEncryptedKeyShares, + EncryptedKeyshares: out.KeyShareEncryptedKeyshares, }) k.SetActiveCommitments(ctx, types.Commitments{ @@ -48,7 +48,6 @@ func SetupTestGeneralKeyShare(t *testing.T, ctx sdk.Context, k keeper.Keeper, nu } func TestSubmitGeneralKeyshareAggregated(t *testing.T) { - k, ctx, pk, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) @@ -81,7 +80,8 @@ func TestSubmitGeneralKeyshareAggregated(t *testing.T) { derived, err := shares.DeriveShare(out.GeneratedShare[0].Share, 1, idVal) require.NoError(t, err) - expected := &types.MsgSubmitGeneralKeyshare{Creator: creator, + expected := &types.MsgSubmitGeneralKeyshare{ + Creator: creator, IdType: keeper.PrivateGovIdentity, IdValue: idVal, KeyshareIndex: 1, @@ -106,12 +106,11 @@ func TestSubmitGeneralKeyshareAggregated(t *testing.T) { } func TestSubmitGeneralKeyshareNotAggregated(t *testing.T) { - k, ctx, pk, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) - out, creator := SetupTestGeneralKeyShare(t, wctx, k, 10, 10) + out, creator := SetupTestGeneralKeyshare(t, wctx, k, 10, 10) for i := 0; i < 5; i++ { @@ -139,7 +138,8 @@ func TestSubmitGeneralKeyshareNotAggregated(t *testing.T) { derived, err := shares.DeriveShare(out.GeneratedShare[0].Share, 1, idVal) require.NoError(t, err) - expected := &types.MsgSubmitGeneralKeyshare{Creator: creator, + expected := &types.MsgSubmitGeneralKeyshare{ + Creator: creator, IdType: keeper.PrivateGovIdentity, IdValue: idVal, KeyshareIndex: 1, @@ -163,12 +163,12 @@ func TestSubmitGeneralKeyshareNotAggregated(t *testing.T) { } } -func TestGeneralKeyShareMsgServerFailCases(t *testing.T) { +func TestGeneralKeyshareMsgServerFailCases(t *testing.T) { k, ctx, pk, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) - out, creator := SetupTestGeneralKeyShare(t, wctx, k, 1, 1) + out, creator := SetupTestGeneralKeyshare(t, wctx, k, 1, 1) onlyIdVal := random.RandHex(32) pk.SetEntry(wctx, types2.IdentityExecutionEntry{ @@ -205,7 +205,7 @@ func TestGeneralKeyShareMsgServerFailCases(t *testing.T) { IdType: keeper.PrivateGovIdentity, IdValue: random.RandHex(32), }, - err: types.ErrKeyShareRequestNotFound, + err: types.ErrKeyshareRequestNotFound, }, { desc: "InvalidKeyShareIndex", @@ -215,16 +215,15 @@ func TestGeneralKeyShareMsgServerFailCases(t *testing.T) { IdValue: onlyIdVal, KeyshareIndex: 10, }, - err: types.ErrInvalidKeyShareIndex, + err: types.ErrInvalidKeyshareIndex, }, } { t.Run(tc.desc, func(t *testing.T) { - _, err := srv.SubmitGeneralKeyshare(wctx, tc.request) require.ErrorIs(t, err, tc.err) - if tc.desc == "KeyShareRequestNotFound" { + if tc.desc == "KeyshareRequestNotFound" { k.SetDecryptionKeyRequest(wctx, types.DecryptionKeyRequest{ Identity: onlyIdVal, Pubkey: out.MasterPublicKey, diff --git a/x/keyshare/keeper/process_queues.go b/x/keyshare/keeper/process_queues.go index 68db2643..534ce2c0 100644 --- a/x/keyshare/keeper/process_queues.go +++ b/x/keyshare/keeper/process_queues.go @@ -96,8 +96,8 @@ func (k Keeper) ProcessPepSignalQueue(ctx sdk.Context) error { if decryptionKeyReq.DecryptionKey == "" { ctx.EventManager().EmitEvent( - sdk.NewEvent(types.StartSendGeneralKeyShareEventType, - sdk.NewAttribute(types.StartSendGeneralKeyShareEventIdentity, req.Identity), + sdk.NewEvent(types.StartSendGeneralKeyshareEventType, + sdk.NewAttribute(types.StartSendGeneralKeyshareEventIdentity, req.Identity), ), ) } @@ -175,10 +175,10 @@ func (k Keeper) ProcessPrivateSignalQueue(ctx sdk.Context) error { if len(privDecryptionKeyReq.PrivateDecryptionKeys) == 0 { ctx.EventManager().EmitEvent( - sdk.NewEvent(types.StartSendEncryptedKeyShareEventType, - sdk.NewAttribute(types.StartSendGeneralKeyShareEventIdentity, req.Identity), - sdk.NewAttribute(types.StartSendEncryptedKeyShareEventRequester, req.Requester), - sdk.NewAttribute(types.StartSendEncryptedKeyShareEventPubkey, req.SecpPubkey), + sdk.NewEvent(types.StartSendEncryptedKeyshareEventType, + sdk.NewAttribute(types.StartSendGeneralKeyshareEventIdentity, req.Identity), + sdk.NewAttribute(types.StartSendEncryptedKeyshareEventRequester, req.Requester), + sdk.NewAttribute(types.StartSendEncryptedKeyshareEventPubkey, req.SecpPubkey), ), ) } @@ -275,8 +275,8 @@ func (k Keeper) ProcessGovSignalQueue(ctx sdk.Context) error { if decryptionKeyReq.DecryptionKey == "" { ctx.EventManager().EmitEvent( - sdk.NewEvent(types.StartSendGeneralKeyShareEventType, - sdk.NewAttribute(types.StartSendGeneralKeyShareEventIdentity, req.Identity), + sdk.NewEvent(types.StartSendGeneralKeyshareEventType, + sdk.NewAttribute(types.StartSendGeneralKeyshareEventIdentity, req.Identity), ), ) } diff --git a/x/keyshare/keeper/query_general_keyshare.go b/x/keyshare/keeper/query_general_keyshare.go index 6e602bb1..c05a4b9b 100644 --- a/x/keyshare/keeper/query_general_keyshare.go +++ b/x/keyshare/keeper/query_general_keyshare.go @@ -26,18 +26,17 @@ func (k Keeper) GeneralKeyshareAll( storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - generalKeyShareStore := prefix.NewStore(store, types.KeyPrefix(types.GeneralKeyshareKeyPrefix)) + generalKeyshareStore := prefix.NewStore(store, types.KeyPrefix(types.GeneralKeyshareKeyPrefix)) - pageRes, err := query.Paginate(generalKeyShareStore, req.Pagination, func(key []byte, value []byte) error { - var generalKeyShare types.GeneralKeyshare - if err := k.cdc.Unmarshal(value, &generalKeyShare); err != nil { + pageRes, err := query.Paginate(generalKeyshareStore, req.Pagination, func(key []byte, value []byte) error { + var generalKeyshare types.GeneralKeyshare + if err := k.cdc.Unmarshal(value, &generalKeyshare); err != nil { return err } - generalKeyshares = append(generalKeyshares, generalKeyShare) + generalKeyshares = append(generalKeyshares, generalKeyshare) return nil }) - if err != nil { return nil, status.Error(codes.Internal, err.Error()) } diff --git a/x/keyshare/keeper/query_keyshare.go b/x/keyshare/keeper/query_keyshare.go index ec57c801..37d219f5 100644 --- a/x/keyshare/keeper/query_keyshare.go +++ b/x/keyshare/keeper/query_keyshare.go @@ -14,7 +14,7 @@ import ( "google.golang.org/grpc/status" ) -// KeyShareAll returns the list of all keyshares submitted +// KeyshareAll returns the list of all keyshares submitted func (k Keeper) KeyshareAll( c context.Context, req *types.QueryKeyshareAllRequest, @@ -39,7 +39,6 @@ func (k Keeper) KeyshareAll( keyShares = append(keyShares, keyShare) return nil }) - if err != nil { return nil, status.Error(codes.Internal, err.Error()) } @@ -47,7 +46,7 @@ func (k Keeper) KeyshareAll( return &types.QueryKeyshareAllResponse{Keyshare: keyShares, Pagination: pageRes}, nil } -// KeyShare returns a single keyshare submitted by a particular validator for a particular block height +// Keyshare returns a single keyshare submitted by a particular validator for a particular block height func (k Keeper) Keyshare( c context.Context, req *types.QueryKeyshareRequest, diff --git a/x/keyshare/migrations/v2/store.go b/x/keyshare/migrations/v2/store.go index e8dcc519..b3c62db5 100644 --- a/x/keyshare/migrations/v2/store.go +++ b/x/keyshare/migrations/v2/store.go @@ -13,8 +13,8 @@ func MigrateStore(ctx sdk.Context, storeService store.KVStoreService, cdc codec. 463000, []string{"fairy1r6q07ne3deq64ezcjwkedcfe6669f0ewpwnxy9"}, types.DefaultMinimumBonded, - types.DefaultSlashFractionNoKeyShare, - types.DefaultSlashFractionWrongKeyShare, + types.DefaultSlashFractionNoKeyshare, + types.DefaultSlashFractionWrongKeyshare, types.DefaultMaxIdledBlock) bz, err := cdc.Marshal(&currParams) diff --git a/x/keyshare/module/genesis.go b/x/keyshare/module/genesis.go index e56d1dc3..818c408f 100644 --- a/x/keyshare/module/genesis.go +++ b/x/keyshare/module/genesis.go @@ -32,7 +32,8 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) for _, elem := range genState.AuthorizedAddressList { k.SetAuthorizedAddress(ctx, elem) } - // Set all the generalKeyShare + // Set all the generalKeys + hare for _, elem := range genState.GeneralKeyshareList { k.SetGeneralKeyshare(ctx, elem) } diff --git a/x/keyshare/types/errors.go b/x/keyshare/types/errors.go index f8693d99..4052f67f 100644 --- a/x/keyshare/types/errors.go +++ b/x/keyshare/types/errors.go @@ -12,8 +12,8 @@ var ( ErrValidatorAlreadyRegistered = sdkerrors.Register(ModuleName, 1101, "validator already registered") ErrValidatorNotRegistered = sdkerrors.Register(ModuleName, 1102, "validator not registered") ErrInvalidBlockHeight = sdkerrors.Register(ModuleName, 1103, "invalid block height") - ErrDecodingKeyShare = sdkerrors.Register(ModuleName, 1104, "error decoding keyshare") - ErrUnmarshallingKeyShare = sdkerrors.Register(ModuleName, 1105, "error unmarshalling keyshare") + ErrDecodingKeyshare = sdkerrors.Register(ModuleName, 1104, "error decoding keyshare") + ErrUnmarshallingKeyshare = sdkerrors.Register(ModuleName, 1105, "error unmarshalling keyshare") ErrDecodingCommitment = sdkerrors.Register(ModuleName, 1106, "error decoding commitment") ErrUnmarshallingCommitment = sdkerrors.Register(ModuleName, 1107, "error unmarhsalling commitment") ErrUnableToVerifyShare = sdkerrors.Register(ModuleName, 1108, "unable to verify share") @@ -25,8 +25,8 @@ var ( ErrInsufficientBondedAmount = sdkerrors.Register(ModuleName, 1114, "insufficient bonded amount to be a validator") ErrEmptyCommitments = sdkerrors.Register(ModuleName, 1115, "provided commitments are empty") ErrCommitmentsNotFound = sdkerrors.Register(ModuleName, 1116, "commitments not found") - ErrInvalidKeyShareIndex = sdkerrors.Register(ModuleName, 1117, "invalid KeyShare index") - ErrInvalidKeyShareLength = sdkerrors.Register(ModuleName, 1118, "invalid KeyShare length") + ErrInvalidKeyshareIndex = sdkerrors.Register(ModuleName, 1117, "invalid Keyshare index") + ErrInvalidKeyshareLength = sdkerrors.Register(ModuleName, 1118, "invalid Keyshare length") ErrInvalidPubkeyLength = sdkerrors.Register(ModuleName, 1119, "invalid Pubkey length") ErrInvalidPubkey = sdkerrors.Register(ModuleName, 1120, "invalid Pubkey") ErrInvalidCommitment = sdkerrors.Register(ModuleName, 1121, "invalid commitment") @@ -36,7 +36,7 @@ var ( ErrInvalidNumberOfValidators = sdkerrors.Register(ModuleName, 1125, "invalid number of validators") ErrEmptyEncryptedShares = sdkerrors.Register(ModuleName, 1127, "provided encrypted key shares are empty") ErrNotMatchNumOfCommits = sdkerrors.Register(ModuleName, 1128, "provided number of commitments does not match number of validators") - ErrNotMatchNumOfEncryptedKeyShares = sdkerrors.Register(ModuleName, 1129, "provided number of commitments does not match number of encrypted key shares") + ErrNotMatchNumOfEncryptedKeyshares = sdkerrors.Register(ModuleName, 1129, "provided number of commitments does not match number of encrypted keyshares") ErrInvalidEncryptedShareData = sdkerrors.Register(ModuleName, 1130, "invalid encrypted share data") ErrAddressAlreadyAuthorized = sdkerrors.Register(ModuleName, 1900, "address is already authorized") ErrAuthorizedAddrNotFound = sdkerrors.Register(ModuleName, 1901, "target authorized address not found") @@ -49,6 +49,6 @@ var ( ErrAuthorizeSelfAddress = sdkerrors.Register(ModuleName, 1908, "unable to authorize sender own address") ErrAuthorizedAnotherAddress = sdkerrors.Register(ModuleName, 1909, "validator authorized another address to submit key share is not allow to submit key share") ErrUnsupportedIDType = sdkerrors.Register(ModuleName, 1910, "id type provided in general key share message is not supported") - ErrKeyShareRequestNotFound = sdkerrors.Register(ModuleName, 1911, "key share request for the given identity not found") + ErrKeyshareRequestNotFound = sdkerrors.Register(ModuleName, 1911, "keyshare request for the given identity not found") ErrAggKeyAlreadyExists = sdkerrors.Register(ModuleName, 1912, "decryption key already exists for the given identity") ) diff --git a/x/keyshare/types/genesis.go b/x/keyshare/types/genesis.go index 1e49c6a1..087ffa80 100644 --- a/x/keyshare/types/genesis.go +++ b/x/keyshare/types/genesis.go @@ -85,15 +85,15 @@ func (gs GenesisState) Validate() error { } authorizedAddressIndexMap[index] = struct{}{} } - // Check for duplicated index in generalKeyShare - generalKeyShareIndexMap := make(map[string]struct{}) + // Check for duplicated index in generalKeyshare + generalKeyshareIndexMap := make(map[string]struct{}) for _, elem := range gs.GeneralKeyshareList { index := string(GeneralKeyshareKey(elem.Validator, elem.IdType, elem.IdValue)) - if _, ok := generalKeyShareIndexMap[index]; ok { - return fmt.Errorf("duplicated index for generalKeyShare") + if _, ok := generalKeyshareIndexMap[index]; ok { + return fmt.Errorf("duplicated index for generalKeyshare") } - generalKeyShareIndexMap[index] = struct{}{} + generalKeyshareIndexMap[index] = struct{}{} } // this line is used by starport scaffolding # genesis/types/validate diff --git a/x/keyshare/types/key_general_keyshare.go b/x/keyshare/types/key_general_keyshare.go index 9b2087b2..73d343bb 100644 --- a/x/keyshare/types/key_general_keyshare.go +++ b/x/keyshare/types/key_general_keyshare.go @@ -5,12 +5,12 @@ import "encoding/binary" var _ binary.ByteOrder const ( - // GeneralKeyshareKeyPrefix is the prefix to retrieve all GeneralKeyShare + // GeneralKeyshareKeyPrefix is the prefix to retrieve all GeneralKeyshare GeneralKeyshareKeyPrefix = "GeneralKeyshare/value/" PrivateKeyshareKeyPrefix = "PrivateKeyshare/value/" ) -// GeneralKeyshareKey returns the store key to retrieve a GeneralKeyShare from the index fields +// GeneralKeyshareKey returns the store key to retrieve a GeneralKeyshare from the index fields func GeneralKeyshareKey( validator string, idType string, @@ -33,7 +33,7 @@ func GeneralKeyshareKey( return key } -// PrivateKeyshareKey returns the store key to retrieve a GeneralKeyShare from the index fields +// PrivateKeyshareKey returns the store key to retrieve a GeneralKeyshare from the index fields func PrivateKeyshareKey( validator string, identity string, diff --git a/x/keyshare/types/keys.go b/x/keyshare/types/keys.go index c931101d..6af46022 100644 --- a/x/keyshare/types/keys.go +++ b/x/keyshare/types/keys.go @@ -17,9 +17,7 @@ const ( PortID = "keyshare" ) -var ( - ParamsKey = []byte("p_keyshare") -) +var ParamsKey = []byte("p_keyshare") var ( // PortKey defines the key to store the port ID in store @@ -57,11 +55,11 @@ const ( ) const ( - StartSendGeneralKeyShareEventType = "start-send-general-keyshare" - StartSendEncryptedKeyShareEventType = "start-send-encrypted-keyshare" - StartSendGeneralKeyShareEventIdentity = "identity" - StartSendEncryptedKeyShareEventRequester = "requester" - StartSendEncryptedKeyShareEventPubkey = "secp256k1-pubkey" + StartSendGeneralKeyshareEventType = "start-send-general-keyshare" + StartSendEncryptedKeyshareEventType = "start-send-encrypted-keyshare" + StartSendGeneralKeyshareEventIdentity = "identity" + StartSendEncryptedKeyshareEventRequester = "requester" + StartSendEncryptedKeyshareEventPubkey = "secp256k1-pubkey" ) const ( @@ -76,18 +74,18 @@ const ( ) const ( - KeyShareAggregatedEventType = "keyshare-aggregated" - KeyShareAggregatedEventBlockHeight = "height" - KeyShareAggregatedEventData = "data" - KeyShareAggregatedEventPubkey = "pubkey" + KeyshareAggregatedEventType = "keyshare-aggregated" + KeyshareAggregatedEventBlockHeight = "height" + KeyshareAggregatedEventData = "data" + KeyshareAggregatedEventPubkey = "pubkey" ) const ( - GeneralKeyShareAggregatedEventType = "general-keyshare-aggregated" - GeneralKeyShareAggregatedEventIDValue = "id-value" - GeneralKeyShareAggregatedEventIDType = "id-type" - GeneralKeyShareAggregatedEventData = "data" - GeneralKeyShareAggregatedEventPubkey = "pubkey" + GeneralKeyshareAggregatedEventType = "general-keyshare-aggregated" + GeneralKeyshareAggregatedEventIDValue = "id-value" + GeneralKeyshareAggregatedEventIDType = "id-type" + GeneralKeyshareAggregatedEventData = "data" + GeneralKeyshareAggregatedEventPubkey = "pubkey" ) const ( @@ -112,8 +110,8 @@ const ( const ( KeyTotalIdleValSlashed = "total_idle_validator_slashed" - KeyTotalValidKeyShareSubmitted = "total_valid_key_share" - KeyTotalInvalidKeyShareSubmitted = "total_invalid_key_share" + KeyTotalValidKeyshareSubmitted = "total_valid_keyshare" + KeyTotalInvalidKeyshareSubmitted = "total_invalid_keyshare" ) func KeyPrefix(p string) []byte { diff --git a/x/keyshare/types/msg_latest_pub_key.go b/x/keyshare/types/msg_latest_pub_key.go index 8154d687..512d2586 100644 --- a/x/keyshare/types/msg_latest_pub_key.go +++ b/x/keyshare/types/msg_latest_pub_key.go @@ -53,7 +53,7 @@ func (msg *MsgCreateLatestPubkey) ValidateBasic() error { return ErrNotMatchNumOfCommits.Wrapf("expected number of validators: %d, match number of commitments: %d", msg.NumberOfValidators, len(msg.Commitments)) } if len(msg.EncryptedKeyshares) != len(msg.Commitments) { - return ErrNotMatchNumOfEncryptedKeyShares.Wrapf("expected number of encrypted key shares: %d, match number of commitments: %d", len(msg.EncryptedKeyshares), len(msg.Commitments)) + return ErrNotMatchNumOfEncryptedKeyshares.Wrapf("expected number of encrypted key shares: %d, match number of commitments: %d", len(msg.EncryptedKeyshares), len(msg.Commitments)) } for _, c := range msg.Commitments { diff --git a/x/keyshare/types/msg_override_pub_key.go b/x/keyshare/types/msg_override_pub_key.go index 352f53fb..999c6fcc 100644 --- a/x/keyshare/types/msg_override_pub_key.go +++ b/x/keyshare/types/msg_override_pub_key.go @@ -48,7 +48,7 @@ func (msg *MsgOverrideLatestPubkey) ValidateBasic() error { return ErrNotMatchNumOfCommits.Wrapf("expected number of validators: %d, match number of commitments: %d", msg.NumberOfValidators, len(msg.Commitments)) } if len(msg.EncryptedKeyshares) != len(msg.Commitments) { - return ErrNotMatchNumOfEncryptedKeyShares.Wrapf("expected number of encrypted key shares: %d, match number of commitments: %d", len(msg.EncryptedKeyshares), len(msg.Commitments)) + return ErrNotMatchNumOfEncryptedKeyshares.Wrapf("expected number of encrypted key shares: %d, match number of commitments: %d", len(msg.EncryptedKeyshares), len(msg.Commitments)) } for _, c := range msg.Commitments { diff --git a/x/keyshare/types/msg_send_key_share.go b/x/keyshare/types/msg_send_key_share.go index c2c29c38..c1fd343b 100644 --- a/x/keyshare/types/msg_send_key_share.go +++ b/x/keyshare/types/msg_send_key_share.go @@ -9,7 +9,7 @@ import ( ) const ( - KeyShareHexLen = 192 + KeyshareHexLen = 192 ) var _ sdk.Msg = &MsgSendKeyshare{} @@ -28,8 +28,8 @@ func (msg *MsgSendKeyshare) ValidateBasic() error { if err != nil { return sdkerrors.Wrapf(cosmoserror.ErrInvalidAddress, "invalid creator address (%s)", err) } - if len(msg.Message) != KeyShareHexLen { - return ErrInvalidKeyShareLength.Wrapf("expected hex encoded key share length to be %d", KeyShareHexLen) + if len(msg.Message) != KeyshareHexLen { + return ErrInvalidKeyshareLength.Wrapf("expected hex encoded key share length to be %d", KeyshareHexLen) } if _, err = hex.DecodeString(msg.Message); err != nil { return ErrInvalidShare.Wrapf("expected hex encoded key share, got: %s", msg.Message) diff --git a/x/keyshare/types/params.go b/x/keyshare/types/params.go index 735548a0..a0369249 100644 --- a/x/keyshare/types/params.go +++ b/x/keyshare/types/params.go @@ -25,14 +25,15 @@ var ( KeyTrustedAddresses = []byte("TrustedAddresses") DefaultTrustedAddresses []string ) + var ( - KeySlashFractionNoKeyShare = []byte("KeyNoShareSlashFraction") - DefaultSlashFractionNoKeyShare = math.LegacyNewDecWithPrec(5, 1) // 0.5 + KeySlashFractionNoKeyshare = []byte("KeyNoShareSlashFraction") + DefaultSlashFractionNoKeyshare = math.LegacyNewDecWithPrec(5, 1) // 0.5 ) var ( - KeySlashFractionWrongKeyShare = []byte("KeyWrongShareSlashFraction") - DefaultSlashFractionWrongKeyShare = math.LegacyNewDecWithPrec(5, 1) // 0.5 + KeySlashFractionWrongKeyshare = []byte("KeyWrongShareSlashFraction") + DefaultSlashFractionWrongKeyshare = math.LegacyNewDecWithPrec(5, 1) // 0.5 ) var ( @@ -50,15 +51,15 @@ func NewParams( keyExp uint64, trAddrs []string, minimumBonded uint64, - noKeyShareFraction math.LegacyDec, - wrongKeyShareFraction math.LegacyDec, + noKeyshareFraction math.LegacyDec, + wrongKeyshareFraction math.LegacyDec, maxIdledBlock uint64, ) Params { return Params{ KeyExpiry: keyExp, TrustedAddresses: trAddrs, - SlashFractionNoKeyshare: noKeyShareFraction, - SlashFractionWrongKeyshare: wrongKeyShareFraction, + SlashFractionNoKeyshare: noKeyshareFraction, + SlashFractionWrongKeyshare: wrongKeyshareFraction, MaxIdledBlock: maxIdledBlock, MinimumBonded: minimumBonded, } @@ -70,8 +71,8 @@ func DefaultParams() Params { DefaultKeyExpiry, DefaultTrustedAddresses, DefaultMinimumBonded, - DefaultSlashFractionNoKeyShare, - DefaultSlashFractionWrongKeyShare, + DefaultSlashFractionNoKeyshare, + DefaultSlashFractionWrongKeyshare, DefaultMaxIdledBlock, ) } @@ -82,8 +83,8 @@ func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { paramtypes.NewParamSetPair(KeyKeyExpiry, &p.KeyExpiry, validateKeyExpiry), paramtypes.NewParamSetPair(KeyTrustedAddresses, &p.TrustedAddresses, validateTrustedAddresses), paramtypes.NewParamSetPair(KeyMinimumBonded, &p.MinimumBonded, validateMinimumBonded), - paramtypes.NewParamSetPair(KeySlashFractionNoKeyShare, &p.SlashFractionNoKeyshare, validateSlashFractionNoKeyshare), - paramtypes.NewParamSetPair(KeySlashFractionWrongKeyShare, &p.SlashFractionWrongKeyshare, validateSlashFractionWrongKeyshare), + paramtypes.NewParamSetPair(KeySlashFractionNoKeyshare, &p.SlashFractionNoKeyshare, validateSlashFractionNoKeyshare), + paramtypes.NewParamSetPair(KeySlashFractionWrongKeyshare, &p.SlashFractionWrongKeyshare, validateSlashFractionWrongKeyshare), paramtypes.NewParamSetPair(KeyMaxIdledBlock, &p.MaxIdledBlock, validateMaxIdledBlock), } } diff --git a/x/pep/ante/ante.go b/x/pep/ante/ante.go index 9c01ebf1..f3554636 100644 --- a/x/pep/ante/ante.go +++ b/x/pep/ante/ante.go @@ -10,15 +10,15 @@ import ( var _ sdk.AnteDecorator = PEPDecorator{} type ( - // PEPDecorator is an AnteDecorator that validates the KeyShare transactions. + // PEPDecorator is an AnteDecorator that validates the Keyshare transactions. PEPDecorator struct { pepKeeper keeper.Keeper txEncoder sdk.TxEncoder - lane KeyShareLane + lane KeyshareLane } ) -func NewPepDecorator(pk keeper.Keeper, txEncoder sdk.TxEncoder, lane KeyShareLane) PEPDecorator { +func NewPepDecorator(pk keeper.Keeper, txEncoder sdk.TxEncoder, lane KeyshareLane) PEPDecorator { return PEPDecorator{ pepKeeper: pk, txEncoder: txEncoder, diff --git a/x/pep/ante/utils.go b/x/pep/ante/utils.go index 2bd3fae3..3b0780b0 100644 --- a/x/pep/ante/utils.go +++ b/x/pep/ante/utils.go @@ -6,6 +6,6 @@ import ( ) // KeyshareLane is an interface that defines the methods required to interact with the keyshare lane. -type KeyShareLane interface { +type KeyshareLane interface { GetDecryptionKeyInfo(tx sdk.Tx) (*peptypes.DecryptionKey, error) } diff --git a/x/pep/keeper/query_general_identity_test.go b/x/pep/keeper/query_general_identity_test.go index f5576068..cec6e176 100644 --- a/x/pep/keeper/query_general_identity_test.go +++ b/x/pep/keeper/query_general_identity_test.go @@ -19,7 +19,7 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func TestKeyShareReqSingle(t *testing.T) { +func TestKeyshareReqSingle(t *testing.T) { keeper, ctx := keepertest.PepKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) @@ -65,7 +65,6 @@ func TestKeyShareReqSingle(t *testing.T) { nullify.Fill(response), ) } - }) } } From 071e0620caf4ee59097b98e7076a91faf6c2e52e Mon Sep 17 00:00:00 2001 From: bowenyou Date: Mon, 21 Oct 2024 11:34:05 -0400 Subject: [PATCH 12/30] slowly refactor --- x/keyshare/keeper/msg_send_keyshare.go | 32 +++++++++---------- .../msg_submit_encrypted_keyshare_test.go | 14 ++++---- .../msg_submit_general_keyshare_test.go | 8 ++--- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/x/keyshare/keeper/msg_send_keyshare.go b/x/keyshare/keeper/msg_send_keyshare.go index 29b7ee66..105b2a9d 100644 --- a/x/keyshare/keeper/msg_send_keyshare.go +++ b/x/keyshare/keeper/msg_send_keyshare.go @@ -64,7 +64,7 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar commitmentsLen := uint64(len(commitments.Commitments)) if msg.KeyshareIndex > commitmentsLen { - return nil, types.ErrInvalidKeyShareIndex.Wrap(fmt.Sprintf("Expect Index within: %d, got: %d", commitmentsLen, msg.KeyshareIndex)) + return nil, types.ErrInvalidKeyshareIndex.Wrap(fmt.Sprintf("Expect Index within: %d, got: %d", commitmentsLen, msg.KeyshareIndex)) } // Parse the keyshare & commitment then verify it @@ -180,12 +180,12 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar var listOfShares []distIBE.ExtractedKey var listOfCommitment []distIBE.Commitment - for _, eachKeyShare := range stateKeyshares { - if eachKeyShare.KeyshareIndex > commitmentsLen { - k.Logger().Error(fmt.Sprintf("KeyShareIndex: %d should not higher or equals to commitments length: %d", eachKeyShare.KeyshareIndex, commitmentsLen)) + for _, eachKeyshare := range stateKeyshares { + if eachKeyshare.KeyshareIndex > commitmentsLen { + k.Logger().Error(fmt.Sprintf("KeyshareIndex: %d should not higher or equals to commitments length: %d", eachKeyshare.KeyshareIndex, commitmentsLen)) continue } - keyShare, commitment, err := parseKeyShareCommitment(suite, eachKeyShare.Keyshare, commitments.Commitments[eachKeyShare.KeyshareIndex-1], uint32(eachKeyShare.KeyshareIndex), ibeID) + keyshare, commitment, err := parseKeyshareCommitment(suite, eachKeyshare.Keyshare, commitments.Commitments[eachKeyshare.KeyshareIndex-1], uint32(eachKeyshare.KeyshareIndex), ibeID) if err != nil { k.Logger().Error(err.Error()) continue @@ -218,13 +218,13 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar k.Logger().Info(fmt.Sprintf("Aggregated Decryption Key for Block %d: %s", msg.BlockHeight, skHex)) - defer telemetry.IncrCounterWithLabels([]string{types.KeyTotalValidKeyShareSubmitted}, 1, []metrics.Label{telemetry.NewLabel("aggrkey", skHex)}) + defer telemetry.IncrCounterWithLabels([]string{types.KeyTotalValidKeyshareSubmitted}, 1, []metrics.Label{telemetry.NewLabel("aggrkey", skHex)}) ctx.EventManager().EmitEvent( - sdk.NewEvent(types.KeyShareAggregatedEventType, - sdk.NewAttribute(types.KeyShareAggregatedEventBlockHeight, strconv.FormatUint(msg.BlockHeight, 10)), - sdk.NewAttribute(types.KeyShareAggregatedEventData, skHex), - sdk.NewAttribute(types.KeyShareAggregatedEventPubkey, activePubkey.PublicKey), + sdk.NewEvent(types.KeyshareAggregatedEventType, + sdk.NewAttribute(types.KeyshareAggregatedEventBlockHeight, strconv.FormatUint(msg.BlockHeight, 10)), + sdk.NewAttribute(types.KeyshareAggregatedEventData, skHex), + sdk.NewAttribute(types.KeyshareAggregatedEventPubkey, activePubkey.PublicKey), ), ) @@ -257,23 +257,23 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar }, nil } -// parseKeyShareCommitment parses a keyshare and extracts the keys and commitment -func parseKeyShareCommitment( +// parseKeyshareCommitment parses a keyshare and extracts the keys and commitment +func parseKeyshareCommitment( suite pairing.Suite, - keyShareHex string, + keyshareHex string, commitmentHex string, index uint32, id string, ) (*distIBE.ExtractedKey, *distIBE.Commitment, error) { - newByteKey, err := hex.DecodeString(keyShareHex) + newByteKey, err := hex.DecodeString(keyshareHex) if err != nil { - return nil, nil, types.ErrDecodingKeyShare.Wrap(err.Error()) + return nil, nil, types.ErrDecodingKeyshare.Wrap(err.Error()) } newSharePoint := suite.G2().Point() err = newSharePoint.UnmarshalBinary(newByteKey) if err != nil { - return nil, nil, types.ErrUnmarshallingKeyShare.Wrap(err.Error()) + return nil, nil, types.ErrUnmarshallingKeyshare.Wrap(err.Error()) } newByteCommitment, err := hex.DecodeString(commitmentHex) diff --git a/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go b/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go index 30c3faff..46b76eb5 100644 --- a/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go +++ b/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go @@ -83,12 +83,12 @@ func TestEncryptedKeyshareMsgServerCreate(t *testing.T) { } } -func TestEncryptedKeyShareMsgServerFailCases(t *testing.T) { +func TestEncryptedKeyshareMsgServerFailCases(t *testing.T) { k, ctx, pk, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) - out, creator := SetupTestGeneralKeyShare(t, wctx, k, 1, 1) + out, creator := SetupTestGeneralKeyshare(t, wctx, k, 1, 1) onlyIdVal := random.RandHex(32) pk.SetPrivateReqQueueEntry(wctx, commontypes.RequestPrivateDecryptionKey{ @@ -107,21 +107,21 @@ func TestEncryptedKeyShareMsgServerFailCases(t *testing.T) { err: types.ErrAddrIsNotValidatorOrAuthorized, }, { - desc: "KeyShareRequestNotFound", + desc: "KeyshareRequestNotFound", request: &types.MsgSubmitEncryptedKeyshare{ Creator: creator, Identity: random.RandHex(32), }, - err: types.ErrKeyShareRequestNotFound, + err: types.ErrKeyshareRequestNotFound, }, { - desc: "InvalidKeyShareIndex", + desc: "InvalidKeyshareIndex", request: &types.MsgSubmitEncryptedKeyshare{ Creator: creator, Identity: onlyIdVal, KeyshareIndex: 10, }, - err: types.ErrInvalidKeyShareIndex, + err: types.ErrInvalidKeyshareIndex, }, } { t.Run(tc.desc, func(t *testing.T) { @@ -129,7 +129,7 @@ func TestEncryptedKeyShareMsgServerFailCases(t *testing.T) { require.ErrorIs(t, err, tc.err) - if tc.desc == "KeyShareRequestNotFound" { + if tc.desc == "KeyshareRequestNotFound" { k.SetPrivateDecryptionKeyRequest(wctx, types.PrivateDecryptionKeyRequest{ Identity: onlyIdVal, Pubkey: out.MasterPublicKey, diff --git a/x/keyshare/keeper/msg_submit_general_keyshare_test.go b/x/keyshare/keeper/msg_submit_general_keyshare_test.go index 54d891a2..de038e93 100644 --- a/x/keyshare/keeper/msg_submit_general_keyshare_test.go +++ b/x/keyshare/keeper/msg_submit_general_keyshare_test.go @@ -37,7 +37,7 @@ func SetupTestGeneralKeyshare(t *testing.T, ctx sdk.Context, k keeper.Keeper, nu Creator: creator, Expiry: 123456, NumberOfValidators: pubkeyNumberOfValidator, - EncryptedKeyshares: out.KeyShareEncryptedKeyshares, + EncryptedKeyshares: out.KeyshareEncryptedKeyshares, }) k.SetActiveCommitments(ctx, types.Commitments{ @@ -52,7 +52,7 @@ func TestSubmitGeneralKeyshareAggregated(t *testing.T) { srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) - out, creator := SetupTestGeneralKeyShare(t, wctx, k, 1, 1) + out, creator := SetupTestGeneralKeyshare(t, wctx, k, 1, 1) for i := 0; i < 5; i++ { @@ -199,7 +199,7 @@ func TestGeneralKeyshareMsgServerFailCases(t *testing.T) { err: types.ErrUnsupportedIDType, }, { - desc: "KeyShareRequestNotFound", + desc: "KeyshareRequestNotFound", request: &types.MsgSubmitGeneralKeyshare{ Creator: creator, IdType: keeper.PrivateGovIdentity, @@ -208,7 +208,7 @@ func TestGeneralKeyshareMsgServerFailCases(t *testing.T) { err: types.ErrKeyshareRequestNotFound, }, { - desc: "InvalidKeyShareIndex", + desc: "InvalidKeyshareIndex", request: &types.MsgSubmitGeneralKeyshare{ Creator: creator, IdType: keeper.PrivateGovIdentity, From 0a5202a9fb57b278d34a33a02bdfc519b80466ac Mon Sep 17 00:00:00 2001 From: p0p3yee Date: Mon, 21 Oct 2024 13:22:42 -0400 Subject: [PATCH 13/30] Fix build error --- app/ante.go | 2 +- x/keyshare/keeper/msg_send_keyshare.go | 8 +++---- .../keeper/msg_submit_general_keyshare.go | 22 +++++++++---------- x/keyshare/module/genesis.go | 1 - 4 files changed, 16 insertions(+), 17 deletions(-) diff --git a/app/ante.go b/app/ante.go index 876f7c22..286f4fbf 100644 --- a/app/ante.go +++ b/app/ante.go @@ -16,7 +16,7 @@ import ( type FairyringHandlerOptions struct { // FreeLane block.Lane BaseOptions ante.HandlerOptions - KeyShareLane pepante.KeyShareLane + KeyShareLane pepante.KeyshareLane TxDecoder sdk.TxDecoder TxEncoder sdk.TxEncoder PepKeeper pepkeeper.Keeper diff --git a/x/keyshare/keeper/msg_send_keyshare.go b/x/keyshare/keeper/msg_send_keyshare.go index 105b2a9d..284da3e3 100644 --- a/x/keyshare/keeper/msg_send_keyshare.go +++ b/x/keyshare/keeper/msg_send_keyshare.go @@ -68,9 +68,9 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar } // Parse the keyshare & commitment then verify it - _, _, err := parseKeyShareCommitment(suite, msg.Message, commitments.Commitments[msg.KeyshareIndex-1], uint32(msg.KeyshareIndex), ibeID) + _, _, err := parseKeyshareCommitment(suite, msg.Message, commitments.Commitments[msg.KeyshareIndex-1], uint32(msg.KeyshareIndex), ibeID) if err != nil { - defer telemetry.IncrCounter(1, types.KeyTotalInvalidKeyShareSubmitted) + defer telemetry.IncrCounter(1, types.KeyTotalInvalidKeyshareSubmitted) k.Logger().Error(fmt.Sprintf("Error in parsing & verifying keyshare & commitment: %s", err.Error())) k.Logger().Error(fmt.Sprintf("KeyShare is: %v | Commitment is: %v | Index: %d", msg.Message, commitments.Commitments, msg.KeyshareIndex)) // Invalid Share, slash validator @@ -162,7 +162,7 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar // no decryption key for current height if int64(len(stateKeyshares)) < expectedThreshold || found { defer telemetry.IncrCounterWithLabels( - []string{types.KeyTotalValidKeyShareSubmitted}, + []string{types.KeyTotalValidKeyshareSubmitted}, 1, []metrics.Label{telemetry.NewLabel("aggrkey", decryptionKeyData.Data)}, ) @@ -193,7 +193,7 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar listOfShares = append( listOfShares, - *keyShare, + *keyshare, ) listOfCommitment = append( listOfCommitment, diff --git a/x/keyshare/keeper/msg_submit_general_keyshare.go b/x/keyshare/keeper/msg_submit_general_keyshare.go index c6e0427e..c81d6aed 100644 --- a/x/keyshare/keeper/msg_submit_general_keyshare.go +++ b/x/keyshare/keeper/msg_submit_general_keyshare.go @@ -67,7 +67,7 @@ func (k msgServer) SubmitGeneralKeyshare( case PrivateGovIdentity: keyShareReq, found := k.GetDecryptionKeyRequest(ctx, msg.IdValue) if !found { - return nil, types.ErrKeyShareRequestNotFound.Wrapf(", got id value: %s", msg.IdValue) + return nil, types.ErrKeyshareRequestNotFound.Wrapf(", got id value: %s", msg.IdValue) } if keyShareReq.DecryptionKey != "" { return &types.MsgSubmitGeneralKeyshareResponse{ @@ -92,11 +92,11 @@ func (k msgServer) SubmitGeneralKeyshare( commitmentsLen := uint64(len(commitments.Commitments)) if msg.KeyshareIndex > commitmentsLen { - return nil, types.ErrInvalidKeyShareIndex.Wrap(fmt.Sprintf("Expect Index within: %d, got: %d", commitmentsLen, msg.KeyshareIndex)) + return nil, types.ErrInvalidKeyshareIndex.Wrap(fmt.Sprintf("Expect Index within: %d, got: %d", commitmentsLen, msg.KeyshareIndex)) } // Parse the keyshare & commitment then verify it - _, _, err := parseKeyShareCommitment(suite, msg.Keyshare, commitments.Commitments[msg.KeyshareIndex-1], uint32(msg.KeyshareIndex), msg.IdValue) + _, _, err := parseKeyshareCommitment(suite, msg.Keyshare, commitments.Commitments[msg.KeyshareIndex-1], uint32(msg.KeyshareIndex), msg.IdValue) if err != nil { k.Logger().Error(fmt.Sprintf("Error in parsing & verifying general keyshare & commitment: %s", err.Error())) k.Logger().Error(fmt.Sprintf("General KeyShare is: %v | Commitment is: %v | Index: %d", msg.Keyshare, commitments.Commitments, msg.KeyshareIndex)) @@ -207,7 +207,7 @@ func (k msgServer) SubmitGeneralKeyshare( case PrivateGovIdentity: keyShareReq, found := k.GetDecryptionKeyRequest(ctx, msg.IdValue) if !found { - return nil, types.ErrKeyShareRequestNotFound.Wrapf(", got id value: %s", msg.IdValue) + return nil, types.ErrKeyshareRequestNotFound.Wrapf(", got id value: %s", msg.IdValue) } if keyShareReq.DecryptionKey != "" { @@ -232,7 +232,7 @@ func (k msgServer) SubmitGeneralKeyshare( k.Logger().Error(fmt.Sprintf("KeyShareIndex: %d should not higher or equals to commitments length: %d", eachKeyShare.KeyshareIndex, commitmentsLen)) continue } - keyShare, commitment, err := parseKeyShareCommitment(suite, eachKeyShare.Keyshare, commitments.Commitments[eachKeyShare.KeyshareIndex-1], uint32(eachKeyShare.KeyshareIndex), msg.IdValue) + keyShare, commitment, err := parseKeyshareCommitment(suite, eachKeyShare.Keyshare, commitments.Commitments[eachKeyShare.KeyshareIndex-1], uint32(eachKeyShare.KeyshareIndex), msg.IdValue) if err != nil { k.Logger().Error(err.Error()) continue @@ -259,11 +259,11 @@ func (k msgServer) SubmitGeneralKeyshare( k.Logger().Info(fmt.Sprintf("Aggregated General Decryption Key for ID Type %s, ID: %s | %s", msg.IdType, msg.IdValue, skHex)) ctx.EventManager().EmitEvent( - sdk.NewEvent(types.GeneralKeyShareAggregatedEventType, - sdk.NewAttribute(types.GeneralKeyShareAggregatedEventIDType, msg.IdType), - sdk.NewAttribute(types.GeneralKeyShareAggregatedEventIDValue, msg.IdValue), - sdk.NewAttribute(types.GeneralKeyShareAggregatedEventData, skHex), - sdk.NewAttribute(types.GeneralKeyShareAggregatedEventPubkey, activePubkey.PublicKey), + sdk.NewEvent(types.GeneralKeyshareAggregatedEventType, + sdk.NewAttribute(types.GeneralKeyshareAggregatedEventIDType, msg.IdType), + sdk.NewAttribute(types.GeneralKeyshareAggregatedEventIDValue, msg.IdValue), + sdk.NewAttribute(types.GeneralKeyshareAggregatedEventData, skHex), + sdk.NewAttribute(types.GeneralKeyshareAggregatedEventPubkey, activePubkey.PublicKey), ), ) @@ -279,7 +279,7 @@ func (k msgServer) SubmitGeneralKeyshare( } decryptionKeyReq, found := k.GetDecryptionKeyRequest(ctx, msg.IdValue) if !found { - return nil, types.ErrKeyShareRequestNotFound.Wrapf(", got id value: %s", msg.IdValue) + return nil, types.ErrKeyshareRequestNotFound.Wrapf(", got id value: %s", msg.IdValue) } if decryptionKeyReq.DecryptionKey != "" { return nil, types.ErrAggKeyAlreadyExists.Wrapf(", identity: %s, Aggregated key: %s", msg.IdValue, decryptionKeyReq.DecryptionKey) diff --git a/x/keyshare/module/genesis.go b/x/keyshare/module/genesis.go index 818c408f..783e9763 100644 --- a/x/keyshare/module/genesis.go +++ b/x/keyshare/module/genesis.go @@ -33,7 +33,6 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) k.SetAuthorizedAddress(ctx, elem) } // Set all the generalKeys - hare for _, elem := range genState.GeneralKeyshareList { k.SetGeneralKeyshare(ctx, elem) } From 45208acfa4d770822753b6f22b4476529048d6bc Mon Sep 17 00:00:00 2001 From: p0p3yee Date: Mon, 21 Oct 2024 13:45:12 -0400 Subject: [PATCH 14/30] Update test script function names --- scripts/tests/keyshare.sh | 10 ++++---- scripts/tests/pep.sh | 54 +++++++++++++++++++-------------------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/scripts/tests/keyshare.sh b/scripts/tests/keyshare.sh index 2d750ef8..78a87569 100755 --- a/scripts/tests/keyshare.sh +++ b/scripts/tests/keyshare.sh @@ -114,7 +114,7 @@ PUB_KEY=$(echo "$GENERATED_RESULT" | jq -r '.MasterPublicKey') COMMITS=$(echo "$GENERATED_RESULT" | jq -r '.Commitments[0]') echo "Trusted address submit pub key on chain fairyring_test_1" -RESULT=$($BINARY tx keyshare create-latest-pub-key $PUB_KEY $COMMITS 1 '[{"data":"'"$GENERATED_SHARE"'","validator":"'"$VALIDATOR_1"'"}]' --from $VALIDATOR_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node tcp://localhost:16657 --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx keyshare create-latest-pubkey $PUB_KEY $COMMITS 1 '[{"data":"'"$GENERATED_SHARE"'","validator":"'"$VALIDATOR_1"'"}]' --from $VALIDATOR_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node tcp://localhost:16657 --broadcast-mode sync --keyring-backend test -o json -y) check_tx_code $RESULT RESULT=$(wait_for_tx $RESULT) VALIDATOR_ADDR=$(echo "$RESULT" | jq '.events' | jq 'map(select(any(.type; contains("pubkey"))))[]' | jq '.attributes' | jq 'map(select(any(.key; contains("creator"))))[]' | jq -r '.value') @@ -126,7 +126,7 @@ fi echo "Not trusted address submit pub key on chain fairyring_test_1" -RESULT=$($BINARY tx keyshare create-latest-pub-key $PUB_KEY $COMMITS 1 '[{"data":"'"$GENERATED_SHARE"'","validator":"'"$VALIDATOR_1"'"}]' --from $WALLET_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node tcp://localhost:16657 --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx keyshare create-latest-pubkey $PUB_KEY $COMMITS 1 '[{"data":"'"$GENERATED_SHARE"'","validator":"'"$VALIDATOR_1"'"}]' --from $WALLET_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node tcp://localhost:16657 --broadcast-mode sync --keyring-backend test -o json -y) check_tx_code $RESULT RESULT=$(wait_for_tx $RESULT) ERROR_MSG=$(echo "$RESULT" | jq -r '.raw_log') @@ -161,7 +161,7 @@ PUB_KEY=$(echo "$GENERATED_RESULT" | jq -r '.MasterPublicKey') COMMITS=$(echo "$GENERATED_RESULT" | jq -r '.Commitments[0]') echo "Trusted address override pub key on chain fairyring_test_1" -RESULT=$($BINARY tx keyshare override-latest-pub-key $PUB_KEY $COMMITS 1 '[{"data":"'"$GENERATED_SHARE"'","validator":"'"$VALIDATOR_1"'"}]' --from $VALIDATOR_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node tcp://localhost:16657 --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx keyshare override-latest-pubkey $PUB_KEY $COMMITS 1 '[{"data":"'"$GENERATED_SHARE"'","validator":"'"$VALIDATOR_1"'"}]' --from $VALIDATOR_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node tcp://localhost:16657 --broadcast-mode sync --keyring-backend test -o json -y) check_tx_code $RESULT RESULT=$(wait_for_tx $RESULT) VALIDATOR_ADDR=$(echo "$RESULT" | jq '.events' | jq 'map(select(any(.type; contains("pubkey"))))[]' | jq '.attributes' | jq 'map(select(any(.key; contains("creator"))))[]' | jq -r '.value') @@ -261,7 +261,7 @@ fi ./scripts/tests/keyshareSender.sh $BINARY $CHAIN_DIR/$CHAINID_1 tcp://localhost:16657 $VALIDATOR_1 $CHAINID_1 > $CHAIN_DIR/keyshareSender.log 2>&1 & echo "Query submitted key share on chain fairyring_test_1" -RESULT=$($BINARY query keyshare list-key-share --node tcp://localhost:16657 -o json) +RESULT=$($BINARY query keyshare list-keyshares --node tcp://localhost:16657 -o json) RESULT_SENDER=$(echo "$RESULT" | jq -r '.keyShare[0].validator') RESULT_KEYSHARE=$(echo "$RESULT" | jq -r '.keyShare[0].keyShare') RESULT_HEIGHT=$(echo "$RESULT" | jq -r '.keyShare[0].blockHeight') @@ -274,7 +274,7 @@ echo "Key Share Successfully submitted: '$RESULT_KEYSHARE' for height '$RESULT_H echo "Query aggregated key share on chain fairyring_test_1" -RESULT=$($BINARY query keyshare list-aggregated-key-share --node tcp://localhost:16657 -o json) +RESULT=$($BINARY query keyshare list-decryption-keys --node tcp://localhost:16657 -o json) RESULT_HEIGHT=$(echo "$RESULT" | jq -r '.aggregatedKeyShare[0].height') RESULT_DATA=$(echo "$RESULT" | jq -r '.aggregatedKeyShare[0].data') if [ "$RESULT_HEIGHT" != "$TARGET_HEIGHT" ]; then diff --git a/scripts/tests/pep.sh b/scripts/tests/pep.sh index cd2901dd..dc9cdda5 100755 --- a/scripts/tests/pep.sh +++ b/scripts/tests/pep.sh @@ -159,7 +159,7 @@ SIGNED_DATA_2=$($BINARY tx sign unsigned2.json --from $VALIDATOR_2 --offline --a echo "Query aggregated key share from key share module for submitting to pep module on chain fairyring_test_1" CURRENT_BLOCK=$($BINARY query consensus comet block-latest --home $CHAIN_DIR/$CHAINID_1 --node $CHAIN1_NODE -o json | jq -r '.block.header.height') -RESULT=$($BINARY query keyshare list-aggregated-key-share --node $CHAIN1_NODE -o json) +RESULT=$($BINARY query keyshare list-decryption-keys --node $CHAIN1_NODE -o json) AGG_KEY_HEIGHT=$(echo "$RESULT" | jq -r '.aggregatedKeyShare | last | .height') AGG_KEY=$(echo "$RESULT" | jq -r '.aggregatedKeyShare | last | .data') if [ "$AGG_KEY_HEIGHT" -gt "$CURRENT_BLOCK" ]; then @@ -170,7 +170,7 @@ fi CURRENT_BLOCK=$($BINARY query consensus comet block-latest --home $CHAIN_DIR/$CHAINID_2 --node $CHAIN2_NODE -o json | jq -r '.block.header.height') echo "Chain 2 Current Block: $CURRENT_BLOCK" echo "Submit valid aggregated key to pep module on chain fairyring_test_2 from address: $VALIDATOR_2" -RESULT=$($BINARY tx pep create-aggregated-key-share $AGG_KEY_HEIGHT $AGG_KEY --from $VALIDATOR_2 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep submit-decryption-key $AGG_KEY_HEIGHT $AGG_KEY --from $VALIDATOR_2 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE --broadcast-mode sync --keyring-backend test -o json -y) check_tx_code $RESULT RESULT=$(wait_for_tx $RESULT) ACTION=$(echo "$RESULT" | jq -r | jq '.events' | jq 'map(select(any(.type; contains("message"))))[]' | jq '.attributes' | jq 'map(select(any(.key; contains("action"))))[]' | jq -r '.value') @@ -262,7 +262,7 @@ fi CURRENT_BLOCK=$($BINARY query consensus comet block-latest --home $CHAIN_DIR/$CHAINID_2 --node $CHAIN2_NODE -o json | jq -r '.block.header.height') echo "Chain 2 Current Block: $CURRENT_BLOCK" echo "Submit valid aggregated key to pep module on chain fairyring_test_2 from address: $VALIDATOR_2" -RESULT=$($BINARY tx pep create-aggregated-key-share $AGG_KEY_HEIGHT $AGG_KEY --from $VALIDATOR_2 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep submit-decryption-key $AGG_KEY_HEIGHT $AGG_KEY --from $VALIDATOR_2 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE --broadcast-mode sync --keyring-backend test -o json -y) check_tx_code $RESULT RESULT=$(wait_for_tx $RESULT) ACTION=$(echo "$RESULT" | jq '.events' | jq 'map(select(any(.type; contains("message"))))[]' | jq '.attributes' | jq 'map(select(any(.key; contains("action"))))[]' | jq -r '.value') @@ -311,7 +311,7 @@ BAL_AMT=$(echo "$RESULT" | jq -r '.balances[0].amount') echo "Balance after encrypted tx execution: $BAL_AMT$BAL_DENOM" echo "Submit invalid aggregated key to pep module on chain fairyring_test_2" -RESULT=$($BINARY tx pep create-aggregated-key-share $((AGG_KEY_HEIGHT+1)) 123123123 --from $VALIDATOR_2 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep submit-decryption-key $((AGG_KEY_HEIGHT+1)) 123123123 --from $VALIDATOR_2 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE --broadcast-mode sync --keyring-backend test -o json -y) check_tx_code $RESULT RESULT=$(wait_for_tx $RESULT) if [[ "$RESULT" != *"input string length must be equal to 96 bytes"* ]]; then @@ -353,7 +353,7 @@ echo "Testing general keyshare on source chain" echo "#############################################" echo "Creating new General Enc Request in pep module on chain fairyring_test_1" -RESULT=$($BINARY tx pep request-general-keyshare 30s testing123 --from $WALLET_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep request-general-identity 30s testing123 --from $WALLET_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) check_tx_code $RESULT sleep 5 @@ -403,7 +403,7 @@ check_tx_code $RESULT sleep 5 echo "Query Keyshare request and check for encrypted tx" -TX=$($BINARY query pep show-keyshare-req $REQ_ID --node $CHAIN1_NODE -o json | jq -r '.keyshare.tx_list.encryptedTx[0].data') +TX=$($BINARY query pep show-general-identity $REQ_ID --node $CHAIN1_NODE -o json | jq -r '.keyshare.tx_list.encryptedTx[0].data') if [ "$TX" != "$CIPHER" ]; then echo "Submitting general encrypted tx failed. Expected: $CIPHER, got $TX" exit 1 @@ -417,7 +417,7 @@ check_tx_code $RESULT sleep 5 echo "Request Generation of Aggr keyshare" -RESULT=$($BINARY tx pep get-general-keyshare $REQ_ID --from $WALLET_1 --gas-prices 1ufairy --gas 900000 --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep request-general-decryption-key $REQ_ID --from $WALLET_1 --gas-prices 1ufairy --gas 900000 --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) echo "$RESULT" check_tx_code $RESULT @@ -429,7 +429,7 @@ EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') while true; do echo "Submitting General Key Share" - RESULT=$($BINARY tx keyshare create-general-key-share "private-gov-identity" $IDENTITY $EXTRACTED_SHARE 1 --from $VALIDATOR_1 --gas-prices 1ufairy --gas 900000 --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node tcp://localhost:16657 --broadcast-mode sync --keyring-backend test -o json -y) + RESULT=$($BINARY tx keyshare submit-general-keyshare "private-gov-identity" $IDENTITY $EXTRACTED_SHARE 1 --from $VALIDATOR_1 --gas-prices 1ufairy --gas 900000 --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node tcp://localhost:16657 --broadcast-mode sync --keyring-backend test -o json -y) echo "$RESULT" check_tx_err $RESULT if [ $? -eq 0 ]; then @@ -455,7 +455,7 @@ echo "Testing general keyshare on destination chain" echo "#############################################" echo "Creating new General Enc Request in pep module on chain $CHAINID_2" -RESULT=$($BINARY tx pep request-general-keyshare 30s testing12345 --from $WALLET_2 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep request-general-identity 30s testing12345 --from $WALLET_2 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE --broadcast-mode sync --keyring-backend test -o json -y) check_tx_code $RESULT while true; do @@ -516,7 +516,7 @@ check_tx_code $RESULT sleep 5 echo "Query Keyshare request and check for encrypted tx" -TX=$($BINARY query pep show-keyshare-req $REQ_ID --node $CHAIN2_NODE -o json | jq -r '.keyshare.tx_list.encryptedTx[0].data') +TX=$($BINARY query pep show-general-identity $REQ_ID --node $CHAIN2_NODE -o json | jq -r '.keyshare.tx_list.encryptedTx[0].data') if [ "$TX" != "$CIPHER" ]; then echo "Submitting general encrypted tx failed. Expected: $CIPHER, got $TX" exit 1 @@ -530,7 +530,7 @@ check_tx_code $RESULT sleep 5 echo "Request Generation of Aggr keyshare" -RESULT=$($BINARY tx pep get-general-keyshare $REQ_ID --from $WALLET_2 --gas-prices 1ufairy --gas 900000 --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep request-general-decryption-key $REQ_ID --from $WALLET_2 --gas-prices 1ufairy --gas 900000 --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE --broadcast-mode sync --keyring-backend test -o json -y) echo "$RESULT" check_tx_code $RESULT @@ -542,7 +542,7 @@ EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') while true; do echo "Submitting General Key Share" - RESULT=$($BINARY tx keyshare create-general-key-share "private-gov-identity" $IDENTITY $EXTRACTED_SHARE 1 --from $VALIDATOR_1 --gas-prices 1ufairy --gas 900000 --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) + RESULT=$($BINARY tx keyshare submit-general-keyshare "private-gov-identity" $IDENTITY $EXTRACTED_SHARE 1 --from $VALIDATOR_1 --gas-prices 1ufairy --gas 900000 --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) echo "$RESULT" check_tx_err $RESULT if [ $? -eq 0 ]; then @@ -584,7 +584,7 @@ check_tx_code $RESULT sleep 5 echo "Query private keyshare request on chain fairyring_test_1" -SHOW_PRIVATE_REQ=$($BINARY query pep show-private-keyshare-req $WALLET_1/test_req_1 --node $CHAIN1_NODE -o json) +SHOW_PRIVATE_REQ=$($BINARY query pep show-private-identity $WALLET_1/test_req_1 --node $CHAIN1_NODE -o json) echo $SHOW_PRIVATE_REQ REQ_ID=$(echo $SHOW_PRIVATE_REQ | jq -r '.req_id') echo "Identity for private keyshare request 1 is: $REQ_ID" @@ -592,7 +592,7 @@ echo "Identity for private keyshare request 1 is: $REQ_ID" sleep 5 echo "Requesting for private keyshares on Source chain" -RESULT=$($BINARY tx pep get-private-keyshare $REQ_ID $SCEP_PUBKEY1 --from $WALLET_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep request-private-decryption-key $REQ_ID $SCEP_PUBKEY1 --from $WALLET_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) check_tx_code $RESULT sleep 5 @@ -618,7 +618,7 @@ done sleep 5 echo "Query private keyshare request on chain fairyring_test_1" -SHOW_PRIVATE_REQ=$($BINARY query pep show-private-keyshare-req $WALLET_1/test_req_1 --node $CHAIN1_NODE -o json) +SHOW_PRIVATE_REQ=$($BINARY query pep show-private-identity $WALLET_1/test_req_1 --node $CHAIN1_NODE -o json) ENC_KEYSHARES=$(echo "$SHOW_PRIVATE_REQ" | jq -r '.encrypted_keyshares') if [ "$ENC_KEYSHARES" = "[]" ]; then @@ -630,13 +630,13 @@ echo $SHOW_PRIVATE_REQ echo "Sending get private keyshare request without previous entry" REQ_ID="test_req_dummy_1" -RESULT=$($BINARY tx pep get-private-keyshare $REQ_ID $SCEP_PUBKEY1 --from $WALLET_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep request-private-decryption-key $REQ_ID $SCEP_PUBKEY1 --from $WALLET_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) check_tx_code $RESULT sleep 5 echo "Query private keyshare request on chain fairyring_test_1" -SHOW_PRIVATE_REQ=$($BINARY query pep show-private-keyshare-req $REQ_ID --node $CHAIN1_NODE -o json) +SHOW_PRIVATE_REQ=$($BINARY query pep show-private-identity $REQ_ID --node $CHAIN1_NODE -o json) echo $SHOW_PRIVATE_REQ EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $REQ_ID) @@ -660,7 +660,7 @@ done sleep 5 echo "Query private keyshare request on chain fairyring_test_1" -SHOW_PRIVATE_REQ=$($BINARY query pep show-private-keyshare-req $REQ_ID --node $CHAIN1_NODE -o json) +SHOW_PRIVATE_REQ=$($BINARY query pep show-private-identity $REQ_ID --node $CHAIN1_NODE -o json) ENC_KEYSHARES=$(echo "$SHOW_PRIVATE_REQ" | jq -r '.encrypted_keyshares') if [ "$ENC_KEYSHARES" = "[]" ]; then @@ -681,13 +681,13 @@ check_tx_code $RESULT sleep 8 echo "Query private keyshare request on chain fairyring_test_2" -SHOW_PRIVATE_REQ=$($BINARY query pep show-private-keyshare-req $WALLET_2/test_req_2 --node $CHAIN2_NODE -o json) +SHOW_PRIVATE_REQ=$($BINARY query pep show-private-identity $WALLET_2/test_req_2 --node $CHAIN2_NODE -o json) echo $SHOW_PRIVATE_REQ REQ_ID=$(echo $SHOW_PRIVATE_REQ | jq -r '.req_id') echo "Identity for private keyshare request 2 is: $REQ_ID" echo "Requesting for private keyshares on destination chain" -RESULT=$($BINARY tx pep get-private-keyshare $REQ_ID $SCEP_PUBKEY2 --from $WALLET_2 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep request-private-decryption-key $REQ_ID $SCEP_PUBKEY2 --from $WALLET_2 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE --broadcast-mode sync --keyring-backend test -o json -y) check_tx_code $RESULT sleep 8 @@ -712,7 +712,7 @@ done sleep 20 echo "Query private keyshare request on chain fairyring_test_2" -SHOW_PRIVATE_REQ=$($BINARY query pep show-private-keyshare-req $REQ_ID --node $CHAIN2_NODE -o json) +SHOW_PRIVATE_REQ=$($BINARY query pep show-private-identity $REQ_ID --node $CHAIN2_NODE -o json) ENC_KEYSHARES=$(echo "$SHOW_PRIVATE_REQ" | jq -r '.encrypted_keyshares') if [ "$ENC_KEYSHARES" = "[]" ]; then @@ -724,13 +724,13 @@ echo $SHOW_PRIVATE_REQ echo "Sending get private keyshare request without previous entry" REQ_ID="test_req_dummy_2" -RESULT=$($BINARY tx pep get-private-keyshare $REQ_ID $SCEP_PUBKEY2 --from $WALLET_2 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep request-private-decryption-key $REQ_ID $SCEP_PUBKEY2 --from $WALLET_2 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE --broadcast-mode sync --keyring-backend test -o json -y) check_tx_code $RESULT sleep 5 echo "Query private keyshare request on chain fairyring_test_2" -SHOW_PRIVATE_REQ=$($BINARY query pep show-private-keyshare-req $REQ_ID --node $CHAIN2_NODE -o json) +SHOW_PRIVATE_REQ=$($BINARY query pep show-private-identity $REQ_ID --node $CHAIN2_NODE -o json) echo $SHOW_PRIVATE_REQ EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $REQ_ID) @@ -753,7 +753,7 @@ done sleep 20 echo "Query private keyshare request on chain fairyring_test_2" -SHOW_PRIVATE_REQ=$($BINARY query pep show-private-keyshare-req $REQ_ID --node $CHAIN2_NODE -o json) +SHOW_PRIVATE_REQ=$($BINARY query pep show-private-identity $REQ_ID --node $CHAIN2_NODE -o json) ENC_KEYSHARES=$(echo "$SHOW_PRIVATE_REQ" | jq -r '.encrypted_keyshares') if [ "$ENC_KEYSHARES" = "[]" ]; then @@ -842,7 +842,7 @@ check_tx_code $RESULT sleep 5 echo "Creating new General keyshare Request on chain fairyring_test_1" -RESULT=$($BINARY tx pep request-general-keyshare 30s contract123 --from $WALLET_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep request-general-identity 30s contract123 --from $WALLET_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) check_tx_code $RESULT sleep 5 @@ -883,7 +883,7 @@ if [[ "$ERROR_MSG" != *"unautorized deregistration; only cretor and admin can de fi echo "Request Generation of Aggr keyshare" -RESULT=$($BINARY tx pep get-general-keyshare $REQ_ID --from $WALLET_1 --gas-prices 1ufairy --gas 900000 --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep request-general-decryption-key $REQ_ID --from $WALLET_1 --gas-prices 1ufairy --gas 900000 --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) echo "$RESULT" check_tx_code $RESULT @@ -895,7 +895,7 @@ EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') while true; do echo "Submitting General Key Share" - RESULT=$($BINARY tx keyshare create-general-key-share "private-gov-identity" $REQ_ID $EXTRACTED_SHARE 1 --from $VALIDATOR_1 --gas-prices 1ufairy --gas 900000 --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node tcp://localhost:16657 --broadcast-mode sync --keyring-backend test -o json -y) + RESULT=$($BINARY tx keyshare submit-general-keyshare "private-gov-identity" $REQ_ID $EXTRACTED_SHARE 1 --from $VALIDATOR_1 --gas-prices 1ufairy --gas 900000 --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node tcp://localhost:16657 --broadcast-mode sync --keyring-backend test -o json -y) echo "$RESULT" check_tx_err $RESULT if [ $? -eq 0 ]; then From 3cc76ae70e61334c85855f92dd8877eeeea899bd Mon Sep 17 00:00:00 2001 From: p0p3yee Date: Mon, 21 Oct 2024 13:54:54 -0400 Subject: [PATCH 15/30] Fix pep module unit tests failing --- x/pep/keeper/msg_submit_decryption_key_test.go | 2 +- x/pep/keeper/msg_submit_gen_enc_tx_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/x/pep/keeper/msg_submit_decryption_key_test.go b/x/pep/keeper/msg_submit_decryption_key_test.go index d965c58f..dde1588d 100644 --- a/x/pep/keeper/msg_submit_decryption_key_test.go +++ b/x/pep/keeper/msg_submit_decryption_key_test.go @@ -58,7 +58,7 @@ func TestSubmitDecryptionKey(t *testing.T) { Height: rand.Uint64(), Data: random.RandHex(192), }, - errMsg: "submission of external decryption key not permitted on source chain", + errMsg: "submission of external decryption keyshare not permitted on source chain", }, { desc: "SubmittedFromNotTrustedAddr", diff --git a/x/pep/keeper/msg_submit_gen_enc_tx_test.go b/x/pep/keeper/msg_submit_gen_enc_tx_test.go index fa763b9a..a555b1f7 100644 --- a/x/pep/keeper/msg_submit_gen_enc_tx_test.go +++ b/x/pep/keeper/msg_submit_gen_enc_tx_test.go @@ -40,7 +40,7 @@ func TestSubmitGeneralEncryptedTx(t *testing.T) { for _, tc := range []struct { desc string request *types.MsgSubmitGeneralEncryptedTx - response *types.MsgSubmitEncryptedTxResponse + response *types.MsgSubmitGeneralEncryptedTxResponse err error errMsg string }{ @@ -69,7 +69,7 @@ func TestSubmitGeneralEncryptedTx(t *testing.T) { ReqId: validIdentity, Data: random.RandHex(192), }, - response: &types.MsgSubmitEncryptedTxResponse{}, + response: &types.MsgSubmitGeneralEncryptedTxResponse{}, }, } { t.Run(tc.desc, func(t *testing.T) { From 1da4b78c3b84436290c96d8c06f4a08d81dc3e72 Mon Sep 17 00:00:00 2001 From: p0p3yee Date: Mon, 21 Oct 2024 13:57:38 -0400 Subject: [PATCH 16/30] Fix keyshare module unit test failing --- testutil/keeper/keyshare.go | 20 ++----------- x/keyshare/keeper/authorized_address_test.go | 6 ++-- x/keyshare/keeper/commitments_test.go | 8 +++--- .../keeper/decryption_key_request_test.go | 6 ++-- x/keyshare/keeper/decryption_key_test.go | 6 ++-- x/keyshare/keeper/general_keyshare_test.go | 6 ++-- x/keyshare/keeper/keyshare_test.go | 6 ++-- .../keeper/last_submitted_height_test.go | 2 +- .../keeper/msg_authorized_address_test.go | 6 ++-- x/keyshare/keeper/msg_create_pubkey_test.go | 6 ++-- .../keeper/msg_deregister_validator_test.go | 2 +- x/keyshare/keeper/msg_override_pubkey_test.go | 2 +- .../keeper/msg_register_validator_test.go | 28 +------------------ x/keyshare/keeper/msg_send_keyshare_test.go | 6 ++-- x/keyshare/keeper/msg_server_test.go | 2 +- .../msg_submit_encrypted_keyshare_test.go | 4 +-- .../msg_submit_general_keyshare_test.go | 8 +++--- x/keyshare/keeper/params_test.go | 2 +- x/keyshare/keeper/pub_key_test.go | 8 +++--- .../keeper/query_authorized_address_test.go | 6 ++-- x/keyshare/keeper/query_commitments_test.go | 2 +- .../keeper/query_decryption_key_test.go | 6 ++-- .../keeper/query_general_keyshare_test.go | 6 ++-- x/keyshare/keeper/query_keyshare_test.go | 6 ++-- x/keyshare/keeper/query_params_test.go | 2 +- x/keyshare/keeper/query_pub_key_test.go | 2 +- x/keyshare/keeper/query_validator_set_test.go | 6 ++-- .../query_verifiable_randomness_test.go | 2 +- x/keyshare/keeper/validator_set_test.go | 6 ++-- x/keyshare/module/genesis_test.go | 2 +- 30 files changed, 70 insertions(+), 110 deletions(-) diff --git a/testutil/keeper/keyshare.go b/testutil/keeper/keyshare.go index f384c632..d7dc133c 100644 --- a/testutil/keeper/keyshare.go +++ b/testutil/keeper/keyshare.go @@ -20,7 +20,6 @@ import ( bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" portkeeper "github.com/cosmos/ibc-go/v8/modules/core/05-port/keeper" @@ -39,7 +38,7 @@ var ( PKs = simtestutil.CreateTestPubKeys(500) ) -func KeyshareKeeper(t testing.TB) (keeper.Keeper, sdk.Context, pepkeeper.Keeper, *stakingkeeper.Keeper) { +func KeyshareKeeper(t testing.TB) (keeper.Keeper, sdk.Context, pepkeeper.Keeper) { storeKey := storetypes.NewKVStoreKey(types.StoreKey) pepStoreKey := storetypes.NewKVStoreKey(peptypes.StoreKey) stakingStoreKey := storetypes.NewKVStoreKey(stakingtypes.StoreKey) @@ -106,16 +105,6 @@ func KeyshareKeeper(t testing.TB) (keeper.Keeper, sdk.Context, pepkeeper.Keeper, nil, ) - stakingKeeper := stakingkeeper.NewKeeper( - appCodec, - runtime.NewKVStoreService(stakingStoreKey), - accountKeeper, - bankKeeper, - authority.String(), - address.NewBech32Codec("cosmosvaloper"), - address.NewBech32Codec("cosmosvalcons"), - ) - k := keeper.NewKeeper( appCodec, runtime.NewKVStoreService(storeKey), @@ -134,7 +123,7 @@ func KeyshareKeeper(t testing.TB) (keeper.Keeper, sdk.Context, pepkeeper.Keeper, nil, pepKeeper, nil, - stakingKeeper, + nil, nil, ) @@ -148,9 +137,6 @@ func KeyshareKeeper(t testing.TB) (keeper.Keeper, sdk.Context, pepkeeper.Keeper, if err := pepKeeper.SetParams(ctx, peptypes.DefaultParams()); err != nil { panic(err) } - if err := stakingKeeper.SetParams(ctx, stakingtypes.DefaultParams()); err != nil { - panic(err) - } - return k, ctx, pepKeeper, stakingKeeper + return k, ctx, pepKeeper } diff --git a/x/keyshare/keeper/authorized_address_test.go b/x/keyshare/keeper/authorized_address_test.go index 00cb13ec..1cc604ae 100644 --- a/x/keyshare/keeper/authorized_address_test.go +++ b/x/keyshare/keeper/authorized_address_test.go @@ -29,7 +29,7 @@ func createNAuthorizedAddress(keeper *keeper.Keeper, ctx sdk.Context, n int) []t } func TestAuthorizedAddressGet(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNAuthorizedAddress(&keeper, ctx, 10) for _, item := range items { rst, found := keeper.GetAuthorizedAddress(ctx, @@ -43,7 +43,7 @@ func TestAuthorizedAddressGet(t *testing.T) { } } func TestAuthorizedAddressRemove(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNAuthorizedAddress(&keeper, ctx, 10) for _, item := range items { keeper.RemoveAuthorizedAddress(ctx, @@ -57,7 +57,7 @@ func TestAuthorizedAddressRemove(t *testing.T) { } func TestAuthorizedAddressGetAll(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNAuthorizedAddress(&keeper, ctx, 10) require.ElementsMatch(t, nullify.Fill(items), diff --git a/x/keyshare/keeper/commitments_test.go b/x/keyshare/keeper/commitments_test.go index 70130534..0714a2b5 100644 --- a/x/keyshare/keeper/commitments_test.go +++ b/x/keyshare/keeper/commitments_test.go @@ -27,7 +27,7 @@ func createNCommitments(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.C } func TestActiveCommitmentsGet(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNCommitments(&keeper, ctx, 10) for _, item := range items { rst, found := keeper.GetActiveCommitments(ctx) @@ -40,7 +40,7 @@ func TestActiveCommitmentsGet(t *testing.T) { } func TestQueuedCommitmentsGet(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNCommitments(&keeper, ctx, 10) for _, item := range items { rst, found := keeper.GetQueuedCommitments(ctx) @@ -53,7 +53,7 @@ func TestQueuedCommitmentsGet(t *testing.T) { } func TestActiveCommitmentsRemove(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) createNCommitments(&keeper, ctx, 10) _, found := keeper.GetActiveCommitments(ctx) require.True(t, found) @@ -64,7 +64,7 @@ func TestActiveCommitmentsRemove(t *testing.T) { } func TestQueuedCommitmentsRemove(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) createNCommitments(&keeper, ctx, 10) _, found := keeper.GetQueuedCommitments(ctx) require.True(t, found) diff --git a/x/keyshare/keeper/decryption_key_request_test.go b/x/keyshare/keeper/decryption_key_request_test.go index d92ccf3d..8d7717a3 100644 --- a/x/keyshare/keeper/decryption_key_request_test.go +++ b/x/keyshare/keeper/decryption_key_request_test.go @@ -27,7 +27,7 @@ func createNDecryptionKeyRequests( } func TestDecryptionKeyRequestGet(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNDecryptionKeyRequests(&keeper, ctx, 10) for _, item := range items { rst, found := keeper.GetDecryptionKeyRequest(ctx, @@ -41,7 +41,7 @@ func TestDecryptionKeyRequestGet(t *testing.T) { } } func TestDecryptionKeyRequestRemove(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNDecryptionKeyRequests(&keeper, ctx, 10) for _, item := range items { keeper.RemoveDecryptionKeyRequest(ctx, @@ -55,7 +55,7 @@ func TestDecryptionKeyRequestRemove(t *testing.T) { } func TestDecryptionKeyRequestGetAll(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNDecryptionKeyRequests(&keeper, ctx, 10) require.ElementsMatch(t, nullify.Fill(items), diff --git a/x/keyshare/keeper/decryption_key_test.go b/x/keyshare/keeper/decryption_key_test.go index 3b444692..709cb956 100644 --- a/x/keyshare/keeper/decryption_key_test.go +++ b/x/keyshare/keeper/decryption_key_test.go @@ -27,7 +27,7 @@ func createNDecryptionKeys(keeper *keeper.Keeper, ctx sdk.Context, n int) []type } func TestDecryptionKeyGet(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNDecryptionKeys(&keeper, ctx, 10) for _, item := range items { rst, found := keeper.GetDecryptionKey(ctx, @@ -41,7 +41,7 @@ func TestDecryptionKeyGet(t *testing.T) { } } func TestDecryptionKeyRemove(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNDecryptionKeys(&keeper, ctx, 10) for _, item := range items { keeper.RemoveDecryptionKey(ctx, @@ -55,7 +55,7 @@ func TestDecryptionKeyRemove(t *testing.T) { } func TestDecryptionKeyGetAll(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNDecryptionKeys(&keeper, ctx, 10) require.ElementsMatch(t, nullify.Fill(items), diff --git a/x/keyshare/keeper/general_keyshare_test.go b/x/keyshare/keeper/general_keyshare_test.go index 4197553f..11fa3f51 100644 --- a/x/keyshare/keeper/general_keyshare_test.go +++ b/x/keyshare/keeper/general_keyshare_test.go @@ -28,7 +28,7 @@ func createNGeneralKeyshares(keeper *keeper.Keeper, ctx sdk.Context, n int) []ty } func TestGeneralKeyshareGet(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNGeneralKeyshares(&keeper, ctx, 10) for _, item := range items { rst, found := keeper.GetGeneralKeyshare(ctx, @@ -45,7 +45,7 @@ func TestGeneralKeyshareGet(t *testing.T) { } func TestGeneralKeysharesRemove(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNGeneralKeyshares(&keeper, ctx, 10) keeper.RemoveGeneralKeyshare(ctx, @@ -62,7 +62,7 @@ func TestGeneralKeysharesRemove(t *testing.T) { } func TestGeneralKeysharesGetAll(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNGeneralKeyshares(&keeper, ctx, 10) require.ElementsMatch(t, nullify.Fill(items), diff --git a/x/keyshare/keeper/keyshare_test.go b/x/keyshare/keeper/keyshare_test.go index 70859806..fdbc57e8 100644 --- a/x/keyshare/keeper/keyshare_test.go +++ b/x/keyshare/keeper/keyshare_test.go @@ -26,7 +26,7 @@ func createNKeyshares(keeper *keeper.Keeper, ctx sdk.Context, n int) []types.Key } func TestKeyshareGet(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNKeyshares(&keeper, ctx, 10) for _, item := range items { rst, found := keeper.GetKeyshare(ctx, @@ -42,7 +42,7 @@ func TestKeyshareGet(t *testing.T) { } func TestKeysharesRemove(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNKeyshares(&keeper, ctx, 10) keeper.RemoveKeyshare(ctx, @@ -57,7 +57,7 @@ func TestKeysharesRemove(t *testing.T) { } func TestKeysharesGetAll(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNKeyshares(&keeper, ctx, 10) require.ElementsMatch(t, nullify.Fill(items), diff --git a/x/keyshare/keeper/last_submitted_height_test.go b/x/keyshare/keeper/last_submitted_height_test.go index c26f41c4..801ab266 100644 --- a/x/keyshare/keeper/last_submitted_height_test.go +++ b/x/keyshare/keeper/last_submitted_height_test.go @@ -20,7 +20,7 @@ func createLastSubmittedHeight(keeper *keeper.Keeper, ctx sdk.Context) (string, } func TestLastSubmittedHeightGet(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) val, generatedHeight := createLastSubmittedHeight(&keeper, ctx) height := strconv.FormatUint(keeper.GetLastSubmittedHeight(ctx, val), 10) require.Equal(t, diff --git a/x/keyshare/keeper/msg_authorized_address_test.go b/x/keyshare/keeper/msg_authorized_address_test.go index e04e73f9..1401f70a 100644 --- a/x/keyshare/keeper/msg_authorized_address_test.go +++ b/x/keyshare/keeper/msg_authorized_address_test.go @@ -17,7 +17,7 @@ import ( var _ = strconv.IntSize func TestAuthorizedAddressMsgServerCreate(t *testing.T) { - k, ctx, _, _ := keepertest.KeyshareKeeper(t) + k, ctx, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) creator := sample.AccAddress() @@ -73,7 +73,7 @@ func TestAuthorizedAddressMsgServerUpdate(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - k, ctx, _, _ := keepertest.KeyshareKeeper(t) + k, ctx, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) @@ -135,7 +135,7 @@ func TestAuthorizedAddressMsgServerDelete(t *testing.T) { }, } { t.Run(tc.desc, func(t *testing.T) { - k, ctx, _, _ := keepertest.KeyshareKeeper(t) + k, ctx, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) diff --git a/x/keyshare/keeper/msg_create_pubkey_test.go b/x/keyshare/keeper/msg_create_pubkey_test.go index d9fbe0b5..2a54ca83 100644 --- a/x/keyshare/keeper/msg_create_pubkey_test.go +++ b/x/keyshare/keeper/msg_create_pubkey_test.go @@ -18,7 +18,7 @@ import ( var _ = strconv.IntSize func TestLatestPubkeyMsgServerCreate(t *testing.T) { - k, ctx, _, _ := keepertest.KeyshareKeeper(t) + k, ctx, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) @@ -37,7 +37,7 @@ func TestLatestPubkeyMsgServerCreate(t *testing.T) { Creator: creator, Expiry: 123456, NumberOfValidators: 1, - EncryptedKeyshares: out.KeyshareEncryptedKeyshares, + EncryptedKeyshares: out.KeyShareEncryptedKeyShares, }) for _, tc := range []struct { @@ -63,7 +63,7 @@ func TestLatestPubkeyMsgServerCreate(t *testing.T) { PublicKey: out.MasterPublicKey, Creator: creator, NumberOfValidators: 1, - EncryptedKeyshares: out.KeyshareEncryptedKeyshares, + EncryptedKeyshares: out.KeyShareEncryptedKeyShares, }, }, } { diff --git a/x/keyshare/keeper/msg_deregister_validator_test.go b/x/keyshare/keeper/msg_deregister_validator_test.go index f9e73940..7aff1102 100644 --- a/x/keyshare/keeper/msg_deregister_validator_test.go +++ b/x/keyshare/keeper/msg_deregister_validator_test.go @@ -11,7 +11,7 @@ import ( ) func TestDeRegisterValidatorMsgServer(t *testing.T) { - k, ctx, _, _ := keepertest.KeyshareKeeper(t) + k, ctx, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) creator := sample.AccAddress() diff --git a/x/keyshare/keeper/msg_override_pubkey_test.go b/x/keyshare/keeper/msg_override_pubkey_test.go index afadeea3..8d9b077f 100644 --- a/x/keyshare/keeper/msg_override_pubkey_test.go +++ b/x/keyshare/keeper/msg_override_pubkey_test.go @@ -18,7 +18,7 @@ import ( var _ = strconv.IntSize func TestOverrideLatestPubkeyMsgServer(t *testing.T) { - k, ctx, _, _ := keepertest.KeyshareKeeper(t) + k, ctx, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) diff --git a/x/keyshare/keeper/msg_register_validator_test.go b/x/keyshare/keeper/msg_register_validator_test.go index fd292e33..e3c1a3c5 100644 --- a/x/keyshare/keeper/msg_register_validator_test.go +++ b/x/keyshare/keeper/msg_register_validator_test.go @@ -11,7 +11,7 @@ import ( ) func TestRegisterValidatorMsgServer(t *testing.T) { - k, ctx, _, _ := keepertest.KeyshareKeeper(t) + k, ctx, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) creator := sample.AccAddress() @@ -36,19 +36,6 @@ func TestRegisterValidatorMsgServer(t *testing.T) { }, err: types.ErrValidatorAlreadyRegistered, }, - { - desc: "ValidatorNotStaking", - request: &types.MsgRegisterValidator{ - Creator: sample.AccAddress(), - }, - err: types.ErrAccountNotStaking, - }, - //{ - // desc: "SuccessfullyRegisteredAsValidator", - // request: &types.MsgRegisterValidator{ - // Creator: newValAddr.String(), - // }, - //}, } { t.Run(tc.desc, func(t *testing.T) { @@ -59,19 +46,6 @@ func TestRegisterValidatorMsgServer(t *testing.T) { } else { require.NoError(t, err) } - - //if tc.desc == "ValidatorNotStaking" { - // valAddr := sdk.ValAddress(keepertest.PKs[0].Address().Bytes()) - // val := stakingtestutil.NewValidator(t, valAddr, keepertest.PKs[0]) - // val.AddTokensFromDel(math.NewIntFromUint64(k.MinimumBonded(wctx) * 2)) - // val.Status = stakingtypes.Bonded - // - // err = stakingKeeper.SetValidator(wctx, val) - // require.NoError(t, err) - // out, err := stakingKeeper.GetValidator(wctx, valAddr) - // require.NoError(t, err) - // require.Equal(t, out.OperatorAddress, valAddr) - //} }) } } diff --git a/x/keyshare/keeper/msg_send_keyshare_test.go b/x/keyshare/keeper/msg_send_keyshare_test.go index b1370600..e0541d02 100644 --- a/x/keyshare/keeper/msg_send_keyshare_test.go +++ b/x/keyshare/keeper/msg_send_keyshare_test.go @@ -18,7 +18,7 @@ import ( var _ = strconv.IntSize func TestSendKeyshareMsgServerCreateAggregated(t *testing.T) { - k, ctx, _, _ := keepertest.KeyshareKeeper(t) + k, ctx, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) @@ -51,7 +51,7 @@ func TestSendKeyshareMsgServerCreateAggregated(t *testing.T) { } func TestSendKeyshareMsgServerCreateNotAggregated(t *testing.T) { - k, ctx, _, _ := keepertest.KeyshareKeeper(t) + k, ctx, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) @@ -84,7 +84,7 @@ func TestSendKeyshareMsgServerCreateNotAggregated(t *testing.T) { } func TestSendKeyshareMsgServerFailCases(t *testing.T) { - k, ctx, _, _ := keepertest.KeyshareKeeper(t) + k, ctx, _ := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) diff --git a/x/keyshare/keeper/msg_server_test.go b/x/keyshare/keeper/msg_server_test.go index 22df5e9a..4f0c1c31 100644 --- a/x/keyshare/keeper/msg_server_test.go +++ b/x/keyshare/keeper/msg_server_test.go @@ -12,7 +12,7 @@ import ( ) func setupMsgServer(t testing.TB) (keeper.Keeper, types.MsgServer, context.Context) { - k, ctx, _, _ := keepertest.KeyshareKeeper(t) + k, ctx, _ := keepertest.KeyshareKeeper(t) return k, keeper.NewMsgServerImpl(k), ctx } diff --git a/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go b/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go index 46b76eb5..2d0b76a9 100644 --- a/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go +++ b/x/keyshare/keeper/msg_submit_encrypted_keyshare_test.go @@ -23,7 +23,7 @@ var _ = strconv.IntSize const SECP_PUBKEY_1 = "A/MdHVpitzHNSdD1Zw3kY+L5PEIPyd9l6sD5i4aIfXp9" func TestEncryptedKeyshareMsgServerCreate(t *testing.T) { - k, ctx, pk, _ := keepertest.KeyshareKeeper(t) + k, ctx, pk := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) @@ -84,7 +84,7 @@ func TestEncryptedKeyshareMsgServerCreate(t *testing.T) { } func TestEncryptedKeyshareMsgServerFailCases(t *testing.T) { - k, ctx, pk, _ := keepertest.KeyshareKeeper(t) + k, ctx, pk := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) diff --git a/x/keyshare/keeper/msg_submit_general_keyshare_test.go b/x/keyshare/keeper/msg_submit_general_keyshare_test.go index de038e93..32fbe273 100644 --- a/x/keyshare/keeper/msg_submit_general_keyshare_test.go +++ b/x/keyshare/keeper/msg_submit_general_keyshare_test.go @@ -37,7 +37,7 @@ func SetupTestGeneralKeyshare(t *testing.T, ctx sdk.Context, k keeper.Keeper, nu Creator: creator, Expiry: 123456, NumberOfValidators: pubkeyNumberOfValidator, - EncryptedKeyshares: out.KeyshareEncryptedKeyshares, + EncryptedKeyshares: out.KeyShareEncryptedKeyShares, }) k.SetActiveCommitments(ctx, types.Commitments{ @@ -48,7 +48,7 @@ func SetupTestGeneralKeyshare(t *testing.T, ctx sdk.Context, k keeper.Keeper, nu } func TestSubmitGeneralKeyshareAggregated(t *testing.T) { - k, ctx, pk, _ := keepertest.KeyshareKeeper(t) + k, ctx, pk := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) @@ -106,7 +106,7 @@ func TestSubmitGeneralKeyshareAggregated(t *testing.T) { } func TestSubmitGeneralKeyshareNotAggregated(t *testing.T) { - k, ctx, pk, _ := keepertest.KeyshareKeeper(t) + k, ctx, pk := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) @@ -164,7 +164,7 @@ func TestSubmitGeneralKeyshareNotAggregated(t *testing.T) { } func TestGeneralKeyshareMsgServerFailCases(t *testing.T) { - k, ctx, pk, _ := keepertest.KeyshareKeeper(t) + k, ctx, pk := keepertest.KeyshareKeeper(t) srv := keeper.NewMsgServerImpl(k) wctx := sdk.UnwrapSDKContext(ctx) diff --git a/x/keyshare/keeper/params_test.go b/x/keyshare/keeper/params_test.go index 9e178272..24f1fb72 100644 --- a/x/keyshare/keeper/params_test.go +++ b/x/keyshare/keeper/params_test.go @@ -10,7 +10,7 @@ import ( ) func TestGetParams(t *testing.T) { - k, ctx, _, _ := keepertest.KeyshareKeeper(t) + k, ctx, _ := keepertest.KeyshareKeeper(t) params := types.DefaultParams() require.NoError(t, k.SetParams(ctx, params)) diff --git a/x/keyshare/keeper/pub_key_test.go b/x/keyshare/keeper/pub_key_test.go index 6e5f696e..aba5dd2c 100644 --- a/x/keyshare/keeper/pub_key_test.go +++ b/x/keyshare/keeper/pub_key_test.go @@ -33,7 +33,7 @@ func createQueuedPubkeys(keeper *keeper.Keeper, ctx sdk.Context) types.QueuedPub } func TestActivePubkeyGet(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) item := createActivePubkeys(&keeper, ctx) rst, found := keeper.GetActivePubkey(ctx) require.True(t, found) @@ -44,7 +44,7 @@ func TestActivePubkeyGet(t *testing.T) { } func TestQueuedPubkeyGet(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) item := createQueuedPubkeys(&keeper, ctx) rst, found := keeper.GetQueuedPubkey(ctx) require.True(t, found) @@ -55,7 +55,7 @@ func TestQueuedPubkeyGet(t *testing.T) { } func TestActivePubkeyRemoved(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) createActivePubkeys(&keeper, ctx) keeper.DeleteActivePubkey(ctx) _, found := keeper.GetActivePubkey(ctx) @@ -63,7 +63,7 @@ func TestActivePubkeyRemoved(t *testing.T) { } func TestQueuedPubkeyRemoved(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) createQueuedPubkeys(&keeper, ctx) keeper.DeleteQueuedPubkey(ctx) _, found := keeper.GetQueuedPubkey(ctx) diff --git a/x/keyshare/keeper/query_authorized_address_test.go b/x/keyshare/keeper/query_authorized_address_test.go index f3d763a8..11266a6f 100644 --- a/x/keyshare/keeper/query_authorized_address_test.go +++ b/x/keyshare/keeper/query_authorized_address_test.go @@ -19,7 +19,7 @@ import ( var _ = strconv.IntSize func TestAuthorizedAddressQuerySingle(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNAuthorizedAddress(&keeper, ctx, 2) for _, tc := range []struct { @@ -70,7 +70,7 @@ func TestAuthorizedAddressQuerySingle(t *testing.T) { } func TestAuthorizedAddressQueryAllNoPagination(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNAuthorizedAddress(&keeper, ctx, 12) for _, tc := range []struct { @@ -115,7 +115,7 @@ func TestAuthorizedAddressQueryAllNoPagination(t *testing.T) { } func TestAuthorizedAddressQueryPaginated(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNAuthorizedAddress(&keeper, ctx, 5) diff --git a/x/keyshare/keeper/query_commitments_test.go b/x/keyshare/keeper/query_commitments_test.go index ae3e3ddd..9360e304 100644 --- a/x/keyshare/keeper/query_commitments_test.go +++ b/x/keyshare/keeper/query_commitments_test.go @@ -15,7 +15,7 @@ import ( var _ = strconv.IntSize func TestCommitmentsQuery(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNCommitments(&keeper, ctx, 1) for _, tc := range []struct { diff --git a/x/keyshare/keeper/query_decryption_key_test.go b/x/keyshare/keeper/query_decryption_key_test.go index 3b9d3c67..f2e96d53 100644 --- a/x/keyshare/keeper/query_decryption_key_test.go +++ b/x/keyshare/keeper/query_decryption_key_test.go @@ -19,7 +19,7 @@ import ( var _ = strconv.IntSize func TestDecryptionKeyQuerySingle(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNDecryptionKeys(&keeper, ctx, 2) for _, tc := range []struct { @@ -70,7 +70,7 @@ func TestDecryptionKeyQuerySingle(t *testing.T) { } func TestDecryptionKeyQueryAllNoPagination(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNDecryptionKeys(&keeper, ctx, 10) for _, tc := range []struct { @@ -115,7 +115,7 @@ func TestDecryptionKeyQueryAllNoPagination(t *testing.T) { } func TestDecryptionKeyQueryPaginated(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNDecryptionKeys(&keeper, ctx, 5) diff --git a/x/keyshare/keeper/query_general_keyshare_test.go b/x/keyshare/keeper/query_general_keyshare_test.go index ad7a2c09..81527ba6 100644 --- a/x/keyshare/keeper/query_general_keyshare_test.go +++ b/x/keyshare/keeper/query_general_keyshare_test.go @@ -19,7 +19,7 @@ import ( var _ = strconv.IntSize func TestGeneralKeyShareQuerySingle(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNGeneralKeyshares(&keeper, ctx, 2) for _, tc := range []struct { @@ -76,7 +76,7 @@ func TestGeneralKeyShareQuerySingle(t *testing.T) { } func TestGeneralKeyShareQueryAllNoPagination(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNGeneralKeyshares(&keeper, ctx, 10) for _, tc := range []struct { @@ -121,7 +121,7 @@ func TestGeneralKeyShareQueryAllNoPagination(t *testing.T) { } func TestGeneralKeyShareQueryPaginated(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNGeneralKeyshares(&keeper, ctx, 5) diff --git a/x/keyshare/keeper/query_keyshare_test.go b/x/keyshare/keeper/query_keyshare_test.go index 5e212bc1..8753b3d5 100644 --- a/x/keyshare/keeper/query_keyshare_test.go +++ b/x/keyshare/keeper/query_keyshare_test.go @@ -22,7 +22,7 @@ import ( var _ = strconv.IntSize func TestKeyShareQuerySingle(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNKeyshares(&keeper, ctx, 2) for _, tc := range []struct { @@ -76,7 +76,7 @@ func TestKeyShareQuerySingle(t *testing.T) { } func TestKeyShareQueryAllNoPagination(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNKeyshares(&keeper, ctx, 10) for _, tc := range []struct { @@ -121,7 +121,7 @@ func TestKeyShareQueryAllNoPagination(t *testing.T) { } func TestKeyShareQueryPaginated(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNKeyshares(&keeper, ctx, 5) diff --git a/x/keyshare/keeper/query_params_test.go b/x/keyshare/keeper/query_params_test.go index acf4b284..e2442990 100644 --- a/x/keyshare/keeper/query_params_test.go +++ b/x/keyshare/keeper/query_params_test.go @@ -12,7 +12,7 @@ import ( ) func TestParamsQuery(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) params := types.DefaultParams() keeper.SetParams(ctx, params) diff --git a/x/keyshare/keeper/query_pub_key_test.go b/x/keyshare/keeper/query_pub_key_test.go index 68c18e2c..04ea479e 100644 --- a/x/keyshare/keeper/query_pub_key_test.go +++ b/x/keyshare/keeper/query_pub_key_test.go @@ -13,7 +13,7 @@ import ( ) func TestPubkeyQuery(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) activePubkey := createActivePubkeys(&keeper, wctx) queuedPubkey := createQueuedPubkeys(&keeper, wctx) diff --git a/x/keyshare/keeper/query_validator_set_test.go b/x/keyshare/keeper/query_validator_set_test.go index 0af1a48c..baa27592 100644 --- a/x/keyshare/keeper/query_validator_set_test.go +++ b/x/keyshare/keeper/query_validator_set_test.go @@ -21,7 +21,7 @@ import ( var _ = strconv.IntSize func TestValidatorSetQuerySingle(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNValidatorSet(&keeper, ctx, 2) for _, tc := range []struct { @@ -72,7 +72,7 @@ func TestValidatorSetQuerySingle(t *testing.T) { } func TestValidatorSetQueryAllNoPagination(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNValidatorSet(&keeper, ctx, 10) for _, tc := range []struct { @@ -117,7 +117,7 @@ func TestValidatorSetQueryAllNoPagination(t *testing.T) { } func TestValidatorSetQueryPaginated(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNValidatorSet(&keeper, ctx, 5) diff --git a/x/keyshare/keeper/query_verifiable_randomness_test.go b/x/keyshare/keeper/query_verifiable_randomness_test.go index f32a0e6e..0b4aa839 100644 --- a/x/keyshare/keeper/query_verifiable_randomness_test.go +++ b/x/keyshare/keeper/query_verifiable_randomness_test.go @@ -17,7 +17,7 @@ import ( ) func TestVerifiableRandomnessQuery(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) for _, tc := range []struct { diff --git a/x/keyshare/keeper/validator_set_test.go b/x/keyshare/keeper/validator_set_test.go index 16c8d44a..3f1f4057 100644 --- a/x/keyshare/keeper/validator_set_test.go +++ b/x/keyshare/keeper/validator_set_test.go @@ -26,7 +26,7 @@ func createNValidatorSet(keeper *keeper.Keeper, ctx sdk.Context, n int) []types. } func TestValidatorSetGet(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNValidatorSet(&keeper, ctx, 10) for _, item := range items { rst, found := keeper.GetValidatorSet(ctx, @@ -41,7 +41,7 @@ func TestValidatorSetGet(t *testing.T) { } func TestValidatorSetRemove(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNValidatorSet(&keeper, ctx, 10) keeper.RemoveValidatorSet(ctx, @@ -54,7 +54,7 @@ func TestValidatorSetRemove(t *testing.T) { } func TestValidatorSetGetAll(t *testing.T) { - keeper, ctx, _, _ := keepertest.KeyshareKeeper(t) + keeper, ctx, _ := keepertest.KeyshareKeeper(t) items := createNValidatorSet(&keeper, ctx, 10) require.ElementsMatch(t, nullify.Fill(items), diff --git a/x/keyshare/module/genesis_test.go b/x/keyshare/module/genesis_test.go index 5785060e..fa077da2 100644 --- a/x/keyshare/module/genesis_test.go +++ b/x/keyshare/module/genesis_test.go @@ -26,7 +26,7 @@ func TestGenesis(t *testing.T) { // this line is used by starport scaffolding # genesis/test/state } - k, ctx, _, _ := keepertest.KeyshareKeeper(t) + k, ctx, _ := keepertest.KeyshareKeeper(t) keyshare.InitGenesis(ctx, k, genesisState) got := keyshare.ExportGenesis(ctx, k) require.NotNil(t, got) From 4a3c8903c3d545e99dbbc09c3c71aa0ed0604b19 Mon Sep 17 00:00:00 2001 From: p0p3yee Date: Mon, 21 Oct 2024 14:00:15 -0400 Subject: [PATCH 17/30] Fix query all keyshare request unit tests failing --- x/keyshare/keeper/query_keyshare.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/keyshare/keeper/query_keyshare.go b/x/keyshare/keeper/query_keyshare.go index 37d219f5..4bc2bcee 100644 --- a/x/keyshare/keeper/query_keyshare.go +++ b/x/keyshare/keeper/query_keyshare.go @@ -28,7 +28,7 @@ func (k Keeper) KeyshareAll( storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, []byte{}) - keyShareStore := prefix.NewStore(store, types.KeyPrefix(types.DecryptionKeyKeyPrefix)) + keyShareStore := prefix.NewStore(store, types.KeyPrefix(types.KeyshareKeyPrefix)) pageRes, err := query.Paginate(keyShareStore, req.Pagination, func(key []byte, value []byte) error { var keyShare types.Keyshare From b0f1df2b3d0501ec4b4691757d5ce8c254dc92fd Mon Sep 17 00:00:00 2001 From: p0p3yee Date: Mon, 21 Oct 2024 14:07:46 -0400 Subject: [PATCH 18/30] Fix keyshare module test script failing --- scripts/tests/keyshare.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/tests/keyshare.sh b/scripts/tests/keyshare.sh index 78a87569..e102bbe3 100755 --- a/scripts/tests/keyshare.sh +++ b/scripts/tests/keyshare.sh @@ -262,9 +262,9 @@ fi echo "Query submitted key share on chain fairyring_test_1" RESULT=$($BINARY query keyshare list-keyshares --node tcp://localhost:16657 -o json) -RESULT_SENDER=$(echo "$RESULT" | jq -r '.keyShare[0].validator') -RESULT_KEYSHARE=$(echo "$RESULT" | jq -r '.keyShare[0].keyShare') -RESULT_HEIGHT=$(echo "$RESULT" | jq -r '.keyShare[0].blockHeight') +RESULT_SENDER=$(echo "$RESULT" | jq -r '.keyshare[0].validator') +RESULT_KEYSHARE=$(echo "$RESULT" | jq -r '.keyshare[0].keyshare') +RESULT_HEIGHT=$(echo "$RESULT" | jq -r '.keyshare[0].blockHeight') if [ "$RESULT_SENDER" != "$VALIDATOR_1" ] && [ "$RESULT_KEYSHARE" != "$EXTRACTED_SHARE" ] && [ "$RESULT_HEIGHT" != "$TARGET_HEIGHT" ]; then echo "ERROR: KeyShare module query submitted key share error, Expected to get the submitted key share, got '$RESULT'" echo $RESULT | jq @@ -275,8 +275,8 @@ echo "Key Share Successfully submitted: '$RESULT_KEYSHARE' for height '$RESULT_H echo "Query aggregated key share on chain fairyring_test_1" RESULT=$($BINARY query keyshare list-decryption-keys --node tcp://localhost:16657 -o json) -RESULT_HEIGHT=$(echo "$RESULT" | jq -r '.aggregatedKeyShare[0].height') -RESULT_DATA=$(echo "$RESULT" | jq -r '.aggregatedKeyShare[0].data') +RESULT_HEIGHT=$(echo "$RESULT" | jq -r '.decryption_keys[0].height') +RESULT_DATA=$(echo "$RESULT" | jq -r '.decryption_keys[0].data') if [ "$RESULT_HEIGHT" != "$TARGET_HEIGHT" ]; then echo "ERROR: KeyShare module aggregate key share error. Expected to get an aggregated key, got '$RESULT'" echo $RESULT | jq From 32c97d33209121340cba31c4880ee7a35829dc04 Mon Sep 17 00:00:00 2001 From: p0p3yee Date: Mon, 21 Oct 2024 18:15:51 -0400 Subject: [PATCH 19/30] Update stop.sh script to kill all process properly --- scripts/tests/stop.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/tests/stop.sh b/scripts/tests/stop.sh index 4803218a..e9cf7edb 100755 --- a/scripts/tests/stop.sh +++ b/scripts/tests/stop.sh @@ -6,3 +6,6 @@ if pgrep -x "$BINARY" >/dev/null; then echo "Terminating $BINARY..." killall $BINARY fi + +pkill -f keyshareSender +pkill -f hermes \ No newline at end of file From 2b3f0b7b86fb1123f59833d095991ebc8c75df35 Mon Sep 17 00:00:00 2001 From: bowenyou Date: Mon, 21 Oct 2024 18:46:32 -0400 Subject: [PATCH 20/30] . --- x/keyshare/client/cli/tx.go | 2 +- x/keyshare/client/cli/tx_general_key_share.go | 18 ++++----- x/keyshare/keeper/general_keyshare.go | 15 ++++---- x/keyshare/keeper/msg_create_pubkey.go | 6 +-- x/keyshare/keeper/msg_create_pubkey_test.go | 4 +- x/keyshare/keeper/msg_override_pubkey_test.go | 3 +- x/keyshare/keeper/msg_send_keyshare.go | 6 +-- .../keeper/msg_submit_general_keyshare.go | 37 +++++++++---------- .../msg_submit_general_keyshare_test.go | 2 +- .../keeper/query_general_keyshare_test.go | 8 ++-- x/keyshare/keeper/query_keyshare_test.go | 8 ++-- x/keyshare/module/autocli.go | 4 +- 12 files changed, 55 insertions(+), 58 deletions(-) diff --git a/x/keyshare/client/cli/tx.go b/x/keyshare/client/cli/tx.go index 86fc29f5..307ce7d3 100644 --- a/x/keyshare/client/cli/tx.go +++ b/x/keyshare/client/cli/tx.go @@ -34,7 +34,7 @@ func GetTxCmd() *cobra.Command { cmd.AddCommand(CmdDeleteAuthorizedAddress()) cmd.AddCommand(CmdSubmitGeneralKeyshare()) cmd.AddCommand(CmdOverrideLatestPubkey()) - cmd.AddCommand(CmdSubmitEncryptedKeyShare()) + cmd.AddCommand(CmdSubmitEncryptedKeyshare()) // this line is used by starport scaffolding # 1 return cmd diff --git a/x/keyshare/client/cli/tx_general_key_share.go b/x/keyshare/client/cli/tx_general_key_share.go index 75270a79..48b911e9 100644 --- a/x/keyshare/client/cli/tx_general_key_share.go +++ b/x/keyshare/client/cli/tx_general_key_share.go @@ -12,7 +12,7 @@ import ( func CmdSubmitGeneralKeyshare() *cobra.Command { cmd := &cobra.Command{ Use: "submit-general-keyshare [id-type] [id-value] [keyshare] [keyshare-index]", - Short: "submit a new GeneralKeyShare", + Short: "submit a new GeneralKeyshare", Args: cobra.ExactArgs(4), RunE: func(cmd *cobra.Command, args []string) (err error) { // Get indexes @@ -20,8 +20,8 @@ func CmdSubmitGeneralKeyshare() *cobra.Command { indexIdValue := args[1] // Get value arguments - argKeyShare := args[2] - argKeyShareIndex, err := cast.ToUint64E(args[3]) + argKeyshare := args[2] + argKeyshareIndex, err := cast.ToUint64E(args[3]) if err != nil { return err } @@ -35,8 +35,8 @@ func CmdSubmitGeneralKeyshare() *cobra.Command { clientCtx.GetFromAddress().String(), indexIdType, indexIdValue, - argKeyShare, - argKeyShareIndex, + argKeyshare, + argKeyshareIndex, ) if err := msg.ValidateBasic(); err != nil { @@ -51,17 +51,17 @@ func CmdSubmitGeneralKeyshare() *cobra.Command { return cmd } -func CmdSubmitEncryptedKeyShare() *cobra.Command { +func CmdSubmitEncryptedKeyshare() *cobra.Command { cmd := &cobra.Command{ Use: "submit-encrypted-keyshare [identity] [requester] [encrypted-keyshare] [keyshare-index]", - Short: "Submit a new EncryptedKeyShare", + Short: "Submit a new EncryptedKeyshare", Args: cobra.ExactArgs(4), RunE: func(cmd *cobra.Command, args []string) (err error) { // Get indexes identity := args[0] requester := args[1] encKeyshare := args[2] - argKeyShareIndex, err := cast.ToUint64E(args[3]) + argKeyshareIndex, err := cast.ToUint64E(args[3]) if err != nil { return err } @@ -76,7 +76,7 @@ func CmdSubmitEncryptedKeyShare() *cobra.Command { identity, requester, encKeyshare, - argKeyShareIndex, + argKeyshareIndex, ) if err := msg.ValidateBasic(); err != nil { diff --git a/x/keyshare/keeper/general_keyshare.go b/x/keyshare/keeper/general_keyshare.go index 446cade2..1911839b 100644 --- a/x/keyshare/keeper/general_keyshare.go +++ b/x/keyshare/keeper/general_keyshare.go @@ -9,7 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/runtime" ) -// SetGeneralKeyshare set a specific generalKeyShare in the store from its index +// SetGeneralKeyshare set a specific generalKeyshare in the store from its index func (k Keeper) SetGeneralKeyshare(ctx context.Context, generalKeyshare types.GeneralKeyshare) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GeneralKeyshareKeyPrefix)) @@ -22,7 +22,7 @@ func (k Keeper) SetGeneralKeyshare(ctx context.Context, generalKeyshare types.Ge ), b) } -// GetGeneralKeyshare returns a generalKeyShare from its index +// GetGeneralKeyshare returns a generalKeyshare from its index func (k Keeper) GetGeneralKeyshare( ctx context.Context, validator string, @@ -51,7 +51,6 @@ func (k Keeper) RemoveGeneralKeyshare( validator string, idType string, idValue string, - ) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.GeneralKeyshareKeyPrefix)) @@ -80,15 +79,15 @@ func (k Keeper) GetAllGeneralKeyshare(ctx context.Context) (list []types.General } // SetPrivateKeyshare set a specific private Keyshare in the store from its index -func (k Keeper) SetPrivateKeyshare(ctx context.Context, encKeyShare types.ValidatorEncryptedKeyshare) { +func (k Keeper) SetPrivateKeyshare(ctx context.Context, encKeyshare types.ValidatorEncryptedKeyshare) { storeAdapter := runtime.KVStoreAdapter(k.storeService.OpenKVStore(ctx)) store := prefix.NewStore(storeAdapter, types.KeyPrefix(types.PrivateKeyshareKeyPrefix)) - b := k.cdc.MustMarshal(&encKeyShare) + b := k.cdc.MustMarshal(&encKeyshare) store.Set(types.PrivateKeyshareKey( - encKeyShare.Validator, - encKeyShare.Identity, - encKeyShare.Requester, + encKeyshare.Validator, + encKeyshare.Identity, + encKeyshare.Requester, ), b) } diff --git a/x/keyshare/keeper/msg_create_pubkey.go b/x/keyshare/keeper/msg_create_pubkey.go index 9d8758df..16852914 100644 --- a/x/keyshare/keeper/msg_create_pubkey.go +++ b/x/keyshare/keeper/msg_create_pubkey.go @@ -40,7 +40,7 @@ func (k msgServer) CreateLatestPubkey( expHeight = ak.Expiry + params.KeyExpiry } - var queuedPubkey = types.QueuedPubkey{ + queuedPubkey := types.QueuedPubkey{ Creator: msg.Creator, PublicKey: msg.PublicKey, Expiry: expHeight, @@ -48,7 +48,7 @@ func (k msgServer) CreateLatestPubkey( EncryptedKeyshares: msg.EncryptedKeyshares, } - encryptedKeyShares, err := json.Marshal(msg.EncryptedKeyshares) + encryptedKeyshares, err := json.Marshal(msg.EncryptedKeyshares) if err != nil { return nil, err } @@ -79,7 +79,7 @@ func (k msgServer) CreateLatestPubkey( sdk.NewAttribute(types.QueuedPubkeyCreatedEventCreator, msg.Creator), sdk.NewAttribute(types.QueuedPubkeyCreatedEventPubkey, msg.PublicKey), sdk.NewAttribute(types.QueuedPubkeyCreatedEventNumberOfValidators, strconv.FormatUint(msg.NumberOfValidators, 10)), - sdk.NewAttribute(types.QueuedPubkeyCreatedEventEncryptedShares, string(encryptedKeyShares)), + sdk.NewAttribute(types.QueuedPubkeyCreatedEventEncryptedShares, string(encryptedKeyshares)), ), ) diff --git a/x/keyshare/keeper/msg_create_pubkey_test.go b/x/keyshare/keeper/msg_create_pubkey_test.go index 2a54ca83..2d109cce 100644 --- a/x/keyshare/keeper/msg_create_pubkey_test.go +++ b/x/keyshare/keeper/msg_create_pubkey_test.go @@ -37,7 +37,7 @@ func TestLatestPubkeyMsgServerCreate(t *testing.T) { Creator: creator, Expiry: 123456, NumberOfValidators: 1, - EncryptedKeyshares: out.KeyShareEncryptedKeyShares, + EncryptedKeyshares: out.KeyshareEncryptedKeyshares, }) for _, tc := range []struct { @@ -63,7 +63,7 @@ func TestLatestPubkeyMsgServerCreate(t *testing.T) { PublicKey: out.MasterPublicKey, Creator: creator, NumberOfValidators: 1, - EncryptedKeyshares: out.KeyShareEncryptedKeyShares, + EncryptedKeyshares: out.KeyshareEncryptedKeyshares, }, }, } { diff --git a/x/keyshare/keeper/msg_override_pubkey_test.go b/x/keyshare/keeper/msg_override_pubkey_test.go index 8d9b077f..994a5978 100644 --- a/x/keyshare/keeper/msg_override_pubkey_test.go +++ b/x/keyshare/keeper/msg_override_pubkey_test.go @@ -49,12 +49,11 @@ func TestOverrideLatestPubkeyMsgServer(t *testing.T) { Creator: creator, Commitments: out.Commitments, NumberOfValidators: 1, - EncryptedKeyshares: out.KeyShareEncryptedKeyShares, + EncryptedKeyshares: out.KeyshareEncryptedKeyshares, }, }, } { t.Run(tc.desc, func(t *testing.T) { - _, err := srv.OverrideLatestPubkey(wctx, tc.request) if tc.err != nil { diff --git a/x/keyshare/keeper/msg_send_keyshare.go b/x/keyshare/keeper/msg_send_keyshare.go index 284da3e3..c02b3420 100644 --- a/x/keyshare/keeper/msg_send_keyshare.go +++ b/x/keyshare/keeper/msg_send_keyshare.go @@ -72,7 +72,7 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar if err != nil { defer telemetry.IncrCounter(1, types.KeyTotalInvalidKeyshareSubmitted) k.Logger().Error(fmt.Sprintf("Error in parsing & verifying keyshare & commitment: %s", err.Error())) - k.Logger().Error(fmt.Sprintf("KeyShare is: %v | Commitment is: %v | Index: %d", msg.Message, commitments.Commitments, msg.KeyshareIndex)) + k.Logger().Error(fmt.Sprintf("Keyshare is: %v | Commitment is: %v | Index: %d", msg.Message, commitments.Commitments, msg.KeyshareIndex)) // Invalid Share, slash validator var consAddr sdk.ConsAddress @@ -100,7 +100,7 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar ReceivedBlockHeight: uint64(ctx.BlockHeight()), BlockHeight: msg.BlockHeight, Success: false, - ErrorMessage: "Invalid KeyShare", + ErrorMessage: "Invalid Keyshare", }, nil } @@ -143,7 +143,7 @@ func (k msgServer) SendKeyshare(goCtx context.Context, msg *types.MsgSendKeyshar math.LegacyNewDecFromInt(math.NewInt(types.KeyAggregationThresholdDenominator))).MulInt64( int64(activePubkey.NumberOfValidators)).Ceil().TruncateInt64() - // Emit KeyShare Submitted Event + // Emit Keyshare Submitted Event ctx.EventManager().EmitEvent( sdk.NewEvent(types.SendKeyshareEventType, sdk.NewAttribute(types.SendKeyshareEventValidator, msg.Creator), diff --git a/x/keyshare/keeper/msg_submit_general_keyshare.go b/x/keyshare/keeper/msg_submit_general_keyshare.go index c81d6aed..81dae32c 100644 --- a/x/keyshare/keeper/msg_submit_general_keyshare.go +++ b/x/keyshare/keeper/msg_submit_general_keyshare.go @@ -65,11 +65,11 @@ func (k msgServer) SubmitGeneralKeyshare( switch msg.IdType { case PrivateGovIdentity: - keyShareReq, found := k.GetDecryptionKeyRequest(ctx, msg.IdValue) + keyshareReq, found := k.GetDecryptionKeyRequest(ctx, msg.IdValue) if !found { return nil, types.ErrKeyshareRequestNotFound.Wrapf(", got id value: %s", msg.IdValue) } - if keyShareReq.DecryptionKey != "" { + if keyshareReq.DecryptionKey != "" { return &types.MsgSubmitGeneralKeyshareResponse{ Creator: msg.Creator, IdType: msg.IdType, @@ -99,7 +99,7 @@ func (k msgServer) SubmitGeneralKeyshare( _, _, err := parseKeyshareCommitment(suite, msg.Keyshare, commitments.Commitments[msg.KeyshareIndex-1], uint32(msg.KeyshareIndex), msg.IdValue) if err != nil { k.Logger().Error(fmt.Sprintf("Error in parsing & verifying general keyshare & commitment: %s", err.Error())) - k.Logger().Error(fmt.Sprintf("General KeyShare is: %v | Commitment is: %v | Index: %d", msg.Keyshare, commitments.Commitments, msg.KeyshareIndex)) + k.Logger().Error(fmt.Sprintf("General Keyshare is: %v | Commitment is: %v | Index: %d", msg.Keyshare, commitments.Commitments, msg.KeyshareIndex)) // Invalid Share, slash validator var consAddr sdk.ConsAddress @@ -128,11 +128,11 @@ func (k msgServer) SubmitGeneralKeyshare( KeyshareIndex: msg.KeyshareIndex, ReceivedBlockHeight: uint64(ctx.BlockHeight()), Success: false, - ErrorMessage: "Invalid General KeyShare", + ErrorMessage: "Invalid General Keyshare", }, nil } - generalKeyShare := types.GeneralKeyshare{ + generalKeyshare := types.GeneralKeyshare{ Validator: msg.Creator, IdType: msg.IdType, IdValue: msg.IdValue, @@ -143,16 +143,16 @@ func (k msgServer) SubmitGeneralKeyshare( } // Save the new general key share to state - k.SetGeneralKeyshare(ctx, generalKeyShare) + k.SetGeneralKeyshare(ctx, generalKeyshare) k.SetLastSubmittedHeight(ctx, msg.Creator, strconv.FormatInt(ctx.BlockHeight(), 10)) validatorList := k.GetAllValidatorSet(ctx) // Get all the general key shares for the provided id value & id type - var stateGeneralKeyShares []types.GeneralKeyshare + var stateGeneralKeyshares []types.GeneralKeyshare for _, eachValidator := range validatorList { - eachGeneralKeyShare, found := k.GetGeneralKeyshare( + eachGeneralKeyshare, found := k.GetGeneralKeyshare( ctx, eachValidator.Validator, msg.IdType, @@ -161,7 +161,7 @@ func (k msgServer) SubmitGeneralKeyshare( if !found { continue } - stateGeneralKeyShares = append(stateGeneralKeyShares, eachGeneralKeyShare) + stateGeneralKeyshares = append(stateGeneralKeyshares, eachGeneralKeyshare) } // Get the active public key for aggregating @@ -176,7 +176,7 @@ func (k msgServer) SubmitGeneralKeyshare( math.LegacyNewDecFromInt(math.NewInt(types.KeyAggregationThresholdDenominator))).MulInt64( int64(activePubkey.NumberOfValidators)).Ceil().TruncateInt64() - // Emit KeyShare Submitted Event + // Emit Keyshare Submitted Event ctx.EventManager().EmitEvent( sdk.NewEvent(types.SendGeneralKeyshareEventType, sdk.NewAttribute(types.SendGeneralKeyshareEventValidator, msg.Creator), @@ -190,7 +190,7 @@ func (k msgServer) SubmitGeneralKeyshare( // If there is not enough keyshares to aggregate OR there is already an aggregated key // Only continue the code if there is enough keyshare to aggregate & no aggregated key for current height - if int64(len(stateGeneralKeyShares)) < expectedThreshold { + if int64(len(stateGeneralKeyshares)) < expectedThreshold { return &types.MsgSubmitGeneralKeyshareResponse{ Creator: msg.Creator, IdType: msg.IdType, @@ -205,12 +205,12 @@ func (k msgServer) SubmitGeneralKeyshare( // Check if target general keyshare already aggregated a key switch msg.IdType { case PrivateGovIdentity: - keyShareReq, found := k.GetDecryptionKeyRequest(ctx, msg.IdValue) + keyshareReq, found := k.GetDecryptionKeyRequest(ctx, msg.IdValue) if !found { return nil, types.ErrKeyshareRequestNotFound.Wrapf(", got id value: %s", msg.IdValue) } - if keyShareReq.DecryptionKey != "" { + if keyshareReq.DecryptionKey != "" { return &types.MsgSubmitGeneralKeyshareResponse{ Creator: msg.Creator, IdType: msg.IdType, @@ -227,12 +227,12 @@ func (k msgServer) SubmitGeneralKeyshare( var listOfShares []distIBE.ExtractedKey var listOfCommitment []distIBE.Commitment - for _, eachKeyShare := range stateGeneralKeyShares { - if eachKeyShare.KeyshareIndex > commitmentsLen { - k.Logger().Error(fmt.Sprintf("KeyShareIndex: %d should not higher or equals to commitments length: %d", eachKeyShare.KeyshareIndex, commitmentsLen)) + for _, eachKeyshare := range stateGeneralKeyshares { + if eachKeyshare.KeyshareIndex > commitmentsLen { + k.Logger().Error(fmt.Sprintf("KeyshareIndex: %d should not higher or equals to commitments length: %d", eachKeyshare.KeyshareIndex, commitmentsLen)) continue } - keyShare, commitment, err := parseKeyshareCommitment(suite, eachKeyShare.Keyshare, commitments.Commitments[eachKeyShare.KeyshareIndex-1], uint32(eachKeyShare.KeyshareIndex), msg.IdValue) + keyshare, commitment, err := parseKeyshareCommitment(suite, eachKeyshare.Keyshare, commitments.Commitments[eachKeyshare.KeyshareIndex-1], uint32(eachKeyshare.KeyshareIndex), msg.IdValue) if err != nil { k.Logger().Error(err.Error()) continue @@ -240,7 +240,7 @@ func (k msgServer) SubmitGeneralKeyshare( listOfShares = append( listOfShares, - *keyShare, + *keyshare, ) listOfCommitment = append( listOfCommitment, @@ -306,7 +306,6 @@ func (k msgServer) SubmitGeneralKeyshare( clienttypes.ZeroHeight(), uint64(timeoutTimestamp), ) - if err != nil { return nil, err } diff --git a/x/keyshare/keeper/msg_submit_general_keyshare_test.go b/x/keyshare/keeper/msg_submit_general_keyshare_test.go index 32fbe273..ee9779c4 100644 --- a/x/keyshare/keeper/msg_submit_general_keyshare_test.go +++ b/x/keyshare/keeper/msg_submit_general_keyshare_test.go @@ -37,7 +37,7 @@ func SetupTestGeneralKeyshare(t *testing.T, ctx sdk.Context, k keeper.Keeper, nu Creator: creator, Expiry: 123456, NumberOfValidators: pubkeyNumberOfValidator, - EncryptedKeyshares: out.KeyShareEncryptedKeyShares, + EncryptedKeyshares: out.KeyshareEncryptedKeyshares, }) k.SetActiveCommitments(ctx, types.Commitments{ diff --git a/x/keyshare/keeper/query_general_keyshare_test.go b/x/keyshare/keeper/query_general_keyshare_test.go index 81527ba6..bb5e77c1 100644 --- a/x/keyshare/keeper/query_general_keyshare_test.go +++ b/x/keyshare/keeper/query_general_keyshare_test.go @@ -18,7 +18,7 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func TestGeneralKeyShareQuerySingle(t *testing.T) { +func TestGeneralKeyshareQuerySingle(t *testing.T) { keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNGeneralKeyshares(&keeper, ctx, 2) @@ -75,7 +75,7 @@ func TestGeneralKeyShareQuerySingle(t *testing.T) { } } -func TestGeneralKeyShareQueryAllNoPagination(t *testing.T) { +func TestGeneralKeyshareQueryAllNoPagination(t *testing.T) { keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNGeneralKeyshares(&keeper, ctx, 10) @@ -86,7 +86,7 @@ func TestGeneralKeyShareQueryAllNoPagination(t *testing.T) { err error }{ { - desc: "QueryAllGeneralKeyShare", + desc: "QueryAllGeneralKeyshare", request: &types.QueryGeneralKeyshareAllRequest{ Pagination: &query.PageRequest{ Key: nil, @@ -120,7 +120,7 @@ func TestGeneralKeyShareQueryAllNoPagination(t *testing.T) { } } -func TestGeneralKeyShareQueryPaginated(t *testing.T) { +func TestGeneralKeyshareQueryPaginated(t *testing.T) { keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNGeneralKeyshares(&keeper, ctx, 5) diff --git a/x/keyshare/keeper/query_keyshare_test.go b/x/keyshare/keeper/query_keyshare_test.go index 8753b3d5..47bcf43d 100644 --- a/x/keyshare/keeper/query_keyshare_test.go +++ b/x/keyshare/keeper/query_keyshare_test.go @@ -21,7 +21,7 @@ import ( // Prevent strconv unused error var _ = strconv.IntSize -func TestKeyShareQuerySingle(t *testing.T) { +func TestKeyshareQuerySingle(t *testing.T) { keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNKeyshares(&keeper, ctx, 2) @@ -75,7 +75,7 @@ func TestKeyShareQuerySingle(t *testing.T) { } } -func TestKeyShareQueryAllNoPagination(t *testing.T) { +func TestKeyshareQueryAllNoPagination(t *testing.T) { keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNKeyshares(&keeper, ctx, 10) @@ -86,7 +86,7 @@ func TestKeyShareQueryAllNoPagination(t *testing.T) { err error }{ { - desc: "QueryAllKeyShare", + desc: "QueryAllKeyshare", request: &types.QueryKeyshareAllRequest{ Pagination: &query.PageRequest{ Key: nil, @@ -120,7 +120,7 @@ func TestKeyShareQueryAllNoPagination(t *testing.T) { } } -func TestKeyShareQueryPaginated(t *testing.T) { +func TestKeyshareQueryPaginated(t *testing.T) { keeper, ctx, _ := keepertest.KeyshareKeeper(t) wctx := sdk.UnwrapSDKContext(ctx) msgs := createNKeyshares(&keeper, ctx, 5) diff --git a/x/keyshare/module/autocli.go b/x/keyshare/module/autocli.go index d25b3cc1..6f822d9b 100644 --- a/x/keyshare/module/autocli.go +++ b/x/keyshare/module/autocli.go @@ -69,7 +69,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { { RpcMethod: "GeneralKeyshareAll", Use: "list-general-keyshares", - Short: "List all GeneralKeyShare", + Short: "List all GeneralKeyshare", }, { RpcMethod: "GeneralKeyshare", @@ -85,7 +85,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { // this line is used by ignite scaffolding # autocli/query }, }, - //Tx: &autocliv1.ServiceCommandDescriptor{ + // Tx: &autocliv1.ServiceCommandDescriptor{ // Service: modulev1.Msg_ServiceDesc.ServiceName, // EnhanceCustomCommand: true, // only required if you want to use the custom command // RpcCommandOptions: []*autocliv1.RpcCommandOptions{ From ae5f443a67629514f4749ef7ac5a778e911f59e9 Mon Sep 17 00:00:00 2001 From: bowenyou Date: Mon, 21 Oct 2024 18:53:26 -0400 Subject: [PATCH 21/30] fix AggKey to DecryptionKey --- x/keyshare/keeper/msg_submit_general_keyshare.go | 2 +- x/keyshare/types/errors.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x/keyshare/keeper/msg_submit_general_keyshare.go b/x/keyshare/keeper/msg_submit_general_keyshare.go index 81dae32c..4f181f57 100644 --- a/x/keyshare/keeper/msg_submit_general_keyshare.go +++ b/x/keyshare/keeper/msg_submit_general_keyshare.go @@ -282,7 +282,7 @@ func (k msgServer) SubmitGeneralKeyshare( return nil, types.ErrKeyshareRequestNotFound.Wrapf(", got id value: %s", msg.IdValue) } if decryptionKeyReq.DecryptionKey != "" { - return nil, types.ErrAggKeyAlreadyExists.Wrapf(", identity: %s, Aggregated key: %s", msg.IdValue, decryptionKeyReq.DecryptionKey) + return nil, types.ErrDecryptionKeyAlreadyExists.Wrapf(", identity: %s, decryption key: %s", msg.IdValue, decryptionKeyReq.DecryptionKey) } decryptionKeyReq.DecryptionKey = skHex k.SetDecryptionKeyRequest(ctx, decryptionKeyReq) diff --git a/x/keyshare/types/errors.go b/x/keyshare/types/errors.go index 4052f67f..1eda875f 100644 --- a/x/keyshare/types/errors.go +++ b/x/keyshare/types/errors.go @@ -50,5 +50,5 @@ var ( ErrAuthorizedAnotherAddress = sdkerrors.Register(ModuleName, 1909, "validator authorized another address to submit key share is not allow to submit key share") ErrUnsupportedIDType = sdkerrors.Register(ModuleName, 1910, "id type provided in general key share message is not supported") ErrKeyshareRequestNotFound = sdkerrors.Register(ModuleName, 1911, "keyshare request for the given identity not found") - ErrAggKeyAlreadyExists = sdkerrors.Register(ModuleName, 1912, "decryption key already exists for the given identity") + ErrDecryptionKeyAlreadyExists = sdkerrors.Register(ModuleName, 1912, "decryption key already exists for the given identity") ) From 69526c410e35a77d48ba950c787addfd8747a1f6 Mon Sep 17 00:00:00 2001 From: bowenyou Date: Tue, 22 Oct 2024 01:32:13 -0400 Subject: [PATCH 22/30] fix naming in lanes/app --- abci/checktx/keyshare_check_tx.go | 12 ++++++------ app/ante.go | 2 +- app/app.go | 15 +++++++-------- app/lanes.go | 4 ++-- cmd/fairyringd/cmd/sharegenerator/derive.go | 4 ++-- lanes/keyshare/factory.go | 4 ++-- lanes/keyshare/lane.go | 12 ++++++------ lanes/keyshare/mempool.go | 4 ++-- testutil/random/pubkey.go | 5 ++--- 9 files changed, 30 insertions(+), 32 deletions(-) diff --git a/abci/checktx/keyshare_check_tx.go b/abci/checktx/keyshare_check_tx.go index 781c2737..882535ad 100644 --- a/abci/checktx/keyshare_check_tx.go +++ b/abci/checktx/keyshare_check_tx.go @@ -27,9 +27,9 @@ type KeyshareCheckTxHandler struct { // bid transactions. txDecoder sdk.TxDecoder - // KeyShareLane is utilized to retrieve the keyshare info of a transaction and to + // KeyshareLane is utilized to retrieve the keyshare info of a transaction and to // insert a Keyshare transaction into the application-side mempool. - keyShareLane KeyShareLaneI + keyshareLane KeyshareLaneI // anteHandler is utilized to verify the bid transaction against the latest // committed state. @@ -39,9 +39,9 @@ type KeyshareCheckTxHandler struct { checkTxHandler CheckTx } -// KeyShareLaneI is the interface that defines all of the dependencies that +// KeyshareLaneI is the interface that defines all of the dependencies that // are required to interact with the top of block lane. -type KeyShareLaneI interface { +type KeyshareLaneI interface { // GetDecryptionKeyInfo is utilized to retrieve the Keyshare info of a transaction. GetDecryptionKeyInfo(tx sdk.Tx) (*peptypes.DecryptionKey, error) @@ -80,14 +80,14 @@ type BaseApp interface { func NewKeyshareCheckTxHandler( baseApp BaseApp, txDecoder sdk.TxDecoder, - keyshareLane KeyShareLaneI, + keyshareLane KeyshareLaneI, anteHandler sdk.AnteHandler, checkTxHandler CheckTx, ) *KeyshareCheckTxHandler { return &KeyshareCheckTxHandler{ baseApp: baseApp, txDecoder: txDecoder, - keyShareLane: keyshareLane, + keyshareLane: keyshareLane, anteHandler: anteHandler, checkTxHandler: checkTxHandler, } diff --git a/app/ante.go b/app/ante.go index 286f4fbf..1879c089 100644 --- a/app/ante.go +++ b/app/ante.go @@ -16,7 +16,7 @@ import ( type FairyringHandlerOptions struct { // FreeLane block.Lane BaseOptions ante.HandlerOptions - KeyShareLane pepante.KeyshareLane + KeyshareLane pepante.KeyshareLane TxDecoder sdk.TxDecoder TxEncoder sdk.TxEncoder PepKeeper pepkeeper.Keeper diff --git a/app/app.go b/app/app.go index b7c4e6b2..7f5f818a 100644 --- a/app/app.go +++ b/app/app.go @@ -3,6 +3,10 @@ package app import ( "context" "fmt" + "io" + "os" + "path/filepath" + keysharemodule "github.com/Fairblock/fairyring/x/keyshare/module" keysharemoduletypes "github.com/Fairblock/fairyring/x/keyshare/types" pepmodule "github.com/Fairblock/fairyring/x/pep/module" @@ -16,9 +20,6 @@ import ( "github.com/cosmos/ibc-go/v8/modules/apps/transfer" transfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" ibcmodule "github.com/cosmos/ibc-go/v8/modules/core" - "io" - "os" - "path/filepath" _ "cosmossdk.io/api/cosmos/tx/config/v1" // import for side-effects "cosmossdk.io/depinject" @@ -111,10 +112,8 @@ const ( Name = "fairyring" ) -var ( - // DefaultNodeHome default home directories for the application daemon - DefaultNodeHome string -) +// DefaultNodeHome default home directories for the application daemon +var DefaultNodeHome string var ( _ runtime.AppI = (*App)(nil) @@ -406,7 +405,7 @@ func New( CircuitKeeper: &app.CircuitBreakerKeeper, TxDecoder: app.txConfig.TxDecoder(), TxEncoder: app.txConfig.TxEncoder(), - KeyShareLane: keyshareLane, + KeyshareLane: keyshareLane, PepKeeper: app.PepKeeper, } anteHandler := NewFairyringAnteHandler(options) diff --git a/app/lanes.go b/app/lanes.go index 28b80ff3..8e5cb3b8 100644 --- a/app/lanes.go +++ b/app/lanes.go @@ -13,7 +13,7 @@ import ( // we create three separate lanes - Keyshare, Free, and Default - and then return them. // // NOTE: Application Developers should closely replicate this function in their own application. -func CreateLanes(app *App) (*keysharelane.KeyShareLane, *base.BaseLane) { +func CreateLanes(app *App) (*keysharelane.KeyshareLane, *base.BaseLane) { // 1. Create the signer extractor. This is used to extract the expected signers from // a transaction. Each lane can have a different signer extractor if needed. signerAdapter := signerextraction.NewDefaultAdapter() @@ -72,7 +72,7 @@ func CreateLanes(app *App) (*keysharelane.KeyShareLane, *base.BaseLane) { defaultMatchHandler := base.DefaultMatchHandler() // 4. Create the lanes. - keyshareLane := keysharelane.NewKeyShareLane( + keyshareLane := keysharelane.NewKeyshareLane( keyshareConfig, factory, keyshareMatchHandler, diff --git a/cmd/fairyringd/cmd/sharegenerator/derive.go b/cmd/fairyringd/cmd/sharegenerator/derive.go index 84851643..cc48d7c5 100644 --- a/cmd/fairyringd/cmd/sharegenerator/derive.go +++ b/cmd/fairyringd/cmd/sharegenerator/derive.go @@ -13,7 +13,7 @@ import ( ) type DeriveResult struct { - KeyShare string + Keyshare string Commitment string } @@ -70,7 +70,7 @@ var deriveCmd = &cobra.Command{ commitmentHex := hex.EncodeToString(commitmentBinary) result, err := json.Marshal(DeriveResult{ - KeyShare: extractedKeyHex, + Keyshare: extractedKeyHex, Commitment: commitmentHex, }) if err != nil { diff --git a/lanes/keyshare/factory.go b/lanes/keyshare/factory.go index 4846a8df..d0b3d10f 100644 --- a/lanes/keyshare/factory.go +++ b/lanes/keyshare/factory.go @@ -12,14 +12,14 @@ import ( ) type ( - // Factory defines the interface for processing KeyShare transactions. It is + // Factory defines the interface for processing Keyshare transactions. It is // a wrapper around all of the functionality that each application chain must implement // in order for keyshare processing to work. Factory interface { // IsKeyshareTx defines a function that checks if a transaction qualifies as Keyshare Tx. IsKeyshareTx(tx sdk.Tx) bool - // GetDecryptionKeyInfo defines a function that returns the KeyShare info from the Tx + // GetDecryptionKeyInfo defines a function that returns the Keyshare info from the Tx GetDecryptionKeyInfo(tx sdk.Tx) (*peptypes.DecryptionKey, error) // MatchHandler defines a function that checks if a transaction matches the keyshare lane. diff --git a/lanes/keyshare/lane.go b/lanes/keyshare/lane.go index a02fc3ad..09a88b04 100644 --- a/lanes/keyshare/lane.go +++ b/lanes/keyshare/lane.go @@ -9,9 +9,9 @@ const ( LaneName = "keyshare" ) -// KeyShareLane defines the lane that is responsible for processing KeyShare transactions. +// KeyshareLane defines the lane that is responsible for processing Keyshare transactions. type ( - KeyShareLane struct { //nolint + KeyshareLane struct { //nolint *base.BaseLane // Factory defines the API/functionality which is responsible for determining @@ -21,12 +21,12 @@ type ( } ) -// NewKeyShareLane returns a new KeyShare lane. -func NewKeyShareLane( +// NewKeyshareLane returns a new Keyshare lane. +func NewKeyshareLane( cfg base.LaneConfig, factory Factory, matchHandler base.MatchHandler, -) *KeyShareLane { +) *KeyshareLane { options := []base.LaneOption{ base.WithMatchHandler(matchHandler), base.WithMempoolConfigs[string](cfg, TxPriority(factory)), @@ -48,7 +48,7 @@ func NewKeyShareLane( base.WithProcessLaneHandler(handler.ProcessLaneHandler()), ) - return &KeyShareLane{ + return &KeyshareLane{ BaseLane: baseLane, Factory: factory, } diff --git a/lanes/keyshare/mempool.go b/lanes/keyshare/mempool.go index a80c490c..a41d8859 100644 --- a/lanes/keyshare/mempool.go +++ b/lanes/keyshare/mempool.go @@ -9,8 +9,8 @@ import ( "github.com/skip-mev/block-sdk/v2/block/base" ) -// TxPriority returns a TxPriority over KeyShare transactions only. It -// is to be used in the KeyShare index only. +// TxPriority returns a TxPriority over Keyshare transactions only. It +// is to be used in the Keyshare index only. func TxPriority(config Factory) base.TxPriority[string] { return base.TxPriority[string]{ GetTxPriority: func(goCtx context.Context, tx sdk.Tx) string { diff --git a/testutil/random/pubkey.go b/testutil/random/pubkey.go index 9334921d..b21cb62c 100644 --- a/testutil/random/pubkey.go +++ b/testutil/random/pubkey.go @@ -25,13 +25,12 @@ type GeneratedShare struct { type GenerateResult struct { GeneratedShare []*GeneratedShare - KeyShareEncryptedKeyShares []*types.EncryptedKeyshare + KeyshareEncryptedKeyshares []*types.EncryptedKeyshare Commitments []string MasterPublicKey string } func GeneratePubKeyAndShares(totalNumberOfValidator uint32) (*GenerateResult, error) { - t := int(math.Ceil(float64(totalNumberOfValidator) * (2.0 / 3.0))) shares, mpk, _, err := distIBE.GenerateShares(totalNumberOfValidator, uint32(t)) @@ -98,7 +97,7 @@ func GeneratePubKeyAndShares(totalNumberOfValidator uint32) (*GenerateResult, er } result.GeneratedShare = sharesList - result.KeyShareEncryptedKeyShares = encShares + result.KeyshareEncryptedKeyshares = encShares result.Commitments = keyShareCommitments return &result, nil From 94061b5c9780279bbe2f28ad15deb377e709c4c6 Mon Sep 17 00:00:00 2001 From: ap0calypse644 Date: Tue, 22 Oct 2024 18:25:45 +0530 Subject: [PATCH 23/30] audit changes --- Makefile | 4 +- abci/checktx/keyshare_check_tx.go | 4 +- scripts/tests/TestChainUpgrade.sh | 10 ++--- scripts/tests/keyshare.sh | 12 ++--- scripts/tests/keyshareSender.sh | 4 +- scripts/tests/pep.sh | 74 +++++++++++++++---------------- x/keyshare/keeper/current_keys.go | 4 ++ x/keyshare/module/module_ibc.go | 7 ++- x/pep/keeper/current_keys.go | 5 +++ x/pep/module/module.go | 2 + 10 files changed, 71 insertions(+), 55 deletions(-) diff --git a/Makefile b/Makefile index 0a944f3b..2598219b 100644 --- a/Makefile +++ b/Makefile @@ -183,8 +183,8 @@ test-block-tx-limit: init-test-block-limit-framework \ integration-test-all: init-test-framework \ init-relayer \ test-keyshare-module - -@rm -rf ./data - -@killall fairyringd 2>/dev/null + # -@rm -rf ./data + # -@killall fairyringd 2>/dev/null devnet-up: init-devnet @echo "Fairyring Devnet is now running in the background, run 'make devnet-down' to stop devnet." diff --git a/abci/checktx/keyshare_check_tx.go b/abci/checktx/keyshare_check_tx.go index 882535ad..aeb122cd 100644 --- a/abci/checktx/keyshare_check_tx.go +++ b/abci/checktx/keyshare_check_tx.go @@ -112,7 +112,7 @@ func (handler *KeyshareCheckTxHandler) CheckTx() CheckTx { } // Attempt to get the keyshare info of the transaction. - ksInfo, err := handler.keyShareLane.GetDecryptionKeyInfo(tx) + ksInfo, err := handler.keyshareLane.GetDecryptionKeyInfo(tx) if err != nil { return sdkerrors.ResponseCheckTxWithEvents(fmt.Errorf("failed to get keyshare info: %w", err), 0, 0, nil, false), err } @@ -134,7 +134,7 @@ func (handler *KeyshareCheckTxHandler) CheckTx() CheckTx { } // If the keyshare transaction is valid, we know we can insert it into the mempool for consideration in the next block. - if err := handler.keyShareLane.Insert(ctx, tx); err != nil { + if err := handler.keyshareLane.Insert(ctx, tx); err != nil { return sdkerrors.ResponseCheckTxWithEvents(fmt.Errorf("invalid keyshare tx; failed to insert keyshare transaction into mempool: %w", err), gasInfo.GasWanted, gasInfo.GasUsed, nil, false), err } diff --git a/scripts/tests/TestChainUpgrade.sh b/scripts/tests/TestChainUpgrade.sh index 319ffbf3..09c4fa5d 100755 --- a/scripts/tests/TestChainUpgrade.sh +++ b/scripts/tests/TestChainUpgrade.sh @@ -245,7 +245,7 @@ sleep 2 CURRENT_BLOCK=$($BINARY query consensus comet block-latest --home $CHAIN_HOME -o json | jq -r '.block.header.height') TARGET_HEIGHT=$((CURRENT_BLOCK+1)) EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $TARGET_HEIGHT) -EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') +EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') echo "Registered validator submit valid key share on chain $CHAINID_1" RESULT=$($BINARY tx keyshare send-keyshare $EXTRACTED_SHARE 1 $TARGET_HEIGHT --from $VALIDATOR_1 --gas-prices 1ufairy --home $CHAIN_HOME --chain-id $CHAINID_1 --broadcast-mode sync --keyring-backend test -o json -y) @@ -429,7 +429,7 @@ check_tx_code $RESULT sleep $BLOCK_TIME EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $IDENTITY) -EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') +EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') while true; do echo "Submitting General Key Share" @@ -486,7 +486,7 @@ check_tx_code $RESULT sleep $(($BLOCK_TIME * 2)) EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $REQ_ID) -EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') +EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') ENC_KS=$($BINARY secp-encrypter -p "$SCEP_PUBKEY1" -k "$EXTRACTED_SHARE") @@ -528,7 +528,7 @@ SHOW_PRIVATE_REQ=$($BINARY query pep show-private-keyshare-req $REQ_ID --node tc echo $SHOW_PRIVATE_REQ EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $REQ_ID) -EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') +EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') ENC_KS=$($BINARY secp-encrypter -p "$SCEP_PUBKEY1" -k "$EXTRACTED_SHARE") @@ -639,7 +639,7 @@ check_tx_code $RESULT sleep 6 EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $REQ_ID) -EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') +EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') while true; do echo "Submitting General Key Share" diff --git a/scripts/tests/keyshare.sh b/scripts/tests/keyshare.sh index e102bbe3..bb99a5a9 100755 --- a/scripts/tests/keyshare.sh +++ b/scripts/tests/keyshare.sh @@ -69,9 +69,9 @@ if [ "$VALIDATOR_ADDR" != "$VALIDATOR_1" ]; then fi RESULT=$($BINARY q keyshare list-validator-set --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node tcp://localhost:16657 -o json) -CURRENT_SET_LEN=$(echo $RESULT | jq '.validatorSet | length') +CURRENT_SET_LEN=$(echo $RESULT | jq '.validator_set | length') if [ "$CURRENT_SET_LEN" != "0" ]; then - echo "ERROR: KeyShare module deregister validator error, Expected total validator set to be empty, got '$(echo $RESULT | jq '.validatorSet')'" + echo "ERROR: KeyShare module deregister validator error, Expected total validator set to be empty, got '$(echo $RESULT | jq '.validator_set')'" exit 1 fi @@ -140,7 +140,7 @@ fi CURRENT_BLOCK=$($BINARY query consensus comet block-latest --home $CHAIN_DIR/$CHAINID_1 --node tcp://localhost:16657 -o json | jq -r '.block.header.height') TARGET_HEIGHT=$((CURRENT_BLOCK+1)) EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 0 $TARGET_HEIGHT) -EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') +EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') echo "Not registered account submit key share on chain fairyring_test_1" @@ -186,7 +186,7 @@ fi CURRENT_BLOCK=$($BINARY query consensus comet block-latest --home $CHAIN_DIR/$CHAINID_1 --node tcp://localhost:16657 -o json | jq -r '.block.header.height') TARGET_HEIGHT=$((CURRENT_BLOCK+2)) EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $TARGET_HEIGHT) -EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') +EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') echo "Authorized account submit key share on chain fairyring_test_1" @@ -216,7 +216,7 @@ fi CURRENT_BLOCK=$($BINARY query consensus comet block-latest --home $CHAIN_DIR/$CHAINID_1 --node tcp://localhost:16657 -o json | jq -r '.block.header.height') TARGET_HEIGHT=$((CURRENT_BLOCK+1)) EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $TARGET_HEIGHT) -EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') +EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') echo "Removed Authorized account tries submit key share on chain fairyring_test_1" @@ -234,7 +234,7 @@ fi CURRENT_BLOCK=$($BINARY query consensus comet block-latest --home $CHAIN_DIR/$CHAINID_1 --node tcp://localhost:16657 -o json | jq -r '.block.header.height') TARGET_HEIGHT=$((CURRENT_BLOCK+2)) EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $TARGET_HEIGHT) -EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') +EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') echo "Registered validator submit valid key share on chain fairyring_test_1" diff --git a/scripts/tests/keyshareSender.sh b/scripts/tests/keyshareSender.sh index 22bc15fc..1f7106e8 100755 --- a/scripts/tests/keyshareSender.sh +++ b/scripts/tests/keyshareSender.sh @@ -36,14 +36,14 @@ wait_for_tx () { sleep 3 RESULT=$(fairyringd q keyshare show-active-pub-key --node $NODE -o json | jq) -GENERATED_SHARE=$(echo $RESULT | jq -r '.activePubkey.encryptedKeyShares[0].data') +GENERATED_SHARE=$(echo $RESULT | jq -r '.activePubkey.encrypted_keyshares[0].data') while true do CURRENT_BLOCK=$($BINARY query consensus comet block-latest --home $HOME --node $NODE -o json | jq -r '.block.header.height') TARGET_HEIGHT=$((CURRENT_BLOCK+1)) EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $TARGET_HEIGHT) - EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') + EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') RESULT=$($BINARY tx keyshare send-keyshare $EXTRACTED_SHARE 1 $TARGET_HEIGHT --from $FROM --gas-prices 1ufairy --home $HOME --chain-id $CHAINID --node $NODE --broadcast-mode sync --keyring-backend test -o json -y) OUT=$(check_tx_code $RESULT) if [ $OUT -eq "0" ]; then diff --git a/scripts/tests/pep.sh b/scripts/tests/pep.sh index dc9cdda5..427f4108 100755 --- a/scripts/tests/pep.sh +++ b/scripts/tests/pep.sh @@ -63,7 +63,7 @@ wait_for_tx_source () { echo "Query new account pep nonce from pep module on chain fairyring_test_2" RESULT=$($BINARY query pep show-pep-nonce $VALIDATOR_2 --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE -o json) -VALIDATOR_PEP_NONCE=$(echo "$RESULT" | jq -r '.pepNonce.nonce') +VALIDATOR_PEP_NONCE=$(echo "$RESULT" | jq -r '.pep_nonce.nonce') if [ "$VALIDATOR_PEP_NONCE" != "1" ]; then echo "ERROR: Pep module query Pep Nonce error. Expected Pep Nonce to be 1, got '$VALIDATOR_PEP_NONCE'" echo "ERROR MESSAGE: $(echo "$RESULT" | jq -r '.raw_log')" @@ -72,7 +72,7 @@ fi echo "Query master public key from key share module for submitting to pep module on chain fairyring_test_1" -PUB_KEY=$($BINARY query keyshare show-active-pub-key --node $CHAIN1_NODE -o json | jq -r '.activePubkey.publicKey') +PUB_KEY=$($BINARY query keyshare show-active-pub-key --node $CHAIN1_NODE -o json | jq -r '.active_pubkey.public_key') if [ "$PUB_KEY" == "" ]; then echo "ERROR: Query master public key from key share module error, expecting an active public key, got '$PUB_KEY'" exit 1 @@ -80,7 +80,7 @@ fi echo "Query master public key expiry height from key share module for submitting to pep module on chain fairyring_test_1" -PUB_KEY_EXPIRY=$($BINARY query keyshare show-active-pub-key --node $CHAIN1_NODE -o json | jq -r '.activePubkey.expiry') +PUB_KEY_EXPIRY=$($BINARY query keyshare show-active-pub-key --node $CHAIN1_NODE -o json | jq -r '.active_pubkey.expiry') if [ "$PUB_KEY_EXPIRY" == "" ]; then echo "ERROR: Query master public key expiry height from key share module error, expecting an active public key, got '$PUB_KEY'" exit 1 @@ -127,7 +127,7 @@ fi echo "Query account pep nonce before submitting encrypted tx from pep module on chain fairyring_test_2" RESULT=$($BINARY query pep show-pep-nonce $VALIDATOR_2 --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE -o json) -VALIDATOR_PEP_NONCE_BEFORE=$(echo "$RESULT" | jq -r '.pepNonce.nonce') +VALIDATOR_PEP_NONCE_BEFORE=$(echo "$RESULT" | jq -r '.pep_nonce.nonce') if [ "$VALIDATOR_PEP_NONCE_BEFORE" != "1" ]; then echo "ERROR: Pep module query Pep Nonce error. Expected Pep Nonce to be 1, got '$VALIDATOR_PEP_NONCE'" echo "ERROR MESSAGE: $(echo "$RESULT" | jq -r '.raw_log')" @@ -160,8 +160,8 @@ SIGNED_DATA_2=$($BINARY tx sign unsigned2.json --from $VALIDATOR_2 --offline --a echo "Query aggregated key share from key share module for submitting to pep module on chain fairyring_test_1" CURRENT_BLOCK=$($BINARY query consensus comet block-latest --home $CHAIN_DIR/$CHAINID_1 --node $CHAIN1_NODE -o json | jq -r '.block.header.height') RESULT=$($BINARY query keyshare list-decryption-keys --node $CHAIN1_NODE -o json) -AGG_KEY_HEIGHT=$(echo "$RESULT" | jq -r '.aggregatedKeyShare | last | .height') -AGG_KEY=$(echo "$RESULT" | jq -r '.aggregatedKeyShare | last | .data') +AGG_KEY_HEIGHT=$(echo "$RESULT" | jq -r '.decryption_keys | last | .height') +AGG_KEY=$(echo "$RESULT" | jq -r '.decryption_keys | last | .data') if [ "$AGG_KEY_HEIGHT" -gt "$CURRENT_BLOCK" ]; then echo "ERROR: Height of the aggregated key from key share module '$AGG_KEY_HEIGHT' is greater than current block height '$CURRENT_BLOCK'" exit 1 @@ -184,8 +184,8 @@ fi echo "Query aggregated key share from key share module for submitting to pep module on chain fairyring_test_1" CURRENT_BLOCK=$($BINARY query consensus comet block-latest --home $CHAIN_DIR/$CHAINID_1 --node $CHAIN1_NODE -o json | jq -r '.block.header.height') RESULT=$($BINARY query keyshare list-aggregated-key-share --node $CHAIN1_NODE -o json) -AGG_KEY_HEIGHT=$(echo "$RESULT" | jq -r '.aggregatedKeyShare | last | .height') -AGG_KEY=$(echo "$RESULT" | jq -r '.aggregatedKeyShare | last | .data') +AGG_KEY_HEIGHT=$(echo "$RESULT" | jq -r '.decryption_keys | last | .height') +AGG_KEY=$(echo "$RESULT" | jq -r '.decryption_keys | last | .data') if [ "$AGG_KEY_HEIGHT" -gt "$CURRENT_BLOCK" ]; then echo "ERROR: Height of the aggregated key from key share module '$AGG_KEY_HEIGHT' is greater than current block height '$CURRENT_BLOCK'" exit 1 @@ -251,7 +251,7 @@ echo "Balance after submitting second encrypted tx: $BAL_AMT$BAL_DENOM" echo "Query account pep nonce after submitting encrypted tx from pep module on chain fairyring_test_2" RESULT=$($BINARY query pep show-pep-nonce $VALIDATOR_2 --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE -o json) -VALIDATOR_PEP_NONCE=$(echo "$RESULT" | jq -r '.pepNonce.nonce') +VALIDATOR_PEP_NONCE=$(echo "$RESULT" | jq -r '.pep_nonce.nonce') if [ "$VALIDATOR_PEP_NONCE" != "1" ]; then echo "ERROR: Pep module query Pep Nonce error. Expected Pep Nonce to be 1, got '$VALIDATOR_PEP_NONCE'" echo "ERROR MESSAGE: $(echo "$RESULT" | jq -r '.raw_log')" @@ -287,7 +287,7 @@ fi echo "Query account pep nonce after encrypted tx being processed from pep module on chain fairyring_test_2" RESULT=$($BINARY query pep show-pep-nonce $VALIDATOR_2 --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE -o json) -VALIDATOR_PEP_NONCE=$(echo "$RESULT" | jq -r '.pepNonce.nonce') +VALIDATOR_PEP_NONCE=$(echo "$RESULT" | jq -r '.pep_nonce.nonce') if [ "$VALIDATOR_PEP_NONCE" != "3" ]; then echo "ERROR: Pep module query Pep Nonce error. Expected Pep Nonce to be 3, got '$VALIDATOR_PEP_NONCE'" echo "ERROR MESSAGE: $(echo "$RESULT" | jq -r '.raw_log')" @@ -329,8 +329,8 @@ if [ "$RESULT" != "$AGG_KEY_HEIGHT" ]; then exit 1 fi -FIRST_ENCRYPTED_TX_HEIGHT=$($BINARY query pep list-encrypted-tx --node $CHAIN2_NODE -o json | jq -r '.encryptedTxArray[0].encryptedTx[0].processedAtChainHeight') -SECOND_ENCRYPTED_TX_HEIGHT=$($BINARY query pep list-encrypted-tx --node $CHAIN2_NODE -o json | jq -r '.encryptedTxArray[0].encryptedTx[1].processedAtChainHeight') +FIRST_ENCRYPTED_TX_HEIGHT=$($BINARY query pep list-encrypted-tx --node $CHAIN2_NODE -o json | jq -r '.encrypted_tx_array[0].encrypted_txs[0].processed_at_chain_height') +SECOND_ENCRYPTED_TX_HEIGHT=$($BINARY query pep list-encrypted-tx --node $CHAIN2_NODE -o json | jq -r '.encrypted_tx_array[0].encrypted_txs[1].processed_at_chain_height') echo "First Encrypted tx processed at height: $FIRST_ENCRYPTED_TX_HEIGHT, 2nd one processed at: $SECOND_ENCRYPTED_TX_HEIGHT" @@ -359,14 +359,14 @@ check_tx_code $RESULT sleep 5 echo "Query general keyshare request on chain fairyring_test_1" -LIST_KEYSHARE_REQ=$($BINARY query pep list-keyshare-req --node $CHAIN1_NODE -o json) -IDENTITY=$(echo $LIST_KEYSHARE_REQ | jq -r '.keyshares[0].identity') -REQ_ID=$(echo $LIST_KEYSHARE_REQ | jq -r '.keyshares[0].request_id') +LIST_KEYSHARE_REQ=$($BINARY query pep list-general-identities --node $CHAIN1_NODE -o json) +IDENTITY=$(echo $LIST_KEYSHARE_REQ | jq -r '.request_details_list[0].identity') +REQ_ID=$(echo $LIST_KEYSHARE_REQ | jq -r '.request_details_list[0].request_id') echo "Identity for keyshare request 1 is: $IDENTITY" echo "Query account pep nonce before submitting encrypted tx from pep module on chain fairyring_test_1" RESULT=$($BINARY query pep show-pep-nonce $WALLET_1 --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE -o json) -PEP_NONCE_BEFORE=$(echo "$RESULT" | jq -r '.pepNonce.nonce') +PEP_NONCE_BEFORE=$(echo "$RESULT" | jq -r '.pep_nonce.nonce') echo "Query target account token balance before submitting encrypted tx from pep module on chain fairyring_test_1" RESULT=$($BINARY query bank balances $VALIDATOR_1 --node $CHAIN1_NODE -o json) @@ -403,7 +403,7 @@ check_tx_code $RESULT sleep 5 echo "Query Keyshare request and check for encrypted tx" -TX=$($BINARY query pep show-general-identity $REQ_ID --node $CHAIN1_NODE -o json | jq -r '.keyshare.tx_list.encryptedTx[0].data') +TX=$($BINARY query pep show-general-identity $REQ_ID --node $CHAIN1_NODE -o json | jq -r '.request_details.tx_list.encrypted_txs[0].data') if [ "$TX" != "$CIPHER" ]; then echo "Submitting general encrypted tx failed. Expected: $CIPHER, got $TX" exit 1 @@ -424,7 +424,7 @@ check_tx_code $RESULT sleep 5 EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $IDENTITY) -EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') +EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') while true; do echo "Submitting General Key Share" @@ -460,10 +460,10 @@ check_tx_code $RESULT while true; do echo "Query general keyshare request on chain $CHAINID_2" - LIST_KEYSHARE_REQ=$($BINARY query pep list-keyshare-req --node $CHAIN2_NODE -o json) + LIST_KEYSHARE_REQ=$($BINARY query pep list-general-identities --node $CHAIN2_NODE -o json) echo $LIST_KEYSHARE_REQ | jq - IDENTITY=$(echo $LIST_KEYSHARE_REQ | jq -r '.keyshares[0].identity') - REQ_ID=$(echo $LIST_KEYSHARE_REQ | jq -r '.keyshares[0].request_id') + IDENTITY=$(echo $LIST_KEYSHARE_REQ | jq -r '.request_details_list[0].identity') + REQ_ID=$(echo $LIST_KEYSHARE_REQ | jq -r '.request_details_list[0].request_id') echo "Identity for keyshare request 1 is: $IDENTITY" echo "Request ID for keyshare request 1 is: $REQ_ID" if [[ "$IDENTITY" != "null" ]]; then @@ -475,7 +475,7 @@ done echo "Query account pep nonce before submitting encrypted tx from pep module on chain $CHAINID_2" RESULT=$($BINARY query pep show-pep-nonce $WALLET_2 --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE -o json) -PEP_NONCE_BEFORE=$(echo "$RESULT" | jq -r '.pepNonce.nonce') +PEP_NONCE_BEFORE=$(echo "$RESULT" | jq -r '.pep_nonce.nonce') echo "Query target account token balance before submitting encrypted tx from pep module on chain $CHAINID_2" RESULT=$($BINARY query bank balances $VALIDATOR_2 --node $CHAIN2_NODE -o json) @@ -516,7 +516,7 @@ check_tx_code $RESULT sleep 5 echo "Query Keyshare request and check for encrypted tx" -TX=$($BINARY query pep show-general-identity $REQ_ID --node $CHAIN2_NODE -o json | jq -r '.keyshare.tx_list.encryptedTx[0].data') +TX=$($BINARY query pep show-general-identity $REQ_ID --node $CHAIN2_NODE -o json | jq -r '.request_details.tx_list.encrypted_txs[0].data') if [ "$TX" != "$CIPHER" ]; then echo "Submitting general encrypted tx failed. Expected: $CIPHER, got $TX" exit 1 @@ -537,7 +537,7 @@ check_tx_code $RESULT sleep 5 EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $IDENTITY) -EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') +EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') while true; do echo "Submitting General Key Share" @@ -598,7 +598,7 @@ check_tx_code $RESULT sleep 5 EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $REQ_ID) -EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') +EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') ENC_KS=$($BINARY secp-encrypter -p "$SCEP_PUBKEY1" -k "$EXTRACTED_SHARE") @@ -619,7 +619,7 @@ sleep 5 echo "Query private keyshare request on chain fairyring_test_1" SHOW_PRIVATE_REQ=$($BINARY query pep show-private-identity $WALLET_1/test_req_1 --node $CHAIN1_NODE -o json) -ENC_KEYSHARES=$(echo "$SHOW_PRIVATE_REQ" | jq -r '.encrypted_keyshares') +ENC_KEYSHARES=$(echo "$SHOW_PRIVATE_REQ" | jq -r '.private_decryption_keys') if [ "$ENC_KEYSHARES" = "[]" ]; then echo "encrypted_keyshares is empty." @@ -640,7 +640,7 @@ SHOW_PRIVATE_REQ=$($BINARY query pep show-private-identity $REQ_ID --node $CHAIN echo $SHOW_PRIVATE_REQ EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $REQ_ID) -EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') +EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') ENC_KS=$($BINARY secp-encrypter -p "$SCEP_PUBKEY1" -k "$EXTRACTED_SHARE") @@ -661,7 +661,7 @@ sleep 5 echo "Query private keyshare request on chain fairyring_test_1" SHOW_PRIVATE_REQ=$($BINARY query pep show-private-identity $REQ_ID --node $CHAIN1_NODE -o json) -ENC_KEYSHARES=$(echo "$SHOW_PRIVATE_REQ" | jq -r '.encrypted_keyshares') +ENC_KEYSHARES=$(echo "$SHOW_PRIVATE_REQ" | jq -r '.private_decryption_keys') if [ "$ENC_KEYSHARES" = "[]" ]; then echo "encrypted_keyshares is empty." @@ -693,7 +693,7 @@ check_tx_code $RESULT sleep 8 EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $REQ_ID) -EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') +EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') ENC_KS=$($BINARY secp-encrypter -p "$SCEP_PUBKEY2" -k "$EXTRACTED_SHARE") # echo $ENC_KS @@ -713,7 +713,7 @@ sleep 20 echo "Query private keyshare request on chain fairyring_test_2" SHOW_PRIVATE_REQ=$($BINARY query pep show-private-identity $REQ_ID --node $CHAIN2_NODE -o json) -ENC_KEYSHARES=$(echo "$SHOW_PRIVATE_REQ" | jq -r '.encrypted_keyshares') +ENC_KEYSHARES=$(echo "$SHOW_PRIVATE_REQ" | jq -r '.private_decryption_keys') if [ "$ENC_KEYSHARES" = "[]" ]; then echo "encrypted_keyshares is empty." @@ -734,7 +734,7 @@ SHOW_PRIVATE_REQ=$($BINARY query pep show-private-identity $REQ_ID --node $CHAIN echo $SHOW_PRIVATE_REQ EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $REQ_ID) -EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') +EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') ENC_KS=$($BINARY secp-encrypter -p "$SCEP_PUBKEY2" -k "$EXTRACTED_SHARE") # echo $ENC_KS @@ -754,7 +754,7 @@ sleep 20 echo "Query private keyshare request on chain fairyring_test_2" SHOW_PRIVATE_REQ=$($BINARY query pep show-private-identity $REQ_ID --node $CHAIN2_NODE -o json) -ENC_KEYSHARES=$(echo "$SHOW_PRIVATE_REQ" | jq -r '.encrypted_keyshares') +ENC_KEYSHARES=$(echo "$SHOW_PRIVATE_REQ" | jq -r '.private_decryption_keys') if [ "$ENC_KEYSHARES" = "[]" ]; then echo "encrypted_keyshares is empty." @@ -768,9 +768,9 @@ echo "Testing decryption query on source chain " echo "#############################################" echo "Query general keyshare request on chain fairyring_test_1" -LIST_KEYSHARE_REQ=$($BINARY query pep list-keyshare-req --node $CHAIN1_NODE -o json) -IDENTITY=$(echo $LIST_KEYSHARE_REQ | jq -r '.keyshares[0].identity') -AGGR_KEYSHARE=$(echo $LIST_KEYSHARE_REQ | jq -r '.keyshares[0].aggr_keyshare') +LIST_KEYSHARE_REQ=$($BINARY query pep list-general-identities --node $CHAIN1_NODE -o json) +IDENTITY=$(echo $LIST_KEYSHARE_REQ | jq -r '.request_details_list[0].identity') +AGGR_KEYSHARE=$(echo $LIST_KEYSHARE_REQ | jq -r '.request_details_list[0].decryption_key') echo "Identity for keyshare request is: $IDENTITY" echo "Aggregated keyshare for request is: $AGGR_KEYSHARE" @@ -890,7 +890,7 @@ check_tx_code $RESULT sleep 5 EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $REQ_ID) -EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') +EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') while true; do echo "Submitting General Key Share" @@ -912,7 +912,7 @@ echo $RSP CURRENT_BLOCK=$($BINARY query consensus comet block-latest --home $CHAIN_DIR/$CHAINID_1 --node tcp://localhost:16657 -o json | jq -r '.block.header.height') TARGET_HEIGHT=$((CURRENT_BLOCK+2)) EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $TARGET_HEIGHT) -EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') +EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') echo "Registering contract with blockwise identity $TARGET_HEIGHT" RESULT=$($BINARY tx pep register-contract $CONTRACT_ADDR $TARGET_HEIGHT --from $WALLET_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) diff --git a/x/keyshare/keeper/current_keys.go b/x/keyshare/keeper/current_keys.go index 0a96bf57..73896278 100644 --- a/x/keyshare/keeper/current_keys.go +++ b/x/keyshare/keeper/current_keys.go @@ -1,6 +1,8 @@ package keeper import ( + "fmt" + commontypes "github.com/Fairblock/fairyring/x/common/types" "github.com/Fairblock/fairyring/x/keyshare/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -9,6 +11,8 @@ import ( // OnRecvCurrentKeysPacket processes packet reception func (k Keeper) OnRecvCurrentKeysPacket(ctx sdk.Context, packet channeltypes.Packet, data types.CurrentKeysPacketData) (packetAck types.CurrentKeysPacketAck, err error) { + fmt.Println("\n\n\n OnRecvCurrentKeysPacket \n\n\n") + // validate packet data upon receiving if err := data.ValidateBasic(); err != nil { return packetAck, err diff --git a/x/keyshare/module/module_ibc.go b/x/keyshare/module/module_ibc.go index ad091663..c313fbf2 100644 --- a/x/keyshare/module/module_ibc.go +++ b/x/keyshare/module/module_ibc.go @@ -143,6 +143,7 @@ func (im IBCModule) OnRecvPacket( ) ibcexported.Acknowledgement { var ack channeltypes.Acknowledgement + fmt.Println("\n\n\n Received IBC packet \n\n\n") var modulePacketData types.KeysharePacketData if err := types.ModuleCdc.UnmarshalJSON(modulePacket.GetData(), &modulePacketData); err != nil { return channeltypes.NewErrorAcknowledgement(errorsmod.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal packet data: %s", err.Error())) @@ -150,7 +151,6 @@ func (im IBCModule) OnRecvPacket( // Dispatch packet switch packet := modulePacketData.Packet.(type) { - case *types.KeysharePacketData_RequestDecryptionKeyPacket: packetAck, err := im.keeper.OnRecvRequestDecryptionKeyPacket(ctx, modulePacket, *packet.RequestDecryptionKeyPacket) if err != nil { @@ -223,14 +223,19 @@ func (im IBCModule) OnRecvPacket( ) case *types.KeysharePacketData_CurrentKeysPacket: + fmt.Println("\n\nPacket type KeysharePacketData_CurrentKeysPacket\n\n") packetAck, err := im.keeper.OnRecvCurrentKeysPacket(ctx, modulePacket, *packet.CurrentKeysPacket) if err != nil { + fmt.Println("\n\n\n OnRecvCurrentKeysPacket, ERR:", err, "\n\n\n") + ack = channeltypes.NewErrorAcknowledgement(err) } else { // Encode packet acknowledgment packetAckBytes := types.MustProtoMarshalJSON(&packetAck) ack = channeltypes.NewResultAcknowledgement(sdk.MustSortJSON(packetAckBytes)) } + fmt.Println("\n\n\n OnRecvCurrentKeysPacket :", packetAck, "\n\n\n") + ctx.EventManager().EmitEvent( sdk.NewEvent( types.EventTypeCurrentKeysPacket, diff --git a/x/pep/keeper/current_keys.go b/x/pep/keeper/current_keys.go index e92b92b6..69497063 100644 --- a/x/pep/keeper/current_keys.go +++ b/x/pep/keeper/current_keys.go @@ -2,6 +2,7 @@ package keeper import ( "errors" + "fmt" "time" kstypes "github.com/Fairblock/fairyring/x/keyshare/types" @@ -74,6 +75,8 @@ func (k Keeper) TransmitCurrentKeysPacket( // OnAcknowledgementCurrentKeysPacket responds to the success or failure of a packet // acknowledgement written on the receiving chain. func (k Keeper) OnAcknowledgementCurrentKeysPacket(ctx sdk.Context, packet channeltypes.Packet, data kstypes.CurrentKeysPacketData, ack channeltypes.Acknowledgement) error { + fmt.Println("\n\n\nReceived Current Keys ACK:") + switch dispatchedAck := ack.Response.(type) { case *channeltypes.Acknowledgement_Error: k.Logger().Error("Ack Error") @@ -120,6 +123,8 @@ func (k Keeper) OnAcknowledgementCurrentKeysPacket(ctx sdk.Context, packet chann return nil } + fmt.Println("\n\n\n", packetAck, "\n\n\n") + ak, found := k.GetActivePubkey(ctx) if !found { k.SetActivePubkey(ctx, *packetAck.ActiveKey) diff --git a/x/pep/module/module.go b/x/pep/module/module.go index 0549cb16..6ac6de20 100644 --- a/x/pep/module/module.go +++ b/x/pep/module/module.go @@ -352,8 +352,10 @@ func (am AppModule) EndBlock(cctx context.Context) error { ctx := sdk.UnwrapSDKContext(cctx) params := am.keeper.GetParams(ctx) if !params.IsSourceChain { + fmt.Println("\n\n\n QueryFairyringCurrentKeys \n\n\n") err := am.keeper.QueryFairyringCurrentKeys(ctx) if err != nil { + fmt.Println("ERR", err, "\n\n\n") am.keeper.Logger().Error("Endblocker get keys err", err) am.keeper.Logger().Error(err.Error()) } From 4646de0e37941c2393cad28d4dd3f3f95508ad54 Mon Sep 17 00:00:00 2001 From: ap0calypse644 Date: Tue, 22 Oct 2024 20:26:44 +0530 Subject: [PATCH 24/30] audit changes --- scripts/tests/pep.sh | 10 +++++----- scripts/tests/start.sh | 2 ++ x/keyshare/keeper/current_keys.go | 9 ++++----- x/keyshare/module/module_ibc.go | 4 ---- x/pep/keeper/current_keys.go | 12 ++++++------ x/pep/module/module.go | 2 -- 6 files changed, 17 insertions(+), 22 deletions(-) diff --git a/scripts/tests/pep.sh b/scripts/tests/pep.sh index 427f4108..5888878a 100755 --- a/scripts/tests/pep.sh +++ b/scripts/tests/pep.sh @@ -174,8 +174,8 @@ RESULT=$($BINARY tx pep submit-decryption-key $AGG_KEY_HEIGHT $AGG_KEY --from $V check_tx_code $RESULT RESULT=$(wait_for_tx $RESULT) ACTION=$(echo "$RESULT" | jq -r | jq '.events' | jq 'map(select(any(.type; contains("message"))))[]' | jq '.attributes' | jq 'map(select(any(.key; contains("action"))))[]' | jq -r '.value') -if [ "$ACTION" != "/fairyring.pep.MsgCreateAggregatedKeyShare" ]; then - echo "ERROR: Pep module submit aggregated key error. Expected tx action to be MsgCreateAggregatedKeyShare, got '$ACTION'" +if [ "$ACTION" != "/fairyring.pep.MsgSubmitDecryptionKey" ]; then + echo "ERROR: Pep module submit decryption key error. Expected tx action to be MsgSubmitDecryptionKey, got '$ACTION'" echo "ERROR MESSAGE: $(echo "$RESULT" | jq -r '.raw_log')" exit 1 fi @@ -183,7 +183,7 @@ fi echo "Query aggregated key share from key share module for submitting to pep module on chain fairyring_test_1" CURRENT_BLOCK=$($BINARY query consensus comet block-latest --home $CHAIN_DIR/$CHAINID_1 --node $CHAIN1_NODE -o json | jq -r '.block.header.height') -RESULT=$($BINARY query keyshare list-aggregated-key-share --node $CHAIN1_NODE -o json) +RESULT=$($BINARY query keyshare list-decryption-keys --node $CHAIN1_NODE -o json) AGG_KEY_HEIGHT=$(echo "$RESULT" | jq -r '.decryption_keys | last | .height') AGG_KEY=$(echo "$RESULT" | jq -r '.decryption_keys | last | .data') if [ "$AGG_KEY_HEIGHT" -gt "$CURRENT_BLOCK" ]; then @@ -266,8 +266,8 @@ RESULT=$($BINARY tx pep submit-decryption-key $AGG_KEY_HEIGHT $AGG_KEY --from $V check_tx_code $RESULT RESULT=$(wait_for_tx $RESULT) ACTION=$(echo "$RESULT" | jq '.events' | jq 'map(select(any(.type; contains("message"))))[]' | jq '.attributes' | jq 'map(select(any(.key; contains("action"))))[]' | jq -r '.value') -if [ "$ACTION" != "/fairyring.pep.MsgCreateAggregatedKeyShare" ]; then - echo "ERROR: Pep module submit aggregated key error. Expected tx action to be MsgCreateAggregatedKeyShare, got '$ACTION'" +if [ "$ACTION" != "/fairyring.pep.MsgSubmitDecryptionKey" ]; then + echo "ERROR: Pep module submit aggregated key error. Expected tx action to be MsgSubmitDecryptionKey, got '$ACTION'" echo "ERROR MESSAGE: $(echo "$RESULT" | jq -r '.raw_log')" echo $RESULT | jq exit 1 diff --git a/scripts/tests/start.sh b/scripts/tests/start.sh index 3cc4e094..d996ffba 100755 --- a/scripts/tests/start.sh +++ b/scripts/tests/start.sh @@ -186,6 +186,8 @@ rm rly2.json &> /dev/null echo "Waiting both chain to run..." sleep $((BLOCK_TIME*2)) +sleep 10 + echo "Starting Hermes Relayer..." echo "Creating log file at $CHAIN_DIR/relayer.log" hermes --config hermes_config.toml start > $CHAIN_DIR/relayer.log 2>&1 & diff --git a/x/keyshare/keeper/current_keys.go b/x/keyshare/keeper/current_keys.go index 73896278..9949bd27 100644 --- a/x/keyshare/keeper/current_keys.go +++ b/x/keyshare/keeper/current_keys.go @@ -1,8 +1,6 @@ package keeper import ( - "fmt" - commontypes "github.com/Fairblock/fairyring/x/common/types" "github.com/Fairblock/fairyring/x/keyshare/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -10,9 +8,10 @@ import ( ) // OnRecvCurrentKeysPacket processes packet reception -func (k Keeper) OnRecvCurrentKeysPacket(ctx sdk.Context, packet channeltypes.Packet, data types.CurrentKeysPacketData) (packetAck types.CurrentKeysPacketAck, err error) { - fmt.Println("\n\n\n OnRecvCurrentKeysPacket \n\n\n") - +func (k Keeper) OnRecvCurrentKeysPacket(ctx sdk.Context, + packet channeltypes.Packet, + data types.CurrentKeysPacketData, +) (packetAck types.CurrentKeysPacketAck, err error) { // validate packet data upon receiving if err := data.ValidateBasic(); err != nil { return packetAck, err diff --git a/x/keyshare/module/module_ibc.go b/x/keyshare/module/module_ibc.go index c313fbf2..e6c1a160 100644 --- a/x/keyshare/module/module_ibc.go +++ b/x/keyshare/module/module_ibc.go @@ -143,7 +143,6 @@ func (im IBCModule) OnRecvPacket( ) ibcexported.Acknowledgement { var ack channeltypes.Acknowledgement - fmt.Println("\n\n\n Received IBC packet \n\n\n") var modulePacketData types.KeysharePacketData if err := types.ModuleCdc.UnmarshalJSON(modulePacket.GetData(), &modulePacketData); err != nil { return channeltypes.NewErrorAcknowledgement(errorsmod.Wrapf(sdkerrors.ErrUnknownRequest, "cannot unmarshal packet data: %s", err.Error())) @@ -223,10 +222,8 @@ func (im IBCModule) OnRecvPacket( ) case *types.KeysharePacketData_CurrentKeysPacket: - fmt.Println("\n\nPacket type KeysharePacketData_CurrentKeysPacket\n\n") packetAck, err := im.keeper.OnRecvCurrentKeysPacket(ctx, modulePacket, *packet.CurrentKeysPacket) if err != nil { - fmt.Println("\n\n\n OnRecvCurrentKeysPacket, ERR:", err, "\n\n\n") ack = channeltypes.NewErrorAcknowledgement(err) } else { @@ -234,7 +231,6 @@ func (im IBCModule) OnRecvPacket( packetAckBytes := types.MustProtoMarshalJSON(&packetAck) ack = channeltypes.NewResultAcknowledgement(sdk.MustSortJSON(packetAckBytes)) } - fmt.Println("\n\n\n OnRecvCurrentKeysPacket :", packetAck, "\n\n\n") ctx.EventManager().EmitEvent( sdk.NewEvent( diff --git a/x/pep/keeper/current_keys.go b/x/pep/keeper/current_keys.go index 69497063..de9697ee 100644 --- a/x/pep/keeper/current_keys.go +++ b/x/pep/keeper/current_keys.go @@ -2,7 +2,6 @@ package keeper import ( "errors" - "fmt" "time" kstypes "github.com/Fairblock/fairyring/x/keyshare/types" @@ -74,9 +73,12 @@ func (k Keeper) TransmitCurrentKeysPacket( // OnAcknowledgementCurrentKeysPacket responds to the success or failure of a packet // acknowledgement written on the receiving chain. -func (k Keeper) OnAcknowledgementCurrentKeysPacket(ctx sdk.Context, packet channeltypes.Packet, data kstypes.CurrentKeysPacketData, ack channeltypes.Acknowledgement) error { - fmt.Println("\n\n\nReceived Current Keys ACK:") - +func (k Keeper) OnAcknowledgementCurrentKeysPacket( + ctx sdk.Context, + packet channeltypes.Packet, + data kstypes.CurrentKeysPacketData, + ack channeltypes.Acknowledgement, +) error { switch dispatchedAck := ack.Response.(type) { case *channeltypes.Acknowledgement_Error: k.Logger().Error("Ack Error") @@ -123,8 +125,6 @@ func (k Keeper) OnAcknowledgementCurrentKeysPacket(ctx sdk.Context, packet chann return nil } - fmt.Println("\n\n\n", packetAck, "\n\n\n") - ak, found := k.GetActivePubkey(ctx) if !found { k.SetActivePubkey(ctx, *packetAck.ActiveKey) diff --git a/x/pep/module/module.go b/x/pep/module/module.go index 6ac6de20..0549cb16 100644 --- a/x/pep/module/module.go +++ b/x/pep/module/module.go @@ -352,10 +352,8 @@ func (am AppModule) EndBlock(cctx context.Context) error { ctx := sdk.UnwrapSDKContext(cctx) params := am.keeper.GetParams(ctx) if !params.IsSourceChain { - fmt.Println("\n\n\n QueryFairyringCurrentKeys \n\n\n") err := am.keeper.QueryFairyringCurrentKeys(ctx) if err != nil { - fmt.Println("ERR", err, "\n\n\n") am.keeper.Logger().Error("Endblocker get keys err", err) am.keeper.Logger().Error(err.Error()) } From 71f1fa51c1be784b576685e0301763b6413d57c7 Mon Sep 17 00:00:00 2001 From: p0p3yee Date: Tue, 22 Oct 2024 20:49:52 -0400 Subject: [PATCH 25/30] Fix all integration test all script error --- Makefile | 8 ++++++-- scripts/tests/keyshareSender.sh | 2 +- scripts/tests/pep.sh | 7 ++++--- scripts/tests/priv_gov.sh | 2 +- scripts/tests/start.sh | 1 - 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 2598219b..023936ec 100644 --- a/Makefile +++ b/Makefile @@ -183,8 +183,8 @@ test-block-tx-limit: init-test-block-limit-framework \ integration-test-all: init-test-framework \ init-relayer \ test-keyshare-module - # -@rm -rf ./data - # -@killall fairyringd 2>/dev/null + -@rm -rf ./data + ./scripts/tests/stop.sh devnet-up: init-devnet @echo "Fairyring Devnet is now running in the background, run 'make devnet-down' to stop devnet." @@ -240,6 +240,10 @@ clean-devnet-data: -@killall fairyringclient 2>/dev/null -@killall ShareGenerationClient 2>/dev/null +stop-fairyring-keyshare-sender: + @echo "Killing fairyringd and keyshare sender" + ./scripts/tests/stop.sh + clean-testing-data: @echo "Killing fairyringd and removing previous data" -@rm -rf ./data diff --git a/scripts/tests/keyshareSender.sh b/scripts/tests/keyshareSender.sh index 1f7106e8..92df879b 100755 --- a/scripts/tests/keyshareSender.sh +++ b/scripts/tests/keyshareSender.sh @@ -36,7 +36,7 @@ wait_for_tx () { sleep 3 RESULT=$(fairyringd q keyshare show-active-pub-key --node $NODE -o json | jq) -GENERATED_SHARE=$(echo $RESULT | jq -r '.activePubkey.encrypted_keyshares[0].data') +GENERATED_SHARE=$(echo $RESULT | jq -r '.active_pubkey.encrypted_keyshares[0].data') while true do diff --git a/scripts/tests/pep.sh b/scripts/tests/pep.sh index 5888878a..06663c40 100755 --- a/scripts/tests/pep.sh +++ b/scripts/tests/pep.sh @@ -180,6 +180,7 @@ if [ "$ACTION" != "/fairyring.pep.MsgSubmitDecryptionKey" ]; then exit 1 fi +sleep 3 echo "Query aggregated key share from key share module for submitting to pep module on chain fairyring_test_1" CURRENT_BLOCK=$($BINARY query consensus comet block-latest --home $CHAIN_DIR/$CHAINID_1 --node $CHAIN1_NODE -o json | jq -r '.block.header.height') @@ -578,7 +579,7 @@ SCEP_PRIV_KEY2="ef1450bdc18396f2254f52d8c525c0d933a8f146ec2a681eaf319f5899f2f60d # echo "$SCEP_PUBKEY" echo "Creating new Private Request in pep module on chain fairyring_test_1" -RESULT=$($BINARY tx pep request-private-keyshare test_req_1 --from $WALLET_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep request-private-identity test_req_1 --from $WALLET_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) check_tx_code $RESULT sleep 5 @@ -675,7 +676,7 @@ echo "Testing private keyshare on destination chain" echo "#############################################" echo "Creating new Private Request in pep module on chain fairyring_test_2" -RESULT=$($BINARY tx pep request-private-keyshare test_req_2 --from $WALLET_2 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE --broadcast-mode sync --keyring-backend test -o json -y) +RESULT=$($BINARY tx pep request-private-identity test_req_2 --from $WALLET_2 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_2 --chain-id $CHAINID_2 --node $CHAIN2_NODE --broadcast-mode sync --keyring-backend test -o json -y) check_tx_code $RESULT sleep 8 @@ -951,4 +952,4 @@ echo "# Test General Encrypted Txs #" echo "###########################################################" echo "" -# ./scripts/tests/priv_gov.sh $PUB_KEY $1 \ No newline at end of file +./scripts/tests/priv_gov.sh $PUB_KEY $1 \ No newline at end of file diff --git a/scripts/tests/priv_gov.sh b/scripts/tests/priv_gov.sh index ada9cae3..13e90432 100755 --- a/scripts/tests/priv_gov.sh +++ b/scripts/tests/priv_gov.sh @@ -117,7 +117,7 @@ EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.KeyShare') while true; do echo "Submitting General Key Share" - RESULT=$($BINARY tx keyshare create-general-key-share "private-gov-identity" $IDENTITY $EXTRACTED_SHARE 1 --from $VAL1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node tcp://localhost:16657 --broadcast-mode sync --keyring-backend test -o json -y) + RESULT=$($BINARY tx keyshare submit-general-keyshare "private-gov-identity" $IDENTITY $EXTRACTED_SHARE 1 --from $VAL1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node tcp://localhost:16657 --broadcast-mode sync --keyring-backend test -o json -y) echo "$RESULT" check_tx_err $RESULT if [ $? -eq 0 ]; then diff --git a/scripts/tests/start.sh b/scripts/tests/start.sh index d996ffba..a93ff94e 100755 --- a/scripts/tests/start.sh +++ b/scripts/tests/start.sh @@ -184,7 +184,6 @@ rm rly1.json &> /dev/null rm rly2.json &> /dev/null echo "Waiting both chain to run..." -sleep $((BLOCK_TIME*2)) sleep 10 From c64e2d569fefc2d6461773d6760b706d18a2ca33 Mon Sep 17 00:00:00 2001 From: bowenyou Date: Wed, 23 Oct 2024 01:34:24 -0400 Subject: [PATCH 26/30] fix test contract build error --- scripts/tests/fairyring_contract/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tests/fairyring_contract/Cargo.toml b/scripts/tests/fairyring_contract/Cargo.toml index f4634740..38d35a7c 100644 --- a/scripts/tests/fairyring_contract/Cargo.toml +++ b/scripts/tests/fairyring_contract/Cargo.toml @@ -42,7 +42,7 @@ thiserror = "1.0" prost = "0.13.3" # Protobuf support prost-types = "0.13" # tonic = { version = "0.12.3", features = ["prost", "tls"] } -fairblock-proto = { git = "https://github.com/Fairblock/fairblock-rust/", branch = "audit-2.0" } +fairblock-proto = { git = "https://github.com/Fairblock/fairblock-rust/", branch = "audit-2.0", default-features = false } # getrandom = { version = "0.2", features = ["js"] } # mio = "1.0.2" # tokio = "1.40.0" From a96d438348f80e861218dd915028949e3d222400 Mon Sep 17 00:00:00 2001 From: ap0calypse644 Date: Wed, 23 Oct 2024 13:24:42 +0530 Subject: [PATCH 27/30] audit changes --- scripts/tests/fairyring_contract/Cargo.lock | 74 +++++++++--------- .../artifacts/checksums.txt | 2 +- .../artifacts/fairyring_contract.wasm | Bin 202402 -> 202420 bytes .../tests/fairyring_contract/src/contract.rs | 8 +- scripts/tests/fairyring_contract/src/msg.rs | 2 +- scripts/tests/pep.sh | 7 +- 6 files changed, 45 insertions(+), 48 deletions(-) diff --git a/scripts/tests/fairyring_contract/Cargo.lock b/scripts/tests/fairyring_contract/Cargo.lock index caaf3a1a..87f3ff3d 100644 --- a/scripts/tests/fairyring_contract/Cargo.lock +++ b/scripts/tests/fairyring_contract/Cargo.lock @@ -37,9 +37,9 @@ checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" [[package]] name = "anyhow" -version = "1.0.89" +version = "1.0.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6" +checksum = "c042108f3ed77fd83760a5fd79b53be043192bb3b9dba91d8c574c0ada7850c8" [[package]] name = "ark-bls12-381" @@ -170,7 +170,7 @@ checksum = "721cae7de5c34fbb2acd27e21e6d2cf7b886dce0c27388d46c4e6c47ea4318dd" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.82", ] [[package]] @@ -235,9 +235,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.7.2" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "428d9aa8fbc0670b7b8d6030a7fadd0f86151cae55e4dbbece15f3780a3dfaf3" +checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da" dependencies = [ "serde", ] @@ -302,7 +302,7 @@ checksum = "1b5658b1dc64e10b56ae7a449f678f96932a96f6cfad1769d608d1d1d656480a" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.82", ] [[package]] @@ -326,7 +326,7 @@ checksum = "c8ef1b5835a65fcca3ab8b9a02b4f4dacc78e233a5c2f20b270efb9db0666d12" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.82", ] [[package]] @@ -432,7 +432,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.82", ] [[package]] @@ -526,7 +526,7 @@ checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.82", "unicode-xid", ] @@ -612,7 +612,7 @@ dependencies = [ [[package]] name = "fairblock-proto" version = "0.1.0" -source = "git+https://github.com/Fairblock/fairblock-rust/?branch=audit-2.0#995b87e70328681f9d0009328fd0c575f8a2a1c7" +source = "git+https://github.com/Fairblock/fairblock-rust/?branch=audit-2.0#be5cf6dfb949a70c2e5caef65390f804278e3f34" dependencies = [ "cosmos-sdk-proto", "prost", @@ -836,9 +836,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.159" +version = "0.2.161" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "561d97a539a36e26a9a5fad1ea11a3039a67714694aaa379433e580854bc3dc5" +checksum = "8e9489c2807c139ffd9c1794f4af0ebe86a828db53ecdc7fea2111d0fed085d1" [[package]] name = "memchr" @@ -945,7 +945,7 @@ checksum = "a4502d8515ca9f32f1fb543d987f63d95a14934883db45bdb48060b6b69257f8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.82", ] [[package]] @@ -986,9 +986,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.87" +version = "1.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3e4daa0dcf6feba26f985457cdf104d4b4256fc5a09547140f3631bb076b19a" +checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e" dependencies = [ "unicode-ident", ] @@ -1013,7 +1013,7 @@ dependencies = [ "itertools 0.13.0", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.82", ] [[package]] @@ -1135,7 +1135,7 @@ dependencies = [ "proc-macro2", "quote", "serde_derive_internals", - "syn 2.0.79", + "syn 2.0.82", ] [[package]] @@ -1159,9 +1159,9 @@ checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" [[package]] name = "serde" -version = "1.0.210" +version = "1.0.213" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a" +checksum = "3ea7893ff5e2466df8d720bb615088341b295f849602c6956047f8f80f0e9bc1" dependencies = [ "serde_derive", ] @@ -1186,13 +1186,13 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.210" +version = "1.0.213" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f" +checksum = "7e85ad2009c50b58e87caa8cd6dac16bdf511bbfb7af6c33df902396aa480fa5" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.82", ] [[package]] @@ -1203,14 +1203,14 @@ checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.82", ] [[package]] name = "serde_json" -version = "1.0.128" +version = "1.0.132" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8" +checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03" dependencies = [ "itoa", "memchr", @@ -1273,9 +1273,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.79" +version = "2.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89132cd0bf050864e1d38dc3bbc07a0eb8e7530af26344d3d2bbbef83499f590" +checksum = "83540f837a8afc019423a8edb95b52a8effe46957ee402287f4292fae35be021" dependencies = [ "proc-macro2", "quote", @@ -1300,22 +1300,22 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.64" +version = "1.0.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d50af8abc119fb8bb6dbabcfa89656f46f84aa0ac7688088608076ad2b459a84" +checksum = "5d11abd9594d9b38965ef50805c5e469ca9cc6f197f883f717e0269a3057b3d5" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.64" +version = "1.0.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08904e7672f5eb876eaaf87e0ce17857500934f4981c4a0ab2b4aa98baac7fc3" +checksum = "ae71770322cbd277e69d762a16c444af02aa0575ac0d174f0b9562d3b37f8602" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.82", ] [[package]] @@ -1349,9 +1349,9 @@ dependencies = [ [[package]] name = "tokio" -version = "1.40.0" +version = "1.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2b070231665d27ad9ec9b8df639893f46727666c6767db40317fbe920a5d998" +checksum = "145f3413504347a2be84393cc8a7d2fb4d863b375909ea59f2158261aa258bbb" dependencies = [ "backtrace", "pin-project-lite", @@ -1420,7 +1420,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.82", ] [[package]] @@ -1544,7 +1544,7 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.82", ] [[package]] @@ -1564,5 +1564,5 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.82", ] diff --git a/scripts/tests/fairyring_contract/artifacts/checksums.txt b/scripts/tests/fairyring_contract/artifacts/checksums.txt index d3f83ce4..0d20f445 100644 --- a/scripts/tests/fairyring_contract/artifacts/checksums.txt +++ b/scripts/tests/fairyring_contract/artifacts/checksums.txt @@ -1 +1 @@ -6868e236b02b69d77557e203908940e25b5ecc70a5649880399732f5e665301e fairyring_contract.wasm +8d0f9a419565f07832c886b48a8ec6dc79b374ee94fcaa7291c07ab83cbb9ac6 fairyring_contract.wasm diff --git a/scripts/tests/fairyring_contract/artifacts/fairyring_contract.wasm b/scripts/tests/fairyring_contract/artifacts/fairyring_contract.wasm index fb93167db202747851e1df4e6b8d10b0abb845ce..ee341150c0f5282097936a3c03cc7176e1f1428b 100644 GIT binary patch delta 18642 zcmcJ130zgx7WY~EGRg%mlY*d}i>N3n;DiGvN5vs?w$wC7a6p`g)O_MpqG=A-Tx2-( z!XeYtpe_{|8Y1t7X^Cb@O67oMMrB1x`Th4f_aa#Dz3=z^exLo$U3=}l_S$Q&z1G_6 z?0x8;hs?Q$%tx9CZ%GViS!i4b?dreB7 zHD_MxY<1A|v_UiH&z;e&chZ7{r3rDJrgmFJ)4Hvsr%UM*TDb6;DNA0WOj^vO?xmN- z2c#w(rvf@g|0dPe#x=sd?G^fp65?zlT-#D+&N|nIrksWTX_S-Yb(<(K=Xvkf1?A<$ zTe^#!Y>z6D^L0Qg7iy5>8{A7!plx`=mK0=5Z&*e_Ib%XYW!0ia;nV%OhI>`q-Xo;%SSu`k>$I;nh@MZ%?)Q*an1~bsAZIKqGsnTAPB;CaaTr zcM~65QA7g=Z;1^E_Y|#CZRwG%Z4!N|NdvH#U3WJLg*5q13U%VX`f#1)P^h&uHEN@` zG?V0|=sfQjk=0f;|0r2=4lL;BA%1w) z_RBxs%IWu%w}+QiHEFS_k&0J=u!X zi36{nrnEz4PV=dqDM#yeq@JwmQ-I%`zU3HkYrh^C-)0$5Kj-@aOH7X9vLPSW6K_9f z8#v~k?ZC2Ay5#B8B)FV@N3ttj{*#cfcvUwF*|fJn(ZaOc4+<2^dZBn}j*3EC<7d_I zEL3+C!K!NyC0<0Tu39O`I|>!0;8ZO;=c#9372=oGIU-{bHI7nLQk5v7v{n>N%#TpC z>{knvR8**nmT7x$ZD_qCjtb3Wb6NL-cW%aU#gc(hRniJ=anDECj<1{am)Z^<^}zvb zB5Wg`Uu?U&Hqy(>s8GogZ#(n+?!R=2u3$ zh4QKcEzIQ)G+vyOcfidhpx~ci=xZquN!}i2cR8ywwol$@SG(TDY|`s<8XO*GqEg%R zH}fcxzcN#6+mM`D6qa*5XS~VPlT3=q_Pjle|Flp9`LNZG8rO5z+@||Do4SxsPLX{v z!4ebS*@fTocTi;ueRnO&d)|ExueN7PI5c9AMRaUw=)@aGdlR40Y1s4gvp5^wTw(7GjgyGz>S4tT}fk2lh#lg_Q^L-9`S zY5ux~+>^Xbs=H=M)$$;9jG}Z^6yP4I+7aL_6eV8A_vcjJ^flJ%R+tXMZ*P#n|IiOs z+mO2fIbZ$oIEgP-<#hV-kgHs%8^68-Q+?&PEz~ckeH9aslHZ?2hoN`>1&0W`Hypon z?ggQK&AmNTnA5s?w=0CSpCRf`)~-4sOGCbx~xVP%`!Dv!0WUkIi$eYD($ z6el&pH^Qi2m{Yx~m*$eH9ebctFYR6XV~yyzo0QNul6p|c+UwxfM#}>*LT|BAQN^iE zso19k`2&JpZ*LbYNHHfiqr+6dmCfi`uVOT*1bfvAczJX1D&!BF(~DjIBgdK{{v!q3 zqNuf3VGZLF{wRu`r79lMf;9h(Y{>YkXb7JZT3D)nr5=RF1(yO6IRMaPSpcjQjYL4*X&R42rnNQXsZ5Qpzt@X=`kwh*fumY zz3j9U0zAx~GWgz*sJBEtB$`zOG(e(y$UZF5V2QfP);p3oM52f-q@9wj9VM#oS{opt z!AcM7+a($#TM=&*trTcSVP=Y6Z_*cFrIapNDgW^RPH1!epiKUL3rXVWfKYhvNMoQCt1R1;gHOV5($#8{~zXsbO zu}H~&Zw!U|S3pw`&|n`7_9gsT40Ypw#FDpooA|rd)QIEb$iL$QCFv7=pd?JRwpK{a z8}4EOFlPJ&#D=N1huB7{6pK<+s#bc^Va&QQ{V|@6MKWCz-@Wm^2%o?oW{*{K)_f9@DV| z157Z$a|U?*F**avX9iGXfb9l&#{d@%@S6eZ52VIw&8Us_QQb6Os|h3f>La^iiUIJrBg9AZpaYp6FjbT;$x z!TNCJ2Dop4#zXYVZUz`Lggy=_zl622YFEn~_Mj*As*hI6J%`dd$o=t9Y6x(1sIEAl zVLE6xjBIVseu1uGT47CBQq9^{iEWYo?hT{Qme@LpxvIWeE>{hsabPxbICTQpJe=Zy~HeU2NeGP)qPtc`c2SJ&WKy$%V2}A=&P`v*^S-ln`Xb!r3<`ER@;lN7x z%n16(!!gTh{^v+~rKO`StA?Ya;?|cA8JxVTdB!Me>FH=*f0=iWqPPYQG#}H~T}bu9 zOjnn2#VERkSaSYJnh#5VbTo~EPiK#&iQ>pN+(e@vK zSaQeI95KsNJA?ez2wI3-mMpZLw>5sl#y&|DMr9nGgyf-&XC}cz%h|6tb+%<54i*S; zC@1pMPthg+lCRKHE~Ha6`J6nKn$kI5H^)jh&8_G#VcXygRtvI?y|WF1~%sj5ql2+Z^xzdBK$-_41CnO}G+ zvP#n}_^^f_OzTvb%G9Aenjs+)hRWIL84g)Dhs(6djwDLJg*s$!^jWRZ`uwTUQ*I z(_*S+h1_xw3*5E!HN@^9&Z@y&fgN;W&aU~gLhmX$m+%iMGz**JxXIMhBM&mpw)G$r$OXGOWO3E$z@r_(kM$DUiv{n98_?)lH8!EJVPK^oph?(nZ^G%oxI zm`VTE&tL*;&R{Gk;WaIf=g&Z3s(J4~qJ!6FyzC1v8B6kK(8eJ~YJ${MrY3Lyde93tVIv&|{knHxC-4Wh9ydAWf zQ{~O0CkH!~q^V9N$+HFHya90>CtA73YhHTg3xIa8HjeSKYvWlwaXz(zb!?oEw-?Op z$b4FaxZh#{b*fnqEm(6g76k7HS~kD;G$nBE0$Li5#dvpvZ}Tekg~Ei4k;^YW!LuoTW&5999^Q`i5^xAziSEBSu1gaV;kEu9jZ zw8E%mP=d^_b(?HoBTy_#QK{Nh?)MBG`kV3H^zp%^0Y@&SG2sTAV1rF$4I33Dtp6R} zwUiRW4Tt$pM5X-aQp1#M$v9lfSp4CClkqHC_3asya5UK=%kk3i_mj%z&(f(Gk6K2b z)YV9@p~gr!%#v;~9Gr}|jlog~Z27t1TWhGtYKHocJqqPmFIo+E`;S!Xi|iYg(+r{v zzPExV0*qZr=Q-m5`E$}L#LK5vl4^f@6^#-|D>lDM0RmyT>2nklXuOyhr(%kH6?N6N z+Na`3kUShs=}em`gn11;>akV6FS=Xws$ixJno7@cY6cXy)qXI8o*^o;N3Ej*SKv1{ zl7-y1o+KqmIVXx49 zhq#Y|ZP}~X6(5qR$sQbbyv#HA&>DvvZZAs-J>+QI!45eS|xe3|@Oc zD#(880QHmaZ5)4)-lpg5w-3@=BDlus<&=#0KydDh{N7>ef=u$)!}Pf9G~fufyKH{{ z2=y87Na|d)V$;J(o#ukmf#q`VbL=SlkyaQld5(%&uXV;A^_PnMoP3lnVeG^=X-9(L z0{_tvYBmjLs!3X9O{&QuIoK`_^2{8hl_h*kf~)M4OM}GfVjh=EljsP4mcQjRBC}ZiF9SIukxT>G_BL6ucWi!}2JkFdz9q{;MaIAR+S@b`TV;DYxbNrHc8YWO zt%u4wC8on+`O@94OI`9B7z1K%zGs zXsFp=qASlDeZ$Ru5`D#iHZxl!ddh)DnQ@LHv>zO3yxB*hdq2_prfbd3-V#4;;94hn zK_IkeKQ&l)GJ8q%eFxeGw*)}HbD+WU_(*80&KbnM^7u$-TO6oa9v=y9rvnX@$45eY zrv}CGk%-kw9rzhV9v}(r)l!35g1i?H+7$=dS$eI|GWq&@2wxdzxN$y>^f-F~eh{V| zv@gr23l!o+FFNhdS-~@o(U<;C%-MXJnBJ!_Ui1OIQp1X^1ym*1C-gYAaHTwZQW5;v zw?uZ*-!EkrnQxza3U3E+xGE)(FK4(y@BsLOZ(l&lbCCl+qor`DO`p*owO}2NC|xbj3o~8?ai%6w z7ocA9d{CZ+K7J7|Rr~pwi+GLNZ{K^7vI&;o{|k(l%j>_O_h9UOFHr}#d>qnh`Ml~9 zwROvr&ZVY$lB$o@wFy2%3Y#KrkQpCB<9hX|#%IDw;ea)(ZKnFR5W$tu{wluT#iM zz2xhq6BzvpWNm@$H`lToSy!qRXEiGB2~C*Hq|4OYF){n5%j7~2W^?EY^?GH0kUy9RP9GzrG%C)5wf&f;oSfp4Xp$)mrCLcpu8mN<6)!Knk9I#?l~cbT zJ|GnRAiF+in7VV$24hu8H5h|~Msqs~1Z1OSfJ(igF@2(S6(J8GFB(Jwng+lsKl>V9oX4}ip>AIK5D_xh z&13sF)CBdHP#-0gg4qr5Hi<-mC6J~i4Ow56ByXf?Q*mdEStnkl)8OfI?SZBDyGCRG zj`4+S)a?-m;|LQDB~1?|i9E>QUdOmyH3E?|Zj-~fhg^ry`uyDFLKpB$*J*BdCsSN0 z%Gb^s)xl34T&b4JNUm-=S2qXOM{m#=gR6_d_2>;8FYo5>Z{X4i4q8Duz`Sohm}B3Y z6k%}=OZ_n!S2)>{o0OV#7DK8YxLbgy$TC!BSfEx4O#hKuM5c}ZL_cY~QpXQ$465GE zExx4|gUXEV5wJPX(tuF846;&R-5NiTG9QG?sJc$FWl6rNX}e`fcZhtHv?F}}TYA;) zjx1O3obMq?Z=O7&zHy%`+{4@o;(lAx$MRd zfAu{DHPH5>D2XK0>m`CSz3-{M&kgxCztCh6mL0B`vEQ@)6CCxMp9T5Q`nXNw}pyzStAE{H2 zemAG6uG1s*6_C?`KD3{yRWlDG&cX_;SbCKtkaiH6eep+%@{%^D3aQLu z_WFsmrUoO_>aOU}4^9TaLQ*-x{hXhujjBf!T**oSkQ*2QQePzp)dxROm=P`XS~(WR zMQt#9eo1Eb{h53sC9OV|>N>z%=mWqQ|2nS&f3rJDJ=SsHeLi96`$(qu^^c^rwe*Di{?O5P?^vhQyck-q!3+|E7Z z{4&2q#<4@5Tj|+FAa>H+YqAxWUmBEvODZkzrcT}jHzQaXoZ^y$#*B3kn!7xkMPsFc z?MPlIYI!;bqzj<*aGcy4b%C<39u7~8tExhN_cwY(EMLQSf1?dZ0y3&-P`g_g&v><~ z5ux0W_;01eaX=y0`<-5RL+Y=($4eFd$?ME zjvuMUX=9arOf@nYT<+}ngMK7z9vkmdL*J50Fx3wZ71aw#WZr!mN=U=JNN8gHA3Tsm zv{?Q#KLdZj&FMW7eFJiTMxQsOAfE72fv3>^gb<&}Y_5%~NNacT*9Qa&2oQvvHJS-o z$1Ui~>WXbwCTphNu)$0|?JD9e#ZEF+vATF^x9ov#Vhus|EO#+diuH?!7}}`1+QDAS z_zg4ehS*;UB^68LqCMGDtS8*p{a8=nEj62Gn8i4s{B^p?!)=hc7V{ToF<9h%&*UST z@E~u|6mLljyhST(9lFx*4O4U1?!n~D=(+wTFSFna!}T}!p(_Eh$yXeb@J(MaJbXXw z6<68vC<6}Wya~rwCcw0e8{E_)I@KMc_`i(7?_0!B#8r!*Scti=@e^qPcl^Xi0bT?B zMSn!~?fwGkDxdTh(SaF;gJJK2)(soJ$Swh*gIN9@cMT8`L$g33Wx0=k?sE{Ht{Snx zoABY8(S~d-( zTLQ&nuVRMjp6b&PSMCV2swgo(&p{@2OVeFd;Uzm(*#E3A z=D6ZuVs@BFplUu8CK~x?SHVc4v=RX0grJPe!bFm|b(^;(P&5y0B>c^JaCXO+d)fB1 zMgm_zuD)Y0Z!G3hK;DmF5DgKa+Nxhr&iK_nMHPJsf#8T$gg48*cYXM!aome&xl&eGpl6Jh@eALN6cgw} zp3qbTjXHtBt)#!C#wd#R>3Ti=K3=!BWWSM=*R4He)P7L6wq&P zRKCr`E*xMSZYCN+-hVd}-Mf~eqY;DjD`&)@3TKT*xTG{|SApYb=XGTGq`!r$CaA)M z7}u-0I3W-j+*^wFu)TzqBIb!qXKz@a+~Wvytu=y7>9vX)wMrVKWZK1AH6m5+`!Y5= zD{-26yro!&gP6ynMFgF+&x#g4L}z$eD-lj-d1ou^ekbi8v=RYCC;41!F$1((8_;HP zavPBe?2k6089-zV;$R^kj1kWRbc#j)lRPq3SOJ#AibnJaXU2-fVWsylX?IoN8yGq5 zU~Eb91qT|@E^+HP(Tc9{lX0RCSpG8(f#V>bj)PLO>=kjM4Ry|v-El3UcXyR1EQl7C z2ukwy)e12!#B!s}S01-G+e~n~LG2(?7SC!Yl3F^VG7=z1P+kwV`p)I-gTNz2D&WiQ zAjDVf*&cKLfLpZ}F<>&LJ?53g%Ooi0-R(uk;4RW;uqwJ>Zu)Y{d1dkK_LzJYn>&cs z$m_dw5M${yztllI0(KWWh27YMEcNCAwhQ-I3}`o9GvcHGi;M3fyNM62!+umG+g7h(ebU71)Q2 zi+2xgIX*m+sN7*OWkuSRoQfyx5?<(wP))e4_m!wLy3P7LbxdC6`Ka;}BoLCeg?IGC z64~q}J%t8OxBDasf1(n*wYS*hf_>r5M@46VTaQ8ox43_Q@oqr%U8f1VVkUB;3ENncAve(ZUYmp>-nr6POR0a9-#Ic=bBmtPFj?edR-;$_;*FAWmo;6lF- z!m_`{A%peR?>tzVls$Q{NG9w_{~DsN&5a=<8ip1yR75s9gsmIvDDBf5r+fOS_?iW( zanVlj@S(8GL!32Kgwk=&LkGIfUk(*b>-2M4p0nQ>4j(3(z@K^!6HUdTY92CN1n@tG z33oci&khrlVG*~6iAe|~gNKV?gq3N-vEv`&jl;#XCr(O}Cslz&R+k!!m%NYZ0mP71 zdV=Lw^7eCxoaAlM-ha?8Kkcn8)*C$VaqQWr?I#}>Jqh;dIRf^1lH*5+!IZ-pBSZ&i z7Z%OB;Kk(hNB_cy?lk-97JNYNOSZ;uoM!s_^dyME4S__hoDAbgbWGukM` z@{^qSqzEFrx%|T)9D2F8jYy(El(c}?q_)2Xe?VLzcm^Qe3mcD z%47W7XkBq*$A}3~T)`M!ai5Pt+fVkYF@|Nd7%Lw0aM+UIP01pZGsj{wzw&ouMQ=LA zZO4f&^byY(2hOK?(>SpiZ4u)U&40C@7>`QGdToMkUc)Bp=CyDlXs+2kCW&^kF(Daw zLl&=1h9{rmSUc=c#2pRdQdK3h#nZcef5J{XS}=4@2807=zJ|j525DCy3%`0 z7R`bmvVZx-pAk-$PezQ$V*6xl*Vp;ZWHBMI$S@F-G+8*}U|2>GPn!aj74g<7FuW|z zn<9RIz3-nYI(s|SA<5l%$Q+m=O%q{Q#KzO0!z_-UhN=C|)2HEFaCtRvm?rW>Mzy_9 zs+{p=erCGpjxRXhn+}iK&X=Z(Y0z9!n&=9dpd@4<#I3DB}Gc8Hzv#r(KoVN(tXx z2#d&K?P)zyOn4ewZ;5@|)51daYrCKfMu-MNdyDfIiB)xtxc_3k^Yq2gdLD0F47HZ< z!Np==_$H)Fnm=NtahRLE9O)b31B0!PTnM1 zTP`!uDD90*fL*w#;#W3_ZuBQ#*(8EmKTst;`@@<%tbH7kpw_8<>*hMzuctRUwLf69 zh-ms?q5^-pp;BsuNvpLYCd1~pZbop$)lmKxF-o|v$$(_5GdS!;1ldv^`l7&{P6n@h z5!+q`A9+zcg<79&!YbBhaNIVr0I#+Cwuv4Hao=u3P~T*4%ECj4MVZ9&@D9Cl&JJv#MQq!FX%+E%JH#*m-<>*T%uWQHA|AF= zCt0u)dr}df*ogs)_{L6=1kidH-c*Ws#4Zuz@d6GT^c%Ssc8QY$8R+nTBDV*Kn)+>Z{92R{!fYkp1e=|^Z$Y@em`C*Ub6S!FFZ}~-^X7UsR1RB%K65G z_aMAJmhq>rixnZSZ9J}6-SjU4>FqA`0P z7Eglf)Wg`gOZmcKf%{*3vm+t}*|mNBQL)B7z3K(0aeE{7J;2PsF3Prb^7zOdZ>ALz zb6hIo6|1Jr4U`#>%y1ET(3Dw&)oqg_)U<7IA&+#Gx4a_;1?J&hR(|%ViRnHjg@oBl z+t0tegJs*#4d2Cj?dM+aikAQ`zl)XKzwJG}4oJAY-+S1Zd@DCQh4a85l{_^cc2sV^ zoG;p#u-e`QxG3U8zI zP7yMSC_a2r1o5GhqN8cRyeT~7l!)fIQ=&6}TZ97^l!8o2GZ)&Io)RVAKFKMQ<}RK+ zf7+~>~t=zs4 z;hrw_4XFaS%@-oHUL;UI^a-fXk!M9S&%O?P6tDb3+`vYbdI@`JHSfJ7qFu8aSd>u4 z-(ZgRoG~l8&D?p4Qp{b-kaiXGk}@Pm#k{vn%(G?(Ta<}l+F8hxBt>!JIP1{|%jPa$ zB0O}mKl!E1nzr)4FN^TF{Du~#KBzwhbOr1=Vdl(P^VQiC=FUq|=cde?J!|H?lrE}L zf%XQHjvHPPp&^z~LyH4vsq+?0nyOBkl`N^0Ry^dmyLy0-<`G*0|R%xIAkZjoQJDV2>a$^yV< zjt)*-wn=?f@`Z0Ow^HtXRg808szPMGeHCf`$*b_9eE#+-R>;N5G1tT+A(2*#B1bL- z^YMVqp(kk=rTpAAG0bx{nl&B$`kLt9q8unT_!{a=C$*!u-HG!P*Wp*gdD(R_h3511 z>mtVUYJ^2;gwFH1@eQ0y|ATklz)EEDF$r?{@(s}dLjNkUTU@_FM0=VeE$}c!iQ-2q z@Sc^(lPg3_qcNzJb64dOO`f%2W-{y!HY)$E=Qk@v6VLr12?mO@iV6|lp%kcGwgNy% zs0><|GIw&?tf%E#RimyR>UvFEI4wCvow!(Ck}`Kz7uCXTZ;C#ik2SR@?r0vyD{qQ< zEj9p^j+F%{M?C0&`G98N#ek9=pLu*MPT}3{`nMvzLrilEZZQ;P)^tS~gR+#N4Aw49 ztqXc|!;^@oC!XGT`r*m2Z~smlHd)TLv?xo`4GO#z$ex)Sc8goc$^F+-n15;fpV9J@aS52BFZwBIQ#cNSt@EN zm)*hYmT})-MD$aA;|xn30Vvfr9*_Y0&0IJkZCbKAZRYF+^VPJJnN#LZm42`k?J@*9 z+tVh@o3GAWJY(XlG&KutfoQAY#bv9!}?|&j7s}=&Sk2uYzHieSbqlFXxQk@D8_|OMgRPFWpv!cvY`GCsiR! zEagR2$m?=Bs|sz~xVQ>|wt%Z8R?Shri|(H7J6PZ;mFe#RBF+F!^t5d&67R)@n^%E}y-N(JHw5F2=sY zvG*Wz6wkf~!otMOg~vq{r4OH>UKO ziutGr!P5mJJBgM7ugxSExC|oB_P0>3%~U2B{c5#8k8=1!xHRIPHFfcdvI9s5Jgr(p zJ(AF@WulY$N?BJ!s3@yZmL4Rd)+(<06RW<8gYS#(aiLu;dQfPKmH<3XTn<$mk9Ojm zabJw<<|ONnYMItJ@r@`4*TUtjWNetdVCG`E`9IV8AF-h?Mw;UNoIT=TP|~eJUraNl zThkION@rku0I}H0Yk(1e9|6h`8p>ue4bq&QKR{=xBq!cjC`#j6coX2VyR$tKxYR=^ zXOZa{3guv7iUH^=Og*gwAF(KMniC}f9w$BxWvPlZJ}69+XdqimkpK5i7UfSo^9t)lxcmnZs$0O^a@ifEJ#es(b#^Q;<(-BW^Jd#d6A$VHjnF>eg zV2csMRi}=}7M?T}<8m@FzUFZ{JBYcJ!Y)(baU1zUKrt z(6;CCZl>U) zQP$!Ten1&77CN8|na%-9xzgP<4ByK4@-Y1dkl<+w_ZyEgy;-Yg z%5b~80sohrcKk^_Qy70&&lKXGhgUGKx9amavnhyUtMO+no%&dG+Zl=wB)8StcvLMs z3Gr7(OK1B$C(dbJrmi7xfQ|Hkd_ZZj1%Oh%vs~b1>SMhF)C=f+KJwMzFq7k3TeWc58r&diQMAKFJyBm3yER@Bg*9d?l#IwpmO%c^COQT8XpVjOQqP5=S>il*`Q zo>5^G;wt&sC&&8O6Qlhw?)9h|dr(wsdq%XMeMpqm)kk9Y`pEGa(ak_no`_=RQss(a{LBoR8h3!=Zq9HMcWr-HFOM}_o&HL z{CwdD4a9d(*$+H%$FY8-ueXP)nzTgw=M(cK?d6lw>@QB(Ba8he?y#p!Xl56alR&b= zQhP`tAu0OTr{i!C#-szcV>(}z*$3=|e)-#tHgq|)qu4L%!FYqO+Sx$YI z7HFp(*YabCPTQ^9!s)alZd+?9Q2RsMM|lk=%GOZ+WBY?%LtN$J?fvZocBnMap1$K} z8epHg^MdT&eOJG@0nsL_)uMX65+gM4VZI&~?b>tLkYL+DG&Hbi2kgK?Z3FGE?V5z~ zUb_d6%br#~-j{+L2?x5F=p*}_H%cjjcddX+ z>Fs!enmUdn<-x=8O*S*ITNIy*T)W|k5ra@m{ zvy^ScI|)*LKfg0Vf&nKYB$#z#On|T6%?C?UeKd~@ZI}JjiG7WHlf?k6^OTaI`Xo!; z)GCz>&DXK9;ta_~MK#}RG`kufdoRL-1?2xjGl9C}!l_Kc(qC9X;db-%Ap7oyA&&JQ z#F`s!lTz}9Jbg){Xm6{BMfKLs+bceLFt}cmRp^iN0Omp@BMId)x6 z7N|Y@O@yTU)0J##k&CbP*Ts1BTB9aT@R*<|-4sRj(!4XY1HfAA0sH6VQ}WsPV5~W8rPJ!f)KJ zwG<^(T;^#4`h7d^fnaT?rIT6`)EH%0P0$eEadHzmEaB2 zcazg~(R84n?Z~ znk=l`B7sJUn)i4`5{=;9iPR+U+&}deRiscS#A>1aiz^eU2mhQv(ScR3%0`>f7=gx9 z9G6JR?3+ZsgBlvqItF@ZmK*7fxa|;@7DhEZZ(nmS@VWC8IB5h<{3X|iB&GthSdD%d z^rqm+i4+<4v22TQ_xzzA_KaL!Q#tN1aX?#&^+RL!GHD zOyu8Ps4E}qOg*3?zjvlS@BlK2<5#*+Gb)tL8FbFsxhq+v*W!NN=<}Guec-`YJ0yWL zl`>g4Wnj9NpW*)9p>$WB+@0Eah3y6(TC|q?1~{mjrsck2S0{w>o!->f-KYBCeSNAA zqE8IJG?9ue#uPGKdD^271o8Yy)XdYU)FZt;;XtyNRw-3aa6mum$m(PY^}JWn!CPo5 ztj==H-ems(ezy;e^UwPiy4yfh*Ou+vx-WI2B2Mc|G1!f@071V)M_p-$E4?_zWqq;0 zGi>cgci>aJ`%@S6uI^70czb`0%;jVKsWX*2Q58v+cd&G5WORsjoYjHY^;JB5AUz6j zX&{9GR1c)40Fe*sAjJT)4UlJmg9bSJAe~0fy@RMp_9_SLJxNhw8mHW)5x$;UgJ=`- zfd(?`i}BEEo5Nhq7QNYWe{;C2*{U~N?{AK9HT&w#zW18B_h5U4I>nHC6phtHx+ZL>H#fY$xrwW}k>1?M-OOSry^i_!57p=Y zw*jsjz%op)Y-NCf26)&2YlqPXjVmu;kE69S7hU?N9}-kQt%9?L)4B+qbt%;#D`tQk!gLR}qBxjSfP$V9TVd<=C8+%Bu1 z#tfRPUlG4Eh7!G9SQ-B|hW_R4TKRSU_e1nzD_2`yEk#$w#Y-+8+_bK9{#a_|<7%$C z#Qz#gNsU}+5tgr;x@y5nZ(ZP^ade#uwvMO8Fq%ik(|EX^)8lEn*!>kR8BZxb@Q^}A zwo-m_0>Uj^&8`VFpEk2?BBFKykC;fIor(`ghZc%JkHD0X441EH`Nfz@Mq)5))Y9o6P!1NVgL?IK?pvNI^a|5Qp2uirbU?qobIl^TNT z(o~)AvQ!FfQonmhhALFk>XZl)l0Oh0373`}d=!ijU2JnV#U!X25Bl;F=lKT&>HzKa5Vb zY39YSPVJ4x+4fc70LuOJkz~GrWwqPbT zN?s{!pCN?I#zHGevbT1H=$y{tG3B5k}S%d2H< z+>VZ2YLDrW+-o*@!Ab_qrX_TekIkm-bW?(ny#HZr>t@bRM>gf3PK^-MTBK7yq~lrX z*pn*R@=uxYr)A*e+bTx}=?LwX)5W*@E+zMMcSWTU#xL`}IkeT=71T?4P$nfxdwn7k z8n=<($;27uGFNBP)TrI1(q6rd8<^nQ8yFi(ILQ_AlDTjhwWktfNH{0sY%eT0DD&HM zX~PI3r$K5bbDCh4Tse&mB~Yl%X@DZTvI5*fnj@$D>j5?I^3E)JChFW#*~@CA?(ior zvcV`p+6DaJJo;9yDS19Mg}^4xr**nZT0oKhFmbcAAbIwdsaT!Hc%*UvT0m!2Hy0*@ zZBs4VCdoFqIKGfR{l9x1Sws_tyXB*)Zu!W21mkW2&J|Z#1;=ZT#PU?3ZLf=CzRh*< zJWg9ot)Up378`!{jm5MK-Z=gd>Rh`QTBv3=_5!K3wwaGErS5$A5n3jtkhp}#PIGgh zHFa}ks>_v{q20u+af*@*hp2OTwJsOnvZ^i)F3;7)EBVS2H!KKJ4=VyBm=kMdB>C3p!TF>)ernRowJ=aUVyqPxPVrl$dtRED>N1XHXSLk)Y z9am8xZ-0$O&{NJEuhBsLbl9bc4%1ra%_2G^LTf#QT#MmM2%g|1A3Z=_kP4!baL`O63B64JybVZ*0+T*0F;xEpQ?$DKE1h;&ib&xJ# z?vyuZM|Z!fF;kY|xf5{n3R+Spy`xsnQ_T+-j4k(}l)aaor-c&s}IItDi)- zeyDfO)>>G7C4SVvwa)T2g3x}hMJ*ED_mM%mE#4&nz2HJa<=vIgesZDy^6pA#EB|A3 zw#vIJp*`zD!{yzT&|a-YVW=Wet8n3`6?uClH2WE2ba(moKxn63XcuX{Ld)f=Z(--E zKVY?t#(9^Yg=Iu&+nqUObe0;s(Q|HPb64=Zx9L)CZytS&-oJ;%mQ%IdkjUfI(t`?} z{ojKr`wfhsv9TZ1q6HUQTHLf`1i!42^7CMVg(!<`8Si=vc zlc|#YMQi2G)*sO#0VUdfhT2Lcs60b4Kz}+z!=XQYK1LRJm9svk(G7QfjUfWpTe#2F zHBw%->20l8oTXlt9CR>P5WMRwh4A#V)DEM!oTY(*=Pt`eWK)`-aVGmO-#m-N=_H4I zLXX4Tp8JGeR*To+I@80pURZI~!%dt-%|I>kqEg70>*PTDVs4eC{(c)BjlVfzPSW{Y$2*`l7p)*o=xn%c(Rl;6q`jYA| zSzd>p#H_k_hxp+AEB8(7RQ zd_xO+x`}%B^_Az;T3OZVY&6xe1WDCXr|RjVI`|4rGN_sjs*WqT#oox@U!ge!ySqvb zVE)(ct?|KY6k~HwOM|c&53PhBzeX8-%drsE8#nn-c3FnV49(IifayO{ib&4!pBN~W zQp)(A@<7xZIsRK}nSII_9s^~PmN+C_ZiB4Uch{m-N`iNzB+uJn@TxA8&9WrVb=pQ* z(iOc3C0&1Hb%{g@@gorlYg@`BQtWCeE;P%2yysim)8?vdsdBa4l8CI41a8(vY9w-# z7k!5zC9lfi_|d14$Zi)>CXr$nBB563?0p@#X~;o7{4X{1+b!3Xj~|^~{`tSKn3EiP zgW7w_)#C-qq#G2DEm?L0N!Uhq+@PdT!>l#`4D5dllD;`H`ev4J%?*8ctM4hkmlR1$ zp+q-O&GL+yZ=juE_GYy~C*l2n$Ps?!d&+Qm*Sb0--CKQ2jJZjV-t$~0=y55(c9XLH zX0S&+HShKVbq>+r6e_C69NiV``hhE$+#e_*)@>}%92GBl=fnuje+YC#)@!=diuwEx z6laktsvRR)>pXkZIh+tC2 z^}N9=wp%1@zkXBhdi|%ru3E$DFEmixyux#S!A)5ezw`?Yjs9(~e$^07nk;D~FF1t? z;H8qU36&ghn_{vz-jF$fw`4i@TO=_%;C_vSB^c4RKu;g=B2R-ztN?}A^zN~E^@2^p zdr)%qv0_(*<|Qw8(Rfpt6QiINdahGIj)9)uuB%_8E?Cwzz`c#}daZ=ZZqoze<{GZK zP0t|tSXWKM+F!(c#;LKEg-V0tzvL3v5hZN>m0qAcF8mdlekuR{D{g@ExZ!V<0Ic6{ z)GVs-cgU|3*!>*mf+~sJ#E*VO2QD}By5De|dXWR~;Bd8?r`(}-w&JVk<$ffVYWaw&Ow20|*m4dkSAmXF9IyjJ|Ffx!88GtaY%seVQ4bdL{{LF!w|7p-DAVrm;- zF%Zsesjp}qU9U&Qf29W5(Dx3Y6|m+i=h*P&B4Arz5zEc}#3hM%_=|lKmiUX&NFRJ` zB0^Mu!!2y0bA6Jf|BK`?n-~dK8Wn5;Yj~g-1k&3B1yWajKTyO6 zSHoJ`C<@{m#A~SLN%jm99mUOWxkr$Q8JYKrzF_Sx{&_8c4>|)kfB@%9_>j$LL-Lwy zlwg0dq+LBMmyOF{SGCYf(ySCMhYtpcl&F&LblWm6H(?#M)(6*)Yc>uH7K5R}Q-ejC zJQchfEV_y6?^uM0hfqB}M0AO))=40_(Ssl~Tz_jiRQhdn$5ChUOS<>ByzE0eDjczF7v&(fdHt2`pBdqSF!!auZFic7U z3=quQK-^0=XXAStFc>Fn0niyw)w87u=OeskGeiTDxXX2k53iQc$xU0MIUcI8fTGaO z9d0BRc;IqlVT9;T*ZDw%hz#6Z4Lyz1$^eWv)~EQh2+>zuyutb1DV~Q%ia=}OA9&@1 z{ldaGJF_AMzOKCWlk>|aVlf33{s02;U;z@p`ZLPaKReS^F@XB5zU4MNxu|G)8bX$; ziVV06ICZU{wjJR~lg}BqEsI_%J`YpyCb5KXM~ea~;q5Wv57^!dv7#TTyYpn+hrt@R z&TyJ5WrYn4f{p51OwB}U8wc3IM^5sfo1iG#JG=EH{f+vyALZ$_2YEv?5z?l(e&hRv zdgFomwWkb1`}so*p?!R%nP>?Y7SLSm!qv#Z<{}LIo@y?7##UgU;hf~xYw}&{Id_dl zc!6n!af-dY3^9paDM zh`H$7yDj?W@vOEYAK2ZtqB%hG1o*=e-k%`W19VNq_(MD)QA7hgo+$8{6>m!v%Ofi8 zKrOsffsa;@d|N}YAM)@60pJ^$ge1|LPV=NB(H|rWlHgai^XVkWFwgmIl4whqwsCtA z9$A7Fzu>*ysI|^ zzsmVRZ&)sFVQqayAQEq9Y(KHlj9^gmpy&c{<3X(UA`clPjs#toBG$vO2bh*&_!Nf? z7K0-5cE+b#1#iRM)nJIkMs6wM-cAa-L{rDFQJ^$B0cKsU_VF^(Q3Vqp+{M~P+_K4%n$@8`9n z#4POajZtDoSP{(AJsfv}`nsT-e%d~sGg=?CX|zbkvhIu)jWIT4jEIWZcW;pVwzuxI zJ9+pR#N4CK_s59dQtvHep;d>t%UC1`dwAVg(GiO)AFD6*v$2TMFLKg2u$9L{43Iuf zSK#Nzi6-b-I!+9UsHeGJ`W2#Kd}e5G^mtvt^M1ySZ3{_hmgkDT0Ls_05@@w};^ zf0Un_DmJ05=`=XrZ=4m=PziBeN!68T%yeCemQ6>WkDU!>i1xDafi#`!`ZUqW*C|(Q zR?U(Z!M b^7Hr?9^NQN19GQdZt(vzFqcetSd0wj=ZmRJFl~RY^G=d9Uo4nW%S3$I`Cx+;rUb-Mqsa(nYDLzT+I2Ay>SD zpO_K{Rp+ zMYlK7Z=5lcww<3@gkHt``y#OjV-_qHtL0Yx@`xzInjK3-r$AShA=5MMjLbO7xMqpy z7ww`bMJJiY=}y-ulbiEAp0O11w9J{mRM@CtT^*Oc2$n9im-+2wVwJU?jt^O`dzrb* zA^k$$v|L0`8Sh^%hDPNe7t#Xd_mO^zihL;NIJV5TQAhEDj>8`nYGOHR>*XhTdW9=L zxeP=O6KnDw1TT`t74)Yf#mSJOQ)vY20PVV|vM2Q?{3l`o&++52^ z&x=(O9)4b=d+KyoaIN2a zozW#twl>|4)8iU`Y&&K=%s*@wYWCq=>>Ny0YL^KgrK;X38$VETQZ6eiU(sl>R=?d_ zwwJH&@ptVIkatSXJD()vyrNxJ=Kq<1S?_T2!0u*758k*#n8C}I9gyE)KDtAU0tna% z6FBPhZG7Q6D)h|>mnnl3^yL` za}X}*a9TXYXI>X88b80`xDxHDe>xx!;P`S%mFGC*!dXRPnSgJ)vR|wOnT!Jn>J@zM zfWRAJXI!zEiB#J8>_M^CEBorRZY%JG`@4r(ft{3X@>@uJ%I2Y+lbGwRBaTkBZJy{^ zT}wq?B;|rJ!?NnP$r)pGhHMwP^W#`%TC>pCgVy z!1>(oh`=9za@7%RMLvtS^h#h+&OvV>I{8<@ZVm3dF-sL^ltINRomFL`tqJ?%U#@Rq zQaLpLFmEW=H``ebX&3TmB-SJm}dewOxl zb+Antgt5Q*D2g9o9}fOh^cK~@JpNNLoszihQ!x=c6M9}m`P>RIxH56C^CG-Ka6_9C zfH9_q+`LjW_v!4y2lD3g;tB%U;};M^uXE`I5%00NkxdEb5C0)jc*+G4%vC=K51+a7 z(%LRuq$s64_#!g0QqH@Gys4B+FN#Icn?r5Nbdc{NcT}c)rB(`&7YUGXl7ScIfwQ}vLCnp zT!c4P!VP&2ou@8(WX8kljCpCYmlDC#K1a?tfH!|GRt4msS1JaDY7cQNj6Ni%~v{ z(X8p{t*^zPmX$!^kZXJAyL-DvJKZ=x{0&U04{!WN%%(K1{zfGDoQbh1krWE}DM10>yn;KM3iiGV>>|fq74bebu{Ic$qJ;9Kt2mM+^0KQUA#!k2o4#~a z?#rxsk7T7m?VzIa-{V|yRmA$_qf02zV!jD-9V>v!y($I-hsv-eGZ)UvoVQeN&~?-` zKwY2oCFyB1)#=OCM`tdahZgR0P4xHa-prZL%ZqeE*vQgPh)(;!AH@5qliJvn1!$DpFICBnPeHkD9b77`v>$i-OqAsqH=d5NR694` z17*qWBwq8QSeu>J7K;HY`I91ZfrrR zZdC`DY=FLizCHVs$j;78uqj!n+iKJ+Zag1&KRk8uUUhIrS@P*_-*z9q{XTr>efTZ| zpI%E~Eh^gMaTAnyvpRS#%3bfn~KZ~d~nLwp`8<@2uH8VX;%}iaiSY5Py?(}(?Y988x(ROdhmp_XwgAx-KEu4{% zHZ#HPZIwIdH~}5M^ES5ZI&cE+hSSt}3)N}&@MZ06il=PncYYBJ{hM$b-nx>v-Np%R zBY$%nPP>8wtKpY^YtLh=ksDUv%^Q-e0^VPZ#x;Dt8eX)R{eA^@oxA=jdbVuZ(FTiv ze+SezD1G|E)P>6v7A;QGIZn;YoHqmEVI05otLRNR{LQZ-HlPf>rB9JkmvSlNu;0WB zZH6b?lny|bU>%8o1z=hJTiwAhSGA2=TUWqe{suPAvELmqb(vG{U^St<@(!erO}Hbb zMxW|rQ-)#q37EJPXqStFbQ?$-WhMfVe@__^Oj@9afgY`P&zO}5~1 z<5D^5;?nQe#b*JROLX_2hjNQL_);DfmQ1<(BcRG~lwDh~7!{52bj8f>PEP`_ zOQZz2^dj!|LnzlJDie%>b=udX9CaTqwYYa}9slPK5!lR4ZzbxbdvoKfQI=LCJ=G#^ za2HWy5x2T4dL~)A*>p$H4lO}=+_A`e>K*;S12#o2XgVJ09Nc(1%5u?@_-$dD zK@V_@3H)E{Y*TLF`3;W;w9LjCCexgmUOj9|4VYB`+u)6_4~V-Jwf7)DwN1@*(Ef(o2?O{4HXcX-I#bQ@r(k0~l( zIHr+eo`g{_6?oSteN4SuPU>r9fmwiZ>lUVF&7P^w%t}+!v(jcRQ+K0YvYo}>`k3N< z%7IGtIm=BNnA&^a0xBaIr#3Jx9x; zX35kyuD?xJqLFYkGJ4j<)UEMOkdaDX1SnOv7*H}=&L3G! z{i81fwE+DdP#Ss20Gk5euS5cZ5W01>LMrZVgHbKlRn8e!Y~17gtQ9*}h+3(?QeM(! z6*|vaO%9KM%%L{, pubkey: String, - aggr_keyshare: String, + decryption_key: String, encrypted_data: String, ) -> StdResult { // Create the request message let request = QueryDecryptDataRequest { pubkey, - aggr_keyshare, + decryption_key, encrypted_data, }; diff --git a/scripts/tests/fairyring_contract/src/msg.rs b/scripts/tests/fairyring_contract/src/msg.rs index afaaf379..28f02376 100644 --- a/scripts/tests/fairyring_contract/src/msg.rs +++ b/scripts/tests/fairyring_contract/src/msg.rs @@ -8,7 +8,7 @@ use cosmwasm_std::CustomQuery; pub struct ExecuteContractMsg { pub identity: String, pub pubkey: String, - pub aggr_keyshare: String, + pub decryption_key: String, } // Query message diff --git a/scripts/tests/pep.sh b/scripts/tests/pep.sh index 06663c40..f9869f74 100755 --- a/scripts/tests/pep.sh +++ b/scripts/tests/pep.sh @@ -911,18 +911,15 @@ RSP=$($BINARY q wasm contract-state smart $CONTRACT_ADDR '{"get_stored_data":{"i echo $RSP CURRENT_BLOCK=$($BINARY query consensus comet block-latest --home $CHAIN_DIR/$CHAINID_1 --node tcp://localhost:16657 -o json | jq -r '.block.header.height') -TARGET_HEIGHT=$((CURRENT_BLOCK+2)) -EXTRACTED_RESULT=$($BINARY share-generation derive $GENERATED_SHARE 1 $TARGET_HEIGHT) -EXTRACTED_SHARE=$(echo "$EXTRACTED_RESULT" | jq -r '.Keyshare') +TARGET_HEIGHT=$((CURRENT_BLOCK+10)) echo "Registering contract with blockwise identity $TARGET_HEIGHT" RESULT=$($BINARY tx pep register-contract $CONTRACT_ADDR $TARGET_HEIGHT --from $WALLET_1 --gas-prices 1ufairy --home $CHAIN_DIR/$CHAINID_1 --chain-id $CHAINID_1 --node $CHAIN1_NODE --broadcast-mode sync --keyring-backend test -o json -y) check_tx_code $RESULT RESULT=$(wait_for_tx_source $RESULT) -sleep 5 - echo "waiting for Submitting keyshare" +sleep 15 echo "Query Contract state" RSP=$($BINARY q wasm contract-state smart $CONTRACT_ADDR '{"get_stored_data":{"identity": "'"$TARGET_HEIGHT"'"}}' --node $CHAIN1_NODE -o json) From 7076bfd8533ecf44645e2217d40aed19f0c5b6fd Mon Sep 17 00:00:00 2001 From: p0p3yee Date: Wed, 23 Oct 2024 09:20:02 -0400 Subject: [PATCH 28/30] Fix pep script error --- Makefile | 2 +- scripts/tests/pep.sh | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 023936ec..98a86eb2 100644 --- a/Makefile +++ b/Makefile @@ -222,7 +222,7 @@ init-test-block-limit-framework: clean-testing-data install ./scripts/tests/start_test_block_tx_limit.sh @sleep 3 -init-test-framework: clean-testing-data install +init-test-framework: clean-testing-data stop-fairyring-keyshare-sender install @echo "Initializing fairyring..." ./scripts/tests/start.sh @sleep 3 diff --git a/scripts/tests/pep.sh b/scripts/tests/pep.sh index f9869f74..69d7cc27 100755 --- a/scripts/tests/pep.sh +++ b/scripts/tests/pep.sh @@ -162,10 +162,6 @@ CURRENT_BLOCK=$($BINARY query consensus comet block-latest --home $CHAIN_DIR/$CH RESULT=$($BINARY query keyshare list-decryption-keys --node $CHAIN1_NODE -o json) AGG_KEY_HEIGHT=$(echo "$RESULT" | jq -r '.decryption_keys | last | .height') AGG_KEY=$(echo "$RESULT" | jq -r '.decryption_keys | last | .data') -if [ "$AGG_KEY_HEIGHT" -gt "$CURRENT_BLOCK" ]; then - echo "ERROR: Height of the aggregated key from key share module '$AGG_KEY_HEIGHT' is greater than current block height '$CURRENT_BLOCK'" - exit 1 -fi CURRENT_BLOCK=$($BINARY query consensus comet block-latest --home $CHAIN_DIR/$CHAINID_2 --node $CHAIN2_NODE -o json | jq -r '.block.header.height') echo "Chain 2 Current Block: $CURRENT_BLOCK" From 3cb81a2897c21151a86affb502731db234fea451 Mon Sep 17 00:00:00 2001 From: p0p3yee Date: Wed, 23 Oct 2024 10:33:53 -0400 Subject: [PATCH 29/30] Fix makefile error --- Makefile | 6 +----- scripts/tests/start.sh | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 98a86eb2..d217da15 100644 --- a/Makefile +++ b/Makefile @@ -222,7 +222,7 @@ init-test-block-limit-framework: clean-testing-data install ./scripts/tests/start_test_block_tx_limit.sh @sleep 3 -init-test-framework: clean-testing-data stop-fairyring-keyshare-sender install +init-test-framework: clean-testing-data install @echo "Initializing fairyring..." ./scripts/tests/start.sh @sleep 3 @@ -240,10 +240,6 @@ clean-devnet-data: -@killall fairyringclient 2>/dev/null -@killall ShareGenerationClient 2>/dev/null -stop-fairyring-keyshare-sender: - @echo "Killing fairyringd and keyshare sender" - ./scripts/tests/stop.sh - clean-testing-data: @echo "Killing fairyringd and removing previous data" -@rm -rf ./data diff --git a/scripts/tests/start.sh b/scripts/tests/start.sh index a93ff94e..b9d7412c 100755 --- a/scripts/tests/start.sh +++ b/scripts/tests/start.sh @@ -43,6 +43,8 @@ if pgrep -x "hermes" >/dev/null; then killall hermes fi +./scripts/tests/stop.sh + echo "Removing previous data..." rm -rf $CHAIN_DIR/$CHAINID_1 &> /dev/null rm -rf $CHAIN_DIR/$CHAINID_2 &> /dev/null From 5ccc6beae8dba7ecc32031f21bf0c57ab87d644e Mon Sep 17 00:00:00 2001 From: ap0calypse644 Date: Thu, 24 Oct 2024 11:41:19 +0530 Subject: [PATCH 30/30] removing local dependency on cosmos-sdk --- go.mod | 5 ++--- go.sum | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index da546cde..bd692f50 100644 --- a/go.mod +++ b/go.mod @@ -5,8 +5,7 @@ go 1.22.4 replace ( cosmossdk.io/api => github.com/Fairblock/cosmossdk-api v0.7.5 github.com/CosmWasm/wasmd => github.com/Fairblock/wasmd v0.50.6-fairyring - // github.com/cosmos/cosmos-sdk => github.com/Fairblock/cosmos-sdk v0.50.8-fairyring - github.com/cosmos/cosmos-sdk => ../cosmos-sdk + github.com/cosmos/cosmos-sdk => github.com/Fairblock/cosmos-sdk v0.50.8-fairyring // fix upstream GHSA-h395-qcrw-5vmq vulnerability. github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.7.0 github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1 @@ -37,7 +36,7 @@ require ( github.com/cometbft/cometbft v0.38.12 github.com/cosmos/cosmos-db v1.0.2 github.com/cosmos/cosmos-proto v1.0.0-beta.5 - github.com/cosmos/cosmos-sdk v0.50.6 + github.com/cosmos/cosmos-sdk v0.50.8 github.com/cosmos/gogoproto v1.7.0 github.com/cosmos/ibc-go/modules/capability v1.0.0 github.com/cosmos/ibc-go/v8 v8.2.1 diff --git a/go.sum b/go.sum index ba5bb019..ec1def1d 100644 --- a/go.sum +++ b/go.sum @@ -239,6 +239,8 @@ github.com/DataDog/zstd v1.5.5 h1:oWf5W7GtOLgp6bciQYDmhHHjdhYkALu6S/5Ni9ZgSvQ= github.com/DataDog/zstd v1.5.5/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= github.com/FairBlock/DistributedIBE v0.0.0-20231211202607-d457df6869db h1:wmRvJRPDm8nXZzRjzgPzbhGHhEX5TbXUBiZkAieUNMA= github.com/FairBlock/DistributedIBE v0.0.0-20231211202607-d457df6869db/go.mod h1:qXpLBzZiSdWoweJkE/lAIPedf6GOl7WsYM8rxrZCCDk= +github.com/Fairblock/cosmos-sdk v0.50.8-fairyring h1:b/nFqDT2lHXtam2KdN0s9RLVsYHDFlvnSXRukEV3LfI= +github.com/Fairblock/cosmos-sdk v0.50.8-fairyring/go.mod h1:ep1ZTLXL8h62Xi6l6lJdto/Xt8CYlP+GW9MudPCT05w= github.com/Fairblock/cosmossdk-api v0.7.5 h1:2NON/rKYquaTpISPn5sOZTP80a2moKg7YN+HI7wi5Wk= github.com/Fairblock/cosmossdk-api v0.7.5/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= github.com/Fairblock/wasmd v0.50.6-fairyring h1:P5bEeEQbyLew8dD/kXP1JSjBB6ersyhORcnuYQp3+nI=