diff --git a/api/gluon/customauth/operator/pubkey.pulsar.go b/api/gluon/customauth/operator/pubkey.pulsar.go index 7f2ac2b..9ac8002 100644 --- a/api/gluon/customauth/operator/pubkey.pulsar.go +++ b/api/gluon/customauth/operator/pubkey.pulsar.go @@ -13,25 +13,25 @@ import ( ) var ( - md_PubKeyNotVerifiable protoreflect.MessageDescriptor - fd_PubKeyNotVerifiable_user protoreflect.FieldDescriptor + md_PubKey protoreflect.MessageDescriptor + fd_PubKey_user protoreflect.FieldDescriptor ) func init() { file_gluon_customauth_operator_pubkey_proto_init() - md_PubKeyNotVerifiable = File_gluon_customauth_operator_pubkey_proto.Messages().ByName("PubKeyNotVerifiable") - fd_PubKeyNotVerifiable_user = md_PubKeyNotVerifiable.Fields().ByName("user") + md_PubKey = File_gluon_customauth_operator_pubkey_proto.Messages().ByName("PubKey") + fd_PubKey_user = md_PubKey.Fields().ByName("user") } -var _ protoreflect.Message = (*fastReflection_PubKeyNotVerifiable)(nil) +var _ protoreflect.Message = (*fastReflection_PubKey)(nil) -type fastReflection_PubKeyNotVerifiable PubKeyNotVerifiable +type fastReflection_PubKey PubKey -func (x *PubKeyNotVerifiable) ProtoReflect() protoreflect.Message { - return (*fastReflection_PubKeyNotVerifiable)(x) +func (x *PubKey) ProtoReflect() protoreflect.Message { + return (*fastReflection_PubKey)(x) } -func (x *PubKeyNotVerifiable) slowProtoReflect() protoreflect.Message { +func (x *PubKey) slowProtoReflect() protoreflect.Message { mi := &file_gluon_customauth_operator_pubkey_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -43,43 +43,43 @@ func (x *PubKeyNotVerifiable) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_PubKeyNotVerifiable_messageType fastReflection_PubKeyNotVerifiable_messageType -var _ protoreflect.MessageType = fastReflection_PubKeyNotVerifiable_messageType{} +var _fastReflection_PubKey_messageType fastReflection_PubKey_messageType +var _ protoreflect.MessageType = fastReflection_PubKey_messageType{} -type fastReflection_PubKeyNotVerifiable_messageType struct{} +type fastReflection_PubKey_messageType struct{} -func (x fastReflection_PubKeyNotVerifiable_messageType) Zero() protoreflect.Message { - return (*fastReflection_PubKeyNotVerifiable)(nil) +func (x fastReflection_PubKey_messageType) Zero() protoreflect.Message { + return (*fastReflection_PubKey)(nil) } -func (x fastReflection_PubKeyNotVerifiable_messageType) New() protoreflect.Message { - return new(fastReflection_PubKeyNotVerifiable) +func (x fastReflection_PubKey_messageType) New() protoreflect.Message { + return new(fastReflection_PubKey) } -func (x fastReflection_PubKeyNotVerifiable_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_PubKeyNotVerifiable +func (x fastReflection_PubKey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_PubKey } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_PubKeyNotVerifiable) Descriptor() protoreflect.MessageDescriptor { - return md_PubKeyNotVerifiable +func (x *fastReflection_PubKey) Descriptor() protoreflect.MessageDescriptor { + return md_PubKey } // 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_PubKeyNotVerifiable) Type() protoreflect.MessageType { - return _fastReflection_PubKeyNotVerifiable_messageType +func (x *fastReflection_PubKey) Type() protoreflect.MessageType { + return _fastReflection_PubKey_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_PubKeyNotVerifiable) New() protoreflect.Message { - return new(fastReflection_PubKeyNotVerifiable) +func (x *fastReflection_PubKey) New() protoreflect.Message { + return new(fastReflection_PubKey) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_PubKeyNotVerifiable) Interface() protoreflect.ProtoMessage { - return (*PubKeyNotVerifiable)(x) +func (x *fastReflection_PubKey) Interface() protoreflect.ProtoMessage { + return (*PubKey)(x) } // Range iterates over every populated field in an undefined order, @@ -87,10 +87,10 @@ func (x *fastReflection_PubKeyNotVerifiable) 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_PubKeyNotVerifiable) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_PubKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.User) != 0 { value := protoreflect.ValueOfBytes(x.User) - if !f(fd_PubKeyNotVerifiable_user, value) { + if !f(fd_PubKey_user, value) { return } } @@ -107,15 +107,15 @@ func (x *fastReflection_PubKeyNotVerifiable) 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_PubKeyNotVerifiable) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_PubKey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "gluon.customauth.operator.PubKeyNotVerifiable.user": + case "gluon.customauth.operator.PubKey.user": return len(x.User) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.operator.PubKeyNotVerifiable")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.operator.PubKey")) } - panic(fmt.Errorf("message gluon.customauth.operator.PubKeyNotVerifiable does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message gluon.customauth.operator.PubKey does not contain field %s", fd.FullName())) } } @@ -125,15 +125,15 @@ func (x *fastReflection_PubKeyNotVerifiable) Has(fd protoreflect.FieldDescriptor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PubKeyNotVerifiable) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_PubKey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "gluon.customauth.operator.PubKeyNotVerifiable.user": + case "gluon.customauth.operator.PubKey.user": x.User = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.operator.PubKeyNotVerifiable")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.operator.PubKey")) } - panic(fmt.Errorf("message gluon.customauth.operator.PubKeyNotVerifiable does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message gluon.customauth.operator.PubKey does not contain field %s", fd.FullName())) } } @@ -143,16 +143,16 @@ func (x *fastReflection_PubKeyNotVerifiable) 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_PubKeyNotVerifiable) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PubKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "gluon.customauth.operator.PubKeyNotVerifiable.user": + case "gluon.customauth.operator.PubKey.user": value := x.User return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.operator.PubKeyNotVerifiable")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.operator.PubKey")) } - panic(fmt.Errorf("message gluon.customauth.operator.PubKeyNotVerifiable does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message gluon.customauth.operator.PubKey does not contain field %s", descriptor.FullName())) } } @@ -166,15 +166,15 @@ func (x *fastReflection_PubKeyNotVerifiable) Get(descriptor protoreflect.FieldDe // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PubKeyNotVerifiable) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_PubKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "gluon.customauth.operator.PubKeyNotVerifiable.user": + case "gluon.customauth.operator.PubKey.user": x.User = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.operator.PubKeyNotVerifiable")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.operator.PubKey")) } - panic(fmt.Errorf("message gluon.customauth.operator.PubKeyNotVerifiable does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message gluon.customauth.operator.PubKey does not contain field %s", fd.FullName())) } } @@ -188,40 +188,40 @@ func (x *fastReflection_PubKeyNotVerifiable) 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_PubKeyNotVerifiable) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PubKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "gluon.customauth.operator.PubKeyNotVerifiable.user": - panic(fmt.Errorf("field user of message gluon.customauth.operator.PubKeyNotVerifiable is not mutable")) + case "gluon.customauth.operator.PubKey.user": + panic(fmt.Errorf("field user of message gluon.customauth.operator.PubKey is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.operator.PubKeyNotVerifiable")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.operator.PubKey")) } - panic(fmt.Errorf("message gluon.customauth.operator.PubKeyNotVerifiable does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message gluon.customauth.operator.PubKey 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_PubKeyNotVerifiable) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PubKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "gluon.customauth.operator.PubKeyNotVerifiable.user": + case "gluon.customauth.operator.PubKey.user": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.operator.PubKeyNotVerifiable")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.operator.PubKey")) } - panic(fmt.Errorf("message gluon.customauth.operator.PubKeyNotVerifiable does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message gluon.customauth.operator.PubKey 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_PubKeyNotVerifiable) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_PubKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in gluon.customauth.operator.PubKeyNotVerifiable", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in gluon.customauth.operator.PubKey", d.FullName())) } panic("unreachable") } @@ -229,7 +229,7 @@ func (x *fastReflection_PubKeyNotVerifiable) 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_PubKeyNotVerifiable) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_PubKey) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -240,7 +240,7 @@ func (x *fastReflection_PubKeyNotVerifiable) 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_PubKeyNotVerifiable) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_PubKey) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -252,7 +252,7 @@ func (x *fastReflection_PubKeyNotVerifiable) 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_PubKeyNotVerifiable) IsValid() bool { +func (x *fastReflection_PubKey) IsValid() bool { return x != nil } @@ -262,9 +262,9 @@ func (x *fastReflection_PubKeyNotVerifiable) 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_PubKeyNotVerifiable) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_PubKey) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*PubKeyNotVerifiable) + x := input.Message.Interface().(*PubKey) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -290,7 +290,7 @@ func (x *fastReflection_PubKeyNotVerifiable) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*PubKeyNotVerifiable) + x := input.Message.Interface().(*PubKey) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -327,7 +327,7 @@ func (x *fastReflection_PubKeyNotVerifiable) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*PubKeyNotVerifiable) + x := input.Message.Interface().(*PubKey) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -359,10 +359,10 @@ func (x *fastReflection_PubKeyNotVerifiable) 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: PubKeyNotVerifiable: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PubKey: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PubKeyNotVerifiable: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PubKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -447,7 +447,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type PubKeyNotVerifiable struct { +type PubKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -455,8 +455,8 @@ type PubKeyNotVerifiable struct { User []byte `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` } -func (x *PubKeyNotVerifiable) Reset() { - *x = PubKeyNotVerifiable{} +func (x *PubKey) Reset() { + *x = PubKey{} if protoimpl.UnsafeEnabled { mi := &file_gluon_customauth_operator_pubkey_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -464,18 +464,18 @@ func (x *PubKeyNotVerifiable) Reset() { } } -func (x *PubKeyNotVerifiable) String() string { +func (x *PubKey) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PubKeyNotVerifiable) ProtoMessage() {} +func (*PubKey) ProtoMessage() {} -// Deprecated: Use PubKeyNotVerifiable.ProtoReflect.Descriptor instead. -func (*PubKeyNotVerifiable) Descriptor() ([]byte, []int) { +// Deprecated: Use PubKey.ProtoReflect.Descriptor instead. +func (*PubKey) Descriptor() ([]byte, []int) { return file_gluon_customauth_operator_pubkey_proto_rawDescGZIP(), []int{0} } -func (x *PubKeyNotVerifiable) GetUser() []byte { +func (x *PubKey) GetUser() []byte { if x != nil { return x.User } @@ -489,23 +489,23 @@ var file_gluon_customauth_operator_pubkey_proto_rawDesc = []byte{ 0x74, 0x68, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x67, 0x6c, 0x75, 0x6f, 0x6e, 0x2e, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x22, 0x29, 0x0a, 0x13, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x4e, 0x6f, 0x74, - 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, - 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x42, 0xd7, - 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6c, 0x75, 0x6f, 0x6e, 0x2e, 0x63, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, - 0x42, 0x0b, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x23, 0x67, 0x6c, 0x75, 0x6f, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6c, 0x75, 0x6f, 0x6e, - 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x6f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x6f, 0x72, 0xa2, 0x02, 0x03, 0x47, 0x43, 0x4f, 0xaa, 0x02, 0x19, 0x47, 0x6c, 0x75, - 0x6f, 0x6e, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0xca, 0x02, 0x19, 0x47, 0x6c, 0x75, 0x6f, 0x6e, 0x5c, 0x43, - 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x5c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0xe2, 0x02, 0x25, 0x47, 0x6c, 0x75, 0x6f, 0x6e, 0x5c, 0x43, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x61, 0x75, 0x74, 0x68, 0x5c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x47, 0x6c, 0x75, - 0x6f, 0x6e, 0x3a, 0x3a, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x3a, 0x3a, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x6f, 0x72, 0x22, 0x1c, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a, + 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x75, 0x73, 0x65, + 0x72, 0x42, 0xd7, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6c, 0x75, 0x6f, 0x6e, 0x2e, + 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x6f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x42, 0x0b, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x23, 0x67, 0x6c, 0x75, 0x6f, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6c, + 0x75, 0x6f, 0x6e, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x6f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0xa2, 0x02, 0x03, 0x47, 0x43, 0x4f, 0xaa, 0x02, 0x19, + 0x47, 0x6c, 0x75, 0x6f, 0x6e, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, + 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0xca, 0x02, 0x19, 0x47, 0x6c, 0x75, 0x6f, + 0x6e, 0x5c, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x5c, 0x4f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0xe2, 0x02, 0x25, 0x47, 0x6c, 0x75, 0x6f, 0x6e, 0x5c, 0x43, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x5c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, + 0x47, 0x6c, 0x75, 0x6f, 0x6e, 0x3a, 0x3a, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, + 0x68, 0x3a, 0x3a, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -522,7 +522,7 @@ func file_gluon_customauth_operator_pubkey_proto_rawDescGZIP() []byte { var file_gluon_customauth_operator_pubkey_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_gluon_customauth_operator_pubkey_proto_goTypes = []interface{}{ - (*PubKeyNotVerifiable)(nil), // 0: gluon.customauth.operator.PubKeyNotVerifiable + (*PubKey)(nil), // 0: gluon.customauth.operator.PubKey } var file_gluon_customauth_operator_pubkey_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type @@ -539,7 +539,7 @@ func file_gluon_customauth_operator_pubkey_proto_init() { } if !protoimpl.UnsafeEnabled { file_gluon_customauth_operator_pubkey_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PubKeyNotVerifiable); i { + switch v := v.(*PubKey); i { case 0: return &v.state case 1: diff --git a/api/gluon/customauth/pairing/pubkey.pulsar.go b/api/gluon/customauth/pairing/pubkey.pulsar.go index feb3c6b..4c0265c 100644 --- a/api/gluon/customauth/pairing/pubkey.pulsar.go +++ b/api/gluon/customauth/pairing/pubkey.pulsar.go @@ -15,27 +15,27 @@ import ( ) var ( - md_PubKeyNotVerifiable protoreflect.MessageDescriptor - fd_PubKeyNotVerifiable_user protoreflect.FieldDescriptor - fd_PubKeyNotVerifiable_pairing_id protoreflect.FieldDescriptor + md_PubKey protoreflect.MessageDescriptor + fd_PubKey_user protoreflect.FieldDescriptor + fd_PubKey_pairing_id protoreflect.FieldDescriptor ) func init() { file_gluon_customauth_pairing_pubkey_proto_init() - md_PubKeyNotVerifiable = File_gluon_customauth_pairing_pubkey_proto.Messages().ByName("PubKeyNotVerifiable") - fd_PubKeyNotVerifiable_user = md_PubKeyNotVerifiable.Fields().ByName("user") - fd_PubKeyNotVerifiable_pairing_id = md_PubKeyNotVerifiable.Fields().ByName("pairing_id") + md_PubKey = File_gluon_customauth_pairing_pubkey_proto.Messages().ByName("PubKey") + fd_PubKey_user = md_PubKey.Fields().ByName("user") + fd_PubKey_pairing_id = md_PubKey.Fields().ByName("pairing_id") } -var _ protoreflect.Message = (*fastReflection_PubKeyNotVerifiable)(nil) +var _ protoreflect.Message = (*fastReflection_PubKey)(nil) -type fastReflection_PubKeyNotVerifiable PubKeyNotVerifiable +type fastReflection_PubKey PubKey -func (x *PubKeyNotVerifiable) ProtoReflect() protoreflect.Message { - return (*fastReflection_PubKeyNotVerifiable)(x) +func (x *PubKey) ProtoReflect() protoreflect.Message { + return (*fastReflection_PubKey)(x) } -func (x *PubKeyNotVerifiable) slowProtoReflect() protoreflect.Message { +func (x *PubKey) slowProtoReflect() protoreflect.Message { mi := &file_gluon_customauth_pairing_pubkey_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -47,43 +47,43 @@ func (x *PubKeyNotVerifiable) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_PubKeyNotVerifiable_messageType fastReflection_PubKeyNotVerifiable_messageType -var _ protoreflect.MessageType = fastReflection_PubKeyNotVerifiable_messageType{} +var _fastReflection_PubKey_messageType fastReflection_PubKey_messageType +var _ protoreflect.MessageType = fastReflection_PubKey_messageType{} -type fastReflection_PubKeyNotVerifiable_messageType struct{} +type fastReflection_PubKey_messageType struct{} -func (x fastReflection_PubKeyNotVerifiable_messageType) Zero() protoreflect.Message { - return (*fastReflection_PubKeyNotVerifiable)(nil) +func (x fastReflection_PubKey_messageType) Zero() protoreflect.Message { + return (*fastReflection_PubKey)(nil) } -func (x fastReflection_PubKeyNotVerifiable_messageType) New() protoreflect.Message { - return new(fastReflection_PubKeyNotVerifiable) +func (x fastReflection_PubKey_messageType) New() protoreflect.Message { + return new(fastReflection_PubKey) } -func (x fastReflection_PubKeyNotVerifiable_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_PubKeyNotVerifiable +func (x fastReflection_PubKey_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_PubKey } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_PubKeyNotVerifiable) Descriptor() protoreflect.MessageDescriptor { - return md_PubKeyNotVerifiable +func (x *fastReflection_PubKey) Descriptor() protoreflect.MessageDescriptor { + return md_PubKey } // 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_PubKeyNotVerifiable) Type() protoreflect.MessageType { - return _fastReflection_PubKeyNotVerifiable_messageType +func (x *fastReflection_PubKey) Type() protoreflect.MessageType { + return _fastReflection_PubKey_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_PubKeyNotVerifiable) New() protoreflect.Message { - return new(fastReflection_PubKeyNotVerifiable) +func (x *fastReflection_PubKey) New() protoreflect.Message { + return new(fastReflection_PubKey) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_PubKeyNotVerifiable) Interface() protoreflect.ProtoMessage { - return (*PubKeyNotVerifiable)(x) +func (x *fastReflection_PubKey) Interface() protoreflect.ProtoMessage { + return (*PubKey)(x) } // Range iterates over every populated field in an undefined order, @@ -91,16 +91,16 @@ func (x *fastReflection_PubKeyNotVerifiable) 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_PubKeyNotVerifiable) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_PubKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.User) != 0 { value := protoreflect.ValueOfBytes(x.User) - if !f(fd_PubKeyNotVerifiable_user, value) { + if !f(fd_PubKey_user, value) { return } } if x.PairingId != uint64(0) { value := protoreflect.ValueOfUint64(x.PairingId) - if !f(fd_PubKeyNotVerifiable_pairing_id, value) { + if !f(fd_PubKey_pairing_id, value) { return } } @@ -117,17 +117,17 @@ func (x *fastReflection_PubKeyNotVerifiable) 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_PubKeyNotVerifiable) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_PubKey) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "gluon.customauth.pairing.PubKeyNotVerifiable.user": + case "gluon.customauth.pairing.PubKey.user": return len(x.User) != 0 - case "gluon.customauth.pairing.PubKeyNotVerifiable.pairing_id": + case "gluon.customauth.pairing.PubKey.pairing_id": return x.PairingId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKeyNotVerifiable")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKey")) } - panic(fmt.Errorf("message gluon.customauth.pairing.PubKeyNotVerifiable does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message gluon.customauth.pairing.PubKey does not contain field %s", fd.FullName())) } } @@ -137,17 +137,17 @@ func (x *fastReflection_PubKeyNotVerifiable) Has(fd protoreflect.FieldDescriptor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PubKeyNotVerifiable) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_PubKey) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "gluon.customauth.pairing.PubKeyNotVerifiable.user": + case "gluon.customauth.pairing.PubKey.user": x.User = nil - case "gluon.customauth.pairing.PubKeyNotVerifiable.pairing_id": + case "gluon.customauth.pairing.PubKey.pairing_id": x.PairingId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKeyNotVerifiable")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKey")) } - panic(fmt.Errorf("message gluon.customauth.pairing.PubKeyNotVerifiable does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message gluon.customauth.pairing.PubKey does not contain field %s", fd.FullName())) } } @@ -157,19 +157,19 @@ func (x *fastReflection_PubKeyNotVerifiable) 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_PubKeyNotVerifiable) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PubKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "gluon.customauth.pairing.PubKeyNotVerifiable.user": + case "gluon.customauth.pairing.PubKey.user": value := x.User return protoreflect.ValueOfBytes(value) - case "gluon.customauth.pairing.PubKeyNotVerifiable.pairing_id": + case "gluon.customauth.pairing.PubKey.pairing_id": value := x.PairingId return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKeyNotVerifiable")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKey")) } - panic(fmt.Errorf("message gluon.customauth.pairing.PubKeyNotVerifiable does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message gluon.customauth.pairing.PubKey does not contain field %s", descriptor.FullName())) } } @@ -183,17 +183,17 @@ func (x *fastReflection_PubKeyNotVerifiable) Get(descriptor protoreflect.FieldDe // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PubKeyNotVerifiable) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_PubKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "gluon.customauth.pairing.PubKeyNotVerifiable.user": + case "gluon.customauth.pairing.PubKey.user": x.User = value.Bytes() - case "gluon.customauth.pairing.PubKeyNotVerifiable.pairing_id": + case "gluon.customauth.pairing.PubKey.pairing_id": x.PairingId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKeyNotVerifiable")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKey")) } - panic(fmt.Errorf("message gluon.customauth.pairing.PubKeyNotVerifiable does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message gluon.customauth.pairing.PubKey does not contain field %s", fd.FullName())) } } @@ -207,44 +207,44 @@ func (x *fastReflection_PubKeyNotVerifiable) 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_PubKeyNotVerifiable) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PubKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "gluon.customauth.pairing.PubKeyNotVerifiable.user": - panic(fmt.Errorf("field user of message gluon.customauth.pairing.PubKeyNotVerifiable is not mutable")) - case "gluon.customauth.pairing.PubKeyNotVerifiable.pairing_id": - panic(fmt.Errorf("field pairing_id of message gluon.customauth.pairing.PubKeyNotVerifiable is not mutable")) + case "gluon.customauth.pairing.PubKey.user": + panic(fmt.Errorf("field user of message gluon.customauth.pairing.PubKey is not mutable")) + case "gluon.customauth.pairing.PubKey.pairing_id": + panic(fmt.Errorf("field pairing_id of message gluon.customauth.pairing.PubKey is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKeyNotVerifiable")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKey")) } - panic(fmt.Errorf("message gluon.customauth.pairing.PubKeyNotVerifiable does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message gluon.customauth.pairing.PubKey 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_PubKeyNotVerifiable) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PubKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "gluon.customauth.pairing.PubKeyNotVerifiable.user": + case "gluon.customauth.pairing.PubKey.user": return protoreflect.ValueOfBytes(nil) - case "gluon.customauth.pairing.PubKeyNotVerifiable.pairing_id": + case "gluon.customauth.pairing.PubKey.pairing_id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKeyNotVerifiable")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKey")) } - panic(fmt.Errorf("message gluon.customauth.pairing.PubKeyNotVerifiable does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message gluon.customauth.pairing.PubKey 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_PubKeyNotVerifiable) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_PubKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in gluon.customauth.pairing.PubKeyNotVerifiable", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in gluon.customauth.pairing.PubKey", d.FullName())) } panic("unreachable") } @@ -252,7 +252,7 @@ func (x *fastReflection_PubKeyNotVerifiable) 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_PubKeyNotVerifiable) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_PubKey) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -263,7 +263,7 @@ func (x *fastReflection_PubKeyNotVerifiable) 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_PubKeyNotVerifiable) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_PubKey) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -275,7 +275,7 @@ func (x *fastReflection_PubKeyNotVerifiable) 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_PubKeyNotVerifiable) IsValid() bool { +func (x *fastReflection_PubKey) IsValid() bool { return x != nil } @@ -285,9 +285,9 @@ func (x *fastReflection_PubKeyNotVerifiable) 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_PubKeyNotVerifiable) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_PubKey) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*PubKeyNotVerifiable) + x := input.Message.Interface().(*PubKey) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -316,7 +316,7 @@ func (x *fastReflection_PubKeyNotVerifiable) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*PubKeyNotVerifiable) + x := input.Message.Interface().(*PubKey) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -358,7 +358,7 @@ func (x *fastReflection_PubKeyNotVerifiable) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*PubKeyNotVerifiable) + x := input.Message.Interface().(*PubKey) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -390,10 +390,10 @@ func (x *fastReflection_PubKeyNotVerifiable) 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: PubKeyNotVerifiable: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PubKey: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PubKeyNotVerifiable: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PubKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -485,29 +485,29 @@ func (x *fastReflection_PubKeyNotVerifiable) ProtoMethods() *protoiface.Methods } var ( - md_PubKey protoreflect.MessageDescriptor - fd_PubKey_user protoreflect.FieldDescriptor - fd_PubKey_pairing_public_key protoreflect.FieldDescriptor - fd_PubKey_operator_public_key protoreflect.FieldDescriptor + md_PubKeyInternal protoreflect.MessageDescriptor + fd_PubKeyInternal_user protoreflect.FieldDescriptor + fd_PubKeyInternal_pairing_public_key protoreflect.FieldDescriptor + fd_PubKeyInternal_operator_public_key protoreflect.FieldDescriptor ) func init() { file_gluon_customauth_pairing_pubkey_proto_init() - md_PubKey = File_gluon_customauth_pairing_pubkey_proto.Messages().ByName("PubKey") - fd_PubKey_user = md_PubKey.Fields().ByName("user") - fd_PubKey_pairing_public_key = md_PubKey.Fields().ByName("pairing_public_key") - fd_PubKey_operator_public_key = md_PubKey.Fields().ByName("operator_public_key") + md_PubKeyInternal = File_gluon_customauth_pairing_pubkey_proto.Messages().ByName("PubKeyInternal") + fd_PubKeyInternal_user = md_PubKeyInternal.Fields().ByName("user") + fd_PubKeyInternal_pairing_public_key = md_PubKeyInternal.Fields().ByName("pairing_public_key") + fd_PubKeyInternal_operator_public_key = md_PubKeyInternal.Fields().ByName("operator_public_key") } -var _ protoreflect.Message = (*fastReflection_PubKey)(nil) +var _ protoreflect.Message = (*fastReflection_PubKeyInternal)(nil) -type fastReflection_PubKey PubKey +type fastReflection_PubKeyInternal PubKeyInternal -func (x *PubKey) ProtoReflect() protoreflect.Message { - return (*fastReflection_PubKey)(x) +func (x *PubKeyInternal) ProtoReflect() protoreflect.Message { + return (*fastReflection_PubKeyInternal)(x) } -func (x *PubKey) slowProtoReflect() protoreflect.Message { +func (x *PubKeyInternal) slowProtoReflect() protoreflect.Message { mi := &file_gluon_customauth_pairing_pubkey_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -519,43 +519,43 @@ func (x *PubKey) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_PubKey_messageType fastReflection_PubKey_messageType -var _ protoreflect.MessageType = fastReflection_PubKey_messageType{} +var _fastReflection_PubKeyInternal_messageType fastReflection_PubKeyInternal_messageType +var _ protoreflect.MessageType = fastReflection_PubKeyInternal_messageType{} -type fastReflection_PubKey_messageType struct{} +type fastReflection_PubKeyInternal_messageType struct{} -func (x fastReflection_PubKey_messageType) Zero() protoreflect.Message { - return (*fastReflection_PubKey)(nil) +func (x fastReflection_PubKeyInternal_messageType) Zero() protoreflect.Message { + return (*fastReflection_PubKeyInternal)(nil) } -func (x fastReflection_PubKey_messageType) New() protoreflect.Message { - return new(fastReflection_PubKey) +func (x fastReflection_PubKeyInternal_messageType) New() protoreflect.Message { + return new(fastReflection_PubKeyInternal) } -func (x fastReflection_PubKey_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_PubKey +func (x fastReflection_PubKeyInternal_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_PubKeyInternal } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_PubKey) Descriptor() protoreflect.MessageDescriptor { - return md_PubKey +func (x *fastReflection_PubKeyInternal) Descriptor() protoreflect.MessageDescriptor { + return md_PubKeyInternal } // 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_PubKey) Type() protoreflect.MessageType { - return _fastReflection_PubKey_messageType +func (x *fastReflection_PubKeyInternal) Type() protoreflect.MessageType { + return _fastReflection_PubKeyInternal_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_PubKey) New() protoreflect.Message { - return new(fastReflection_PubKey) +func (x *fastReflection_PubKeyInternal) New() protoreflect.Message { + return new(fastReflection_PubKeyInternal) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_PubKey) Interface() protoreflect.ProtoMessage { - return (*PubKey)(x) +func (x *fastReflection_PubKeyInternal) Interface() protoreflect.ProtoMessage { + return (*PubKeyInternal)(x) } // Range iterates over every populated field in an undefined order, @@ -563,22 +563,22 @@ func (x *fastReflection_PubKey) 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_PubKey) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_PubKeyInternal) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.User) != 0 { value := protoreflect.ValueOfBytes(x.User) - if !f(fd_PubKey_user, value) { + if !f(fd_PubKeyInternal_user, value) { return } } if x.PairingPublicKey != nil { value := protoreflect.ValueOfMessage(x.PairingPublicKey.ProtoReflect()) - if !f(fd_PubKey_pairing_public_key, value) { + if !f(fd_PubKeyInternal_pairing_public_key, value) { return } } if x.OperatorPublicKey != nil { value := protoreflect.ValueOfMessage(x.OperatorPublicKey.ProtoReflect()) - if !f(fd_PubKey_operator_public_key, value) { + if !f(fd_PubKeyInternal_operator_public_key, value) { return } } @@ -595,19 +595,19 @@ func (x *fastReflection_PubKey) Range(f func(protoreflect.FieldDescriptor, 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_PubKey) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_PubKeyInternal) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "gluon.customauth.pairing.PubKey.user": + case "gluon.customauth.pairing.PubKeyInternal.user": return len(x.User) != 0 - case "gluon.customauth.pairing.PubKey.pairing_public_key": + case "gluon.customauth.pairing.PubKeyInternal.pairing_public_key": return x.PairingPublicKey != nil - case "gluon.customauth.pairing.PubKey.operator_public_key": + case "gluon.customauth.pairing.PubKeyInternal.operator_public_key": return x.OperatorPublicKey != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKeyInternal")) } - panic(fmt.Errorf("message gluon.customauth.pairing.PubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message gluon.customauth.pairing.PubKeyInternal does not contain field %s", fd.FullName())) } } @@ -617,19 +617,19 @@ func (x *fastReflection_PubKey) Has(fd protoreflect.FieldDescriptor) bool { // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PubKey) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_PubKeyInternal) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "gluon.customauth.pairing.PubKey.user": + case "gluon.customauth.pairing.PubKeyInternal.user": x.User = nil - case "gluon.customauth.pairing.PubKey.pairing_public_key": + case "gluon.customauth.pairing.PubKeyInternal.pairing_public_key": x.PairingPublicKey = nil - case "gluon.customauth.pairing.PubKey.operator_public_key": + case "gluon.customauth.pairing.PubKeyInternal.operator_public_key": x.OperatorPublicKey = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKeyInternal")) } - panic(fmt.Errorf("message gluon.customauth.pairing.PubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message gluon.customauth.pairing.PubKeyInternal does not contain field %s", fd.FullName())) } } @@ -639,22 +639,22 @@ func (x *fastReflection_PubKey) 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_PubKey) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PubKeyInternal) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "gluon.customauth.pairing.PubKey.user": + case "gluon.customauth.pairing.PubKeyInternal.user": value := x.User return protoreflect.ValueOfBytes(value) - case "gluon.customauth.pairing.PubKey.pairing_public_key": + case "gluon.customauth.pairing.PubKeyInternal.pairing_public_key": value := x.PairingPublicKey return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "gluon.customauth.pairing.PubKey.operator_public_key": + case "gluon.customauth.pairing.PubKeyInternal.operator_public_key": value := x.OperatorPublicKey return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKeyInternal")) } - panic(fmt.Errorf("message gluon.customauth.pairing.PubKey does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message gluon.customauth.pairing.PubKeyInternal does not contain field %s", descriptor.FullName())) } } @@ -668,19 +668,19 @@ func (x *fastReflection_PubKey) Get(descriptor protoreflect.FieldDescriptor) pro // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PubKey) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_PubKeyInternal) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "gluon.customauth.pairing.PubKey.user": + case "gluon.customauth.pairing.PubKeyInternal.user": x.User = value.Bytes() - case "gluon.customauth.pairing.PubKey.pairing_public_key": + case "gluon.customauth.pairing.PubKeyInternal.pairing_public_key": x.PairingPublicKey = value.Message().Interface().(*anypb.Any) - case "gluon.customauth.pairing.PubKey.operator_public_key": + case "gluon.customauth.pairing.PubKeyInternal.operator_public_key": x.OperatorPublicKey = value.Message().Interface().(*anypb.Any) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKeyInternal")) } - panic(fmt.Errorf("message gluon.customauth.pairing.PubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message gluon.customauth.pairing.PubKeyInternal does not contain field %s", fd.FullName())) } } @@ -694,56 +694,56 @@ func (x *fastReflection_PubKey) Set(fd protoreflect.FieldDescriptor, value proto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_PubKey) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PubKeyInternal) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "gluon.customauth.pairing.PubKey.pairing_public_key": + case "gluon.customauth.pairing.PubKeyInternal.pairing_public_key": if x.PairingPublicKey == nil { x.PairingPublicKey = new(anypb.Any) } return protoreflect.ValueOfMessage(x.PairingPublicKey.ProtoReflect()) - case "gluon.customauth.pairing.PubKey.operator_public_key": + case "gluon.customauth.pairing.PubKeyInternal.operator_public_key": if x.OperatorPublicKey == nil { x.OperatorPublicKey = new(anypb.Any) } return protoreflect.ValueOfMessage(x.OperatorPublicKey.ProtoReflect()) - case "gluon.customauth.pairing.PubKey.user": - panic(fmt.Errorf("field user of message gluon.customauth.pairing.PubKey is not mutable")) + case "gluon.customauth.pairing.PubKeyInternal.user": + panic(fmt.Errorf("field user of message gluon.customauth.pairing.PubKeyInternal is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKeyInternal")) } - panic(fmt.Errorf("message gluon.customauth.pairing.PubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message gluon.customauth.pairing.PubKeyInternal 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_PubKey) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_PubKeyInternal) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "gluon.customauth.pairing.PubKey.user": + case "gluon.customauth.pairing.PubKeyInternal.user": return protoreflect.ValueOfBytes(nil) - case "gluon.customauth.pairing.PubKey.pairing_public_key": + case "gluon.customauth.pairing.PubKeyInternal.pairing_public_key": m := new(anypb.Any) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "gluon.customauth.pairing.PubKey.operator_public_key": + case "gluon.customauth.pairing.PubKeyInternal.operator_public_key": m := new(anypb.Any) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKey")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: gluon.customauth.pairing.PubKeyInternal")) } - panic(fmt.Errorf("message gluon.customauth.pairing.PubKey does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message gluon.customauth.pairing.PubKeyInternal 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_PubKey) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_PubKeyInternal) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in gluon.customauth.pairing.PubKey", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in gluon.customauth.pairing.PubKeyInternal", d.FullName())) } panic("unreachable") } @@ -751,7 +751,7 @@ func (x *fastReflection_PubKey) WhichOneof(d protoreflect.OneofDescriptor) 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_PubKey) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_PubKeyInternal) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -762,7 +762,7 @@ func (x *fastReflection_PubKey) 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_PubKey) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_PubKeyInternal) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -774,7 +774,7 @@ func (x *fastReflection_PubKey) 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_PubKey) IsValid() bool { +func (x *fastReflection_PubKeyInternal) IsValid() bool { return x != nil } @@ -784,9 +784,9 @@ func (x *fastReflection_PubKey) 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_PubKey) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_PubKeyInternal) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*PubKey) + x := input.Message.Interface().(*PubKeyInternal) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -820,7 +820,7 @@ func (x *fastReflection_PubKey) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*PubKey) + x := input.Message.Interface().(*PubKeyInternal) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -885,7 +885,7 @@ func (x *fastReflection_PubKey) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*PubKey) + x := input.Message.Interface().(*PubKeyInternal) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -917,10 +917,10 @@ func (x *fastReflection_PubKey) 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: PubKey: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PubKeyInternal: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PubKey: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: PubKeyInternal: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1077,7 +1077,7 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type PubKeyNotVerifiable struct { +type PubKey struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1086,8 +1086,8 @@ type PubKeyNotVerifiable struct { PairingId uint64 `protobuf:"varint,2,opt,name=pairing_id,json=pairingId,proto3" json:"pairing_id,omitempty"` } -func (x *PubKeyNotVerifiable) Reset() { - *x = PubKeyNotVerifiable{} +func (x *PubKey) Reset() { + *x = PubKey{} if protoimpl.UnsafeEnabled { mi := &file_gluon_customauth_pairing_pubkey_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1095,32 +1095,32 @@ func (x *PubKeyNotVerifiable) Reset() { } } -func (x *PubKeyNotVerifiable) String() string { +func (x *PubKey) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PubKeyNotVerifiable) ProtoMessage() {} +func (*PubKey) ProtoMessage() {} -// Deprecated: Use PubKeyNotVerifiable.ProtoReflect.Descriptor instead. -func (*PubKeyNotVerifiable) Descriptor() ([]byte, []int) { +// Deprecated: Use PubKey.ProtoReflect.Descriptor instead. +func (*PubKey) Descriptor() ([]byte, []int) { return file_gluon_customauth_pairing_pubkey_proto_rawDescGZIP(), []int{0} } -func (x *PubKeyNotVerifiable) GetUser() []byte { +func (x *PubKey) GetUser() []byte { if x != nil { return x.User } return nil } -func (x *PubKeyNotVerifiable) GetPairingId() uint64 { +func (x *PubKey) GetPairingId() uint64 { if x != nil { return x.PairingId } return 0 } -type PubKey struct { +type PubKeyInternal struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1130,8 +1130,8 @@ type PubKey struct { OperatorPublicKey *anypb.Any `protobuf:"bytes,3,opt,name=operator_public_key,json=operatorPublicKey,proto3" json:"operator_public_key,omitempty"` } -func (x *PubKey) Reset() { - *x = PubKey{} +func (x *PubKeyInternal) Reset() { + *x = PubKeyInternal{} if protoimpl.UnsafeEnabled { mi := &file_gluon_customauth_pairing_pubkey_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1139,32 +1139,32 @@ func (x *PubKey) Reset() { } } -func (x *PubKey) String() string { +func (x *PubKeyInternal) String() string { return protoimpl.X.MessageStringOf(x) } -func (*PubKey) ProtoMessage() {} +func (*PubKeyInternal) ProtoMessage() {} -// Deprecated: Use PubKey.ProtoReflect.Descriptor instead. -func (*PubKey) Descriptor() ([]byte, []int) { +// Deprecated: Use PubKeyInternal.ProtoReflect.Descriptor instead. +func (*PubKeyInternal) Descriptor() ([]byte, []int) { return file_gluon_customauth_pairing_pubkey_proto_rawDescGZIP(), []int{1} } -func (x *PubKey) GetUser() []byte { +func (x *PubKeyInternal) GetUser() []byte { if x != nil { return x.User } return nil } -func (x *PubKey) GetPairingPublicKey() *anypb.Any { +func (x *PubKeyInternal) GetPairingPublicKey() *anypb.Any { if x != nil { return x.PairingPublicKey } return nil } -func (x *PubKey) GetOperatorPublicKey() *anypb.Any { +func (x *PubKeyInternal) GetOperatorPublicKey() *anypb.Any { if x != nil { return x.OperatorPublicKey } @@ -1181,36 +1181,36 @@ var file_gluon_customauth_pairing_pubkey_proto_rawDesc = []byte{ 0x67, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0x48, 0x0a, 0x13, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x4e, 0x6f, 0x74, 0x56, - 0x65, 0x72, 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1d, 0x0a, - 0x0a, 0x70, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x09, 0x70, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x22, 0xb2, 0x01, 0x0a, - 0x06, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x48, 0x0a, 0x12, 0x70, - 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, - 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x04, 0xc8, - 0xde, 0x1f, 0x00, 0x52, 0x10, 0x70, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x50, 0x75, 0x62, 0x6c, - 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x4a, 0x0a, 0x13, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, - 0x72, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x74, 0x6f, 0x22, 0x3b, 0x0a, 0x06, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, + 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, + 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x70, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x22, + 0xba, 0x01, 0x0a, 0x0e, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, + 0x61, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x48, 0x0a, 0x12, 0x70, 0x61, 0x69, 0x72, 0x69, 0x6e, + 0x67, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, - 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, - 0x79, 0x42, 0xd1, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6c, 0x75, 0x6f, 0x6e, 0x2e, - 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x61, 0x69, 0x72, 0x69, - 0x6e, 0x67, 0x42, 0x0b, 0x50, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x22, 0x67, 0x6c, 0x75, 0x6f, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6c, 0x75, - 0x6f, 0x6e, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x70, 0x61, - 0x69, 0x72, 0x69, 0x6e, 0x67, 0xa2, 0x02, 0x03, 0x47, 0x43, 0x50, 0xaa, 0x02, 0x18, 0x47, 0x6c, - 0x75, 0x6f, 0x6e, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x50, - 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0xca, 0x02, 0x18, 0x47, 0x6c, 0x75, 0x6f, 0x6e, 0x5c, 0x43, - 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x5c, 0x50, 0x61, 0x69, 0x72, 0x69, 0x6e, - 0x67, 0xe2, 0x02, 0x24, 0x47, 0x6c, 0x75, 0x6f, 0x6e, 0x5c, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, - 0x61, 0x75, 0x74, 0x68, 0x5c, 0x50, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1a, 0x47, 0x6c, 0x75, 0x6f, 0x6e, - 0x3a, 0x3a, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x3a, 0x3a, 0x50, 0x61, - 0x69, 0x72, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x10, + 0x70, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, + 0x12, 0x4a, 0x0a, 0x13, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x70, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x41, 0x6e, 0x79, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x11, 0x6f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0xd1, 0x01, 0x0a, + 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6c, 0x75, 0x6f, 0x6e, 0x2e, 0x63, 0x75, 0x73, 0x74, 0x6f, + 0x6d, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x42, 0x0b, 0x50, + 0x75, 0x62, 0x6b, 0x65, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x22, 0x67, 0x6c, + 0x75, 0x6f, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6c, 0x75, 0x6f, 0x6e, 0x2f, 0x63, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x70, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, + 0xa2, 0x02, 0x03, 0x47, 0x43, 0x50, 0xaa, 0x02, 0x18, 0x47, 0x6c, 0x75, 0x6f, 0x6e, 0x2e, 0x43, + 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x69, 0x6e, + 0x67, 0xca, 0x02, 0x18, 0x47, 0x6c, 0x75, 0x6f, 0x6e, 0x5c, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, + 0x61, 0x75, 0x74, 0x68, 0x5c, 0x50, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0xe2, 0x02, 0x24, 0x47, + 0x6c, 0x75, 0x6f, 0x6e, 0x5c, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x5c, + 0x50, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x1a, 0x47, 0x6c, 0x75, 0x6f, 0x6e, 0x3a, 0x3a, 0x43, 0x75, 0x73, + 0x74, 0x6f, 0x6d, 0x61, 0x75, 0x74, 0x68, 0x3a, 0x3a, 0x50, 0x61, 0x69, 0x72, 0x69, 0x6e, 0x67, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1227,13 +1227,13 @@ func file_gluon_customauth_pairing_pubkey_proto_rawDescGZIP() []byte { var file_gluon_customauth_pairing_pubkey_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_gluon_customauth_pairing_pubkey_proto_goTypes = []interface{}{ - (*PubKeyNotVerifiable)(nil), // 0: gluon.customauth.pairing.PubKeyNotVerifiable - (*PubKey)(nil), // 1: gluon.customauth.pairing.PubKey - (*anypb.Any)(nil), // 2: google.protobuf.Any + (*PubKey)(nil), // 0: gluon.customauth.pairing.PubKey + (*PubKeyInternal)(nil), // 1: gluon.customauth.pairing.PubKeyInternal + (*anypb.Any)(nil), // 2: google.protobuf.Any } var file_gluon_customauth_pairing_pubkey_proto_depIdxs = []int32{ - 2, // 0: gluon.customauth.pairing.PubKey.pairing_public_key:type_name -> google.protobuf.Any - 2, // 1: gluon.customauth.pairing.PubKey.operator_public_key:type_name -> google.protobuf.Any + 2, // 0: gluon.customauth.pairing.PubKeyInternal.pairing_public_key:type_name -> google.protobuf.Any + 2, // 1: gluon.customauth.pairing.PubKeyInternal.operator_public_key:type_name -> google.protobuf.Any 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 @@ -1248,7 +1248,7 @@ func file_gluon_customauth_pairing_pubkey_proto_init() { } if !protoimpl.UnsafeEnabled { file_gluon_customauth_pairing_pubkey_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PubKeyNotVerifiable); i { + switch v := v.(*PubKey); i { case 0: return &v.state case 1: @@ -1260,7 +1260,7 @@ func file_gluon_customauth_pairing_pubkey_proto_init() { } } file_gluon_customauth_pairing_pubkey_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PubKey); i { + switch v := v.(*PubKeyInternal); i { case 0: return &v.state case 1: diff --git a/proto/gluon/customauth/operator/pubkey.proto b/proto/gluon/customauth/operator/pubkey.proto index 178adfa..c67aa7f 100644 --- a/proto/gluon/customauth/operator/pubkey.proto +++ b/proto/gluon/customauth/operator/pubkey.proto @@ -3,6 +3,6 @@ package gluon.customauth.operator; option go_package = "gluon/x/customauth/types/operator"; -message PubKeyNotVerifiable { +message PubKey { bytes user = 1; } diff --git a/proto/gluon/customauth/pairing/pubkey.proto b/proto/gluon/customauth/pairing/pubkey.proto index a0d1e96..bac1777 100644 --- a/proto/gluon/customauth/pairing/pubkey.proto +++ b/proto/gluon/customauth/pairing/pubkey.proto @@ -6,12 +6,12 @@ import "google/protobuf/any.proto"; option go_package = "gluon/x/customauth/types/pairing"; -message PubKeyNotVerifiable { +message PubKey { bytes user = 1; uint64 pairing_id = 2; } -message PubKey { +message PubKeyInternal { bytes user = 1; google.protobuf.Any pairing_public_key = 2 [ (gogoproto.nullable) = false ]; google.protobuf.Any operator_public_key = 3 [ (gogoproto.nullable) = false ]; diff --git a/x/customauth/ante/expected_keepers.go b/x/customauth/ante/expected_keepers.go index 8bbb527..75bbc06 100644 --- a/x/customauth/ante/expected_keepers.go +++ b/x/customauth/ante/expected_keepers.go @@ -39,5 +39,5 @@ type FeegrantKeeper interface { type CustomAuthKeeper interface { GetParams(ctx context.Context) (params types.Params) GetOperatorPubKey(ctx context.Context) (cryptotypes.PubKey, error) - GetPairingPubKey(goCtx context.Context, user sdk.AccAddress, pairingId uint64) (*pairing.PubKey, error) + GetPairingPubKey(goCtx context.Context, user sdk.AccAddress, pairingId uint64) (*pairing.PubKeyInternal, error) } diff --git a/x/customauth/ante/sigverify.go b/x/customauth/ante/sigverify.go index 126871f..24e3692 100644 --- a/x/customauth/ante/sigverify.go +++ b/x/customauth/ante/sigverify.go @@ -89,7 +89,7 @@ func (svd SigVerificationDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simul // var pubKey cryptotypes.PubKey switch pk := pubKeys[i].(type) { - case *operator.PubKeyNotVerifiable: + case *operator.PubKey: if !isOperatorTx { return ctx, errorsmod.Wrap(sdkerrors.ErrUnauthorized, "operator pubkey can be used only for designated messages") } @@ -98,7 +98,7 @@ func (svd SigVerificationDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simul return ctx, err } - case *pairing.PubKeyNotVerifiable: + case *pairing.PubKey: pubKey, err = svd.cak.GetPairingPubKey(ctx, acc.GetAddress(), pk.PairingId) if err != nil { return ctx, err diff --git a/x/customauth/keeper/pairing.go b/x/customauth/keeper/pairing.go index 2712a14..f3432eb 100644 --- a/x/customauth/keeper/pairing.go +++ b/x/customauth/keeper/pairing.go @@ -134,7 +134,7 @@ func (k Keeper) getPairingPubKey(pairing types.Pairing) (cryptotypes.PubKey, err return pubKey, nil } -func (k Keeper) GetPairingPubKey(goCtx context.Context, user sdk.AccAddress, pairingId uint64) (*pairing.PubKey, error) { +func (k Keeper) GetPairingPubKey(goCtx context.Context, user sdk.AccAddress, pairingId uint64) (*pairing.PubKeyInternal, error) { pairingVal, found := k.GetPairing(goCtx, user.String(), pairingId) if !found { return nil, errorsmod.Wrapf(types.ErrPairingNotFound, "address: %s, pairing_id: %d", user.String(), pairingId) @@ -147,7 +147,7 @@ func (k Keeper) GetPairingPubKey(goCtx context.Context, user sdk.AccAddress, pai return nil, errorsmod.Wrapf(types.ErrPairingDelayPeriod, "address: %s, pairing_id: %d", user.String(), pairingId) } - pubKey := pairing.PubKey{ + pubKey := pairing.PubKeyInternal{ User: user, PairingPublicKey: pairingVal.PublicKey, OperatorPublicKey: params.OperatorPublicKey, diff --git a/x/customauth/types/codec.go b/x/customauth/types/codec.go index 6e72790..d3e5d0e 100644 --- a/x/customauth/types/codec.go +++ b/x/customauth/types/codec.go @@ -13,8 +13,8 @@ import ( func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { registry.RegisterImplementations((*cryptotypes.PubKey)(nil), - &operator.PubKeyNotVerifiable{}, - &pairing.PubKeyNotVerifiable{}, + &operator.PubKey{}, + &pairing.PubKey{}, ) registry.RegisterImplementations((*sdk.Msg)(nil), diff --git a/x/customauth/types/operator/pubkey.go b/x/customauth/types/operator/pubkey.go index 35a904e..30aaa4c 100644 --- a/x/customauth/types/operator/pubkey.go +++ b/x/customauth/types/operator/pubkey.go @@ -7,23 +7,23 @@ import ( cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" ) -var _ cryptotypes.PubKey = &PubKeyNotVerifiable{} +var _ cryptotypes.PubKey = &PubKey{} -func (pk PubKeyNotVerifiable) Address() cometbytes.HexBytes { +func (pk PubKey) Address() cometbytes.HexBytes { return pk.User } -func (pk PubKeyNotVerifiable) Bytes() []byte { +func (pk PubKey) Bytes() []byte { return nil } -func (pk PubKeyNotVerifiable) VerifySignature(msg []byte, sig []byte) bool { +func (pk PubKey) VerifySignature(msg []byte, sig []byte) bool { return false } -func (pk PubKeyNotVerifiable) Equals(other cryptotypes.PubKey) bool { +func (pk PubKey) Equals(other cryptotypes.PubKey) bool { switch other := other.(type) { - case *PubKeyNotVerifiable: + case *PubKey: return bytes.Equal(pk.User, other.User) default: return false @@ -31,6 +31,6 @@ func (pk PubKeyNotVerifiable) Equals(other cryptotypes.PubKey) bool { } -func (pk PubKeyNotVerifiable) Type() string { +func (pk PubKey) Type() string { return "operator" } diff --git a/x/customauth/types/operator/pubkey.pb.go b/x/customauth/types/operator/pubkey.pb.go index b415e92..c11d82f 100644 --- a/x/customauth/types/operator/pubkey.pb.go +++ b/x/customauth/types/operator/pubkey.pb.go @@ -22,22 +22,22 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -type PubKeyNotVerifiable struct { +type PubKey struct { User []byte `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` } -func (m *PubKeyNotVerifiable) Reset() { *m = PubKeyNotVerifiable{} } -func (m *PubKeyNotVerifiable) String() string { return proto.CompactTextString(m) } -func (*PubKeyNotVerifiable) ProtoMessage() {} -func (*PubKeyNotVerifiable) Descriptor() ([]byte, []int) { +func (m *PubKey) Reset() { *m = PubKey{} } +func (m *PubKey) String() string { return proto.CompactTextString(m) } +func (*PubKey) ProtoMessage() {} +func (*PubKey) Descriptor() ([]byte, []int) { return fileDescriptor_424ef6ede97e6782, []int{0} } -func (m *PubKeyNotVerifiable) XXX_Unmarshal(b []byte) error { +func (m *PubKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *PubKeyNotVerifiable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *PubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_PubKeyNotVerifiable.Marshal(b, m, deterministic) + return xxx_messageInfo_PubKey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -47,19 +47,19 @@ func (m *PubKeyNotVerifiable) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *PubKeyNotVerifiable) XXX_Merge(src proto.Message) { - xxx_messageInfo_PubKeyNotVerifiable.Merge(m, src) +func (m *PubKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_PubKey.Merge(m, src) } -func (m *PubKeyNotVerifiable) XXX_Size() int { +func (m *PubKey) XXX_Size() int { return m.Size() } -func (m *PubKeyNotVerifiable) XXX_DiscardUnknown() { - xxx_messageInfo_PubKeyNotVerifiable.DiscardUnknown(m) +func (m *PubKey) XXX_DiscardUnknown() { + xxx_messageInfo_PubKey.DiscardUnknown(m) } -var xxx_messageInfo_PubKeyNotVerifiable proto.InternalMessageInfo +var xxx_messageInfo_PubKey proto.InternalMessageInfo -func (m *PubKeyNotVerifiable) GetUser() []byte { +func (m *PubKey) GetUser() []byte { if m != nil { return m.User } @@ -67,7 +67,7 @@ func (m *PubKeyNotVerifiable) GetUser() []byte { } func init() { - proto.RegisterType((*PubKeyNotVerifiable)(nil), "gluon.customauth.operator.PubKeyNotVerifiable") + proto.RegisterType((*PubKey)(nil), "gluon.customauth.operator.PubKey") } func init() { @@ -75,21 +75,20 @@ func init() { } var fileDescriptor_424ef6ede97e6782 = []byte{ - // 161 bytes of a gzipped FileDescriptorProto + // 148 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4b, 0xcf, 0x29, 0xcd, 0xcf, 0xd3, 0x4f, 0x2e, 0x2d, 0x2e, 0xc9, 0xcf, 0x4d, 0x2c, 0x2d, 0xc9, 0xd0, 0xcf, 0x2f, 0x48, 0x2d, 0x4a, 0x2c, 0xc9, 0x2f, 0xd2, 0x2f, 0x28, 0x4d, 0xca, 0x4e, 0xad, 0xd4, 0x2b, 0x28, 0xca, - 0x2f, 0xc9, 0x17, 0x92, 0x04, 0xab, 0xd3, 0x43, 0xa8, 0xd3, 0x83, 0xa9, 0x53, 0xd2, 0xe4, 0x12, - 0x0e, 0x28, 0x4d, 0xf2, 0x4e, 0xad, 0xf4, 0xcb, 0x2f, 0x09, 0x4b, 0x2d, 0xca, 0x4c, 0xcb, 0x4c, - 0x4c, 0xca, 0x49, 0x15, 0x12, 0xe2, 0x62, 0x29, 0x2d, 0x4e, 0x2d, 0x92, 0x60, 0x54, 0x60, 0xd4, - 0xe0, 0x09, 0x02, 0xb3, 0x9d, 0xac, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, - 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, - 0x4a, 0x11, 0xe2, 0x8e, 0x0a, 0x64, 0x97, 0x94, 0x54, 0x16, 0xa4, 0x16, 0xc3, 0xdd, 0x93, 0xc4, - 0x06, 0x76, 0x89, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x67, 0x52, 0xaa, 0x60, 0xb3, 0x00, 0x00, - 0x00, + 0x2f, 0xc9, 0x17, 0x92, 0x04, 0xab, 0xd3, 0x43, 0xa8, 0xd3, 0x83, 0xa9, 0x53, 0x92, 0xe1, 0x62, + 0x0b, 0x28, 0x4d, 0xf2, 0x4e, 0xad, 0x14, 0x12, 0xe2, 0x62, 0x29, 0x2d, 0x4e, 0x2d, 0x92, 0x60, + 0x54, 0x60, 0xd4, 0xe0, 0x09, 0x02, 0xb3, 0x9d, 0xac, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, + 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, + 0x58, 0x8e, 0x21, 0x4a, 0x11, 0x62, 0x75, 0x05, 0xb2, 0xe5, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x70, + 0x27, 0x24, 0xb1, 0x81, 0x2d, 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x99, 0x9d, 0x5e, 0x5a, + 0xa6, 0x00, 0x00, 0x00, } -func (m *PubKeyNotVerifiable) Marshal() (dAtA []byte, err error) { +func (m *PubKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -99,12 +98,12 @@ func (m *PubKeyNotVerifiable) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PubKeyNotVerifiable) MarshalTo(dAtA []byte) (int, error) { +func (m *PubKey) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PubKeyNotVerifiable) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -130,7 +129,7 @@ func encodeVarintPubkey(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *PubKeyNotVerifiable) Size() (n int) { +func (m *PubKey) Size() (n int) { if m == nil { return 0 } @@ -149,7 +148,7 @@ func sovPubkey(x uint64) (n int) { func sozPubkey(x uint64) (n int) { return sovPubkey(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *PubKeyNotVerifiable) Unmarshal(dAtA []byte) error { +func (m *PubKey) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -172,10 +171,10 @@ func (m *PubKeyNotVerifiable) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PubKeyNotVerifiable: wiretype end group for non-group") + return fmt.Errorf("proto: PubKey: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PubKeyNotVerifiable: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PubKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/customauth/types/pairing/pubkey.go b/x/customauth/types/pairing/pubkey.go index 8297fe5..8ee013f 100644 --- a/x/customauth/types/pairing/pubkey.go +++ b/x/customauth/types/pairing/pubkey.go @@ -9,63 +9,63 @@ import ( txsigning "github.com/cosmos/cosmos-sdk/types/tx/signing" ) -var _ cryptotypes.PubKey = &PubKeyNotVerifiable{} +var _ cryptotypes.PubKey = &PubKey{} -func (pk PubKeyNotVerifiable) Address() cometbytes.HexBytes { +func (pk PubKey) Address() cometbytes.HexBytes { return pk.User } -func (pk PubKeyNotVerifiable) Bytes() []byte { +func (pk PubKey) Bytes() []byte { return nil } -func (pk PubKeyNotVerifiable) VerifySignature(msg []byte, sig []byte) bool { +func (pk PubKey) VerifySignature(msg []byte, sig []byte) bool { return false } -func (pk PubKeyNotVerifiable) Equals(other cryptotypes.PubKey) bool { +func (pk PubKey) Equals(other cryptotypes.PubKey) bool { switch other := other.(type) { - case *PubKeyNotVerifiable: + case *PubKey: return bytes.Equal(pk.User, other.User) && pk.PairingId == other.PairingId default: return false } } -func (pk PubKeyNotVerifiable) Type() string { +func (pk PubKey) Type() string { return "pairing" } -var _ multisig.PubKey = &PubKey{} +var _ multisig.PubKey = &PubKeyInternal{} -func (pk PubKey) Address() cometbytes.HexBytes { +func (pk PubKeyInternal) Address() cometbytes.HexBytes { return pk.User } -func (pk PubKey) Bytes() []byte { +func (pk PubKeyInternal) Bytes() []byte { return nil } -func (pk PubKey) VerifySignature(msg []byte, sig []byte) bool { +func (pk PubKeyInternal) VerifySignature(msg []byte, sig []byte) bool { return false } -func (pk PubKey) Equals(other cryptotypes.PubKey) bool { +func (pk PubKeyInternal) Equals(other cryptotypes.PubKey) bool { return false } -func (pk PubKey) Type() string { +func (pk PubKeyInternal) Type() string { return "pairing" } -func (pk PubKey) VerifyMultisignature(getSignBytes multisig.GetSignBytesFunc, sig *txsigning.MultiSignatureData) error { +func (pk PubKeyInternal) VerifyMultisignature(getSignBytes multisig.GetSignBytesFunc, sig *txsigning.MultiSignatureData) error { return nil } -func (pk PubKey) GetPubKeys() []cryptotypes.PubKey { +func (pk PubKeyInternal) GetPubKeys() []cryptotypes.PubKey { return nil } -func (pk PubKey) GetThreshold() uint { +func (pk PubKeyInternal) GetThreshold() uint { return 2 } diff --git a/x/customauth/types/pairing/pubkey.pb.go b/x/customauth/types/pairing/pubkey.pb.go index 70a176d..e950790 100644 --- a/x/customauth/types/pairing/pubkey.pb.go +++ b/x/customauth/types/pairing/pubkey.pb.go @@ -24,23 +24,23 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -type PubKeyNotVerifiable struct { +type PubKey struct { User []byte `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` PairingId uint64 `protobuf:"varint,2,opt,name=pairing_id,json=pairingId,proto3" json:"pairing_id,omitempty"` } -func (m *PubKeyNotVerifiable) Reset() { *m = PubKeyNotVerifiable{} } -func (m *PubKeyNotVerifiable) String() string { return proto.CompactTextString(m) } -func (*PubKeyNotVerifiable) ProtoMessage() {} -func (*PubKeyNotVerifiable) Descriptor() ([]byte, []int) { +func (m *PubKey) Reset() { *m = PubKey{} } +func (m *PubKey) String() string { return proto.CompactTextString(m) } +func (*PubKey) ProtoMessage() {} +func (*PubKey) Descriptor() ([]byte, []int) { return fileDescriptor_98aa9902169785e6, []int{0} } -func (m *PubKeyNotVerifiable) XXX_Unmarshal(b []byte) error { +func (m *PubKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *PubKeyNotVerifiable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *PubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_PubKeyNotVerifiable.Marshal(b, m, deterministic) + return xxx_messageInfo_PubKey.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -50,50 +50,50 @@ func (m *PubKeyNotVerifiable) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *PubKeyNotVerifiable) XXX_Merge(src proto.Message) { - xxx_messageInfo_PubKeyNotVerifiable.Merge(m, src) +func (m *PubKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_PubKey.Merge(m, src) } -func (m *PubKeyNotVerifiable) XXX_Size() int { +func (m *PubKey) XXX_Size() int { return m.Size() } -func (m *PubKeyNotVerifiable) XXX_DiscardUnknown() { - xxx_messageInfo_PubKeyNotVerifiable.DiscardUnknown(m) +func (m *PubKey) XXX_DiscardUnknown() { + xxx_messageInfo_PubKey.DiscardUnknown(m) } -var xxx_messageInfo_PubKeyNotVerifiable proto.InternalMessageInfo +var xxx_messageInfo_PubKey proto.InternalMessageInfo -func (m *PubKeyNotVerifiable) GetUser() []byte { +func (m *PubKey) GetUser() []byte { if m != nil { return m.User } return nil } -func (m *PubKeyNotVerifiable) GetPairingId() uint64 { +func (m *PubKey) GetPairingId() uint64 { if m != nil { return m.PairingId } return 0 } -type PubKey struct { +type PubKeyInternal struct { User []byte `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` PairingPublicKey types.Any `protobuf:"bytes,2,opt,name=pairing_public_key,json=pairingPublicKey,proto3" json:"pairing_public_key"` OperatorPublicKey types.Any `protobuf:"bytes,3,opt,name=operator_public_key,json=operatorPublicKey,proto3" json:"operator_public_key"` } -func (m *PubKey) Reset() { *m = PubKey{} } -func (m *PubKey) String() string { return proto.CompactTextString(m) } -func (*PubKey) ProtoMessage() {} -func (*PubKey) Descriptor() ([]byte, []int) { +func (m *PubKeyInternal) Reset() { *m = PubKeyInternal{} } +func (m *PubKeyInternal) String() string { return proto.CompactTextString(m) } +func (*PubKeyInternal) ProtoMessage() {} +func (*PubKeyInternal) Descriptor() ([]byte, []int) { return fileDescriptor_98aa9902169785e6, []int{1} } -func (m *PubKey) XXX_Unmarshal(b []byte) error { +func (m *PubKeyInternal) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *PubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *PubKeyInternal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_PubKey.Marshal(b, m, deterministic) + return xxx_messageInfo_PubKeyInternal.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -103,33 +103,33 @@ func (m *PubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *PubKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_PubKey.Merge(m, src) +func (m *PubKeyInternal) XXX_Merge(src proto.Message) { + xxx_messageInfo_PubKeyInternal.Merge(m, src) } -func (m *PubKey) XXX_Size() int { +func (m *PubKeyInternal) XXX_Size() int { return m.Size() } -func (m *PubKey) XXX_DiscardUnknown() { - xxx_messageInfo_PubKey.DiscardUnknown(m) +func (m *PubKeyInternal) XXX_DiscardUnknown() { + xxx_messageInfo_PubKeyInternal.DiscardUnknown(m) } -var xxx_messageInfo_PubKey proto.InternalMessageInfo +var xxx_messageInfo_PubKeyInternal proto.InternalMessageInfo -func (m *PubKey) GetUser() []byte { +func (m *PubKeyInternal) GetUser() []byte { if m != nil { return m.User } return nil } -func (m *PubKey) GetPairingPublicKey() types.Any { +func (m *PubKeyInternal) GetPairingPublicKey() types.Any { if m != nil { return m.PairingPublicKey } return types.Any{} } -func (m *PubKey) GetOperatorPublicKey() types.Any { +func (m *PubKeyInternal) GetOperatorPublicKey() types.Any { if m != nil { return m.OperatorPublicKey } @@ -137,8 +137,8 @@ func (m *PubKey) GetOperatorPublicKey() types.Any { } func init() { - proto.RegisterType((*PubKeyNotVerifiable)(nil), "gluon.customauth.pairing.PubKeyNotVerifiable") proto.RegisterType((*PubKey)(nil), "gluon.customauth.pairing.PubKey") + proto.RegisterType((*PubKeyInternal)(nil), "gluon.customauth.pairing.PubKeyInternal") } func init() { @@ -146,29 +146,28 @@ func init() { } var fileDescriptor_98aa9902169785e6 = []byte{ - // 291 bytes of a gzipped FileDescriptorProto + // 286 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4d, 0xcf, 0x29, 0xcd, 0xcf, 0xd3, 0x4f, 0x2e, 0x2d, 0x2e, 0xc9, 0xcf, 0x4d, 0x2c, 0x2d, 0xc9, 0xd0, 0x2f, 0x48, 0xcc, 0x2c, 0xca, 0xcc, 0x4b, 0xd7, 0x2f, 0x28, 0x4d, 0xca, 0x4e, 0xad, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x00, 0x2b, 0xd3, 0x43, 0x28, 0xd3, 0x83, 0x2a, 0x93, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0x2b, 0xd2, 0x07, 0xb1, 0x20, 0xea, 0xa5, 0x24, 0xd3, 0xf3, 0xf3, 0xd3, 0x73, 0x52, - 0xf5, 0xc1, 0xbc, 0xa4, 0xd2, 0x34, 0xfd, 0xc4, 0x3c, 0xa8, 0x51, 0x4a, 0x1e, 0x5c, 0xc2, 0x01, - 0xa5, 0x49, 0xde, 0xa9, 0x95, 0x7e, 0xf9, 0x25, 0x61, 0xa9, 0x45, 0x99, 0x69, 0x99, 0x89, 0x49, - 0x39, 0xa9, 0x42, 0x42, 0x5c, 0x2c, 0xa5, 0xc5, 0xa9, 0x45, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x3c, - 0x41, 0x60, 0xb6, 0x90, 0x2c, 0x17, 0x17, 0xd4, 0x9a, 0xf8, 0xcc, 0x14, 0x09, 0x26, 0x05, 0x46, - 0x0d, 0x96, 0x20, 0x4e, 0xa8, 0x88, 0x67, 0x8a, 0xd2, 0x26, 0x46, 0x2e, 0x36, 0x88, 0x51, 0x58, - 0x75, 0x7b, 0x70, 0x09, 0xc1, 0x74, 0x17, 0x94, 0x26, 0xe5, 0x64, 0x26, 0xc7, 0x67, 0xa7, 0x56, - 0x82, 0x4d, 0xe1, 0x36, 0x12, 0xd1, 0x83, 0x38, 0x50, 0x0f, 0xe6, 0x40, 0x3d, 0xc7, 0xbc, 0x4a, - 0x27, 0x96, 0x13, 0xf7, 0xe4, 0x19, 0x82, 0x04, 0xa0, 0xba, 0x02, 0xc0, 0x9a, 0x40, 0xa6, 0x7b, - 0x71, 0x09, 0xe7, 0x17, 0xa4, 0x16, 0x25, 0x96, 0xe4, 0x17, 0x21, 0x1b, 0xc5, 0x4c, 0xd0, 0x28, - 0x41, 0x98, 0x36, 0xb8, 0x59, 0x4e, 0x56, 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, 0x00, 0x89, 0x8a, 0x0a, 0xe4, 0xc8, 0x28, 0xa9, 0x2c, 0x48, 0x2d, 0x86, 0x45, 0x49, - 0x12, 0x1b, 0xd8, 0x0a, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x84, 0xad, 0xae, 0x42, 0xb5, - 0x01, 0x00, 0x00, + 0xf5, 0xc1, 0xbc, 0xa4, 0xd2, 0x34, 0xfd, 0xc4, 0x3c, 0xa8, 0x51, 0x4a, 0xd6, 0x5c, 0x6c, 0x01, + 0xa5, 0x49, 0xde, 0xa9, 0x95, 0x42, 0x42, 0x5c, 0x2c, 0xa5, 0xc5, 0xa9, 0x45, 0x12, 0x8c, 0x0a, + 0x8c, 0x1a, 0x3c, 0x41, 0x60, 0xb6, 0x90, 0x2c, 0x17, 0x17, 0xd4, 0xe4, 0xf8, 0xcc, 0x14, 0x09, + 0x26, 0x05, 0x46, 0x0d, 0x96, 0x20, 0x4e, 0xa8, 0x88, 0x67, 0x8a, 0xd2, 0x2e, 0x46, 0x2e, 0x3e, + 0x88, 0x6e, 0xcf, 0xbc, 0x92, 0xd4, 0xa2, 0xbc, 0xc4, 0x1c, 0xac, 0xa6, 0x78, 0x70, 0x09, 0xc1, + 0x4c, 0x29, 0x28, 0x4d, 0xca, 0xc9, 0x4c, 0x8e, 0xcf, 0x4e, 0xad, 0x04, 0x9b, 0xc6, 0x6d, 0x24, + 0xa2, 0x07, 0x71, 0x9b, 0x1e, 0xcc, 0x6d, 0x7a, 0x8e, 0x79, 0x95, 0x4e, 0x2c, 0x27, 0xee, 0xc9, + 0x33, 0x04, 0x09, 0x40, 0x75, 0x05, 0x80, 0x35, 0x81, 0xdc, 0xe8, 0xc5, 0x25, 0x9c, 0x5f, 0x90, + 0x5a, 0x94, 0x58, 0x92, 0x5f, 0x84, 0x6c, 0x14, 0x33, 0x41, 0xa3, 0x04, 0x61, 0xda, 0xe0, 0x66, + 0x39, 0x59, 0x9d, 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, 0x02, 0x24, 0x16, + 0x2a, 0x90, 0xe3, 0xa1, 0xa4, 0xb2, 0x20, 0xb5, 0x18, 0x16, 0x1b, 0x49, 0x6c, 0x60, 0x2b, 0x8c, + 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xcc, 0x87, 0xa1, 0xc5, 0xb0, 0x01, 0x00, 0x00, } -func (m *PubKeyNotVerifiable) Marshal() (dAtA []byte, err error) { +func (m *PubKey) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -178,12 +177,12 @@ func (m *PubKeyNotVerifiable) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PubKeyNotVerifiable) MarshalTo(dAtA []byte) (int, error) { +func (m *PubKey) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PubKeyNotVerifiable) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -203,7 +202,7 @@ func (m *PubKeyNotVerifiable) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *PubKey) Marshal() (dAtA []byte, err error) { +func (m *PubKeyInternal) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -213,12 +212,12 @@ func (m *PubKey) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *PubKey) MarshalTo(dAtA []byte) (int, error) { +func (m *PubKeyInternal) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *PubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *PubKeyInternal) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -264,7 +263,7 @@ func encodeVarintPubkey(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return base } -func (m *PubKeyNotVerifiable) Size() (n int) { +func (m *PubKey) Size() (n int) { if m == nil { return 0 } @@ -280,7 +279,7 @@ func (m *PubKeyNotVerifiable) Size() (n int) { return n } -func (m *PubKey) Size() (n int) { +func (m *PubKeyInternal) Size() (n int) { if m == nil { return 0 } @@ -303,7 +302,7 @@ func sovPubkey(x uint64) (n int) { func sozPubkey(x uint64) (n int) { return sovPubkey(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *PubKeyNotVerifiable) Unmarshal(dAtA []byte) error { +func (m *PubKey) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -326,10 +325,10 @@ func (m *PubKeyNotVerifiable) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PubKeyNotVerifiable: wiretype end group for non-group") + return fmt.Errorf("proto: PubKey: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PubKeyNotVerifiable: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PubKey: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -406,7 +405,7 @@ func (m *PubKeyNotVerifiable) Unmarshal(dAtA []byte) error { } return nil } -func (m *PubKey) Unmarshal(dAtA []byte) error { +func (m *PubKeyInternal) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -429,10 +428,10 @@ func (m *PubKey) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: PubKey: wiretype end group for non-group") + return fmt.Errorf("proto: PubKeyInternal: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: PubKey: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: PubKeyInternal: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: