From 1e41fa5bc0632fce5678923a938bc646d091a265 Mon Sep 17 00:00:00 2001 From: benbot Date: Fri, 28 May 2021 14:21:16 -0400 Subject: [PATCH] adds publicKey grpc endpoint --- proto/spacemesh/v1/api_config.yaml | 3 + proto/spacemesh/v1/debug.proto | 3 + proto/spacemesh/v1/debug_types.proto | 6 +- release/go/spacemesh/v1/debug.pb.go | 77 +++++++++++++++++---- release/go/spacemesh/v1/debug.pb.gw.go | 78 +++++++++++++++++++++ release/go/spacemesh/v1/debug_types.pb.go | 83 ++++++++++++++++++++--- 6 files changed, 224 insertions(+), 26 deletions(-) diff --git a/proto/spacemesh/v1/api_config.yaml b/proto/spacemesh/v1/api_config.yaml index 1c478fc3..191b1e15 100644 --- a/proto/spacemesh/v1/api_config.yaml +++ b/proto/spacemesh/v1/api_config.yaml @@ -13,6 +13,9 @@ http: - selector: spacemesh.v1.DebugService.Accounts post: "/v1/debug/accounts" body: "*" + - selector: spacemesh.v1.DebugService.PublicKey + post: "/v1/debug/publicKey" + body: "*" # GlobalStateService - selector: spacemesh.v1.GlobalStateService.GlobalStateHash diff --git a/proto/spacemesh/v1/debug.proto b/proto/spacemesh/v1/debug.proto index 1a1c5574..c04738b6 100644 --- a/proto/spacemesh/v1/debug.proto +++ b/proto/spacemesh/v1/debug.proto @@ -13,4 +13,7 @@ service DebugService { // This includes each account's address, nonce and balance but excludes projection of account state. rpc Accounts (google.protobuf.Empty) returns (AccountsResponse); + // PublicKey returns this node's public key + // Useful for quickly bootstraping nodes in development + rpc PublicKey (google.protobuf.Empty) returns (PublicKeyResponse); } diff --git a/proto/spacemesh/v1/debug_types.proto b/proto/spacemesh/v1/debug_types.proto index b3ff2f54..6e099c0f 100644 --- a/proto/spacemesh/v1/debug_types.proto +++ b/proto/spacemesh/v1/debug_types.proto @@ -6,4 +6,8 @@ import "spacemesh/v1/global_state_types.proto"; message AccountsResponse { repeated Account account_wrapper = 1; -} \ No newline at end of file +} + +message PublicKeyResponse { + bytes public_key = 1; +} diff --git a/release/go/spacemesh/v1/debug.pb.go b/release/go/spacemesh/v1/debug.pb.go index 18596dd1..47b99d9d 100644 --- a/release/go/spacemesh/v1/debug.pb.go +++ b/release/go/spacemesh/v1/debug.pb.go @@ -38,27 +38,34 @@ var file_spacemesh_v1_debug_proto_rawDesc = []byte{ 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x62, 0x75, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x52, 0x0a, 0x0c, 0x44, 0x65, 0x62, 0x75, 0x67, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x42, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, - 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, - 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x98, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x62, 0x75, 0x67, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x42, 0x0a, 0x08, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1e, 0x2e, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x09, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, + 0x1f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, + 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, + 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var file_spacemesh_v1_debug_proto_goTypes = []interface{}{ - (*empty.Empty)(nil), // 0: google.protobuf.Empty - (*AccountsResponse)(nil), // 1: spacemesh.v1.AccountsResponse + (*empty.Empty)(nil), // 0: google.protobuf.Empty + (*AccountsResponse)(nil), // 1: spacemesh.v1.AccountsResponse + (*PublicKeyResponse)(nil), // 2: spacemesh.v1.PublicKeyResponse } var file_spacemesh_v1_debug_proto_depIdxs = []int32{ 0, // 0: spacemesh.v1.DebugService.Accounts:input_type -> google.protobuf.Empty - 1, // 1: spacemesh.v1.DebugService.Accounts:output_type -> spacemesh.v1.AccountsResponse - 1, // [1:2] is the sub-list for method output_type - 0, // [0:1] is the sub-list for method input_type + 0, // 1: spacemesh.v1.DebugService.PublicKey:input_type -> google.protobuf.Empty + 1, // 2: spacemesh.v1.DebugService.Accounts:output_type -> spacemesh.v1.AccountsResponse + 2, // 3: spacemesh.v1.DebugService.PublicKey:output_type -> spacemesh.v1.PublicKeyResponse + 2, // [2:4] is the sub-list for method output_type + 0, // [0:2] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name @@ -104,6 +111,9 @@ type DebugServiceClient interface { // Accounts returns data for all the accounts currently in the node's current global state. // This includes each account's address, nonce and balance but excludes projection of account state. Accounts(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*AccountsResponse, error) + // PublicKey returns this node's public key + // Useful for quickly bootstraping nodes in development + PublicKey(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PublicKeyResponse, error) } type debugServiceClient struct { @@ -123,11 +133,23 @@ func (c *debugServiceClient) Accounts(ctx context.Context, in *empty.Empty, opts return out, nil } +func (c *debugServiceClient) PublicKey(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PublicKeyResponse, error) { + out := new(PublicKeyResponse) + err := c.cc.Invoke(ctx, "/spacemesh.v1.DebugService/PublicKey", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // DebugServiceServer is the server API for DebugService service. type DebugServiceServer interface { // Accounts returns data for all the accounts currently in the node's current global state. // This includes each account's address, nonce and balance but excludes projection of account state. Accounts(context.Context, *empty.Empty) (*AccountsResponse, error) + // PublicKey returns this node's public key + // Useful for quickly bootstraping nodes in development + PublicKey(context.Context, *empty.Empty) (*PublicKeyResponse, error) } // UnimplementedDebugServiceServer can be embedded to have forward compatible implementations. @@ -137,6 +159,9 @@ type UnimplementedDebugServiceServer struct { func (*UnimplementedDebugServiceServer) Accounts(context.Context, *empty.Empty) (*AccountsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Accounts not implemented") } +func (*UnimplementedDebugServiceServer) PublicKey(context.Context, *empty.Empty) (*PublicKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PublicKey not implemented") +} func RegisterDebugServiceServer(s *grpc.Server, srv DebugServiceServer) { s.RegisterService(&_DebugService_serviceDesc, srv) @@ -160,6 +185,24 @@ func _DebugService_Accounts_Handler(srv interface{}, ctx context.Context, dec fu return interceptor(ctx, in, info, handler) } +func _DebugService_PublicKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(empty.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DebugServiceServer).PublicKey(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/spacemesh.v1.DebugService/PublicKey", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DebugServiceServer).PublicKey(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + var _DebugService_serviceDesc = grpc.ServiceDesc{ ServiceName: "spacemesh.v1.DebugService", HandlerType: (*DebugServiceServer)(nil), @@ -168,6 +211,10 @@ var _DebugService_serviceDesc = grpc.ServiceDesc{ MethodName: "Accounts", Handler: _DebugService_Accounts_Handler, }, + { + MethodName: "PublicKey", + Handler: _DebugService_PublicKey_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "spacemesh/v1/debug.proto", diff --git a/release/go/spacemesh/v1/debug.pb.gw.go b/release/go/spacemesh/v1/debug.pb.gw.go index de205833..ace28968 100644 --- a/release/go/spacemesh/v1/debug.pb.gw.go +++ b/release/go/spacemesh/v1/debug.pb.gw.go @@ -66,6 +66,40 @@ func local_request_DebugService_Accounts_0(ctx context.Context, marshaler runtim } +func request_DebugService_PublicKey_0(ctx context.Context, marshaler runtime.Marshaler, client DebugServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.PublicKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_DebugService_PublicKey_0(ctx context.Context, marshaler runtime.Marshaler, server DebugServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq empty.Empty + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.PublicKey(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterDebugServiceHandlerServer registers the http handlers for service DebugService to "mux". // UnaryRPC :call DebugServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -91,6 +125,26 @@ func RegisterDebugServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu }) + mux.Handle("POST", pattern_DebugService_PublicKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_DebugService_PublicKey_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_DebugService_PublicKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -152,13 +206,37 @@ func RegisterDebugServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu }) + mux.Handle("POST", pattern_DebugService_PublicKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_DebugService_PublicKey_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_DebugService_PublicKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } var ( pattern_DebugService_Accounts_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "debug", "accounts"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_DebugService_PublicKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "debug", "publicKey"}, "", runtime.AssumeColonVerbOpt(true))) ) var ( forward_DebugService_Accounts_0 = runtime.ForwardResponseMessage + + forward_DebugService_PublicKey_0 = runtime.ForwardResponseMessage ) diff --git a/release/go/spacemesh/v1/debug_types.pb.go b/release/go/spacemesh/v1/debug_types.pb.go index 63626144..08b865d2 100644 --- a/release/go/spacemesh/v1/debug_types.pb.go +++ b/release/go/spacemesh/v1/debug_types.pb.go @@ -72,6 +72,53 @@ func (x *AccountsResponse) GetAccountWrapper() []*Account { return nil } +type PublicKeyResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` +} + +func (x *PublicKeyResponse) Reset() { + *x = PublicKeyResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_debug_types_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PublicKeyResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicKeyResponse) ProtoMessage() {} + +func (x *PublicKeyResponse) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_debug_types_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PublicKeyResponse.ProtoReflect.Descriptor instead. +func (*PublicKeyResponse) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_debug_types_proto_rawDescGZIP(), []int{1} +} + +func (x *PublicKeyResponse) GetPublicKey() []byte { + if x != nil { + return x.PublicKey + } + return nil +} + var File_spacemesh_v1_debug_types_proto protoreflect.FileDescriptor var file_spacemesh_v1_debug_types_proto_rawDesc = []byte{ @@ -85,11 +132,14 @@ var file_spacemesh_v1_debug_types_proto_rawDesc = []byte{ 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x0e, 0x61, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, - 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, - 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6e, 0x74, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x22, 0x32, 0x0a, 0x11, 0x50, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, + 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x34, 0x5a, + 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, + 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, + 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -104,13 +154,14 @@ func file_spacemesh_v1_debug_types_proto_rawDescGZIP() []byte { return file_spacemesh_v1_debug_types_proto_rawDescData } -var file_spacemesh_v1_debug_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_spacemesh_v1_debug_types_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_spacemesh_v1_debug_types_proto_goTypes = []interface{}{ - (*AccountsResponse)(nil), // 0: spacemesh.v1.AccountsResponse - (*Account)(nil), // 1: spacemesh.v1.Account + (*AccountsResponse)(nil), // 0: spacemesh.v1.AccountsResponse + (*PublicKeyResponse)(nil), // 1: spacemesh.v1.PublicKeyResponse + (*Account)(nil), // 2: spacemesh.v1.Account } var file_spacemesh_v1_debug_types_proto_depIdxs = []int32{ - 1, // 0: spacemesh.v1.AccountsResponse.account_wrapper:type_name -> spacemesh.v1.Account + 2, // 0: spacemesh.v1.AccountsResponse.account_wrapper:type_name -> spacemesh.v1.Account 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name @@ -137,6 +188,18 @@ func file_spacemesh_v1_debug_types_proto_init() { return nil } } + file_spacemesh_v1_debug_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PublicKeyResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -144,7 +207,7 @@ func file_spacemesh_v1_debug_types_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_spacemesh_v1_debug_types_proto_rawDesc, NumEnums: 0, - NumMessages: 1, + NumMessages: 2, NumExtensions: 0, NumServices: 0, },