Documentation
¶
Index ¶
- Variables
- func RegisterThresholdMaestroServer(s *grpc.Server, srv ThresholdMaestroServer)
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetAgentCerts() [][]byte
- func (x *Request) GetGroupId() string
- func (x *Request) GetSType() thresholdagent.SignatureType
- func (x *Request) GetThreshold() int32
- func (x *Request) GetTimestamp() *timestamppb.Timestamp
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetDescription() string
- func (x *Response) GetGroupId() string
- func (x *Response) GetPublicKey() []byte
- func (x *Response) GetStatus() thresholdagent.Status
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type SignRequest
- func (*SignRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignRequest) GetPublicKey() []byte
- func (x *SignRequest) GetSType() thresholdagent.SignatureType
- func (x *SignRequest) GetSigningData() []byte
- func (x *SignRequest) GetTimestamp() *timestamppb.Timestamp
- func (*SignRequest) ProtoMessage()
- func (x *SignRequest) ProtoReflect() protoreflect.Message
- func (x *SignRequest) Reset()
- func (x *SignRequest) String() string
- type SignResponse
- func (*SignResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SignResponse) GetMessage() []byte
- func (x *SignResponse) GetPublicKey() []byte
- func (x *SignResponse) GetSType() thresholdagent.SignatureType
- func (x *SignResponse) GetSignature() []byte
- func (*SignResponse) ProtoMessage()
- func (x *SignResponse) ProtoReflect() protoreflect.Message
- func (x *SignResponse) Reset()
- func (x *SignResponse) String() string
- type ThresholdMaestroClient
- type ThresholdMaestroServer
- type UnimplementedThresholdMaestroServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_maestro_proto protoreflect.FileDescriptor
Functions ¶
func RegisterThresholdMaestroServer ¶
func RegisterThresholdMaestroServer(s *grpc.Server, srv ThresholdMaestroServer)
Types ¶
type Request ¶
type Request struct { GroupId string `protobuf:"bytes,1,opt,name=groupId,proto3" json:"groupId,omitempty"` AgentCerts [][]byte `protobuf:"bytes,2,rep,name=agentCerts,proto3" json:"agentCerts,omitempty"` Threshold int32 `protobuf:"varint,3,opt,name=threshold,proto3" json:"threshold,omitempty"` SType thresholdagent.SignatureType `protobuf:"varint,4,opt,name=sType,proto3,enum=thresholdagent.SignatureType" json:"sType,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetAgentCerts ¶
func (*Request) GetGroupId ¶
func (*Request) GetSType ¶
func (x *Request) GetSType() thresholdagent.SignatureType
func (*Request) GetThreshold ¶
func (*Request) GetTimestamp ¶
func (x *Request) GetTimestamp() *timestamppb.Timestamp
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { GroupId string `protobuf:"bytes,1,opt,name=groupId,proto3" json:"groupId,omitempty"` PublicKey []byte `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"` Status thresholdagent.Status `protobuf:"varint,3,opt,name=status,proto3,enum=thresholdagent.Status" json:"status,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetDescription ¶
func (*Response) GetGroupId ¶
func (*Response) GetPublicKey ¶
func (*Response) GetStatus ¶
func (x *Response) GetStatus() thresholdagent.Status
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type SignRequest ¶
type SignRequest struct { PublicKey []byte `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"` SType thresholdagent.SignatureType `protobuf:"varint,2,opt,name=sType,proto3,enum=thresholdagent.SignatureType" json:"sType,omitempty"` SigningData []byte `protobuf:"bytes,3,opt,name=signingData,proto3" json:"signingData,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*SignRequest) Descriptor
deprecated
func (*SignRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignRequest.ProtoReflect.Descriptor instead.
func (*SignRequest) GetPublicKey ¶
func (x *SignRequest) GetPublicKey() []byte
func (*SignRequest) GetSType ¶
func (x *SignRequest) GetSType() thresholdagent.SignatureType
func (*SignRequest) GetSigningData ¶
func (x *SignRequest) GetSigningData() []byte
func (*SignRequest) GetTimestamp ¶
func (x *SignRequest) GetTimestamp() *timestamppb.Timestamp
func (*SignRequest) ProtoMessage ¶
func (*SignRequest) ProtoMessage()
func (*SignRequest) ProtoReflect ¶
func (x *SignRequest) ProtoReflect() protoreflect.Message
func (*SignRequest) Reset ¶
func (x *SignRequest) Reset()
func (*SignRequest) String ¶
func (x *SignRequest) String() string
type SignResponse ¶
type SignResponse struct { SType thresholdagent.SignatureType `protobuf:"varint,1,opt,name=sType,proto3,enum=thresholdagent.SignatureType" json:"sType,omitempty"` PublicKey []byte `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"` Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
SignResponse returned by a RemoteSigner gRPC service.
func (*SignResponse) Descriptor
deprecated
func (*SignResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignResponse.ProtoReflect.Descriptor instead.
func (*SignResponse) GetMessage ¶
func (x *SignResponse) GetMessage() []byte
func (*SignResponse) GetPublicKey ¶
func (x *SignResponse) GetPublicKey() []byte
func (*SignResponse) GetSType ¶
func (x *SignResponse) GetSType() thresholdagent.SignatureType
func (*SignResponse) GetSignature ¶
func (x *SignResponse) GetSignature() []byte
func (*SignResponse) ProtoMessage ¶
func (*SignResponse) ProtoMessage()
func (*SignResponse) ProtoReflect ¶
func (x *SignResponse) ProtoReflect() protoreflect.Message
func (*SignResponse) Reset ¶
func (x *SignResponse) Reset()
func (*SignResponse) String ¶
func (x *SignResponse) String() string
type ThresholdMaestroClient ¶
type ThresholdMaestroClient interface { DistributedKeyGen(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error) }
ThresholdMaestroClient is the client API for ThresholdMaestro service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewThresholdMaestroClient ¶
func NewThresholdMaestroClient(cc grpc.ClientConnInterface) ThresholdMaestroClient
type ThresholdMaestroServer ¶
type ThresholdMaestroServer interface { DistributedKeyGen(context.Context, *Request) (*Response, error) Sign(context.Context, *SignRequest) (*SignResponse, error) }
ThresholdMaestroServer is the server API for ThresholdMaestro service.
type UnimplementedThresholdMaestroServer ¶
type UnimplementedThresholdMaestroServer struct { }
UnimplementedThresholdMaestroServer can be embedded to have forward compatible implementations.
func (*UnimplementedThresholdMaestroServer) DistributedKeyGen ¶
func (*UnimplementedThresholdMaestroServer) Sign ¶
func (*UnimplementedThresholdMaestroServer) Sign(context.Context, *SignRequest) (*SignResponse, error)
Click to show internal directories.
Click to hide internal directories.