maestro

package
v0.0.0-...-ba0cd9c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetAgentCerts

func (x *Request) GetAgentCerts() [][]byte

func (*Request) GetGroupId

func (x *Request) GetGroupId() string

func (*Request) GetSType

func (x *Request) GetSType() thresholdagent.SignatureType

func (*Request) GetThreshold

func (x *Request) GetThreshold() int32

func (*Request) GetTimestamp

func (x *Request) GetTimestamp() *timestamppb.Timestamp

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetDescription

func (x *Response) GetDescription() string

func (*Response) GetGroupId

func (x *Response) GetGroupId() string

func (*Response) GetPublicKey

func (x *Response) GetPublicKey() []byte

func (*Response) GetStatus

func (x *Response) GetStatus() thresholdagent.Status

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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 (*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 (*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.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL