diff --git a/CHANGELOG.md b/CHANGELOG.md index c83fcdd31..22caf1f08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## Unreleased +### API Breaking + +* [#194](https://github.com/babylonlabs-io/babylon/pull/194) Adjusted handling of `FinalityProviderSigningInfo` in finality keeper queries to improve API security + * Modified `QuerySigningInfosResponse` to remove direct exposure of sensitive fields + * Updated related tests in `x/finality/keeper/grpc_query_test.go` + ### State Machine Breaking * [#181](https://github.com/babylonlabs-io/babylon/pull/181) Modify BTC heights diff --git a/proto/babylon/finality/v1/query.proto b/proto/babylon/finality/v1/query.proto index e65c86312..2689f74ca 100644 --- a/proto/babylon/finality/v1/query.proto +++ b/proto/babylon/finality/v1/query.proto @@ -6,6 +6,8 @@ import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; import "babylon/finality/v1/params.proto"; import "babylon/finality/v1/finality.proto"; +import "google/protobuf/timestamp.proto"; +import "amino/amino.proto"; option go_package = "github.com/babylonlabs-io/babylon/x/finality/types"; @@ -229,11 +231,24 @@ message QuerySigningInfoRequest { string fp_btc_pk_hex = 1; } +// SigningInfoResponse defines the API response containing a finality provider's signing info +// for monitoring their liveness activity. +message SigningInfoResponse { + // fp_btc_pk is the BTC PK of the finality provider that casts this vote + string fp_btc_pk_hex = 1; + // start_height is the block height at which finality provider become active + int64 start_height = 2; + // missed_blocks_counter defines a counter to avoid unnecessary array reads. + // Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. + int64 missed_blocks_counter = 3; + // Timestamp until which the validator is jailed due to liveness downtime. + google.protobuf.Timestamp jailed_until = 4 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; +} + // QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC // method message QuerySigningInfoResponse { - // fp_signing_info is the signing info of requested finality provider BTC public key - FinalityProviderSigningInfo fp_signing_info = 1 [(gogoproto.nullable) = false]; + SigningInfoResponse signing_info = 1 [(gogoproto.nullable) = false]; } // QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC @@ -246,6 +261,6 @@ message QuerySigningInfosRequest { // method message QuerySigningInfosResponse { // info is the signing info of all finality providers with signing info - repeated FinalityProviderSigningInfo fp_signing_infos = 1 [(gogoproto.nullable) = false]; + repeated SigningInfoResponse signing_infos = 1 [(gogoproto.nullable) = false]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } diff --git a/x/finality/keeper/grpc_query.go b/x/finality/keeper/grpc_query.go index 1478f8f26..f3452cc1d 100644 --- a/x/finality/keeper/grpc_query.go +++ b/x/finality/keeper/grpc_query.go @@ -246,7 +246,7 @@ func (k Keeper) SigningInfo(ctx context.Context, req *types.QuerySigningInfoRequ return nil, status.Errorf(codes.NotFound, "SigningInfo not found for the finality provider %s", req.FpBtcPkHex) } - return &types.QuerySigningInfoResponse{FpSigningInfo: signingInfo}, nil + return &types.QuerySigningInfoResponse{SigningInfo: convertToSigningInfoResponse(signingInfo)}, nil } // SigningInfos returns signing-infos of all finality providers. @@ -271,5 +271,22 @@ func (k Keeper) SigningInfos(ctx context.Context, req *types.QuerySigningInfosRe if err != nil { return nil, err } - return &types.QuerySigningInfosResponse{FpSigningInfos: signInfos, Pagination: pageRes}, nil + return &types.QuerySigningInfosResponse{SigningInfos: convertToSigningInfosResponse(signInfos), Pagination: pageRes}, nil +} + +func convertToSigningInfoResponse(info types.FinalityProviderSigningInfo) types.SigningInfoResponse { + return types.SigningInfoResponse{ + FpBtcPkHex: info.FpBtcPk.MarshalHex(), + StartHeight: info.StartHeight, + MissedBlocksCounter: info.MissedBlocksCounter, + JailedUntil: info.JailedUntil, + } +} + +func convertToSigningInfosResponse(signInfos []types.FinalityProviderSigningInfo) []types.SigningInfoResponse { + response := make([]types.SigningInfoResponse, len(signInfos)) + for i, info := range signInfos { + response[i] = convertToSigningInfoResponse(info) + } + return response } diff --git a/x/finality/keeper/grpc_query_test.go b/x/finality/keeper/grpc_query_test.go index 8f15e20a0..d0c0c5829 100644 --- a/x/finality/keeper/grpc_query_test.go +++ b/x/finality/keeper/grpc_query_test.go @@ -405,9 +405,9 @@ func FuzzSigningInfo(f *testing.F) { req := &types.QuerySigningInfoRequest{FpBtcPkHex: fpPk} resp, err := fKeeper.SigningInfo(ctx, req) require.NoError(t, err) - require.Equal(t, fpSigningInfos[fpPk].StartHeight, resp.FpSigningInfo.StartHeight) - require.Equal(t, fpSigningInfos[fpPk].MissedBlocksCounter, resp.FpSigningInfo.MissedBlocksCounter) - require.Equal(t, fpPk, resp.FpSigningInfo.FpBtcPk.MarshalHex()) + require.Equal(t, fpSigningInfos[fpPk].StartHeight, resp.SigningInfo.StartHeight) + require.Equal(t, fpSigningInfos[fpPk].MissedBlocksCounter, resp.SigningInfo.MissedBlocksCounter) + require.Equal(t, fpPk, resp.SigningInfo.FpBtcPkHex) } // perform a query for signing info of non-exist finality provider @@ -428,12 +428,11 @@ func FuzzSigningInfo(f *testing.F) { } resp, err := fKeeper.SigningInfos(ctx, req) require.NoError(t, err) - require.LessOrEqual(t, len(resp.FpSigningInfos), int(limit)) // check if pagination takes effect + require.LessOrEqual(t, len(resp.SigningInfos), int(limit)) // check if pagination takes effect require.EqualValues(t, resp.Pagination.Total, numSigningInfo) // ensure evidences before startHeight are not included - for _, si := range resp.FpSigningInfos { - require.Equal(t, fpSigningInfos[si.FpBtcPk.MarshalHex()].MissedBlocksCounter, si.MissedBlocksCounter) - require.Equal(t, fpSigningInfos[si.FpBtcPk.MarshalHex()].FpBtcPk.MarshalHex(), si.FpBtcPk.MarshalHex()) - require.Equal(t, fpSigningInfos[si.FpBtcPk.MarshalHex()].StartHeight, si.StartHeight) + for _, si := range resp.SigningInfos { + require.Equal(t, fpSigningInfos[si.FpBtcPkHex].MissedBlocksCounter, si.MissedBlocksCounter) + require.Equal(t, fpSigningInfos[si.FpBtcPkHex].StartHeight, si.StartHeight) } }) } diff --git a/x/finality/types/query.pb.go b/x/finality/types/query.pb.go index b3dd8afb0..d12c7aad2 100644 --- a/x/finality/types/query.pb.go +++ b/x/finality/types/query.pb.go @@ -8,22 +8,27 @@ import ( fmt "fmt" github_com_babylonlabs_io_babylon_types "github.com/babylonlabs-io/babylon/types" query "github.com/cosmos/cosmos-sdk/types/query" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" + github_com_cosmos_gogoproto_types "github.com/cosmos/gogoproto/types" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" + _ "google.golang.org/protobuf/types/known/timestamppb" io "io" math "math" math_bits "math/bits" + time "time" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf +var _ = time.Kitchen // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. @@ -978,18 +983,87 @@ func (m *QuerySigningInfoRequest) GetFpBtcPkHex() string { return "" } +// SigningInfoResponse defines the API response containing a finality provider's signing info +// for monitoring their liveness activity. +type SigningInfoResponse struct { + FpBtcPkHex string `protobuf:"bytes,1,opt,name=fp_btc_pk_hex,json=fpBtcPkHex,proto3" json:"fp_btc_pk_hex,omitempty"` + StartHeight int64 `protobuf:"varint,2,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"` + MissedBlocksCounter int64 `protobuf:"varint,3,opt,name=missed_blocks_counter,json=missedBlocksCounter,proto3" json:"missed_blocks_counter,omitempty"` + JailedUntil time.Time `protobuf:"bytes,4,opt,name=jailed_until,json=jailedUntil,proto3,stdtime" json:"jailed_until"` +} + +func (m *SigningInfoResponse) Reset() { *m = SigningInfoResponse{} } +func (m *SigningInfoResponse) String() string { return proto.CompactTextString(m) } +func (*SigningInfoResponse) ProtoMessage() {} +func (*SigningInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_32bddab77af6fdae, []int{18} +} +func (m *SigningInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SigningInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SigningInfoResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SigningInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SigningInfoResponse.Merge(m, src) +} +func (m *SigningInfoResponse) XXX_Size() int { + return m.Size() +} +func (m *SigningInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SigningInfoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SigningInfoResponse proto.InternalMessageInfo + +func (m *SigningInfoResponse) GetFpBtcPkHex() string { + if m != nil { + return m.FpBtcPkHex + } + return "" +} + +func (m *SigningInfoResponse) GetStartHeight() int64 { + if m != nil { + return m.StartHeight + } + return 0 +} + +func (m *SigningInfoResponse) GetMissedBlocksCounter() int64 { + if m != nil { + return m.MissedBlocksCounter + } + return 0 +} + +func (m *SigningInfoResponse) GetJailedUntil() time.Time { + if m != nil { + return m.JailedUntil + } + return time.Time{} +} + // QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC // method type QuerySigningInfoResponse struct { - // fp_signing_info is the signing info of requested finality provider BTC public key - FpSigningInfo FinalityProviderSigningInfo `protobuf:"bytes,1,opt,name=fp_signing_info,json=fpSigningInfo,proto3" json:"fp_signing_info"` + SigningInfo SigningInfoResponse `protobuf:"bytes,1,opt,name=signing_info,json=signingInfo,proto3" json:"signing_info"` } func (m *QuerySigningInfoResponse) Reset() { *m = QuerySigningInfoResponse{} } func (m *QuerySigningInfoResponse) String() string { return proto.CompactTextString(m) } func (*QuerySigningInfoResponse) ProtoMessage() {} func (*QuerySigningInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_32bddab77af6fdae, []int{18} + return fileDescriptor_32bddab77af6fdae, []int{19} } func (m *QuerySigningInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1018,11 +1092,11 @@ func (m *QuerySigningInfoResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QuerySigningInfoResponse proto.InternalMessageInfo -func (m *QuerySigningInfoResponse) GetFpSigningInfo() FinalityProviderSigningInfo { +func (m *QuerySigningInfoResponse) GetSigningInfo() SigningInfoResponse { if m != nil { - return m.FpSigningInfo + return m.SigningInfo } - return FinalityProviderSigningInfo{} + return SigningInfoResponse{} } // QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC @@ -1035,7 +1109,7 @@ func (m *QuerySigningInfosRequest) Reset() { *m = QuerySigningInfosReque func (m *QuerySigningInfosRequest) String() string { return proto.CompactTextString(m) } func (*QuerySigningInfosRequest) ProtoMessage() {} func (*QuerySigningInfosRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_32bddab77af6fdae, []int{19} + return fileDescriptor_32bddab77af6fdae, []int{20} } func (m *QuerySigningInfosRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1075,15 +1149,15 @@ func (m *QuerySigningInfosRequest) GetPagination() *query.PageRequest { // method type QuerySigningInfosResponse struct { // info is the signing info of all finality providers with signing info - FpSigningInfos []FinalityProviderSigningInfo `protobuf:"bytes,1,rep,name=fp_signing_infos,json=fpSigningInfos,proto3" json:"fp_signing_infos"` - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + SigningInfos []SigningInfoResponse `protobuf:"bytes,1,rep,name=signing_infos,json=signingInfos,proto3" json:"signing_infos"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (m *QuerySigningInfosResponse) Reset() { *m = QuerySigningInfosResponse{} } func (m *QuerySigningInfosResponse) String() string { return proto.CompactTextString(m) } func (*QuerySigningInfosResponse) ProtoMessage() {} func (*QuerySigningInfosResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_32bddab77af6fdae, []int{20} + return fileDescriptor_32bddab77af6fdae, []int{21} } func (m *QuerySigningInfosResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1112,9 +1186,9 @@ func (m *QuerySigningInfosResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QuerySigningInfosResponse proto.InternalMessageInfo -func (m *QuerySigningInfosResponse) GetFpSigningInfos() []FinalityProviderSigningInfo { +func (m *QuerySigningInfosResponse) GetSigningInfos() []SigningInfoResponse { if m != nil { - return m.FpSigningInfos + return m.SigningInfos } return nil } @@ -1148,6 +1222,7 @@ func init() { proto.RegisterType((*QueryListEvidencesRequest)(nil), "babylon.finality.v1.QueryListEvidencesRequest") proto.RegisterType((*QueryListEvidencesResponse)(nil), "babylon.finality.v1.QueryListEvidencesResponse") proto.RegisterType((*QuerySigningInfoRequest)(nil), "babylon.finality.v1.QuerySigningInfoRequest") + proto.RegisterType((*SigningInfoResponse)(nil), "babylon.finality.v1.SigningInfoResponse") proto.RegisterType((*QuerySigningInfoResponse)(nil), "babylon.finality.v1.QuerySigningInfoResponse") proto.RegisterType((*QuerySigningInfosRequest)(nil), "babylon.finality.v1.QuerySigningInfosRequest") proto.RegisterType((*QuerySigningInfosResponse)(nil), "babylon.finality.v1.QuerySigningInfosResponse") @@ -1156,91 +1231,98 @@ func init() { func init() { proto.RegisterFile("babylon/finality/v1/query.proto", fileDescriptor_32bddab77af6fdae) } var fileDescriptor_32bddab77af6fdae = []byte{ - // 1338 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xdf, 0x6f, 0xd3, 0xd6, - 0x17, 0xef, 0x6d, 0x69, 0xa1, 0xa7, 0x09, 0x94, 0x4b, 0xe1, 0xdb, 0x6f, 0x18, 0x69, 0x30, 0xac, - 0xb0, 0x02, 0x36, 0x4d, 0x19, 0x03, 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 0x72, 0xba, 0xa4, 0x4e, 0x8f, 0xa6, - 0x3c, 0x52, 0x33, 0x8b, 0x6b, 0xe1, 0x21, 0x82, 0x64, 0x64, 0x57, 0x63, 0xb9, 0x7f, 0x90, 0xb8, - 0x4b, 0x20, 0xa5, 0x8c, 0xac, 0x2f, 0x70, 0x9d, 0x62, 0xb8, 0x5e, 0xc5, 0xc7, 0x62, 0x71, 0x35, - 0x5a, 0x36, 0x1d, 0xba, 0x7e, 0x41, 0xb0, 0x27, 0x58, 0x41, 0xf8, 0xb5, 0xfe, 0xa1, 0xba, 0xd6, - 0x7f, 0x6a, 0x65, 0x14, 0x55, 0x01, 0xe8, 0x3a, 0x03, 0x94, 0xc3, 0x57, 0x76, 0xda, 0x71, 0xc1, - 0x66, 0xc4, 0xdf, 0x21, 0x48, 0x46, 0xf6, 0xed, 0x20, 0x36, 0xe3, 0x2e, 0x84, 0x41, 0x6c, 0xc6, - 0x2e, 0x72, 0x69, 0x99, 0x81, 0xcf, 0xe0, 0x74, 0x2c, 0xf8, 0xce, 0xce, 0xfe, 0x19, 0xc1, 0x5c, - 0x68, 0xba, 0xe3, 0x01, 0xbd, 0xd4, 0xbb, 0x8d, 0x53, 0x67, 0x46, 0xd4, 0x16, 0xa0, 0x2e, 0x31, - 0x50, 0xe7, 0x70, 0x36, 0x16, 0x54, 0x64, 0x67, 0x75, 0x93, 0x89, 0xbf, 0x47, 0x90, 0x88, 0xac, - 0xa1, 0xd1, 0x62, 0xb7, 0x19, 0x94, 0x47, 0x55, 0x17, 0x58, 0x57, 0x18, 0xd6, 0xe3, 0x58, 0x1a, - 0x8e, 0x35, 0xb7, 0xf1, 0xe8, 0x79, 0x1a, 0x3d, 0x7e, 0x9e, 0x46, 0x7f, 0x3d, 0x4f, 0xa3, 0x6f, - 0x5e, 0xa4, 0x27, 0x1e, 0xbf, 0x48, 0x4f, 0xfc, 0xf1, 0x22, 0x3d, 0x71, 0x27, 0x3b, 0xfc, 0x88, - 0xdd, 0xee, 0x38, 0x66, 0xf7, 0xac, 0x31, 0xc3, 0xfe, 0xa1, 0xb3, 0xf6, 0x4f, 0x00, 0x00, 0x00, - 0xff, 0xff, 0xb3, 0x40, 0x11, 0x10, 0xae, 0x12, 0x00, 0x00, + // 1453 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xdf, 0x6f, 0x14, 0xd5, + 0x17, 0xef, 0x6d, 0x69, 0xa1, 0xa7, 0xbb, 0xdf, 0x6f, 0x7b, 0x5b, 0xb0, 0x2e, 0xb2, 0x2d, 0x03, + 0x96, 0x5a, 0x60, 0xc6, 0x6e, 0x11, 0x01, 0x35, 0xc0, 0x22, 0x48, 0x63, 0x59, 0x97, 0x29, 0x92, + 0xc8, 0xcb, 0x64, 0x66, 0xf7, 0x76, 0x3b, 0x76, 0x67, 0xee, 0xb0, 0x33, 0xb3, 0xe9, 0x86, 0x90, + 0x18, 0x13, 0x79, 0x30, 0x9a, 0x90, 0xf8, 0xa2, 0x0f, 0x3c, 0x68, 0x8c, 0x31, 0xf1, 0xc5, 0x57, + 0xff, 0x03, 0x1e, 0x09, 0xfa, 0x60, 0x48, 0x40, 0x03, 0x26, 0xfe, 0x1b, 0x66, 0xee, 0xbd, 0xb3, + 0x3b, 0xb3, 0x9d, 0xfd, 0xd1, 0xda, 0xf8, 0xd2, 0x74, 0xee, 0x3d, 0xe7, 0xdc, 0xcf, 0xf9, 0x9c, + 0x73, 0xcf, 0xfd, 0x2c, 0xcc, 0x18, 0xba, 0xd1, 0xa8, 0x52, 0x5b, 0x59, 0x33, 0x6d, 0xbd, 0x6a, + 0x7a, 0x0d, 0xa5, 0xbe, 0xa8, 0xdc, 0xf6, 0x49, 0xad, 0x21, 0x3b, 0x35, 0xea, 0x51, 0x3c, 0x29, + 0x0c, 0xe4, 0xd0, 0x40, 0xae, 0x2f, 0x66, 0xa6, 0x2a, 0xb4, 0x42, 0xd9,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 0x2b, 0x30, 0x53, 0xe5, 0xc6, 0x08, 0x53, 0x35, 0x4b, 0xff, + 0x04, 0x00, 0x00, 0xff, 0xff, 0xaf, 0xed, 0x13, 0xce, 0xa8, 0x13, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2374,6 +2456,54 @@ func (m *QuerySigningInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } +func (m *SigningInfoResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SigningInfoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SigningInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + n13, err13 := github_com_cosmos_gogoproto_types.StdTimeMarshalTo(m.JailedUntil, dAtA[i-github_com_cosmos_gogoproto_types.SizeOfStdTime(m.JailedUntil):]) + if err13 != nil { + return 0, err13 + } + i -= n13 + i = encodeVarintQuery(dAtA, i, uint64(n13)) + i-- + dAtA[i] = 0x22 + if m.MissedBlocksCounter != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.MissedBlocksCounter)) + i-- + dAtA[i] = 0x18 + } + if m.StartHeight != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.StartHeight)) + i-- + dAtA[i] = 0x10 + } + if len(m.FpBtcPkHex) > 0 { + i -= len(m.FpBtcPkHex) + copy(dAtA[i:], m.FpBtcPkHex) + i = encodeVarintQuery(dAtA, i, uint64(len(m.FpBtcPkHex))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *QuerySigningInfoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2395,7 +2525,7 @@ func (m *QuerySigningInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error var l int _ = l { - size, err := m.FpSigningInfo.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.SigningInfo.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2474,10 +2604,10 @@ func (m *QuerySigningInfosResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro i-- dAtA[i] = 0x12 } - if len(m.FpSigningInfos) > 0 { - for iNdEx := len(m.FpSigningInfos) - 1; iNdEx >= 0; iNdEx-- { + if len(m.SigningInfos) > 0 { + for iNdEx := len(m.SigningInfos) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.FpSigningInfos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.SigningInfos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -2788,13 +2918,34 @@ func (m *QuerySigningInfoRequest) Size() (n int) { return n } +func (m *SigningInfoResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.FpBtcPkHex) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + if m.StartHeight != 0 { + n += 1 + sovQuery(uint64(m.StartHeight)) + } + if m.MissedBlocksCounter != 0 { + n += 1 + sovQuery(uint64(m.MissedBlocksCounter)) + } + l = github_com_cosmos_gogoproto_types.SizeOfStdTime(m.JailedUntil) + n += 1 + l + sovQuery(uint64(l)) + return n +} + func (m *QuerySigningInfoResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = m.FpSigningInfo.Size() + l = m.SigningInfo.Size() n += 1 + l + sovQuery(uint64(l)) return n } @@ -2818,8 +2969,8 @@ func (m *QuerySigningInfosResponse) Size() (n int) { } var l int _ = l - if len(m.FpSigningInfos) > 0 { - for _, e := range m.FpSigningInfos { + if len(m.SigningInfos) > 0 { + for _, e := range m.SigningInfos { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } @@ -4740,6 +4891,159 @@ func (m *QuerySigningInfoRequest) Unmarshal(dAtA []byte) error { } return nil } +func (m *SigningInfoResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SigningInfoResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SigningInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FpBtcPkHex", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FpBtcPkHex = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StartHeight", wireType) + } + m.StartHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StartHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MissedBlocksCounter", wireType) + } + m.MissedBlocksCounter = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MissedBlocksCounter |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field JailedUntil", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := github_com_cosmos_gogoproto_types.StdTimeUnmarshal(&m.JailedUntil, dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *QuerySigningInfoResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -4771,7 +5075,7 @@ func (m *QuerySigningInfoResponse) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FpSigningInfo", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SigningInfo", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4798,7 +5102,7 @@ func (m *QuerySigningInfoResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.FpSigningInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.SigningInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -4940,7 +5244,7 @@ func (m *QuerySigningInfosResponse) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FpSigningInfos", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SigningInfos", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -4967,8 +5271,8 @@ func (m *QuerySigningInfosResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.FpSigningInfos = append(m.FpSigningInfos, FinalityProviderSigningInfo{}) - if err := m.FpSigningInfos[len(m.FpSigningInfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.SigningInfos = append(m.SigningInfos, SigningInfoResponse{}) + if err := m.SigningInfos[len(m.SigningInfos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex