mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-12-27 09:05:18 +00:00
58456c1057
* feat: IPC for wesolowski * update self peer info * remove digests and signatures * add new binaries and digests * Signatory #13 added * Signatory #4 added (#231) * added sig.6 files (#232) * Signatory #9 added (#233) * Added signatories #1, #2, #3, #5, #8, #12, #14, #15, #16, #17 * remove binaries, release ready --------- Co-authored-by: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Co-authored-by: Demipoet <161999657+demipoet@users.noreply.github.com> Co-authored-by: Freekers <1370857+Freekers@users.noreply.github.com>
110 lines
4.1 KiB
Go
110 lines
4.1 KiB
Go
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.3.0
|
|
// - protoc v3.21.12
|
|
// source: data.proto
|
|
|
|
package protobufs
|
|
|
|
import (
|
|
context "context"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
)
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
// Requires gRPC-Go v1.32.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion7
|
|
|
|
const (
|
|
DataIPCService_CalculateChallengeProof_FullMethodName = "/quilibrium.node.data.pb.DataIPCService/CalculateChallengeProof"
|
|
)
|
|
|
|
// DataIPCServiceClient is the client API for DataIPCService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
|
type DataIPCServiceClient interface {
|
|
CalculateChallengeProof(ctx context.Context, in *ChallengeProofRequest, opts ...grpc.CallOption) (*ChallengeProofResponse, error)
|
|
}
|
|
|
|
type dataIPCServiceClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewDataIPCServiceClient(cc grpc.ClientConnInterface) DataIPCServiceClient {
|
|
return &dataIPCServiceClient{cc}
|
|
}
|
|
|
|
func (c *dataIPCServiceClient) CalculateChallengeProof(ctx context.Context, in *ChallengeProofRequest, opts ...grpc.CallOption) (*ChallengeProofResponse, error) {
|
|
out := new(ChallengeProofResponse)
|
|
err := c.cc.Invoke(ctx, DataIPCService_CalculateChallengeProof_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// DataIPCServiceServer is the server API for DataIPCService service.
|
|
// All implementations must embed UnimplementedDataIPCServiceServer
|
|
// for forward compatibility
|
|
type DataIPCServiceServer interface {
|
|
CalculateChallengeProof(context.Context, *ChallengeProofRequest) (*ChallengeProofResponse, error)
|
|
mustEmbedUnimplementedDataIPCServiceServer()
|
|
}
|
|
|
|
// UnimplementedDataIPCServiceServer must be embedded to have forward compatible implementations.
|
|
type UnimplementedDataIPCServiceServer struct {
|
|
}
|
|
|
|
func (UnimplementedDataIPCServiceServer) CalculateChallengeProof(context.Context, *ChallengeProofRequest) (*ChallengeProofResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CalculateChallengeProof not implemented")
|
|
}
|
|
func (UnimplementedDataIPCServiceServer) mustEmbedUnimplementedDataIPCServiceServer() {}
|
|
|
|
// UnsafeDataIPCServiceServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to DataIPCServiceServer will
|
|
// result in compilation errors.
|
|
type UnsafeDataIPCServiceServer interface {
|
|
mustEmbedUnimplementedDataIPCServiceServer()
|
|
}
|
|
|
|
func RegisterDataIPCServiceServer(s grpc.ServiceRegistrar, srv DataIPCServiceServer) {
|
|
s.RegisterService(&DataIPCService_ServiceDesc, srv)
|
|
}
|
|
|
|
func _DataIPCService_CalculateChallengeProof_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ChallengeProofRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(DataIPCServiceServer).CalculateChallengeProof(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: DataIPCService_CalculateChallengeProof_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(DataIPCServiceServer).CalculateChallengeProof(ctx, req.(*ChallengeProofRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// DataIPCService_ServiceDesc is the grpc.ServiceDesc for DataIPCService service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var DataIPCService_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "quilibrium.node.data.pb.DataIPCService",
|
|
HandlerType: (*DataIPCServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "CalculateChallengeProof",
|
|
Handler: _DataIPCService_CalculateChallengeProof_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "data.proto",
|
|
}
|