Documentation
¶
Index ¶
- Variables
- func RegisterThresholdAgentServer(s *grpc.Server, srv ThresholdAgentServer)
- type AuthRequest
- func (*AuthRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRequest) GetChallenge() []byte
- func (x *AuthRequest) GetSessionId() string
- func (x *AuthRequest) GetTimestamp() *timestamppb.Timestamp
- func (*AuthRequest) ProtoMessage()
- func (x *AuthRequest) ProtoReflect() protoreflect.Message
- func (x *AuthRequest) Reset()
- func (x *AuthRequest) String() string
- type AuthResponse
- func (*AuthResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthResponse) GetCertificate() []byte
- func (x *AuthResponse) GetSessionId() string
- func (x *AuthResponse) GetSignatureR() []byte
- func (x *AuthResponse) GetSignatureS() []byte
- func (*AuthResponse) ProtoMessage()
- func (x *AuthResponse) ProtoReflect() protoreflect.Message
- func (x *AuthResponse) Reset()
- func (x *AuthResponse) String() string
- type EcdsaRoundMessage
- func (*EcdsaRoundMessage) Descriptor() ([]byte, []int)deprecated
- func (x *EcdsaRoundMessage) GetCLMessage() []utils.CLMessage
- func (x *EcdsaRoundMessage) GetMessages() [][]byte
- func (x *EcdsaRoundMessage) GetParsedMessages() []tss.Message
- func (x *EcdsaRoundMessage) GetRound() int32
- func (x *EcdsaRoundMessage) GetSenderId() int32
- func (x *EcdsaRoundMessage) GetSessionId() string
- func (*EcdsaRoundMessage) ProtoMessage()
- func (x *EcdsaRoundMessage) ProtoReflect() protoreflect.Message
- func (x *EcdsaRoundMessage) Reset()
- func (x *EcdsaRoundMessage) SetMessages(msgs []tss.Message)
- func (x *EcdsaRoundMessage) String() string
- type ResultMsg
- type SchnorrRound0Msg
- func (*SchnorrRound0Msg) Descriptor() ([]byte, []int)deprecated
- func (m *SchnorrRound0Msg) GetRequest() isSchnorrRound0Msg_Request
- func (x *SchnorrRound0Msg) GetSType() SignatureType
- func (x *SchnorrRound0Msg) GetSessionId() string
- func (x *SchnorrRound0Msg) GetSignerCerts() [][]byte
- func (x *SchnorrRound0Msg) GetSigning() *SignRequest
- func (x *SchnorrRound0Msg) GetThreshold() int32
- func (*SchnorrRound0Msg) ProtoMessage()
- func (x *SchnorrRound0Msg) ProtoReflect() protoreflect.Message
- func (x *SchnorrRound0Msg) Reset()
- func (x *SchnorrRound0Msg) String() string
- type SchnorrRound0Msg_Signing
- type SchnorrRound0Msg_Threshold
- type SchnorrRound1Msg
- func (*SchnorrRound1Msg) Descriptor() ([]byte, []int)deprecated
- func (x *SchnorrRound1Msg) GetCommitment() []byte
- func (x *SchnorrRound1Msg) GetSenderId() int32
- func (x *SchnorrRound1Msg) GetSessionId() string
- func (*SchnorrRound1Msg) ProtoMessage()
- func (x *SchnorrRound1Msg) ProtoReflect() protoreflect.Message
- func (x *SchnorrRound1Msg) Reset()
- func (x *SchnorrRound1Msg) String() string
- type SchnorrRound1MsgList
- func (*SchnorrRound1MsgList) Descriptor() ([]byte, []int)deprecated
- func (x *SchnorrRound1MsgList) GetMessages() []*SchnorrRound1Msg
- func (*SchnorrRound1MsgList) ProtoMessage()
- func (x *SchnorrRound1MsgList) ProtoReflect() protoreflect.Message
- func (x *SchnorrRound1MsgList) Reset()
- func (x *SchnorrRound1MsgList) String() string
- type SchnorrRound2Msg
- func (*SchnorrRound2Msg) Descriptor() ([]byte, []int)deprecated
- func (x *SchnorrRound2Msg) GetPoly() []byte
- func (x *SchnorrRound2Msg) GetReceiverId() int32
- func (x *SchnorrRound2Msg) GetSenderId() int32
- func (x *SchnorrRound2Msg) GetSessionId() string
- func (x *SchnorrRound2Msg) GetShareKey() []byte
- func (x *SchnorrRound2Msg) GetSimulatedShareKey() []byte
- func (*SchnorrRound2Msg) ProtoMessage()
- func (x *SchnorrRound2Msg) ProtoReflect() protoreflect.Message
- func (x *SchnorrRound2Msg) Reset()
- func (x *SchnorrRound2Msg) String() string
- type SchnorrRound2MsgList
- func (*SchnorrRound2MsgList) Descriptor() ([]byte, []int)deprecated
- func (x *SchnorrRound2MsgList) GetMessages() []*SchnorrRound2Msg
- func (*SchnorrRound2MsgList) ProtoMessage()
- func (x *SchnorrRound2MsgList) ProtoReflect() protoreflect.Message
- func (x *SchnorrRound2MsgList) Reset()
- func (x *SchnorrRound2MsgList) String() string
- type SchnorrRound3Msg
- func (*SchnorrRound3Msg) Descriptor() ([]byte, []int)deprecated
- func (m *SchnorrRound3Msg) GetData() isSchnorrRound3Msg_Data
- func (x *SchnorrRound3Msg) GetPublicKey() []byte
- func (x *SchnorrRound3Msg) GetSenderId() int32
- func (x *SchnorrRound3Msg) GetSessionId() string
- func (x *SchnorrRound3Msg) GetSigmaI() []byte
- func (*SchnorrRound3Msg) ProtoMessage()
- func (x *SchnorrRound3Msg) ProtoReflect() protoreflect.Message
- func (x *SchnorrRound3Msg) Reset()
- func (x *SchnorrRound3Msg) String() string
- type SchnorrRound3MsgList
- func (*SchnorrRound3MsgList) Descriptor() ([]byte, []int)deprecated
- func (x *SchnorrRound3MsgList) GetMessages() []*SchnorrRound3Msg
- func (*SchnorrRound3MsgList) ProtoMessage()
- func (x *SchnorrRound3MsgList) ProtoReflect() protoreflect.Message
- func (x *SchnorrRound3MsgList) Reset()
- func (x *SchnorrRound3MsgList) String() string
- type SchnorrRound3Msg_PublicKey
- type SchnorrRound3Msg_SigmaI
- type SchnorrSignature
- func (sgn *SchnorrSignature) Bip340Signature() [64]byte
- func (*SchnorrSignature) Descriptor() ([]byte, []int)deprecated
- func (sgn *SchnorrSignature) FromBip340Signature(publicKey [33]byte, message [32]byte, signature [64]byte)
- func (sgn *SchnorrSignature) FromEthSignature(publicKey [33]byte, message, R, S [32]byte)
- func (x *SchnorrSignature) GetCompressedPublicKey() []byte
- func (x *SchnorrSignature) GetR() []byte
- func (x *SchnorrSignature) GetS() []byte
- func (x *SchnorrSignature) GetSType() SignatureType
- func (x *SchnorrSignature) GetSigningData() []byte
- func (*SchnorrSignature) ProtoMessage()
- func (x *SchnorrSignature) ProtoReflect() protoreflect.Message
- func (x *SchnorrSignature) Reset()
- func (x *SchnorrSignature) String() string
- func (sgn *SchnorrSignature) Verify() bool
- func (sgn *SchnorrSignature) VerifyBip340() bool
- func (sgn *SchnorrSignature) VerifyEth() bool
- type SignRequest
- func (*SignRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignRequest) GetMessage() []byte
- func (x *SignRequest) GetPublicKey() []byte
- func (*SignRequest) ProtoMessage()
- func (x *SignRequest) ProtoReflect() protoreflect.Message
- func (x *SignRequest) Reset()
- func (x *SignRequest) String() string
- type SignatureType
- func (SignatureType) Descriptor() protoreflect.EnumDescriptor
- func (x SignatureType) Enum() *SignatureType
- func (SignatureType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SignatureType) Number() protoreflect.EnumNumber
- func (x SignatureType) String() string
- func (SignatureType) Type() protoreflect.EnumType
- type Status
- type ThresholdAgentClient
- type ThresholdAgentServer
- type UnimplementedThresholdAgentServer
- func (*UnimplementedThresholdAgentServer) Authenticate(context.Context, *AuthRequest) (*AuthResponse, error)
- func (*UnimplementedThresholdAgentServer) DkgSchnorrRound1(context.Context, *SchnorrRound0Msg) (*SchnorrRound1Msg, error)
- func (*UnimplementedThresholdAgentServer) DkgSchnorrRound2(context.Context, *SchnorrRound1MsgList) (*SchnorrRound2MsgList, error)
- func (*UnimplementedThresholdAgentServer) DkgSchnorrRound3(context.Context, *SchnorrRound2MsgList) (*SchnorrRound3Msg, error)
- func (*UnimplementedThresholdAgentServer) DkgSchnorrRoundFinal(context.Context, *ResultMsg) (*ResultMsg, error)
- func (*UnimplementedThresholdAgentServer) EcdsaDkgRoundX(context.Context, *EcdsaRoundMessage) (*EcdsaRoundMessage, error)
- func (*UnimplementedThresholdAgentServer) EcdsaSignRoundX(context.Context, *EcdsaRoundMessage) (*EcdsaRoundMessage, error)
- func (*UnimplementedThresholdAgentServer) SchnorrSignRound1(context.Context, *SchnorrRound0Msg) (*SchnorrRound1Msg, error)
- func (*UnimplementedThresholdAgentServer) SchnorrSignRound2(context.Context, *SchnorrRound1MsgList) (*SchnorrRound2MsgList, error)
- func (*UnimplementedThresholdAgentServer) SchnorrSignRound3(context.Context, *SchnorrRound2MsgList) (*SchnorrRound3Msg, error)
- func (*UnimplementedThresholdAgentServer) SchnorrSignRound4(context.Context, *SchnorrRound3MsgList) (*SchnorrSignature, error)
Constants ¶
This section is empty.
Variables ¶
var ( Status_name = map[int32]string{ 0: "UNKNOWN", 1: "SUCCEEDED", 2: "DENIED", 3: "FAILED", } Status_value = map[string]int32{ "UNKNOWN": 0, "SUCCEEDED": 1, "DENIED": 2, "FAILED": 3, } )
Enum value maps for Status.
var ( SignatureType_name = map[int32]string{ 0: "SCHNORRv1", 1: "SCHNORRv2", 2: "ECDSAv1", 3: "ECDSAv2", } SignatureType_value = map[string]int32{ "SCHNORRv1": 0, "SCHNORRv2": 1, "ECDSAv1": 2, "ECDSAv2": 3, } )
Enum value maps for SignatureType.
var File_proto_thresholdagent_proto protoreflect.FileDescriptor
Functions ¶
func RegisterThresholdAgentServer ¶
func RegisterThresholdAgentServer(s *grpc.Server, srv ThresholdAgentServer)
Types ¶
type AuthRequest ¶
type AuthRequest struct { SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"` Challenge []byte `protobuf:"bytes,2,opt,name=challenge,proto3" json:"challenge,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*AuthRequest) Descriptor
deprecated
func (*AuthRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthRequest.ProtoReflect.Descriptor instead.
func (*AuthRequest) GetChallenge ¶
func (x *AuthRequest) GetChallenge() []byte
func (*AuthRequest) GetSessionId ¶
func (x *AuthRequest) GetSessionId() string
func (*AuthRequest) GetTimestamp ¶
func (x *AuthRequest) GetTimestamp() *timestamppb.Timestamp
func (*AuthRequest) ProtoMessage ¶
func (*AuthRequest) ProtoMessage()
func (*AuthRequest) ProtoReflect ¶
func (x *AuthRequest) ProtoReflect() protoreflect.Message
func (*AuthRequest) Reset ¶
func (x *AuthRequest) Reset()
func (*AuthRequest) String ¶
func (x *AuthRequest) String() string
type AuthResponse ¶
type AuthResponse struct { SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"` SignatureR []byte `protobuf:"bytes,2,opt,name=signatureR,proto3" json:"signatureR,omitempty"` SignatureS []byte `protobuf:"bytes,3,opt,name=signatureS,proto3" json:"signatureS,omitempty"` Certificate []byte `protobuf:"bytes,4,opt,name=certificate,proto3" json:"certificate,omitempty"` // contains filtered or unexported fields }
func (*AuthResponse) Descriptor
deprecated
func (*AuthResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthResponse.ProtoReflect.Descriptor instead.
func (*AuthResponse) GetCertificate ¶
func (x *AuthResponse) GetCertificate() []byte
func (*AuthResponse) GetSessionId ¶
func (x *AuthResponse) GetSessionId() string
func (*AuthResponse) GetSignatureR ¶
func (x *AuthResponse) GetSignatureR() []byte
func (*AuthResponse) GetSignatureS ¶
func (x *AuthResponse) GetSignatureS() []byte
func (*AuthResponse) ProtoMessage ¶
func (*AuthResponse) ProtoMessage()
func (*AuthResponse) ProtoReflect ¶
func (x *AuthResponse) ProtoReflect() protoreflect.Message
func (*AuthResponse) Reset ¶
func (x *AuthResponse) Reset()
func (*AuthResponse) String ¶
func (x *AuthResponse) String() string
type EcdsaRoundMessage ¶
type EcdsaRoundMessage struct { SessionId string `protobuf:"bytes,1,opt,name=SessionId,proto3" json:"SessionId,omitempty"` SenderId int32 `protobuf:"varint,2,opt,name=SenderId,proto3" json:"SenderId,omitempty"` Round int32 `protobuf:"varint,3,opt,name=Round,proto3" json:"Round,omitempty"` Messages [][]byte `protobuf:"bytes,4,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*EcdsaRoundMessage) Descriptor
deprecated
func (*EcdsaRoundMessage) Descriptor() ([]byte, []int)
Deprecated: Use EcdsaRoundMessage.ProtoReflect.Descriptor instead.
func (*EcdsaRoundMessage) GetCLMessage ¶
func (x *EcdsaRoundMessage) GetCLMessage() []utils.CLMessage
func (*EcdsaRoundMessage) GetMessages ¶
func (x *EcdsaRoundMessage) GetMessages() [][]byte
func (*EcdsaRoundMessage) GetParsedMessages ¶
func (x *EcdsaRoundMessage) GetParsedMessages() []tss.Message
func (*EcdsaRoundMessage) GetRound ¶
func (x *EcdsaRoundMessage) GetRound() int32
func (*EcdsaRoundMessage) GetSenderId ¶
func (x *EcdsaRoundMessage) GetSenderId() int32
func (*EcdsaRoundMessage) GetSessionId ¶
func (x *EcdsaRoundMessage) GetSessionId() string
func (*EcdsaRoundMessage) ProtoMessage ¶
func (*EcdsaRoundMessage) ProtoMessage()
func (*EcdsaRoundMessage) ProtoReflect ¶
func (x *EcdsaRoundMessage) ProtoReflect() protoreflect.Message
func (*EcdsaRoundMessage) Reset ¶
func (x *EcdsaRoundMessage) Reset()
func (*EcdsaRoundMessage) SetMessages ¶
func (x *EcdsaRoundMessage) SetMessages(msgs []tss.Message)
func (*EcdsaRoundMessage) String ¶
func (x *EcdsaRoundMessage) String() string
type ResultMsg ¶
type ResultMsg struct { SessionId string `protobuf:"bytes,1,opt,name=SessionId,proto3" json:"SessionId,omitempty"` Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=thresholdagent.Status" json:"status,omitempty"` // contains filtered or unexported fields }
func (*ResultMsg) Descriptor
deprecated
func (*ResultMsg) GetSessionId ¶
func (*ResultMsg) ProtoMessage ¶
func (*ResultMsg) ProtoMessage()
func (*ResultMsg) ProtoReflect ¶
func (x *ResultMsg) ProtoReflect() protoreflect.Message
type SchnorrRound0Msg ¶
type SchnorrRound0Msg struct { SessionId string `protobuf:"bytes,1,opt,name=SessionId,proto3" json:"SessionId,omitempty"` SType SignatureType `protobuf:"varint,2,opt,name=sType,proto3,enum=thresholdagent.SignatureType" json:"sType,omitempty"` SignerCerts [][]byte `protobuf:"bytes,3,rep,name=signerCerts,proto3" json:"signerCerts,omitempty"` // Types that are assignable to Request: // *SchnorrRound0Msg_Threshold // *SchnorrRound0Msg_Signing Request isSchnorrRound0Msg_Request `protobuf_oneof:"request"` // contains filtered or unexported fields }
func (*SchnorrRound0Msg) Descriptor
deprecated
func (*SchnorrRound0Msg) Descriptor() ([]byte, []int)
Deprecated: Use SchnorrRound0Msg.ProtoReflect.Descriptor instead.
func (*SchnorrRound0Msg) GetRequest ¶
func (m *SchnorrRound0Msg) GetRequest() isSchnorrRound0Msg_Request
func (*SchnorrRound0Msg) GetSType ¶
func (x *SchnorrRound0Msg) GetSType() SignatureType
func (*SchnorrRound0Msg) GetSessionId ¶
func (x *SchnorrRound0Msg) GetSessionId() string
func (*SchnorrRound0Msg) GetSignerCerts ¶
func (x *SchnorrRound0Msg) GetSignerCerts() [][]byte
func (*SchnorrRound0Msg) GetSigning ¶
func (x *SchnorrRound0Msg) GetSigning() *SignRequest
func (*SchnorrRound0Msg) GetThreshold ¶
func (x *SchnorrRound0Msg) GetThreshold() int32
func (*SchnorrRound0Msg) ProtoMessage ¶
func (*SchnorrRound0Msg) ProtoMessage()
func (*SchnorrRound0Msg) ProtoReflect ¶
func (x *SchnorrRound0Msg) ProtoReflect() protoreflect.Message
func (*SchnorrRound0Msg) Reset ¶
func (x *SchnorrRound0Msg) Reset()
func (*SchnorrRound0Msg) String ¶
func (x *SchnorrRound0Msg) String() string
type SchnorrRound0Msg_Signing ¶
type SchnorrRound0Msg_Signing struct {
Signing *SignRequest `protobuf:"bytes,5,opt,name=signing,proto3,oneof"` //for sign
}
type SchnorrRound0Msg_Threshold ¶
type SchnorrRound0Msg_Threshold struct {
Threshold int32 `protobuf:"varint,4,opt,name=threshold,proto3,oneof"` //for keygen
}
type SchnorrRound1Msg ¶
type SchnorrRound1Msg struct { SessionId string `protobuf:"bytes,1,opt,name=SessionId,proto3" json:"SessionId,omitempty"` SenderId int32 `protobuf:"varint,2,opt,name=SenderId,proto3" json:"SenderId,omitempty"` Commitment []byte `protobuf:"bytes,3,opt,name=Commitment,proto3" json:"Commitment,omitempty"` // contains filtered or unexported fields }
func (*SchnorrRound1Msg) Descriptor
deprecated
func (*SchnorrRound1Msg) Descriptor() ([]byte, []int)
Deprecated: Use SchnorrRound1Msg.ProtoReflect.Descriptor instead.
func (*SchnorrRound1Msg) GetCommitment ¶
func (x *SchnorrRound1Msg) GetCommitment() []byte
func (*SchnorrRound1Msg) GetSenderId ¶
func (x *SchnorrRound1Msg) GetSenderId() int32
func (*SchnorrRound1Msg) GetSessionId ¶
func (x *SchnorrRound1Msg) GetSessionId() string
func (*SchnorrRound1Msg) ProtoMessage ¶
func (*SchnorrRound1Msg) ProtoMessage()
func (*SchnorrRound1Msg) ProtoReflect ¶
func (x *SchnorrRound1Msg) ProtoReflect() protoreflect.Message
func (*SchnorrRound1Msg) Reset ¶
func (x *SchnorrRound1Msg) Reset()
func (*SchnorrRound1Msg) String ¶
func (x *SchnorrRound1Msg) String() string
type SchnorrRound1MsgList ¶
type SchnorrRound1MsgList struct { Messages []*SchnorrRound1Msg `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*SchnorrRound1MsgList) Descriptor
deprecated
func (*SchnorrRound1MsgList) Descriptor() ([]byte, []int)
Deprecated: Use SchnorrRound1MsgList.ProtoReflect.Descriptor instead.
func (*SchnorrRound1MsgList) GetMessages ¶
func (x *SchnorrRound1MsgList) GetMessages() []*SchnorrRound1Msg
func (*SchnorrRound1MsgList) ProtoMessage ¶
func (*SchnorrRound1MsgList) ProtoMessage()
func (*SchnorrRound1MsgList) ProtoReflect ¶
func (x *SchnorrRound1MsgList) ProtoReflect() protoreflect.Message
func (*SchnorrRound1MsgList) Reset ¶
func (x *SchnorrRound1MsgList) Reset()
func (*SchnorrRound1MsgList) String ¶
func (x *SchnorrRound1MsgList) String() string
type SchnorrRound2Msg ¶
type SchnorrRound2Msg struct { SessionId string `protobuf:"bytes,1,opt,name=SessionId,proto3" json:"SessionId,omitempty"` SenderId int32 `protobuf:"varint,2,opt,name=SenderId,proto3" json:"SenderId,omitempty"` ReceiverId int32 `protobuf:"varint,3,opt,name=ReceiverId,proto3" json:"ReceiverId,omitempty"` Poly []byte `protobuf:"bytes,6,opt,name=Poly,proto3" json:"Poly,omitempty"` // contains filtered or unexported fields }
func (*SchnorrRound2Msg) Descriptor
deprecated
func (*SchnorrRound2Msg) Descriptor() ([]byte, []int)
Deprecated: Use SchnorrRound2Msg.ProtoReflect.Descriptor instead.
func (*SchnorrRound2Msg) GetPoly ¶
func (x *SchnorrRound2Msg) GetPoly() []byte
func (*SchnorrRound2Msg) GetReceiverId ¶
func (x *SchnorrRound2Msg) GetReceiverId() int32
func (*SchnorrRound2Msg) GetSenderId ¶
func (x *SchnorrRound2Msg) GetSenderId() int32
func (*SchnorrRound2Msg) GetSessionId ¶
func (x *SchnorrRound2Msg) GetSessionId() string
func (*SchnorrRound2Msg) GetShareKey ¶
func (x *SchnorrRound2Msg) GetShareKey() []byte
func (*SchnorrRound2Msg) GetSimulatedShareKey ¶
func (x *SchnorrRound2Msg) GetSimulatedShareKey() []byte
func (*SchnorrRound2Msg) ProtoMessage ¶
func (*SchnorrRound2Msg) ProtoMessage()
func (*SchnorrRound2Msg) ProtoReflect ¶
func (x *SchnorrRound2Msg) ProtoReflect() protoreflect.Message
func (*SchnorrRound2Msg) Reset ¶
func (x *SchnorrRound2Msg) Reset()
func (*SchnorrRound2Msg) String ¶
func (x *SchnorrRound2Msg) String() string
type SchnorrRound2MsgList ¶
type SchnorrRound2MsgList struct { Messages []*SchnorrRound2Msg `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*SchnorrRound2MsgList) Descriptor
deprecated
func (*SchnorrRound2MsgList) Descriptor() ([]byte, []int)
Deprecated: Use SchnorrRound2MsgList.ProtoReflect.Descriptor instead.
func (*SchnorrRound2MsgList) GetMessages ¶
func (x *SchnorrRound2MsgList) GetMessages() []*SchnorrRound2Msg
func (*SchnorrRound2MsgList) ProtoMessage ¶
func (*SchnorrRound2MsgList) ProtoMessage()
func (*SchnorrRound2MsgList) ProtoReflect ¶
func (x *SchnorrRound2MsgList) ProtoReflect() protoreflect.Message
func (*SchnorrRound2MsgList) Reset ¶
func (x *SchnorrRound2MsgList) Reset()
func (*SchnorrRound2MsgList) String ¶
func (x *SchnorrRound2MsgList) String() string
type SchnorrRound3Msg ¶
type SchnorrRound3Msg struct { SessionId string `protobuf:"bytes,1,opt,name=SessionId,proto3" json:"SessionId,omitempty"` SenderId int32 `protobuf:"varint,2,opt,name=SenderId,proto3" json:"SenderId,omitempty"` // Types that are assignable to Data: // *SchnorrRound3Msg_PublicKey // *SchnorrRound3Msg_SigmaI Data isSchnorrRound3Msg_Data `protobuf_oneof:"Data"` // contains filtered or unexported fields }
func (*SchnorrRound3Msg) Descriptor
deprecated
func (*SchnorrRound3Msg) Descriptor() ([]byte, []int)
Deprecated: Use SchnorrRound3Msg.ProtoReflect.Descriptor instead.
func (*SchnorrRound3Msg) GetData ¶
func (m *SchnorrRound3Msg) GetData() isSchnorrRound3Msg_Data
func (*SchnorrRound3Msg) GetPublicKey ¶
func (x *SchnorrRound3Msg) GetPublicKey() []byte
func (*SchnorrRound3Msg) GetSenderId ¶
func (x *SchnorrRound3Msg) GetSenderId() int32
func (*SchnorrRound3Msg) GetSessionId ¶
func (x *SchnorrRound3Msg) GetSessionId() string
func (*SchnorrRound3Msg) GetSigmaI ¶
func (x *SchnorrRound3Msg) GetSigmaI() []byte
func (*SchnorrRound3Msg) ProtoMessage ¶
func (*SchnorrRound3Msg) ProtoMessage()
func (*SchnorrRound3Msg) ProtoReflect ¶
func (x *SchnorrRound3Msg) ProtoReflect() protoreflect.Message
func (*SchnorrRound3Msg) Reset ¶
func (x *SchnorrRound3Msg) Reset()
func (*SchnorrRound3Msg) String ¶
func (x *SchnorrRound3Msg) String() string
type SchnorrRound3MsgList ¶
type SchnorrRound3MsgList struct { Messages []*SchnorrRound3Msg `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*SchnorrRound3MsgList) Descriptor
deprecated
func (*SchnorrRound3MsgList) Descriptor() ([]byte, []int)
Deprecated: Use SchnorrRound3MsgList.ProtoReflect.Descriptor instead.
func (*SchnorrRound3MsgList) GetMessages ¶
func (x *SchnorrRound3MsgList) GetMessages() []*SchnorrRound3Msg
func (*SchnorrRound3MsgList) ProtoMessage ¶
func (*SchnorrRound3MsgList) ProtoMessage()
func (*SchnorrRound3MsgList) ProtoReflect ¶
func (x *SchnorrRound3MsgList) ProtoReflect() protoreflect.Message
func (*SchnorrRound3MsgList) Reset ¶
func (x *SchnorrRound3MsgList) Reset()
func (*SchnorrRound3MsgList) String ¶
func (x *SchnorrRound3MsgList) String() string
type SchnorrRound3Msg_PublicKey ¶
type SchnorrRound3Msg_PublicKey struct {
PublicKey []byte `protobuf:"bytes,3,opt,name=PublicKey,proto3,oneof"`
}
type SchnorrRound3Msg_SigmaI ¶
type SchnorrRound3Msg_SigmaI struct {
SigmaI []byte `protobuf:"bytes,4,opt,name=SigmaI,proto3,oneof"`
}
type SchnorrSignature ¶
type SchnorrSignature struct { SType SignatureType `protobuf:"varint,1,opt,name=sType,proto3,enum=thresholdagent.SignatureType" json:"sType,omitempty"` CompressedPublicKey []byte `protobuf:"bytes,2,opt,name=compressedPublicKey,proto3" json:"compressedPublicKey,omitempty"` SigningData []byte `protobuf:"bytes,3,opt,name=signingData,proto3" json:"signingData,omitempty"` R []byte `protobuf:"bytes,4,opt,name=R,proto3" json:"R,omitempty"` S []byte `protobuf:"bytes,5,opt,name=S,proto3" json:"S,omitempty"` // contains filtered or unexported fields }
func (*SchnorrSignature) Bip340Signature ¶
func (sgn *SchnorrSignature) Bip340Signature() [64]byte
func (*SchnorrSignature) Descriptor
deprecated
func (*SchnorrSignature) Descriptor() ([]byte, []int)
Deprecated: Use SchnorrSignature.ProtoReflect.Descriptor instead.
func (*SchnorrSignature) FromBip340Signature ¶
func (sgn *SchnorrSignature) FromBip340Signature(publicKey [33]byte, message [32]byte, signature [64]byte)
publicKey is compressed
func (*SchnorrSignature) FromEthSignature ¶
func (sgn *SchnorrSignature) FromEthSignature(publicKey [33]byte, message, R, S [32]byte)
publicKey is compressed
func (*SchnorrSignature) GetCompressedPublicKey ¶
func (x *SchnorrSignature) GetCompressedPublicKey() []byte
func (*SchnorrSignature) GetR ¶
func (x *SchnorrSignature) GetR() []byte
func (*SchnorrSignature) GetS ¶
func (x *SchnorrSignature) GetS() []byte
func (*SchnorrSignature) GetSType ¶
func (x *SchnorrSignature) GetSType() SignatureType
func (*SchnorrSignature) GetSigningData ¶
func (x *SchnorrSignature) GetSigningData() []byte
func (*SchnorrSignature) ProtoMessage ¶
func (*SchnorrSignature) ProtoMessage()
func (*SchnorrSignature) ProtoReflect ¶
func (x *SchnorrSignature) ProtoReflect() protoreflect.Message
func (*SchnorrSignature) Reset ¶
func (x *SchnorrSignature) Reset()
func (*SchnorrSignature) String ¶
func (x *SchnorrSignature) String() string
func (*SchnorrSignature) Verify ¶
func (sgn *SchnorrSignature) Verify() bool
func (*SchnorrSignature) VerifyBip340 ¶
func (sgn *SchnorrSignature) VerifyBip340() bool
func (*SchnorrSignature) VerifyEth ¶
func (sgn *SchnorrSignature) VerifyEth() bool
type SignRequest ¶
type SignRequest struct { PublicKey []byte `protobuf:"bytes,1,opt,name=publicKey,proto3" json:"publicKey,omitempty"` Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*SignRequest) Descriptor
deprecated
func (*SignRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignRequest.ProtoReflect.Descriptor instead.
func (*SignRequest) GetMessage ¶
func (x *SignRequest) GetMessage() []byte
func (*SignRequest) GetPublicKey ¶
func (x *SignRequest) GetPublicKey() []byte
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 SignatureType ¶
type SignatureType int32
const ( SignatureType_SCHNORRv1 SignatureType = 0 //bitcoin schnorr SignatureType_SCHNORRv2 SignatureType = 1 //ethereum schnorr SignatureType_ECDSAv1 SignatureType = 2 //bitcoin ecdsa SignatureType_ECDSAv2 SignatureType = 3 //ethereum ecdsa )
func (SignatureType) Descriptor ¶
func (SignatureType) Descriptor() protoreflect.EnumDescriptor
func (SignatureType) Enum ¶
func (x SignatureType) Enum() *SignatureType
func (SignatureType) EnumDescriptor
deprecated
func (SignatureType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SignatureType.Descriptor instead.
func (SignatureType) Number ¶
func (x SignatureType) Number() protoreflect.EnumNumber
func (SignatureType) String ¶
func (x SignatureType) String() string
func (SignatureType) Type ¶
func (SignatureType) Type() protoreflect.EnumType
type Status ¶
type Status int32
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type ThresholdAgentClient ¶
type ThresholdAgentClient interface { Authenticate(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResponse, error) DkgSchnorrRound1(ctx context.Context, in *SchnorrRound0Msg, opts ...grpc.CallOption) (*SchnorrRound1Msg, error) DkgSchnorrRound2(ctx context.Context, in *SchnorrRound1MsgList, opts ...grpc.CallOption) (*SchnorrRound2MsgList, error) DkgSchnorrRound3(ctx context.Context, in *SchnorrRound2MsgList, opts ...grpc.CallOption) (*SchnorrRound3Msg, error) DkgSchnorrRoundFinal(ctx context.Context, in *ResultMsg, opts ...grpc.CallOption) (*ResultMsg, error) SchnorrSignRound1(ctx context.Context, in *SchnorrRound0Msg, opts ...grpc.CallOption) (*SchnorrRound1Msg, error) SchnorrSignRound2(ctx context.Context, in *SchnorrRound1MsgList, opts ...grpc.CallOption) (*SchnorrRound2MsgList, error) SchnorrSignRound3(ctx context.Context, in *SchnorrRound2MsgList, opts ...grpc.CallOption) (*SchnorrRound3Msg, error) SchnorrSignRound4(ctx context.Context, in *SchnorrRound3MsgList, opts ...grpc.CallOption) (*SchnorrSignature, error) EcdsaDkgRoundX(ctx context.Context, in *EcdsaRoundMessage, opts ...grpc.CallOption) (*EcdsaRoundMessage, error) EcdsaSignRoundX(ctx context.Context, in *EcdsaRoundMessage, opts ...grpc.CallOption) (*EcdsaRoundMessage, error) }
ThresholdAgentClient is the client API for ThresholdAgent service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewThresholdAgentClient ¶
func NewThresholdAgentClient(cc grpc.ClientConnInterface) ThresholdAgentClient
type ThresholdAgentServer ¶
type ThresholdAgentServer interface { Authenticate(context.Context, *AuthRequest) (*AuthResponse, error) DkgSchnorrRound1(context.Context, *SchnorrRound0Msg) (*SchnorrRound1Msg, error) DkgSchnorrRound2(context.Context, *SchnorrRound1MsgList) (*SchnorrRound2MsgList, error) DkgSchnorrRound3(context.Context, *SchnorrRound2MsgList) (*SchnorrRound3Msg, error) DkgSchnorrRoundFinal(context.Context, *ResultMsg) (*ResultMsg, error) SchnorrSignRound1(context.Context, *SchnorrRound0Msg) (*SchnorrRound1Msg, error) SchnorrSignRound2(context.Context, *SchnorrRound1MsgList) (*SchnorrRound2MsgList, error) SchnorrSignRound3(context.Context, *SchnorrRound2MsgList) (*SchnorrRound3Msg, error) SchnorrSignRound4(context.Context, *SchnorrRound3MsgList) (*SchnorrSignature, error) EcdsaDkgRoundX(context.Context, *EcdsaRoundMessage) (*EcdsaRoundMessage, error) EcdsaSignRoundX(context.Context, *EcdsaRoundMessage) (*EcdsaRoundMessage, error) }
ThresholdAgentServer is the server API for ThresholdAgent service.
type UnimplementedThresholdAgentServer ¶
type UnimplementedThresholdAgentServer struct { }
UnimplementedThresholdAgentServer can be embedded to have forward compatible implementations.
func (*UnimplementedThresholdAgentServer) Authenticate ¶
func (*UnimplementedThresholdAgentServer) Authenticate(context.Context, *AuthRequest) (*AuthResponse, error)
func (*UnimplementedThresholdAgentServer) DkgSchnorrRound1 ¶
func (*UnimplementedThresholdAgentServer) DkgSchnorrRound1(context.Context, *SchnorrRound0Msg) (*SchnorrRound1Msg, error)
func (*UnimplementedThresholdAgentServer) DkgSchnorrRound2 ¶
func (*UnimplementedThresholdAgentServer) DkgSchnorrRound2(context.Context, *SchnorrRound1MsgList) (*SchnorrRound2MsgList, error)
func (*UnimplementedThresholdAgentServer) DkgSchnorrRound3 ¶
func (*UnimplementedThresholdAgentServer) DkgSchnorrRound3(context.Context, *SchnorrRound2MsgList) (*SchnorrRound3Msg, error)
func (*UnimplementedThresholdAgentServer) DkgSchnorrRoundFinal ¶
func (*UnimplementedThresholdAgentServer) EcdsaDkgRoundX ¶
func (*UnimplementedThresholdAgentServer) EcdsaDkgRoundX(context.Context, *EcdsaRoundMessage) (*EcdsaRoundMessage, error)
func (*UnimplementedThresholdAgentServer) EcdsaSignRoundX ¶
func (*UnimplementedThresholdAgentServer) EcdsaSignRoundX(context.Context, *EcdsaRoundMessage) (*EcdsaRoundMessage, error)
func (*UnimplementedThresholdAgentServer) SchnorrSignRound1 ¶
func (*UnimplementedThresholdAgentServer) SchnorrSignRound1(context.Context, *SchnorrRound0Msg) (*SchnorrRound1Msg, error)
func (*UnimplementedThresholdAgentServer) SchnorrSignRound2 ¶
func (*UnimplementedThresholdAgentServer) SchnorrSignRound2(context.Context, *SchnorrRound1MsgList) (*SchnorrRound2MsgList, error)
func (*UnimplementedThresholdAgentServer) SchnorrSignRound3 ¶
func (*UnimplementedThresholdAgentServer) SchnorrSignRound3(context.Context, *SchnorrRound2MsgList) (*SchnorrRound3Msg, error)
func (*UnimplementedThresholdAgentServer) SchnorrSignRound4 ¶
func (*UnimplementedThresholdAgentServer) SchnorrSignRound4(context.Context, *SchnorrRound3MsgList) (*SchnorrSignature, error)